varMXI_DEBUG=!1;!function(a,b){"use strict";functionc(a,b){for(varc,d=[],f=0;f<a.length;++f){if(c=g[a[f]]||e(a[f]),!c)throw"module definition dependecy not found: "+a[f];d.push(c)}b.apply(null,d)}functiond(a,d,e){if("string"!=typeofa)throw"invalid module definition, module id must be defined and be a string";if(d===b)throw"invalid module definition, dependencies must be specified";if(e===b)throw"invalid module definition, definition function must be specified";c(d,function(){g[a]=e.apply(null,arguments)})}functione(b){for(varc=a,d=b.split(/[.\/]/),e=0;e<d.length;++e){if(!c[d[e]])return;c=c[d[e]]}returnc}functionf(c){for(vard=0;d<c.length;d++){for(vare=a,f=c[d],h=f.split(/[.\/]/),i=0;i<h.length-1;++i)e[h[i]]===b&&(e[h[i]]={}),e=e[h[i]];e[h[h.length-1]]=g[f]}}varg={};d("moxie/core/utils/Basic",[],function(){vara=function(a){varb;returna===b?"undefined":null===a?"null":a.nodeType?"node":{}.toString.call(a).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},b=function(d){vare;returnc(arguments,function(f,h){h>0&&c(f,function(c,f){c!==e&&(a(d[f])===a(c)&&~g(a(c),["array","object"])?b(d[f],c):d[f]=c)})}),d},c=function(b,c){vard,e,f;if(b)if("number"===a(b.length)){for(f=0,d=b.length;f<d;f++)if(c(b[f],f)===!1)return}elseif("object"===a(b))for(einb)if(b.hasOwnProperty(e)&&c(b[e],e)===!1)return},d=function(b){varc;if(!b||"object"!==a(b))return!0;for(cinb)return!1;return!0},e=function(b,c){functiond(e){"function"===a(b[e])&&b[e](function(a){++e<f&&!a?d(e):c(a)})}vare=0,f=b.length;"function"!==a(c)&&(c=function(){}),b&&b.length||c(),d(e)},f=function(a,b){vard=0,e=a.length,f=newArray(e);c(a,function(a,c){a(function(a){if(a)returnb(a);varg=[].slice.call(arguments);g.shift(),f[c]=g,d++,d===e&&(f.unshift(null),b.apply(this,f))})})},g=function(a,b){if(b){if(Array.prototype.indexOf)returnArray.prototype.indexOf.call(b,a);for(varc=0,d=b.length;c<d;c++)if(b[c]===a)returnc}return-1},h=function(b,c){vard=[];"array"!==a(b)&&(b=[b]),"array"!==a(c)&&(c=[c]);for(vareinb)g(b[e],c)===-1&&d.push(b[e]);return!!d.length&&d},i=function(a,b){vard=[];returnc(a,function(a){g(a,b)!==-1&&d.push(a)}),d.length?d:null},j=function(a){varb,c=[];for(b=0;b<a.length;b++)c[b]=a[b];returnc},k=function(){vara=0;returnfunction(b){varc,d=(newDate).getTime().toString(32);for(c=0;c<5;c++)d+=Math.floor(65535*Math.random()).toString(32);return(b||"o_")+d+(a++).toString(32)}}(),l=function(a){returna?String.prototype.trim?String.prototype.trim.call(a):a.toString().replace(/^\s*/,"").replace(/\s*$/,""):a},m=function(a){if("string"!=typeofa)returna;varb,c={t:1099511627776,g:1073741824,m:1048576,k:1024};returna=/^([0-9\.]+)([tmgk]?)$/.exec(a.toLowerCase().replace(/[^0-9\.tmkg]/g,"")),b=a[2],a=+a[1],c.hasOwnProperty(b)&&(a*=c[b]),Math.floor(a)},n=function(b){varc=[].slice.call(arguments,1);returnb.replace(/%[a-z]/g,function(){varb=c.shift();return"undefined"!==a(b)?b:""})};return{guid:k,typeOf:a,extend:b,each:c,isEmptyObj:d,inSeries:e,inParallel:f,inArray:g,arrayDiff:h,arrayIntersect:i,toArray:j,trim:l,sprintf:n,parseSizeStr:m}}),d("moxie/core/utils/Env",["moxie/core/utils/Basic"],function(a){functionb(a,b,c){vard=0,e=0,f=0,g={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},h=function(a){returna=(""+a).replace(/[_\-+]/g,"."),a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),a.length?a.split("."):[-8]},i=function(a){returna?isNaN(a)?g[a]||-7:parseInt(a,10):0};for(a=h(a),b=h(b),e=Math.max(a.length,b.length),d=0;d<e;d++)if(a[d]!=b[d]){if(a[d]=i(a[d]),b[d]=i(b[d]),a[d]<b[d]){f=-1;break}if(a[d]>b[d]){f=1;break}}if(!c)returnf;switch(c){case">":case"gt":returnf>0;case">=":case"ge":returnf>=0;case"<=":case"le":returnf<=0;case"==":case"=":case"eq":return0===f;case"<>":case"!=":case"ne":return0!==f;case"":case"<":case"lt":returnf<0;default:returnnull}}varc=function(a){varb="",c="?",d="function",e="undefined",f="object",g="name",h="version",i={has:function(a,b){returnb.toLowerCase().indexOf(a.toLowerCase())!==-1},lowerize:function(a){returna.toLowerCase()}},j={rgx:function(){for(varb,c,g,h,i,j,k,l=0,m=argumen
break}default:returnb}},length:function(){returnb?b.byteLength:0},clear:function(){c=b=null}})}functiond(b){functionc(a,c,d){d=3===arguments.length?d:b.length-c-1,b=b.substr(0,c)+a+b.substr(d+c)}a.extend(this,{readByteAt:function(a){returnb.charCodeAt(a)},writeByteAt:function(a,b){c(String.fromCharCode(b),a,1)},SEGMENT:function(a,d,e){switch(arguments.length){case1:returnb.substr(a);case2:returnb.substr(a,d);case3:c(null!==e?e:"",a,d);break;default:returnb}},length:function(){returnb?b.length:0},clear:function(){b=null}})}returna.extend(b.prototype,{littleEndian:!1,read:function(a,b){varc,d,e;if(a+b>this.length())thrownewError("You are trying to read outside the source boundaries.");for(d=this.littleEndian?0:-8*(b-1),e=0,c=0;e<b;e++)c|=this.readByteAt(a+e)<<Math.abs(d+8*e);returnc},write:function(a,b,c){vard,e;if(a>this.length())thrownewError("You are trying to write outside the source boundaries.");for(d=this.littleEndian?0:-8*(c-1),e=0;e<c;e++)this.writeByteAt(a+e,b>>Math.abs(d+8*e)&255)},BYTE:function(a){returnthis.read(a,1)},SHORT:function(a){returnthis.read(a,2)},LONG:function(a){returnthis.read(a,4)},SLONG:function(a){varb=this.read(a,4);returnb>2147483647?b-4294967296:b},CHAR:function(a){returnString.fromCharCode(this.read(a,1))},STRING:function(a,b){returnthis.asArray("CHAR",a,b).join("")},asArray:function(a,b,c){for(vard=[],e=0;e<c;e++)d[e]=this[a](b+e);returnd}}),b}),d("moxie/runtime/html5/image/JPEGHeaders",["moxie/runtime/html5/utils/BinaryReader","moxie/core/Exceptions"],function(a,b){returnfunctionc(d){vare,f,g,h=[],i=0;if(e=newa(d),65496!==e.SHORT(0))throwe.clear(),newb.ImageError(b.ImageError.WRONG_FORMAT);for(f=2;f<=e.length();)if(g=e.SHORT(f),g>=65488&&g<=65495)f+=2;else{if(65498===g||65497===g)break;i=e.SHORT(f+2)+2,g>=65505&&g<=65519&&h.push({hex:g,name:"APP"+(15&g),start:f,length:i,segment:e.SEGMENT(f,i)}),f+=i}returne.clear(),{headers:h,restore:function(b){varc,d,e;for(e=newa(b),f=65504==e.SHORT(2)?4+e.SHORT(4):2,d=0,c=h.length;d<c;d++)e.SEGMENT(f,0,h[d].segment),f+=h[d].length;returnb=e.SEGMENT(),e.clear(),b},strip:function(b){vard,e,f,g;for(f=newc(b),e=f.headers,f.purge(),d=newa(b),g=e.length;g--;)d.SEGMENT(e[g].start,e[g].length,"");returnb=d.SEGMENT(),d.clear(),b},get:function(a){for(varb=[],c=0,d=h.length;c<d;c++)h[c].name===a.toUpperCase()&&b.push(h[c].segment);returnb},set:function(a,b){varc,d,e,f=[];for("string"==typeofb?f.push(b):f=b,c=d=0,e=h.length;c<e&&(h[c].name===a.toUpperCase()&&(h[c].segment=f[d],h[c].length=f[d].length,d++),!(d>=f.length));c++);},purge:function(){this.headers=h=[]}}}}),d("moxie/runtime/html5/image/ExifParser",["moxie/core/utils/Basic","moxie/runtime/html5/utils/BinaryReader","moxie/core/Exceptions"],function(a,c,d){functione(f){functiong(c,e){varf,g,h,i,j,m,n,o,p=this,q=[],r={},s={1:"BYTE",7:"UNDEFINED",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",9:"SLONG",10:"SRATIONAL"},t={BYTE:1,UNDEFINED:1,ASCII:1,SHORT:2,LONG:4,RATIONAL:8,SLONG:4,SRATIONAL:8};for(f=p.SHORT(c),g=0;g<f;g++)if(q=[],n=c+2+12*g,h=e[p.SHORT(n)],h!==b){if(i=s[p.SHORT(n+=2)],j=p.LONG(n+=2),m=t[i],!m)thrownewd.ImageError(d.ImageError.INVALID_META_ERR);if(n+=4,m*j>4&&(n=p.LONG(n)+l.tiffHeader),n+m*j>=this.length())thrownewd.ImageError(d.ImageError.INVALID_META_ERR);"ASCII"!==i?(q=p.asArray(i,n,j),o=1==j?q[0]:q,k.hasOwnProperty(h)&&"object"!=typeofo?r[h]=k[h][o]:r[h]=o):r[h]=a.trim(p.STRING(n,j).replace(/\0$/,""))}returnr}functionh(a,b,c){vard,e,f,g=0;if("string"==typeofb){varh=j[a.toLowerCase()];for(variinh)if(h[i]===b){b=i;break}}d=l[a.toLowerCase()+"IFD"],e=this.SHORT(d);for(vark=0;k<e;k++)if(f=d+12*k+2,this.SHORT(f)==b){g=f+8;break}if(!g)return!1;try{this.write(g,c,4)}catch(m){return!1}return!0}vari,j,k,l,m,n;if(c.call(this,f),j={tiff:{274:"Orientation",270:"ImageDescription",271:"Make",272:"Model",305:"Software",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer"},exif:{36864:"ExifVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",36867:"DateTimeOriginal",33434:"ExposureTime",33437:"FNumber",34855:"ISOSpeedRatings",