!function(n,t){"use strict";var v,l,ut,u=n,s=u.document,w=u.navigator,tt=u.setTimeout,si=u.clearTimeout,hi=u.setInterval,ci=u.clearInterval,yt=u.getComputedStyle,ft=u.encodeURIComponent,pt=u.ActiveXObject,li=u.Error,ai=u.Number.parseInt||u.parseInt,d=u.Number.parseFloat||u.parseFloat,vi=u.Number.isNaN||u.isNaN,wt=u.Date.now,bt=u.Object.keys,yi=u.Object.defineProperty,h=u.Object.prototype.hasOwnProperty,pi=u.Array.prototype.slice,wi=function(){var i=function(n){return n},n,t;if("function"==typeof u.wrap&&"function"==typeof u.unwrap)try{n=s.createElement("div"),t=u.unwrap(n),1===n.nodeType&&t&&1===t.nodeType&&(i=u.unwrap)}catch(r){}return i}(),e=function(n){return pi.call(n,0)},o=function(){for(var i,n,c,r,o=e(arguments),u=o[0]||{},f=1,s=o.length;s>f;f++)if(null!=(i=o[f]))for(n in i)h.call(i,n)&&(c=u[n],r=i[n],u!==r&&r!==t&&(u[n]=r));return u},b=function(n){var t,i,u,r;if("object"!=typeof n||null==n||"number"==typeof n.nodeType)t=n;else if("number"==typeof n.length)for(t=[],i=0,u=n.length;u>i;i++)h.call(n,i)&&(t[i]=b(n[i]));else{t={};for(r in n)h.call(n,r)&&(t[r]=b(n[r]))}return t},bi=function(n,t){for(var r={},i=0,u=t.length;u>i;i++)t[i]in n&&(r[t[i]]=n[t[i]]);return r},ki=function(n,t){var r={},i;for(i in n)-1===t.indexOf(i)&&(r[i]=n[i]);return r},di=function(n){if(n)for(var t in n)h.call(n,t)&&delete n[t];return n},kt=function(n,t){if(n&&1===n.nodeType&&n.ownerDocument&&t&&(1===t.nodeType&&t.ownerDocument&&t.ownerDocument===n.ownerDocument||9===t.nodeType&&!t.ownerDocument&&t===n.ownerDocument))do{if(n===t)return!0;n=n.parentNode}while(n);return!1},dt=function(n){var t;return"string"==typeof n&&n&&(t=n.split("#")[0].split("?")[0],t=n.slice(0,n.lastIndexOf("/")+1)),t},gi=function(n){var i,t;return"string"==typeof n&&n&&(t=n.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),t&&t[1]?i=t[1]:(t=n.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),t&&t[1]&&(i=t[1]))),i},nr=function(){var t,n;try{throw new li;}catch(i){n=i}return n&&(t=n.sourceURL||n.fileName||gi(n.stack)),t},tr=function(){var i,n,r;if(s.currentScript&&(i=s.currentScript.src))return i;if(n=s.getElementsByTagName("script"),1===n.length)return n[0].src||t;if("readyState"in n[0])for(r=n.length;r--;)if("interactive"===n[r].readyState&&(i=n[r].src))return i;return"loading"===s.readyState&&(i=n[n.length-1].src)?i:(i=nr())?i:t},ir=function(){for(var n,i,u=s.getElementsByTagName("script"),r=u.length;r--;){if(!(i=u[r].src)){n=null;break}if(i=dt(i),null==n)n=i;else if(n!==i){n=null;break}}return n||t},rr=function(){var n=dt(tr())||ir()||"";return n+"ZeroClipboard.swf"},gt=function(){return null==n.opener&&(!!n.top&&n!=n.top||!!n.parent&&n!=n.parent)}(),r={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,sandboxed:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},ni="11.0.0",y={},a={},et=null,ot=0,st=0,ur={ready:"Flash communication is established",error:{"flash-disabled":"Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-sandboxed":"Attempting to run Flash in a sandboxed iframe, which is impossible","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-degraded":"Flash is unable to preserve data fidelity when communicating with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-overdue":"Flash communication was established but NOT within the acceptable time limit","version-mismatch":"ZeroClipboard JS version number does not match ZeroClipboard SWF version number","clipboard-error":"At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard","config-mismatch":"ZeroClipboard configuration does not match Flash's reality","swf-not-found":"The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity"}},fr=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],p=["flash-disabled","flash-outdated","flash-sandboxed","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],er=new RegExp("^flash-("+p.map(function(n){return n.replace(/^flash-/,"")}).join("|")+")$"),or=new RegExp("^flash-("+p.slice(1).map(function(n){return n.replace(/^flash-/,"")}).join("|")+")$"),f={swfPath:rr(),trustedDomains:n.location.host?[n.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},sr=function(n){if("object"==typeof n&&null!==n)for(var t in n)if(h.call(n,t))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(t))f[t]=n[t];else if(null==r.bridge)if("containerId"===t||"swfObjectId"===t){if(!iu(n[t]))throw new Error("The specified `"+t+"` value is not valid as an HTML4 Element ID");f[t]=n[t]}else f[t]=n[t];return"string"!=typeof n||!n?b(f):h.call(f,n)?f[n]:void 0},hr=function(){return at(),{browser:bi(w,["userAgent","platform","appName"]),flash:ki(r,["bridge"]),zeroclipboard:{version:i.version,config:i.config()}}},cr=function(){return!!(r.disabled||r.outdated||r.sandboxed||r.unavailable||r.degraded||r.deactivated)},lr=function(n,u){var f,o,e,s={};if("string"==typeof n&&n)e=n.toLowerCase().split(/\s+/);else if("object"==typeof n&&n&&"undefined"==typeof u)for(f in n)h.call(n,f)&&"string"==typeof f&&f&&"function"==typeof n[f]&&i.on(f,n[f]);if(e&&e.length){for(f=0,o=e.length;o>f;f++)n=e[f].replace(/^on/,""),s[n]=!0,y[n]||(y[n]=[]),y[n].push(u);if(s.ready&&r.ready&&i.emit({type:"ready"}),s.error){for(f=0,o=p.length;o>f;f++)if(r[p[f].replace(/^flash-/,"")]===!0){i.emit({type:"error",name:p[f]});break}v!==t&&i.version!==v&&i.emit({type:"error",name:"version-mismatch",jsVersion:i.version,swfVersion:v})}}return i},ar=function(n,t){var r,o,e,f,u;if(0===arguments.length)f=bt(y);else if("string"==typeof n&&n)f=n.split(/\s+/);else if("object"==typeof n&&n&&"undefined"==typeof t)for(r in n)h.call(n,r)&&"string"==typeof r&&r&&"function"==typeof n[r]&&i.off(r,n[r]);if(f&&f.length)for(r=0,o=f.length;o>r;r++)if(n=f[r].toLowerCase().replace(/^on/,""),u=y[n],u&&u.length)if(t)for(e=u.indexOf(t);-1!==e;)u.splice(e,1),e=u.indexOf(t,e);else u.length=0;return i},vr=function(n){var t;return t="string"==typeof n&&n?b(y[n])||null:b(y)},yr=function(n){var u,f,t;return n=ti(n),n&&!ou(n)?"ready"===n.type&&r.overdue===!0?i.emit({type:"error",name:"flash-overdue"}):(u=o({},n),fu.call(this,u),"copy"===n.type&&(t=vu(a),f=t.data,et=t.formatMap),f):void 0},pr=function(){var t=r.sandboxed,n;(at(),"boolean"!=typeof r.ready&&(r.ready=!1),r.sandboxed!==t&&r.sandboxed===!0)?(r.ready=!1,i.emit({type:"error",name:"flash-sandboxed"})):i.isFlashUnusable()||null!==r.bridge||(n=f.flashLoadTimeout,"number"==typeof n&&n>=0&&(ot=tt(function(){"boolean"!=typeof r.deactivated&&(r.deactivated=!0),r.deactivated===!0&&i.emit({type:"error",name:"flash-deactivated"})},n)),r.overdue=!1,lu())},wr=function(){i.clearData(),i.blur(),i.emit("destroy"),au(),i.off()},br=function(n,t){var r,u;if("object"==typeof n&&n&&"undefined"==typeof t)r=n,i.clearData();else{if("string"!=typeof n||!n)return;r={},r[n]=t}for(u in r)"string"==typeof u&&u&&h.call(r,u)&&"string"==typeof r[u]&&r[u]&&(a[u]=r[u])},kr=function(n){"undefined"==typeof n?(di(a),et=null):"string"==typeof n&&h.call(a,n)&&delete a[n]},dr=function(n){return"undefined"==typeof n?b(a):"string"==typeof n&&h.call(a,n)?a[n]:void 0},gr=function(n){var t,i,u;n&&1===n.nodeType&&(l&&(nt(l,f.activeClass),l!==n&&nt(l,f.hoverClass)),l=n,ui(n,f.hoverClass),t=n.getAttribute("title")||f.title,"string"==typeof t&&t&&(i=g(r.bridge),i&&i.setAttribute("title",t)),u=f.forceHandCursor===!0||"pointer"===fi(n,"cursor"),nf(u),gu())},nu=function(){var n=g(r.bridge);n&&(n.removeAttribute("title"),n.style.left="0px",n.style.top="-9999px",n.style.width="1px",n.style.height="1px"),l&&(nt(l,f.hoverClass),nt(l,f.activeClass),l=null)},tu=function(){return l||null},iu=function(n){return"string"==typeof n&&n&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(n)},ti=function(n){var t,u;if("string"==typeof n&&n?(t=n,n={}):"object"==typeof n&&n&&"string"==typeof n.type&&n.type&&(t=n.type),t)return t=t.toLowerCase(),!n.target&&(/^(copy|aftercopy|_click)$/.test(t)||"error"===t&&"clipboard-error"===n.name)&&(n.target=ut),o(n,{type:t,target:n.target||l||null,relatedTarget:n.relatedTarget||null,currentTarget:r&&r.bridge||null,timeStamp:n.timeStamp||wt()||null}),u=ur[n.type],"error"===n.type&&n.name&&u&&(u=u[n.name]),u&&(n.message=u),"ready"===n.type&&o(n,{target:null,version:r.version}),"error"===n.type&&(er.test(n.name)&&o(n,{target:null,minimumVersion:ni}),or.test(n.name)&&o(n,{version:r.version})),"copy"===n.type&&(n.clipboardData={setData:i.setData,clearData:i.clearData}),"aftercopy"===n.type&&(n=yu(n,et)),n.target&&!n.relatedTarget&&(n.relatedTarget=ru(n.target)),uu(n)},ru=function(n){var t=n&&n.getAttribute&&n.getAttribute("data-clipboard-target");return t?s.getElementById(t):null},uu=function(n){if(n&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(n.type)){var f=n.target,l="_mouseover"===n.type&&n.relatedTarget?n.relatedTarget:t,a="_mouseout"===n.type&&n.relatedTarget?n.relatedTarget:t,e=ct(f),v=u.screenLeft||u.screenX||0,y=u.screenTop||u.screenY||0,p=s.body.scrollLeft+s.documentElement.scrollLeft,w=s.body.scrollTop+s.documentElement.scrollTop,h=e.left+("number"==typeof n._stageX?n._stageX:0),c=e.top+("number"==typeof n._stageY?n._stageY:0),i=h-p,r=c-w,b=v+i,k=y+r,d="number"==typeof n.movementX?n.movementX:0,g="number"==typeof n.movementY?n.movementY:0;delete n._stageX,delete n._stageY,o(n,{srcElement:f,fromElement:l,toElement:a,screenX:b,screenY:k,pageX:h,pageY:c,clientX:i,clientY:r,x:i,y:r,movementX:d,movementY:g,offsetX:0,offsetY:0,layerX:0,layerY:0})}return n},ii=function(n){var t=n&&"string"==typeof n.type&&n.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(t)},ri=function(n,t,i,r){r?tt(function(){n.apply(t,i)},0):n.apply(t,i)},fu=function(n){var r,e,t,f,s,h;if("object"==typeof n&&n&&n.type){var c=ii(n),l=y["*"]||[],a=y[n.type]||[],i=l.concat(a);if(i&&i.length)for(h=this,r=0,e=i.length;e>r;r++)t=i[r],f=h,"string"==typeof t&&"function"==typeof u[t]&&(t=u[t]),"object"==typeof t&&t&&"function"==typeof t.handleEvent&&(f=t,t=t.handleEvent),"function"==typeof t&&(s=o({},n),ri(t,f,[s],c));return this}},eu=function(n){var t=null;return(gt===!1||n&&"error"===n.type&&n.name&&-1!==fr.indexOf(n.name))&&(t=!1),t},ou=function(n){var t=n.target||l||null,e="swf"===n._source,h,c,s,y,u;switch(delete n._source,n.type){case"error":h="flash-sandboxed"===n.name||eu(n),"boolean"==typeof h&&(r.sandboxed=h),-1!==p.indexOf(n.name)?o(r,{disabled:"flash-disabled"===n.name,outdated:"flash-outdated"===n.name,unavailable:"flash-unavailable"===n.name,degraded:"flash-degraded"===n.name,deactivated:"flash-deactivated"===n.name,overdue:"flash-overdue"===n.name,ready:!1}):"version-mismatch"===n.name&&(v=n.swfVersion,o(r,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),it();break;case"ready":v=n.swfVersion,c=r.deactivated===!0,o(r,{disabled:!1,outdated:!1,sandboxed:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:c,ready:!c}),it();break;case"beforecopy":ut=t;break;case"copy":u=n.relatedTarget,!a["text/html"]&&!a["text/plain"]&&u&&(y=u.value||u.outerHTML||u.innerHTML)&&(s=u.value||u.textContent||u.innerText)?(n.clipboardData.clearData(),n.clipboardData.setData("text/plain",s),y!==s&&n.clipboardData.setData("text/html",y)):!a["text/plain"]&&n.target&&(s=n.target.getAttribute("data-clipboard-text"))&&(n.clipboardData.clearData(),n.clipboardData.setData("text/plain",s));break;case"aftercopy":su(n),i.clearData(),t&&t!==ku()&&t.focus&&t.focus();break;case"_mouseover":i.focus(t),f.bubbleEvents===!0&&e&&(t&&t!==n.relatedTarget&&!kt(n.relatedTarget,t)&&k(o({},n,{type:"mouseenter",bubbles:!1,cancelable:!1})),k(o({},n,{type:"mouseover"})));break;case"_mouseout":i.blur(),f.bubbleEvents===!0&&e&&(t&&t!==n.relatedTarget&&!kt(n.relatedTarget,t)&&k(o({},n,{type:"mouseleave",bubbles:!1,cancelable:!1})),k(o({},n,{type:"mouseout"})));break;case"_mousedown":ui(t,f.activeClass),f.bubbleEvents===!0&&e&&k(o({},n,{type:n.type.slice(1)}));break;case"_mouseup":nt(t,f.activeClass),f.bubbleEvents===!0&&e&&k(o({},n,{type:n.type.slice(1)}));break;case"_click":ut=null,f.bubbleEvents===!0&&e&&k(o({},n,{type:n.type.slice(1)}));break;case"_mousemove":f.bubbleEvents===!0&&e&&k(o({},n,{type:n.type.slice(1)}))}if(/^_(?:click|mouse(?:over|out|down|up|move))$/.test(n.type))return!0},su=function(n){if(n.errors&&n.errors.length>0){var t=b(n);o(t,{type:"error",name:"clipboard-error"}),delete t.success,tt(function(){i.emit(t)},0)}},k=function(n){if(n&&"string"==typeof n.type&&n){var i,r=n.target||null,f=r&&r.ownerDocument||s,e={view:f.defaultView||u,canBubble:!0,cancelable:!0,detail:"click"===n.type?1:0,button:"number"==typeof n.which?n.which-1:"number"==typeof n.button?n.button:f.createEvent?0:1},t=o(e,n);r&&f.createEvent&&r.dispatchEvent&&(t=[t.type,t.canBubble,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget],i=f.createEvent("MouseEvents"),i.initMouseEvent&&(i.initMouseEvent.apply(i,t),i._source="js",r.dispatchEvent(i)))}},hu=function(){var n=f.flashLoadTimeout,t,u;"number"==typeof n&&n>=0&&(t=Math.min(1e3,n/10),u=f.swfObjectId+"_fallbackContent",st=hi(function(){var n=s.getElementById(u);du(n)&&(it(),r.deactivated=null,i.emit({type:"error",name:"swf-not-found"}))},t))},cu=function(){var n=s.createElement("div");return n.id=f.containerId,n.className=f.containerClass,n.style.position="absolute",n.style.left="0px",n.style.top="-9999px",n.style.width="1px",n.style.height="1px",n.style.zIndex=""+lt(f.zIndex),n},g=function(n){for(var t=n&&n.parentNode;t&&"OBJECT"===t.nodeName&&t.parentNode;)t=t.parentNode;return t||null},lu=function(){var l,n=r.bridge,t=g(n),h,e,c;if(!n){var a=bu(u.location.host,f),y="never"===a?"none":"all",p=wu(o({jsVersion:i.version},f)),v=f.swfPath+pu(f.swfPath,f);t=cu(),h=s.createElement("div"),t.appendChild(h),s.body.appendChild(t),e=s.createElement("div"),c="activex"===r.pluginType,e.innerHTML='<object id="'+f.swfObjectId+'" name="'+f.swfObjectId+'" width="100%" height="100%" '+(c?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+v+'"')+">"+(c?'<param name="movie" value="'+v+'"/>':"")+'<param name="allowScriptAccess" value="'+a+'"/><param name="allowNetworking" value="'+y+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+p+'"/><div id="'+f.swfObjectId+'_fallbackContent">&nbsp;<\/div><\/object>',n=e.firstChild,e=null,wi(n).ZeroClipboard=i,t.replaceChild(n,h),hu()}return n||(n=s[f.swfObjectId],n&&(l=n.length)&&(n=n[l-1]),!n&&t&&(n=t.firstChild)),r.bridge=n||null,n},au=function(){var n=r.bridge,i;n&&(i=g(n),i&&("activex"===r.pluginType&&"readyState"in n?(n.style.display="none",function u(){if(4===n.readyState){for(var t in n)"function"==typeof n[t]&&(n[t]=null);n.parentNode&&n.parentNode.removeChild(n),i.parentNode&&i.parentNode.removeChild(i)}else tt(u,10)}()):(n.parentNode&&n.parentNode.removeChild(n),i.parentNode&&i.parentNode.removeChild(i))),it(),r.ready=null,r.bridge=null,r.deactivated=null,v=t)},vu=function(n){var i={},r={},t;if("object"==typeof n&&n){for(t in n)if(t&&h.call(n,t)&&"string"==typeof n[t]&&n[t])switch(t.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":i.text=n[t],r.text=t;break;case"text/html":case"html":case"air:html":case"flash:html":i.html=n[t],r.html=t;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":i.rtf=n[t],r.rtf=t}return{data:i,formatMap:r}}},yu=function(n,t){var r,i,f,o,e,u;if("object"!=typeof n||!n||"object"!=typeof t||!t)return n;r={};for(i in n)if(h.call(n,i))if("errors"===i)for(r[i]=n[i]?n[i].slice():[],f=0,o=r[i].length;o>f;f++)r[i][f].format=t[r[i][f].format];else if("success"!==i&&"data"!==i)r[i]=n[i];else{r[i]={},e=n[i];for(u in e)u&&h.call(e,u)&&h.call(t,u)&&(r[i][t[u]]=e[u])}return r},pu=function(n,t){var i=null==t||t&&t.cacheBust===!0;return i?(-1===n.indexOf("?")?"?":"&")+"noCache="+wt():""},wu=function(n){var r,o,f,t,i="",e=[];if(n.trustedDomains&&("string"==typeof n.trustedDomains?t=[n.trustedDomains]:"object"==typeof n.trustedDomains&&"length"in n.trustedDomains&&(t=n.trustedDomains)),t&&t.length)for(r=0,o=t.length;o>r;r++)if(h.call(t,r)&&t[r]&&"string"==typeof t[r]){if(f=ht(t[r]),!f)continue;if("*"===f){e.length=0,e.push(f);break}e.push.apply(e,[f,"//"+f,u.location.protocol+"//"+f])}return e.length&&(i+="trustedOrigins="+ft(e.join(","))),n.forceEnhancedClipboard===!0&&(i+=(i?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof n.swfObjectId&&n.swfObjectId&&(i+=(i?"&":"")+"swfObjectId="+ft(n.swfObjectId)),"string"==typeof n.jsVersion&&n.jsVersion&&(i+=(i?"&":"")+"jsVersion="+ft(n.jsVersion)),i},ht=function(n){var t,i;return null==n||""===n?null:(n=n.replace(/^\s+|\s+$/g,""),""===n)?null:(t=n.indexOf("//"),n=-1===t?n:n.slice(t+2),i=n.indexOf("/"),n=-1===i?n:-1===t||0===i?null:n.slice(0,i),n&&".swf"===n.slice(-4).toLowerCase()?null:n||null)},bu=function(){var n=function(n){var i,u,r,t=[];if("string"==typeof n&&(n=[n]),"object"!=typeof n||!n||"number"!=typeof n.length)return t;for(i=0,u=n.length;u>i;i++)if(h.call(n,i)&&(r=ht(n[i]))){if("*"===r){t.length=0,t.push("*");break}-1===t.indexOf(r)&&t.push(r)}return t};return function(t,i){var f=ht(i.swfPath),r,u;if(null===f&&(f=t),r=n(i.trustedDomains),u=r.length,u>0){if(1===u&&"*"===r[0])return"always";if(-1!==r.indexOf(t))return 1===u&&t===f?"sameDomain":"always"}return"never"}}(),ku=function(){try{return s.activeElement}catch(n){return null}},ui=function(n,t){var i,u,f,r=[];if("string"==typeof t&&t&&(r=t.split(/\s+/)),n&&1===n.nodeType&&r.length>0)if(n.classList)for(i=0,u=r.length;u>i;i++)n.classList.add(r[i]);else if(n.hasOwnProperty("className")){for(f=" "+n.className+" ",i=0,u=r.length;u>i;i++)-1===f.indexOf(" "+r[i]+" ")&&(f+=r[i]+" ");n.className=f.replace(/^\s+|\s+$/g,"")}return n},nt=function(n,t){var i,u,f,r=[];if("string"==typeof t&&t&&(r=t.split(/\s+/)),n&&1===n.nodeType&&r.length>0)if(n.classList&&n.classList.length>0)for(i=0,u=r.length;u>i;i++)n.classList.remove(r[i]);else if(n.className){for(f=(" "+n.className+" ").replace(/[\r\n\t]/g," "),i=0,u=r.length;u>i;i++)f=f.replace(" "+r[i]+" "," ");n.className=f.replace(/^\s+|\s+$/g,"")}return n},fi=function(n,t){var i=yt(n,null).getPropertyValue(t);return"cursor"!==t||i&&"auto"!==i||"A"!==n.nodeName?i:"pointer"},ct=function(n){var i={left:0,top:0,width:0,height:0},r,f;if(n.getBoundingClientRect){var t=n.getBoundingClientRect(),h=u.pageXOffset,c=u.pageYOffset,l=s.documentElement.clientLeft||0,a=s.documentElement.clientTop||0,e=0,o=0;"relative"===fi(s.body,"position")&&(r=s.body.getBoundingClientRect(),f=s.documentElement.getBoundingClientRect(),e=r.left-f.left||0,o=r.top-f.top||0),i.left=t.left+h-l-e,i.top=t.top+c-a-o,i.width="width"in t?t.width:t.right-t.left,i.height="height"in t?t.height:t.bottom-t.top}return i},du=function(n){if(!n)return!1;var t=yt(n,null),r=d(t.height)>0,u=d(t.width)>0,f=d(t.top)>=0,e=d(t.left)>=0,o=r&&u&&f&&e,i=o?null:ct(n);return"none"!==t.display&&"collapse"!==t.visibility&&(o||!!i&&(r||i.height>0)&&(u||i.width>0)&&(f||i.top>=0)&&(e||i.left>=0))},it=function(){si(ot),ot=0,ci(st),st=0},gu=function(){var t,n;l&&(t=g(r.bridge))&&(n=ct(l),o(t.style,{width:n.width+"px",height:n.height+"px",top:n.top+"px",left:n.left+"px",zIndex:""+lt(f.zIndex)}))},nf=function(n){r.ready===!0&&(r.bridge&&"function"==typeof r.bridge.setHandCursor?r.bridge.setHandCursor(n):r.ready=!1)},lt=function(n){if(/^(?:auto|inherit)$/.test(n))return n;var t;return"number"!=typeof n||vi(n)?"string"==typeof n&&(t=lt(ai(n,10))):t=n,"number"==typeof t?t:"auto"},at=function(t){var e,u,f,o=r.sandboxed,i=null;if(t=t===!0,gt===!1)i=!1;else{try{u=n.frameElement||null}catch(s){f={name:s.name,message:s.message}}if(u&&1===u.nodeType&&"IFRAME"===u.nodeName)try{i=u.hasAttribute("sandbox")}catch(s){i=null}else{try{e=document.domain||null}catch(s){e=null}(null===e||f&&"SecurityError"===f.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(f.message.toLowerCase()))&&(i=!0)}}return r.sandboxed=i,o===i||t||ei(pt),i},ei=function(n){function f(n){var t=n.match(/[\d]+/g);return t.length=3,t.join(".")}function l(n){return!!n&&(n=n.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(n)||"chrome.plugin"===n.slice(-13))}function h(n){n&&(i=!0,n.version&&(t=f(n.version)),!t&&n.description&&(t=f(n.description)),n.filename&&(c=l(n.filename)))}var e,u,o,i=!1,s=!1,c=!1,t="";if(w.plugins&&w.plugins.length)e=w.plugins["Shockwave Flash"],h(e),w.plugins["Shockwave Flash 2.0"]&&(i=!0,t="2.0.0.11");else if(w.mimeTypes&&w.mimeTypes.length)o=w.mimeTypes["application/x-shockwave-flash"],e=o&&o.enabledPlugin,h(e);else if("undefined"!=typeof n){s=!0;try{u=new n("ShockwaveFlash.ShockwaveFlash.7"),i=!0,t=f(u.GetVariable("$version"))}catch(a){try{u=new n("ShockwaveFlash.ShockwaveFlash.6"),i=!0,t="6.0.21"}catch(v){try{u=new n("ShockwaveFlash.ShockwaveFlash"),i=!0,t=f(u.GetVariable("$version"))}catch(y){s=!1}}}}r.disabled=i!==!0,r.outdated=t&&d(t)<d(ni),r.version=t||"0.0.0",r.pluginType=c?"pepper":s?"activex":i?"netscape":"unknown"},i;ei(pt),at(!0),i=function(){return this instanceof i?void("function"==typeof i._createClient&&i._createClient.apply(this,e(arguments))):new i},yi(i,"version",{value:"2.2.0",writable:!1,configurable:!0,enumerable:!0}),i.config=function(){return sr.apply(this,e(arguments))},i.state=function(){return hr.apply(this,e(arguments))},i.isFlashUnusable=function(){return cr.apply(this,e(arguments))},i.on=function(){return lr.apply(this,e(arguments))},i.off=function(){return ar.apply(this,e(arguments))},i.handlers=function(){return vr.apply(this,e(arguments))},i.emit=function(){return yr.apply(this,e(arguments))},i.create=function(){return pr.apply(this,e(arguments))},i.destroy=function(){return wr.apply(this,e(arguments))},i.setData=function(){return br.apply(this,e(arguments))},i.clearData=function(){return kr.apply(this,e(arguments))},i.getData=function(){return dr.apply(this,e(arguments))},i.focus=i.activate=function(){return gr.apply(this,e(arguments))},i.blur=i.deactivate=function(){return nu.apply(this,e(arguments))},i.activeElement=function(){return tu.apply(this,e(arguments))};var tf=0,c={},rf=0,rt={},vt={};o(f,{autoActivate:!0});var uf=function(n){var t=this;t.id=""+tf++,c[t.id]={instance:t,elements:[],handlers:{}},n&&t.clip(n),i.on("*",function(n){return t.emit(n)}),i.on("destroy",function(){t.destroy()}),i.create()},ff=function(n,u){var f,o,e,s={},l=c[this.id],a=l&&l.handlers;if(!l)throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeof n&&n)e=n.toLowerCase().split(/\s+/);else if("object"==typeof n&&n&&"undefined"==typeof u)for(f in n)h.call(n,f)&&"string"==typeof f&&f&&"function"==typeof n[f]&&this.on(f,n[f]);if(e&&e.length){for(f=0,o=e.length;o>f;f++)n=e[f].replace(/^on/,""),s[n]=!0,a[n]||(a[n]=[]),a[n].push(u);if(s.ready&&r.ready&&this.emit({type:"ready",client:this}),s.error){for(f=0,o=p.length;o>f;f++)if(r[p[f].replace(/^flash-/,"")]){this.emit({type:"error",name:p[f],client:this});break}v!==t&&i.version!==v&&this.emit({type:"error",name:"version-mismatch",jsVersion:i.version,swfVersion:v})}}return this},ef=function(n,t){var i,o,f,u,r,s=c[this.id],e=s&&s.handlers;if(!e)return this;if(0===arguments.length)u=bt(e);else if("string"==typeof n&&n)u=n.split(/\s+/);else if("object"==typeof n&&n&&"undefined"==typeof t)for(i in n)h.call(n,i)&&"string"==typeof i&&i&&"function"==typeof n[i]&&this.off(i,n[i]);if(u&&u.length)for(i=0,o=u.length;o>i;i++)if(n=u[i].toLowerCase().replace(/^on/,""),r=e[n],r&&r.length)if(t)for(f=r.indexOf(t);-1!==f;)r.splice(f,1),f=r.indexOf(t,f);else r.length=0;return this},of=function(n){var i=null,t=c[this.id]&&c[this.id].handlers;return t&&(i="string"==typeof n&&n?t[n]?t[n].slice(0):[]:b(t)),i},sf=function(n){if(vf.call(this,n)){"object"==typeof n&&n&&"string"==typeof n.type&&n.type&&(n=o({},n));var t=o({},ti(n),{client:this});yf.call(this,t)}return this},hf=function(n){var t,i;if(!c[this.id])throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");for(n=oi(n),t=0;t<n.length;t++)h.call(n,t)&&n[t]&&1===n[t].nodeType&&(n[t].zcClippingId?-1===rt[n[t].zcClippingId].indexOf(this.id)&&rt[n[t].zcClippingId].push(this.id):(n[t].zcClippingId="zcClippingId_"+rf++,rt[n[t].zcClippingId]=[this.id],f.autoActivate===!0&&pf(n[t])),i=c[this.id]&&c[this.id].elements,-1===i.indexOf(n[t])&&i.push(n[t]));return this},cf=function(n){var e=c[this.id],i,u,t,r;if(!e)return this;for(u=e.elements,n="undefined"==typeof n?u.slice(0):oi(n),t=n.length;t--;)if(h.call(n,t)&&n[t]&&1===n[t].nodeType){for(i=0;-1!==(i=u.indexOf(n[t],i));)u.splice(i,1);if(r=rt[n[t].zcClippingId],r){for(i=0;-1!==(i=r.indexOf(this.id,i));)r.splice(i,1);0===r.length&&(f.autoActivate===!0&&wf(n[t]),delete n[t].zcClippingId)}}return this},lf=function(){var n=c[this.id];return n&&n.elements?n.elements.slice(0):[]},af=function(){c[this.id]&&(this.unclip(),this.off(),delete c[this.id])},vf=function(n){if(!n||!n.type||n.client&&n.client!==this)return!1;var i=c[this.id],t=i&&i.elements,r=!!t&&t.length>0,u=!n.target||r&&-1!==t.indexOf(n.target),f=n.relatedTarget&&r&&-1!==t.indexOf(n.relatedTarget),e=n.client&&n.client===this;return i&&(u||f||e)?!0:!1},yf=function(n){var i=c[this.id],f,s,t,e,h,l;if("object"==typeof n&&n&&n.type&&i){var a=ii(n),v=i&&i.handlers["*"]||[],y=i&&i.handlers[n.type]||[],r=v.concat(y);if(r&&r.length)for(l=this,f=0,s=r.length;s>f;f++)t=r[f],e=l,"string"==typeof t&&"function"==typeof u[t]&&(t=u[t]),"object"==typeof t&&t&&"function"==typeof t.handleEvent&&(e=t,t=t.handleEvent),"function"==typeof t&&(h=o({},n),ri(t,e,[h],a))}},oi=function(n){return"string"==typeof n&&(n=[]),"number"!=typeof n.length?[n]:n},pf=function(n){if(n&&1===n.nodeType){var t=function(n){(n||(n=u.event))&&("js"!==n._source&&(n.stopImmediatePropagation(),n.preventDefault()),delete n._source)},r=function(r){(r||(r=u.event))&&(t(r),i.focus(n))};n.addEventListener("mouseover",r,!1),n.addEventListener("mouseout",t,!1),n.addEventListener("mouseenter",t,!1),n.addEventListener("mouseleave",t,!1),n.addEventListener("mousemove",t,!1),vt[n.zcClippingId]={mouseover:r,mouseout:t,mouseenter:t,mouseleave:t,mousemove:t}}},wf=function(n){var t;if(n&&1===n.nodeType&&(t=vt[n.zcClippingId],"object"==typeof t&&t)){for(var i,r,f=["move","leave","enter","out","over"],u=0,e=f.length;e>u;u++)i="mouse"+f[u],r=t[i],"function"==typeof r&&n.removeEventListener(i,r,!1);delete vt[n.zcClippingId]}};i._createClient=function(){uf.apply(this,e(arguments))},i.prototype.on=function(){return ff.apply(this,e(arguments))},i.prototype.off=function(){return ef.apply(this,e(arguments))},i.prototype.handlers=function(){return of.apply(this,e(arguments))},i.prototype.emit=function(){return sf.apply(this,e(arguments))},i.prototype.clip=function(){return hf.apply(this,e(arguments))},i.prototype.unclip=function(){return cf.apply(this,e(arguments))},i.prototype.elements=function(){return lf.apply(this,e(arguments))},i.prototype.destroy=function(){return af.apply(this,e(arguments))},i.prototype.setText=function(n){if(!c[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return i.setData("text/plain",n),this},i.prototype.setHtml=function(n){if(!c[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return i.setData("text/html",n),this},i.prototype.setRichText=function(n){if(!c[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return i.setData("application/rtf",n),this},i.prototype.setData=function(){if(!c[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return i.setData.apply(this,e(arguments)),this},i.prototype.clearData=function(){if(!c[this.id])throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");return i.clearData.apply(this,e(arguments)),this},i.prototype.getData=function(){if(!c[this.id])throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");return i.getData.apply(this,e(arguments))},"function"==typeof define&&define.amd?define(function(){return i}):"object"==typeof module&&module&&"object"==typeof module.exports&&module.exports?module.exports=i:n.ZeroClipboard=i}(function(){return this||window}())