(function(a){function m(){return"file:"===window.location.protocol?"http://":"//"}function p(a,d){d=d?d:"";return a?p(--a,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+d):d}function q(a,d){var b=a.apiendpoint,k="",g,b=b+(0>=b.indexOf("?")?"?":"\x26"),b=b.replace("#","%23");null===a.maxWidth||"undefined"!==typeof a.params.maxwidth&&null!==a.params.maxwidth||(a.params.maxwidth=a.maxWidth);null===a.maxHeight||"undefined"!==typeof a.params.maxheight&& null!==a.params.maxheight||(a.params.maxheight=a.maxHeight);for(g in a.params)g!=a.callbackparameter&&null!==a.params[g]&&(k+="\x26"+escape(g)+"\x3d"+a.params[g]);b+="format\x3d"+a.format+"\x26url\x3d"+escape(d)+k;"json"!=a.dataType&&(b+="\x26"+a.callbackparameter+"\x3d?");return b}function n(a,d,b){k.beforeEmbed.call(b,a);k.onEmbed.call(b,a);k.afterEmbed.call(b,a)}function f(l,d,b){if(void 0!=a("#jqoembeddata").data(d)&&"iframe"!=b.embedtag.tag){var f={code:a("#jqoembeddata").data(d)};n(f,d,l)}else if(b.yql){var f= b.yql.from||"htmlstring",g=b.yql.url?b.yql.url(d):d,e="SELECT * FROM "+f+' WHERE url\x3d"'+g+'" and '+(/html/.test(f)?"xpath":"itemPath")+"\x3d'"+(b.yql.xpath||"/")+"'";"html"==f&&(e+=" and compat\x3d'html5'");f=a.extend({url:m()+"query.yahooapis.com/v1/public/yql",dataType:"jsonp",data:{q:e,format:"json",env:"store://datatables.org/alltableswithkeys",callback:"?"},success:function(c){if(b.yql.xpath&&"//meta|//title|//link"==b.yql.xpath){var e={};null==c.query&&(c.query={});null==c.query.results&& (c.query.results={meta:[]});for(var h=0,f=c.query.results.meta.length;hk.maxWidth&&(t=k.maxWidth/c,v=k.maxWidth,u=h*t,h*=t,c*=t),h>k.maxHeight&&(t=k.maxHeight/h,u=k.maxHeight,v=c*t,c*=t),h=u,c=v):(h=k.maxHeight,c=k.maxWidth));c=a("\x3c"+e+"/\x3e").attr("src",w).attr("width",c).attr("height",h).attr("allowfullscreen",b.embedtag.allowfullscreen||"true").attr("allowscriptaccess",b.embedtag.allowfullscreen||"always").css("max-height",k.maxHeight||"auto").css("max-width", k.maxWidth||"auto");"embed"==e&&(c.attr("type",b.embedtag.type||"application/x-shockwave-flash").attr("flashvars",d.replace(b.templateRegex,f)),""!==r&&c.attr("aria-label",r));"iframe"==e&&(c.attr("scrolling",b.embedtag.scrolling||"no").attr("frameborder",b.embedtag.frameborder||"0"),""!==r&&c.attr("title",r));n({code:c},d,l)}else b.apiendpoint?(b.apikey&&(b.apiendpoint=b.apiendpoint.replace("_APIKEY_",k.apikeys[b.name])),f=a.extend({url:d.replace(b.templateRegex,b.apiendpoint),dataType:"jsonp",success:function(c){var e= a.extend({},c);e.code=b.templateData(c);n(e,d,l)},error:k.onError.call(l,d,b)},k.ajaxOptions||{}),a.ajax(f)):n({code:d.replace(b.templateRegex,b.template)},d,l);else f=q(b,d),f=a.extend({url:f,dataType:b.dataType||"jsonp",success:function(b){b=a.extend({},b);provider=null;for(var c=0;c$/,"$1")||""}}:{from:"json",apiendpoint:this.apiendpoint,url:function(a){return this.apiendpoint+"?format\x3djson\x26url\x3d"+ a},datareturn:function(b){if("video"!=b.json.type&&(b.json.url||b.json.thumbnail_url))return'\x3cimg src\x3d"'+(b.json.url||b.json.thumbnail_url)+'" /\x3e';if(b.json.html.indexOf("iframe")){b.json.html.indexOf("allowfullscreen\x3e")&&(b.json.html=b.json.html.replace("allowfullscreen\x3e",'allowfullscreen\x3d"false"\x3e'));b=a.parseHTML(b.json.html);var l=b[0].width,d=b[0].height;if(k.maxHeight&&k.maxWidth)if(k.useResponsiveResize){var e,f=l,g=d;l>k.maxWidth&&(e=k.maxWidth/l,f=k.maxWidth,g=d*e,d*= e,l*=e);d>k.maxHeight&&(e=k.maxHeight/d,g=k.maxHeight,f=l*e);d=g;l=f}else d=k.maxHeight,l=k.maxWidth;b[0].width=l;b[0].height=d;return b[0].outerHTML}return b.json.html||""}},this.apiendpoint=null);for(var e in g)this[e]=g[e];this.format=this.format||"json";this.callbackparameter=this.callbackparameter||"callback";this.embedtag=this.embedtag||{tag:""}};a.fn.updateOEmbedProvider=function(l,d,b,f,g){for(var e=0;e>16)+(m>>16)+(k>>16)<<16|k&65535},m=function(f,m,k,l,d,b){f=a(a(m,f),a(l,b));return a(f<>>32-d,k)},p=function(a,r,k,l,d,b,n){return m(r&k|~r&l,a,r,d,b,n)},q=function(a,n,k,l,d,b,p){return m(n&l|k&~l,a,n,d,b,p)},n=function(a,n,k,l,d,b,p){return m(k^(n|~l),a,n,d,b,p)};return function(a){var m="",k,l=4*a.length;for(k=0;k>2]>>k%4*8+4&15)+"0123456789abcdef".charAt(a[k>>2]>> k%4*8&15);return m}(function(f){var r,k,l,d,b,y=f.length,g=1732584193,e=-271733879,c=-1732584194,h=271733878;for(b=0;b>6)+1,k=[],l,d=16*m,b=a.length;for(l=0;l>2]|=(a.charCodeAt(l)& 255)<>2]|=128<