jetheredge/SquishIt — Issue #134: Javascript wont run in opera
Author: Petoj87
Created: 2012-01-06 01:39:03+00:00
State: open

Well i just started using SquishIt and i love it great product, but it seems the result from it does not run on opera, IE runs it fine..
not even the first alert is running what am i doing wrong?

<%= Bundle.JavaScript().Add("~/Scripts/jquery-1.7.1.js", "~/Scripts/Gallery.js").Render("~/SquishIt/js#.js")%>
http://code.jquery.com/jquery-1.7.1.js
Gallery.js:
```javascript
alert("1");
$(document).ready(function () {
alert("1");
});
```
SquishIt result:
```javascript
/*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*
* Date: Mon Nov 21 21:11:03 2011 -0500
*/
(function(n,t){function eu(n){var r=hr[n]={},t,i;for(n=n.split(/\s+/),t=0,i=n.length;t=0===r})}function wi(n){var i=ki.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function uf(n){return i.nodeName(n,"table")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function dt(n,t){if(t.nodeType!==1||!i.hasData(n))return;var f,u,o,s=i._data(n),e=i._data(t,s),r=s.events;if(r){delete e.handle,e.events={};for(f in r)for(u=0,o=r[f].length;u0){if(r!=="border")for(;f").appendTo(e),u=t.css("display");t.remove(),(u==="none"||u==="")&&(f||(f=r.createElement("iframe"),f.frameBorder=f.width=f.height=0),e.appendChild(f),c&&f.createElement||(c=(f.contentWindow||f.contentDocument).document,c.write((r.compatMode==="CSS1Compat"?"":"")+"

"),c.close()),t=c.createElement(n),c.body.appendChild(t),u=i.css(t,"display"),e.removeChild(f)),ht[n]=u}return ht[n]}function it(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var r=n.document,ou=n.navigator,su=n.location,i=function(){function l(){if(i.isReady)return;try{r.documentElement.doScroll("left")}catch(n){setTimeout(l,1);return}i.ready()}var i=function(n,t){return new i.fn.init(n,t,p)},g=n.jQuery,it=n.$,p,tt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,w=/\S/,y=/^\s+/,b=/\s+$/,k=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,rt=/^[\],:{}\s]*$/,ft=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,ot=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,st=/(?:^|:|,)(?:\s*\[)+/g,et=/(webkit)[ \/]([\w.]+)/,ut=/(opera)(?:.*version)?[ \/]([\w.]+)/,nt=/(msie) ([\w.]+)/,at=/(mozilla)(?:.*? rv:([\w.]+))?/,vt=/-([a-z]|[0-9])/ig,lt=/^-ms-/,ht=function(n,t){return(t+"").toUpperCase()},ct=ou.userAgent,e,o,u,d=Object.prototype.toString,s=Object.prototype.hasOwnProperty,h=Array.prototype.push,f=Array.prototype.slice,a=String.prototype.trim,v=Array.prototype.indexOf,c={};return i.fn=i.prototype={constructor:i,init:function(n,u,f){var o,s,e,h;if(!n)return this;if(n.nodeType)return this.context=this[0]=n,this.length=1,this;if(n==="body"&&!u&&r.body)return this.context=r,this[0]=r.body,this.selector=n,this.length=1,this;if(typeof n=="string"){o=n.charAt(0)!=="<"||n.charAt(n.length-1)!==">"||n.length<3?tt.exec(n):[null,n,null];if(o&&(o[1]||!u)){if(o[1])return u=u instanceof i?u[0]:u,h=u?u.ownerDocument||u:r,e=k.exec(n),e?i.isPlainObject(u)?(n=[r.createElement(e[1])],i.fn.attr.call(n,u,!0)):n=[h.createElement(e[1])]:(e=i.buildFragment([o[1]],[h]),n=(e.cacheable?i.clone(e.fragment):e.fragment).childNodes),i.merge(this,n);s=r.getElementById(o[2]);if(s&&s.parentNode){if(s.id!==o[2])return f.find(n);this.length=1,this[0]=s}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n,t,r){var u=this.constructor();return i.isArray(n)?h.apply(u,n):i.merge(u,n),u.prevObject=this,u.context=this.context,t==="find"?u.selector=this.selector+(this.selector?" ":"")+r:t&&(u.selector=this.selector+"."+t+"("+r+")"),u},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.bindReady(),o.add(n),this},eq:function(n){return n=+n,n===-1?this.slice(n):this.slice(n,n+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var s,e,u,r,h,c,n=arguments[0]||{},f=1,l=arguments.length,o=!1;for(typeof n=="boolean"&&(o=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f0)return;o.fireWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready")}},bindReady:function(){if(o)return;o=i.Callbacks("once memory");if(r.readyState==="complete")return setTimeout(i.ready,1);if(r.addEventListener)r.addEventListener("DOMContentLoaded",u,!1),n.addEventListener("load",i.ready,!1);else if(r.attachEvent){r.attachEvent("onreadystatechange",u),n.attachEvent("onload",i.ready);var t=!1;try{t=n.frameElement==null}catch(f){}r.documentElement.doScroll&&t&&l()}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n&&typeof n=="object"&&"setInterval"in n},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):c[d.call(n)]||"object"},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!s.call(n,"constructor")&&!s.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}var r;for(r in n);return r===t||s.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseJSON:function(t){if(typeof t!="string"||!t)return null;t=i.trim(t);if(n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(rt.test(t.replace(ft,"@").replace(ot,"]").replace(st,"")))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&w.test(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(lt,"ms-").replace(vt,ht)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toUpperCase()===t.toUpperCase()},each:function(n,r,u){var e,f=0,o=n.length,s=o===t||i.isFunction(n);if(u){if(s){for(e in n)if(r.apply(n[e],u)===!1)break}else for(;f0&&n[0]&&n[e-1]||e===0||i.isArray(n));if(c)for(;sh||(h--,t>e||e--)),r.splice(t--,1);if(n.unique)break}return this},has:function(n){if(r)for(var t=0,i=r.length;t1?k.call(arguments,0):i,--e||t.resolveWith(t,u)}}function c(n){return function(i){o[n]=arguments.length>1?k.call(arguments,0):i,t.notifyWith(s,o)}}var u=k.call(arguments,0),r=0,f=u.length,o=new Array(f),e=f,l=f,t=f<=1&&n&&i.isFunction(n.promise)?n:i.Deferred(),s=t.promise();if(f>1){for(;r

a",y=t.getElementsByTagName("*"),o=t.getElementsByTagName("a")[0];if(!y||!y.length||!o)return{};v=r.createElement("select"),a=v.appendChild(r.createElement("option")),f=t.getElementsByTagName("input")[0],u={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")==="/a",opacity:/^0.55/.test(o.style.opacity),cssFloat:!!o.style.cssFloat,checkOn:f.value==="on",optSelected:a.selected,getSetAttribute:t.className!=="t",enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},f.checked=!0,u.noCloneChecked=f.cloneNode(!0).checked,v.disabled=!0,u.optDisabled=!a.disabled;try{delete t.test}catch(w){u.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),f=r.createElement("input"),f.value="t",f.setAttribute("type","radio"),u.radioValue=f.value==="t",f.setAttribute("checked","checked"),t.appendChild(f),e=r.createDocumentFragment(),e.appendChild(t.lastChild),u.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,u.appendChecked=f.checked,e.removeChild(f),e.appendChild(t),t.innerHTML="",n.getComputedStyle&&(h=r.createElement("div"),h.style.width="0",h.style.marginRight="0",t.style.width="2px",t.appendChild(h),u.reliableMarginRight=(parseInt((n.getComputedStyle(h,null)||{marginRight:0}).marginRight,10)||0)===0);if(t.attachEvent)for(p in{submit:1,change:1,focusin:1})l="on"+p,s=l in t,s||(t.setAttribute(l,"return;"),s=typeof t[l]=="function"),u[p+"Bubbles"]=s;return e.removeChild(t),e=v=a=h=t=f=null,i(function(){var f,h,n,b,w,e,y,v,l,a,p,o=r.getElementsByTagName("body")[0];if(!o)return;y=1,v="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",l="visibility:hidden;border:0;",a="style='"+v+"border:5px solid #000;padding:0;'",p="

",f=r.createElement("div"),f.style.cssText=l+"width:0;height:0;position:static;top:0;margin-top:"+y+"px",o.insertBefore(f,o.firstChild),t=r.createElement("div"),f.appendChild(t),t.innerHTML="

t

",c=t.getElementsByTagName("td"),s=c[0].offsetHeight===0,c[0].style.display="",c[1].style.display="none",u.reliableHiddenOffsets=s&&c[0].offsetHeight===0,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",i.boxModel=u.boxModel=t.offsetWidth===2,typeof t.style.zoom!="undefined"&&(t.style.display="inline",t.style.zoom=1,u.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="

",u.shrinkWrapBlocks=t.offsetWidth!==2),t.style.cssText=v+l,t.innerHTML=p,h=t.firstChild,n=h.firstChild,w=h.nextSibling.firstChild.firstChild,e={doesNotAddBorder:n.offsetTop!==5,doesAddBorderForTableAndCells:w.offsetTop===5},n.style.position="fixed",n.style.top="20px",e.fixedPosition=n.offsetTop===20||n.offsetTop===15,n.style.position=n.style.top="",h.style.overflow="hidden",h.style.position="relative",e.subtractsBorderForOverflowNotVisible=n.offsetTop===-5,e.doesNotIncludeMarginInBodyOffset=o.offsetTop!==y,o.removeChild(f),t=f=null,i.extend(u,e)}),u}(),cr=/^(?:\{.*\}|\[.*\])$/,lr=/([A-Z])/g,i.extend({cache:{},uuid:0,expando:"jQuery"+(i.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!st(n)},data:function(n,r,u,f){if(!i.acceptData(n))return;var v,s,c,h=i.expando,y=typeof r=="string",l=n.nodeType,o=l?i.cache:n,e=l?n[h]:n[h]&&h,a=r==="events";if((!e||!o[e]||!a&&!f&&!o[e].data)&&y&&u===t)return;return e||(l?n[h]=e=++i.uuid:e=h),o[e]||(o[e]={},l||(o[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?o[e]=i.extend(o[e],r):o[e].data=i.extend(o[e].data,r)),v=s=o[e],f||(s.data||(s.data={}),s=s.data),u!==t&&(s[i.camelCase(r)]=u),a&&!s[r]?v.events:(y?(c=s[r],c==null&&(c=s[i.camelCase(r)])):c=s,c)},removeData:function(n,t,r){if(!i.acceptData(n))return;var e,s,c,o=i.expando,h=n.nodeType,u=h?i.cache:n,f=h?n[o]:o;if(!u[f])return;if(t){e=r?u[f]:u[f].data;if(e){for(i.isArray(t)||(t in e?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" "))),s=0,c=t.length;s-1)return!0;return!1},val:function(n){var r,u,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var o=i(this),f;if(this.nodeType!==1)return;f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.nodeName.toLowerCase()]||i.valHooks[this.type],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f)})):f?(r=i.valHooks[f.nodeName.toLowerCase()]||i.valHooks[f.type],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,typeof u=="string"?u.replace(vu,""):u==null?"":u)):void 0}}),i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){var o,e,h,t,r=n.selectedIndex,s=[],u=n.options,f=n.type==="select-one";if(r<0)return null;for(e=f?r:0,h=f?r+1:u.length;e=0}),r.length||(n.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(n,r,u,f){var s,o,c,h=n.nodeType;if(!n||h===3||h===8||h===2)return;if(f&&r in i.attrFn)return i(n)[r](u);if(typeof n.getAttribute=="undefined")return i.prop(n,r,u);c=h!==1||!i.isXMLDoc(n),c&&(r=r.toLowerCase(),o=i.attrHooks[r]||(ur.test(r)?rr:e));if(u!==t){if(u===null){i.removeAttr(n,r);return}return o&&"set"in o&&c&&(s=o.set(n,u,r))!==t?s:(n.setAttribute(r,""+u),u)}return o&&"get"in o&&c&&(s=o.get(n,r))!==null?s:(s=n.getAttribute(r),s===null?t:s)},removeAttr:function(n,t){var u,e,r,o,f=0;if(t&&n.nodeType===1)for(e=t.toLowerCase().split(nt),o=e.length;f=0}})});var ct=/^(?:textarea|input|select)$/i,gi=/^([^\.]*)?(?:\.(.+))?$/,nu=/\bhover(\.\S+)?\b/,kr=/^key/,dr=/^(?:mouse|contextmenu)|click/,yr=/^(?:focusinfocus|focusoutblur)$/,gr=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,tu=function(n){var t=gr.exec(n);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},wr=function(n,t){var i=n.attributes||{};return(!t[1]||n.nodeName.toLowerCase()===t[1])&&(!t[2]||(i.id||{}).value===t[2])&&(!t[3]||t[3].test((i["class"]||{}).value))},sr=function(n){return i.event.special.hover?n:n.replace(nu,"mouseenter$1 mouseleave$1")};i.event={add:function(n,r,u,f,e){var v,h,a,p,y,o,w,l,b,k,c,s;if(n.nodeType===3||n.nodeType===8||!r||!u||!(v=i._data(n)))return;for(u.handler&&(b=u,u=b.handler),u.guid||(u.guid=i.guid++),a=v.events,a||(v.events=a={}),h=v.handle,h||(v.handle=h=function(n){return typeof i!="undefined"&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(h.elem,arguments):t},h.elem=n),r=i.trim(sr(r)).split(" "),p=0;pp&&y.push({elem:this,matches:h.slice(p)}),f=0;f0?this.on(t,null,n,i):this.trigger(t)},i.attrFn&&(i.attrFn[t]=!0),kr.test(t)&&(i.event.fixHooks[t]=i.event.keyHooks),dr.test(t)&&(i.event.fixHooks[t]=i.event.mouseHooks)});
/*!
* Sizzle CSS Selector Engine
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
*/
(function(){function k(n,t,i,r,u,f){for(var o,h,s=0,c=r.length;s0){c=s;break}}s=s[t]}u[h]=c}}}var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),y=0,d=Object.prototype.toString,l=!1,g=!0,o=/\\/g,it=/\r\n/g,c=/\W/,n,s,f,a,h,v;[0,0].sort(function(){return g=!1,0}),n=function(t,i,e,o){var it;e=e||[],i=i||r,it=i;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!t||typeof t!="string")return e;var y,a,h,g,l,w,b,c,rt=!0,k=n.isXML(i),s=[],tt=t;do{p.exec(""),y=p.exec(tt);if(y){tt=y[3],s.push(y[1]);if(y[2]){g=y[3];break}}}while(y);if(s.length>1&&nt.exec(t))if(s.length===2&&u.relative[s[0]])a=v(s[0]+s[1],i,o);else{a=u.relative[s[0]]?[i]:n(s.shift(),i);while(s.length)t=s.shift(),u.relative[t]&&(t+=s.shift()),a=v(t,a,o)}else{o||s.length<=1||i.nodeType!==9||k||!u.match.ID.test(s[0])||u.match.ID.test(s[s.length-1])||(l=n.find(s.shift(),i,k),i=l.expr?n.filter(l.expr,l.set)[0]:l.set[0]);if(i){l=o?{expr:s.pop(),set:f(o)}:n.find(s.pop(),s.length===1&&(s[0]==="~"||s[0]==="+")&&i.parentNode?i.parentNode:i,k),a=l.expr?n.filter(l.expr,l.set):l.set,s.length>0?h=f(a):rt=!1;while(s.length)w=s.pop(),b=w,u.relative[w]?b=s.pop():w="",b==null&&(b=i),u.relative[w](h,b,k)}else h=s=[]}h||(h=a),h||n.error(w||t);if(d.call(h)==="[object Array]")if(rt)if(i&&i.nodeType===1)for(c=0;h[c]!=null;c++)h[c]&&(h[c]===!0||h[c].nodeType===1&&n.contains(i,h[c]))&&e.push(a[c]);else for(c=0;h[c]!=null;c++)h[c]&&h[c].nodeType===1&&e.push(a[c]);else e.push.apply(e,h);else f(h,e);return g&&(n(g,it,e,o),n.uniqueSort(e)),e},n.uniqueSort=function(n){if(a){l=g,n.sort(a);if(l)for(var t=1;t0},n.find=function(n,t,i){var f,s,c,r,e,h;if(!n)return[];for(s=0,c=u.order.length;s":function(t,i){var u,e=typeof i=="string",r=0,o=t.length,f;if(e&&!c.test(i))for(i=i.toLowerCase();r=0)?i||r.push(e):i&&(t[s]=!1));return!1},ID:function(n){return n[1].replace(o,"")},TAG:function(n){return n[1].replace(o,"").toLowerCase()},CHILD:function(t){if(t[1]==="nth"){t[2]||n.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var i=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=i[1]+(i[2]||1)-0,t[3]=i[3]-0}else t[2]&&n.error(t[0]);return t[0]=y++,t},ATTR:function(n,t,i,r,f,e){var s=n[1]=n[1].replace(o,"");return!e&&u.attrMap[s]&&(n[1]=u.attrMap[s]),n[4]=(n[4]||n[5]||"").replace(o,""),n[2]==="~="&&(n[4]=" "+n[4]+" "),n},PSEUDO:function(t,i,r,f,e){if(t[1]==="not")if((p.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=n(t[3],null,null,i);else{var o=n.filter(t[3],i,r,!0^e);return r||f.push.apply(f,o),!1}else if(u.match.POS.test(t[0])||u.match.CHILD.test(t[0]))return!0;return t},POS:function(n){return n.unshift(!0),n}},filters:{enabled:function(n){return n.disabled===!1&&n.type!=="hidden"},disabled:function(n){return n.disabled===!0},checked:function(n){return n.checked===!0},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},parent:function(n){return!!n.firstChild},empty:function(n){return!n.firstChild},has:function(t,i,r){return!!n(r[3],t).length},header:function(n){return/h\d/i.test(n.nodeName)},text:function(n){var i=n.getAttribute("type"),t=n.type;return n.nodeName.toLowerCase()==="input"&&"text"===t&&(i===t||i===null)},radio:function(n){return n.nodeName.toLowerCase()==="input"&&"radio"===n.type},checkbox:function(n){return n.nodeName.toLowerCase()==="input"&&"checkbox"===n.type},file:function(n){return n.nodeName.toLowerCase()==="input"&&"file"===n.type},password:function(n){return n.nodeName.toLowerCase()==="input"&&"password"===n.type},submit:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===n.type},image:function(n){return n.nodeName.toLowerCase()==="input"&&"image"===n.type},reset:function(n){var t=n.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===n.type},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&"button"===n.type||t==="button"},input:function(n){return/input|select|textarea|button/i.test(n.nodeName)},focus:function(n){return n===n.ownerDocument.activeElement}},setFilters:{first:function(n,t){return t===0},last:function(n,t,i,r){return t===r.length-1},even:function(n,t){return t%2==0},odd:function(n,t){return t%2==1},lt:function(n,t,i){return ti[3]-0},nth:function(n,t,i){return i[3]-0===t},eq:function(n,t,i){return i[3]-0===t}},filter:{PSEUDO:function(t,i,r,f){var o=i[1],c=u.filters[o],s,e,h;if(c)return c(t,r,i,f);if(o==="contains")return(t.textContent||t.innerText||w([t])||"").indexOf(i[3])>=0;if(o==="not"){for(s=i[3],e=0,h=s.length;e=0}},ID:function(n,t){return n.nodeType===1&&n.getAttribute("id")===t},TAG:function(n,t){return t==="*"&&n.nodeType===1||!!n.nodeName&&n.nodeName.toLowerCase()===t},CLASS:function(n,t){return(" "+(n.className||n.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(t,i){var o=i[1],s=n.attr?n.attr(t,o):u.attrHandle[o]?u.attrHandle[o](t):t[o]!=null?t[o]:t.getAttribute(o),f=s+"",e=i[2],r=i[4];return s==null?e==="!=":!e&&n.attr?s!=null:e==="="?f===r:e==="*="?f.indexOf(r)>=0:e==="~="?(" "+f+" ").indexOf(r)>=0:r?e==="!="?f!==r:e==="^="?f.indexOf(r)===0:e==="$="?f.substr(f.length-r.length)===r:e==="|="?f===r||f.substr(0,r.length+1)===r+"-":!1:f&&s!==!1},POS:function(n,t,i,r){var e=t[2],f=u.setFilters[e];if(f)return f(n,i,t,r)}}},nt=u.match.POS,tt=function(n,t){return"\\"+(+t+1)};for(s in u.match)u.match[s]=new RegExp(u.match[s].source+/(?![^\[]*\])(?![^\(]*\))/.source),u.leftMatch[s]=new RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[s].source.replace(/\\(\d+)/g,tt));f=function(n,t){return n=Array.prototype.slice.call(n,0),t?(t.push.apply(t,n),t):n};try{Array.prototype.slice.call(r.documentElement.childNodes,0)[0].nodeType}catch(rt){f=function(n,t){var i=0,r=t||[],u;if(d.call(n)==="[object Array]")Array.prototype.push.apply(r,n);else if(typeof n.length=="number")for(u=n.length;i",n.insertBefore(i,n.firstChild),r.getElementById(f)&&(u.find.ID=function(n,i,r){if(typeof i.getElementById!="undefined"&&!r){var u=i.getElementById(n[1]);return u?u.id===n[1]||typeof u.getAttributeNode!="undefined"&&u.getAttributeNode("id").nodeValue===n[1]?[u]:t:[]}},u.filter.ID=function(n,t){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return n.nodeType===1&&i&&i.nodeValue===t}),n.removeChild(i),n=i=null})(),(function(){var n=r.createElement("div");n.appendChild(r.createComment("")),n.getElementsByTagName("*").length>0&&(u.find.TAG=function(n,t){var r=t.getElementsByTagName(n[1]),u,i;if(n[1]==="*"){for(u=[],i=0;r[i];i++)r[i].nodeType===1&&u.push(r[i]);r=u}return r}),n.innerHTML="",n.firstChild&&typeof n.firstChild.getAttribute!="undefined"&&n.firstChild.getAttribute("href")!=="#"&&(u.attrHandle.href=function(n){return n.getAttribute("href",2)}),n=null})(),r.querySelectorAll&&(function(){var e=n,t=r.createElement("div"),o="__sizzle__",i;t.innerHTML="

";if(t.querySelectorAll&&t.querySelectorAll(".TEST").length===0)return;n=function(t,i,s,h){var c,l;i=i||r;if(!h&&!n.isXML(i)){c=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(c&&(i.nodeType===1||i.nodeType===9)){if(c[1])return f(i.getElementsByTagName(t),s);if(c[2]&&u.find.CLASS&&i.getElementsByClassName)return f(i.getElementsByClassName(c[2]),s)}if(i.nodeType===9){if(t==="body"&&i.body)return f([i.body],s);if(c&&c[3]){l=i.getElementById(c[3]);if(l&&l.parentNode){if(l.id===c[3])return f([l],s)}else return f([],s)}try{return f(i.querySelectorAll(t),s)}catch(k){}}else if(i.nodeType===1&&i.nodeName.toLowerCase()!=="object"){var w=i,v=i.getAttribute("id"),a=v||o,y=i.parentNode,p=/^\s*[+~]/.test(t);v?a=a.replace(/'/g,"\\$&"):i.setAttribute("id",a),p&&y&&(i=i.parentNode);try{if(!p||y)return f(i.querySelectorAll("[id='"+a+"'] "+t),s)}catch(b){}finally{v||w.removeAttribute("id")}}}return e(t,i,s,h)};for(i in e)n[i]=e[i];t=null})(),(function(){var i=r.documentElement,t=i.matchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.msMatchesSelector,e,f;if(t){e=!t.call(r.createElement("div"),"div"),f=!1;try{t.call(r.documentElement,"[test!='']:sizzle")}catch(o){f=!0}n.matchesSelector=function(i,r){r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(i))try{if(f||!u.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=t.call(i,r);if(o||!e||i.document&&i.document.nodeType!==11)return o}}catch(s){}return n(r,null,null,[i]).length>0}}})(),(function(){var n=r.createElement("div");n.innerHTML="

";if(!n.getElementsByClassName||n.getElementsByClassName("e").length===0)return;n.lastChild.className="e";if(n.getElementsByClassName("e").length===1)return;u.order.splice(1,0,"CLASS"),u.find.CLASS=function(n,t,i){if(typeof t.getElementsByClassName!="undefined"&&!i)return t.getElementsByClassName(n[1])},n=null})(),n.contains=r.documentElement.contains?function(n,t){return n!==t&&(n.contains?n.contains(t):!0)}:r.documentElement.compareDocumentPosition?function(n,t){return!!(n.compareDocumentPosition(t)&16)}:function(){return!1},n.isXML=function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1},v=function(t,i,r){var s,h=[],c="",e=i.nodeType?[i]:i,f,o;while(s=u.match.PSEUDO.exec(t))c+=s[0],t=t.replace(u.match.PSEUDO,"");for(t=u.relative[t]?t+"*":t,f=0,o=e.length;f0)for(u=o;u=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){var f=[],u,s,r=this[0],e,o;if(i.isArray(n)){e=1;while(r&&r.ownerDocument&&r!==t){for(u=0;u-1:i.find.matchesSelector(r,n)){f.push(r);break}else{r=r.parentNode;if(!r||!r.ownerDocument||r===t||r.nodeType===11)break}}return f=f.length>1?i.unique(f):f,this.pushStack(f,"closest",n)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(n,t){var u=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),r=i.merge(this.get(),u);return this.pushStack(nr(u[0])||nr(r[0])?r:i.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return i.nth(n,2,"nextSibling")},prev:function(n){return i.nth(n,2,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling(n.parentNode.firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.makeArray(n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return br.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!te[n]?i.unique(f):f,(this.length>1||wf.test(u))&&bf.test(n)&&(f=f.reverse()),this.pushStack(f,n,pf.call(arguments).join(","))}}),i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){var e=[],f=n[r];while(f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u)))f.nodeType===1&&e.push(f),f=f[r];return e},nth:function(n,t,i){t=t||1;for(var u=0;n;n=n[i])if(n.nodeType===1&&++u===t)break;return n},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var ki="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ku=/ jQuery\d+="(?:\d+|null)"/g,ft=/^\s+/,ar=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,pr=/<([\w:]+)/,of=/
",""],legend:[1,"

","

"],thead:[1,"

","

"],tr:[2,"

","

"],td:[3,"

","

"],col:[2,"

","

"],area:[1,"",""],_default:[0,"",""]},at=wi(r);u.optgroup=u.option,u.tbody=u.tfoot=u.colgroup=u.caption=u.thead,u.th=u.td,i.support.htmlSerialize||(u._default=[1,"div

","

"]),i.fn.extend({text:function(n){return i.isFunction(n)?this.each(function(t){var r=i(this);r.text(n.call(this,t,r.text()))}):typeof n!="object"&&n!==t?this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n)):i.text(this)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var n=this;while(n.firstChild&&n.firstChild.nodeType===1)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var r=i(this),t=r.contents();t.length?t.wrapAll(n):r.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){this.nodeType===1&&this.insertBefore(n,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var n=i.clean(arguments);return n.push.apply(n,this.toArray()),this.pushStack(n,"