bfg-common 1.1.106 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/minify.js +126 -51
- package/package.json +4 -2
- package/plugins/spice-console/spice.console.ts +3 -113
- package/public/spice-console-minify/run.min.js +68 -96
- package/public/spice-console-minify/application/WorkerProcess.min.js +0 -1
- package/public/spice-console-minify/application/WorkerProcess_back.min.js +0 -1
- package/public/spice-console-minify/application/WorkerProcess_meta.min.js +0 -1
- package/public/spice-console-minify/application/WorkerProcess_reverse.min.js +0 -1
- package/public/spice-console-minify/application/agent.min.js +0 -1
- package/public/spice-console-minify/application/application.min.js +0 -1
- package/public/spice-console-minify/application/checkActivity.min.js +0 -1
- package/public/spice-console-minify/application/clientgui.min.js +0 -1
- package/public/spice-console-minify/application/clipboard/clipboarddataparser.min.js +0 -1
- package/public/spice-console-minify/application/clipboard/local/localClipboard.min.js +0 -1
- package/public/spice-console-minify/application/clipboard.min.js +0 -1
- package/public/spice-console-minify/application/codec.min.js +0 -1
- package/public/spice-console-minify/application/imagecache.min.js +0 -1
- package/public/spice-console-minify/application/inputmanager.min.js +0 -1
- package/public/spice-console-minify/application/packetfactory.min.js +0 -1
- package/public/spice-console-minify/application/packetfilter.min.js +0 -1
- package/public/spice-console-minify/application/packetprocess.min.js +0 -1
- package/public/spice-console-minify/application/rasteroperation.min.js +0 -1
- package/public/spice-console-minify/application/spiceconnection.min.js +0 -1
- package/public/spice-console-minify/application/stream.min.js +0 -1
- package/public/spice-console-minify/application/virtualmouse.min.js +0 -1
- package/public/spice-console-minify/keymaps/keyevent.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymap.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymapes.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymapesObj.min.js +0 -1
- package/public/spice-console-minify/keymaps/keymapus.min.js +0 -1
- package/public/spice-console-minify/keymaps/scanCodeObjModifier.min.js +0 -1
- package/public/spice-console-minify/keymaps/scanCodeObjProvider.min.js +0 -1
- package/public/spice-console-minify/lib/AsyncConsumer.min.js +0 -1
- package/public/spice-console-minify/lib/AsyncWorker.min.js +0 -1
- package/public/spice-console-minify/lib/CollisionDetector.min.js +0 -1
- package/public/spice-console-minify/lib/DataLogger.min.js +0 -1
- package/public/spice-console-minify/lib/GenericObjectPool.min.js +0 -1
- package/public/spice-console-minify/lib/GlobalPool.min.js +0 -1
- package/public/spice-console-minify/lib/ImageUncompressor.min.js +0 -1
- package/public/spice-console-minify/lib/IntegrationBenchmark.min.js +0 -1
- package/public/spice-console-minify/lib/PacketWorkerIdentifier.min.js +0 -1
- package/public/spice-console-minify/lib/SyncAsyncHandler.min.js +0 -1
- package/public/spice-console-minify/lib/base64.min.js +0 -1
- package/public/spice-console-minify/lib/biginteger.min.js +0 -1
- package/public/spice-console-minify/lib/bowser.min.js +0 -1
- package/public/spice-console-minify/lib/decoder/dixie.min.js +0 -5
- package/public/spice-console-minify/lib/decoder/jmuxer.min.js +0 -1
- package/public/spice-console-minify/lib/displayRouter.min.js +0 -1
- package/public/spice-console-minify/lib/encrypt.min.js +0 -1
- package/public/spice-console-minify/lib/flipper.min.js +0 -1
- package/public/spice-console-minify/lib/graphic.min.js +0 -1
- package/public/spice-console-minify/lib/graphicdebug.min.js +0 -1
- package/public/spice-console-minify/lib/images/bitmap.min.js +0 -1
- package/public/spice-console-minify/lib/images/jsquic_family.min.js +0 -1
- package/public/spice-console-minify/lib/images/jsquic_rgba.min.js +0 -1
- package/public/spice-console-minify/lib/images/jsquic_uncompress.min.js +0 -1
- package/public/spice-console-minify/lib/images/lz.min.js +0 -1
- package/public/spice-console-minify/lib/images/png.min.js +0 -1
- package/public/spice-console-minify/lib/jgestures.min.js +0 -25
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +0 -25
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +0 -12
- package/public/spice-console-minify/lib/jquery-visibility.min.js +0 -2
- package/public/spice-console-minify/lib/jsbn.min.js +0 -1
- package/public/spice-console-minify/lib/jsbn2.min.js +0 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +0 -6
- package/public/spice-console-minify/lib/modernizr.min.js +0 -1
- package/public/spice-console-minify/lib/pixastic.min.js +0 -1
- package/public/spice-console-minify/lib/prettyprint.min.js +0 -1
- package/public/spice-console-minify/lib/prng4.min.js +0 -1
- package/public/spice-console-minify/lib/queue.min.js +0 -1
- package/public/spice-console-minify/lib/rasterEngine.min.js +0 -1
- package/public/spice-console-minify/lib/rng.min.js +0 -1
- package/public/spice-console-minify/lib/runqueue.min.js +0 -1
- package/public/spice-console-minify/lib/sha1.min.js +0 -1
- package/public/spice-console-minify/lib/stuckkeyshandler.min.js +0 -1
- package/public/spice-console-minify/lib/timelapsedetector.min.js +0 -1
- package/public/spice-console-minify/lib/utils.min.js +0 -1
- package/public/spice-console-minify/lib/virtualjoystick.min.js +0 -1
- package/public/spice-console-minify/network/busconnection.min.js +0 -1
- package/public/spice-console-minify/network/clusternodechooser.min.js +0 -1
- package/public/spice-console-minify/network/connectioncontrol.min.js +0 -1
- package/public/spice-console-minify/network/packetcontroller.min.js +0 -1
- package/public/spice-console-minify/network/packetextractor.min.js +0 -1
- package/public/spice-console-minify/network/packetlinkfactory.min.js +0 -1
- package/public/spice-console-minify/network/packetreassembler.min.js +0 -1
- package/public/spice-console-minify/network/reassemblerfactory.min.js +0 -1
- package/public/spice-console-minify/network/sizedefiner.min.js +0 -1
- package/public/spice-console-minify/network/socket.min.js +0 -1
- package/public/spice-console-minify/network/socketqueue.min.js +0 -1
- package/public/spice-console-minify/network/spicechannel.min.js +0 -1
- package/public/spice-console-minify/network/websocketwrapper.min.js +0 -1
- package/public/spice-console-minify/process/busprocess.min.js +0 -1
- package/public/spice-console-minify/process/cursorprocess.min.js +0 -1
- package/public/spice-console-minify/process/displaypreprocess.min.js +0 -1
- package/public/spice-console-minify/process/displayprocess.min.js +0 -1
- package/public/spice-console-minify/process/inputprocess.min.js +0 -1
- package/public/spice-console-minify/process/mainprocess.min.js +0 -1
- package/public/spice-console-minify/process/playbackprocess.min.js +0 -1
- package/public/spice-console-minify/spiceobjects/generated/protocol.min.js +0 -1
- package/public/spice-console-minify/spiceobjects/spiceobjects.min.js +0 -1
- package/public/spice-console-minify/swcanvas/swcanvas.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wdi.GraphicDebug=$.spcExtend(wdi.DomainObject,{debugMode:null,spiceGraphicMessageTypes:[],cloneSpiceMessage:null,clientGui:null,tmpCanvas:null,tmpContext:null,originalCanvas:null,spiceMessageData:null,endCanvas:null,currentOperation:null,init:function(e){this.debugMode=e.debugMode,this.debugMode?(this._generateArray(),this._showDebug()):this._hideDebug()},_generateArray:function(){var e=this;$.each(wdi.SpiceVars,(function(a,t){-1!=a.search("SPICE_MSG_DISPLAY_")&&(e.spiceGraphicMessageTypes[t]=a)}))},_showDebug:function(){$("#canvasSpace").show(),$("#graphicDebug").show()},_hideDebug:function(){$("#canvasSpace").hide(),$("#graphicDebug").hide()},printDebugMessageOnFilter:function(e,a){if(e.channel===wdi.SpiceVars.SPICE_CHANNEL_DISPLAY&&this.debugMode&&$("#logActive").prop("checked")){var t=null;if(this.clientGui=a,this.cloneSpiceMessage=$.extend(!0,{},e),this.cloneSpiceMessage.args.base&&null!==this.cloneSpiceMessage.args.base.surface_id){t=this.cloneSpiceMessage.args.base.surface_id;var i=wdi.graphics.getBoxFromSrcArea(this.cloneSpiceMessage.args.base.box),s=$("<div/>").append(prettyPrint(this.cloneSpiceMessage)).hide();this.originalCanvas=this._copyCanvasFromSurfaceId(t),this.spiceMessageData=e.args.originalData,this.currentOperation=this.spiceGraphicMessageTypes[this.cloneSpiceMessage.messageType],$("#debugInfo").append($("<br/>")).append($("<hr/>")).append(this._copyAndHighlightCanvas(t,i)).append($("<br/>")).append($("<div/>").append(this.currentOperation+" (Click to hide/show)").css("cursor","pointer").css("color","blue").css("text-decoration","underline").click((function(){s.toggle()}))).append(s),this.cloneSpiceMessage.args.hasOwnProperty("image")&&this._printImage(s)}}},_printImage:function(e){wdi.graphics.getImageFromSpice(this.cloneSpiceMessage.args.image.imageDescriptor,this.cloneSpiceMessage.args.image.data,this.clientGui,(function(a){a&&e.append($("<div/>").css("font-size","12px").append("Image inside spiceMessage:").append($("<br/>")).css("border","1px solid black").append(a))}),this)},handleStreamInfo:function(){if(wdi.Stream.streams){$("#debug-stream").text("");for(let e in wdi.Stream.streams){const a=wdi.Stream.streams[e];a&&$("#debug-stream").append(`<p style="color: rgb(100, 255, 100)">Codec: ${a.codec} | Stream ID: ${a.id}</p>`)}}},printDebugMessageOnNotifyEnd:function(e,a){if(this.clientGui=a,e.channel===wdi.SpiceVars.SPICE_CHANNEL_DISPLAY&&this.debugMode&&$("#logActive").prop("checked")){var t=null;if(e.args.base&&null!==e.args.base.surface_id){var i=this;t=e.args.base.surface_id;var s=wdi.graphics.getBoxFromSrcArea(e.args.base.box),n=this._copyCanvasFromSurfaceId(t);$("#debugInfo").append($("<br/>")).append($("<div/>").append($("<button>Create test</button>").css("cursor","pointer").click((r=this.spiceMessageData,c=this.originalCanvas,o=n,p=this.currentOperation,function(){i.createImageTest(r,c,o,p)}))).append($("<button>Create replay window</button>").css("cursor","pointer").click(function(e,a,t,s){return function(){i.createReplay(e,a,t,s)}}(this.spiceMessageData,this.originalCanvas,n,this.currentOperation)))).append($("<br/>")).append(this._copyAndHighlightCanvas(t,s))}}var r,c,o,p},createImageTest:function(e,a,t,i){var s=prompt("Name of the test",i),n={origin:a.toDataURL("image/png"),expected:t.toDataURL("image/png"),object:e,name:s},r=JSON.stringify(n),c=s.replace(/\s/g,"_");$.post("graphictestgenerator.php","data="+r+"&name="+c).done((function(e,a,t){alert("Test created")})).fail((function(e,a,t){alert("Test creation failed.\n\nGot response: "+e.status+" "+e.statusText+"\n\n"+e.responseText)}))},createReplay:function(e,a){var t={origin:a.toDataURL("image/png"),object:e,width:a.width,height:a.height},i=JSON.stringify(t);$.post("graphictestgenerator.php","data="+i+"&replay=true").done((function(e,a,t){window.open("replay.html","replay")})).fail((function(e,a,t){alert("Replay failed.\n\nGot response: "+e.status+" "+e.statusText+"\n\n"+e.responseText)}))},_copyCanvasFromSurfaceId:function(e){var a=this.clientGui.getContext(e);this.tmpCanvas=a.canvas;var t=document.createElement("canvas");return t.width=this.tmpCanvas.width,t.height=this.tmpCanvas.height,t.getContext("2d").drawImage(this.tmpCanvas,0,0),t},_copyAndHighlightCanvas:function(e,a){var t=this._copyCanvasFromSurfaceId(e);return context=t.getContext("2d"),context.fillStyle="rgba(255,0,0,0.3)",context.fillRect(a.x,a.y,a.width,a.height),t}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wdi.BMP2=$.spcExtend(wdi.SpiceObject,{objectSize:0,mapper:[0,1,1,4,4,8,16,24,32,32],init:function(t){var e,i,a,s,h=this.bytesToInt8(t),p=this.bytesToInt8(t),r=this.bytesToInt32(t),n=this.bytesToInt32(t),o=this.bytesToInt32(t),l=this.mapper[h],m=0;if(l<=8&&l>0){var d=[];if(1&p){this.bytesToInt32(t);e=t.length;var g,I=4*Math.pow(2,l)+8+2;for(e-=I,s=t.splice(e,I),a=this.bytesToInt64(s),m=this.bytesToInt16(s),i=0;i<4*m;i+=4)(g=new wdi.Queue).setData(s.slice(i,i+4)),d.push((new wdi.SpiceColor).demarshall(g));wdi.ImageCache.addPalette(a,d)}else{var f;for(a=this.bytesToInt64(t),e=t.length,s=[],m=(d=wdi.ImageCache.getPalette(a)).length,i=0;i<m;i++)(f=d[i].marshall()).push(0),s=s.concat(f)}}else this.bytesToInt32(t);this.setContent({imageSize:e,width:r,height:n,bpp:l,imageData:t,paletteSize:4*m,palette:d,stride:o,type:h})},setContent:function(t){this.imageSize=t.imageSize,this.width=t.width,this.height=t.height,this.bpp=t.bpp,this.imageData=t.imageData,this.palette=t.palette,this.offset=t.paletteSize+54,this.size=this.offset+this.imageSize,this.stride=t.stride,this.type=9},marshall:function(t){var e,i,a,s,h,p,r=this.type,n=this.palette,o=this.width,l=this.height,m=this.stride,d=this.imageData,g=d.length,I=8*m/this.bpp,f=new ArrayBuffer(4*I*l),w=new Uint8ClampedArray(f),T=new Uint32Array(f),b=!1;if(n){if(s=0,r===wdi.SpiceBitmapFmt.SPICE_BITMAP_FMT_1BIT_BE){var c=(h=n[1]).r<<24|h.g<<16|h.b<<8|255,B=(h=n[0]).r<<24|h.g<<16|h.b<<8|255,S=[1,2,4,8,16,32,64,128];for(a=0;a<g;a++)for(e=d[a],i=7;i>=0;i--)T[s++]=e&S[i]?c:B}else if(r===wdi.SpiceBitmapFmt.SPICE_BITMAP_FMT_4BIT_BE)for(a=0;a<g;a++)h=n[(e=d[a])>>>4],T[s++]=h.r<<24|h.g<<16|h.b<<8|255,h=n[15&e],T[s++]=h.r<<24|h.g<<16|h.b<<8|255}else{if(r===wdi.SpiceBitmapFmt.SPICE_BITMAP_FMT_32BIT)for(a=0;a<g;a+=4)p=d[a],d[a]=d[a+2],d[a+2]=p,d[a+3]=255;else if(r===wdi.SpiceBitmapFmt.SPICE_BITMAP_FMT_RGBA)for(b=!0,a=0;a<g;a+=4)p=d[a],d[a]=d[a+2],d[a+2]=p;else if(r===wdi.SpiceBitmapFmt.SPICE_BITMAP_FMT_24BIT)for(a=0;a<g;a+=3)p=d[a],d[a]=d[a+2],d[a+2]=p;w=new Uint8ClampedArray(d)}var y=new ImageData(w,I,l),_=wdi.graphics.getNewTmpCanvas(o,l);return _.getContext("2d").putImageData(y,0,0,0,0,o,l),y=_,b||(y=wdi.RasterOperation.flip(y)),y}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function golomb_code_len(e,n){return e<wdi.nGRcodewords[n]?1+(e>>>n)+n:wdi.notGRcwlen[n]}function golomb_decoding(e,n,o){var t,d;if(n>wdi.notGRprefixmask[e]){var _=cnt_l_zeroes(n);d=_<<e>>>0|n>>>32-(t=_+1+e)&o[e]}else t=wdi.notGRcwlen[e],d=wdi.nGRcodewords[e]+(n>>>32-t&o[wdi.notGRsuffixlen[e]]);return[d,t]}function real_update_model(e,n,o,t){var d,_,r,c,l=n.pcounters;for(r=l[_=t-1]+=golomb_code_len(o,_),d=t-2;d>=0;d--)(c=l[d]+=golomb_code_len(o,d))<r&&(_=d,r=c);if(n.bestcode=_,r>e.wm_trigger)for(d=0;d<t;d++)l[d]>>>=1}function UPDATE_MODEL(e,n,o,t,d,_){real_update_model(n.rgb_state,find_bucket(n.channels[0],t[e-1]),t[e],o),real_update_model(n.rgb_state,find_bucket(n.channels[1],d[e-1]),d[e],o),real_update_model(n.rgb_state,find_bucket(n.channels[2],_[e-1]),_[e],o)}function find_bucket(e,n){return void 0===n&&(n=e.oldFirst),e._buckets_ptrs[n]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function QUIC_UNCOMPRESS_RGBA(t,e,i,a){quic_uncompress_row0(t,e,i,a),quic_four_uncompress_row0(t,t.channels[3],i,a),t.row_completed();for(var _=t.height,o=t.rgb_state,r=1;r<_;r++)quic_uncompress_row(t,e,i,a,o),quic_four_uncompress_row(t,t.channels[3],i,a),t.row_completed()}function quic_four_uncompress_row(t,e,i,a){for(var _=wdi.JSQuic.BPC_MASK[a],o=0,r=t.width;wdi.JSQuic.wmimax>e.state.wmidx&&e.state.wmileft<=r;)e.state.wmileft&&(uncompress_four_row_seg(t,e,o,o+e.state.wmileft,i,_,a),o+=e.state.wmileft,r-=e.state.wmileft),e.state.wmidx++,wdi.JSQuic.set_wm_trigger(e.state),e.state.wmileft=wdi.JSQuic.wminext;r&&(uncompress_four_row_seg(t,e,o,o+r,i,_,a),wdi.JSQuic.wmimax>e.state.wmidx&&(e.state.wmileft-=r))}function uncompress_four_row_seg(t,e,i,a,_,o,r){var c,s,w,d,n=e.correlate_row,u=0,l=wdi.JSQuic.bppmask[e.state.wmidx],m=0,f=0,p=!1,S=t.computedWidth,b=t.rows_completed,E=(t.rows_completed-1)*S,A=t.eatbits,P=t.appendAlpha,g=wdi.JSQuic.bppmask;for(i?(u=i+e.state.waitcnt,s=t.result[t.alphaPos-4]):(s=UNCOMPRESS_ONE_0_A(e,t,o,E),e.state.waitcnt?--e.state.waitcnt:(e.state.waitcnt=wdi.JSQuic.tabrand(e.state)&l,real_update_model(e.state,find_bucket(e,n[-1]),n[0],_)),u=++i+e.state.waitcnt);;){for(;u<a;){for(;i<=u&&!(p=RLE_PRED_A(i,t,m,S,b));i++)c=(w=golomb_decoding(find_bucket(e,n[i-1]).bestcode,t.io_word,g))[0],d=w[1],n[i]=c,s=(wdi.xlatL2U[c]+(s+PIXEL_B(e,t,i,E)>>>1)&o)>>>0,P.call(t,s),A.call(t,d);if(p)break;real_update_model(e.state,find_bucket(e,n[u-1]),n[u],_),u=i+(wdi.JSQuic.tabrand(e.state)&l)}if(!p){for(;i<a&&!(p=RLE_PRED_A(i,t,m,S,b));i++)c=(w=golomb_decoding(find_bucket(e,n[i-1]).bestcode,t.io_word,g))[0],d=w[1],n[i]=c,s=(wdi.xlatL2U[c]+(s+PIXEL_B(e,t,i,E)>>>1)&o)>>>0,P.call(t,s),A.call(t,d);if(!p)return void(e.state.waitcnt=u-a)}e.state.waitcnt=u-i,m=i,f=i+wdi.JSQuic.decode_channel_run(t,e);for(var O=t.rows_completed*(4*t.width)+4*i,Q=t.result[O-1];i<f;i++)P.call(t,Q);if(i===a)return;u=i+e.state.waitcnt,p=!1}}function quic_four_uncompress_row0(t,e,i,a){for(var _=wdi.JSQuic.BPC_MASK[a],o=0,r=t.width;wdi.JSQuic.wmimax>e.state.wmidx&&e.state.wmileft<=r;)e.state.wmileft&&(uncompress_four_row0_seg(t,e,o,o+e.wmileft,wdi.JSQuic.bppmask[e.state.wmidx],i,_,a),o+=e.state.wmileft,r-=e.state.wmileft),e.state.wmidx++,wdi.JSQuic.set_wm_trigger(e.state),e.state.wmileft=wdi.JSQuic.wminext;r&&(uncompress_four_row0_seg(t,e,o,o+r,wdi.JSQuic.bppmask[e.state.wmidx],i,_,a),wdi.JSQuic.wmimax>e.state.wmidx&&(e.state.wmileft-=r))}function uncompress_four_row0_seg(t,e,i,a,_,o,r,c){var s=e.correlate_row,w=0;for(i?w=i+e.state.waitcnt:(UNCOMPRESS_ONE_ROW0_0_A(e),e.state.waitcnt?--e.state.waitcnt:(e.state.waitcnt=wdi.JSQuic.tabrand(e.state)&_,real_update_model(e.state,find_bucket(e,s[-1]),s[0],o)),w=++i+e.state.waitcnt);w<a;){for(;i<=w;i++)UNCOMPRESS_ONE_ROW0_A(e,i,r,t,s);real_update_model(e.state,find_bucket(e,s[w-1]),s[w],o),w=i+(wdi.JSQuic.tabrand(e.state)&_)}for(;i<a;i++)UNCOMPRESS_ONE_ROW0_A(e,i,r,t,s);e.state.waitcnt=w-a}function SAME_PIXEL_A(t,e){return e[t-1]===e[t+3]}function RLE_PRED_A(t,e,i,a,_){var o=(_-1)*a+4*t;return!!(i!==t&&t>2&&SAME_PIXEL_A(o,e.result)&&SAME_PIXEL_A(o=_*a+4*(t-1),e.result))}function UNCOMPRESS_ONE_0_A(t,e,i,a){var _,o;t.oldFirst=t.correlate_row[0],_=golomb_decoding(find_bucket(t,t.correlate_row[-1]).bestcode,e.io_word,wdi.JSQuic.bppmask),t.correlate_row[0]=_[0],o=_[1];var r=(wdi.xlatL2U[t.correlate_row[0]]+PIXEL_B(t,e,0,a)&i)>>>0;return e.appendAlpha(r),e.eatbits(o),r}function UNCOMPRESS_ONE_A(t,e,i,a,_,o){var r,c,s=(r=golomb_decoding(find_bucket(t,_[e-1]).bestcode,a.io_word,wdi.JSQuic.bppmask))[0];c=r[1],_[e]=s,a.appendAlpha((wdi.xlatL2U[s]+(PIXEL_A_A(a)+PIXEL_B(t,a,e,o)>>>1)&i)>>>0),a.eatbits(c)}function UNCOMPRESS_ONE_ROW0_0_A(t){var e,i,a=t.encoder;e=golomb_decoding(find_bucket(t,0).bestcode,a.io_word,wdi.JSQuic.bppmask),t.correlate_row[0]=e[0],i=e[1],a.appendAlpha(wdi.xlatL2U[t.correlate_row[0]]),a.eatbits(i)}function UNCOMPRESS_ONE_ROW0_A(t,e,i,a,_){var o,r,c=(o=golomb_decoding(find_bucket(t,_[e-1]).bestcode,a.io_word,wdi.JSQuic.bppmask))[0];r=o[1],_[e]=c,a.appendAlpha(CORELATE_0_A(a,t,e,i,_)),a.eatbits(r)}function CORELATE_0_A(t,e,i,a,_){return(wdi.xlatL2U[_[i]]+PIXEL_A_A(t)&a)>>>0}function PIXEL_A_A(t){return t.result[t.alphaPos-4]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function QUIC_UNCOMPRESS_RGB(t,e,r,i){quic_uncompress_row0(t,e,r,i),t.row_completed();for(var _=t.rgb_state,o=t.height,c=1;c<o;c++)quic_uncompress_row(t,e,r,i,_),t.row_completed()}function quic_uncompress_row(t,e,r,i,_){for(var o=wdi.JSQuic.BPC_MASK[i],c=0,a=t.width;wdi.JSQuic.wmimax>_.wmidx&&_.wmileft<=a;)_.wmileft&&(uncompress_row_seg(t,c,c+_.wmileft,r,o,i,_),c+=_.wmileft,a-=_.wmileft),_.wmidx++,wdi.JSQuic.set_wm_trigger(_),_.wmileft=wdi.JSQuic.wminext;a&&(uncompress_row_seg(t,c,c+a,r,o,i,_),wdi.JSQuic.wmimax>t.rgb_state.wmidx&&(_.wmileft-=a))}function SAME_PIXEL(t,e){return e[t-4]===e[t]&&e[t-3]===e[t+1]&&e[t-2]===e[t+2]}function RLE_PRED(t,e,r,i,_){if(_!==t&&t>2&&(SAME_PIXEL(r,e.result)&&SAME_PIXEL(i+4*(t-1),e.result)))return!0;return!1}function uncompress_row_seg(t,e,r,i,_,o,c){var a,n,w,d,s,u,l,m,b,S,E=t.channels[0],g=t.channels[1],O=t.channels[2],f=E._buckets_ptrs,p=g._buckets_ptrs,R=O._buckets_ptrs,P=E.correlate_row,N=g.correlate_row,M=O.correlate_row,Q=0,U=wdi.JSQuic.bppmask[c.wmidx],x=0,C=0,J=!1,L=t.computedWidth,k=(t.rows_completed-1)*L,v=t.rows_completed*L,h=t.result,A=t.resultData,D=wdi.xlatL2U,W=t.eatbits,I=wdi.JSQuic.tabrand,T=wdi.JSQuic.decode_run,X=t.cnt,q=t.pxCnt,B=wdi.JSQuic.bppmask;for(e?(Q=e+c.waitcnt,w=h[X-4],d=h[X-3],s=h[X-2],u=P[e-1],l=N[e-1],m=M[e-1]):(w=UNCOMPRESS_ONE_0(E,t,_,k),d=UNCOMPRESS_ONE_0(g,t,_,k),s=UNCOMPRESS_ONE_0(O,t,_,k),u=P[0],l=N[0],m=M[0],A[q++]=255<<24|s<<16|d<<8|w,X+=4,c.waitcnt?--c.waitcnt:(c.waitcnt=I.call(wdi.JSQuic,c)&U,UPDATE_MODEL(0,t,i,P,N,M)),Q=++e+c.waitcnt);;){for(;Q<r;){for(n=k+4*e;e<=Q&&!(J=RLE_PRED(e,t,n,v,x));e++)a=e-1,u=(b=golomb_decoding(f[u].bestcode,t.io_word,B))[0],S=b[1],P[e]=u,w=D[u]+(w+h[n]>>>1)&_,W.call(t,S),l=(b=golomb_decoding(p[l].bestcode,t.io_word,B))[0],S=b[1],N[e]=l,d=D[l]+(d+h[n+1]>>>1)&_,W.call(t,S),m=(b=golomb_decoding(R[m].bestcode,t.io_word,B))[0],S=b[1],M[e]=m,s=D[m]+(s+h[n+2]>>>1)&_,W.call(t,S),A[q++]=255<<24|s<<16|d<<8|w,X+=4,n+=4;if(J)break;UPDATE_MODEL(Q,t,i,P,N,M),Q=e+(I.call(wdi.JSQuic,c)&U)}if(!J){for(n=k+4*e;e<r&&!(J=RLE_PRED(e,t,n,v,x));e++)a=e-1,u=(b=golomb_decoding(f[u].bestcode,t.io_word,B))[0],S=b[1],P[e]=u,w=D[u]+(w+h[n]>>>1)&_,W.call(t,S),l=(b=golomb_decoding(p[l].bestcode,t.io_word,B))[0],S=b[1],N[e]=l,d=D[l]+(d+h[n+1]>>>1)&_,W.call(t,S),m=(b=golomb_decoding(R[m].bestcode,t.io_word,B))[0],S=b[1],M[e]=m,s=D[m]+(s+h[n+2]>>>1)&_,W.call(t,S),A[q++]=255<<24|s<<16|d<<8|w,X+=4,n+=4;if(!J)return c.waitcnt=Q-r,t.cnt=X,void(t.pxCnt=q)}for(c.waitcnt=Q-e,x=e,C=e+T.call(wdi.JSQuic,t);e<C;e++)A[q++]=255<<24|s<<16|d<<8|w,X+=4;if(e===r)return t.cnt=X,void(t.pxCnt=q);u=P[a=e-1],l=N[a],m=M[a],Q=e+c.waitcnt,J=!1}}function quic_uncompress_row0(t,e,r,i){for(var _=wdi.JSQuic.BPC_MASK[i],o=0,c=t.width;wdi.JSQuic.wmimax>t.rgb_state.wmidx&&t.rgb_state.wmileft<=c;)t.rgb_state.wmileft&&(uncompress_row0_seg(t,o,o+t.rgb_state.wmileft,wdi.JSQuic.bppmask[t.rgb_state.wmidx],r,_,i),o+=t.rgb_state.wmileft,c-=t.rgb_state.wmileft),t.rgb_state.wmidx++,wdi.JSQuic.set_wm_trigger(t.rgb_state),t.rgb_state.wmileft=wdi.JSQuic.wminext;c&&(uncompress_row0_seg(t,o,o+c,wdi.JSQuic.bppmask[t.rgb_state.wmidx],r,_,i),wdi.JSQuic.wmimax>t.rgb_state.wmidx&&(t.rgb_state.wmileft-=c))}function uncompress_row0_seg(t,e,r,i,_,o,c){var a,n,w,d=t.channels[0],s=t.channels[1],u=t.channels[2],l=d.correlate_row,m=s.correlate_row,b=u.correlate_row,S=0;for(e?S=e+t.rgb_state.waitcnt:(a=UNCOMPRESS_ONE_ROW0_0(d),n=UNCOMPRESS_ONE_ROW0_0(s),w=UNCOMPRESS_ONE_ROW0_0(u),t.appendPixel(a,n,w),t.rgb_state.waitcnt?--t.rgb_state.waitcnt:(t.rgb_state.waitcnt=wdi.JSQuic.tabrand(t.rgb_state)&i,UPDATE_MODEL(0,t,_,l,m,b)),S=++e+t.rgb_state.waitcnt);S<r;){for(;e<=S;e++)a=UNCOMPRESS_ONE_ROW0(d,e,o,t,l,a),n=UNCOMPRESS_ONE_ROW0(s,e,o,t,m,n),w=UNCOMPRESS_ONE_ROW0(u,e,o,t,b,w),t.appendPixel(a,n,w);UPDATE_MODEL(S,t,_,l,m,b),S=e+(wdi.JSQuic.tabrand(t.rgb_state)&i)}for(;e<r;e++)a=UNCOMPRESS_ONE_ROW0(d,e,o,t,l,a),n=UNCOMPRESS_ONE_ROW0(s,e,o,t,m,n),w=UNCOMPRESS_ONE_ROW0(u,e,o,t,b,w),t.appendPixel(a,n,w);t.rgb_state.waitcnt=S-r}function UNCOMPRESS_ONE_0(t,e,r,i){var _,o;t.oldFirst=t.correlate_row[0],_=golomb_decoding(find_bucket(t,t.correlate_row[0]).bestcode,e.io_word,wdi.JSQuic.bppmask),t.correlate_row[0]=_[0],o=_[1];var c=wdi.xlatL2U[t.correlate_row[0]]+e.result[i+t.num_channel]&r;return e.eatbits(o),c}function UNCOMPRESS_ONE(t,e,r,i,_,o,c,a,n,w,d,s,u){var l,m=(b=golomb_decoding(s[c[r]].bestcode,o.io_word,wdi.JSQuic.bppmask))[0];l=b[1],c[e]=m;var b=d[m]+(u+n[a+i+w]>>>1)&_;return o.eatbits(l),b}function UNCOMPRESS_ONE_ROW0_0(t){var e,r=t.encoder;i=golomb_decoding(find_bucket(t,0).bestcode,r.io_word,wdi.JSQuic.bppmask),t.correlate_row[0]=i[0],e=i[1];var i=wdi.xlatL2U[t.correlate_row[0]];return r.eatbits(e),i}function UNCOMPRESS_ONE_ROW0(t,e,r,i,_,o){var c;a=golomb_decoding(find_bucket(t,_[e-1]).bestcode,i.io_word,wdi.JSQuic.bppmask),_[e]=a[0],c=a[1];var a=CORELATE_0(i,t,e,r,_,o);return i.eatbits(c),a}function CORELATE_0(t,e,r,i,_,o){return wdi.xlatL2U[_[r]]+o&i}function PIXEL_A(t){return t.result[t.cnt-4]}function PIXEL_B(t,e,r,i){return e.result[i+4*r+t.num_channel]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wdi.LZSS={LZ_IMAGE_TYPE_INVALID:0,LZ_IMAGE_TYPE_PLT1_LE:1,LZ_IMAGE_TYPE_PLT1_BE:2,LZ_IMAGE_TYPE_PLT4_LE:3,LZ_IMAGE_TYPE_PLT4_BE:4,LZ_IMAGE_TYPE_PLT8:5,LZ_IMAGE_TYPE_RGB16:6,LZ_IMAGE_TYPE_RGB24:7,LZ_IMAGE_TYPE_RGB32:8,LZ_IMAGE_TYPE_RGBA:9,LZ_IMAGE_TYPE_XXXA:10,LZPALETTE_FLAG_PAL_CACHE_ME:1,LZPALETTE_FLAG_PAL_FROM_CACHE:2,LZPALETTE_FLAG_TOP_DOWN:4,PLT_PIXELS_PER_BYTE:[0,8,8,2,2,1],PLT1_MASK:[1,2,4,8,16,32,64,128],copy_pixel:function(e,i,_){_[e+0]=i.r,_[e+1]=i.g,_[e+2]=i.b},lz_rgb32_decompress_rgb:function(e){var i,_=0,t=0,s=new Uint8Array(e),p=(s[_++],s[_++]),E=s[_++],c=s[++_+1]*Math.pow(16,2)+s[_],o=s[(_+=2)+1]*Math.pow(16,2)+s[_];_+=2;var T,r,l=o*Math.pow(16,4)+c,L=new ArrayBuffer(l),P=new Uint8Array(L),a=new Uint32Array(L),h=l/4;for(i=s[_++];t<h;i=s[_++])if(A=t,l=i>>5,I=(31&i)<<8,i>31){if(6===--l)do{l+=b=s[_++]}while(255===b);if(I+=b=s[_++],255===b&&I-b==7936&&(I=s[_++]<<8,I+=s[_++],I+=8191),l+=1,(A-=I+=1)===t-1)for(r=4*(f=A);l;--l)a[t]=255<<24|P[r+2]<<16|P[r+1]<<8|P[r],t++;else for(;l;--l)T=4*A,a[t]=255<<24|P[T+2]<<16|P[T+1]<<8|P[T],t++,A++}else for(i++,a[t]=255<<24|s[_]<<16|s[_+1]<<8|s[_+2],_+=3,t++,--i;i;i--)a[t]=255<<24|s[_]<<16|s[_+1]<<8|s[_+2],_+=3,t++;if(E===this.LZ_IMAGE_TYPE_RGBA&&!p)for(t=0,i=null,_--,i=s[_++];t<h;i=s[_++]){var A=t,I=(l=i>>5,(31&i)<<8),n=4*t;if(i>=32){var b;if(6===--l)do{l+=b=s[_++]}while(255===b);if(I+=b=s[_++],255===b&&I-b==7936&&(I=s[_++]<<8,I+=s[_++],I+=8191),l+=3,(A-=I+=1)===t-1)for(var f=A;l;--l)P[(n=4*t)+3]=P[4*f+3],t++;else for(;l;--l)P[(n=4*t)+3]=P[4*A+3],t++,A++}else for(i++,P[n+3]=s[_++],t++,--i;i;i--)P[(n=4*t)+3]=s[_++],t++}return L},lz_rgb32_decompress:function(e,i,_,t,s,p,E){var c,o=i,T=0,r=_.length/4,l=t===this.LZ_IMAGE_TYPE_RGBA;for(c=e[o++];T<r;c=e[o++]){var L=T,P=c>>5,a=(31&c)<<8,h=4*T;if(c>=32){var A;if(6===--P)do{P+=A=e[o++]}while(255===A);if(a+=A=e[o++],255===A&&a-A==7936&&(a=e[o++]<<8,a+=e[o++],a+=8191),P+=1,(l||p)&&(P+=2),a+=1,t===this.LZ_IMAGE_TYPE_PLT4_LE||t===this.LZ_IMAGE_TYPE_PLT4_BE?(a*=2,P*=2):t!==this.LZ_IMAGE_TYPE_PLT1_BE&&t!==this.LZ_IMAGE_TYPE_PLT1_LE||(a*=8,P*=8),(L-=a)===T-1)for(var I=L;P;--P){if(h=4*T,l)_[h+3]=E?255:_[4*I+3];else for(var n=0;n<4;n++)_[h+n]=_[4*I+n];T++}else for(;P;--P){if(h=4*T,l)_[h+3]=E?255:_[4*L+3];else for(n=0;n<4;n++)_[h+n]=_[4*L+n];T++,L++}}else{if(c++,l)E?(_[h+3]=255,o++):_[h+3]=e[o++];else if(p){if(t===this.LZ_IMAGE_TYPE_PLT1_LE){var b=e[o++],f=p[1],d=p[0];for(n=0;n<8;n++)b&this.PLT1_MASK[n]?this.copy_pixel(h,f,_):this.copy_pixel(h,d,_),s&&(_[h+3]=255),n<7&&T++,h=4*T}else if(t===this.LZ_IMAGE_TYPE_PLT1_BE)for(b=e[o++],f=p[1],d=p[0],n=7;n>=0;n--)b&this.PLT1_MASK[n]?this.copy_pixel(h,f,_):this.copy_pixel(h,d,_),s&&(_[h+3]=255),n>0&&T++,h=4*T;else if(t===this.LZ_IMAGE_TYPE_PLT4_LE){var w=p[15&(b=e[o++])];this.copy_pixel(h,w,_),s&&(_[h+3]=255),h=4*++T;w=p[b>>>4&15];this.copy_pixel(h,w,_),s&&(_[h+3]=255)}else if(t===this.LZ_IMAGE_TYPE_PLT4_BE){var y=15&(b=e[o++]);w=p[b>>>4&15];this.copy_pixel(h,w,_),s&&(_[h+3]=255),h=4*++T;w=p[y];this.copy_pixel(h,w,_),s&&(_[h+3]=255)}else if(t===this.LZ_IMAGE_TYPE_PLT8){w=p[e[o++]];this.copy_pixel(h,w,_),s&&(_[h+3]=255)}}else _[h+0]=e[o+2],_[h+1]=e[o+1],_[h+2]=e[o+0],s&&(_[h+3]=255),o+=3;for(T++,--c;c;c--){if(h=4*T,l)_[h+3]=E?255:e[o++];else if(p){if(t===this.LZ_IMAGE_TYPE_PLT1_LE)for(b=e[o++],f=p[1],d=p[0],n=0;n<8;n++)b&this.PLT1_MASK[n]?this.copy_pixel(h,f,_):this.copy_pixel(h,d,_),s&&(_[h+3]=255),n<7&&T++,h=4*T;else if(t===this.LZ_IMAGE_TYPE_PLT1_BE)for(b=e[o++],f=p[1],d=p[0],n=7;n>=0;n--)b&this.PLT1_MASK[n]?this.copy_pixel(h,f,_):this.copy_pixel(h,d,_),s&&(_[h+3]=255),n>0&&T++,h=4*T;else if(t===this.LZ_IMAGE_TYPE_PLT4_LE){w=p[15&(b=e[o++])];this.copy_pixel(h,w,_),s&&(_[h+3]=255),h=4*++T;w=p[b>>>4&15];this.copy_pixel(h,w,_),s&&(_[h+3]=255)}else if(t===this.LZ_IMAGE_TYPE_PLT4_BE){w=p[(b=e[o++])>>>4&15];this.copy_pixel(h,w,_),s&&(_[h+3]=255),h=4*++T;w=p[15&b];this.copy_pixel(h,w,_),s&&(_[h+3]=255)}else if(t===this.LZ_IMAGE_TYPE_PLT8){w=p[e[o++]];this.copy_pixel(h,w,_),s&&(_[h+3]=255)}}else _[h+0]=e[o+2],_[h+1]=e[o+1],_[h+2]=e[o+0],s&&(_[h+3]=255),o+=3;T++}}}return o-1},convert_spice_lz_to_web:function(e,i,_,t){var s=_.type;if(i=i.toJSArray(),s===wdi.SpiceImageType.SPICE_IMAGE_TYPE_LZ_PLT){var p=wdi.SpiceObject.bytesToInt8(i.splice(0,1));if(p===this.LZPALETTE_FLAG_PAL_FROM_CACHE){var E=i.splice(0,12),c=(wdi.SpiceObject.bytesToInt32(E.splice(0,4)),wdi.SpiceObject.bytesToInt64(E.splice(0,8)));E=i;wdi.SpiceObject.bytesToStringBE(E.splice(0,4)),wdi.SpiceObject.bytesToInt32BE(E.splice(0,4));var o=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),T=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),r=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),l=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),L=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4))}else if(p===this.LZPALETTE_FLAG_PAL_CACHE_ME){for(var P=_.offset+1,a=(E=i.splice(0,36),wdi.SpiceObject.bytesToInt32(E.splice(0,4)),wdi.SpiceObject.bytesToInt32(E.splice(0,4))-P-36),h=(wdi.SpiceObject.bytesToStringBE(E.splice(0,4)),wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),o=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),T=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),r=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),l=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),L=wdi.SpiceObject.bytesToInt32BE(E.splice(0,4)),c=wdi.SpiceObject.bytesToInt64(i.splice(a,8)),wdi.SpiceObject.bytesToInt16(i.splice(a,2))),A=[],I=0;I<h;I++){var n=new wdi.Queue;n.setData(i.splice(a,4)),A.push((new wdi.SpiceColor).demarshall(n))}wdi.ImageCache.addPalette(c,A)}else wdi.Debug.error("Unimplemented lz palette top down");A=wdi.ImageCache.getPalette(c)}if(o!==this.LZ_IMAGE_TYPE_RGB32&&o!==this.LZ_IMAGE_TYPE_RGBA&&o!==this.LZ_IMAGE_TYPE_RGB24&&o!==this.LZ_IMAGE_TYPE_PLT8&&o!==this.LZ_IMAGE_TYPE_PLT1_LE&&o!==this.LZ_IMAGE_TYPE_PLT1_BE&&o!==this.LZ_IMAGE_TYPE_PLT4_LE&&o!==this.LZ_IMAGE_TYPE_PLT4_BE)return!1;if(A){var b=e.createImageData(l*this.PLT_PIXELS_PER_BYTE[o],r);this.lz_rgb32_decompress(i,0,b.data,o,o!==this.LZ_IMAGE_TYPE_RGBA,A);var f=wdi.graphics.getNewTmpCanvas(T,r);f.getContext("2d").putImageData(b,0,0,0,0,T,r),b=f}else{var d=new ArrayBuffer(i.length+8),w=new Uint8Array(d);w[0]=1,w[1]=t,w[2]=o,w[3]=0;var y=b.data.length;for(I=0;I<4;I++)w[4+I]=255&y,y>>=8;w.set(i,8);var G=new Uint8ClampedArray(this.lz_rgb32_decompress_rgb(d));b=new ImageData(G,T,r),b=wdi.graphics.getImageFromData(b)}return L||(b=wdi.RasterOperation.flip(b)),b},demarshall_rgb:function(e){var i=e.splice(0,32);return{length:wdi.SpiceObject.bytesToInt32(i.splice(0,4)),magic:wdi.SpiceObject.bytesToStringBE(i.splice(0,4)),version:wdi.SpiceObject.bytesToInt32BE(i.splice(0,4)),type:wdi.SpiceObject.bytesToInt32BE(i.splice(0,4)),width:wdi.SpiceObject.bytesToInt32BE(i.splice(0,4)),height:wdi.SpiceObject.bytesToInt32BE(i.splice(0,4)),stride:wdi.SpiceObject.bytesToInt32BE(i.splice(0,4)),top_down:wdi.SpiceObject.bytesToInt32BE(i.splice(0,4))}},lz_rgb32_plt1_be_decompress:function(e,i,_){var t,s,p,E,c,o,T,r,l,L,P=0,a=0,h=i.length/4,A=this.LZ_IMAGE_TYPE_PLT1_BE,I=this.PLT_PIXELS_PER_BYTE[A];for(t=e[P++];a<h;t=e[P++])if(s=a,p=t>>5,E=(31&t)<<8,t>31){if(7===p)do{p+=c=e[P++]}while(255===c);if(8191===(E+=e[P++])&&(E+=e[P++]<<8+e[P++]),p=(p+2)*I,(s-=(E+1)*I)===a-1)for(o=4*s;0!=p--;)op_4=4*a,i[op_4]=i[o],i[op_4+1]=i[o+1],i[op_4+2]=i[o+2],i[op_4+3]=i[o+3],a++;else for(;0!=p--;)op_4=4*a,o=4*s,i[op_4]=i[o],i[op_4+1]=i[o+1],i[op_4+2]=i[o+2],i[op_4+3]=i[o+3],a++,s++}else for(;-1!=t--;)for(op_4=4*a,T=e[P++],r=_[1],l=_[0],L=7;L>=0;L--)op_4=4*a,T&this.PLT1_MASK[L]?(i[op_4+0]=r.r,i[op_4+1]=r.g,i[op_4+2]=r.b):(i[op_4+0]=l.r,i[op_4+1]=l.g,i[op_4+2]=l.b),i[op_4+3]=255,a++}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var rfc2083_crc_table=Array(256),rfc2083_crc_table_computed=0;function rfc2083_make_crc_table(){var t,e,i;for(e=0;e<256;e++){for(t=e,i=0;i<8;i++)1&t?t=(3988292384^t>>>1)>>>0&4294967295:t>>>=1;rfc2083_crc_table[e]=t}rfc2083_crc_table_computed=1}function rfc2083_update_crc(t,e,i,r){var n,s=t;for(rfc2083_crc_table_computed||rfc2083_make_crc_table(),n=0;n<r;n++)s=rfc2083_crc_table[255&(s^e[i+n])]^s>>>8;return s}function rfc2083_crc(t,e,i){return 4294967295^rfc2083_update_crc(4294967295,t,e,i)}function crc32(t,e,i){return rfc2083_crc(new Uint8Array(t),e,i)}function PngIHDR(t,e){this.width=t,this.height=e,this.depth=8,this.type=6,this.compression=0,this.filter=0,this.interlace=0}function adler(){this.s1=1,this.s2=0}function PngIDAT(t,e,i){if(i.byteLength>65535)throw new Error("Cannot handle more than 64K");this.data=i,this.width=t,this.height=e}function PngIEND(){}function create_rgba_png(t,e,i){var r,n=new PngIHDR(t,e),s=new PngIDAT(t,e,i),c=new PngIEND,h=new ArrayBuffer(n.buffer_size()+s.buffer_size()+c.buffer_size()),f=n.to_buffer(h);f=s.to_buffer(h,f),f=c.to_buffer(h,f);var a=new Uint8Array(h),o="";for(r=0;r<f;r++)o+="%",a[r]<16&&(o+="0"),o+=a[r].toString(16);return"%89PNG%0D%0A%1A%0A"+o}PngIHDR.prototype={to_buffer:function(t,e){var i=e=e||0,r=new SpiceDataView(t);return r.setUint32(e,this.buffer_size()-12),e+=4,r.setUint8(e,"I".charCodeAt(0)),e++,r.setUint8(e,"H".charCodeAt(0)),e++,r.setUint8(e,"D".charCodeAt(0)),e++,r.setUint8(e,"R".charCodeAt(0)),e++,r.setUint32(e,this.width),e+=4,r.setUint32(e,this.height),e+=4,r.setUint8(e,this.depth),e++,r.setUint8(e,this.type),e++,r.setUint8(e,this.compression),e++,r.setUint8(e,this.filter),e++,r.setUint8(e,this.interlace),e++,r.setUint32(e,crc32(t,i+4,this.buffer_size()-8)),e+=4},buffer_size:function(){return 25}},adler.prototype.update=function(t){this.s1+=t,this.s1%=65521,this.s2+=this.s1,this.s2%=65521},PngIDAT.prototype={to_buffer:function(t,e){var i,r,n,s=e=e||0,c=new SpiceDataView(t),h=new adler;c.setUint32(e,this.buffer_size()-12),e+=4,c.setUint8(e,"I".charCodeAt(0)),e++,c.setUint8(e,"D".charCodeAt(0)),e++,c.setUint8(e,"A".charCodeAt(0)),e++,c.setUint8(e,"T".charCodeAt(0)),e++,c.setUint8(e,120),e++,c.setUint8(e,1),e++,c.setUint8(e,128),e++,c.setUint16(e,this.data.byteLength+this.height),e+=2,c.setUint16(e,~(this.data.byteLength+this.height)),e+=2;var f=new Uint8Array(this.data);for(n=0,r=0;r<this.height;r++)for(c.setUint8(e,0),e++,h.update(0),i=0;i<this.width&&n<this.data.byteLength;i++)h.update(f[n]),c.setUint8(e,f[n++]),e++,h.update(f[n]),c.setUint8(e,f[n++]),e++,h.update(f[n]),c.setUint8(e,f[n++]),e++,h.update(f[n]),c.setUint8(e,f[n++]),e++;return c.setUint16(e,h.s2),e+=2,c.setUint16(e,h.s1),e+=2,c.setUint32(e,crc32(t,s+4,this.buffer_size()-8)),e+=4},buffer_size:function(){return 12+this.data.byteLength+this.height+4+2+1+2+2}},PngIEND.prototype={to_buffer:function(t,e){var i=e=e||0,r=new SpiceDataView(t);return r.setUint32(e,this.buffer_size()-12),e+=4,r.setUint8(e,"I".charCodeAt(0)),e++,r.setUint8(e,"E".charCodeAt(0)),e++,r.setUint8(e,"N".charCodeAt(0)),e++,r.setUint8(e,"D".charCodeAt(0)),e++,r.setUint32(e,crc32(t,i+4,this.buffer_size()-8)),e+=4},buffer_size:function(){return 12}};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* jGestures: a jQuery plugin for gesture events
|
|
3
|
-
* Copyright 2010, Neue Digitale / Razorfish GmbH
|
|
4
|
-
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
* See the License for the specific language governing permissions and
|
|
12
|
-
* limitations under the License.
|
|
13
|
-
*
|
|
14
|
-
* This is still a beta version, bugfixes and improvements appreciated.
|
|
15
|
-
* @copyright Neue Digitale / Razorfish GmbH
|
|
16
|
-
* @author martin.krause@neue-digitale.de
|
|
17
|
-
* @version 0.87
|
|
18
|
-
*
|
|
19
|
-
* @requires
|
|
20
|
-
* jQuery JavaScript Library v1.4.2 - http://jquery.com/
|
|
21
|
-
* Copyright 2010, John Resig
|
|
22
|
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
23
|
-
* http://jquery.org/license
|
|
24
|
-
*/
|
|
25
|
-
!function(e){function t(e){e.startMove=e.startMove?e.startMove:{startX:null,startY:null,timestamp:null};var t=(new Date).getTime();if(e.touches){var s=[{lastX:e.deltaX,lastY:e.deltaY,moved:null,startX:e.screenX-e.startMove.screenX,startY:e.screenY-e.startMove.screenY}],r={vector:e.vector,orientation:window.orientation||null,lastX:s[0].lastX>0?1:s[0].lastX<0?-1:0,lastY:s[0].lastY>0?1:s[0].lastY<0?-1:0,startX:s[0].startX>0?1:s[0].startX<0?-1:0,startY:s[0].startY>0?1:s[0].startY<0?-1:0};s[0].moved=Math.sqrt(Math.pow(Math.abs(s[0].startX),2)+Math.pow(Math.abs(s[0].startY),2))}return{type:e.type||null,originalEvent:e.event||null,delta:s||null,direction:r||{orientation:window.orientation||null,vector:e.vector||null},duration:e.startMove.timestamp?t-e.timestamp:null,rotation:e.rotation||null,scale:e.scale||null,description:e.description||[e.type,":",e.touches,":",0!=s[0].lastX?s[0].lastX>0?"right":"left":"steady",":",0!=s[0].lastY?s[0].lastY>0?"down":"up":"steady"].join("")}}function s(t){e(window).triggerHandler("orientationchange",{direction:{orientation:window.orientation},description:["orientationchange:",["landscape:clockwise:","portrait:default:","landscape:counterclockwise:","portrait:upsidedown:"][window.orientation/90+1],window.orientation].join("")})}function r(t){var s=jQuery(t.currentTarget);s.triggerHandler(e.jGestures.events.touchstart,t),e.hasGestures?(t.currentTarget.addEventListener("touchmove",a,!1),t.currentTarget.addEventListener("touchend",o,!1)):(s.bind("mousemove",a),s.bind("mouseup",o));var r=s.data("ojQueryGestures"),n=t.touches?t.touches[0]:t,c={};c.oLastSwipemove={screenX:n.screenX,screenY:n.screenY,timestamp:(new Date).getTime()},c.oStartTouch={screenX:n.screenX,screenY:n.screenY,timestamp:(new Date).getTime()},s.data("ojQueryGestures",e.extend(!0,r,c))}function a(s){var r=jQuery(s.currentTarget),a=r.data("ojQueryGestures"),o=!!s.touches,n=o?s.changedTouches[0].screenX:s.screenX,c=o?s.changedTouches[0].screenY:s.screenY,i=a.oLastSwipemove,u=n-i.screenX,h=c-i.screenY;if(a.oLastSwipemove){var p=t({type:"swipemove",touches:o?s.touches.length:"1",screenY:c,screenX:n,deltaY:h,deltaX:u,startMove:i,event:s,timestamp:i.timestamp});r.triggerHandler(p.type,p)}var d={},l=s.touches?s.touches[0]:s;d.oLastSwipemove={screenX:l.screenX,screenY:l.screenY,timestamp:(new Date).getTime()},r.data("ojQueryGestures",e.extend(!0,a,d))}function o(s){var r=jQuery(s.currentTarget),n=!!s.changedTouches,c=n?s.changedTouches.length:"1",i=n?s.changedTouches[0].screenX:s.screenX,u=n?s.changedTouches[0].screenY:s.screenY;r.triggerHandler(e.jGestures.events.touchendStart,s),e.hasGestures?(s.currentTarget.removeEventListener("touchmove",a,!1),s.currentTarget.removeEventListener("touchend",o,!1)):(r.unbind("mousemove",a),r.unbind("mouseup",o));var h,p=r.data("ojQueryGestures"),d=Math.abs(p.oStartTouch.screenX-i)>e.jGestures.defaults.thresholdMove||Math.abs(p.oStartTouch.screenY-u)>e.jGestures.defaults.thresholdMove,l=Math.abs(p.oStartTouch.screenX-i)>e.jGestures.defaults.thresholdSwipe||Math.abs(p.oStartTouch.screenY-u)>e.jGestures.defaults.thresholdSwipe;for(h in p){var w=p.oStartTouch,g=(i=n?s.changedTouches[0].screenX:s.screenX,u=n?s.changedTouches[0].screenY:s.screenY,i-w.screenX),v=t({type:"swipe",touches:c,screenY:u,screenX:i,deltaY:u-w.screenY,deltaX:g,startMove:w,event:s,timestamp:w.timestamp}),j=["zero","one","two","three","four"],m=!1;switch(h){case"swipeone":if(!1===n&&1==c&&!1===d)break;(!1===n||1==c&&!0===d&&!0===l)&&(m=!0,v.type=["swipe",j[c]].join(""),r.triggerHandler(v.type,v));break;case"swipetwo":n&&2==c&&!0===d&&!0===l&&(m=!0,v.type=["swipe",j[c]].join(""),r.triggerHandler(v.type,v));break;case"swipethree":n&&3==c&&!0===d&&!0===l&&(m=!0,v.type=["swipe",j[c]].join(""),r.triggerHandler(v.type,v));break;case"swipefour":n&&4==c&&!0===d&&!0===l&&(m=!0,v.type=["swipe",j[c]].join(""),r.triggerHandler(v.type,v));break;case"swipeup":case"swiperightup":case"swiperight":case"swiperightdown":case"swipedown":case"swipeleftdown":case"swipeleft":case"swipeleftup":n&&!0===d&&!0===l&&(m=!0,v.type=["swipe",0!=v.delta[0].lastX?v.delta[0].lastX>0?"right":"left":"",0!=v.delta[0].lastY?v.delta[0].lastY>0?"down":"up":""].join(""),r.triggerHandler(v.type,v));break;case"tapone":case"taptwo":case"tapthree":case"tapfour":!0!==d&&!0!==m&&j[c]==h.slice(3)&&(v.description=["tap",j[c]].join(""),v.type=["tap",j[c]].join(""),r.triggerHandler(v.type,v))}var G={};r.data("ojQueryGestures",e.extend(!0,p,G)),r.data("ojQueryGestures",e.extend(!0,p,G))}r.triggerHandler(e.jGestures.events.touchendProcessed,s)}function n(t){var s=jQuery(t.currentTarget);s.triggerHandler(e.jGestures.events.gesturestart,t);var r=s.data("ojQueryGestures"),a={};a.oStartTouch={timestamp:(new Date).getTime()},s.data("ojQueryGestures",e.extend(!0,r,a))}function c(s){var r,a,o,n,c=jQuery(s.currentTarget),i=c.data("ojQueryGestures");for(n in i)switch(n){case"pinch":((r=s.scale)<1&&r%1<1-e.jGestures.defaults.thresholdPinchclose||r>1&&r%1>e.jGestures.defaults.thresholdPinchopen)&&(a=r<1?-1:1,o=t({type:"pinch",scale:r,touches:null,startMove:i.oStartTouch,event:s,timestamp:i.oStartTouch.timestamp,vector:a,description:["pinch:",a,":",r<1?"close":"open"].join("")}),c.triggerHandler(o.type,o));break;case"rotate":((r=s.rotation)<1&&-1*r>e.jGestures.defaults.thresholdRotateccw||r>1&&r>e.jGestures.defaults.thresholdRotatecw)&&(a=r<1?-1:1,o=t({type:"rotate",rotation:r,touches:null,startMove:i.oStartTouch,event:s,timestamp:i.oStartTouch.timestamp,vector:a,description:["rotate:",a,":",r<1?"counterclockwise":"clockwise"].join("")}),c.triggerHandler(o.type,o))}}function i(s){var r,a=jQuery(s.currentTarget);a.triggerHandler(e.jGestures.events.gestureendStart,s);var o,n=a.data("ojQueryGestures");for(o in n)switch(o){case"pinchclose":(r=s.scale)<1&&r%1<1-e.jGestures.defaults.thresholdPinchclose&&a.triggerHandler("pinchclose",t({type:"pinchclose",scale:r,vector:-1,touches:null,startMove:n.oStartTouch,event:s,timestamp:n.oStartTouch.timestamp,description:"pinch:-1:close"}));break;case"pinchopen":(r=s.scale)>1&&r%1>e.jGestures.defaults.thresholdPinchopen&&a.triggerHandler("pinchopen",t({type:"pinchopen",scale:r,vector:1,touches:null,startMove:n.oStartTouch,event:s,timestamp:n.oStartTouch.timestamp,description:"pinch:+1:open"}));break;case"rotatecw":(r=s.rotation)>1&&r>e.jGestures.defaults.thresholdRotatecw&&a.triggerHandler("rotatecw",t({type:"rotatecw",rotation:r,vector:1,touches:null,startMove:n.oStartTouch,event:s,timestamp:n.oStartTouch.timestamp,description:"rotate:+1:clockwise"}));break;case"rotateccw":(r=s.rotation)<1&&-1*r>e.jGestures.defaults.thresholdRotateccw&&a.triggerHandler("rotateccw",t({type:"rotateccw",rotation:r,vector:-1,touches:null,startMove:n.oStartTouch,event:s,timestamp:n.oStartTouch.timestamp,description:"rotate:-1:counterclockwise"}))}a.triggerHandler(e.jGestures.events.gestureendProcessed,s)}e.jGestures={},e.jGestures.defaults={},e.jGestures.defaults.thresholdPinchopen=.05,e.jGestures.defaults.thresholdPinchmove=.05,e.jGestures.defaults.thresholdPinch=.05,e.jGestures.defaults.thresholdPinchclose=.05,e.jGestures.defaults.thresholdRotatecw=5,e.jGestures.defaults.thresholdRotateccw=5,e.jGestures.defaults.thresholdMove=20,e.jGestures.defaults.thresholdSwipe=100,e.jGestures.data={},e.jGestures.data.capableDevicesInUserAgentString=["iPad","iPhone","iPod","Mobile Safari"],e.jGestures.data.hasGestures=function(){var t;for(t=0;t<e.jGestures.data.capableDevicesInUserAgentString.length;t++)if(-1!==navigator.userAgent.indexOf(e.jGestures.data.capableDevicesInUserAgentString[t]))return!0;return!1}(),e.hasGestures=e.jGestures.data.hasGestures,e.jGestures.events={touchstart:"jGestures.touchstart",touchendStart:"jGestures.touchend;start",touchendProcessed:"jGestures.touchend;processed",gesturestart:"jGestures.gesturestart",gestureendStart:"jGestures.gestureend;start",gestureendProcessed:"jGestures.gestureend;processed"},jQuery.each({orientationchange_orientationchange01:"orientationchange",gestureend_pinchopen01:"pinchopen",gestureend_pinchclose01:"pinchclose",gestureend_rotatecw01:"rotatecw",gestureend_rotateccw01:"rotateccw",gesturechange_pinch01:"pinch",gesturechange_rotate01:"rotate",touchstart_swipe13:"swipemove",touchstart_swipe01:"swipeone",touchstart_swipe02:"swipetwo",touchstart_swipe03:"swipethree",touchstart_swipe04:"swipefour",touchstart_swipe05:"swipeup",touchstart_swipe06:"swiperightup",touchstart_swipe07:"swiperight",touchstart_swipe08:"swiperightdown",touchstart_swipe09:"swipedown",touchstart_swipe10:"swipeleftdown",touchstart_swipe11:"swipeleft",touchstart_swipe12:"swipeleftup",touchstart_tap01:"tapone",touchstart_tap02:"taptwo",touchstart_tap03:"tapthree",touchstart_tap04:"tapfour"},(function(t,u){jQuery.event.special[u]={setup:function(){var a=t.split("_"),o=a[0],u=a[1].slice(0,a[1].length-2),h=jQuery(this);if(!h.data("ojQueryGestures")||!h.data("ojQueryGestures")[o]){var p=h.data("ojQueryGestures")||{},d={};if(d[o]=!0,e.extend(!0,p,d),h.data("ojQueryGestures",p),e.hasGestures)switch(u){case"orientationchange":h.get(0).addEventListener("orientationchange",s,!1);break;case"tap":case"swipe":case"swipeup":case"swiperightup":case"swiperight":case"swiperightdown":case"swipedown":case"swipeleftdown":case"swipeleft":h.get(0).addEventListener("touchstart",r,!1);break;case"pinchopen":case"pinchclose":case"rotatecw":case"rotateccw":h.get(0).addEventListener("gesturestart",n,!1),h.get(0).addEventListener("gestureend",i,!1);break;case"pinch":case"rotate":h.get(0).addEventListener("gesturestart",n,!1),h.get(0).addEventListener("gesturechange",c,!1)}else switch(u){case"tap":case"swipe":h.bind("mousedown",r)}}return!1},add:function(e){return jQuery(this).data("ojQueryGestures")[e.type]={originalType:e.type},!1},remove:function(e){var t=jQuery(this),s=t.data("ojQueryGestures");return s[e.type]=!1,t.data("ojQueryGestures",s),!1},teardown:function(){var u=t.split("_"),h=u[0],p=u[1].slice(0,u[1].length-2),d=jQuery(this);if(!d.data("ojQueryGestures")||!d.data("ojQueryGestures")[h]){var l=d.data("ojQueryGestures")||{},w={};if(w[h]=!1,e.extend(!0,l,w),d.data("ojQueryGestures",l),e.hasGestures)switch(p){case"orientationchange":d.get(0).removeEventListener("orientationchange",s,!1);break;case"tap":case"swipe":case"swipeup":case"swiperightup":case"swiperight":case"swiperightdown":case"swipedown":case"swipeleftdown":case"swipeleft":case"swipeleftup":d.get(0).removeEventListener("touchstart",r,!1),d.get(0).removeEventListener("touchmove",a,!1),d.get(0).removeEventListener("touchend",o,!1);break;case"pinchopen":case"pinchclose":case"rotatecw":case"rotateccw":d.get(0).removeEventListener("gesturestart",n,!1),d.get(0).removeEventListener("gestureend",i,!1);break;case"pinch":case"rotate":d.get(0).removeEventListener("gesturestart",n,!1),d.get(0).removeEventListener("gesturechange",c,!1)}else switch(p){case"tap":case"swipe":d.unbind("mousedown",r),d.unbind("mousemove",a),d.unbind("mouseup",o)}}return!1}}}))}(jQuery);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* jQuery JavaScript Library v2.0.3
|
|
3
|
-
* http://jquery.com/
|
|
4
|
-
*
|
|
5
|
-
* Includes Sizzle.js
|
|
6
|
-
* http://sizzlejs.com/
|
|
7
|
-
*
|
|
8
|
-
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
|
|
9
|
-
* Released under the MIT license
|
|
10
|
-
* http://jquery.org/license
|
|
11
|
-
*
|
|
12
|
-
* Date: 2013-07-03T13:30Z
|
|
13
|
-
*/
|
|
14
|
-
!function(e,t){var n,r,i=typeof t,o=e.location,s=e.document,a=s.documentElement,u=e.jQuery,l=e.$,c={},f=[],p="2.0.3",d=f.concat,h=f.push,g=f.slice,m=f.indexOf,y=c.toString,v=c.hasOwnProperty,x=p.trim,b=function(e,t){return new b.fn.init(e,t,n)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,N=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,E=/-([\da-z])/gi,S=function(e,t){return t.toUpperCase()},j=function(){s.removeEventListener("DOMContentLoaded",j,!1),e.removeEventListener("load",j,!1),b.ready()};function D(e){var t=e.length,n=b.type(e);return!b.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:C.exec(e))||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:s,!0)),N.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return(o=s.getElementById(i[2]))&&o.parentNode&&(this.length=1,this[0]=o),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,s,a=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},u=2),"object"==typeof a||b.isFunction(a)||(a={}),l===u&&(a=this,--u);u<l;u++)if(null!=(e=arguments[u]))for(n in e)r=a[n],a!==(i=e[n])&&(c&&i&&(b.isPlainObject(i)||(o=b.isArray(i)))?(o?(o=!1,s=r&&b.isArray(r)?r:[]):s=r&&b.isPlainObject(r)?r:{},a[n]=b.extend(c,s,i)):i!==t&&(a[n]=i));return a},b.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===b&&(e.$=l),t&&e.jQuery===b&&(e.jQuery=u),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||(r.resolveWith(s,[b]),b.fn.trigger&&b(s).trigger("ready").off("ready")))},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||s;var r=N.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new DOMParser).parseFromString(e,"text/xml")}catch(e){n=t}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+e),n},noop:function(){},globalEval:function(e){var t,n=eval;(e=b.trim(e))&&(1===e.indexOf("use strict")?((t=s.createElement("script")).text=e,s.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(E,S)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=D(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":x.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(D(Object(e))?b.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:m.call(t,e,n)},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;o<r;o++)e[i++]=n[o];else for(;n[o]!==t;)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r=[],i=0,o=e.length;for(n=!!n;i<o;i++)n!==!!t(e[i],i)&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,o=e.length,s=[];if(D(e))for(;i<o;i++)null!=(r=t(e[i],i,n))&&(s[s.length]=r);else for(i in e)null!=(r=t(e[i],i,n))&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(r=e[n],n=e,e=r),b.isFunction(e)?(i=g.call(arguments,2),o=function(){return e.apply(n||this,i.concat(g.call(arguments)))},o.guid=e.guid=e.guid||b.guid++,o):t},access:function(e,n,r,i,o,s,a){var u=0,l=e.length,c=null==r;if("object"===b.type(r))for(u in o=!0,r)b.access(e,n,u,r[u],!0,s,a);else if(i!==t&&(o=!0,b.isFunction(i)||(a=!0),c&&(a?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;u<l;u++)n(e[u],r,a?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):s},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=s[o];return i}}),b.ready.promise=function(t){return r||(r=b.Deferred(),"complete"===s.readyState?setTimeout(b.ready):(s.addEventListener("DOMContentLoaded",j,!1),e.addEventListener("load",j,!1))),r.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){c["[object "+t+"]"]=t.toLowerCase()})),n=b(s),
|
|
15
|
-
/*!
|
|
16
|
-
* Sizzle CSS Selector Engine v1.9.4-pre
|
|
17
|
-
* http://sizzlejs.com/
|
|
18
|
-
*
|
|
19
|
-
* Copyright 2013 jQuery Foundation, Inc. and other contributors
|
|
20
|
-
* Released under the MIT license
|
|
21
|
-
* http://jquery.org/license
|
|
22
|
-
*
|
|
23
|
-
* Date: 2013-06-03
|
|
24
|
-
*/
|
|
25
|
-
function(e,t){var n,r,i,o,s,a,u,l,c,f,p,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T=0,C=0,N=se(),k=se(),E=se(),S=!1,j=function(e,t){return e===t?(S=!0,0):0},D=typeof t,A=1<<31,L={}.hasOwnProperty,q=[],H=q.pop,O=q.push,F=q.push,P=q.slice,R=q.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="[\\x20\\t\\r\\n\\f]",$="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",B=$.replace("w","w#"),I="\\["+W+"*("+$+")"+W+"*(?:([*^$|!~]?=)"+W+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+B+")|)|)"+W+"*\\]",z=":("+$+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+I.replace(3,8)+")*)|.*)\\)|)",_=new RegExp("^"+W+"+|((?:^|[^\\\\])(?:\\\\.)*)"+W+"+$","g"),X=new RegExp("^"+W+"*,"+W+"*"),U=new RegExp("^"+W+"*([>+~]|"+W+")"+W+"*"),Y=new RegExp(W+"*[+~]"),V=new RegExp("="+W+"*([^\\]'\"]*)"+W+"*\\]","g"),G=new RegExp(z),J=new RegExp("^"+B+"$"),Q={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+W+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/^(?:input|select|textarea|button)$/i,te=/^h\d$/i,ne=/'|\\/g,re=new RegExp("\\\\([\\da-f]{1,6}"+W+"?|("+W+")|.)","ig"),ie=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{F.apply(q=P.call(w.childNodes),w.childNodes),q[w.childNodes.length].nodeType}catch(e){F={apply:q.length?function(e,t){O.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,n,i){var s,a,l,c,d,m,y,b,T,C;if((t?t.ownerDocument||t:w)!==p&&f(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(c=(t=t||p).nodeType)&&9!==c)return[];if(h&&!i){if(s=Z.exec(e))if(l=s[1]){if(9===c){if(!(a=t.getElementById(l))||!a.parentNode)return n;if(a.id===l)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(l))&&v(t,a)&&a.id===l)return n.push(a),n}else{if(s[2])return F.apply(n,t.getElementsByTagName(e)),n;if((l=s[3])&&r.getElementsByClassName&&t.getElementsByClassName)return F.apply(n,t.getElementsByClassName(l)),n}if(r.qsa&&(!g||!g.test(e))){if(b=y=x,T=t,C=9===c&&e,1===c&&"object"!==t.nodeName.toLowerCase()){for(m=ge(e),(y=t.getAttribute("id"))?b=y.replace(ne,"\\$&"):t.setAttribute("id",b),b="[id='"+b+"'] ",d=m.length;d--;)m[d]=b+me(m[d]);T=Y.test(e)&&t.parentNode||t,C=m.join(",")}if(C)try{return F.apply(n,T.querySelectorAll(C)),n}catch(e){}finally{y||t.removeAttribute("id")}}}return function(e,t,n,i){var s,a,l,c,f,p=ge(e);if(!i&&1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(l=a[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[a[1].type]){if(!(t=(o.find.ID(l.matches[0].replace(re,ie),t)||[])[0]))return n;e=e.slice(a.shift().value.length)}for(s=Q.needsContext.test(e)?0:a.length;s--&&(l=a[s],!o.relative[c=l.type]);)if((f=o.find[c])&&(i=f(l.matches[0].replace(re,ie),Y.test(a[0].type)&&t.parentNode||t))){if(a.splice(s,1),!(e=i.length&&me(a)))return F.apply(n,i),n;break}}return u(e,p)(i,t,!h,n,Y.test(e)),n}(e.replace(_,"$1"),t,n,i)}function se(){var e=[];return function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}}function ae(e){return e[x]=!0,e}function ue(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),r=e.length;r--;)o.attrHandle[n[r]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return ae((function(t){return t=+t,ae((function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))}))}))}for(n in a=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},r=oe.support={},f=oe.setDocument=function(e){var t=e?e.ownerDocument||e:w,n=t.defaultView;return t!==p&&9===t.nodeType&&t.documentElement?(p=t,d=t.documentElement,h=!a(t),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",(function(){f()})),r.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),r.getElementsByTagName=ue((function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length})),r.getElementsByClassName=ue((function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length})),r.getById=ue((function(e){return d.appendChild(e).id=x,!t.getElementsByName||!t.getElementsByName(x).length})),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==D&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(re,ie);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(re,ie);return function(e){var n=typeof e.getAttributeNode!==D&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==D)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==D&&h)return t.getElementsByClassName(e)},m=[],g=[],(r.qsa=K.test(t.querySelectorAll))&&(ue((function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+W+"*(?:value|"+M+")"),e.querySelectorAll(":checked").length||g.push(":checked")})),ue((function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+W+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ue((function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",z)})),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=d.compareDocumentPosition?function(e,n){if(e===n)return S=!0,0;var i=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);return i?1&i||!r.sortDetached&&n.compareDocumentPosition(e)===i?e===t||v(w,e)?-1:n===t||v(w,n)?1:c?R.call(c,e)-R.call(c,n):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],u=[n];if(e===n)return S=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:c?R.call(c,e)-R.call(c,n):0;if(o===s)return ce(e,n);for(r=e;r=r.parentNode;)a.unshift(r);for(r=n;r=r.parentNode;)u.unshift(r);for(;a[i]===u[i];)i++;return i?ce(a[i],u[i]):a[i]===w?-1:u[i]===w?1:0},t):p},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(V,"='$1']"),r.matchesSelector&&h&&(!m||!m.test(t))&&(!g||!g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return oe(t,p,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),v(e,t)},oe.attr=function(e,n){(e.ownerDocument||e)!==p&&f(e);var i=o.attrHandle[n.toLowerCase()],s=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return s===t?r.attributes||!h?e.getAttribute(n):(s=e.getAttributeNode(n))&&s.specified?s.value:null:s},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(j),S){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return e},s=oe.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=oe.selectors={cacheLength:50,createPseudo:ae,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,ie),e[3]=(e[4]||e[5]||"").replace(re,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&G.test(r)&&(n=ge(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=new RegExp("(^|"+W+")"+e+"("+W+"|$)"))&&N(e,(function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==D&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,y=a&&t.nodeName.toLowerCase(),v=!u&&!a;if(m){if(o){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&v){for(d=(l=(c=m[x]||(m[x]={}))[e]||[])[0]===T&&l[1],p=l[0]===T&&l[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(p=d=0)||h.pop();)if(1===f.nodeType&&++p&&f===t){c[e]=[T,d,p];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===T)p=l[1];else for(;(f=++d&&f&&f[g]||(p=d=0)||h.pop())&&((a?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++p||(v&&((f[x]||(f[x]={}))[e]=[T,p]),f!==t)););return(p-=i)===r||p%r==0&&p/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?ae((function(e,n){for(var i,o=r(e,t),s=o.length;s--;)e[i=R.call(e,o[s])]=!(n[i]=o[s])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ae((function(e){var t=[],n=[],r=u(e.replace(_,"$1"));return r[x]?ae((function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}})),has:ae((function(e){return function(t){return oe(e,t).length>0}})),contains:ae((function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}})),lang:ae((function(e){return J.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(re,ie).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return te.test(e.nodeName)},input:function(e){return ee.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:de((function(){return[0]})),last:de((function(e,t){return[t-1]})),eq:de((function(e,t,n){return[n<0?n+t:n]})),even:de((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:de((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:de((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:de((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},o.pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=fe(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=pe(n);function he(){}function ge(e,t){var n,r,i,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(a=e,u=[],l=o.preFilter;a;){for(s in n&&!(r=X.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(i=[])),n=!1,(r=U.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(_," ")}),a=a.slice(n.length)),o.filter)!(r=Q[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),i.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?oe.error(e):k(e,u).slice(0)}function me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,o=n&&"parentNode"===r,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,l,c,f=T+" "+s;if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if((l=(c=t[x]||(t[x]={}))[r])&&l[0]===f){if(!0===(u=l[1])||u===i)return!0===u}else if((l=c[r]=[f])[1]=e(t,n,a)||i,!0===l[1])return!0}}function ve(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),l&&t.push(a)));return s}function be(e,t,n,r,i,o){return r&&!r[x]&&(r=be(r)),i&&!i[x]&&(i=be(i,o)),ae((function(o,s,a,u){var l,c,f,p=[],d=[],h=s.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xe(g,p,e,a,u),y=n?i||(o?e:h||r)?[]:s:m;if(n&&n(m,y,a,u),r)for(l=xe(y,d),r(l,[],a,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(m[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(m[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&(l=i?R.call(o,f):p[c])>-1&&(o[l]=!(s[l]=f))}}else y=xe(y===s?y.splice(h,y.length):y),i?i(null,s,y,u):F.apply(s,y)}))}function we(e){for(var t,n,r,i=e.length,s=o.relative[e[0].type],a=s||o.relative[" "],u=s?1:0,c=ye((function(e){return e===t}),a,!0),f=ye((function(e){return R.call(t,e)>-1}),a,!0),p=[function(e,n,r){return!s&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r))}];u<i;u++)if(n=o.relative[e[u].type])p=[ye(ve(p),n)];else{if((n=o.filter[e[u].type].apply(null,e[u].matches))[x]){for(r=++u;r<i&&!o.relative[e[r].type];r++);return be(u>1&&ve(p),u>1&&me(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(_,"$1"),n,u<r&&we(e.slice(u,r)),r<i&&we(e=e.slice(r)),r<i&&me(e))}p.push(n)}return ve(p)}he.prototype=o.filters=o.pseudos,o.setFilters=new he,u=oe.compile=function(e,t){var n,r=[],s=[],a=E[e+" "];if(!a){for(t||(t=ge(e)),n=t.length;n--;)(a=we(t[n]))[x]?r.push(a):s.push(a);a=E(e,function(e,t){var n=0,r=t.length>0,s=e.length>0,a=function(a,u,c,f,d){var h,g,m,y=[],v=0,x="0",b=a&&[],w=null!=d,C=l,N=a||s&&o.find.TAG("*",d&&u.parentNode||u),k=T+=null==C?1:Math.random()||.1;for(w&&(l=u!==p&&u,i=n);null!=(h=N[x]);x++){if(s&&h){for(g=0;m=e[g++];)if(m(h,u,c)){f.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,a&&b.push(h))}if(v+=x,r&&x!==v){for(g=0;m=t[g++];)m(b,y,u,c);if(a){if(v>0)for(;x--;)b[x]||y[x]||(y[x]=H.call(f));y=xe(y)}F.apply(f,y),w&&!a&&y.length>0&&v+t.length>1&&oe.uniqueSort(f)}return w&&(T=k,l=C),b};return r?ae(a):a}(s,r))}return a},r.sortStable=x.split("").sort(j).join("")===x,r.detectDuplicates=S,f(),r.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||le("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),r.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||le("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||le(M,(function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&r.specified?r.value:!0===e[t]?t.toLowerCase():null})),b.find=oe,b.expr=oe.selectors,b.expr[":"]=b.expr.pseudos,b.unique=oe.uniqueSort,b.text=oe.getText,b.isXMLDoc=oe.isXML,b.contains=oe.contains}(e);var A,L,q,H,O,F,P={};b.Callbacks=function(e){e="string"==typeof e?P[e]||function(e){var t=P[e]={};return b.each(e.match(T)||[],(function(e,n){t[n]=!0})),t}(e):b.extend({},e);var n,r,i,o,s,a,u=[],l=!e.once&&[],c=function(t){for(n=e.memory&&t,r=!0,a=o||0,o=0,s=u.length,i=!0;u&&a<s;a++)if(!1===u[a].apply(t[0],t[1])&&e.stopOnFalse){n=!1;break}i=!1,u&&(l?l.length&&c(l.shift()):n?u=[]:f.disable())},f={add:function(){if(u){var t=u.length;!function t(n){b.each(n,(function(n,r){var i=b.type(r);"function"===i?e.unique&&f.has(r)||u.push(r):r&&r.length&&"string"!==i&&t(r)}))}(arguments),i?s=u.length:n&&(o=t,c(n))}return this},remove:function(){return u&&b.each(arguments,(function(e,t){for(var n;(n=b.inArray(t,u,n))>-1;)u.splice(n,1),i&&(n<=s&&s--,n<=a&&a--)})),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],s=0,this},disable:function(){return u=l=n=t,this},disabled:function(){return!u},lock:function(){return l=t,n||f.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!u||r&&!l||(t=[e,(t=t||[]).slice?t.slice():t],i?l.push(t):c(t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred((function(n){b.each(t,(function(t,o){var s=o[0],a=b.isFunction(e[t])&&e[t];i[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,(function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add((function(){n=a}),t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=g.call(arguments),s=o.length,a=1!==s||e&&b.isFunction(e.promise)?s:0,u=1===a?e:b.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?g.call(arguments):i,r===t?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&b.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,t)):--a;return a||u.resolveWith(r,o),u.promise()}}),b.support=(A={},L=s.createElement("input"),q=s.createDocumentFragment(),H=s.createElement("div"),O=s.createElement("select"),F=O.appendChild(s.createElement("option")),L.type?(L.type="checkbox",A.checkOn=""!==L.value,A.optSelected=F.selected,A.reliableMarginRight=!0,A.boxSizingReliable=!0,A.pixelPosition=!1,L.checked=!0,A.noCloneChecked=L.cloneNode(!0).checked,O.disabled=!0,A.optDisabled=!F.disabled,(L=s.createElement("input")).value="t",L.type="radio",A.radioValue="t"===L.value,L.setAttribute("checked","t"),L.setAttribute("name","t"),q.appendChild(L),A.checkClone=q.cloneNode(!0).cloneNode(!0).lastChild.checked,A.focusinBubbles="onfocusin"in e,H.style.backgroundClip="content-box",H.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle="content-box"===H.style.backgroundClip,b((function(){var t,n,r=s.getElementsByTagName("body")[0];r&&((t=s.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",r.appendChild(t).appendChild(H),H.innerHTML="",H.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",b.swap(r,null!=r.style.zoom?{zoom:1}:{},(function(){A.boxSizing=4===H.offsetWidth})),e.getComputedStyle&&(A.pixelPosition="1%"!==(e.getComputedStyle(H,null)||{}).top,A.boxSizingReliable="4px"===(e.getComputedStyle(H,null)||{width:"4px"}).width,(n=H.appendChild(s.createElement("div"))).style.cssText=H.style.cssText="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",n.style.marginRight=n.style.width="0",H.style.width="1px",A.reliableMarginRight=!parseFloat((e.getComputedStyle(n,null)||{}).marginRight)),r.removeChild(t))})),A):A);var R,M,W=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,$=/([A-Z])/g;function B(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=b.expando+Math.random()}function I(e,n,r){var i;if(r===t&&1===e.nodeType)if(i="data-"+n.replace($,"-$1").toLowerCase(),"string"==typeof(r=e.getAttribute(i))){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:W.test(r)?JSON.parse(r):r)}catch(e){}R.set(e,n,r)}else r=t;return r}B.uid=1,B.accepts=function(e){return!e.nodeType||(1===e.nodeType||9===e.nodeType)},B.prototype={key:function(e){if(!B.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=B.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,b.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(b.isEmptyObject(o))b.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,n){var r=this.cache[this.key(e)];return n===t?r:r[n]},access:function(e,n,r){var i;return n===t||n&&"string"==typeof n&&r===t?(i=this.get(e,n))!==t?i:this.get(e,b.camelCase(n)):(this.set(e,n,r),r!==t?r:n)},remove:function(e,n){var r,i,o,s=this.key(e),a=this.cache[s];if(n===t)this.cache[s]={};else{b.isArray(n)?i=n.concat(n.map(b.camelCase)):(o=b.camelCase(n),i=n in a?[n,o]:(i=o)in a?[i]:i.match(T)||[]),r=i.length;for(;r--;)delete a[i[r]]}},hasData:function(e){return!b.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},R=new B,M=new B,b.extend({acceptData:B.accepts,hasData:function(e){return R.hasData(e)||M.hasData(e)},data:function(e,t,n){return R.access(e,t,n)},removeData:function(e,t){R.remove(e,t)},_data:function(e,t,n){return M.access(e,t,n)},_removeData:function(e,t){M.remove(e,t)}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],s=0,a=null;if(e===t){if(this.length&&(a=R.get(o),1===o.nodeType&&!M.get(o,"hasDataAttrs"))){for(r=o.attributes;s<r.length;s++)0===(i=r[s].name).indexOf("data-")&&(i=b.camelCase(i.slice(5)),I(o,i,a[i]));M.set(o,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){R.set(this,e)})):b.access(this,(function(n){var r,i=b.camelCase(e);if(o&&n===t)return(r=R.get(o,e))!==t||(r=R.get(o,i))!==t||(r=I(o,i,t))!==t?r:void 0;this.each((function(){var r=R.get(this,i);R.set(this,i,n),-1!==e.indexOf("-")&&r!==t&&R.set(this,e,n)}))}),null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){R.remove(this,e)}))}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=M.get(e,t),n&&(!r||b.isArray(n)?r=M.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){b.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return M.get(e,n)||M.access(e,n,{empty:b.Callbacks("once memory").add((function(){M.remove(e,[t+"queue",n])}))})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),arguments.length<r?b.queue(this[0],e):n===t?this:this.each((function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},delay:function(e,t){return e=b.fx&&b.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.Deferred(),s=this,a=this.length,u=function(){--i||o.resolveWith(s,[s])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";a--;)(r=M.get(s[a],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var z,_=/[\t\r\n\f]/g,X=/\r/g,U=/^(?:input|select|textarea|button)$/i;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(b.isFunction(e))return this.each((function(t){b(this).addClass(e.call(this,t,this.className))}));if(u)for(t=(e||"").match(T)||[];s<a;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(_," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each((function(t){b(this).removeClass(e.call(this,t,this.className))}));if(u)for(t=(e||"").match(T)||[];s<a;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(_," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):b.isFunction(e)?this.each((function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var t,r=0,o=b(this),s=e.match(T)||[];t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else n!==i&&"boolean"!==n||(this.className&&M.set(this,"__className__",this.className),this.className=this.className||!1===e?"":M.get(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(_," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];return arguments.length?(i=b.isFunction(e),this.each((function(r){var o;1===this.nodeType&&(null==(o=i?e.call(this,r,b(this).val()):e)?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,(function(e){return null==e?"":e+""}))),(n=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))}))):o?(n=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&(r=n.get(o,"value"))!==t?r:"string"==typeof(r=o.value)?r.replace(X,""):null==r?"":r:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(((n=r[u]).selected||u===i)&&(b.support.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=b.makeArray(t),s=i.length;s--;)((r=i[s]).selected=b.inArray(b(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,s,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===i?b.prop(e,n,r):(1===a&&b.isXMLDoc(e)||(n=n.toLowerCase(),o=b.attrHooks[n]||(b.expr.match.bool.test(n)?z:undefined)),r===t?o&&"get"in o&&null!==(s=o.get(e,n))?s:null==(s=b.find.attr(e,n))?t:s:null!==r?o&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):void b.removeAttr(e,n))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)for(;n=o[i++];)r=b.propFix[n]||n,b.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{for:"htmlFor",class:"className"},prop:function(e,n,r){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return(1!==s||!b.isXMLDoc(e))&&(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||U.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),z={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,n){var r=b.expr.attrHandle[n]||b.find.attr;b.expr.attrHandle[n]=function(e,n,i){var o=b.expr.attrHandle[n],s=i?t:(b.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return b.expr.attrHandle[n]=o,s}})),b.support.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(b.isArray(t))return e.checked=b.inArray(b(e).val(),t)>=0}},b.support.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Y=/^key/,V=/^(?:mouse|contextmenu)|click/,G=/^(?:focusinfocus|focusoutblur)$/,J=/^([^.]*)(?:\.(.+)|)$/;function Q(){return!0}function K(){return!1}function Z(){try{return s.activeElement}catch(e){}}b.event={global:{},add:function(e,n,r,o,s){var a,u,l,c,f,p,d,h,g,m,y,v=M.get(e);if(v){for(r.handler&&(r=(a=r).handler,s=a.selector),r.guid||(r.guid=b.guid++),(c=v.events)||(c=v.events={}),(u=v.handle)||(u=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(u.elem,arguments)},u.elem=e),f=(n=(n||"").match(T)||[""]).length;f--;)g=y=(l=J.exec(n[f])||[])[1],m=(l[2]||"").split(".").sort(),g&&(d=b.event.special[g]||{},g=(s?d.delegateType:d.bindType)||g,d=b.event.special[g]||{},p=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:s,needsContext:s&&b.expr.match.needsContext.test(s),namespace:m.join(".")},a),(h=c[g])||((h=c[g]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,o,m,u)||e.addEventListener&&e.addEventListener(g,u,!1)),d.add&&(d.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?h.splice(h.delegateCount++,0,p):h.push(p),b.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,m=M.hasData(e)&&M.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(T)||[""]).length;l--;)if(d=g=(a=J.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),d){for(f=b.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||b.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(u)&&(delete m.handle,M.remove(e,"events"))}},trigger:function(n,r,i,o){var a,u,l,c,f,p,d,h=[i||s],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=l=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!G.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),f=g.indexOf(":")<0&&"on"+g,(n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n)).isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makeArray(r,[n]),d=b.event.special[g]||{},o||!d.trigger||!1!==d.trigger.apply(i,r))){if(!o&&!d.noBubble&&!b.isWindow(i)){for(c=d.delegateType||g,G.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),l=u;l===(i.ownerDocument||s)&&h.push(l.defaultView||l.parentWindow||e)}for(a=0;(u=h[a++])&&!n.isPropagationStopped();)n.type=a>1?c:d.bindType||g,(p=(M.get(u,"events")||{})[n.type]&&M.get(u,"handle"))&&p.apply(u,r),(p=f&&u[f])&&b.acceptData(u)&&p.apply&&!1===p.apply(u,r)&&n.preventDefault();return n.type=g,o||n.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),r)||!b.acceptData(i)||f&&b.isFunction(i[g])&&!b.isWindow(i)&&((l=i[f])&&(i[f]=null),b.event.triggered=g,i[g](),b.event.triggered=t,l&&(i[f]=l)),n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,s,a,u=g.call(arguments),l=(M.get(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=b.event.handlers.call(this,e,l),n=0;(o=a[n++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,r=0;(s=o.handlers[r++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(s.namespace)||(e.handleObj=s,e.data=s.data,(i=((b.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,u))!==t&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,s,a=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(i=[],r=0;r<u;r++)i[o=(s=n[r]).selector+" "]===t&&(i[o]=s.needsContext?b(o,this).index(l)>=0:b.find(o,this,null,[l]).length),i[o]&&i.push(s);i.length&&a.push({elem:l,handlers:i})}return u<n.length&&a.push({elem:this,handlers:n.slice(u)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,a=n.button;return null==e.pageX&&null!=n.clientX&&(i=(r=e.target.ownerDocument||s).documentElement,o=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=V.test(i)?this.mouseHooks:Y.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new b.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=s),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Z()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Z()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&b.nodeName(this,"input"))return this.click(),!1},_default:function(e){return b.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?Q:K):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0},b.Event.prototype={isDefaultPrevented:K,isPropagationStopped:K,isImmediatePropagationStopped:K,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Q,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Q,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Q,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||b.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0==n++&&s.addEventListener(e,r,!0)},teardown:function(){0==--n&&s.removeEventListener(e,r,!0)}}})),b.fn.extend({on:function(e,n,r,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=t),e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),!1===i)i=K;else if(!i)return this;return 1===o&&(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each((function(){b.event.add(this,e,i,r,n)}))},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return!1!==n&&"function"!=typeof n||(r=n,n=t),!1===r&&(r=K),this.each((function(){b.event.remove(this,e,r,n)}))},trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}});var ee=/^.[^:#\[\.,]*$/,te=/^(?:parents|prev(?:Until|All))/,ne=b.expr.match.needsContext,re={children:!0,contents:!0,next:!0,prev:!0};function ie(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function oe(e,t,n){if(b.isFunction(t))return b.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return b.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(ee.test(t))return b.filter(t,e,n);t=b.filter(t,e)}return b.grep(e,(function(e){return m.call(t,e)>=0!==n}))}b.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<i;t++)if(b.contains(r[t],this))return!0})));for(t=0;t<i;t++)b.find(e,r[t],n);return(n=this.pushStack(i>1?b.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=b(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0}))},not:function(e){return this.pushStack(oe(this,e||[],!0))},filter:function(e){return this.pushStack(oe(this,e||[],!1))},is:function(e){return!!oe(this,"string"==typeof e&&ne.test(e)?b(e):e||[],!1).length},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=ne.test(e)||"string"!=typeof e?b(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?m.call(b(e),this[0]):m.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return ie(e,"nextSibling")},prev:function(e){return ie(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return e.contentDocument||b.merge([],e.childNodes)}},(function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(re[e]||b.unique(i),te.test(e)&&i.reverse()),this.pushStack(i)}})),b.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},dir:function(e,n,r){for(var i=[],o=r!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&b(e).is(r))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ae=/<([\w:]+)/,ue=/<|&#?\w+;/,le=/<(?:script|style|link)/i,ce=/^(?:checkbox|radio)$/i,fe=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^$|\/(?:java|ecma)script/i,de=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ge={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){return b.nodeName(e,"table")&&b.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ve(e){var t=de.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function xe(e,t){for(var n=e.length,r=0;r<n;r++)M.set(e[r],"globalEval",!t||M.get(t[r],"globalEval"))}function be(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(M.hasData(e)&&(o=M.access(e),s=M.set(t,o),l=o.events))for(i in delete s.handle,s.events={},l)for(n=0,r=l[i].length;n<r;n++)b.event.add(t,i,l[i][n]);R.hasData(e)&&(a=R.access(e),u=b.extend({},a),R.set(t,u))}}function we(e,n){var r=e.getElementsByTagName?e.getElementsByTagName(n||"*"):e.querySelectorAll?e.querySelectorAll(n||"*"):[];return n===t||n&&b.nodeName(e,n)?b.merge([e],r):r}function Te(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ce.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,b.fn.extend({text:function(e){return b.access(this,(function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||me(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=me(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,r=e?b.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||b.cleanData(we(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&xe(we(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return b.access(this,(function(e){var n=this[0]||{},r=0,i=this.length;if(e===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!le.test(e)&&!ge[(ae.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(se,"<$1></$2>");try{for(;r<i;r++)1===(n=this[r]||{}).nodeType&&(b.cleanData(we(n,!1)),n.innerHTML=e);n=0}catch(e){}}n&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=b.map(this,(function(e){return[e.nextSibling,e.parentNode]})),t=0;return this.domManip(arguments,(function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),b(this).remove(),i.insertBefore(n,r))}),!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,f=this,p=c-1,h=e[0],g=b.isFunction(h);if(g||!(c<=1||"string"!=typeof h||b.support.checkClone)&&fe.test(h))return this.each((function(r){var i=f.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)}));if(c&&(i=(r=b.buildFragment(e,this[0].ownerDocument,!1,!n&&this)).firstChild,1===r.childNodes.length&&(r=i),i)){for(s=(o=b.map(we(r,"script"),ye)).length;l<c;l++)a=r,l!==p&&(a=b.clone(a,!0,!0),s&&b.merge(o,we(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,b.map(o,ve),l=0;l<s;l++)a=o[l],pe.test(a.type||"")&&!M.access(a,"globalEval")&&b.contains(u,a)&&(a.src?b._evalUrl(a.src):b.globalEval(a.textContent.replace(he,"")))}return this}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),b(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}})),b.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=b.contains(e.ownerDocument,e);if(!(b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(s=we(a),r=0,i=(o=we(e)).length;r<i;r++)Te(o[r],s[r]);if(t)if(n)for(o=o||we(e),s=s||we(a),r=0,i=o.length;r<i;r++)be(o[r],s[r]);else be(e,a);return(s=we(a,"script")).length>0&&xe(s,!u&&we(e,"script")),a},buildFragment:function(e,t,n,r){for(var i,o,s,a,u,l,c=0,f=e.length,p=t.createDocumentFragment(),d=[];c<f;c++)if((i=e[c])||0===i)if("object"===b.type(i))b.merge(d,i.nodeType?[i]:i);else if(ue.test(i)){for(o=o||p.appendChild(t.createElement("div")),s=(ae.exec(i)||["",""])[1].toLowerCase(),a=ge[s]||ge._default,o.innerHTML=a[1]+i.replace(se,"<$1></$2>")+a[2],l=a[0];l--;)o=o.lastChild;b.merge(d,o.childNodes),(o=p.firstChild).textContent=""}else d.push(t.createTextNode(i));for(p.textContent="",c=0;i=d[c++];)if((!r||-1===b.inArray(i,r))&&(u=b.contains(i.ownerDocument,i),o=we(p.appendChild(i),"script"),u&&xe(o),n))for(l=0;i=o[l++];)pe.test(i.type||"")&&n.push(i);return p},cleanData:function(e){for(var n,r,i,o,s,a,u=b.event.special,l=0;(r=e[l])!==t;l++){if(B.accepts(r)&&(s=r[M.expando])&&(n=M.cache[s])){if((i=Object.keys(n.events||{})).length)for(a=0;(o=i[a])!==t;a++)u[o]?b.event.remove(r,o):b.removeEvent(r,o,n.handle);M.cache[s]&&delete M.cache[s]}delete R.cache[r[R.expando]]}},_evalUrl:function(e){return b.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}}),b.fn.extend({wrapAll:function(e){var t;return b.isFunction(e)?this.each((function(t){b(this).wrapAll(e.call(this,t))})):(this[0]&&(t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return b.isFunction(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b.isFunction(e);return this.each((function(n){b(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)})).end()}});var Ce,Ne,ke=/^(none|table(?!-c[ea]).+)/,Ee=/^margin/,Se=new RegExp("^("+w+")(.*)$","i"),je=new RegExp("^("+w+")(?!px)[a-z%]+$","i"),De=new RegExp("^([+-])=("+w+")","i"),Ae={BODY:"block"},Le={position:"absolute",visibility:"hidden",display:"block"},qe={letterSpacing:0,fontWeight:400},He=["Top","Right","Bottom","Left"],Oe=["Webkit","O","Moz","ms"];function Fe(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Oe.length;i--;)if((t=Oe[i]+n)in e)return t;return r}function Pe(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function Re(t){return e.getComputedStyle(t,null)}function Me(e,t){for(var n,r,i,o=[],s=0,a=e.length;s<a;s++)(r=e[s]).style&&(o[s]=M.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Pe(r)&&(o[s]=M.access(r,"olddisplay",Ie(r.nodeName)))):o[s]||(i=Pe(r),(n&&"none"!==n||!i)&&M.set(r,"olddisplay",i?n:b.css(r,"display"))));for(s=0;s<a;s++)(r=e[s]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}function We(e,t,n){var r=Se.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function $e(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=b.css(e,n+He[o],!0,i)),r?("content"===n&&(s-=b.css(e,"padding"+He[o],!0,i)),"margin"!==n&&(s-=b.css(e,"border"+He[o]+"Width",!0,i))):(s+=b.css(e,"padding"+He[o],!0,i),"padding"!==n&&(s+=b.css(e,"border"+He[o]+"Width",!0,i)));return s}function Be(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Re(e),s=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ce(e,t,o))<0||null==i)&&(i=e.style[t]),je.test(i))return i;r=s&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+$e(e,t,n||(s?"border":"content"),r,o)+"px"}function Ie(e){var t=s,n=Ae[e];return n||("none"!==(n=ze(e,t))&&n||((t=((Ne=(Ne||b("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement))[0].contentWindow||Ne[0].contentDocument).document).write("<!doctype html><html><body>"),t.close(),n=ze(e,t),Ne.detach()),Ae[e]=n),n}function ze(e,t){var n=b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove(),r}b.fn.extend({css:function(e,n){return b.access(this,(function(e,n,r){var i,o,s={},a=0;if(b.isArray(n)){for(i=Re(e),o=n.length;a<o;a++)s[n[a]]=b.css(e,n[a],!1,i);return s}return r!==t?b.style(e,n,r):b.css(e,n)}),e,n,arguments.length>1)},show:function(){return Me(this,!0)},hide:function(){return Me(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Pe(this)?b(this).show():b(this).hide()}))}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ce(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,a,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=Fe(l,u)),a=b.cssHooks[n]||b.cssHooks[u],r===t)return a&&"get"in a&&(o=a.get(e,!1,i))!==t?o:l[n];"string"===(s=typeof r)&&(o=De.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),s="number"),null==r||"number"===s&&isNaN(r)||("number"!==s||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),a&&"set"in a&&(r=a.set(e,r,i))===t||(l[n]=r))}},css:function(e,n,r,i){var o,s,a,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=Fe(e.style,u)),(a=b.cssHooks[n]||b.cssHooks[u])&&"get"in a&&(o=a.get(e,!0,r)),o===t&&(o=Ce(e,n,i)),"normal"===o&&n in qe&&(o=qe[n]),""===r||r?(s=parseFloat(o),!0===r||b.isNumeric(s)?s||0:o):o}}),Ce=function(e,n,r){var i,o,s,a=r||Re(e),u=a?a.getPropertyValue(n)||a[n]:t,l=e.style;return a&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),je.test(u)&&Ee.test(n)&&(i=l.width,o=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=a.width,l.width=i,l.minWidth=o,l.maxWidth=s)),u},b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return 0===e.offsetWidth&&ke.test(b.css(e,"display"))?b.swap(e,Le,(function(){return Be(e,t,r)})):Be(e,t,r)},set:function(e,n,r){var i=r&&Re(e);return We(0,n,r?$e(e,t,r,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}})),b((function(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,t){if(t)return b.swap(e,{display:"inline-block"},Ce,[e,"marginRight"])}}),!b.support.pixelPosition&&b.fn.position&&b.each(["top","left"],(function(e,t){b.cssHooks[t]={get:function(e,n){if(n)return n=Ce(e,t),je.test(n)?b(e).position()[t]+"px":n}}}))})),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},b.expr.filters.visible=function(e){return!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+He[r]+t]=o[r]||o[r-2]||o[0];return i}},Ee.test(e)||(b.cssHooks[e+t].set=We)}));var _e=/%20/g,Xe=/\[\]$/,Ue=/\r?\n/g,Ye=/^(?:submit|button|image|reset|file)$/i,Ve=/^(?:input|select|textarea|keygen)/i;function Ge(e,t,n,r){var i;if(b.isArray(t))b.each(t,(function(t,i){n||Xe.test(e)?r(e,i):Ge(e+"["+("object"==typeof i?t:"")+"]",i,n,r)}));else if(n||"object"!==b.type(t))r(e,t);else for(i in t)Ge(e+"["+i+"]",t[i],n,r)}b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Ve.test(this.nodeName)&&!Ye.test(e)&&(this.checked||!ce.test(e))})).map((function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map(n,(function(e){return{name:t.name,value:e.replace(Ue,"\r\n")}})):{name:t.name,value:n.replace(Ue,"\r\n")}})).get()}}),b.param=function(e,n){var r,i=[],o=function(e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){o(this.name,this.value)}));else for(r in e)Ge(r,e[r],n,o);return i.join("&").replace(_e,"+")},b.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Je,Qe,Ke=b.now(),Ze=/\?/,et=/#.*$/,tt=/([?&])_=[^&]*/,nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,rt=/^(?:GET|HEAD)$/,it=/^\/\//,ot=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,st=b.fn.load,at={},ut={},lt="*/".concat("*");try{Qe=o.href}catch(e){(Qe=s.createElement("a")).href="",Qe=Qe.href}function ct(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(b.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function ft(e,t,n,r){var i={},o=e===ut;function s(a){var u;return i[a]=!0,b.each(e[a]||[],(function(e,a){var l=a(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),s(l),!1)})),u}return s(t.dataTypes[0])||!i["*"]&&s("*")}function pt(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);return i&&b.extend(!0,e,i),e}Je=ot.exec(Qe.toLowerCase())||[],b.fn.load=function(e,n,r){if("string"!=typeof e&&st)return st.apply(this,arguments);var i,o,s,a=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u),e=e.slice(0,u)),b.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(o="POST"),a.length>0&&b.ajax({url:e,type:o,dataType:"html",data:n}).done((function(e){s=arguments,a.html(i?b("<div>").append(b.parseHTML(e)).find(i):e)})).complete(r&&function(e,t){a.each(r,s||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qe,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Je[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?pt(pt(e,b.ajaxSettings),t):pt(b.ajaxSettings,e)},ajaxPrefilter:ct(at),ajaxTransport:ct(ut),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,s,a,u,l,c,f=b.ajaxSetup({},n),p=f.context||f,d=f.context&&(p.nodeType||p.jquery)?b(p):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=f.statusCode||{},y={},v={},x=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!s)for(s={};t=nt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return r&&r.abort(t),N(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,f.url=((e||f.url||Qe)+"").replace(et,"").replace(it,Je[1]+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=b.trim(f.dataType||"*").toLowerCase().match(T)||[""],null==f.crossDomain&&(u=ot.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===Je[1]&&u[2]===Je[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(Je[3]||("http:"===Je[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=b.param(f.data,f.traditional)),ft(at,f,n,C),2===x)return C;for(c in(l=f.global)&&0==b.active++&&b.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!rt.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(Ze.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=tt.test(i)?i.replace(tt,"$1_="+Ke++):i+(Ze.test(i)?"&":"?")+"_="+Ke++)),f.ifModified&&(b.lastModified[i]&&C.setRequestHeader("If-Modified-Since",b.lastModified[i]),b.etag[i]&&C.setRequestHeader("If-None-Match",b.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+lt+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||2===x))return C.abort();for(c in w="abort",{success:1,error:1,complete:1})C[c](f[c]);if(r=ft(ut,f,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,f]),f.async&&f.timeout>0&&(a=setTimeout((function(){C.abort("timeout")}),f.timeout));try{x=1,r.send(y,N)}catch(e){if(!(x<2))throw e;N(-1,e)}}else N(-1,"No Transport");function N(e,n,s,u){var c,y,v,w,T,N=n;2!==x&&(x=2,a&&clearTimeout(a),r=t,o=u||"",C.readyState=e>0?4:0,c=e>=200&&e<300||304===e,s&&(w=function(e,n,r){var i,o,s,a,u=e.contents,l=e.dataTypes;for(;"*"===l[0];)l.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){l.unshift(o);break}if(l[0]in r)s=l[0];else{for(o in r){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}a||(a=o)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),r[s]}(f,C,s)),w=function(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];o=c.shift();for(;o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(f,w,C,c),c?(f.ifModified&&((T=C.getResponseHeader("Last-Modified"))&&(b.lastModified[i]=T),(T=C.getResponseHeader("etag"))&&(b.etag[i]=T)),204===e||"HEAD"===f.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,c=!(v=w.error))):(v=N,!e&&N||(N="error",e<0&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(p,[y,N,C]):h.rejectWith(p,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,f,c?y:v]),g.fireWith(p,[C,N]),l&&(d.trigger("ajaxComplete",[C,f]),--b.active||b.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,n){return b.get(e,t,n,"script")}}),b.each(["get","post"],(function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=b("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}}));var dt=[],ht=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=dt.pop()||b.expando+"_"+Ke++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(n,r,i){var o,s,a,u=!1!==n.jsonp&&(ht.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&ht.test(n.data)&&"data");if(u||"jsonp"===n.dataTypes[0])return o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(ht,"$1"+o):!1!==n.jsonp&&(n.url+=(Ze.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return a||b.error(o+" was not called"),a[0]},n.dataTypes[0]="json",s=e[o],e[o]=function(){a=arguments},i.always((function(){e[o]=s,n[o]&&(n.jsonpCallback=r.jsonpCallback,dt.push(o)),a&&b.isFunction(s)&&s(a[0]),a=s=t})),"script"})),b.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var gt=b.ajaxSettings.xhr(),mt={0:200,1223:204},yt=0,vt={};e.ActiveXObject&&b(e).on("unload",(function(){for(var e in vt)vt[e]();vt=t})),b.support.cors=!!gt&&"withCredentials"in gt,b.support.ajax=gt=!!gt,b.ajaxTransport((function(e){var n;if(b.support.cors||gt&&!e.crossDomain)return{send:function(r,i){var o,s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);n=function(e){return function(){n&&(delete vt[s],n=a.onload=a.onerror=null,"abort"===e?a.abort():"error"===e?i(a.status||404,a.statusText):i(mt[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:t,a.getAllResponseHeaders()))}},a.onload=n(),a.onerror=n("error"),n=vt[s=yt++]=n("abort"),a.send(e.hasContent&&e.data||null)},abort:function(){n&&n()}}}));var xt,bt,wt=/^(?:toggle|show|hide)$/,Tt=new RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Ct=/queueHooks$/,Nt=[function(e,n,r){var i,o,s,a,u,l,c=this,f={},p=e.style,d=e.nodeType&&Pe(e),h=M.get(e,"fxshow");r.queue||(null==(u=b._queueHooks(e,"fx")).unqueued&&(u.unqueued=0,l=u.empty.fire,u.empty.fire=function(){u.unqueued||l()}),u.unqueued++,c.always((function(){c.always((function(){u.unqueued--,b.queue(e,"fx").length||u.empty.fire()}))})));1===e.nodeType&&("height"in n||"width"in n)&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(p.display="inline-block"));r.overflow&&(p.overflow="hidden",c.always((function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]})));for(i in n)if(o=n[i],wt.exec(o)){if(delete n[i],s=s||"toggle"===o,o===(d?"hide":"show")){if("show"!==o||!h||h[i]===t)continue;d=!0}f[i]=h&&h[i]||b.style(e,i)}if(!b.isEmptyObject(f))for(i in h?"hidden"in h&&(d=h.hidden):h=M.access(e,"fxshow",{}),s&&(h.hidden=!d),d?b(e).show():c.done((function(){b(e).hide()})),c.done((function(){var t;for(t in M.remove(e,"fxshow"),f)b.style(e,t,f[t])})),f)a=St(d?h[i]:0,i,c),i in h||(h[i]=a.start,d&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],kt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Tt.exec(t),o=i&&i[3]||(b.cssNumber[e]?"":"px"),s=(b.cssNumber[e]||"px"!==o&&+r)&&Tt.exec(b.css(n.elem,e)),a=1,u=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+r||1;do{s/=a=a||".5",b.style(n.elem,e,s+o)}while(a!==(a=n.cur()/r)&&1!==a&&--u)}return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};function Et(){return setTimeout((function(){xt=t})),xt=b.now()}function St(e,t,n){for(var r,i=(kt[t]||[]).concat(kt["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function jt(e,t,n){var r,i,o=0,s=Nt.length,a=b.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=xt||Et(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(r);return a.notifyWith(e,[l,r,n]),r<1&&s?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:xt||Et(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?a.resolveWith(e,[l,t]):a.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=b.camelCase(n)],o=e[n],b.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=b.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<s;o++)if(r=Nt[o].call(l,e,c,l.opts))return r;return b.map(c,St,l),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function Dt(e,t,n,r,i){return new Dt.prototype.init(e,t,n,r,i)}function At(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=He[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Lt(e){return b.isWindow(e)?e:9===e.nodeType&&e.defaultView}b.Animation=b.extend(jt,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],kt[n]=kt[n]||[],kt[n].unshift(t)},prefilter:function(e,t){t?Nt.unshift(e):Nt.push(e)}}),b.Tween=Dt,Dt.prototype={constructor:Dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=Dt.propHooks[this.prop];return e&&e.get?e.get(this):Dt.propHooks._default.get(this)},run:function(e){var t,n=Dt.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Dt.propHooks._default.set(this),this}},Dt.prototype.init.prototype=Dt.prototype,Dt.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Dt.propHooks.scrollTop=Dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],(function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(At(t,!0),e,r,i)}})),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Pe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),s=function(){var t=jt(this,b.extend({},e),o);(i||M.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,s=M.get(this);if(n)s[n]&&s[n].stop&&i(s[n]);else for(n in s)s[n]&&s[n].stop&&Ct.test(n)&&i(s[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));!t&&r||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=M.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,s=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),b.each({slideDown:At("show"),slideUp:At("hide"),slideToggle:At("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=Dt.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(xt=b.now();r<n.length;r++)(e=n[r])()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),xt=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){bt||(bt=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(bt),bt=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var n,r,o=this[0],s={top:0,left:0},a=o&&o.ownerDocument;return a?(n=a.documentElement,b.contains(n,o)?(typeof o.getBoundingClientRect!==i&&(s=o.getBoundingClientRect()),r=Lt(a),{top:s.top+r.pageYOffset-n.clientTop,left:s.left+r.pageXOffset-n.clientLeft}):s):void 0},b.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l=b.css(e,"position"),c=b(e),f={};"static"===l&&(e.style.position="relative"),a=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),b.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):c.css(f)}},b.fn.extend({position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===b.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(r=e.offset()),r.top+=b.css(e[0],"borderTopWidth",!0),r.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-b.css(n,"marginTop",!0),left:t.left-r.left-b.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||a;e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position");)e=e.offsetParent;return e||a}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(n,r){var i="pageYOffset"===r;b.fn[n]=function(o){return b.access(this,(function(n,o,s){var a=Lt(n);if(s===t)return a?a[r]:n[o];a?a.scrollTo(i?e.pageXOffset:s,i?s:e.pageYOffset):n[o]=s}),n,o,arguments.length,null)}})),b.each({Height:"height",Width:"width"},(function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},(function(r,i){b.fn[i]=function(i,o){var s=arguments.length&&(r||"boolean"!=typeof i),a=r||(!0===i||!0===o?"margin":"border");return b.access(this,(function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,a):b.style(n,r,i,a)}),n,s?i:t,s,null)}}))})),b.fn.size=function(){return this.length},b.fn.andSelf=b.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=b:"function"==typeof define&&define.amd&&define("jquery",[],(function(){return b})),"object"==typeof e&&"object"==typeof e.document&&(e.jQuery=e.$=b)}(window);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
|
|
2
|
-
* Licensed under the MIT License (LICENSE.txt).
|
|
3
|
-
*
|
|
4
|
-
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
|
5
|
-
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
|
6
|
-
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
|
7
|
-
*
|
|
8
|
-
* Version: 3.0.6
|
|
9
|
-
*
|
|
10
|
-
* Requires: 1.2.2+
|
|
11
|
-
*/
|
|
12
|
-
!function(e){var t=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var n=t.length;n;)e.event.fixHooks[t[--n]]=e.event.mouseHooks;function i(t){var n=t||window.event,i=[].slice.call(arguments,1),l=0,s=0,o=0;return(t=e.event.fix(n)).type="mousewheel",n.wheelDelta&&(l=n.wheelDelta/120),n.detail&&(l=-n.detail/3),o=l,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(o=0,s=-1*l),void 0!==n.wheelDeltaY&&(o=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(s=-1*n.wheelDeltaX/120),i.unshift(t,l,s,o),(e.event.dispatch||e.event.handle).apply(this,i)}e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],i,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! jquery-visibility v1.0.11 | MIT license | http://mths.be/visibility */
|
|
2
|
-
!function(e,i){"function"==typeof define&&define.amd?define(["jquery"],(function(t){return i(e,t)})):"object"==typeof exports?module.exports=i(e,require("jquery")):i(e,jQuery)}(this,(function(e,i,t){"use strict";function o(){"hidden"!==n&&(r.hidden=f.pageVisibility?r[n]:t)}for(var n,u,r=e.document,s=["webkit","o","ms","moz",""],f=i.support||{},c=("onfocusin"in r&&"hasFocus"in r?"focusin focusout":"focus blur");(u=s.pop())!==t;)if(n=(u?u+"H":"h")+"idden",f.pageVisibility=r[n]!==t,f.pageVisibility){c=u+"visibilitychange";break}o(),i(/blur$/.test(c)?e:r).on(c,(function(e){var u=e.type,s=e.originalEvent;if(s){var f=s.toElement;(!/^focus./.test(u)||f===t&&s.fromElement===t&&s.relatedTarget===t)&&i(r).triggerHandler(n&&r[n]||/^(?:blur|focusout)$/.test(u)?"hide":"show"),o()}}))}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var dbits,canary=0xdeadbeefcafe,j_lm=15715070==(16777215&canary);function encryptionBigInteger(t,i,n){null!=t&&("number"==typeof t?this.fromNumber(t,i,n):null==i&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,i))}function nbi(){return new encryptionBigInteger(null)}function am1(t,i,n,r,o,e){for(;--e>=0;){var s=i*this[t++]+n[r]+o;o=Math.floor(s/67108864),n[r++]=67108863&s}return o}function am2(t,i,n,r,o,e){for(var s=32767&i,h=i>>15;--e>=0;){var p=32767&this[t],c=this[t++]>>15,a=h*p+c*s;o=((p=s*p+((32767&a)<<15)+n[r]+(1073741823&o))>>>30)+(a>>>15)+h*c+(o>>>30),n[r++]=1073741823&p}return o}function am3(t,i,n,r,o,e){for(var s=16383&i,h=i>>14;--e>=0;){var p=16383&this[t],c=this[t++]>>14,a=h*p+c*s;o=((p=s*p+((16383&a)<<14)+n[r]+o)>>28)+(a>>14)+h*c,n[r++]=268435455&p}return o}j_lm&&"Microsoft Internet Explorer"==navigator.appName?(encryptionBigInteger.prototype.am=am2,dbits=30):j_lm&&"Netscape"!=navigator.appName?(encryptionBigInteger.prototype.am=am1,dbits=26):(encryptionBigInteger.prototype.am=am3,dbits=28),encryptionBigInteger.prototype.DB=dbits,encryptionBigInteger.prototype.DM=(1<<dbits)-1,encryptionBigInteger.prototype.DV=1<<dbits;var BI_FP=52;encryptionBigInteger.prototype.FV=Math.pow(2,BI_FP),encryptionBigInteger.prototype.F1=BI_FP-dbits,encryptionBigInteger.prototype.F2=2*dbits-BI_FP;var rr,vv,BI_RM="0123456789abcdefghijklmnopqrstuvwxyz",BI_RC=new Array;for(rr="0".charCodeAt(0),vv=0;vv<=9;++vv)BI_RC[rr++]=vv;for(rr="a".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;for(rr="A".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;function int2char(t){return BI_RM.charAt(t)}function intAt(t,i){var n=BI_RC[t.charCodeAt(i)];return null==n?-1:n}function bnpCopyTo(t){for(var i=this.t-1;i>=0;--i)t[i]=this[i];t.t=this.t,t.s=this.s}function bnpFromInt(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+DV:this.t=0}function nbv(t){var i=nbi();return i.fromInt(t),i}function bnpFromString(t,i){var n;if(16==i)n=4;else if(8==i)n=3;else if(256==i)n=8;else if(2==i)n=1;else if(32==i)n=5;else{if(4!=i)return void this.fromRadix(t,i);n=2}this.t=0,this.s=0;for(var r=t.length,o=!1,e=0;--r>=0;){var s=8==n?255&t[r]:intAt(t,r);s<0?"-"==t.charAt(r)&&(o=!0):(o=!1,0==e?this[this.t++]=s:e+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-e)-1)<<e,this[this.t++]=s>>this.DB-e):this[this.t-1]|=s<<e,(e+=n)>=this.DB&&(e-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,e>0&&(this[this.t-1]|=(1<<this.DB-e)-1<<e)),this.clamp(),o&&encryptionBigInteger.ZERO.subTo(this,this)}function bnpClamp(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function bnToString(t){if(this.s<0)return"-"+this.negate().toString(t);var i;if(16==t)i=4;else if(8==t)i=3;else if(2==t)i=1;else if(32==t)i=5;else{if(4!=t)return this.toRadix(t);i=2}var n,r=(1<<i)-1,o=!1,e="",s=this.t,h=this.DB-s*this.DB%i;if(s-- >0)for(h<this.DB&&(n=this[s]>>h)>0&&(o=!0,e=int2char(n));s>=0;)h<i?(n=(this[s]&(1<<h)-1)<<i-h,n|=this[--s]>>(h+=this.DB-i)):(n=this[s]>>(h-=i)&r,h<=0&&(h+=this.DB,--s)),n>0&&(o=!0),o&&(e+=int2char(n));return o?e:"0"}function bnNegate(){var t=nbi();return encryptionBigInteger.ZERO.subTo(this,t),t}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(t){var i=this.s-t.s;if(0!=i)return i;var n=this.t;if(0!=(i=n-t.t))return this.s<0?-i:i;for(;--n>=0;)if(0!=(i=this[n]-t[n]))return i;return 0}function nbits(t){var i,n=1;return 0!=(i=t>>>16)&&(t=i,n+=16),0!=(i=t>>8)&&(t=i,n+=8),0!=(i=t>>4)&&(t=i,n+=4),0!=(i=t>>2)&&(t=i,n+=2),0!=(i=t>>1)&&(t=i,n+=1),n}function bnBitLength(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(t,i){var n;for(n=this.t-1;n>=0;--n)i[n+t]=this[n];for(n=t-1;n>=0;--n)i[n]=0;i.t=this.t+t,i.s=this.s}function bnpDRShiftTo(t,i){for(var n=t;n<this.t;++n)i[n-t]=this[n];i.t=Math.max(this.t-t,0),i.s=this.s}function bnpLShiftTo(t,i){var n,r=t%this.DB,o=this.DB-r,e=(1<<o)-1,s=Math.floor(t/this.DB),h=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)i[n+s+1]=this[n]>>o|h,h=(this[n]&e)<<r;for(n=s-1;n>=0;--n)i[n]=0;i[s]=h,i.t=this.t+s+1,i.s=this.s,i.clamp()}function bnpRShiftTo(t,i){i.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)i.t=0;else{var r=t%this.DB,o=this.DB-r,e=(1<<r)-1;i[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)i[s-n-1]|=(this[s]&e)<<o,i[s-n]=this[s]>>r;r>0&&(i[this.t-n-1]|=(this.s&e)<<o),i.t=this.t-n,i.clamp()}}function bnpSubTo(t,i){for(var n=0,r=0,o=Math.min(t.t,this.t);n<o;)r+=this[n]-t[n],i[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],i[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],i[n++]=r&this.DM,r>>=this.DB;r-=t.s}i.s=r<0?-1:0,r<-1?i[n++]=this.DV+r:r>0&&(i[n++]=r),i.t=n,i.clamp()}function bnpMultiplyTo(t,i){var n=this.abs(),r=t.abs(),o=n.t;for(i.t=o+r.t;--o>=0;)i[o]=0;for(o=0;o<r.t;++o)i[o+n.t]=n.am(0,r[o],i,o,0,n.t);i.s=0,i.clamp(),this.s!=t.s&&encryptionBigInteger.ZERO.subTo(i,i)}function bnpSquareTo(t){for(var i=this.abs(),n=t.t=2*i.t;--n>=0;)t[n]=0;for(n=0;n<i.t-1;++n){var r=i.am(n,i[n],t,2*n,0,1);(t[n+i.t]+=i.am(n+1,2*i[n],t,2*n+1,r,i.t-n-1))>=i.DV&&(t[n+i.t]-=i.DV,t[n+i.t+1]=1)}t.t>0&&(t[t.t-1]+=i.am(n,i[n],t,2*n,0,1)),t.s=0,t.clamp()}function bnpDivRemTo(t,i,n){var r=t.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=i&&i.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=nbi());var e=nbi(),s=this.s,h=t.s,p=this.DB-nbits(r[r.t-1]);p>0?(r.lShiftTo(p,e),o.lShiftTo(p,n)):(r.copyTo(e),o.copyTo(n));var c=e.t,a=e[c-1];if(0!=a){var f=a*(1<<this.F1)+(c>1?e[c-2]>>this.F2:0),u=this.FV/f,g=(1<<this.F1)/f,m=1<<this.F2,y=n.t,v=y-c,b=null==i?nbi():i;for(e.dlShiftTo(v,b),n.compareTo(b)>=0&&(n[n.t++]=1,n.subTo(b,n)),encryptionBigInteger.ONE.dlShiftTo(c,b),b.subTo(e,e);e.t<c;)e[e.t++]=0;for(;--v>=0;){var l=n[--y]==a?this.DM:Math.floor(n[y]*u+(n[y-1]+m)*g);if((n[y]+=e.am(0,l,n,v,0,c))<l)for(e.dlShiftTo(v,b),n.subTo(b,n);n[y]<--l;)n.subTo(b,n)}null!=i&&(n.drShiftTo(c,i),s!=h&&encryptionBigInteger.ZERO.subTo(i,i)),n.t=c,n.clamp(),p>0&&n.rShiftTo(p,n),s<0&&encryptionBigInteger.ZERO.subTo(n,n)}}}function bnMod(t){var i=nbi();return this.abs().divRemTo(t,null,i),this.s<0&&i.compareTo(encryptionBigInteger.ZERO)>0&&t.subTo(i,i),i}function Classic(t){this.m=t}function cConvert(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function cRevert(t){return t}function cReduce(t){t.divRemTo(this.m,null,t)}function cMulTo(t,i,n){t.multiplyTo(i,n),this.reduce(n)}function cSqrTo(t,i){t.squareTo(i),this.reduce(i)}function bnpInvDigit(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var i=3&t;return(i=(i=(i=(i=i*(2-(15&t)*i)&15)*(2-(255&t)*i)&255)*(2-((65535&t)*i&65535))&65535)*(2-t*i%this.DV)%this.DV)>0?this.DV-i:-i}function Montgomery(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function montConvert(t){var i=nbi();return t.abs().dlShiftTo(this.m.t,i),i.divRemTo(this.m,null,i),t.s<0&&i.compareTo(encryptionBigInteger.ZERO)>0&&this.m.subTo(i,i),i}function montRevert(t){var i=nbi();return t.copyTo(i),this.reduce(i),i}function montReduce(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var i=0;i<this.m.t;++i){var n=32767&t[i],r=n*this.mpl+((n*this.mph+(t[i]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=i+this.m.t]+=this.m.am(0,r,t,i,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function montSqrTo(t,i){t.squareTo(i),this.reduce(i)}function montMulTo(t,i,n){t.multiplyTo(i,n),this.reduce(n)}function bnpIsEven(){return 0==(this.t>0?1&this[0]:this.s)}function bnpExp(t,i){if(t>4294967295||t<1)return encryptionBigInteger.ONE;var n=nbi(),r=nbi(),o=i.convert(this),e=nbits(t)-1;for(o.copyTo(n);--e>=0;)if(i.sqrTo(n,r),(t&1<<e)>0)i.mulTo(r,o,n);else{var s=n;n=r,r=s}return i.revert(n)}function bnModPowInt(t,i){var n;return n=t<256||i.isEven()?new Classic(i):new Montgomery(i),this.exp(t,n)}Classic.prototype.convert=cConvert,Classic.prototype.revert=cRevert,Classic.prototype.reduce=cReduce,Classic.prototype.mulTo=cMulTo,Classic.prototype.sqrTo=cSqrTo,Montgomery.prototype.convert=montConvert,Montgomery.prototype.revert=montRevert,Montgomery.prototype.reduce=montReduce,Montgomery.prototype.mulTo=montMulTo,Montgomery.prototype.sqrTo=montSqrTo,encryptionBigInteger.prototype.copyTo=bnpCopyTo,encryptionBigInteger.prototype.fromInt=bnpFromInt,encryptionBigInteger.prototype.fromString=bnpFromString,encryptionBigInteger.prototype.clamp=bnpClamp,encryptionBigInteger.prototype.dlShiftTo=bnpDLShiftTo,encryptionBigInteger.prototype.drShiftTo=bnpDRShiftTo,encryptionBigInteger.prototype.lShiftTo=bnpLShiftTo,encryptionBigInteger.prototype.rShiftTo=bnpRShiftTo,encryptionBigInteger.prototype.subTo=bnpSubTo,encryptionBigInteger.prototype.multiplyTo=bnpMultiplyTo,encryptionBigInteger.prototype.squareTo=bnpSquareTo,encryptionBigInteger.prototype.divRemTo=bnpDivRemTo,encryptionBigInteger.prototype.invDigit=bnpInvDigit,encryptionBigInteger.prototype.isEven=bnpIsEven,encryptionBigInteger.prototype.exp=bnpExp,encryptionBigInteger.prototype.toString=bnToString,encryptionBigInteger.prototype.negate=bnNegate,encryptionBigInteger.prototype.abs=bnAbs,encryptionBigInteger.prototype.compareTo=bnCompareTo,encryptionBigInteger.prototype.bitLength=bnBitLength,encryptionBigInteger.prototype.mod=bnMod,encryptionBigInteger.prototype.modPowInt=bnModPowInt,encryptionBigInteger.ZERO=nbv(0),encryptionBigInteger.ONE=nbv(1);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function bnClone(){var t=nbi();return this.copyTo(t),t}function bnIntValue(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function bnByteValue(){return 0==this.t?this.s:this[0]<<24>>24}function bnShortValue(){return 0==this.t?this.s:this[0]<<16>>16}function bnpChunkSize(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function bnSigNum(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function bnpToRadix(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var i=this.chunkSize(t),n=Math.pow(t,i),r=nbv(n),e=nbi(),o=nbi(),s="";for(this.divRemTo(r,e,o);e.signum()>0;)s=(n+o.intValue()).toString(t).substr(1)+s,e.divRemTo(r,e,o);return o.intValue().toString(t)+s}function bnpFromRadix(t,i){this.fromInt(0),null==i&&(i=10);for(var n=this.chunkSize(i),r=Math.pow(i,n),e=!1,o=0,s=0,p=0;p<t.length;++p){var h=intAt(t,p);h<0?"-"==t.charAt(p)&&0==this.signum()&&(e=!0):(s=i*s+h,++o>=n&&(this.dMultiply(r),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(i,o)),this.dAddOffset(s,0)),e&&encryptionBigInteger.ZERO.subTo(this,this)}function bnpFromNumber(t,i,n){if("number"==typeof i)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(encryptionBigInteger.ONE.shiftLeft(t-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(i);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(encryptionBigInteger.ONE.shiftLeft(t-1),this);else{var r=new Array,e=7&t;r.length=1+(t>>3),i.nextBytes(r),e>0?r[0]&=(1<<e)-1:r[0]=0,this.fromString(r,256)}}function bnToByteArray(){var t=this.t,i=new Array;i[0]=this.s;var n,r=this.DB-t*this.DB%8,e=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(i[e++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==e&&(128&this.s)!=(128&n)&&++e,(e>0||n!=this.s)&&(i[e++]=n);return i}function bnEquals(t){return 0==this.compareTo(t)}function bnMin(t){return this.compareTo(t)<0?this:t}function bnMax(t){return this.compareTo(t)>0?this:t}function bnpBitwiseTo(t,i,n){var r,e,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=i(this[r],t[r]);if(t.t<this.t){for(e=t.s&this.DM,r=o;r<this.t;++r)n[r]=i(this[r],e);n.t=this.t}else{for(e=this.s&this.DM,r=o;r<t.t;++r)n[r]=i(e,t[r]);n.t=t.t}n.s=i(this.s,t.s),n.clamp()}function op_and(t,i){return t&i}function bnAnd(t){var i=nbi();return this.bitwiseTo(t,op_and,i),i}function op_or(t,i){return t|i}function bnOr(t){var i=nbi();return this.bitwiseTo(t,op_or,i),i}function op_xor(t,i){return t^i}function bnXor(t){var i=nbi();return this.bitwiseTo(t,op_xor,i),i}function op_andnot(t,i){return t&~i}function bnAndNot(t){var i=nbi();return this.bitwiseTo(t,op_andnot,i),i}function bnNot(){for(var t=nbi(),i=0;i<this.t;++i)t[i]=this.DM&~this[i];return t.t=this.t,t.s=~this.s,t}function bnShiftLeft(t){var i=nbi();return t<0?this.rShiftTo(-t,i):this.lShiftTo(t,i),i}function bnShiftRight(t){var i=nbi();return t<0?this.lShiftTo(-t,i):this.rShiftTo(t,i),i}function lbit(t){if(0==t)return-1;var i=0;return 0==(65535&t)&&(t>>=16,i+=16),0==(255&t)&&(t>>=8,i+=8),0==(15&t)&&(t>>=4,i+=4),0==(3&t)&&(t>>=2,i+=2),0==(1&t)&&++i,i}function bnGetLowestSetBit(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+lbit(this[t]);return this.s<0?this.t*this.DB:-1}function cbit(t){for(var i=0;0!=t;)t&=t-1,++i;return i}function bnBitCount(){for(var t=0,i=this.s&this.DM,n=0;n<this.t;++n)t+=cbit(this[n]^i);return t}function bnTestBit(t){var i=Math.floor(t/this.DB);return i>=this.t?0!=this.s:0!=(this[i]&1<<t%this.DB)}function bnpChangeBit(t,i){var n=encryptionBigInteger.ONE.shiftLeft(t);return this.bitwiseTo(n,i,n),n}function bnSetBit(t){return this.changeBit(t,op_or)}function bnClearBit(t){return this.changeBit(t,op_andnot)}function bnFlipBit(t){return this.changeBit(t,op_xor)}function bnpAddTo(t,i){for(var n=0,r=0,e=Math.min(t.t,this.t);n<e;)r+=this[n]+t[n],i[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],i[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],i[n++]=r&this.DM,r>>=this.DB;r+=t.s}i.s=r<0?-1:0,r>0?i[n++]=r:r<-1&&(i[n++]=this.DV+r),i.t=n,i.clamp()}function bnAdd(t){var i=nbi();return this.addTo(t,i),i}function bnSubtract(t){var i=nbi();return this.subTo(t,i),i}function bnMultiply(t){var i=nbi();return this.multiplyTo(t,i),i}function bnSquare(){var t=nbi();return this.squareTo(t),t}function bnDivide(t){var i=nbi();return this.divRemTo(t,i,null),i}function bnRemainder(t){var i=nbi();return this.divRemTo(t,null,i),i}function bnDivideAndRemainder(t){var i=nbi(),n=nbi();return this.divRemTo(t,i,n),new Array(i,n)}function bnpDMultiply(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function bnpDAddOffset(t,i){if(0!=t){for(;this.t<=i;)this[this.t++]=0;for(this[i]+=t;this[i]>=this.DV;)this[i]-=this.DV,++i>=this.t&&(this[this.t++]=0),++this[i]}}function NullExp(){}function nNop(t){return t}function nMulTo(t,i,n){t.multiplyTo(i,n)}function nSqrTo(t,i){t.squareTo(i)}function bnPow(t){return this.exp(t,new NullExp)}function bnpMultiplyLowerTo(t,i,n){var r,e=Math.min(this.t+t.t,i);for(n.s=0,n.t=e;e>0;)n[--e]=0;for(r=n.t-this.t;e<r;++e)n[e+this.t]=this.am(0,t[e],n,e,0,this.t);for(r=Math.min(t.t,i);e<r;++e)this.am(0,t[e],n,e,0,i-e);n.clamp()}function bnpMultiplyUpperTo(t,i,n){--i;var r=n.t=this.t+t.t-i;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(i-this.t,0);r<t.t;++r)n[this.t+r-i]=this.am(i-r,t[r],n,0,0,this.t+r-i);n.clamp(),n.drShiftTo(1,n)}function Barrett(t){this.r2=nbi(),this.q3=nbi(),encryptionBigInteger.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}function barrettConvert(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var i=nbi();return t.copyTo(i),this.reduce(i),i}function barrettRevert(t){return t}function barrettReduce(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function barrettSqrTo(t,i){t.squareTo(i),this.reduce(i)}function barrettMulTo(t,i,n){t.multiplyTo(i,n),this.reduce(n)}function bnModPow(t,i){var n,r,e=t.bitLength(),o=nbv(1);if(e<=0)return o;n=e<18?1:e<48?3:e<144?4:e<768?5:6,r=e<8?new Classic(i):i.isEven()?new Barrett(i):new Montgomery(i);var s=new Array,p=3,h=n-1,u=(1<<n)-1;if(s[1]=r.convert(this),n>1){var f=nbi();for(r.sqrTo(s[1],f);p<=u;)s[p]=nbi(),r.mulTo(f,s[p-2],s[p]),p+=2}var a,b,c=t.t-1,g=!0,l=nbi();for(e=nbits(t[c])-1;c>=0;){for(e>=h?a=t[c]>>e-h&u:(a=(t[c]&(1<<e+1)-1)<<h-e,c>0&&(a|=t[c-1]>>this.DB+e-h)),p=n;0==(1&a);)a>>=1,--p;if((e-=p)<0&&(e+=this.DB,--c),g)s[a].copyTo(o),g=!1;else{for(;p>1;)r.sqrTo(o,l),r.sqrTo(l,o),p-=2;p>0?r.sqrTo(o,l):(b=o,o=l,l=b),r.mulTo(l,s[a],o)}for(;c>=0&&0==(t[c]&1<<e);)r.sqrTo(o,l),b=o,o=l,l=b,--e<0&&(e=this.DB-1,--c)}return r.revert(o)}function bnGCD(t){var i=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(i.compareTo(n)<0){var r=i;i=n,n=r}var e=i.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return i;for(e<o&&(o=e),o>0&&(i.rShiftTo(o,i),n.rShiftTo(o,n));i.signum()>0;)(e=i.getLowestSetBit())>0&&i.rShiftTo(e,i),(e=n.getLowestSetBit())>0&&n.rShiftTo(e,n),i.compareTo(n)>=0?(i.subTo(n,i),i.rShiftTo(1,i)):(n.subTo(i,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n}function bnpModInt(t){if(t<=0)return 0;var i=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==i)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(i*n+this[r])%t;return n}function bnModInverse(t){var i=t.isEven();if(this.isEven()&&i||0==t.signum())return encryptionBigInteger.ZERO;for(var n=t.clone(),r=this.clone(),e=nbv(1),o=nbv(0),s=nbv(0),p=nbv(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),i?(e.isEven()&&o.isEven()||(e.addTo(this,e),o.subTo(t,o)),e.rShiftTo(1,e)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;r.isEven();)r.rShiftTo(1,r),i?(s.isEven()&&p.isEven()||(s.addTo(this,s),p.subTo(t,p)),s.rShiftTo(1,s)):p.isEven()||p.subTo(t,p),p.rShiftTo(1,p);n.compareTo(r)>=0?(n.subTo(r,n),i&&e.subTo(s,e),o.subTo(p,o)):(r.subTo(n,r),i&&s.subTo(e,s),p.subTo(o,p))}return 0!=r.compareTo(encryptionBigInteger.ONE)?encryptionBigInteger.ZERO:p.compareTo(t)>=0?p.subtract(t):p.signum()<0?(p.addTo(t,p),p.signum()<0?p.add(t):p):p}NullExp.prototype.convert=nNop,NullExp.prototype.revert=nNop,NullExp.prototype.mulTo=nMulTo,NullExp.prototype.sqrTo=nSqrTo,Barrett.prototype.convert=barrettConvert,Barrett.prototype.revert=barrettRevert,Barrett.prototype.reduce=barrettReduce,Barrett.prototype.mulTo=barrettMulTo,Barrett.prototype.sqrTo=barrettSqrTo;var lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],lplim=(1<<26)/lowprimes[lowprimes.length-1];function bnIsProbablePrime(t){var i,n=this.abs();if(1==n.t&&n[0]<=lowprimes[lowprimes.length-1]){for(i=0;i<lowprimes.length;++i)if(n[0]==lowprimes[i])return!0;return!1}if(n.isEven())return!1;for(i=1;i<lowprimes.length;){for(var r=lowprimes[i],e=i+1;e<lowprimes.length&&r<lplim;)r*=lowprimes[e++];for(r=n.modInt(r);i<e;)if(r%lowprimes[i++]==0)return!1}return n.millerRabin(t)}function bnpMillerRabin(t){var i=this.subtract(encryptionBigInteger.ONE),n=i.getLowestSetBit();if(n<=0)return!1;var r=i.shiftRight(n);(t=t+1>>1)>lowprimes.length&&(t=lowprimes.length);for(var e=nbi(),o=0;o<t;++o){e.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var s=e.modPow(r,this);if(0!=s.compareTo(encryptionBigInteger.ONE)&&0!=s.compareTo(i)){for(var p=1;p++<n&&0!=s.compareTo(i);)if(0==(s=s.modPowInt(2,this)).compareTo(encryptionBigInteger.ONE))return!1;if(0!=s.compareTo(i))return!1}}return!0}encryptionBigInteger.prototype.chunkSize=bnpChunkSize,encryptionBigInteger.prototype.toRadix=bnpToRadix,encryptionBigInteger.prototype.fromRadix=bnpFromRadix,encryptionBigInteger.prototype.fromNumber=bnpFromNumber,encryptionBigInteger.prototype.bitwiseTo=bnpBitwiseTo,encryptionBigInteger.prototype.changeBit=bnpChangeBit,encryptionBigInteger.prototype.addTo=bnpAddTo,encryptionBigInteger.prototype.dMultiply=bnpDMultiply,encryptionBigInteger.prototype.dAddOffset=bnpDAddOffset,encryptionBigInteger.prototype.multiplyLowerTo=bnpMultiplyLowerTo,encryptionBigInteger.prototype.multiplyUpperTo=bnpMultiplyUpperTo,encryptionBigInteger.prototype.modInt=bnpModInt,encryptionBigInteger.prototype.millerRabin=bnpMillerRabin,encryptionBigInteger.prototype.clone=bnClone,encryptionBigInteger.prototype.intValue=bnIntValue,encryptionBigInteger.prototype.byteValue=bnByteValue,encryptionBigInteger.prototype.shortValue=bnShortValue,encryptionBigInteger.prototype.signum=bnSigNum,encryptionBigInteger.prototype.toByteArray=bnToByteArray,encryptionBigInteger.prototype.equals=bnEquals,encryptionBigInteger.prototype.min=bnMin,encryptionBigInteger.prototype.max=bnMax,encryptionBigInteger.prototype.and=bnAnd,encryptionBigInteger.prototype.or=bnOr,encryptionBigInteger.prototype.xor=bnXor,encryptionBigInteger.prototype.andNot=bnAndNot,encryptionBigInteger.prototype.not=bnNot,encryptionBigInteger.prototype.shiftLeft=bnShiftLeft,encryptionBigInteger.prototype.shiftRight=bnShiftRight,encryptionBigInteger.prototype.getLowestSetBit=bnGetLowestSetBit,encryptionBigInteger.prototype.bitCount=bnBitCount,encryptionBigInteger.prototype.testBit=bnTestBit,encryptionBigInteger.prototype.setBit=bnSetBit,encryptionBigInteger.prototype.clearBit=bnClearBit,encryptionBigInteger.prototype.flipBit=bnFlipBit,encryptionBigInteger.prototype.add=bnAdd,encryptionBigInteger.prototype.subtract=bnSubtract,encryptionBigInteger.prototype.multiply=bnMultiply,encryptionBigInteger.prototype.divide=bnDivide,encryptionBigInteger.prototype.remainder=bnRemainder,encryptionBigInteger.prototype.divideAndRemainder=bnDivideAndRemainder,encryptionBigInteger.prototype.modPow=bnModPow,encryptionBigInteger.prototype.modInverse=bnModInverse,encryptionBigInteger.prototype.pow=bnPow,encryptionBigInteger.prototype.gcd=bnGCD,encryptionBigInteger.prototype.isProbablePrime=bnIsProbablePrime,encryptionBigInteger.prototype.square=bnSquare;
|