* 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) 2009-2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.2.0
*/
!function(a,b){"use strict";varc,d,e,f=a,g=f.document,h=f.navigator,i=f.setTimeout,j=f.clearTimeout,k=f.setInterval,l=f.clearInterval,m=f.getComputedStyle,n=f.encodeURIComponent,o=f.ActiveXObject,p=f.Error,q=f.Number.parseInt||f.parseInt,r=f.Number.parseFloat||f.parseFloat,s=f.Number.isNaN||f.isNaN,t=f.Date.now,u=f.Object.keys,v=f.Object.defineProperty,w=f.Object.prototype.hasOwnProperty,x=f.Array.prototype.slice,y=function(){vara=function(a){returna};if("function"==typeoff.wrap&&"function"==typeoff.unwrap)try{varb=g.createElement("div"),c=f.unwrap(b);1===b.nodeType&&c&&1===c.nodeType&&(a=f.unwrap)}catch(d){}returna}(),z=function(a){returnx.call(a,0)},A=function(){vara,c,d,e,f,g,h=z(arguments),i=h[0]||{};for(a=1,c=h.length;c>a;a++)if(null!=(d=h[a]))for(eind)w.call(d,e)&&(f=i[e],g=d[e],i!==g&&g!==b&&(i[e]=g));returni},B=function(a){varb,c,d,e;if("object"!=typeofa||null==a||"number"==typeofa.nodeType)b=a;elseif("number"==typeofa.length)for(b=[],c=0,d=a.length;d>c;c++)w.call(a,c)&&(b[c]=B(a[c]));else{b={};for(eina)w.call(a,e)&&(b[e]=B(a[e]))}returnb},C=function(a,b){for(varc={},d=0,e=b.length;e>d;d++)b[d]ina&&(c[b[d]]=a[b[d]]);returnc},D=function(a,b){varc={};for(vardina)-1===b.indexOf(d)&&(c[d]=a[d]);returnc},E=function(a){if(a)for(varbina)w.call(a,b)&&deletea[b];returna},F=function(a,b){if(a&&1===a.nodeType&&a.ownerDocument&&b&&(1===b.nodeType&&b.ownerDocument&&b.ownerDocument===a.ownerDocument||9===b.nodeType&&!b.ownerDocument&&b===a.ownerDocument))do{if(a===b)return!0;a=a.parentNode}while(a);return!1},G=function(a){varb;return"string"==typeofa&&a&&(b=a.split("#")[0].split("?")[0],b=a.slice(0,a.lastIndexOf("/")+1)),b},H=function(a){varb,c;return"string"==typeofa&&a&&(c=a.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),c&&c[1]?b=c[1]:(c=a.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),c&&c[1]&&(b=c[1]))),b},I=function(){vara,b;try{thrownewp}catch(c){b=c}returnb&&(a=b.sourceURL||b.fileName||H(b.stack)),a},J=function(){vara,c,d;if(g.currentScript&&(a=g.currentScript.src))returna;if(c=g.getElementsByTagName("script"),1===c.length)returnc[0].src||b;if("readyState"inc[0])for(d=c.length;d--;)if("interactive"===c[d].readyState&&(a=c[d].src))returna;return"loading"===g.readyState&&(a=c[c.length-1].src)?a:(a=I())?a:b},K=function(){vara,c,d,e=g.getElementsByTagName("script");for(a=e.length;a--;){if(!(d=e[a].src)){c=null;break}if(d=G(d),null==c)c=d;elseif(c!==d){c=null;break}}returnc||b},L=function(){vara=G(J())||K()||"";returna+"ZeroClipboard.swf"},M=function(){returnnull==a.opener&&(!!a.top&&a!=a.top||!!a.parent&&a!=a.parent)}(),N={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,sandboxed:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},O="11.0.0",P={},Q={},R=null,S=0,T=0,U={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"}},V=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],W=["flash-disabled","flash-outdated","flash-sandboxed","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],X=newRegExp("^flash-("+W.map(function(a){returna.replace(/^flash-/,"")}).join("|")+")$"),Y=newRegExp("^flash-("+W.slice(1).map(function(a){returna.replace(/^flash-/,"")}).join("|")+")$"),Z={swfPath:L(),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},$=function(a){if("object"==typeofa&&null!==a)for(varbina)if(w.call(a,b))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(b))Z[b]=a[b];elseif(null==N.bridge)if("containerId"===b||"swfObjectId"===b){if(!nb(a[b]))thrownewError("The specified `"+b+"` value is not valid as an HTML4 Element ID");Z[b]=a[b]}elseZ[b]=a[b];{if("string"!=typeofa||!a)returnB(Z);if(w.call(Z,a))returnZ[a]}},_=function(){returnTb(),{browser:C(h,["userAgent","platform","appName"]),flash:D(N,["bridge"]),zeroclipboard:{version:Vb.version,config:Vb.config()}}},ab=function(){return!!(N.disabled||N.outdated||N.sandboxed||N.unavailable||N.degraded||N.deactivated)},bb=function(a,d){vare,f,g,h={};if("string"==typeofa&&a)g=a.toLowerCase().split(/\s+/);elseif("object"==typeofa&&a&&"undefined"==typeofd)for(eina)w.call(a,e)&&"string"==typeofe&&e&&"function"==typeofa[e]&&Vb.on(e,a[e]);if(g&&g.length){for(e=0,f=g.length;f>e;e++)a=g[e].replace(/^on/,""),h[a]=!0,P[a]||(P[a]=[]),P[a].push(d);if(h.ready&&N.ready&&Vb.emit({type:"ready"}),h.error){for(e=0,f=W.length;f>e;e++)if(N[W[e].replace(/^flash-/,"")]===!0){Vb.emit({type:"error",name:W[e]});break}c!==b&&Vb.version!==c&&Vb.emit({type:"error",name:"version-mismatch",jsVersion:Vb.version,swfVersion:c})}}returnVb},cb=function(a,b){varc,d,e,f,g;if(0===arguments.length)f=u(P);elseif("string"==typeofa&&a)f=a.split(/\s+/);elseif("object"==typeofa&&a&&"undefined"==typeofb)for(cina)w.call(a,c)&&"string"==typeofc&&c&&"function"==typeofa[c]&&Vb.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=P[a],g&&g.length)if(b)for(e=g.indexOf(b);-1!==e;)g.splice(e,1),e=g.indexOf(b,e);elseg.length=0;returnVb},db=function(a){varb;returnb="string"==typeofa&&a?B(P[a])||null:B(P)},eb=function(a){varb,c,d;returna=ob(a),a&&!vb(a)?"ready"===a.type&&N.overdue===!0?Vb.emit({type:"error",name:"flash-overdue"}):(b=A({},a),tb.call(this,b),"copy"===a.type&&(d=Db(Q),c=d.data,R=d.formatMap),c):void0},fb=function(){vara=N.sandboxed;if(Tb(),"boolean"!=typeofN.ready&&(N.ready=!1),N.sandboxed!==a&&N.sandboxed===!0)N.ready=!1,Vb.emit({type:"error",name:"flash-sandboxed"});elseif(!Vb.isFlashUnusable()&&null===N.bridge){varb=Z.flashLoadTimeout;"number"==typeofb&&b>=0&&(S=i(function(){"boolean"!=typeofN.deactivated&&(N.deactivated=!0),N.deactivated===!0&&Vb.emit({type:"error",name:"flash-deactivated"})},b)),N.overdue=!1,Bb()}},gb=function(){Vb.clearData(),Vb.blur(),Vb.emit("destroy"),Cb(),Vb.off()},hb=function(a,b){varc;if("object"==typeofa&&a&&"undefined"==typeofb)c=a,Vb.clearData();else{if("string"!=typeofa||!a)return;c={},c[a]=b}for(vardinc)"string"==typeofd&&d&&w.call(c,d)&&"string"==typeofc[d]&&c[d]&&(Q[d]=c[d])},ib=function(a){"undefined"==typeofa?(E(Q),R=null):"string"==typeofa&&w.call(Q,a)&&deleteQ[a]},jb=function(a){return"undefined"==typeofa?B(Q):"string"==typeofa&&w.call(Q,a)?Q[a]:void0},kb=function(a){if(a&&1===a.nodeType){d&&(Lb(d,Z.activeClass),d!==a&&Lb(d,Z.hoverClass)),d=a,Kb(a,Z.hoverClass);varb=a.getAttribute("title")||Z.title;if("string"==typeofb&&b){varc=Ab(N.bridge);c&&c.setAttribute("title",b)}vare=Z.forceHandCursor===!0||"pointer"===Mb(a,"cursor");Rb(e),Qb()}},lb=function(){vara=Ab(N.bridge);a&&(a.removeAttribute("title"),a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.height="1px"),d&&(Lb(d,Z.hoverClass),Lb(d,Z.activeClass),d=null)},mb=function(){returnd||null},nb=function(a){return"string"==typeofa&&a&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(a)},ob=function(a){varb;if("string"==typeofa&&a?(b=a,a={}):"object"==typeofa&&a&&"string"==typeofa.type&&a.type&&(b=a.type),b){b=b.toLowerCase(),!a.target&&(/^(copy|aftercopy|_click)$/.test(b)||"error"===b&&"clipboard-error"===a.name)&&(a.target=e),A(a,{type:b,target:a.target||d||null,relatedTarget:a.relatedTarget||null,currentTarget:N&&N.bridge||null,timeStamp:a.timeStamp||t()||null});varc=U[a.type];return"error"===a.type&&a.name&&c&&(c=c[a.name]),c&&(a.message=c),"ready"===a.type&&A(a,{target:null,version:N.version}),"error"===a.type&&(X.test(a.name)&&A(a,{target:null,minimumVersion:O}),Y.test(a.name)&&A(a,{version:N.version})),"copy"===a.type&&(a.clipboardData={setData:Vb.setData,clearData:Vb.clearData}),"aftercopy"===a.type&&(a=Eb(a,R)),a.target&&!a.relatedTarget&&(a.relatedTarget=pb(a.target)),qb(a)}},pb=function(a){varb=a&&a.getAttribute&&a.getAttribute("data-clipboard-target");returnb?g.getElementById(b):null},qb=function(a){if(a&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)){varc=a.target,d="_mouseover"===a.type&&a.relatedTarget?a.relatedTarget:b,e="_mouseout"===a.type&&a.relatedTarget?a.relatedTarget:b,h=Nb(c),i=f.screenLeft||f.screenX||0,j=f.screenTop||f.screenY||0,k=g.body.scrollLeft+g.documentElement.scrollLeft,l=g.body.scrollTop+g.documentElement.scrollTop,m=h.left+("number"==typeofa._stageX?a._stageX:0),n=h.top+("number"==typeofa._stageY?a._stageY:0),o=m-k,p=n-l,q=i+o,r=j+p,s="number"==typeofa.movementX?a.movementX:0,t="number"==typeofa.movementY?a.movementY:0;deletea._stageX,deletea._stageY,A(a,{srcElement:c,fromElement:d,toElement:e,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})}returna},rb=function(a){varb=a&&"string"==typeofa.type&&a.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(b)},sb=function(a,b,c,d){d?i(function(){a.apply(b,c)},0):a.apply(b,c)},tb=function(a){if("object"==typeofa&&a&&a.type){varb=rb(a),c=P["*"]||[],d=P[a.type]||[],e=c.concat(d);if(e&&e.length){varg,h,i,j,k,l=this;for(g=0,h=e.length;h>g;g++)i=e[g],j=l,"string"==typeofi&&"function"==typeoff[i]&&(i=f[i]),"object"==typeofi&&i&&"function"==typeofi.handleEvent&&(j=i,i=i.handleEvent),"function"==typeofi&&(k=A({},a),sb(i,j,[k],b))}returnthis}},ub=function(a){varb=null;return(M===!1||a&&"error"===a.type&&a.name&&-1!==V.indexOf(a.name))&&(b=!1),b},vb=function(a){varb=a.target||d||null,f="swf"===a._source;switch(deletea._source,a.type){case"error":varg="flash-sandboxed"===a.name||ub(a);"boolean"==typeofg&&(N.sandboxed=g),-1!==W.indexOf(a.name)?A(N,{disabled:"flash-disabled"===a.name,outdated:"flash-outdated"===a.name,unavailable:"flash-unavailable"===a.name,degraded:"flash-degraded"===a.name,deactivated:"flash-deactivated"===a.name,overdue:"flash-overdue"===a.name,ready:!1}):"version-mismatch"===a.name&&(c=a.swfVersion,A(N,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),Pb();break;case"ready":c=a.swfVersion;varh=N.deactivated===!0;A(N,{disabled:!1,outdated:!1,sandboxed:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:h,ready:!h}),Pb();break;case"beforecopy":e=b;break;case"copy":vari,j,k=a.relatedTarget;!Q["text/html"]&&!Q["text/plain"]&&k&&(j=k.value||k.outerHTML||k.innerHTML)&&(i=k.value||k.textContent||k.innerText)?(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",i),j!==i&&a.clipboardData.setData("text/html",j)):!Q["text/plain"]&&a.target&&(i=a.target.getAttribute("data-clipboard-text"))&&(a.clipboardData.clearData(),a.clipboardData.setData("text/plain",i));break;case"aftercopy":wb(a),Vb.clearData(),b&&b!==Jb()&&b.focus&&b.focus();break;case"_mouseover":Vb.focus(b),Z.bubbleEvents===!0&&f&&(b&&b!==a.relatedTarget&&!F(a.relatedTarget,b)&&xb(A({},a,{type:"mouseenter",bubbles:!1,cancelable:!1})),xb(A({},a,{type:"mouseover"})));break;case"_mouseout":Vb.blur(),Z.bubbleEvents===!0&&f&&(b&&b!==a.relatedTarget&&!F(a.relatedTarget,b)&&xb(A({},a,{type:"mouseleave",bubbles:!1,cancelable:!1})),xb(A({},a,{type:"mouseout"})));break;case"_mousedown":Kb(b,Z.activeClass),Z.bubbleEvents===!0&&f&&xb(A({},a,{type:a.type.slice(1)}));break;case"_mouseup":Lb(b,Z.activeClass),Z.bubbleEvents===!0&&f&&xb(A({},a,{type:a.type.slice(1)}));break;case"_click":e=null,Z.bubbleEvents===!0&&f&&xb(A({},a,{type:a.type.slice(1)}));break;case"_mousemove":Z.bubbleEvents===!0&&f&&xb(A({},a,{type:a.type.slice(1)}))}return/^_(?:click|mouse(?:over|out|down|up|move))$/.test(a.type)?!0:void0},wb=function(a){if(a.errors&&a.errors.length>0){varb=B(a);A(b,{type:"error",name:"clipboard-error"}),deleteb.success,i(function(){Vb.emit(b)},0)}},xb=function(a){if(a&&"string"==typeofa.type&&a){varb,c=a.target||null,d=c&&c.ownerDocument||g,e={view:d.defaultView||f,canBubble:!0,cancelable:!0,detail:"click"===a.type?1:0,button:"number"==typeofa.which?a.which-1:"number"==typeofa.button?a.button:d.createEvent?0:1},h=A(e,a);c&&d.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=d.createEvent("MouseEvents"),b.initMouseEvent&&(b.initMouseEvent.apply(b,h),b._source="js",c.dispatchEvent(b)))}},yb=function(){vara=Z.flashLoadTimeout;if("number"==typeofa&&a>=0){varb=Math.min(1e3,a/10),c=Z.swfObjectId+"_fallbackContent";T=k(function(){vara=g.getElementById(c);Ob(a)&&(Pb(),N.deactivated=null,Vb.emit({type:"error",name:"swf-not-found"}))},b)}},zb=function(){vara=g.createElement("div");returna.id=Z.containerId,a.className=Z.containerClass,a.style.position="absolute",a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.height="1px",a.style.zIndex=""+Sb(Z.zIndex),a},Ab=function(a){for(varb=a&&a.parentNode;b&&"OBJECT"===b.nodeName&&b.parentNode;)b=b.parentNode;returnb||null},Bb=function(){vara,b=N.bridge,c=Ab(b);if(!b){vard=Ib(f.location.host,Z),e="never"===d?"none":"all",h=Gb(A({jsVersion:Vb.version},Z)),i=Z.swfPath+Fb(Z.swfPath,Z);c=zb();varj=g.createElement("div");c.appendChild(j),g.body.appendChild(c);vark=g.createElement("div"),l="activex"===N.pluginType;k.innerHTML='<object id="'+Z.swfObjectId+'" name="'+Z.swfObjectId+'" width="100%" height="100%" '+(l?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+i+'"')+">"+(l?'<param name="movie" value="'+i+'"/>':"")+'<param name="allowScriptAccess" value="'+d+'"/><param name="allowNetworking" value="'+e+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+h+'"/><div id="'+Z.swfObjectId+'_fallbackContent"> </div></object>',b=k.firstChild,k=null,y(b).ZeroClipboard=Vb,c.replaceChild(b,j),yb()}returnb||(b=g[Z.swfObjectId],b&&(a=b.length)&&(b=b[a-1]),!b&&c&&(b=c.firstChild)),N.bridge=b||null,b},Cb=function(){vara=N.bridge;if(a){vard=Ab(a);d&&("activex"===N.pluginType&&"readyState"ina?(a.style.display="none",functione(){if(4===a.readyState){for(varbina)"function"==typeofa[b]&&(a[b]=null);a.parentNode&&a.parentNode.removeChild(a),d.parentNode&&d.parentNode.removeChild(d)}elsei(e,10)}()):(a.parentNode&&a.parentNode.removeChild(a),d.parentNode&&d.parentNode.removeChild(d))),Pb(),N.ready=null,N.bridge=null,N.deactivated=null,c=b}},Db=function(a){varb={},c={};if("object"==typeofa&&a){for(vardina)if(d&&w.call(a,d)&&"string"==typeofa[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}}},Eb=function(a,b){if("object"!=typeofa||!a||"object"!=typeofb||!b)returna;varc={};for(vardina)if(w.call(a,d))if("errors"===d){c[d]=a[d]?a[d].slice():[];for(vare=0,f=c[d].length;f>e;e++)c[d][e].format=b[c[d][e].format]}elseif("success"!==d&&"data"!==d)c[d]=a[d];else{c[d]={};varg=a[d];for(varhing)h&&w.call(g,h)&&w.call(b,h)&&(c[d][b[h]]=g[h])}returnc},Fb=function(a,b){varc=null==b||b&&b.cacheBust===!0;returnc?(-1===a.indexOf("?")?"?":"&")+"noCache="+t():""},Gb=function(a){varb,c,d,e,g="",h=[];if(a.trustedDomains&&("string"==typeofa.trustedDomains?e=[a.trustedDomains]:"object"==typeofa.trustedDomains&&"length"ina.trustedDomains&&(e=a.trustedDomains)),e&&e.length)for(b=0,c=e.length;c>b;b++)if(w.call(e,b)&&e[b]&&"string"==typeofe[b]){if(d=Hb(e[b]),!d)continue;if("*"===d){h.length=0,h.push(d);break}h.push.apply(h,[d,"//"+d,f.location.protocol+"//"+d])}returnh.length&&(g+="trustedOrigins="+n(h.join(","))),a.forceEnhancedClipboard===!0&&(g+=(g?"&":"")+"forceEnhancedClipboard=true"),"string"==typeofa.swfObjectId&&a.swfObjectId&&(g+=(g?"&":"")+"swfObjectId="+n(a.swfObjectId)),"string"==typeofa.jsVersion&&a.jsVersion&&(g+=(g?"&":"")+"jsVersion="+n(a.jsVersion)),g},Hb=function(a){if(null==a||""===a)returnnull;if(a=a.replace(/^\s+|\s+$/g,""),""===a)returnnull;varb=a.indexOf("//");a=-1===b?a:a.slice(b+2);varc=a.indexOf("/");returna=-1===c?a:-1===b||0===c?null:a.slice(0,c),a&&".swf"===a.slice(-4).toLowerCase()?null:a||null},Ib=function(){vara=function(a){varb,c,d,e=[];if("string"==typeofa&&(a=[a]),"object"!=typeofa||!a||"number"!=typeofa.length)returne;for(b=0,c=a.length;c>b;b++)if(w.call(a,b)&&(d=Hb(a[b]))){if("*"===d){e.length=0,e.push("*");break}-1===e.indexOf(d)&&e.push(d)}returne};returnfunction(b,c){vard=Hb(c.swfPath);null===d&&(d=b);vare=a(c.trustedDomains),f=e.length;if(f>0){if(1===f&&"*"===e[0])return"always";if(-1!==e.indexOf(b))return1===f&&b===d?"sameDomain":"always"}return"never"}}(),Jb=function(){try{returng.activeElement}catch(a){returnnull}},Kb=function(a,b){varc,d,e,f=[];if("string"==typeofb&&b&&(f=b.split(/\s+/)),a&&1===a.nodeType&&f.length>0)if(a.classList)for(c=0,d=f.length;d>c;c++)a.classList.add(f[c]);elseif(a.hasOwnProperty("className")){for(e=" "+a.className+" ",c=0,d=f.length;d>c;c++)-1===e.indexOf(" "+f[c]+" ")&&(e+=f[c]+" ");a.className=e.replace(/^\s+|\s+$/g,"")}returna},Lb=function(a,b){varc,d,e,f=[];if("string"==typeofb&&b&&(f=b.split(/\s+/)),a&&1===a.nodeType&&f.length>0)if(a.classList&&a.classList.length>0)for(c=0,d=f.length;d>c;c++)a.classList.remove(f[c]);elseif(a.className){for(e=(" "+a.className+" ").replace(/[\r\n\t]/g," "),c=0,d=f.length;d>c;c++)e=e.replace(" "+f[c]+" "," ");a.className=e.replace(/^\s+|\s+$/g,"")}returna},Mb=function(a,b){varc=m(a,null).getPropertyValue(b);return"cursor"!==b||c&&"auto"!==c||"A"!==a.nodeName?c:"pointer"},Nb=function(a){varb={left:0,top:0,width:0,height:0};if(a.getBoundingClientRect){varc=a.getBoundingClientRect(),d=f.pageXOffset,e=f.pageYOffset,h=g.documentElement.clientLeft||0,i=g.documentElement.clientTop||0,j=0,k=0;if("relative"===Mb(g.body,"position")){varl=g.body.getBoundingClientRect(),m=g.documentElement.getBoundingClientRect();j=l.left-m.left||0,k=l.top-m.top||0}b.left=c.left+d-h-j,b.top=c.top+e-i-k,b.width="width"inc?c.width:c.right-c.left,b.height="height"inc?c.height:c.bottom-c.top}returnb},Ob=function(a){if(!a)return!1;varb=m(a,null),c=r(b.height)>0,d=r(b.width)>0,e=r(b.top)>=0,f=r(b.left)>=0,g=c&&d&&e&&f,h=g?null:Nb(a),i="none"!==b.display&&"collapse"!==b.visibility&&(g||!!h&&(c||h.height>0)&&(d||h.width>0)&&(e||h.top>=0)&&(f||h.left>=0));returni},Pb=function(){j(S),S=0,l(T),T=0},Qb=function(){vara;if(d&&(a=Ab(N.bridge))){varb=Nb(d);A(a.style,{width:b.width+"px",height:b.height+"px",top:b.top+"px",left:b.left+"px",zIndex:""+Sb(Z.zIndex)})}},Rb=function(a){N.ready===!0&&(N.bridge&&"function"==typeofN.bridge.setHandCursor?N.bridge.setHandCursor(a):N.ready=!1)},Sb=function(a){if(/^(?:auto|inherit)$/.test(a))returna;varb;return"number"!=typeofa||s(a)?"string"==typeofa&&(b=Sb(q(a,10))):b=a,"number"==typeofb?b:"auto"},Tb=function(b){varc,d,e,f=N.sandboxed,g=null;if(b=b===!0,M===!1)g=!1;else{try{d=a.frameElement||null}catch(h){e={name:h.name,message:h.message}}if(d&&1===d.nodeType&&"IFRAME"===d.nodeName)try{g=d.hasAttribute("sandbox")}catch(h){g=null}else{try{c=document.domain||null}catch(h){c=null}(null===c||e&&"SecurityError"===e.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(e.message.toLowerCase()))&&(g=!0)}}returnN.sandboxed=g,f===g||b||Ub(o),g},Ub=function(a){functionb(a){varb=a.match(/[\d]+/g);returnb.length=3,b.join(".")}functionc(a){return!!a&&(a=a.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(a)||"chrome.plugin"===a.slice(-13))}functiond(a){a&&(i=!0,a.version&&(l=b(a.version)),!l&&a.description&&(l=b(a.description)),a.filename&&(k=c(a.filename)))}vare,f,g,i=!1,j=!1,k=!1,l="";if(h.plugins&&h.plugins.length)e=h.plugins["Shockwave Flash"],d(e),h.plugins["Shockwave Flash 2.0"]&&(i=!0,l="2.0.0.11");elseif(h.mimeTypes&&h.mimeTypes.length)g=h.mimeTypes["application/x-shockwave-flash"],e=g&&g.enabledPlugin,d(e);elseif("undefined"!=typeofa){j=!0;try{f=newa("ShockwaveFlash.ShockwaveFlash.7"),i=!0,l=b(f.GetVariable("$version"))}catch(m){try{f=newa("ShockwaveFlash.ShockwaveFlash.6"),i=!0,l="6.0.21"}catch(n){try{f=newa("ShockwaveFlash.ShockwaveFlash"),i=!0,l=b(f.GetVariable("$version"))}catch(o){j=!1}}}}N.disabled=i!==!0,N.outdated=l&&r(l)<r(O),N.version=l||"0.0.0",N.pluginType=k?"pepper":j?"activex":i?"netscape":"unknown"};Ub(o),Tb(!0);varVb=function(){returnthisinstanceofVb?void("function"==typeofVb._createClient&&Vb._createClient.apply(this,z(arguments))):newVb};v(Vb,"version",{value:"2.2.0",writable:!1,configurable:!0,enumerable:!0}),Vb.config=function(){return$.apply(this,z(arguments))},Vb.state=function(){return_.apply(this,z(arguments))},Vb.isFlashUnusable=function(){returnab.apply(this,z(arguments))},Vb.on=function(){returnbb.apply(this,z(arguments))},Vb.off=function(){returncb.apply(this,z(arguments))},Vb.handlers=function(){returndb.apply(this,z(arguments))},Vb.emit=function(){returneb.apply(this,z(arguments))},Vb.create=function(){returnfb.apply(this,z(arguments))},Vb.destroy=function(){returngb.apply(this,z(arguments))},Vb.setData=function(){returnhb.apply(this,z(arguments))},Vb.clearData=function(){returnib.apply(this,z(arguments))},Vb.getData=function(){returnjb.apply(this,z(arguments))},Vb.focus=Vb.activate=function(){returnkb.apply(this,z(arguments))},Vb.blur=Vb.deactivate=function(){returnlb.apply(this,z(arguments))},Vb.activeElement=function(){returnmb.apply(this,z(arguments))};varWb=0,Xb={},Yb=0,Zb={},$b={};A(Z,{autoActivate:!0});var_b=function(a){varb=this;b.id=""+Wb++,Xb[b.id]={instance:b,elements:[],handlers:{}},a&&b.clip(a),Vb.on("*",function(a){returnb.emit(a)}),Vb.on("destroy",function(){b.destroy()}),Vb.create()},ac=function(a,d){vare,f,g,h={},i=Xb[this.id],j=i&&i.handlers;if(!i)thrownewError("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeofa&&a)g=a.toLowerCase().split(/\s+/);elseif("object"==typeofa&&a&&"undefined"==typeofd)for(eina)w.call(a,e)&&"string"==typeofe&&e&&"function"==typeofa[e]&&this.on(e,a[e]);if(g&&g.length){for(e=0,f=g.length;f>e;e++)a=g[e].replace(/^on/,""),h[a]=!0,j[a]||(j[a]=[]),j[a].push(d);if(h.ready&&N.ready&&this.emit({type:"ready",client:this}),h.error){for(e=0,f=W.length;f>e;e++)if(N[W[e].replace(/^flash-/,"")]){this.emit({type:"error",name:W[e],client:this});break}c!==b&&Vb.version!==c&&this.emit({type:"error",name:"version-mismatch",jsVersion:Vb.version,swfVersion:c})}}returnthis},bc=function(a,b){varc,d,e,f,g,h=Xb[this.id],i=h&&h.handlers;if(!i)returnthis;if(0===arguments.length)f=u(i);elseif("string"==typeofa&&a)f=a.split(/\s+/);elseif("object"==typeofa&&a&&"undefined"==typeofb)for(cina)w.call(a,c)&&"string"==typeofc&&c&&"function"==typeofa[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=i[a],g&&g.length)if(b)for(e=g.indexOf(b);-1!==e;)g.splice(e,1),e=g.indexOf(b,e);elseg.length=0;returnthis},cc=function(a){varb=null,c=Xb[this.id]&&Xb[this.id].handlers;returnc&&(b="string"==typeofa&&a?c[a]?c[a].slice(0):[]:B(c)),b},dc=function(a){if(ic.call(this,a)){"object"==typeofa&&a&&"string"==typeofa.type&&a.type&&(a=A({},a));varb=A({},ob(a),{client:this});jc.call(this,b)}returnthis},ec=function(a){if(!Xb[this.id])thrownewError("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");a=kc(a);for(varb=0;b<a.length;b++)if(w.call(a,b)&&a[b]&&1===a[b].nodeType){a[b].zcClippingId?-1===Zb[a[b].zcClippingId].indexOf(this.id)&&Zb[a[b].zcClippingId].push(this.id):(a[b].zcClippingId="zcClippingId_"+Yb++,Zb[a[b].zcClippingId]=[this.id],Z.autoActivate===!0&&lc(a[b]));varc=Xb[this.id]&&Xb[this.id].elements;-1===c.indexOf(a[b])&&c.push(a[b])}returnthis},fc=function(a){varb=Xb[this.id];if(!b)returnthis;varc,d=b.elements;a="undefined"==typeofa?d.slice(0):kc(a);for(vare=a.length;e--;)if(w.call(a,e)&&a[e]&&1===a[e].nodeType){for(c=0;-1!==(c=d.indexOf(a[e],c));)d.splice(c,1);varf=Zb[a[e].zcClippingId];if(f){for(c=0;-1!==(c=f.indexOf(this.id,c));)f.splice(c,1);0===f.length&&(Z.autoActivate===!0&&mc(a[e]),deletea[e].zcClippingId)}}returnthis},gc=function(){vara=Xb[this.id];returna&&a.elements?a.elements.slice(0):[]},hc=function(){Xb[this.id]&&(this.unclip(),this.off(),deleteXb[this.id])},ic=function(a){if(!a||!a.type)return!1;if(a.client&&a.client!==this)return!1;varb=Xb[this.id],c=b&&b.elements,d=!!c&&c.length>0,e=!a.target||d&&-1!==c.indexOf(a.target),f=a.relatedTarget&&d&&-1!==c.indexOf(a.relatedTarget),g=a.client&&a.client===this;returnb&&(e||f||g)?!0:!1},jc=function(a){varb=Xb[this.id];if("object"==typeofa&&a&&a.type&&b){varc=rb(a),d=b&&b.handlers["*"]||[],e=b&&b.handlers[a.type]||[],g=d.concat(e);if(g&&g.length){varh,i,j,k,l,m=this;for(h=0,i=g.length;i>h;h++)j=g[h],k=m,"string"==typeofj&&"function"==typeoff[j]&&(j=f[j]),"object"==typeofj&&j&&"function"==typeofj.handleEvent&&(k=j,j=j.handleEvent),"function"==typeofj&&(l=A({},a),sb(j,k,[l],c))}}},kc=function(a){return"string"==typeofa&&(a=[]),"number"!=typeofa.length?[a]:a},lc=function(a){if(a&&1===a.nodeType){varb=function(a){(a||(a=f.event))&&("js"!==a._source&&(a.stopImmediatePropagation(),a.preventDefault()),deletea._source)},c=function(c){(c||(c=f.event))&&(b(c),Vb.focus(a))};a.addEventListener("mouseover",c,!1),a.addEventListener("mouseout",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),a.addEventListener("mousemove",b,!1),$b[a.zcClippingId]={mouseover:c,mouseout:b,mouseenter:b,mouseleave:b,mousemove:b}}},mc=function(a){if(a&&1===a.nodeType){varb=$b[a.zcClippingId];if("object"==typeofb&&b){for(varc,d,e=["move","leave","enter","out","over"],f=0,g=e.length;g>f;f++)c="mouse"+e[f],d=b[c],"function"==typeofd&&a.removeEventListener(c,d,!1);delete$b[a.zcClippingId]}}};Vb._createClient=function(){_b.apply(this,z(arguments))},Vb.prototype.on=function(){returnac.apply(this,z(arguments))},Vb.prototype.off=function(){returnbc.apply(this,z(arguments))},Vb.prototype.handlers=function(){returncc.apply(this,z(arguments))},Vb.prototype.emit=function(){returndc.apply(this,z(arguments))},Vb.prototype.clip=function(){returnec.apply(this,z(arguments))},Vb.prototype.unclip=function(){returnfc.apply(this,z(arguments))},Vb.prototype.elements=function(){returngc.apply(this,z(arguments))},Vb.prototype.destroy=function(){returnhc.apply(this,z(arguments))},Vb.prototype.setText=function(a){if(!Xb[this.id])thrownewError("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");returnVb.setData("text/plain",a),this},Vb.prototype.setHtml=function(a){if(!Xb[this.id])thrownewError("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");returnVb.setData("text/html",a),this},Vb.prototype.setRichText=function(a){if(!Xb[this.id])thrownewError("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");returnVb.setData("application/rtf",a),this},Vb.prototype.setData=function(){if(!Xb[this.id])thrownewError("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");returnVb.setData.apply(this,z(arguments)),this},Vb.prototype.clearData=function(){if(!Xb[this.id])thrownewError("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");returnVb.clearData.apply(this,z(arguments)),this},Vb.prototype.getData=function(){if(!Xb[this.id])thrownewError("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");returnVb.getData.apply(this,z(arguments))},true?!(__WEBPACK_AMD_DEFINE_RESULT__=function(){returnVb}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)):"object"==typeofmodule&&module&&"object"==typeofmodule.exports&&module.exports?module.exports=Vb:a.ZeroClipboard=Vb}(function(){returnthis||window}());