mupdf-webviewer
Version:
The web viewer SDK using mupdf.js
1 lines • 108 kB
JavaScript
(function(M){if(typeof exports=="object")module.exports=M();else if(typeof define=="function"&&define.amd)define(M);else{var Le;typeof window<"u"?Le=window:typeof global<"u"?Le=global:typeof self<"u"&&(Le=self),Le.RTree=M()}})(function(){var M,Le,ve;return function j(ue,xe,I){function C(E,y){if(!xe[E]){if(!ue[E]){var R=typeof require=="function"&&require;if(!y&&R)return R(E,!0);if(k)return k(E,!0);throw new Error("Cannot find module '"+E+"'")}var r=xe[E]={exports:{}};ue[E][0].call(r.exports,function(b){var Y=ue[E][1][b];return C(Y||b)},r,r.exports,j,ue,xe,I)}return xe[E].exports}for(var k=typeof require=="function"&&require,A=0;A<I.length;A++)C(I[A]);return C}({1:[function(j,ue,xe){"use strict";var I=j("./rectangle"),C=function(A,E){if(E&&E.bbox)return{leaf:E,x:E.bbox[0],y:E.bbox[1],w:E.bbox[2]-E.bbox[0],h:E.bbox[3]-E.bbox[1]};for(var y=A.length,R=0,r=new Array(y);R<y;)r[R]=[A[R][0],A[R][1]],R++;var b=r[0];y=r.length,R=1;for(var Y={min:[].concat(b),max:[].concat(b)};R<y;)r[R][0]<Y.min[0]?Y.min[0]=r[R][0]:r[R][0]>Y.max[0]&&(Y.max[0]=r[R][0]),r[R][1]<Y.min[1]?Y.min[1]=r[R][1]:r[R][1]>Y.max[1]&&(Y.max[1]=r[R][1]),R++;var ae={x:Y.min[0],y:Y.min[1],w:Y.max[0]-Y.min[0],h:Y.max[1]-Y.min[1]};return E&&(ae.leaf=E),ae},k={};k.point=function(A,E){return E.insertSubtree({x:A.geometry.coordinates[0],y:A.geometry.coordinates[1],w:0,h:0,leaf:A},E.root)},k.multiPointLineString=function(A,E){return E.insertSubtree(C(A.geometry.coordinates,A),E.root)},k.multiLineStringPolygon=function(A,E){return E.insertSubtree(C(Array.prototype.concat.apply([],A.geometry.coordinates),A),E.root)},k.multiPolygon=function(A,E){return E.insertSubtree(C(Array.prototype.concat.apply([],Array.prototype.concat.apply([],A.geometry.coordinates)),A),E.root)},k.makeRec=function(A){return I(A.x,A.y,A.w,A.h)},k.geometryCollection=function(A,E){if(A.bbox)return E.insertSubtree({leaf:A,x:A.bbox[0],y:A.bbox[1],w:A.bbox[2]-A.bbox[0],h:A.bbox[3]-A.bbox[1]},E.root);for(var y=A.geometry.geometries,R=0,r=y.length,b=[],Y;R<r;){switch(Y=y[R],Y.type){case"Point":b.push(k.makeRec({x:Y.coordinates[0],y:Y.coordinates[1],w:0,h:0}));break;case"MultiPoint":b.push(k.makeRec(C(Y.coordinates)));break;case"LineString":b.push(k.makeRec(C(Y.coordinates)));break;case"MultiLineString":b.push(k.makeRec(C(Array.prototype.concat.apply([],Y.coordinates))));break;case"Polygon":b.push(k.makeRec(C(Array.prototype.concat.apply([],Y.coordinates))));break;case"MultiPolygon":b.push(k.makeRec(C(Array.prototype.concat.apply([],Array.prototype.concat.apply([],Y.coordinates)))));break;case"GeometryCollection":y=y.concat(Y.geometries),r=y.length;break}R++}var ae=b[0];for(R=1,r=b.length;R<r;)ae.expand(b[R]),R++;return E.insertSubtree({leaf:A,x:ae.x(),y:ae.y(),h:ae.h(),w:ae.w()},E.root)},xe.geoJSON=function(A){var E=this,y,R;if(Array.isArray(A))y=A.slice();else if(A.features&&Array.isArray(A.features))y=A.features.slice();else if(A instanceof Object)y=[A];else throw"this isn't what we're looking for";for(var r=y.length,b=0;b<r;){if(R=y[b],R.type==="Feature")switch(R.geometry.type){case"Point":k.point(R,E);break;case"MultiPoint":k.multiPointLineString(R,E);break;case"LineString":k.multiPointLineString(R,E);break;case"MultiLineString":k.multiLineStringPolygon(R,E);break;case"Polygon":k.multiLineStringPolygon(R,E);break;case"MultiPolygon":k.multiPolygon(R,E);break;case"GeometryCollection":k.geometryCollection(R,E);break}b++}},xe.bbox=function(){var A,E,y,R;switch(arguments.length){case 1:A=arguments[0][0][0],E=arguments[0][0][1],y=arguments[0][1][0],R=arguments[0][1][1];break;case 2:A=arguments[0][0],E=arguments[0][1],y=arguments[1][0],R=arguments[1][1];break;case 4:A=arguments[0],E=arguments[1],y=arguments[2],R=arguments[3];break}return this.search({x:A,y:E,w:y-A,h:R-E})}},{"./rectangle":3}],2:[function(j,ue,xe){"use strict";var I=j("./rtree"),C=j("./geojson");I.prototype.bbox=C.bbox,I.prototype.geoJSON=C.geoJSON,I.Rectangle=j("./rectangle"),ue.exports=I},{"./geojson":1,"./rectangle":3,"./rtree":4}],3:[function(j,ue,xe){"use strict";function I(C,k,A,E){if(!(this instanceof I))return new I(C,k,A,E);var y,R,r;C.x?(A=C.w,E=C.h,k=C.y,C.w!==0&&!C.w&&C.x2?(A=C.x2-C.x,E=C.y2-C.y):(A=C.w,E=C.h),C=C.x,y=C+A,R=k+E,r=!(E+A)):(y=C+A,R=k+E,r=!(E+A)),this.x1=this.x=function(){return C},this.y1=this.y=function(){return k},this.x2=function(){return y},this.y2=function(){return R},this.w=function(){return A},this.h=function(){return E},this.p=function(){return r},this.overlap=function(b){return r||b.p()?C<=b.x2()&&y>=b.x()&&k<=b.y2()&&R>=b.y():C<b.x2()&&y>b.x()&&k<b.y2()&&R>b.y()},this.expand=function(b){var Y,ae,et=b.x(),Pe=b.y(),we=b.x2(),Te=b.y2();return C>et?Y=et:Y=C,k>Pe?ae=Pe:ae=k,y>we?A=y-Y:A=we-Y,R>Te?E=R-ae:E=Te-ae,C=Y,k=ae,this}}I.overlapRectangle=function(C,k){return C.h===0&&C.w===0||k.h===0&&k.w===0?C.x<=k.x+k.w&&C.x+C.w>=k.x&&C.y<=k.y+k.h&&C.y+C.h>=k.y:C.x<k.x+k.w&&C.x+C.w>k.x&&C.y<k.y+k.h&&C.y+C.h>k.y},I.containsRectangle=function(C,k){return C.x+C.w<=k.x+k.w&&C.x>=k.x&&C.y+C.h<=k.y+k.h&&C.y>=k.y},I.expandRectangle=function(C,k){var A,E,y=C.x+C.w,R=k.x+k.w,r=C.y+C.h,b=k.y+k.h;return C.x>k.x?A=k.x:A=C.x,C.y>k.y?E=k.y:E=C.y,y>R?C.w=y-A:C.w=R-A,r>b?C.h=r-E:C.h=b-E,C.x=A,C.y=E,C},I.makeMBR=function(C,k){if(!C.length)return{x:0,y:0,w:0,h:0};k=k||{},k.x=C[0].x,k.y=C[0].y,k.w=C[0].w,k.h=C[0].h;for(var A=1,E=C.length;A<E;A++)I.expandRectangle(k,C[A]);return k},I.squarifiedRatio=function(C,k,A){var E=(C+k)/2,y=C*k,R=y/(E*E);return y*A/R},ue.exports=I},{}],4:[function(j,ue,xe){"use strict";var I=j("./rectangle");function C(k){if(!(this instanceof C))return new C(k);var A=3,E=6;isNaN(k)||(A=Math.floor(k/2),E=k);var y={x:0,y:0,w:0,h:0,id:"root",nodes:[]};this.root=y;var R=function(S){for(var q=S.slice(),N=[],$;q.length;)$=q.pop(),$.nodes?q=q.concat($.nodes):$.leaf&&N.push($);return N},r=function(S,q,N){var $=[],Q=[],te=[],Z=1,O,U,V;if(!S||!I.overlapRectangle(S,N))return te;var ee={x:S.x,y:S.y,w:S.w,h:S.h,target:q};for(Q.push(N.nodes.length),$.push(N);$.length>0;){if(O=$.pop(),U=Q.pop()-1,"target"in ee)for(;U>=0;){if(V=O.nodes[U],I.overlapRectangle(ee,V))if(ee.target&&"leaf"in V&&V.leaf===ee.target||!ee.target&&("leaf"in V||I.containsRectangle(V,ee))){"nodes"in V?te=R(O.nodes.splice(U,1)):te=O.nodes.splice(U,1),I.makeMBR(O.nodes,O),delete ee.target;break}else"nodes"in V&&(Z++,Q.push(U),$.push(O),O=V,U=V.nodes.length);U--}else if("nodes"in ee){O.nodes.splice(U+1,1),O.nodes.length>0&&I.makeMBR(O.nodes,O);for(var he=0;he<ee.nodes.length;he++)Te(ee.nodes[he],O);ee.nodes=[],$.length===0&&O.nodes.length<=1?(ee.nodes=we(O,!0,ee.nodes,O),O.nodes=[],$.push(O),Q.push(1)):$.length>0&&O.nodes.length<A?(ee.nodes=we(O,!0,ee.nodes,O),O.nodes=[]):delete ee.nodes}else I.makeMBR(O.nodes,O);Z-=1}return te},b=function(S,q){var N=-1,$=[],Q,te=!0;$.push(q);for(var Z=q.nodes;te||N!==-1;){te?te=!1:($.push(Z[N]),Z=Z[N].nodes,N=-1);for(var O=Z.length-1;O>=0;O--){var U=Z[O];if("leaf"in U){N=-1;break}var V=I.squarifiedRatio(U.w,U.h,U.nodes.length+1),ee=Math.max(U.x+U.w,S.x+S.w)-Math.min(U.x,S.x),he=Math.max(U.y+U.h,S.y+S.h)-Math.min(U.y,S.y),ge=I.squarifiedRatio(ee,he,U.nodes.length+2);(N<0||Math.abs(ge-V)<Q)&&(Q=Math.abs(ge-V),N=O)}}return $},Y=function(S){for(var q=et(S);S.length>0;)ae(S,q[0],q[1]);return q},ae=function(S,q,N){for(var $=I.squarifiedRatio(q.w,q.h,q.nodes.length+1),Q=I.squarifiedRatio(N.w,N.h,N.nodes.length+1),te,Z,O,U=S.length-1;U>=0;U--){var V=S[U],ee={};ee.x=Math.min(q.x,V.x),ee.y=Math.min(q.y,V.y),ee.w=Math.max(q.x+q.w,V.x+V.w)-ee.x,ee.h=Math.max(q.y+q.h,V.y+V.h)-ee.y;var he=Math.abs(I.squarifiedRatio(ee.w,ee.h,q.nodes.length+2)-$),ge={};ge.x=Math.min(N.x,V.x),ge.y=Math.min(N.y,V.y),ge.w=Math.max(N.x+N.w,V.x+V.w)-ge.x,ge.h=Math.max(N.y+N.h,V.y+V.h)-ge.y;var Ne=Math.abs(I.squarifiedRatio(ge.w,ge.h,N.nodes.length+2)-Q);(!Z||!te||Math.abs(Ne-he)<te)&&(Z=U,te=Math.abs(Ne-he),O=Ne<he?N:q)}var Me=S.splice(Z,1)[0];q.nodes.length+S.length+1<=A?(q.nodes.push(Me),I.expandRectangle(q,Me)):N.nodes.length+S.length+1<=A?(N.nodes.push(Me),I.expandRectangle(N,Me)):(O.nodes.push(Me),I.expandRectangle(O,Me))},et=function(S){for(var q=S.length-1,N=0,$=S.length-1,Q=0,te,Z,O=S.length-2;O>=0;O--){var U=S[O];U.x>S[N].x?N=O:U.x+U.w<S[q].x+S[q].w&&(q=O),U.y>S[Q].y?Q=O:U.y+U.h<S[$].y+S[$].h&&($=O)}var V=Math.abs(S[q].x+S[q].w-S[N].x),ee=Math.abs(S[$].y+S[$].h-S[Q].y);return V>ee?q>N?(te=S.splice(q,1)[0],Z=S.splice(N,1)[0]):(Z=S.splice(N,1)[0],te=S.splice(q,1)[0]):$>Q?(te=S.splice($,1)[0],Z=S.splice(Q,1)[0]):(Z=S.splice(Q,1)[0],te=S.splice($,1)[0]),[{x:te.x,y:te.y,w:te.w,h:te.h,nodes:[te]},{x:Z.x,y:Z.y,w:Z.w,h:Z.h,nodes:[Z]}]},Pe=function(S,q){return S.nodes=q.nodes,S.x=q.x,S.y=q.y,S.w=q.w,S.h=q.h,S},we=function(S,q,N,$){var Q=[];if(!I.overlapRectangle(S,$))return N;for(Q.push($.nodes);Q.length>0;)for(var te=Q.pop(),Z=te.length-1;Z>=0;Z--){var O=te[Z];I.overlapRectangle(S,O)&&("nodes"in O?Q.push(O.nodes):"leaf"in O&&(q?N.push(O):N.push(O.leaf)))}return N},Te=function(S,q){var N;if(q.nodes.length===0){q.x=S.x,q.y=S.y,q.w=S.w,q.h=S.h,q.nodes.push(S);return}for(var $=b(S,q),Q=S,te;$.length>0;){if(N&&"nodes"in N&&N.nodes.length===0){te=N,N=$.pop();for(var Z=0;Z<N.nodes.length;Z++)if(N.nodes[Z]===te||N.nodes[Z].nodes.length===0){N.nodes.splice(Z,1);break}}else N=$.pop();if("leaf"in Q||"nodes"in Q||Array.isArray(Q)){if(Array.isArray(Q)){for(var O=0;O<Q.length;O++)I.expandRectangle(N,Q[O]);N.nodes=N.nodes.concat(Q)}else I.expandRectangle(N,Q),N.nodes.push(Q);if(N.nodes.length<=E)Q={x:N.x,y:N.y,w:N.w,h:N.h};else{var U=Y(N.nodes);Q=U,$.length<1&&(N.nodes.push(U[0]),$.push(N),Q=U[1])}}else I.expandRectangle(N,Q),Q={x:N.x,y:N.y,w:N.w,h:N.h}}};this.insertSubtree=Te,this.getTree=function(){return y},this.setTree=function(S,q){return q||(q=y),Pe(q,S)},this.search=function(S,q,N){return N=N||[],we(S,q,N,y)};var dt=function(S){for(var q=1,N=[],$;q>0;)$=r(S,!1,y),q=$.length,N=N.concat($);return N},pt=function(S,q){var N=r(S,q,y);return N};this.remove=function(S,q){return!q||typeof q=="function"?dt(S,q):pt(S,q)},this.insert=function(S,q){var N=Te({x:S.x,y:S.y,w:S.w,h:S.h,leaf:q},y);return N}}C.prototype.toJSON=function(k){return JSON.stringify(this.root,!1,k)},C.fromJSON=function(k){var A=new C;return A.setTree(JSON.parse(k)),A},ue.exports=C,typeof Array.isArray!="function"&&(Array.isArray=function(k){return typeof k=="object"&&{}.toString.call(k)==="[object Array]"})},{"./rectangle":3}]},{},[2])(2)});/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */(function(M,Le){typeof module=="object"&&typeof module.exports=="object"?module.exports=M.document?Le(M,!0):function(ve){if(!ve.document)throw new Error("jQuery requires a window with a document");return Le(ve)}:Le(M)})(typeof window<"u"?window:this,function(M,Le){var ve=[],j=M.document,ue=ve.slice,xe=ve.concat,I=ve.push,C=ve.indexOf,k={},A=k.toString,E=k.hasOwnProperty,y={},R="1.12.4",r=function(e,t){return new r.fn.init(e,t)},b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Y=/^-ms-/,ae=/-([\da-z])/gi,et=function(e,t){return t.toUpperCase()};r.fn=r.prototype={jquery:R,constructor:r,selector:"",length:0,toArray:function(){return ue.call(this)},get:function(e){return e!=null?0>e?this[e+this.length]:this[e]:ue.call(this)},pushStack:function(e){var t=r.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return r.each(this,e)},map:function(e){return this.pushStack(r.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ue.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:I,sort:ve.sort,splice:ve.splice},r.extend=r.fn.extend=function(){var e,t,n,i,o,s,u=arguments[0]||{},a=1,h=arguments.length,d=!1;for(typeof u=="boolean"&&(d=u,u=arguments[a]||{},a++),typeof u=="object"||r.isFunction(u)||(u={}),a===h&&(u=this,a--);h>a;a++)if((o=arguments[a])!=null)for(i in o)e=u[i],n=o[i],u!==n&&(d&&n&&(r.isPlainObject(n)||(t=r.isArray(n)))?(t?(t=!1,s=e&&r.isArray(e)?e:[]):s=e&&r.isPlainObject(e)?e:{},u[i]=r.extend(d,s,n)):n!==void 0&&(u[i]=n));return u},r.extend({expando:"jQuery"+(R+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return r.type(e)==="function"},isArray:Array.isArray||function(e){return r.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!r.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||r.type(e)!=="object"||e.nodeType||r.isWindow(e))return!1;try{if(e.constructor&&!E.call(e,"constructor")&&!E.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}if(!y.ownFirst)for(t in e)return E.call(e,t);for(t in e);return t===void 0||E.call(e,t)},type:function(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?k[A.call(e)]||"object":typeof e},globalEval:function(e){e&&r.trim(e)&&(M.execScript||function(t){M.eval.call(M,t)})(e)},camelCase:function(e){return e.replace(Y,"ms-").replace(ae,et)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(Pe(e))for(n=e.length;n>i&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n=t||[];return e!=null&&(Pe(Object(e))?r.merge(n,typeof e=="string"?[e]:e):I.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(C)return C.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;n>i;)e[o++]=t[i++];if(n!==n)for(;t[i]!==void 0;)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i,o=[],s=0,u=e.length,a=!n;u>s;s++)i=!t(e[s],s),i!==a&&o.push(e[s]);return o},map:function(e,t,n){var i,o,s=0,u=[];if(Pe(e))for(i=e.length;i>s;s++)o=t(e[s],s,n),o!=null&&u.push(o);else for(s in e)o=t(e[s],s,n),o!=null&&u.push(o);return xe.apply([],u)},guid:1,proxy:function(e,t){var n,i,o;return typeof t=="string"&&(o=e[t],t=e,e=o),r.isFunction(e)?(n=ue.call(arguments,2),i=function(){return e.apply(t||this,n.concat(ue.call(arguments)))},i.guid=e.guid=e.guid||r.guid++,i):void 0},now:function(){return+new Date},support:y}),typeof Symbol=="function"&&(r.fn[Symbol.iterator]=ve[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){k["[object "+t+"]"]=t.toLowerCase()});function Pe(e){var t=!!e&&"length"in e&&e.length,n=r.type(e);return n==="function"||r.isWindow(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}var we=function(e){var t,n,i,o,s,u,a,h,d,p,x,D,T,z,F,J,Ce,ce,Be,H="sizzle"+1*new Date,de=e.document,G=0,se=0,Ie=Qt(),Tt=Qt(),Ae=Qt(),Ye=function(l,c){return l===c&&(x=!0),0},$e=1<<31,ze={}.hasOwnProperty,ye=[],De=ye.pop,Ur=ye.push,Xe=ye.push,Yn=ye.slice,Qe=function(l,c){for(var f=0,m=l.length;m>f;f++)if(l[f]===c)return f;return-1},Vt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",Ke="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Qn="\\["+re+"*("+Ke+")(?:"+re+"*([*^$|!~]?=)"+re+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ke+"))|)"+re+"*\\]",Gt=":("+Ke+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Qn+")*)|.*)\\)|)",Vr=new RegExp(re+"+","g"),Ct=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),Gr=new RegExp("^"+re+"*,"+re+"*"),Yr=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),Qr=new RegExp("="+re+`*([^\\]'"]*?)`+re+"*\\]","g"),Kr=new RegExp(Gt),Kn=new RegExp("^"+Ke+"$"),kt={ID:new RegExp("^#("+Ke+")"),CLASS:new RegExp("^\\.("+Ke+")"),TAG:new RegExp("^("+Ke+"|[*])"),ATTR:new RegExp("^"+Qn),PSEUDO:new RegExp("^"+Gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+Vt+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},Zr=/^(?:input|select|textarea|button)$/i,ei=/^h\d$/i,at=/^[^{]+\{\s*\[native \w/,ti=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Yt=/[+~]/,ni=/'|\\/g,Oe=new RegExp("\\\\([\\da-f]{1,6}"+re+"?|("+re+")|.)","ig"),_e=function(l,c,f){var m="0x"+c-65536;return m!==m||f?c:0>m?String.fromCharCode(m+65536):String.fromCharCode(m>>10|55296,1023&m|56320)},Zn=function(){D()};try{Xe.apply(ye=Yn.call(de.childNodes),de.childNodes),ye[de.childNodes.length].nodeType}catch{Xe={apply:ye.length?function(c,f){Ur.apply(c,Yn.call(f))}:function(c,f){for(var m=c.length,g=0;c[m++]=f[g++];);c.length=m-1}}}function ie(l,c,f,m){var g,w,v,L,_,X,P,B,K=c&&c.ownerDocument,ne=c?c.nodeType:9;if(f=f||[],typeof l!="string"||!l||ne!==1&&ne!==9&&ne!==11)return f;if(!m&&((c?c.ownerDocument||c:de)!==T&&D(c),c=c||T,F)){if(ne!==11&&(X=ti.exec(l)))if(g=X[1]){if(ne===9){if(!(v=c.getElementById(g)))return f;if(v.id===g)return f.push(v),f}else if(K&&(v=K.getElementById(g))&&Be(c,v)&&v.id===g)return f.push(v),f}else{if(X[2])return Xe.apply(f,c.getElementsByTagName(l)),f;if((g=X[3])&&n.getElementsByClassName&&c.getElementsByClassName)return Xe.apply(f,c.getElementsByClassName(g)),f}if(n.qsa&&!Ae[l+" "]&&(!J||!J.test(l))){if(ne!==1)K=c,B=l;else if(c.nodeName.toLowerCase()!=="object"){for((L=c.getAttribute("id"))?L=L.replace(ni,"\\$&"):c.setAttribute("id",L=H),P=u(l),w=P.length,_=Kn.test(L)?"#"+L:"[id='"+L+"']";w--;)P[w]=_+" "+St(P[w]);B=P.join(","),K=Yt.test(l)&&Zt(c.parentNode)||c}if(B)try{return Xe.apply(f,K.querySelectorAll(B)),f}catch{}finally{L===H&&c.removeAttribute("id")}}}return h(l.replace(Ct,"$1"),c,f,m)}function Qt(){var l=[];function c(f,m){return l.push(f+" ")>i.cacheLength&&delete c[l.shift()],c[f+" "]=m}return c}function qe(l){return l[H]=!0,l}function He(l){var c=T.createElement("div");try{return!!l(c)}catch{return!1}finally{c.parentNode&&c.parentNode.removeChild(c),c=null}}function Kt(l,c){for(var f=l.split("|"),m=f.length;m--;)i.attrHandle[f[m]]=c}function er(l,c){var f=c&&l,m=f&&l.nodeType===1&&c.nodeType===1&&(~c.sourceIndex||$e)-(~l.sourceIndex||$e);if(m)return m;if(f){for(;f=f.nextSibling;)if(f===c)return-1}return l?1:-1}function ri(l){return function(c){var f=c.nodeName.toLowerCase();return f==="input"&&c.type===l}}function ii(l){return function(c){var f=c.nodeName.toLowerCase();return(f==="input"||f==="button")&&c.type===l}}function Ze(l){return qe(function(c){return c=+c,qe(function(f,m){for(var g,w=l([],f.length,c),v=w.length;v--;)f[g=w[v]]&&(f[g]=!(m[g]=f[g]))})})}function Zt(l){return l&&typeof l.getElementsByTagName<"u"&&l}n=ie.support={},s=ie.isXML=function(l){var c=l&&(l.ownerDocument||l).documentElement;return c?c.nodeName!=="HTML":!1},D=ie.setDocument=function(l){var c,f,m=l?l.ownerDocument||l:de;return m!==T&&m.nodeType===9&&m.documentElement&&(T=m,z=T.documentElement,F=!s(T),(f=T.defaultView)&&f.top!==f&&(f.addEventListener?f.addEventListener("unload",Zn,!1):f.attachEvent&&f.attachEvent("onunload",Zn)),n.attributes=He(function(g){return g.className="i",!g.getAttribute("className")}),n.getElementsByTagName=He(function(g){return g.appendChild(T.createComment("")),!g.getElementsByTagName("*").length}),n.getElementsByClassName=at.test(T.getElementsByClassName),n.getById=He(function(g){return z.appendChild(g).id=H,!T.getElementsByName||!T.getElementsByName(H).length}),n.getById?(i.find.ID=function(g,w){if(typeof w.getElementById<"u"&&F){var v=w.getElementById(g);return v?[v]:[]}},i.filter.ID=function(g){var w=g.replace(Oe,_e);return function(v){return v.getAttribute("id")===w}}):(delete i.find.ID,i.filter.ID=function(g){var w=g.replace(Oe,_e);return function(v){var L=typeof v.getAttributeNode<"u"&&v.getAttributeNode("id");return L&&L.value===w}}),i.find.TAG=n.getElementsByTagName?function(g,w){return typeof w.getElementsByTagName<"u"?w.getElementsByTagName(g):n.qsa?w.querySelectorAll(g):void 0}:function(g,w){var v,L=[],_=0,X=w.getElementsByTagName(g);if(g==="*"){for(;v=X[_++];)v.nodeType===1&&L.push(v);return L}return X},i.find.CLASS=n.getElementsByClassName&&function(g,w){return typeof w.getElementsByClassName<"u"&&F?w.getElementsByClassName(g):void 0},Ce=[],J=[],(n.qsa=at.test(T.querySelectorAll))&&(He(function(g){z.appendChild(g).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",g.querySelectorAll("[msallowcapture^='']").length&&J.push("[*^$]="+re+`*(?:''|"")`),g.querySelectorAll("[selected]").length||J.push("\\["+re+"*(?:value|"+Vt+")"),g.querySelectorAll("[id~="+H+"-]").length||J.push("~="),g.querySelectorAll(":checked").length||J.push(":checked"),g.querySelectorAll("a#"+H+"+*").length||J.push(".#.+[+~]")}),He(function(g){var w=T.createElement("input");w.setAttribute("type","hidden"),g.appendChild(w).setAttribute("name","D"),g.querySelectorAll("[name=d]").length&&J.push("name"+re+"*[*^$|!~]?="),g.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),g.querySelectorAll("*,:x"),J.push(",.*:")})),(n.matchesSelector=at.test(ce=z.matches||z.webkitMatchesSelector||z.mozMatchesSelector||z.oMatchesSelector||z.msMatchesSelector))&&He(function(g){n.disconnectedMatch=ce.call(g,"div"),ce.call(g,"[s!='']:x"),Ce.push("!=",Gt)}),J=J.length&&new RegExp(J.join("|")),Ce=Ce.length&&new RegExp(Ce.join("|")),c=at.test(z.compareDocumentPosition),Be=c||at.test(z.contains)?function(g,w){var v=g.nodeType===9?g.documentElement:g,L=w&&w.parentNode;return g===L||!(!L||L.nodeType!==1||!(v.contains?v.contains(L):g.compareDocumentPosition&&16&g.compareDocumentPosition(L)))}:function(g,w){if(w){for(;w=w.parentNode;)if(w===g)return!0}return!1},Ye=c?function(g,w){if(g===w)return x=!0,0;var v=!g.compareDocumentPosition-!w.compareDocumentPosition;return v||(v=(g.ownerDocument||g)===(w.ownerDocument||w)?g.compareDocumentPosition(w):1,1&v||!n.sortDetached&&w.compareDocumentPosition(g)===v?g===T||g.ownerDocument===de&&Be(de,g)?-1:w===T||w.ownerDocument===de&&Be(de,w)?1:p?Qe(p,g)-Qe(p,w):0:4&v?-1:1)}:function(g,w){if(g===w)return x=!0,0;var v,L=0,_=g.parentNode,X=w.parentNode,P=[g],B=[w];if(!_||!X)return g===T?-1:w===T?1:_?-1:X?1:p?Qe(p,g)-Qe(p,w):0;if(_===X)return er(g,w);for(v=g;v=v.parentNode;)P.unshift(v);for(v=w;v=v.parentNode;)B.unshift(v);for(;P[L]===B[L];)L++;return L?er(P[L],B[L]):P[L]===de?-1:B[L]===de?1:0}),T},ie.matches=function(l,c){return ie(l,null,null,c)},ie.matchesSelector=function(l,c){if((l.ownerDocument||l)!==T&&D(l),c=c.replace(Qr,"='$1']"),n.matchesSelector&&F&&!Ae[c+" "]&&(!Ce||!Ce.test(c))&&(!J||!J.test(c)))try{var f=ce.call(l,c);if(f||n.disconnectedMatch||l.document&&l.document.nodeType!==11)return f}catch{}return ie(c,T,null,[l]).length>0},ie.contains=function(l,c){return(l.ownerDocument||l)!==T&&D(l),Be(l,c)},ie.attr=function(l,c){(l.ownerDocument||l)!==T&&D(l);var f=i.attrHandle[c.toLowerCase()],m=f&&ze.call(i.attrHandle,c.toLowerCase())?f(l,c,!F):void 0;return m!==void 0?m:n.attributes||!F?l.getAttribute(c):(m=l.getAttributeNode(c))&&m.specified?m.value:null},ie.error=function(l){throw new Error("Syntax error, unrecognized expression: "+l)},ie.uniqueSort=function(l){var c,f=[],m=0,g=0;if(x=!n.detectDuplicates,p=!n.sortStable&&l.slice(0),l.sort(Ye),x){for(;c=l[g++];)c===l[g]&&(m=f.push(g));for(;m--;)l.splice(f[m],1)}return p=null,l},o=ie.getText=function(l){var c,f="",m=0,g=l.nodeType;if(g){if(g===1||g===9||g===11){if(typeof l.textContent=="string")return l.textContent;for(l=l.firstChild;l;l=l.nextSibling)f+=o(l)}else if(g===3||g===4)return l.nodeValue}else for(;c=l[m++];)f+=o(c);return f},i=ie.selectors={cacheLength:50,createPseudo:qe,match:kt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(l){return l[1]=l[1].replace(Oe,_e),l[3]=(l[3]||l[4]||l[5]||"").replace(Oe,_e),l[2]==="~="&&(l[3]=" "+l[3]+" "),l.slice(0,4)},CHILD:function(l){return l[1]=l[1].toLowerCase(),l[1].slice(0,3)==="nth"?(l[3]||ie.error(l[0]),l[4]=+(l[4]?l[5]+(l[6]||1):2*(l[3]==="even"||l[3]==="odd")),l[5]=+(l[7]+l[8]||l[3]==="odd")):l[3]&&ie.error(l[0]),l},PSEUDO:function(l){var c,f=!l[6]&&l[2];return kt.CHILD.test(l[0])?null:(l[3]?l[2]=l[4]||l[5]||"":f&&Kr.test(f)&&(c=u(f,!0))&&(c=f.indexOf(")",f.length-c)-f.length)&&(l[0]=l[0].slice(0,c),l[2]=f.slice(0,c)),l.slice(0,3))}},filter:{TAG:function(l){var c=l.replace(Oe,_e).toLowerCase();return l==="*"?function(){return!0}:function(f){return f.nodeName&&f.nodeName.toLowerCase()===c}},CLASS:function(l){var c=Ie[l+" "];return c||(c=new RegExp("(^|"+re+")"+l+"("+re+"|$)"))&&Ie(l,function(f){return c.test(typeof f.className=="string"&&f.className||typeof f.getAttribute<"u"&&f.getAttribute("class")||"")})},ATTR:function(l,c,f){return function(m){var g=ie.attr(m,l);return g==null?c==="!=":c?(g+="",c==="="?g===f:c==="!="?g!==f:c==="^="?f&&g.indexOf(f)===0:c==="*="?f&&g.indexOf(f)>-1:c==="$="?f&&g.slice(-f.length)===f:c==="~="?(" "+g.replace(Vr," ")+" ").indexOf(f)>-1:c==="|="?g===f||g.slice(0,f.length+1)===f+"-":!1):!0}},CHILD:function(l,c,f,m,g){var w=l.slice(0,3)!=="nth",v=l.slice(-4)!=="last",L=c==="of-type";return m===1&&g===0?function(_){return!!_.parentNode}:function(_,X,P){var B,K,ne,W,le,pe,ke=w!==v?"nextSibling":"previousSibling",oe=_.parentNode,ct=L&&_.nodeName.toLowerCase(),ft=!P&&!L,Se=!1;if(oe){if(w){for(;ke;){for(W=_;W=W[ke];)if(L?W.nodeName.toLowerCase()===ct:W.nodeType===1)return!1;pe=ke=l==="only"&&!pe&&"nextSibling"}return!0}if(pe=[v?oe.firstChild:oe.lastChild],v&&ft){for(W=oe,ne=W[H]||(W[H]={}),K=ne[W.uniqueID]||(ne[W.uniqueID]={}),B=K[l]||[],le=B[0]===G&&B[1],Se=le&&B[2],W=le&&oe.childNodes[le];W=++le&&W&&W[ke]||(Se=le=0)||pe.pop();)if(W.nodeType===1&&++Se&&W===_){K[l]=[G,le,Se];break}}else if(ft&&(W=_,ne=W[H]||(W[H]={}),K=ne[W.uniqueID]||(ne[W.uniqueID]={}),B=K[l]||[],le=B[0]===G&&B[1],Se=le),Se===!1)for(;(W=++le&&W&&W[ke]||(Se=le=0)||pe.pop())&&!((L?W.nodeName.toLowerCase()===ct:W.nodeType===1)&&++Se&&(ft&&(ne=W[H]||(W[H]={}),K=ne[W.uniqueID]||(ne[W.uniqueID]={}),K[l]=[G,Se]),W===_)););return Se-=g,Se===m||Se%m===0&&Se/m>=0}}},PSEUDO:function(l,c){var f,m=i.pseudos[l]||i.setFilters[l.toLowerCase()]||ie.error("unsupported pseudo: "+l);return m[H]?m(c):m.length>1?(f=[l,l,"",c],i.setFilters.hasOwnProperty(l.toLowerCase())?qe(function(g,w){for(var v,L=m(g,c),_=L.length;_--;)v=Qe(g,L[_]),g[v]=!(w[v]=L[_])}):function(g){return m(g,0,f)}):m}},pseudos:{not:qe(function(l){var c=[],f=[],m=a(l.replace(Ct,"$1"));return m[H]?qe(function(g,w,v,L){for(var _,X=m(g,null,L,[]),P=g.length;P--;)(_=X[P])&&(g[P]=!(w[P]=_))}):function(g,w,v){return c[0]=g,m(c,null,v,f),c[0]=null,!f.pop()}}),has:qe(function(l){return function(c){return ie(l,c).length>0}}),contains:qe(function(l){return l=l.replace(Oe,_e),function(c){return(c.textContent||c.innerText||o(c)).indexOf(l)>-1}}),lang:qe(function(l){return Kn.test(l||"")||ie.error("unsupported lang: "+l),l=l.replace(Oe,_e).toLowerCase(),function(c){var f;do if(f=F?c.lang:c.getAttribute("xml:lang")||c.getAttribute("lang"))return f=f.toLowerCase(),f===l||f.indexOf(l+"-")===0;while((c=c.parentNode)&&c.nodeType===1);return!1}}),target:function(l){var c=e.location&&e.location.hash;return c&&c.slice(1)===l.id},root:function(l){return l===z},focus:function(l){return l===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(l.type||l.href||~l.tabIndex)},enabled:function(l){return l.disabled===!1},disabled:function(l){return l.disabled===!0},checked:function(l){var c=l.nodeName.toLowerCase();return c==="input"&&!!l.checked||c==="option"&&!!l.selected},selected:function(l){return l.parentNode&&l.parentNode.selectedIndex,l.selected===!0},empty:function(l){for(l=l.firstChild;l;l=l.nextSibling)if(l.nodeType<6)return!1;return!0},parent:function(l){return!i.pseudos.empty(l)},header:function(l){return ei.test(l.nodeName)},input:function(l){return Zr.test(l.nodeName)},button:function(l){var c=l.nodeName.toLowerCase();return c==="input"&&l.type==="button"||c==="button"},text:function(l){var c;return l.nodeName.toLowerCase()==="input"&&l.type==="text"&&((c=l.getAttribute("type"))==null||c.toLowerCase()==="text")},first:Ze(function(){return[0]}),last:Ze(function(l,c){return[c-1]}),eq:Ze(function(l,c,f){return[0>f?f+c:f]}),even:Ze(function(l,c){for(var f=0;c>f;f+=2)l.push(f);return l}),odd:Ze(function(l,c){for(var f=1;c>f;f+=2)l.push(f);return l}),lt:Ze(function(l,c,f){for(var m=0>f?f+c:f;--m>=0;)l.push(m);return l}),gt:Ze(function(l,c,f){for(var m=0>f?f+c:f;++m<c;)l.push(m);return l})}},i.pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ri(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=ii(t);function tr(){}tr.prototype=i.filters=i.pseudos,i.setFilters=new tr,u=ie.tokenize=function(l,c){var f,m,g,w,v,L,_,X=Tt[l+" "];if(X)return c?0:X.slice(0);for(v=l,L=[],_=i.preFilter;v;){f&&!(m=Gr.exec(v))||(m&&(v=v.slice(m[0].length)||v),L.push(g=[])),f=!1,(m=Yr.exec(v))&&(f=m.shift(),g.push({value:f,type:m[0].replace(Ct," ")}),v=v.slice(f.length));for(w in i.filter)!(m=kt[w].exec(v))||_[w]&&!(m=_[w](m))||(f=m.shift(),g.push({value:f,type:w,matches:m}),v=v.slice(f.length));if(!f)break}return c?v.length:v?ie.error(l):Tt(l,L).slice(0)};function St(l){for(var c=0,f=l.length,m="";f>c;c++)m+=l[c].value;return m}function en(l,c,f){var m=c.dir,g=f&&m==="parentNode",w=se++;return c.first?function(v,L,_){for(;v=v[m];)if(v.nodeType===1||g)return l(v,L,_)}:function(v,L,_){var X,P,B,K=[G,w];if(_){for(;v=v[m];)if((v.nodeType===1||g)&&l(v,L,_))return!0}else for(;v=v[m];)if(v.nodeType===1||g){if(B=v[H]||(v[H]={}),P=B[v.uniqueID]||(B[v.uniqueID]={}),(X=P[m])&&X[0]===G&&X[1]===w)return K[2]=X[2];if(P[m]=K,K[2]=l(v,L,_))return!0}}}function tn(l){return l.length>1?function(c,f,m){for(var g=l.length;g--;)if(!l[g](c,f,m))return!1;return!0}:l[0]}function oi(l,c,f){for(var m=0,g=c.length;g>m;m++)ie(l,c[m],f);return f}function Nt(l,c,f,m,g){for(var w,v=[],L=0,_=l.length,X=c!=null;_>L;L++)(w=l[L])&&(f&&!f(w,m,g)||(v.push(w),X&&c.push(L)));return v}function nn(l,c,f,m,g,w){return m&&!m[H]&&(m=nn(m)),g&&!g[H]&&(g=nn(g,w)),qe(function(v,L,_,X){var P,B,K,ne=[],W=[],le=L.length,pe=v||oi(c||"*",_.nodeType?[_]:_,[]),ke=!l||!v&&c?pe:Nt(pe,ne,l,_,X),oe=f?g||(v?l:le||m)?[]:L:ke;if(f&&f(ke,oe,_,X),m)for(P=Nt(oe,W),m(P,[],_,X),B=P.length;B--;)(K=P[B])&&(oe[W[B]]=!(ke[W[B]]=K));if(v){if(g||l){if(g){for(P=[],B=oe.length;B--;)(K=oe[B])&&P.push(ke[B]=K);g(null,oe=[],P,X)}for(B=oe.length;B--;)(K=oe[B])&&(P=g?Qe(v,K):ne[B])>-1&&(v[P]=!(L[P]=K))}}else oe=Nt(oe===L?oe.splice(le,oe.length):oe),g?g(null,L,oe,X):Xe.apply(L,oe)})}function rn(l){for(var c,f,m,g=l.length,w=i.relative[l[0].type],v=w||i.relative[" "],L=w?1:0,_=en(function(B){return B===c},v,!0),X=en(function(B){return Qe(c,B)>-1},v,!0),P=[function(B,K,ne){var W=!w&&(ne||K!==d)||((c=K).nodeType?_(B,K,ne):X(B,K,ne));return c=null,W}];g>L;L++)if(f=i.relative[l[L].type])P=[en(tn(P),f)];else{if(f=i.filter[l[L].type].apply(null,l[L].matches),f[H]){for(m=++L;g>m&&!i.relative[l[m].type];m++);return nn(L>1&&tn(P),L>1&&St(l.slice(0,L-1).concat({value:l[L-2].type===" "?"*":""})).replace(Ct,"$1"),f,m>L&&rn(l.slice(L,m)),g>m&&rn(l=l.slice(m)),g>m&&St(l))}P.push(f)}return tn(P)}function si(l,c){var f=c.length>0,m=l.length>0,g=function(w,v,L,_,X){var P,B,K,ne=0,W="0",le=w&&[],pe=[],ke=d,oe=w||m&&i.find.TAG("*",X),ct=G+=ke==null?1:Math.random()||.1,ft=oe.length;for(X&&(d=v===T||v||X);W!==ft&&(P=oe[W])!=null;W++){if(m&&P){for(B=0,v||P.ownerDocument===T||(D(P),L=!F);K=l[B++];)if(K(P,v||T,L)){_.push(P);break}X&&(G=ct)}f&&((P=!K&&P)&&ne--,w&&le.push(P))}if(ne+=W,f&&W!==ne){for(B=0;K=c[B++];)K(le,pe,v,L);if(w){if(ne>0)for(;W--;)le[W]||pe[W]||(pe[W]=De.call(_));pe=Nt(pe)}Xe.apply(_,pe),X&&!w&&pe.length>0&&ne+c.length>1&&ie.uniqueSort(_)}return X&&(G=ct,d=ke),le};return f?qe(g):g}return a=ie.compile=function(l,c){var f,m=[],g=[],w=Ae[l+" "];if(!w){for(c||(c=u(l)),f=c.length;f--;)w=rn(c[f]),w[H]?m.push(w):g.push(w);w=Ae(l,si(g,m)),w.selector=l}return w},h=ie.select=function(l,c,f,m){var g,w,v,L,_,X=typeof l=="function"&&l,P=!m&&u(l=X.selector||l);if(f=f||[],P.length===1){if(w=P[0]=P[0].slice(0),w.length>2&&(v=w[0]).type==="ID"&&n.getById&&c.nodeType===9&&F&&i.relative[w[1].type]){if(c=(i.find.ID(v.matches[0].replace(Oe,_e),c)||[])[0],!c)return f;X&&(c=c.parentNode),l=l.slice(w.shift().value.length)}for(g=kt.needsContext.test(l)?0:w.length;g--&&(v=w[g],!i.relative[L=v.type]);)if((_=i.find[L])&&(m=_(v.matches[0].replace(Oe,_e),Yt.test(w[0].type)&&Zt(c.parentNode)||c))){if(w.splice(g,1),l=m.length&&St(w),!l)return Xe.apply(f,m),f;break}}return(X||a(l,P))(m,c,!F,f,!c||Yt.test(l)&&Zt(c.parentNode)||c),f},n.sortStable=H.split("").sort(Ye).join("")===H,n.detectDuplicates=!!x,D(),n.sortDetached=He(function(l){return 1&l.compareDocumentPosition(T.createElement("div"))}),He(function(l){return l.innerHTML="<a href='#'></a>",l.firstChild.getAttribute("href")==="#"})||Kt("type|href|height|width",function(l,c,f){return f?void 0:l.getAttribute(c,c.toLowerCase()==="type"?1:2)}),n.attributes&&He(function(l){return l.innerHTML="<input/>",l.firstChild.setAttribute("value",""),l.firstChild.getAttribute("value")===""})||Kt("value",function(l,c,f){return f||l.nodeName.toLowerCase()!=="input"?void 0:l.defaultValue}),He(function(l){return l.getAttribute("disabled")==null})||Kt(Vt,function(l,c,f){var m;return f?void 0:l[c]===!0?c.toLowerCase():(m=l.getAttributeNode(c))&&m.specified?m.value:null}),ie}(M);r.find=we,r.expr=we.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=we.uniqueSort,r.text=we.getText,r.isXMLDoc=we.isXML,r.contains=we.contains;var Te=function(e,t,n){for(var i=[],o=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(o&&r(e).is(n))break;i.push(e)}return i},dt=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},pt=r.expr.match.needsContext,S=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,q=/^.[^:#\[\.,]*$/;function N(e,t,n){if(r.isFunction(t))return r.grep(e,function(i,o){return!!t.call(i,o,i)!==n});if(t.nodeType)return r.grep(e,function(i){return i===t!==n});if(typeof t=="string"){if(q.test(t))return r.filter(t,e,n);t=r.filter(t,e)}return r.grep(e,function(i){return r.inArray(i,t)>-1!==n})}r.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),t.length===1&&i.nodeType===1?r.find.matchesSelector(i,e)?[i]:[]:r.find.matches(e,r.grep(t,function(o){return o.nodeType===1}))},r.fn.extend({find:function(e){var t,n=[],i=this,o=i.length;if(typeof e!="string")return this.pushStack(r(e).filter(function(){for(t=0;o>t;t++)if(r.contains(i[t],this))return!0}));for(t=0;o>t;t++)r.find(e,i[t],n);return n=this.pushStack(o>1?r.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(N(this,e||[],!1))},not:function(e){return this.pushStack(N(this,e||[],!0))},is:function(e){return!!N(this,typeof e=="string"&&pt.test(e)?r(e):e||[],!1).length}});var $,Q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,te=r.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||$,typeof e=="string"){if(i=e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?[null,e,null]:Q.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof r?t[0]:t,r.merge(this,r.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:j,!0)),S.test(i[1])&&r.isPlainObject(t))for(i in t)r.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if(o=j.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return $.find(e);this.length=1,this[0]=o}return this.context=j,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):r.isFunction(e)?typeof n.ready<"u"?n.ready(e):e(r):(e.selector!==void 0&&(this.selector=e.selector,this.context=e.context),r.makeArray(e,this))};te.prototype=r.fn,$=r(j);var Z=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(e){var t,n=r(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(r.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,o=this.length,s=[],u=pt.test(e)||typeof e!="string"?r(e,t||this.context):0;o>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(u?u.index(n)>-1:n.nodeType===1&&r.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?r.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?r.inArray(this[0],r(e)):r.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function U(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}r.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return Te(e,"parentNode")},parentsUntil:function(e,t,n){return Te(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,t,n){return Te(e,"nextSibling",n)},prevUntil:function(e,t,n){return Te(e,"previousSibling",n)},siblings:function(e){return dt((e.parentNode||{}).firstChild,e)},children:function(e){return dt(e.firstChild)},contents:function(e){return r.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:r.merge([],e.childNodes)}},function(e,t){r.fn[e]=function(n,i){var o=r.map(this,t,n);return e.slice(-5)!=="Until"&&(i=n),i&&typeof i=="string"&&(o=r.filter(i,o)),this.length>1&&(O[e]||(o=r.uniqueSort(o)),Z.test(e)&&(o=o.reverse())),this.pushStack(o)}});var V=/\S+/g;function ee(e){var t={};return r.each(e.match(V)||[],function(n,i){t[i]=!0}),t}r.Callbacks=function(e){e=typeof e=="string"?ee(e):r.extend({},e);var t,n,i,o,s=[],u=[],a=-1,h=function(){for(o=e.once,i=t=!0;u.length;a=-1)for(n=u.shift();++a<s.length;)s[a].apply(n[0],n[1])===!1&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(s=n?[]:"")},d={add:function(){return s&&(n&&!t&&(a=s.length-1,u.push(n)),function p(x){r.each(x,function(D,T){r.isFunction(T)?e.unique&&d.has(T)||s.push(T):T&&T.length&&r.type(T)!=="string"&&p(T)})}(arguments),n&&!t&&h()),this},remove:function(){return r.each(arguments,function(p,x){for(var D;(D=r.inArray(x,s,D))>-1;)s.splice(D,1),a>=D&&a--}),this},has:function(p){return p?r.inArray(p,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=u=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=!0,n||d.disable(),this},locked:function(){return!!o},fireWith:function(p,x){return o||(x=x||[],x=[p,x.slice?x.slice():x],u.push(x),t||h()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},r.extend({Deferred:function(e){var t=[["resolve","done",r.Callbacks("once memory"),"resolved"],["reject","fail",r.Callbacks("once memory"),"rejected"],["notify","progress",r.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var s=arguments;return r.Deferred(function(u){r.each(t,function(a,h){var d=r.isFunction(s[a])&&s[a];o[h[1]](function(){var p=d&&d.apply(this,arguments);p&&r.isFunction(p.promise)?p.promise().progress(u.notify).done(u.resolve).fail(u.reject):u[h[0]+"With"](this===i?u.promise():this,d?[p]:arguments)})}),s=null}).promise()},promise:function(s){return s!=null?r.extend(s,i):i}},o={};return i.pipe=i.then,r.each(t,function(s,u){var a=u[2],h=u[3];i[u[1]]=a.add,h&&a.add(function(){n=h},t[1^s][2].disable,t[2][2].lock),o[u[0]]=function(){return o[u[0]+"With"](this===o?i:this,arguments),this},o[u[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=0,n=ue.call(arguments),i=n.length,o=i!==1||e&&r.isFunction(e.promise)?i:0,s=o===1?e:r.Deferred(),u=function(p,x,D){return function(T){x[p]=this,D[p]=arguments.length>1?ue.call(arguments):T,D===a?s.notifyWith(x,D):--o||s.resolveWith(x,D)}},a,h,d;if(i>1)for(a=new Array(i),h=new Array(i),d=new Array(i);i>t;t++)n[t]&&r.isFunction(n[t].promise)?n[t].promise().progress(u(t,h,a)).done(u(t,d,n)).fail(s.reject):--o;return o||s.resolveWith(d,n),s.promise()}});var he;r.fn.ready=function(e){return r.ready.promise().done(e),this},r.extend({isReady:!1,readyWait:1,holdReady:function(e){e?r.readyWait++:r.ready(!0)},ready:function(e){(e===!0?--r.readyWait:r.isReady)||(r.isReady=!0,e!==!0&&--r.readyWait>0||(he.resolveWith(j,[r]),r.fn.triggerHandler&&(r(j).triggerHandler("ready"),r(j).off("ready"))))}});function ge(){j.addEventListener?(j.removeEventListener("DOMContentLoaded",Ne),M.removeEventListener("load",Ne)):(j.detachEvent("onreadystatechange",Ne),M.detachEvent("onload",Ne))}function Ne(){(j.addEventListener||M.event.type==="load"||j.readyState==="complete")&&(ge(),r.ready())}r.ready.promise=function(e){if(!he)if(he=r.Deferred(),j.readyState==="complete"||j.readyState!=="loading"&&!j.documentElement.doScroll)M.setTimeout(r.ready);else if(j.addEventListener)j.addEventListener("DOMContentLoaded",Ne),M.addEventListener("load",Ne);else{j.attachEvent("onreadystatechange",Ne),M.attachEvent("onload",Ne);var t=!1;try{t=M.frameElement==null&&j.documentElement}catch{}t&&t.doScroll&&function n(){if(!r.isReady){try{t.doScroll("left")}catch{return M.setTimeout(n,50)}ge(),r.ready()}}()}return he.promise(e)},r.ready.promise();var Me;for(Me in r(y))break;y.ownFirst=Me==="0",y.inlineBlockNeedsLayout=!1,r(function(){var e,t,n,i;n=j.getElementsByTagName("body")[0],n&&n.style&&(t=j.createElement("div"),i=j.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom<"u"&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",y.inlineBlockNeedsLayout=e=t.offsetWidth===3,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=j.createElement("div");y.deleteExpando=!0;try{delete e.test}catch{y.deleteExpando=!1}e=null}();var ot=function(e){var t=r.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return n!==1&&n!==9?!1:!t||t!==!0&&e.getAttribute("classid")===t},nr=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rr=/([A-Z])/g;function on(e,t,n){if(n===void 0&&e.nodeType===1){var i="data-"+t.replace(rr,"-$1").toLowerCase();if(n=e.getAttribute(i),typeof n=="string"){try{n=n==="true"?!0:n==="false"?!1:n==="null"?null:+n+""===n?+n:nr.test(n)?r.parseJSON(n):n}catch{}r.data(e,t,n)}else n=void 0}return n}function Et(e){var t;for(t in e)if((t!=="data"||!r.isEmptyObject(e[t]))&&t!=="toJSON")return!1;return!0}function sn(e,t,n,i){if(ot(e)){var o,s,u=r.expando,a=e.nodeType,h=a?r.cache:e,d=a?e[u]:e[u]&&u;if(d&&h[d]&&(i||h[d].data)||n!==void 0||typeof t!="string")return d||(d=a?e[u]=ve.pop()||r.guid++:u),h[d]||(h[d]=a?{}:{toJSON:r.noop}),typeof t!="object"&&typeof t!="function"||(i?h[d]=r.extend(h[d],t):h[d].data=r.extend(h[d].data,t)),s=h[d],i||(s.data||(s.data={}),s=s.data),n!==void 0&&(s[r.camelCase(t)]=n),typeof t=="string"?(o=s[t],o==null&&(o=s[r.camelCase(t)])):o=s,o}}function un(e,t,n){if(ot(e)){var i,o,s=e.nodeType,u=s?r.cache:e,a=s?e[r.expando]:r.expando;if(u[a]){if(t&&(i=n?u[a]:u[a].data)){for(r.isArray(t)?t=t.concat(r.map(t,r.camelCase)):(t in i)?t=[t]:(t=r.camelCase(t),t=t in i?[t]:t.split(" ")),o=t.length;o--;)delete i[t[o]];if(n?!Et(i):!r.isEmptyObject(i))return}(n||(delete u[a].data,Et(u[a])))&&(s?r.cleanData([e],!0):y.deleteExpando||u!=u.window?delete u[a]:u[a]=void 0)}}}r.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?r.cache[e[r.expando]]:e[r.expando],!!e&&!Et(e)},data:function(e,t,n){return sn(e,t,n)},removeData:function(e,t){return un(e,t)},_data:function(e,t,n){return sn(e,t,n,!0)},_removeData:function(e,t){return un(e,t,!0)}}),r.fn.extend({data:function(e,t){var n,i,o,s=this[0],u=s&&s.attributes;if(e===void 0){if(this.length&&(o=r.data(s),s.nodeType===1&&!r._data(s,"parsedAttrs"))){for(n=u.length;n--;)u[n]&&(i=u[n].name,i.indexOf("data-")===0&&(i=r.camelCase(i.slice(5)),on(s,i,o[i])));r._data(s,"parsedAttrs",!0)}return o}return typeof e=="object"?this.each(function(){r.data(this,e)}):arguments.length>1?this.each(function(){r.data(this,e,t)}):s?on(s,e,r.data(s,e)):void 0},removeData:function(e){return this.each(function(){r.removeData(this,e)})}}),r.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=r._data(e,t),n&&(!i||r.isArray(n)?i=r._data(e,t,r.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=r.queue(e,t),i=n.length,o=n.shift(),s=r._queueHooks(e,t),u=function(){r.dequeue(e,t)};o==="inprogress"&&(o=n.shift(),i--),o&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,o.call(e,u,s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return r._data(e,n)||r._data(e,n,{empty:r.Callbacks("once memory").add(function(){r._removeData(e,t+"queue"),r._removeData(e,n)})})}}),r.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?r.queue(this[0],e):t===void 0?this:this.each(function(){var i=r.queue(this,e,t);r._queueHooks(this,e),e==="fx"&&i[0]!=="inprogress"&&r.dequeue(this,e)})},dequeue:function(e){return this.each(function(){r.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=r.Deferred(),s=this,u=this.length,a=function(){--i||o.resolveWith(s,[s])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";u--;)n=r._data(s[u],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}}),function(){var e;y.shrinkWrapBlocks=function(){if(e!=null)return e;e=!1;var t,n,i;return n=j.getElementsByTagName("body")[0],n&&n.style?(t=j.createElement("div"),i=j.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom<"u"&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(j.createElement("div")).style.width="5px",e=t.offsetWidth!==3),n.removeChild(i),e):void 0}}();var At=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dt=new RegExp("^(?:([+-])=|)("+At+")([a-z%]*)$","i"),be=["Top","Right","Bottom","Left"],st=function(e,t){return e=t||e,r.css(e,"display")==="none"||!r.contains(e.ownerDocument,e)};function ln(e,t,n,i){var o,s=1,u=20,a=i?function(){return i.cur()}:function(){return r.css(e,t,"")},h=a(),d=n&&n[3]||(r.cssNumber[t]?"":"px"),p=(r.cssNumber[t]||d!=="px"&&+h)&&Dt.exec(r.css(e,t));if(p&&p[3]!==d){d=d||p[3],n=n||[],p=+h||1;do s=s||".5",p/=s,r.style(e,t,p+d);while(s!==(s=a()/h)&&s!==1&&--u)}return n&&(p=+p||+h||0,o=n[1]?p+(n[1]+1)*n[2]:+n[2],i&&(i.unit=d,i.start=p,i.end=o)),o}var Fe=function(e,t,n,i,o,s,u){var a=0,h=e.length,d=n==null;if(r.type(n)==="object"){o=!0;for(a in n)Fe(e,t,a,n[a],!0,s,u)}else if(i!==void 0&&(o=!0,r.isFunction(i)||(u=!0),d&&(u?(t.call(e,i),t=null):(d=t,t=function(p,x,D){return d.call(r(p),D)})),t))for(;h>a;a++)t(e[a],n,u?i:i.call(e[a],a,t(e[a],n)));return o?e:d?t.call(e):h?t(e[0],n):s},Lt=/^(?:checkbox|radio)$/i,an=/<([\w:-]+)/,cn=/^$|\/(?:java|ecma)script/i,jt=/^\s+/,fn="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function dn(e){var t=fn.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}(function(){var e=j.createElement("div"),t=j.createDocumentFragment(),n=j.createElement("input");e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",y.leadingWhitespace=e.firstChild.nodeType===3,y.tbody=!e.getElementsByTagName("tbody").length,y.htmlSerialize=!!e.getElementsByTagName("link").length,y.html5Clone=j.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",n.type="checkbox",n.checked=!0,t.appendChild(n),y.appendChecked=n.checked,e.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=j.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),y.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,y.noCloneEvent=!!e.addEventListener,e[r.expando]=1,y.attributes=!e.getAttribute(r.expando)})();var Ee={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:y.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Ee.optgroup=Ee.option,Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td;function fe(e,t){var n,i,o=0,s=typeof e.getElementsByTagName<"u"?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll<"u"?e.querySelectorAll(t||"*"):void 0;if(!s)for(s=[],n=e.childNodes||e;(i=n[o])!=null;o++)!t||r.nodeName(i,t)?s.push(i):r.merge(s,fe(i,t));return t===void 0||t&&r.nodeName(e,t)?r.merge([e],s):s}function qt(e,t){for(var n,i=0;(n=e[i])!=null;i++)r._data(n,"globalEval",!t||r._data(t[i],"globalEval"))}var ir=/<|&#?\w+;/,pn=/<tbody/i;function or(e){Lt.test(e.type)&&(e.defaultChecked=e.checked)}function hn(e,t,n,i,o){for(var s,u,a,h,d,p,x,D=e.length,T=dn(t),z=[],F=0;D>F;F++)if(u=e[F],u||u===0)if(r.type(u)==="object")r.merge(z,u.nodeType?[u]:u);else if(ir.test(u)){for(h=h||T.appendChild(t.createElement("div")),d=(an.exec(u)||["",""])[1].toLowerCase(),x=Ee[d]||Ee._default,h.innerHTML=x[1]+r.htmlPrefilter(u)+x[2],s=x[0];s--;)h=h.lastChild;if(!y.leading