1 line
54 KiB
JavaScript
1 line
54 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68992484"],{"0c81":function(t,e,n){},1270:function(t,e,n){"use strict";n.r(e);var r=n("e12a"),i=n("aa11");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("1856");var a=n("2877"),s=Object(a["a"])(i["default"],r["a"],r["b"],!1,null,"0257f836",null);e["default"]=s.exports},"142e":function(t,e,n){"use strict";n("0c81")},1856:function(t,e,n){"use strict";n("4f08")},1940:function(t,e,n){"use strict";n.r(e);var r=n("19e1"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"19e1":function(t,e,n){var r,i;r=[e],i=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var e={name:"Slider",model:{prop:"value",event:"change"},props:{value:{type:Number,default:1}}};t["default"]=e}.apply(e,r),void 0===i||(t.exports=i)},"1a45":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"select"},[n("label",[t._v(t._s(t.label))]),n("input",{class:{border:!t.open_options},attrs:{type:"text",readonly:""},domProps:{value:t.input_value},on:{click:t.openOptions,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.openOptions.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.openOptions.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.openOptions.apply(null,arguments)}]}}),n("div",{staticClass:"line",class:{spread:t.open_options}}),n("i",{staticClass:"el-icon-caret-bottom icon"}),t.open_options?n("div",{staticClass:"options-table",style:"top: "+t.top+"rem;"},t._l(t.options,(function(e,r){return n("div",{key:r,staticClass:"options",on:{click:function(n){return t.choseContent(e.value)}}},[t._v(t._s(e.text))])})),0):t._e(),t.open_options?n("div",{staticClass:"mask",on:{click:t.closeTable}}):t._e()])},i=[]},"1d5a":function(t,e,n){"use strict";n.r(e);var r=n("b0f2"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"3cde":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"footerH"})},i=[]},"42de":function(t,e,n){"use strict";n.r(e);var r=n("1a45"),i=n("9cb8");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("6d79");var a=n("2877"),s=Object(a["a"])(i["default"],r["a"],r["b"],!1,null,"21e04b85",null);e["default"]=s.exports},"4f08":function(t,e,n){},"621c":function(t,e,n){},"65ab":function(t,e,n){},"69d1":function(t,e,n){"use strict";n.r(e);var r=n("3cde"),i=n("cba8");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("dac9");var a=n("2877"),s=Object(a["a"])(i["default"],r["a"],r["b"],!1,null,"697ac4f5",null);e["default"]=s.exports},"6ca8":function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){n(7),n(8),t.exports=n(9)},function(t,e,n){(function(e){(function(n){var r="function"===typeof e&&e||function(t){setTimeout(t,1)};function i(t,e){return function(){t.apply(e,arguments)}}var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],d(t,i(c,this),i(u,this))}function s(t){var e=this;null!==this._state?r((function(){var n=e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void t.reject(i)}t.resolve(r)}else(e._state?t.resolve:t.reject)(e._value)})):this._deferreds.push(t)}function c(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var e=t.then;if("function"===typeof e)return void d(i(e,t),i(c,this),i(u,this))}this._state=!0,this._value=t,l.call(this)}catch(n){u.call(this,n)}}function u(t){this._state=!1,this._value=t,l.call(this)}function l(){for(var t=0,e=this._deferreds.length;t<e;t++)s.call(this,this._deferreds[t]);this._deferreds=null}function f(t,e,n,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=r}function d(t,e,n){var r=!1;try{t((function(t){r||(r=!0,e(t))}),(function(t){r||(r=!0,n(t))}))}catch(i){if(r)return;r=!0,n(i)}}a.prototype["catch"]=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=this;return new a((function(r,i){s.call(n,new f(t,e,r,i))}))},a.all=function(){var t=Array.prototype.slice.call(1===arguments.length&&o(arguments[0])?arguments[0]:arguments);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(t){i(o,t)}),n)}t[o]=a,0===--r&&e(t)}catch(c){n(c)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},a.resolve=function(t){return t&&"object"===typeof t&&t.constructor===a?t:new a((function(e){e(t)}))},a.reject=function(t){return new a((function(e,n){n(t)}))},a.race=function(t){return new a((function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)}))},a._setImmediateFn=function(t){r=t},a.prototype.always=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(e,n(2).setImmediate)},function(t,e,n){(function(t){var r="undefined"!==typeof t&&t||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(3),e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(e,function(){return this}())},function(t,e,n){(function(t,e){(function(t,n){"use strict";if(!t.setImmediate){var r,i=1,o={},a=!1,s=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?h():p()?g():t.MessageChannel?v():s&&"onreadystatechange"in s.createElement("script")?m():w(),c.setImmediate=u,c.clearImmediate=l}function u(t){"function"!==typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return o[i]=a,r(i),i++}function l(t){delete o[t]}function f(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r);break}}function d(t){if(a)setTimeout(d,0,t);else{var e=o[t];if(e){a=!0;try{f(e)}finally{l(t),a=!1}}}}function h(){r=function(t){e.nextTick((function(){d(t)}))}}function p(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function g(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"===typeof n.data&&0===n.data.indexOf(e)&&d(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),r=function(n){t.postMessage(e+n,"*")}}function v(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;d(e)},r=function(e){t.port2.postMessage(e)}}function m(){var t=s.documentElement;r=function(e){var n=s.createElement("script");n.onreadystatechange=function(){d(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function w(){r=function(t){setTimeout(d,0,t)}}})("undefined"===typeof self?"undefined"===typeof t?this:t:self)}).call(e,function(){return this}(),n(4))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function c(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}})();var u,l=[],f=!1,d=-1;function h(){f&&u&&(f=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!f){var t=s(h);f=!0;var e=l.length;while(e){u=l,l=[];while(++d<e)u&&u[d].run();d=-1,e=l.length}u=null,f=!1,c(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new g(t,e)),1!==l.length||f||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e){var n=function(){try{return new Blob,!0}catch(t){return!1}}()?window.Blob:function(t,e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MSBlobBuilder||window.MozBlobBuilder);return t.forEach((function(t){n.append(t)})),n.getBlob(e?e.type:void 0)};function r(){var t=~navigator.userAgent.indexOf("Android")&&~navigator.vendor.indexOf("Google")&&!~navigator.userAgent.indexOf("Chrome");return t&&navigator.userAgent.match(/AppleWebKit\/(\d+)/).pop()<=534||/MQQBrowser/g.test(navigator.userAgent)}var i=function(){var t=0;function e(){var e=this,r=[],i=Array(21).join("-")+(+new Date*(1e16*Math.random())).toString(36),o=XMLHttpRequest.prototype.send;this.getParts=function(){return r.toString()},this.append=function(t,e,n){r.push("--"+i+'\r\nContent-Disposition: form-data; name="'+t+'"'),e instanceof Blob?(r.push('; filename="'+(n||"blob")+'"\r\nContent-Type: '+e.type+"\r\n\r\n"),r.push(e)):r.push("\r\n\r\n"+e),r.push("\r\n")},t++,XMLHttpRequest.prototype.send=function(a){var s,c,u=this;a===e?(r.push("--"+i+"--\r\n"),c=new n(r),s=new FileReader,s.onload=function(){o.call(u,s.result)},s.onerror=function(t){throw t},s.readAsArrayBuffer(c),this.setRequestHeader("Content-Type","multipart/form-data; boundary="+i),t--,0==t&&(XMLHttpRequest.prototype.send=o)):o.call(this,a)}}return e.prototype=Object.create(FormData.prototype),e}();t.exports={Blob:n,FormData:r()?i:FormData}},function(t,e,n){var r,i;(function(){var n=!1,o=function(t){return t instanceof o?t:this instanceof o?void(this.EXIFwrapped=t):new o(t)};"undefined"!==typeof t&&t.exports&&(e=t.exports=o),e.EXIF=o;var a=o.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},s=o.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},c=o.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},u=o.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function l(t){return!!t.exifdata}function f(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(t),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;a<r;a++)o[a]=n.charCodeAt(a);return i}function d(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},n.send()}function h(t,e){function r(n){var r=p(n),i=g(n);t.exifdata=r||{},t.iptcdata=i||{},e&&e.call(t)}if(t.src)if(/^data\:/i.test(t.src)){var i=f(t.src);r(i)}else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){r(t.target.result)},d(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var a=new XMLHttpRequest;a.onload=function(){200==this.status||0===this.status?r(a.response):e(new Error("Could not load image")),a=null},a.open("GET",t.src,!0),a.responseType="arraybuffer",a.send(null)}else if(window.FileReader&&(t instanceof window.Blob||t instanceof window.File)){o=new FileReader;o.onload=function(t){n&&console.log("Got file of length "+t.target.result.byteLength),r(t.target.result)},o.readAsArrayBuffer(t)}}function p(t){var e=new DataView(t);if(n&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return n&&console.log("Not a valid JPEG"),!1;var r,i=2,o=t.byteLength;while(i<o){if(255!=e.getUint8(i))return n&&console.log("Not a valid marker at offset "+i+", found: "+e.getUint8(i)),!1;if(r=e.getUint8(i+1),n&&console.log(r),225==r)return n&&console.log("Found 0xFFE1 marker"),_(e,i+4,e.getUint16(i+2)-2);i+=2+e.getUint16(i+2)}}function g(t){var e=new DataView(t);if(n&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return n&&console.log("Not a valid JPEG"),!1;var r=2,i=t.byteLength,o=function(t,e){return 56===t.getUint8(e)&&66===t.getUint8(e+1)&&73===t.getUint8(e+2)&&77===t.getUint8(e+3)&&4===t.getUint8(e+4)&&4===t.getUint8(e+5)};while(r<i){if(o(e,r)){var a=e.getUint8(r+7);a%2!==0&&(a+=1),0===a&&(a=4);var s=r+8+a,c=e.getUint16(r+6+a);return m(t,s,c)}r++}}var v={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function m(t,e,n){var r,i,o,a,s=new DataView(t),c={},u=e;while(u<e+n)28===s.getUint8(u)&&2===s.getUint8(u+1)&&(a=s.getUint8(u+2),a in v&&(o=s.getInt16(u+3),o+5,i=v[a],r=b(s,u+5,o),c.hasOwnProperty(i)?c[i]instanceof Array?c[i].push(r):c[i]=[c[i],r]:c[i]=r)),u++;return c}function w(t,e,r,i,o){var a,s,c,u=t.getUint16(r,!o),l={};for(c=0;c<u;c++)a=r+12*c+2,s=i[t.getUint16(a,!o)],!s&&n&&console.log("Unknown tag: "+t.getUint16(a,!o)),l[s]=y(t,a,e,r,o);return l}function y(t,e,n,r,i){var o,a,s,c,u,l,f=t.getUint16(e+2,!i),d=t.getUint32(e+4,!i),h=t.getUint32(e+8,!i)+n;switch(f){case 1:case 7:if(1==d)return t.getUint8(e+8,!i);for(o=d>4?h:e+8,a=[],c=0;c<d;c++)a[c]=t.getUint8(o+c);return a;case 2:return o=d>4?h:e+8,b(t,o,d-1);case 3:if(1==d)return t.getUint16(e+8,!i);for(o=d>2?h:e+8,a=[],c=0;c<d;c++)a[c]=t.getUint16(o+2*c,!i);return a;case 4:if(1==d)return t.getUint32(e+8,!i);for(a=[],c=0;c<d;c++)a[c]=t.getUint32(h+4*c,!i);return a;case 5:if(1==d)return u=t.getUint32(h,!i),l=t.getUint32(h+4,!i),s=new Number(u/l),s.numerator=u,s.denominator=l,s;for(a=[],c=0;c<d;c++)u=t.getUint32(h+8*c,!i),l=t.getUint32(h+4+8*c,!i),a[c]=new Number(u/l),a[c].numerator=u,a[c].denominator=l;return a;case 9:if(1==d)return t.getInt32(e+8,!i);for(a=[],c=0;c<d;c++)a[c]=t.getInt32(h+4*c,!i);return a;case 10:if(1==d)return t.getInt32(h,!i)/t.getInt32(h+4,!i);for(a=[],c=0;c<d;c++)a[c]=t.getInt32(h+8*c,!i)/t.getInt32(h+4+8*c,!i);return a}}function b(t,e,n){var r,i="";for(r=e;r<e+n;r++)i+=String.fromCharCode(t.getUint8(r));return i}function _(t,e){if("Exif"!=b(t,e,4))return n&&console.log("Not valid EXIF data! "+b(t,e,4)),!1;var r,i,o,l,f,d=e+6;if(18761==t.getUint16(d))r=!1;else{if(19789!=t.getUint16(d))return n&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;r=!0}if(42!=t.getUint16(d+2,!r))return n&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var h=t.getUint32(d+4,!r);if(h<8)return n&&console.log("Not valid TIFF data! (First offset less than 8)",t.getUint32(d+4,!r)),!1;if(i=w(t,d,d+h,s,r),i.ExifIFDPointer)for(o in l=w(t,d,d+i.ExifIFDPointer,a,r),l){switch(o){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":l[o]=u[o][l[o]];break;case"ExifVersion":case"FlashpixVersion":l[o]=String.fromCharCode(l[o][0],l[o][1],l[o][2],l[o][3]);break;case"ComponentsConfiguration":l[o]=u.Components[l[o][0]]+u.Components[l[o][1]]+u.Components[l[o][2]]+u.Components[l[o][3]];break}i[o]=l[o]}if(i.GPSInfoIFDPointer)for(o in f=w(t,d,d+i.GPSInfoIFDPointer,c,r),f){switch(o){case"GPSVersionID":f[o]=f[o][0]+"."+f[o][1]+"."+f[o][2]+"."+f[o][3];break}i[o]=f[o]}return i}o.getData=function(t,e){return!((t instanceof Image||t instanceof HTMLImageElement)&&!t.complete)&&(l(t)?e&&e.call(t):h(t,e),!0)},o.getTag=function(t,e){if(l(t))return t.exifdata[e]},o.getAllTags=function(t){if(!l(t))return{};var e,n=t.exifdata,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r},o.pretty=function(t){if(!l(t))return"";var e,n=t.exifdata,r="";for(e in n)n.hasOwnProperty(e)&&("object"==typeof n[e]?n[e]instanceof Number?r+=e+" : "+n[e]+" ["+n[e].numerator+"/"+n[e].denominator+"]\r\n":r+=e+" : ["+n[e].length+" values]\r\n":r+=e+" : "+n[e]+"\r\n");return r},o.readFromBinaryFile=function(t){return p(t)},r=[],i=function(){return o}.apply(e,r),void 0===i||(t.exports=i)}).call(this)},function(t,e,n){var r,i;(function(){function n(t){var e=t.naturalWidth,n=t.naturalHeight;if(e*n>1048576){var r=document.createElement("canvas");r.width=r.height=1;var i=r.getContext("2d");return i.drawImage(t,1-e,0),0===i.getImageData(0,0,1,1).data[3]}return!1}function o(t,e,n){var r=document.createElement("canvas");r.width=1,r.height=n;var i=r.getContext("2d");i.drawImage(t,0,0);var o=i.getImageData(0,0,1,n).data,a=0,s=n,c=n;while(c>a){var u=o[4*(c-1)+3];0===u?s=c:a=c,c=s+a>>1}var l=c/n;return 0===l?1:l}function a(t,e,n){var r=document.createElement("canvas");return s(t,r,e,n),r.toDataURL("image/jpeg",e.quality||.8)}function s(t,e,r,i){var a=t.naturalWidth,s=t.naturalHeight,u=r.width,l=r.height,f=e.getContext("2d");f.save(),c(e,f,u,l,r.orientation);var d=n(t);d&&(a/=2,s/=2);var h=1024,p=document.createElement("canvas");p.width=p.height=h;var g=p.getContext("2d"),v=i?o(t,a,s):1,m=Math.ceil(h*u/a),w=Math.ceil(h*l/s/v),y=0,b=0;while(y<s){var _=0,S=0;while(_<a)g.clearRect(0,0,h,h),g.drawImage(t,-_,-y),f.drawImage(p,0,0,h,h,S,b,m,w),_+=h,S+=m;y+=h,b+=w}f.restore(),p=g=null}function c(t,e,n,r,i){switch(i){case 5:case 6:case 7:case 8:t.width=r,t.height=n;break;default:t.width=n,t.height=r}switch(i){case 2:e.translate(n,0),e.scale(-1,1);break;case 3:e.translate(n,r),e.rotate(Math.PI);break;case 4:e.translate(0,r),e.scale(1,-1);break;case 5:e.rotate(.5*Math.PI),e.scale(1,-1);break;case 6:e.rotate(.5*Math.PI),e.translate(0,-r);break;case 7:e.rotate(.5*Math.PI),e.translate(n,-r),e.scale(-1,1);break;case 8:e.rotate(-.5*Math.PI),e.translate(-n,0);break;default:break}}function u(t){if(window.Blob&&t instanceof Blob){var e=new Image,n=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;if(!n)throw Error("No createObjectURL function found to create blob url");e.src=n.createObjectURL(t),this.blob=t,t=e}if(!t.naturalWidth&&!t.naturalHeight){var r=this;t.onload=function(){var t=r.imageLoadListeners;if(t){r.imageLoadListeners=null;for(var e=0,n=t.length;e<n;e++)t[e]()}},this.imageLoadListeners=[]}this.srcImage=t}u.prototype.render=function(t,e,n){if(this.imageLoadListeners){var r=this;this.imageLoadListeners.push((function(){r.render(t,e,n)}))}else{e=e||{};var i=this.srcImage,o=i.src,c=o.length,u=i.naturalWidth,l=i.naturalHeight,f=e.width,d=e.height,h=e.maxWidth,p=e.maxHeight,g=this.blob&&"image/jpeg"===this.blob.type||0===o.indexOf("data:image/jpeg")||o.indexOf(".jpg")===c-4||o.indexOf(".jpeg")===c-5;f&&!d?d=l*f/u<<0:d&&!f?f=u*d/l<<0:(f=u,d=l),h&&f>h&&(f=h,d=l*f/u<<0),p&&d>p&&(d=p,f=u*d/l<<0);var v={width:f,height:d};for(var m in e)v[m]=e[m];var w=t.tagName.toLowerCase();"img"===w?t.src=a(this.srcImage,v,g):"canvas"===w&&s(this.srcImage,t,v,g),"function"===typeof this.onrender&&this.onrender(t),n&&n()}},r=[],i=function(){return u}.apply(e,r),void 0===i||(t.exports=i)})()},function(t,e){function n(t){Math.round;var e,n,r,i,o,a=Math.floor,s=new Array(64),c=new Array(64),u=new Array(64),l=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),p=new Array(64),g=[],v=0,m=7,w=new Array(64),y=new Array(64),b=new Array(64),_=new Array(256),S=new Array(2048),x=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],O=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function D(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),s[x[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var f=a((i[o]*t+50)/100);f<1?f=1:f>255&&(f=255),c[x[o]]=f}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[h]=1/(s[x[h]]*d[p]*d[g]*8),l[h]=1/(c[x[h]]*d[p]*d[g]*8),h++}function E(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function U(){e=E(C,P),n=E(k,T),r=E(O,I),i=E(F,L)}function j(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)d[32767+r]=n,f[32767+r]=[],f[32767+r][1]=n,f[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)d[32767+i]=n,f[32767+i]=[],f[32767+i][1]=n,f[32767+i][0]=e-1+i;t<<=1,e<<=1}}function A(){for(var t=0;t<256;t++)S[t]=19595*t,S[t+256>>0]=38470*t,S[t+512>>0]=7471*t+32768,S[t+768>>0]=-11059*t,S[t+1024>>0]=-21709*t,S[t+1280>>0]=32768*t+8421375,S[t+1536>>0]=-27439*t,S[t+1792>>0]=-5329*t}function M(t){var e=t[0],n=t[1]-1;while(n>=0)e&1<<n&&(v|=1<<m),n--,m--,m<0&&(255==v?(R(255),R(0)):R(v),m=7,v=0)}function R(t){g.push(_[t])}function G(t){R(t>>8&255),R(255&t)}function B(t,e){var n,r,i,o,a,s,c,u,l,f=0;const d=8,p=64;for(l=0;l<d;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],c=t[f+6],u=t[f+7];var g=n+u,v=n-u,m=r+c,w=r-c,y=i+s,b=i-s,_=o+a,S=o-a,x=g+_,C=g-_,P=m+y,O=m-y;t[f]=x+P,t[f+4]=x-P;var I=.707106781*(O+C);t[f+2]=C+I,t[f+6]=C-I,x=S+b,P=b+w,O=w+v;var k=.382683433*(x-O),T=.5411961*x+k,F=1.306562965*O+k,L=.707106781*P,D=v+L,E=v-L;t[f+5]=E+T,t[f+3]=E-T,t[f+1]=D+F,t[f+7]=D-F,f+=8}for(f=0,l=0;l<d;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],c=t[f+48],u=t[f+56];var U=n+u,j=n-u,A=r+c,M=r-c,R=i+s,G=i-s,B=o+a,N=o-a,H=U+B,W=U-B,z=A+R,$=A-R;t[f]=H+z,t[f+32]=H-z;var q=.707106781*($+W);t[f+16]=W+q,t[f+48]=W-q,H=N+G,z=G+M,$=M+j;var V=.382683433*(H-$),X=.5411961*H+V,Y=1.306562965*$+V,Q=.707106781*z,J=j+Q,K=j-Q;t[f+40]=K+X,t[f+24]=K-X,t[f+8]=J+Y,t[f+56]=J-Y,f++}var Z;for(l=0;l<p;++l)Z=t[l]*e[l],h[l]=Z>0?Z+.5|0:Z-.5|0;return h}function N(){G(65504),G(16),R(74),R(70),R(73),R(70),R(0),R(1),R(1),R(0),G(1),G(1),R(0),R(0)}function H(t,e){G(65472),G(17),R(8),G(e),G(t),R(3),R(1),R(17),R(0),R(2),R(17),R(1),R(3),R(17),R(1)}function W(){G(65499),G(132),R(0);for(var t=0;t<64;t++)R(s[t]);R(1);for(var e=0;e<64;e++)R(c[e])}function z(){G(65476),G(418),R(0);for(var t=0;t<16;t++)R(C[t+1]);for(var e=0;e<=11;e++)R(P[e]);R(16);for(var n=0;n<16;n++)R(O[n+1]);for(var r=0;r<=161;r++)R(I[r]);R(1);for(var i=0;i<16;i++)R(k[i+1]);for(var o=0;o<=11;o++)R(T[o]);R(17);for(var a=0;a<16;a++)R(F[a+1]);for(var s=0;s<=161;s++)R(L[s])}function $(){G(65498),G(12),R(3),R(1),R(0),R(2),R(17),R(3),R(17),R(0),R(63),R(0)}function q(t,e,n,r,i){var o,a=i[0],s=i[240];const c=16,u=63,l=64;for(var h=B(t,e),g=0;g<l;++g)p[x[g]]=h[g];var v=p[0]-n;n=p[0],0==v?M(r[0]):(o=32767+v,M(r[d[o]]),M(f[o]));for(var m=63;m>0&&0==p[m];m--);if(0==m)return M(a),n;var w,y=1;while(y<=m){for(var b=y;0==p[y]&&y<=m;++y);var _=y-b;if(_>=c){w=_>>4;for(var S=1;S<=w;++S)M(s);_&=15}o=32767+p[y],M(i[(_<<4)+d[o]]),M(f[o]),y++}return m!=u&&M(a),n}function V(){for(var t=String.fromCharCode,e=0;e<256;e++)_[e]=t(e)}function X(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){var e=0;e=t<50?Math.floor(5e3/t):Math.floor(200-2*t),D(e),o=t}}function Y(){var e=(new Date).getTime();t||(t=50),V(),U(),j(),A(),X(t);(new Date).getTime()}this.encode=function(t,o,a){var s=(new Date).getTime();o&&X(o),g=new Array,v=0,m=7,G(65496),N(),W(),H(t.width,t.height),z(),$();var c=0,f=0,d=0;v=0,m=7,this.encode.displayName="_encode_";var h,p,_,x,C,P,O,I,k,T=t.data,F=t.width,L=t.height,D=4*F,E=0;while(E<L){h=0;while(h<D){for(C=D*E+h,P=C,O=-1,I=0,k=0;k<64;k++)I=k>>3,O=4*(7&k),P=C+I*D+O,E+I>=L&&(P-=D*(E+1+I-L)),h+O>=D&&(P-=h+O-D+4),p=T[P++],_=T[P++],x=T[P++],w[k]=(S[p]+S[_+256>>0]+S[x+512>>0]>>16)-128,y[k]=(S[p+768>>0]+S[_+1024>>0]+S[x+1280>>0]>>16)-128,b[k]=(S[p+1280>>0]+S[_+1536>>0]+S[x+1792>>0]>>16)-128;c=q(w,u,c,e,r),f=q(y,l,f,n,i),d=q(b,l,d,n,i),h+=32}E+=8}if(m>=0){var U=[];U[1]=m+1,U[0]=(1<<m+1)-1,M(U)}if(G(65497),a){for(var j=g.length,A=new Uint8Array(j),R=0;R<j;R++)A[R]=g[R].charCodeAt();g=[];(new Date).getTime();return A}var B="data:image/jpeg;base64,"+btoa(g.join(""));g=[];(new Date).getTime();return B},Y()}t.exports=n},function(t,e,n){n.p=c("lrz")+"/",window.URL=window.URL||window.webkitURL;var r=n(1),i=n(5),o=n(6),a=function(t){var e=/OS (.*) like Mac OS X/g.exec(t),n=/Android (\d.*?);/g.exec(t)||/Android\/(\d.*?) /g.exec(t),r=e?+e.pop().replace(/-/g,"."):0;return{oldIOS:!!e&&r<8,newIOS:!!e&&r>=13,oldAndroid:!!n&&+n.pop().substr(0,3)<4.5,iOS:/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(t),android:/Android/g.test(t),mQQBrowser:/MQQBrowser/g.test(t)}}(navigator.userAgent);function s(t,e){var n=this;if(!t)throw new Error("没有收到图片,可能的解决方案:https://github.com/think2011/localResizeIMG/issues/7");for(var r in e=e||{},n.defaults={width:null,height:null,fieldName:"file",ingnoreOrientation:!a.iOS||a.newIOS,quality:.7},n.file=t,e)e.hasOwnProperty(r)&&(n.defaults[r]=e[r]);return this.init()}function c(t){var e=null;return e=t?[].filter.call(document.scripts,(function(e){return-1!==e.src.indexOf(t)}))[0]:document.scripts[document.scripts.length-1],e?e.src.substr(0,e.src.lastIndexOf("/")):null}function u(t){var e;e=t.split(",")[0].indexOf("base64")>=0?atob(t.split(",")[1]):unescape(t.split(",")[1]);for(var n=t.split(",")[0].split(":")[1].split(";")[0],r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return new i.Blob([r.buffer],{type:n})}s.prototype.init=function(){var t=this,e=t.file,n="string"===typeof e,o=/^data:/.test(e),a=new Image,s=document.createElement("canvas"),c=n?e:URL.createObjectURL(e);if(t.img=a,t.blob=c,t.canvas=s,t.fileName=n?o?"base64.jpg":e.split("/").pop():e.name,!document.createElement("canvas").getContext)throw new Error("浏览器不支持canvas");return new r((function(n,r){a.onerror=function(){var t=new Error("加载图片文件失败");throw r(t),t},a.onload=function(){t._getBase64().then((function(t){if(t.length<10){var e=new Error("生成base64失败");throw r(e),e}return t})).then((function(r){var o=null;for(var a in"object"===typeof t.file&&r.length>t.file.size?(o=new FormData,e=t.file):(o=new i.FormData,e=u(r)),o.append(t.defaults.fieldName,e,t.fileName.replace(/\..+/g,".jpg")),n({formData:o,fileLen:+e.size,base64:r,base64Len:r.length,origin:t.file,file:e}),t)t.hasOwnProperty(a)&&(t[a]=null);URL.revokeObjectURL(t.blob)}))},!o&&(a.crossOrigin="*"),a.src=c}))},s.prototype._getBase64=function(){var t=this,e=t.img,n=t.file,i=t.canvas;return new r((function(r){try{o.getData("object"===typeof n?n:e,(function(){t.orientation=t.defaults.ingnoreOrientation?0:o.getTag(this,"Orientation"),t.resize=t._getResize(),t.ctx=i.getContext("2d"),i.width=t.resize.width,i.height=t.resize.height,t.ctx.fillStyle="#fff",t.ctx.fillRect(0,0,i.width,i.height),a.oldIOS?t._createBase64ForOldIOS().then(r):t._createBase64().then(r)}))}catch(s){throw new Error(s)}}))},s.prototype._createBase64ForOldIOS=function(){var t=this,e=t.img,i=t.canvas,o=t.defaults,a=t.orientation;return new r((function(t){!function(){var r=[n(7)];(function(n){var r=new n(e);"5678".indexOf(a)>-1?r.render(i,{width:i.height,height:i.width,orientation:a}):r.render(i,{width:i.width,height:i.height,orientation:a}),t(i.toDataURL("image/jpeg",o.quality))}).apply(null,r)}()}))},s.prototype._createBase64=function(){var t=this,e=t.resize,i=t.img,o=t.canvas,s=t.ctx,c=t.defaults,u=t.orientation;switch(u){case 3:s.rotate(180*Math.PI/180),s.drawImage(i,-e.width,-e.height,e.width,e.height);break;case 6:s.rotate(90*Math.PI/180),s.drawImage(i,0,-e.width,e.height,e.width);break;case 8:s.rotate(270*Math.PI/180),s.drawImage(i,-e.height,0,e.height,e.width);break;case 2:s.translate(e.width,0),s.scale(-1,1),s.drawImage(i,0,0,e.width,e.height);break;case 4:s.translate(e.width,0),s.scale(-1,1),s.rotate(180*Math.PI/180),s.drawImage(i,-e.width,-e.height,e.width,e.height);break;case 5:s.translate(e.width,0),s.scale(-1,1),s.rotate(90*Math.PI/180),s.drawImage(i,0,-e.width,e.height,e.width);break;case 7:s.translate(e.width,0),s.scale(-1,1),s.rotate(270*Math.PI/180),s.drawImage(i,-e.height,0,e.height,e.width);break;default:s.drawImage(i,0,0,e.width,e.height)}return new r((function(t){a.oldAndroid||a.mQQBrowser||!navigator.userAgent?function(){var e=[n(8)];(function(e){var n=new e,r=s.getImageData(0,0,o.width,o.height);t(n.encode(r,100*c.quality))}).apply(null,e)}():t(o.toDataURL("image/jpeg",c.quality))}))},s.prototype._getResize=function(){var t=this,e=t.img,n=t.defaults,r=n.width,i=n.height,o=t.orientation,a={width:e.width,height:e.height};if("5678".indexOf(o)>-1&&(a.width=e.height,a.height=e.width),a.width<r||a.height<i)return a;var s=a.width/a.height;r&&i?s>=r/i?a.width>r&&(a.width=r,a.height=Math.ceil(r/s)):a.height>i&&(a.height=i,a.width=Math.ceil(i*s)):r?r<a.width&&(a.width=r,a.height=Math.ceil(r/s)):i&&i<a.height&&(a.width=Math.ceil(i*s),a.height=i);while(a.width>=3264||a.height>=2448)a.width*=.8,a.height*=.8;return a},window.lrz=function(t,e){return new s(t,e)},window.lrz.version="__packageJSON.version__",t.exports=window.lrz}])}))},"6d79":function(t,e,n){"use strict";n("621c")},"706f":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"personal"},[n("header",[n("div",{staticClass:"w"},[n("div",{staticClass:"icon-box"},[n("i",{staticClass:"el-icon-back title-icon",on:{click:function(e){return t.back()}}})]),n("div",{staticClass:"title-box"},[t._v("个性化")])])]),n("div",{staticStyle:{height:"1.2rem"}}),n("div",{staticClass:"main"},[n("div",{staticClass:"topic"},[t._v("课表设置")]),n("div",{staticClass:"option"},[n("div",{staticClass:"label"},[t._v("隐藏周末")]),n("div",{staticClass:"handle-space"},[n("el-switch",{attrs:{"active-color":"#39b54a"},on:{change:function(e){return t.modifyConfig()}},model:{value:t.hide_weekend,callback:function(e){t.hide_weekend=e},expression:"hide_weekend"}})],1)]),n("div",{staticClass:"option"},[n("div",{staticClass:"label"},[t._v("开启背景图")]),n("div",{staticClass:"handle-space"},[n("el-switch",{attrs:{"active-color":"#39b54a"},on:{change:function(e){return t.modifyConfig()}},model:{value:t.user_bg_switch,callback:function(e){t.user_bg_switch=e},expression:"user_bg_switch"}})],1)]),n("div",{staticClass:"option"},[n("div",{staticClass:"label"},[t._v("深色背景适配")]),n("div",{staticClass:"handle-space"},[n("el-switch",{attrs:{"active-color":"#39b54a"},on:{change:function(e){return t.modifyConfig()}},model:{value:t.user_bg_is_dark,callback:function(e){t.user_bg_is_dark=e},expression:"user_bg_is_dark"}})],1)]),n("div",{staticClass:"option"},[n("div",{staticClass:"label"},[t._v("课表透明度")]),n("div",{staticClass:"handle-space"},[n("Slider",{attrs:{value:t.settings.lesson_opacity},on:{change:t.modifyOpacity}})],1)]),n("div",{staticClass:"option"},[n("Select",{attrs:{label:"时间显示类型",options:t.bar_show_style_list,value:t.settings.bar_show_style},on:{change:t.modifyBarShowStyle}})],1),n("div",{staticClass:"option"},[n("Input",{attrs:{label:"图片网络地址",value:t.settings.user_bg_url},on:{change:t.modifyUserBgUrl}})],1),n("div",{staticClass:"topic"},[t._v("应用设置")]),n("div",{staticClass:"option"},[n("div",{staticClass:"label"},[t._v("关闭TAB文字")]),n("div",{staticClass:"handle-space"},[n("el-switch",{attrs:{"active-color":"#39b54a"},on:{change:function(e){return t.modifyConfig()}},model:{value:t.hide_tab_text,callback:function(e){t.hide_tab_text=e},expression:"hide_tab_text"}})],1)])]),n("FooterSpace")],1)},i=[]},"89fb":function(t,e,n){"use strict";n.r(e);var r=n("9bda"),i=n("1940");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("142e");var a=n("2877"),s=Object(a["a"])(i["default"],r["a"],r["b"],!1,null,"140f9dec",null);e["default"]=s.exports},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(D){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=P(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(D){return{type:"throw",arg:D}}}t.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",g={};function v(){}function m(){}function w(){}var y={};c(y,o,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(F([])));_&&_!==n&&r.call(_,o)&&(y=_);var S=w.prototype=v.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=l(t[i],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;function o(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function P(t,e,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return L()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function F(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){while(++i<t.length)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return m.prototype=w,c(S,"constructor",w),c(w,"constructor",m),m.displayName=c(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},x(C.prototype),c(C.prototype,a,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(S),c(S,s,"Generator"),c(S,o,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=F,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"9bda":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"slider"},[n("input",{attrs:{type:"range",max:"1",min:"0",step:"0.1"},domProps:{value:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}})])},i=[]},"9cb8":function(t,e,n){"use strict";n.r(e);var r=n("e821"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},a232:function(t,e,n){"use strict";n("65ab")},a34a:function(t,e,n){t.exports=n("96cf")},aa11:function(t,e,n){"use strict";n.r(e);var r=n("ccc2"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},b0f2:function(t,e,n){var r,i;r=[e,n("a34a"),n("c973"),n("9523"),n("69d1"),n("89fb"),n("42de"),n("1270"),n("2f62"),n("29a1"),n("5c96"),n("b279"),n("6ca8")],i=function(t,e,r,i,o,a,s,c,u,l,f,d,h){"use strict";var p=n("4ea4");function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){(0,i["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0,e=p(e),r=p(r),i=p(i),o=p(o),a=p(a),s=p(s),c=p(c),h=p(h);var m={name:"personal",data:function(){return{hide_weekend:!1,user_bg_switch:!1,user_bg_is_dark:!1,hide_tab_text:!1,bar_show_style:0,bar_show_style_list:[{value:0,text:"正常"},{value:1,text:"衬底"},{value:2,text:"阴影"}],dark_mode:!1,lrz_file:null}},computed:v({},(0,u.mapState)(["user_info","settings"])),methods:v(v({},(0,u.mapActions)(["setUserInfo","setCurrentPage","setSettings"])),{},{init:function(){if(l.replaceState.call(this),this.setCurrentPage(["None",this]),0!=Object.keys(this.user_info).length){var t=(new Date).getTime();if(t-this.user_info.login_time<6048e5&&this.user_info.login_time>d.interceptTime){var e=this.user_info;return e.login_time=(new Date).getTime(),this.setUserInfo([e,this]),console.log("用户登录时间刷新完成"),void this.initData()}}localStorage.clear(),l.replaceState.call(this),console.log("未登录拦截"),this.$router.replace("/login")},initData:function(){this.hide_weekend=this.settings.hide_weekend,this.user_bg_switch=this.settings.user_bg_switch,this.user_bg_is_dark=this.settings.user_bg_is_dark,this.bar_show_style=this.settings.bar_show_style,this.hide_tab_text=this.settings.hide_tab_text},back:function(){this.$router.go(-1)},modifyConfig:function(){var t=v(v({},this.settings),{},{hide_weekend:this.hide_weekend,user_bg_switch:this.user_bg_switch,user_bg_is_dark:this.user_bg_is_dark,hide_tab_text:this.hide_tab_text});this.setSettings([t,this]),console.log("设置信息写入完成"),this.$snakebar("个性化设置成功")},modifyOpacity:function(t){var e=v(v({},this.settings),{},{lesson_opacity:Number(t)});this.setSettings([e,this]),console.log("设置信息写入完成"),this.$snakebar("个性化设置成功")},modifyBarShowStyle:function(t){var e=v(v({},this.settings),{},{bar_show_style:Number(t)});this.setSettings([e,this]),console.log("设置信息写入完成"),this.$snakebar("个性化设置成功")},modifyUserBgUrl:function(t){var e=v(v({},this.settings),{},{user_bg_url:t});this.setSettings([e,this]),console.log("设置信息写入完成"),this.$snakebar("个性化设置成功")},clickFile:function(){document.getElementById("file").click()},processFile:function(){var t=(0,r["default"])(e["default"].mark((function t(n){var r,i;return e["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=n.target.files[0],r){t.next=3;break}return t.abrupt("return");case 3:return i=r.name,console.log("文件压缩开始"),t.next=7,(0,h["default"])(r);case 7:r=t.sent,r=r.file,r=new File([r],i),this.lrz_file=r,console.log("文件压缩完成",r);case 12:case"end":return t.stop()}}),t,this)})));function n(e){return t.apply(this,arguments)}return n}()}),created:function(){this.init()},components:{FooterSpace:o["default"],Slider:a["default"],Select:s["default"],Input:c["default"]},watch:{}};t["default"]=m}.apply(e,r),void 0===i||(t.exports=i)},b8ce:function(t,e,n){"use strict";n.r(e);var r=n("706f"),i=n("1d5a");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("a232");var a=n("2877"),s=Object(a["a"])(i["default"],r["a"],r["b"],!1,null,"1158adea",null);e["default"]=s.exports},c973:function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}t.exports=r,t.exports["default"]=t.exports,t.exports.__esModule=!0},cba8:function(t,e,n){"use strict";n.r(e);var r=n("f014"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},ccc2:function(t,e,n){var r,i;r=[e],i=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var e={name:"Input",data:function(){return{input_focus:!1}},model:{prop:"value",event:"change"},props:{value:{type:String,default:""},label:{type:String,default:"标题"}}};t["default"]=e}.apply(e,r),void 0===i||(t.exports=i)},dac9:function(t,e,n){"use strict";n("f8ed")},e12a:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input"},[n("label",{class:{placeholder:!t.input_focus&&!t.value},attrs:{for:"input"}},[t._v(t._s(t.label))]),n("input",{attrs:{type:"text",id:"input"},domProps:{value:t.value},on:{change:function(e){return t.$emit("change",e.target.value)},focus:function(e){t.input_focus=!0},blur:function(e){t.input_focus=!1}}}),n("div",{staticClass:"line"})])},i=[]},e821:function(t,e,n){var r,i;r=[e],i=function(t){"use strict";function e(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==r["return"]||r["return"]()}finally{if(c)throw a}}}}function n(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i={name:"Select",data:function(){return{open_options:!1,top:.2}},model:{prop:"value",event:"change"},props:{options:{type:Array,default:[]},value:{type:Number,default:""},label:{type:String,default:"标题"}},computed:{input_value:function(){var t,n=e(this.options);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.value==this.value)return r.text}}catch(i){n.e(i)}finally{n.f()}}},methods:{openOptions:function(){var t,n=-1,r=e(this.options);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(n++,i.value==this.value)break}}catch(o){r.e(o)}finally{r.f()}this.top=.2-1.3*n,this.open_options=!0},choseContent:function(t){this.open_options=!1,this.$emit("change",t)},closeTable:function(){this.open_options=!1}}};t["default"]=i}.apply(e,r),void 0===i||(t.exports=i)},f014:function(t,e,n){var r,i;r=[e],i=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var e={name:"FooterSpace",data:function(){return{}}};t["default"]=e}.apply(e,r),void 0===i||(t.exports=i)},f8ed:function(t,e,n){}}]); |