From 5570d80b7d2f1f0c9c8114744d105bd079d86603 Mon Sep 17 00:00:00 2001 From: zhiweio Date: Mon, 25 Nov 2024 17:43:31 +0800 Subject: [PATCH] Updates --- assets/{index-DqOhKmHW.js => index-D6u-SOiu.js} | 2 +- index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename assets/{index-DqOhKmHW.js => index-D6u-SOiu.js} (98%) diff --git a/assets/index-DqOhKmHW.js b/assets/index-D6u-SOiu.js similarity index 98% rename from assets/index-DqOhKmHW.js rename to assets/index-D6u-SOiu.js index 25ce289..dac9dc1 100644 --- a/assets/index-DqOhKmHW.js +++ b/assets/index-D6u-SOiu.js @@ -322,7 +322,7 @@ var z2;function Pe(){return z2.apply(null,arguments)}function CA(e){z2=e}functio [`+i+"] ";for(a in arguments[0])xt(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}B2(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var eS={};function V2(e,t){Pe.deprecationHandler!=null&&Pe.deprecationHandler(e,t),eS[e]||(B2(t),eS[e]=!0)}Pe.suppressDeprecationWarnings=!1;Pe.deprecationHandler=null;function Mo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function EA(e){var t,n;for(n in e)xt(e,n)&&(t=e[n],Mo(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ag(e,t){var n=Oi({},e),r;for(r in t)xt(t,r)&&(ua(e[r])&&ua(t[r])?(n[r]={},Oi(n[r],e[r]),Oi(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)xt(e,r)&&!xt(t,r)&&ua(e[r])&&(n[r]=Oi({},n[r]));return n}function n0(e){e!=null&&this.set(e)}var lg;Object.keys?lg=Object.keys:lg=function(e){var t,n=[];for(t in e)xt(e,t)&&n.push(t);return n};var $A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function OA(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Mo(r)?r.call(t,n):r}function Oo(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var r0=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ih={},cl={};function Xe(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(cl[e]=o),t&&(cl[t[0]]=function(){return Oo(o.apply(this,arguments),t[1],t[2])}),n&&(cl[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function _A(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function RA(e){var t=e.match(r0),n,r;for(n=0,r=t.length;n=0&&mu.test(e);)e=e.replace(mu,r),mu.lastIndex=0,n-=1;return e}var PA={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function MA(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(r0).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var IA="Invalid date";function TA(){return this._invalidDate}var NA="%d",FA=/\d{1,2}/;function DA(e){return this._ordinal.replace("%d",e)}var kA={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function LA(e,t,n,r){var o=this._relativeTime[n];return Mo(o)?o(e,t,n,r):o.replace(/%d/i,e)}function jA(e,t){var n=this._relativeTime[e>0?"future":"past"];return Mo(n)?n(t):n.replace(/%s/i,t)}var tS={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Gr(e){return typeof e=="string"?tS[e]||tS[e.toLowerCase()]:void 0}function o0(e){var t={},n,r;for(r in e)xt(e,r)&&(n=Gr(r),n&&(t[n]=e[r]));return t}var AA={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function zA(e){var t=[],n;for(n in e)xt(e,n)&&t.push({unit:n,priority:AA[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var U2=/\d/,Er=/\d\d/,Y2=/\d{3}/,i0=/\d{4}/,_f=/[+-]?\d{6}/,Bt=/\d\d?/,G2=/\d\d\d\d?/,q2=/\d\d\d\d\d\d?/,Rf=/\d{1,3}/,a0=/\d{1,4}/,Pf=/[+-]?\d{1,6}/,Dl=/\d+/,Mf=/[+-]?\d+/,HA=/Z|[+-]\d\d:?\d\d/gi,If=/Z|[+-]\d\d(?::?\d\d)?/gi,BA=/[+-]?\d+(\.\d{1,3})?/,Oc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,kl=/^[1-9]\d?/,l0=/^([1-9]\d|\d)/,_d;_d={};function Ae(e,t,n){_d[e]=Mo(t)?t:function(r,o){return r&&n?n:t}}function VA(e,t){return xt(_d,e)?_d[e](t._strict,t._locale):new RegExp(WA(e))}function WA(e){return Uo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Uo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ht(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fr(t)),n}var sg={};function Nt(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Jo(t)&&(r=function(i,a){a[t]=ht(i)}),o=e.length,n=0;n68?1900:2e3)};var K2=Ll("FullYear",!0);function qA(){return Tf(this.year())}function Ll(e,t){return function(n){return n!=null?(X2(this,e,n),Pe.updateOffset(this,t),this):sc(this,e)}}function sc(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function X2(e,t,n){var r,o,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!Tf(i)?28:l,o?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function KA(e){return e=Gr(e),Mo(this[e])?this[e]():this}function XA(e,t){if(typeof e=="object"){e=o0(e);var n=zA(e),r,o=n.length;for(r=0;r=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function cc(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Rd(e,t,n){var r=7+t-n,o=(7+cc(e,0,r).getUTCDay()-t)%7;return-o+r-1}function n$(e,t,n,r,o){var i=(7+n-r)%7,a=Rd(e,r,o),l=1+7*(t-1)+i+a,c,u;return l<=0?(c=e-1,u=$s(c)+l):l>$s(e)?(c=e+1,u=l-$s(e)):(c=e,u=l),{year:c,dayOfYear:u}}function uc(e,t,n){var r=Rd(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+Yo(a,t,n)):o>Yo(e.year(),t,n)?(i=o-Yo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Yo(e,t,n){var r=Rd(e,t,n),o=Rd(e+1,t,n);return($s(e)-r+o)/7}Xe("w",["ww",2],"wo","week");Xe("W",["WW",2],"Wo","isoWeek");Ae("w",Bt,kl);Ae("ww",Bt,Er);Ae("W",Bt,kl);Ae("WW",Bt,Er);_c(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ht(e)});function c8(e){return uc(e,this._week.dow,this._week.doy).week}var u8={dow:0,doy:6};function d8(){return this._week.dow}function f8(){return this._week.doy}function m8(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function h8(e){var t=uc(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Xe("d",0,"do","day");Xe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Xe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Xe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Xe("e",0,0,"weekday");Xe("E",0,0,"isoWeekday");Ae("d",Bt);Ae("e",Bt);Ae("E",Bt);Ae("dd",function(e,t){return t.weekdaysMinRegex(e)});Ae("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ae("dddd",function(e,t){return t.weekdaysRegex(e)});_c(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:ot(n).invalidWeekday=e});_c(["d","e","E"],function(e,t,n,r){t[r]=ht(e)});function v8(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function g8(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function c0(e,t){return e.slice(t,7).concat(e.slice(0,t))}var p8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),r$="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),y8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),b8=Oc,S8=Oc,w8=Oc;function C8(e,t){var n=mo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?c0(n,this._week.dow):e?n[e.day()]:n}function x8(e){return e===!0?c0(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function E8(e){return e===!0?c0(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $8(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Po([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=un.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=un.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=un.call(this._weekdaysParse,a),o!==-1||(o=un.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=un.call(this._shortWeekdaysParse,a),o!==-1||(o=un.call(this._weekdaysParse,a),o!==-1)?o:(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=un.call(this._minWeekdaysParse,a),o!==-1||(o=un.call(this._weekdaysParse,a),o!==-1)?o:(o=un.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function O8(e,t,n){var r,o,i;if(this._weekdaysParseExact)return $8.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Po([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function _8(e){if(!this.isValid())return e!=null?this:NaN;var t=sc(this,"Day");return e!=null?(e=v8(e,this.localeData()),this.add(e-t,"d")):t}function R8(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function P8(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=g8(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function M8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||u0.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(xt(this,"_weekdaysRegex")||(this._weekdaysRegex=b8),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function I8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||u0.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=S8),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function T8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||u0.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=w8),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function u0(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],i,a,l,c,u;for(i=0;i<7;i++)a=Po([2e3,1]).day(i),l=Uo(this.weekdaysMin(a,"")),c=Uo(this.weekdaysShort(a,"")),u=Uo(this.weekdays(a,"")),t.push(l),n.push(c),r.push(u),o.push(l),o.push(c),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function d0(){return this.hours()%12||12}function N8(){return this.hours()||24}Xe("H",["HH",2],0,"hour");Xe("h",["hh",2],0,d0);Xe("k",["kk",2],0,N8);Xe("hmm",0,0,function(){return""+d0.apply(this)+Oo(this.minutes(),2)});Xe("hmmss",0,0,function(){return""+d0.apply(this)+Oo(this.minutes(),2)+Oo(this.seconds(),2)});Xe("Hmm",0,0,function(){return""+this.hours()+Oo(this.minutes(),2)});Xe("Hmmss",0,0,function(){return""+this.hours()+Oo(this.minutes(),2)+Oo(this.seconds(),2)});function o$(e,t){Xe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}o$("a",!0);o$("A",!1);function i$(e,t){return t._meridiemParse}Ae("a",i$);Ae("A",i$);Ae("H",Bt,l0);Ae("h",Bt,kl);Ae("k",Bt,kl);Ae("HH",Bt,Er);Ae("hh",Bt,Er);Ae("kk",Bt,Er);Ae("hmm",G2);Ae("hmmss",q2);Ae("Hmm",G2);Ae("Hmmss",q2);Nt(["H","HH"],xn);Nt(["k","kk"],function(e,t,n){var r=ht(e);t[xn]=r===24?0:r});Nt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Nt(["h","hh"],function(e,t,n){t[xn]=ht(e),ot(n).bigHour=!0});Nt("hmm",function(e,t,n){var r=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r)),ot(n).bigHour=!0});Nt("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r,2)),t[Bo]=ht(e.substr(o)),ot(n).bigHour=!0});Nt("Hmm",function(e,t,n){var r=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r))});Nt("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[xn]=ht(e.substr(0,r)),t[oo]=ht(e.substr(r,2)),t[Bo]=ht(e.substr(o))});function F8(e){return(e+"").toLowerCase().charAt(0)==="p"}var D8=/[ap]\.?m?\.?/i,k8=Ll("Hours",!0);function L8(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var a$={calendar:$A,longDateFormat:PA,invalidDate:IA,ordinal:NA,dayOfMonthOrdinalParse:FA,relativeTime:kA,months:ZA,monthsShort:Q2,week:u8,weekdays:p8,weekdaysMin:y8,weekdaysShort:r$,meridiemParse:D8},Ut={},Zl={},dc;function j8(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=Nf(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&j8(i,r)>=n-1)break;n--}t++}return dc}function z8(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Nf(e){var t=null,n;if(Ut[e]===void 0&&typeof module<"u"&&module&&module.exports&&z8(e))try{t=dc._abbr,n=require,n("./locale/"+e),Li(t)}catch{Ut[e]=null}return Ut[e]}function Li(e,t){var n;return e&&(tr(t)?n=ri(e):n=f0(e,t),n?dc=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),dc._abbr}function f0(e,t){if(t!==null){var n,r=a$;if(t.abbr=e,Ut[e]!=null)V2("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ut[e]._config;else if(t.parentLocale!=null)if(Ut[t.parentLocale]!=null)r=Ut[t.parentLocale]._config;else if(n=Nf(t.parentLocale),n!=null)r=n._config;else return Zl[t.parentLocale]||(Zl[t.parentLocale]=[]),Zl[t.parentLocale].push({name:e,config:t}),null;return Ut[e]=new n0(ag(r,t)),Zl[e]&&Zl[e].forEach(function(o){f0(o.name,o.config)}),Li(e),Ut[e]}else return delete Ut[e],null}function H8(e,t){if(t!=null){var n,r,o=a$;Ut[e]!=null&&Ut[e].parentLocale!=null?Ut[e].set(ag(Ut[e]._config,t)):(r=Nf(e),r!=null&&(o=r._config),t=ag(o,t),r==null&&(t.abbr=e),n=new n0(t),n.parentLocale=Ut[e],Ut[e]=n),Li(e)}else Ut[e]!=null&&(Ut[e].parentLocale!=null?(Ut[e]=Ut[e].parentLocale,e===Li()&&Li(e)):Ut[e]!=null&&delete Ut[e]);return Ut[e]}function ri(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return dc;if(!mo(e)){if(t=Nf(e),t)return t;e=[e]}return A8(e)}function B8(){return lg(Ut)}function m0(e){var t,n=e._a;return n&&ot(e).overflow===-2&&(t=n[Ho]<0||n[Ho]>11?Ho:n[Co]<1||n[Co]>s0(n[Vn],n[Ho])?Co:n[xn]<0||n[xn]>24||n[xn]===24&&(n[oo]!==0||n[Bo]!==0||n[aa]!==0)?xn:n[oo]<0||n[oo]>59?oo:n[Bo]<0||n[Bo]>59?Bo:n[aa]<0||n[aa]>999?aa:-1,ot(e)._overflowDayOfYear&&(tCo)&&(t=Co),ot(e)._overflowWeeks&&t===-1&&(t=YA),ot(e)._overflowWeekday&&t===-1&&(t=GA),ot(e).overflow=t),e}var V8=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,W8=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,U8=/Z|[+-]\d\d(?::?\d\d)?/,hu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ah=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Y8=/^\/?Date\((-?\d+)/i,G8=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,q8={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function l$(e){var t,n,r=e._i,o=V8.exec(r)||W8.exec(r),i,a,l,c,u=hu.length,d=ah.length;if(o){for(ot(e).iso=!0,t=0,n=u;t$s(a)||e._dayOfYear===0)&&(ot(e)._overflowDayOfYear=!0),n=cc(a,0,e._dayOfYear),e._a[Ho]=n.getUTCMonth(),e._a[Co]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[xn]===24&&e._a[oo]===0&&e._a[Bo]===0&&e._a[aa]===0&&(e._nextDay=!0,e._a[xn]=0),e._d=(e._useUTC?cc:s8).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(ot(e).weekdayMismatch=!0)}}function nz(e){var t,n,r,o,i,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=ka(t.GG,e._a[Vn],uc(Ht(),1,4).year),r=ka(t.W,1),o=ka(t.E,1),(o<1||o>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=uc(Ht(),i,a),n=ka(t.gg,e._a[Vn],u.year),r=ka(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(c=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(c=!0)):o=i),r<1||r>Yo(n,i,a)?ot(e)._overflowWeeks=!0:c!=null?ot(e)._overflowWeekday=!0:(l=n$(n,r,o,i,a),e._a[Vn]=l.year,e._dayOfYear=l.dayOfYear)}Pe.ISO_8601=function(){};Pe.RFC_2822=function(){};function v0(e){if(e._f===Pe.ISO_8601){l$(e);return}if(e._f===Pe.RFC_2822){s$(e);return}e._a=[],ot(e).empty=!0;var t=""+e._i,n,r,o,i,a,l=t.length,c=0,u,d;for(o=W2(e._f,e._locale).match(r0)||[],d=o.length,n=0;n0&&ot(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),cl[i]?(r?ot(e).empty=!1:ot(e).unusedTokens.push(i),UA(i,r,e)):e._strict&&!r&&ot(e).unusedTokens.push(i);ot(e).charsLeftOver=l-c,t.length>0&&ot(e).unusedInput.push(t),e._a[xn]<=12&&ot(e).bigHour===!0&&e._a[xn]>0&&(ot(e).bigHour=void 0),ot(e).parsedDateParts=e._a.slice(0),ot(e).meridiem=e._meridiem,e._a[xn]=rz(e._locale,e._a[xn],e._meridiem),u=ot(e).era,u!==null&&(e._a[Vn]=e._locale.erasConvertYear(u,e._a[Vn])),h0(e),m0(e)}function rz(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function oz(e){var t,n,r,o,i,a,l=!1,c=e._f.length;if(c===0){ot(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:Of()});function d$(e,t){var n,r;if(t.length===1&&mo(t[0])&&(t=t[0]),!t.length)return Ht();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $z(){if(!tr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return t0(e,this),e=c$(e),e._a?(t=e._isUTC?Po(e._a):Ht(e._a),this._isDSTShifted=this.isValid()&&gz(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Oz(){return this.isValid()?!this._isUTC:!1}function _z(){return this.isValid()?this._isUTC:!1}function m$(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Rz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pz=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vo(e,t){var n=e,r=null,o,i,a;return Lu(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Jo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Rz.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:ht(r[Co])*o,h:ht(r[xn])*o,m:ht(r[oo])*o,s:ht(r[Bo])*o,ms:ht(cg(r[aa]*1e3))*o}):(r=Pz.exec(e))?(o=r[1]==="-"?-1:1,n={y:qi(r[2],o),M:qi(r[3],o),w:qi(r[4],o),d:qi(r[5],o),h:qi(r[6],o),m:qi(r[7],o),s:qi(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Mz(Ht(n.from),Ht(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new Ff(n),Lu(e)&&xt(e,"_locale")&&(i._locale=e._locale),Lu(e)&&xt(e,"_isValid")&&(i._isValid=e._isValid),i}vo.fn=Ff.prototype;vo.invalid=vz;function qi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function rS(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Mz(e,t){var n;return e.isValid()&&t.isValid()?(t=p0(t,e),e.isBefore(t)?n=rS(e,t):(n=rS(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function h$(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(V2(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=vo(n,r),v$(this,o,e),this}}function v$(e,t,n,r){var o=t._milliseconds,i=cg(t._days),a=cg(t._months);e.isValid()&&(r=r??!0,a&&J2(e,sc(e,"Month")+a*n),i&&X2(e,"Date",sc(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&Pe.updateOffset(e,i||a))}var Iz=h$(1,"add"),Tz=h$(-1,"subtract");function g$(e){return typeof e=="string"||e instanceof String}function Nz(e){return ho(e)||Ec(e)||g$(e)||Jo(e)||Dz(e)||Fz(e)||e===null||e===void 0}function Fz(e){var t=ua(e)&&!Jp(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?ku(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Mo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ku(n,"Z")):ku(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Kz(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function Xz(e){e||(e=this.isUtc()?Pe.defaultFormatUtc:Pe.defaultFormat);var t=ku(this,e);return this.localeData().postformat(t)}function Qz(e,t){return this.isValid()&&(ho(e)&&e.isValid()||Ht(e).isValid())?vo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Zz(e){return this.from(Ht(),e)}function Jz(e,t){return this.isValid()&&(ho(e)&&e.isValid()||Ht(e).isValid())?vo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function eH(e){return this.to(Ht(),e)}function p$(e){var t;return e===void 0?this._locale._abbr:(t=ri(e),t!=null&&(this._locale=t),this)}var y$=Yr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function b$(){return this._locale}var Pd=1e3,ul=60*Pd,Md=60*ul,S$=(365*400+97)*24*Md;function dl(e,t){return(e%t+t)%t}function w$(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-S$:new Date(e,t,n).valueOf()}function C$(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-S$:Date.UTC(e,t,n)}function tH(e){var t,n;if(e=Gr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?C$:w$,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=dl(t+(this._isUTC?0:this.utcOffset()*ul),Md);break;case"minute":t=this._d.valueOf(),t-=dl(t,ul);break;case"second":t=this._d.valueOf(),t-=dl(t,Pd);break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function nH(e){var t,n;if(e=Gr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?C$:w$,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Md-dl(t+(this._isUTC?0:this.utcOffset()*ul),Md)-1;break;case"minute":t=this._d.valueOf(),t+=ul-dl(t,ul)-1;break;case"second":t=this._d.valueOf(),t+=Pd-dl(t,Pd)-1;break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function rH(){return this._d.valueOf()-(this._offset||0)*6e4}function oH(){return Math.floor(this.valueOf()/1e3)}function iH(){return new Date(this.valueOf())}function aH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function lH(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function sH(){return this.isValid()?this.toISOString():null}function cH(){return e0(this)}function uH(){return Oi({},ot(this))}function dH(){return ot(this).overflow}function fH(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Xe("N",0,0,"eraAbbr");Xe("NN",0,0,"eraAbbr");Xe("NNN",0,0,"eraAbbr");Xe("NNNN",0,0,"eraName");Xe("NNNNN",0,0,"eraNarrow");Xe("y",["y",1],"yo","eraYear");Xe("y",["yy",2],0,"eraYear");Xe("y",["yyy",3],0,"eraYear");Xe("y",["yyyy",4],0,"eraYear");Ae("N",y0);Ae("NN",y0);Ae("NNN",y0);Ae("NNNN",xH);Ae("NNNNN",EH);Nt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?ot(n).era=o:ot(n).invalidEra=e});Ae("y",Dl);Ae("yy",Dl);Ae("yyy",Dl);Ae("yyyy",Dl);Ae("yo",$H);Nt(["y","yy","yyy","yyyy"],Vn);Nt(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Vn]=n._locale.eraYearOrdinalParse(e,o):t[Vn]=parseInt(e,10)});function mH(e,t){var n,r,o,i=this._eras||ri("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function vH(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Pe(e.since).year():Pe(e.since).year()+(t-e.offset)*n}function gH(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),TH.call(this,e,t,n,r,o))}function TH(e,t,n,r,o){var i=n$(e,t,n,r,o),a=cc(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Xe("Q",0,"Qo","quarter");Ae("Q",U2);Nt("Q",function(e,t){t[Ho]=(ht(e)-1)*3});function NH(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Xe("D",["DD",2],"Do","date");Ae("D",Bt,kl);Ae("DD",Bt,Er);Ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Nt(["D","DD"],Co);Nt("Do",function(e,t){t[Co]=ht(e.match(Bt)[0])});var E$=Ll("Date",!0);Xe("DDD",["DDDD",3],"DDDo","dayOfYear");Ae("DDD",Rf);Ae("DDDD",Y2);Nt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ht(e)});function FH(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Xe("m",["mm",2],0,"minute");Ae("m",Bt,l0);Ae("mm",Bt,Er);Nt(["m","mm"],oo);var DH=Ll("Minutes",!1);Xe("s",["ss",2],0,"second");Ae("s",Bt,l0);Ae("ss",Bt,Er);Nt(["s","ss"],Bo);var kH=Ll("Seconds",!1);Xe("S",0,0,function(){return~~(this.millisecond()/100)});Xe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Xe(0,["SSS",3],0,"millisecond");Xe(0,["SSSS",4],0,function(){return this.millisecond()*10});Xe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Xe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Xe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Xe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Xe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ae("S",Rf,U2);Ae("SS",Rf,Er);Ae("SSS",Rf,Y2);var _i,$$;for(_i="SSSS";_i.length<=9;_i+="S")Ae(_i,Dl);function LH(e,t){t[aa]=ht(("0."+e)*1e3)}for(_i="S";_i.length<=9;_i+="S")Nt(_i,LH);$$=Ll("Milliseconds",!1);Xe("z",0,0,"zoneAbbr");Xe("zz",0,0,"zoneName");function jH(){return this._isUTC?"UTC":""}function AH(){return this._isUTC?"Coordinated Universal Time":""}var ye=$c.prototype;ye.add=Iz;ye.calendar=jz;ye.clone=Az;ye.diff=Yz;ye.endOf=nH;ye.format=Xz;ye.from=Qz;ye.fromNow=Zz;ye.to=Jz;ye.toNow=eH;ye.get=KA;ye.invalidAt=dH;ye.isAfter=zz;ye.isBefore=Hz;ye.isBetween=Bz;ye.isSame=Vz;ye.isSameOrAfter=Wz;ye.isSameOrBefore=Uz;ye.isValid=cH;ye.lang=y$;ye.locale=p$;ye.localeData=b$;ye.max=cz;ye.min=sz;ye.parsingFlags=uH;ye.set=XA;ye.startOf=tH;ye.subtract=Tz;ye.toArray=aH;ye.toObject=lH;ye.toDate=iH;ye.toISOString=qz;ye.inspect=Kz;typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ye.toJSON=sH;ye.toString=Gz;ye.unix=oH;ye.valueOf=rH;ye.creationData=fH;ye.eraName=gH;ye.eraNarrow=pH;ye.eraAbbr=yH;ye.eraYear=bH;ye.year=K2;ye.isLeapYear=qA;ye.weekYear=OH;ye.isoWeekYear=_H;ye.quarter=ye.quarters=NH;ye.month=e$;ye.daysInMonth=i8;ye.week=ye.weeks=m8;ye.isoWeek=ye.isoWeeks=h8;ye.weeksInYear=MH;ye.weeksInWeekYear=IH;ye.isoWeeksInYear=RH;ye.isoWeeksInISOWeekYear=PH;ye.date=E$;ye.day=ye.days=_8;ye.weekday=R8;ye.isoWeekday=P8;ye.dayOfYear=FH;ye.hour=ye.hours=k8;ye.minute=ye.minutes=DH;ye.second=ye.seconds=kH;ye.millisecond=ye.milliseconds=$$;ye.utcOffset=yz;ye.utc=Sz;ye.local=wz;ye.parseZone=Cz;ye.hasAlignedHourOffset=xz;ye.isDST=Ez;ye.isLocal=Oz;ye.isUtcOffset=_z;ye.isUtc=m$;ye.isUTC=m$;ye.zoneAbbr=jH;ye.zoneName=AH;ye.dates=Yr("dates accessor is deprecated. Use date instead.",E$);ye.months=Yr("months accessor is deprecated. Use month instead",e$);ye.years=Yr("years accessor is deprecated. Use year instead",K2);ye.zone=Yr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bz);ye.isDSTShifted=Yr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$z);function zH(e){return Ht(e*1e3)}function HH(){return Ht.apply(null,arguments).parseZone()}function O$(e){return e}var Et=n0.prototype;Et.calendar=OA;Et.longDateFormat=MA;Et.invalidDate=TA;Et.ordinal=DA;Et.preparse=O$;Et.postformat=O$;Et.relativeTime=LA;Et.pastFuture=jA;Et.set=EA;Et.eras=mH;Et.erasParse=hH;Et.erasConvertYear=vH;Et.erasAbbrRegex=wH;Et.erasNameRegex=SH;Et.erasNarrowRegex=CH;Et.months=t8;Et.monthsShort=n8;Et.monthsParse=o8;Et.monthsRegex=l8;Et.monthsShortRegex=a8;Et.week=c8;Et.firstDayOfYear=f8;Et.firstDayOfWeek=d8;Et.weekdays=C8;Et.weekdaysMin=E8;Et.weekdaysShort=x8;Et.weekdaysParse=O8;Et.weekdaysRegex=M8;Et.weekdaysShortRegex=I8;Et.weekdaysMinRegex=T8;Et.isPM=F8;Et.meridiem=L8;function Id(e,t,n,r){var o=ri(),i=Po().set(r,t);return o[n](i,e)}function _$(e,t,n){if(Jo(e)&&(t=e,e=void 0),e=e||"",t!=null)return Id(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Id(e,r,n,"month");return o}function S0(e,t,n,r){typeof e=="boolean"?(Jo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Jo(t)&&(n=t,t=void 0),t=t||"");var o=ri(),i=e?o._week.dow:0,a,l=[];if(n!=null)return Id(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=Id(t,(a+i)%7,r,"day");return l}function BH(e,t){return _$(e,t,"months")}function VH(e,t){return _$(e,t,"monthsShort")}function WH(e,t,n){return S0(e,t,n,"weekdays")}function UH(e,t,n){return S0(e,t,n,"weekdaysShort")}function YH(e,t,n){return S0(e,t,n,"weekdaysMin")}Li("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ht(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Pe.lang=Yr("moment.lang is deprecated. Use moment.locale instead.",Li);Pe.langData=Yr("moment.langData is deprecated. Use moment.localeData instead.",ri);var To=Math.abs;function GH(){var e=this._data;return this._milliseconds=To(this._milliseconds),this._days=To(this._days),this._months=To(this._months),e.milliseconds=To(e.milliseconds),e.seconds=To(e.seconds),e.minutes=To(e.minutes),e.hours=To(e.hours),e.months=To(e.months),e.years=To(e.years),this}function R$(e,t,n,r){var o=vo(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function qH(e,t){return R$(this,e,t,1)}function KH(e,t){return R$(this,e,t,-1)}function oS(e){return e<0?Math.floor(e):Math.ceil(e)}function XH(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=oS(dg(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Fr(e/1e3),r.seconds=o%60,i=Fr(o/60),r.minutes=i%60,a=Fr(i/60),r.hours=a%24,t+=Fr(a/24),c=Fr(P$(t)),n+=c,t-=oS(dg(c)),l=Fr(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function P$(e){return e*4800/146097}function dg(e){return e*146097/4800}function QH(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Gr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+P$(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(dg(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function oi(e){return function(){return this.as(e)}}var M$=oi("ms"),ZH=oi("s"),JH=oi("m"),e9=oi("h"),t9=oi("d"),n9=oi("w"),r9=oi("M"),o9=oi("Q"),i9=oi("y"),a9=M$;function l9(){return vo(this)}function s9(e){return e=Gr(e),this.isValid()?this[e+"s"]():NaN}function Ea(e){return function(){return this.isValid()?this._data[e]:NaN}}var c9=Ea("milliseconds"),u9=Ea("seconds"),d9=Ea("minutes"),f9=Ea("hours"),m9=Ea("days"),h9=Ea("months"),v9=Ea("years");function g9(){return Fr(this.days()/7)}var Do=Math.round,el={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function p9(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function y9(e,t,n,r){var o=vo(e).abs(),i=Do(o.as("s")),a=Do(o.as("m")),l=Do(o.as("h")),c=Do(o.as("d")),u=Do(o.as("M")),d=Do(o.as("w")),f=Do(o.as("y")),m=i<=n.ss&&["s",i]||i0,m[4]=r,p9.apply(null,m)}function b9(e){return e===void 0?Do:typeof e=="function"?(Do=e,!0):!1}function S9(e,t){return el[e]===void 0?!1:t===void 0?el[e]:(el[e]=t,e==="s"&&(el.ss=t-1),!0)}function w9(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=el,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},el,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=y9(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var lh=Math.abs;function Fa(e){return(e>0)-(e<0)||+e}function kf(){if(!this.isValid())return this.localeData().invalidDate();var e=lh(this._milliseconds)/1e3,t=lh(this._days),n=lh(this._months),r,o,i,a,l=this.asSeconds(),c,u,d,f;return l?(r=Fr(e/60),o=Fr(r/60),e%=60,r%=60,i=Fr(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=Fa(this._months)!==Fa(l)?"-":"",d=Fa(this._days)!==Fa(l)?"-":"",f=Fa(this._milliseconds)!==Fa(l)?"-":"",c+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var yt=Ff.prototype;yt.isValid=hz;yt.abs=GH;yt.add=qH;yt.subtract=KH;yt.as=QH;yt.asMilliseconds=M$;yt.asSeconds=ZH;yt.asMinutes=JH;yt.asHours=e9;yt.asDays=t9;yt.asWeeks=n9;yt.asMonths=r9;yt.asQuarters=o9;yt.asYears=i9;yt.valueOf=a9;yt._bubble=XH;yt.clone=l9;yt.get=s9;yt.milliseconds=c9;yt.seconds=u9;yt.minutes=d9;yt.hours=f9;yt.days=m9;yt.weeks=g9;yt.months=h9;yt.years=v9;yt.humanize=w9;yt.toISOString=kf;yt.toString=kf;yt.toJSON=kf;yt.locale=p$;yt.localeData=b$;yt.toIsoString=Yr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kf);yt.lang=y$;Xe("X",0,0,"unix");Xe("x",0,0,"valueOf");Ae("x",Mf);Ae("X",BA);Nt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Nt("x",function(e,t,n){n._d=new Date(ht(e))});//! moment.js -Pe.version="2.30.1";CA(Ht);Pe.fn=ye;Pe.min=uz;Pe.max=dz;Pe.now=fz;Pe.utc=Po;Pe.unix=zH;Pe.months=BH;Pe.isDate=Ec;Pe.locale=Li;Pe.invalid=Of;Pe.duration=vo;Pe.isMoment=ho;Pe.weekdays=WH;Pe.parseZone=HH;Pe.localeData=ri;Pe.isDuration=Lu;Pe.monthsShort=VH;Pe.weekdaysMin=YH;Pe.defineLocale=f0;Pe.updateLocale=H8;Pe.locales=B8;Pe.weekdaysShort=UH;Pe.normalizeUnits=Gr;Pe.relativeTimeRounding=b9;Pe.relativeTimeThreshold=S9;Pe.calendarFormat=Lz;Pe.prototype=ye;Pe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const iS={model:"XIAOMI 13 ULTRA",date:Pe().format("YYYY.MM.DD HH:mm:ss"),gps:`41°12'47"N 124°00'16"W`,device:"75mm f/1.8 1/33s ISO800",brand:"leica",brand_url:"./brand/leica.svg",scale:.8,fontSize:"normal",fontWeight:"bold",fontFamily:"misans"},aS=["./exhibition/apple.jpg","./exhibition/canon.jpg","./exhibition/dji.jpg","./exhibition/fujifilm.jpg","./exhibition/huawei.jpg","./exhibition/leica.jpg","./exhibition/xiaomi.jpg","./exhibition/nikon.jpg","./exhibition/sony.jpg"];function lS(e,t){if(!e)return"";const[n,r,o,i]=e.match(/(\d+\.?\d*)|([NSWE]$)/gim).map(a=>Number.isNaN(Number(a))?a:`${~~a}`.padStart(2,"0"));return t?`${n}°${r}'${o}"${t}`:i?`${n}°${r}'${o}"${i}`:`${n}°${r}'${o}"`}function C9(e){const t=(e||"").toLowerCase();for(const n of A2.map(r=>r.toLowerCase()))if(t.includes(n))return n;return t}function x9(e){if(!e)return"";const[t,n]=e.split("/").filter(Boolean).map(r=>Math.floor(Number(r)));return[t,n].join("/")}function fg(e){const t={GPSLatitude:"",GPSLatitudeRef:"",GPSLongitude:"",GPSLongitudeRef:"",FocalLengthIn35mmFilm:"",FocalLength:"",FNumber:"",ExposureTime:"",PhotographicSensitivity:"",Model:"",Make:"",DateTimeOriginal:""},n=new Map(e.map(a=>[a.tag,a.value])),r=new Map(e.map(a=>[a.tag,a.value_with_unit]));t.GPSLatitude=n.get("GPSLatitude")||"",t.GPSLatitudeRef=n.get("GPSLatitudeRef")||"",t.GPSLongitude=n.get("GPSLongitude")||"",t.GPSLongitudeRef=n.get("GPSLongitudeRef")||"",t.FocalLengthIn35mmFilm=r.get("FocalLengthIn35mmFilm")||"",t.FocalLength=r.get("FocalLength")||"",t.FNumber=r.get("FNumber")||"",t.ExposureTime=n.get("ExposureTime")||"",t.PhotographicSensitivity=n.get("PhotographicSensitivity")||"",t.Model=n.get("Model")||"",t.Make=n.get("Make")||"",t.DateTimeOriginal=n.get("DateTimeOriginal")||"";const o=`${lS(t.GPSLatitude,t.GPSLatitudeRef)} ${lS(t.GPSLongitude,t.GPSLongitudeRef)}`,i=[`${(t.FocalLengthIn35mmFilm||t.FocalLength).replace(/\s+/g,"")}`,t.FNumber?.split("/")?.map((a,l)=>l?(+a).toFixed(1):a).join("/"),t.ExposureTime?`${x9(t.ExposureTime)}s`:"",t.PhotographicSensitivity?`ISO${t.PhotographicSensitivity}`:""].filter(Boolean).join(" ");return{model:t.Model||"Unknown Model",date:t.DateTimeOriginal||Pe().format("YYYY.MM.DD HH:mm:ss"),gps:o,device:i,brand:`${C9(t.Make)}`}}function I$(){const e=Math.floor(Math.random()*aS.length);return aS[e]}let lr;const Lo=new Array(128).fill(void 0);Lo.push(void 0,null,!0,!1);function ls(e){return Lo[e]}let Os=Lo.length;function E9(e){e<132||(Lo[e]=Os,Os=e)}function T$(e){const t=ls(e);return E9(e),t}function La(e){Os===Lo.length&&Lo.push(Lo.length+1);const t=Os;return Os=Lo[t],Lo[t]=e,t}const N$=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&N$.decode();let ss=null;function _s(){return(ss===null||ss.byteLength===0)&&(ss=new Uint8Array(lr.memory.buffer)),ss}function sh(e,t){return e=e>>>0,N$.decode(_s().subarray(e,e+t))}let fc=0;function $9(e,t){const n=t(e.length*1,1)>>>0;return _s().set(e,n/1),fc=e.length,n}function mg(e){const t=$9(e,lr.__wbindgen_malloc),n=fc,r=lr.get_exif(t,n);return T$(r)}const Au=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},O9=typeof Au.encodeInto=="function"?function(e,t){return Au.encodeInto(e,t)}:function(e,t){const n=Au.encode(e);return t.set(n),{read:e.length,written:n.length}};function _9(e,t,n){if(n===void 0){const l=Au.encode(e),c=t(l.length,1)>>>0;return _s().subarray(c,c+l.length).set(l),fc=l.length,c}let r=e.length,o=t(r,1)>>>0;const i=_s();let a=0;for(;a127)break;i[o+a]=l}if(a!==r){a!==0&&(e=e.slice(a)),o=n(o,r,r=a+e.length*3,1)>>>0;const l=_s().subarray(o+a,o+r),c=O9(e,l);a+=c.written,o=n(o,r,a,1)>>>0}return fc=a,o}let Qi=null;function sS(){return(Qi===null||Qi.buffer.detached===!0||Qi.buffer.detached===void 0&&Qi.buffer!==lr.memory.buffer)&&(Qi=new DataView(lr.memory.buffer)),Qi}function R9(e,t){try{return e.apply(this,t)}catch(n){lr.__wbindgen_exn_store(La(n))}}async function P9(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function M9(){const e={};return e.wbg={},e.wbg.__wbg_new_abda76e883ba8a5f=function(){const t=new Error;return La(t)},e.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const r=ls(n).stack,o=_9(r,lr.__wbindgen_malloc,lr.__wbindgen_realloc),i=fc;sS().setInt32(t+4*1,i,!0),sS().setInt32(t+4*0,o,!0)},e.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let r,o;try{r=t,o=n,console.error(sh(t,n))}finally{lr.__wbindgen_free(r,o,1)}},e.wbg.__wbindgen_object_drop_ref=function(t){T$(t)},e.wbg.__wbindgen_number_new=function(t){return La(t)},e.wbg.__wbg_getTime_41225036a0393d63=function(t){return ls(t).getTime()},e.wbg.__wbg_getTimezoneOffset_93f7d384c8ade3be=function(t){return ls(t).getTimezoneOffset()},e.wbg.__wbg_new_6fb55f037293191b=function(t){const n=new Date(ls(t));return La(n)},e.wbg.__wbg_new0_218ada33b570be35=function(){return La(new Date)},e.wbg.__wbg_parse_51ee5409072379d3=function(){return R9(function(t,n){const r=JSON.parse(sh(t,n));return La(r)},arguments)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(sh(t,n))},e}function I9(e,t){return lr=e.exports,F$.__wbindgen_wasm_module=t,Qi=null,ss=null,lr.__wbindgen_start(),lr}async function F$(e){if(lr!==void 0)return lr;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("/assets/gen_brand_photo_pictrue_bg-BWP2XARl.wasm",import.meta.url));const t=M9();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await P9(await e,t);return I9(n,r)}function T9(e,t){const[n,r]=s.useState(t),[o,i]=s.useState(I$()),a=s.useRef(null);return{imgRef:a,imgUrl:o,setImgUrl:i,formValue:n,setFormValue:r,handleAdd:g=>{const S=new FileReader;return S.onloadend=async v=>{try{const h=mg(new Uint8Array(v.target.result)),p=fg(h),C={...n,...p,brand_url:Du(p.brand)};console.log("original EXIF data: ",h),console.log("parsed EXIF data: ",p),e.current.setFieldsValue(C),r(C),i(URL.createObjectURL(new Blob([g],{type:g.type})))}catch(h){console.error("Error parsing EXIF data:",h),rg.error("无法识别照片特定数据,请换一张照片",300)}},S.readAsArrayBuffer(g),!1},handleDownload:()=>{const g=document.getElementById("preview"),S=4;wA.toJpeg(g,{quality:1,width:g.clientWidth*S,height:g.clientHeight*S,style:{transform:`scale(${S})`,transformOrigin:"top left"}}).then(v=>{const h=document.createElement("a");h.download=`${Date.now()}.jpg`,h.href=v,document.body.appendChild(h),h.click(),h.remove()}).catch(v=>{console.error("Export Error:",v),rg.error("导出失败,请重试")})},handleFormChange:(g,S)=>{r({...S,brand_url:Du(S.brand)})},handleFontSizeChange:g=>{const S={small:"var(--font-size-small)",normal:"var(--font-size-normal)",large:"var(--font-size-large)"};document.documentElement.style.setProperty("--current-font-size",S[g]),r(v=>({...v,fontSize:g}))},handleFontWeightChange:g=>{const S={normal:"var(--font-weight-normal)",bold:"var(--font-weight-bold)",black:"var(--font-weight-black)"};document.documentElement.style.setProperty("--current-font-weight",S[g]),r(v=>({...v,fontWeight:g}))},handleFontFamilyChange:g=>{const S={default:"var(--font-family-default)",caveat:"var(--font-family-caveat)",misans:"var(--font-family-misans)",helvetica:"var(--font-family-helvetica)",futura:"var(--font-family-futura)",avenir:"var(--font-family-avenir)",didot:"var(--font-family-didot)"};document.documentElement.style.setProperty("--current-font-family",S[g]),r(v=>({...v,fontFamily:g}))},handleScaleChange:g=>{document.documentElement.style.setProperty("--banner-scale",g),r(S=>({...S,scale:g}))},handleExhibitionClick:async g=>{const S=`./exhibition/${g.toLowerCase()}.jpg`;a.current&&a.current.classList.add("fade"),setTimeout(async()=>{i(S);const p=await(await(await fetch(S)).blob()).arrayBuffer(),C=mg(new Uint8Array(p)),w=fg(C),E={...n,...w,brand_url:Du(w.brand)};e.current.setFieldsValue(E),r(E),a.current&&(a.current.classList.remove("fade"),a.current.classList.add("loaded"))},500)}}}const No=QP({scriptUrl:["//at.alicdn.com/t/c/font_4757469_u2nszgglli.js"]});function N9(){const e=s.useRef(),{imgRef:t,imgUrl:n,setImgUrl:r,formValue:o,setFormValue:i,handleAdd:a,handleDownload:l,handleFormChange:c,handleFontSizeChange:u,handleFontWeightChange:d,handleFontFamilyChange:f,handleScaleChange:m,handleExhibitionClick:y}=T9(e,iS),[b,g]=s.useState(!1),S=s.useRef(iS);return s.useEffect(()=>{(async()=>{await F$(),g(!0)})()},[]),s.useEffect(()=>{(async()=>{const h=I$(),p=new Image;p.src=h,p.onload=async()=>{const E=await(await(await fetch(h)).blob()).arrayBuffer(),x=mg(new Uint8Array(E)),$=fg(x);r(h),t.current&&t.current.classList.add("loaded");const O={...S.current,...$,brand_url:Du($.brand)};e.current.setFieldsValue(O),i(O),S.current=O}})()},[b,t,r,i]),b?ge.jsxs(ge.Fragment,{children:[ge.jsx($i.Title,{level:2,className:"picseal-title",children:"PICSEAL"}),ge.jsx(M6,{}),ge.jsx($i.Text,{className:"picseal-description",children:"小米照片风格水印照片,支持佳能、尼康、索尼、苹果、华为、小米、大疆。"}),ge.jsxs("div",{className:"preview-box",children:[ge.jsx($i.Title,{level:4,children:"预览"}),ge.jsxs("div",{className:"preview",id:"preview",children:[ge.jsx("img",{ref:t,className:"preview-picture",src:n,alt:"Preview"}),ge.jsxs("div",{className:"preview-info",children:[ge.jsxs("div",{className:"preview-info-left",children:[ge.jsx("div",{className:"preview-info-model",children:o.model}),ge.jsx("div",{className:"preview-info-date",children:o.date}),ge.jsx("div",{className:"preview-info-brand",children:ge.jsx("img",{src:o.brand_url,alt:"Brand"})})]}),ge.jsx("div",{className:"preview-info-split"}),ge.jsxs("div",{className:"preview-info-right",children:[ge.jsx("div",{className:"preview-info-device",children:o.device}),ge.jsx("div",{className:"preview-info-gps",children:o.gps})]})]})]})]}),ge.jsx("div",{className:"exhibition",children:ge.jsxs(UL,{wrap:!0,gap:"middle",horizontal:"true",justify:"center",align:"center",children:[ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("apple"),children:[ge.jsx(No,{type:"icon-apple",style:{fontSize:"16px"}}),"Apple"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("canon"),children:[ge.jsx(No,{type:"icon-jianeng",style:{fontSize:"28px"}}),"Cannon"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("dji"),children:[ge.jsx(No,{type:"icon-DJI",style:{fontSize:"28px"}}),"Dji"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("fujifilm"),children:[ge.jsx(No,{type:"icon-fushi",style:{fontSize:"28px"}}),"Fuji"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("huawei"),children:[ge.jsx(No,{type:"icon-huawei1",style:{fontSize:"16px"}}),"Huawei"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("leica"),children:[ge.jsx(No,{type:"icon-laika",style:{fontSize:"16px"}}),"Leica"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("xiaomi"),children:[ge.jsx(No,{type:"icon-icon-xiaomiguishu",style:{fontSize:"16px"}}),"Xiaomi"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("nikon"),children:[ge.jsx(No,{type:"icon-nikon",style:{fontSize:"16px"}}),"Nikon"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("sony"),children:[ge.jsx(No,{type:"icon-sony",style:{fontSize:"28px"}}),"Sony"]})]})}),ge.jsx("div",{className:"op",children:ge.jsxs(S2,{size:"large",children:[ge.jsx(Zp,{accept:"image/*",beforeUpload:v=>(a(v),!1),fileList:[],children:ge.jsx(Hn,{type:"primary",shape:"round",icon:ge.jsx(zP,{}),ghost:!0,children:"新建照片"})}),ge.jsx(Hn,{type:"primary",shape:"round",icon:ge.jsx(jC,{}),onClick:l,children:"导出照片"})]})}),ge.jsxs("div",{className:"props",children:[ge.jsx("div",{className:"props-title",children:ge.jsx($i.Title,{level:4,children:"参数"})}),ge.jsx("div",{className:"props-option",children:ge.jsxs(_n,{ref:e,labelCol:{span:4},wrapperCol:{span:14},layout:"horizontal",size:"small",style:{maxWidth:800},initialValues:o,onValuesChange:c,children:[ge.jsx(_n.Item,{label:"型号",name:"model",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"品牌",name:"brand",children:ge.jsx(Jt,{style:{width:170},children:A2.map(v=>ge.jsx(Jt.Option,{value:v.toLowerCase(),children:v},v))})}),ge.jsx(_n.Item,{label:"参数",name:"device",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"时间",name:"date",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"经纬",name:"gps",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"字体大小",name:"fontSize",children:ge.jsxs(Jt,{style:{width:170},onChange:u,children:[ge.jsx(Jt.Option,{value:"small",children:"小"}),ge.jsx(Jt.Option,{value:"normal",children:"正常"}),ge.jsx(Jt.Option,{value:"large",children:"大"})]})}),ge.jsx(_n.Item,{label:"字体粗细",name:"fontWeight",children:ge.jsxs(Jt,{style:{width:170},onChange:d,children:[ge.jsx(Jt.Option,{value:"normal",children:"正常"}),ge.jsx(Jt.Option,{value:"bold",children:"加粗"}),ge.jsx(Jt.Option,{value:"black",children:"黑体"})]})}),ge.jsx(_n.Item,{label:"字体",name:"fontFamily",children:ge.jsxs(Jt,{style:{width:170},onChange:f,children:[ge.jsx(Jt.Option,{value:"default",children:"Default"}),ge.jsx(Jt.Option,{value:"misans",children:"MiSans"}),ge.jsx(Jt.Option,{value:"caveat",children:"Caveat"}),ge.jsx(Jt.Option,{value:"helvetica",children:"Helvetica Neue"}),ge.jsx(Jt.Option,{value:"futura",children:"Futura"}),ge.jsx(Jt.Option,{value:"avenir",children:"Avenir"}),ge.jsx(Jt.Option,{value:"didot",children:"Didot"})]})}),ge.jsx(_n.Item,{label:"横幅缩放",name:"scale",children:ge.jsx(RL,{min:.5,max:1.2,step:.1,onChange:m})})]})})]})]}):ge.jsx("div",{children:"Loading WASM..."})}function F9(){return ge.jsxs("a",{href:"https://github.com/zhiweio/picseal",className:"github-corner","aria-label":"View source on GitHub",children:[ge.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 250 250",style:{fill:"#70B7FD",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[ge.jsx("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),ge.jsx("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),ge.jsx("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),ge.jsx("style",{children:` +Pe.version="2.30.1";CA(Ht);Pe.fn=ye;Pe.min=uz;Pe.max=dz;Pe.now=fz;Pe.utc=Po;Pe.unix=zH;Pe.months=BH;Pe.isDate=Ec;Pe.locale=Li;Pe.invalid=Of;Pe.duration=vo;Pe.isMoment=ho;Pe.weekdays=WH;Pe.parseZone=HH;Pe.localeData=ri;Pe.isDuration=Lu;Pe.monthsShort=VH;Pe.weekdaysMin=YH;Pe.defineLocale=f0;Pe.updateLocale=H8;Pe.locales=B8;Pe.weekdaysShort=UH;Pe.normalizeUnits=Gr;Pe.relativeTimeRounding=b9;Pe.relativeTimeThreshold=S9;Pe.calendarFormat=Lz;Pe.prototype=ye;Pe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const iS={model:"XIAOMI 13 ULTRA",date:Pe().format("YYYY.MM.DD HH:mm:ss"),gps:`41°12'47"N 124°00'16"W`,device:"75mm f/1.8 1/33s ISO800",brand:"leica",brand_url:"./brand/leica.svg",scale:.8,fontSize:"normal",fontWeight:"bold",fontFamily:"misans"},aS=["./exhibition/apple.jpg","./exhibition/canon.jpg","./exhibition/dji.jpg","./exhibition/fujifilm.jpg","./exhibition/huawei.jpg","./exhibition/leica.jpg","./exhibition/xiaomi.jpg","./exhibition/nikon.jpg","./exhibition/sony.jpg"];function lS(e,t){if(!e)return"";const[n,r,o,i]=e.match(/(\d+\.?\d*)|([NSWE]$)/gim).map(a=>Number.isNaN(Number(a))?a:`${~~a}`.padStart(2,"0"));return t?`${n}°${r}'${o}"${t}`:i?`${n}°${r}'${o}"${i}`:`${n}°${r}'${o}"`}function C9(e){const t=(e||"").toLowerCase();for(const n of A2.map(r=>r.toLowerCase()))if(t.includes(n))return n;return t}function x9(e){if(!e)return"";const[t,n]=e.split("/").filter(Boolean).map(r=>Math.floor(Number(r)));return[t,n].join("/")}function fg(e){const t={GPSLatitude:"",GPSLatitudeRef:"",GPSLongitude:"",GPSLongitudeRef:"",FocalLengthIn35mmFilm:"",FocalLength:"",FNumber:"",ExposureTime:"",PhotographicSensitivity:"",Model:"",Make:"",DateTimeOriginal:""},n=new Map(e.map(a=>[a.tag,a.value])),r=new Map(e.map(a=>[a.tag,a.value_with_unit]));t.GPSLatitude=n.get("GPSLatitude")||"",t.GPSLatitudeRef=n.get("GPSLatitudeRef")||"",t.GPSLongitude=n.get("GPSLongitude")||"",t.GPSLongitudeRef=n.get("GPSLongitudeRef")||"",t.FocalLengthIn35mmFilm=r.get("FocalLengthIn35mmFilm")||"",t.FocalLength=r.get("FocalLength")||"",t.FNumber=r.get("FNumber")||"",t.ExposureTime=n.get("ExposureTime")||"",t.PhotographicSensitivity=n.get("PhotographicSensitivity")||"",t.Model=n.get("Model")||"",t.Make=n.get("Make")||"",t.DateTimeOriginal=n.get("DateTimeOriginal")||"";const o=`${lS(t.GPSLatitude,t.GPSLatitudeRef)} ${lS(t.GPSLongitude,t.GPSLongitudeRef)}`,i=[`${(t.FocalLengthIn35mmFilm||t.FocalLength).replace(/\s+/g,"")}`,t.FNumber?.split("/")?.map((a,l)=>l?(+a).toFixed(1):a).join("/"),t.ExposureTime?`${x9(t.ExposureTime)}s`:"",t.PhotographicSensitivity?`ISO${t.PhotographicSensitivity}`:""].filter(Boolean).join(" ");return{model:t.Model||"Unknown Model",date:t.DateTimeOriginal||Pe().format("YYYY.MM.DD HH:mm:ss"),gps:o,device:i,brand:`${C9(t.Make)}`}}function I$(){const e=Math.floor(Math.random()*aS.length);return aS[e]}let lr;const Lo=new Array(128).fill(void 0);Lo.push(void 0,null,!0,!1);function ls(e){return Lo[e]}let Os=Lo.length;function E9(e){e<132||(Lo[e]=Os,Os=e)}function T$(e){const t=ls(e);return E9(e),t}function La(e){Os===Lo.length&&Lo.push(Lo.length+1);const t=Os;return Os=Lo[t],Lo[t]=e,t}const N$=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&N$.decode();let ss=null;function _s(){return(ss===null||ss.byteLength===0)&&(ss=new Uint8Array(lr.memory.buffer)),ss}function sh(e,t){return e=e>>>0,N$.decode(_s().subarray(e,e+t))}let fc=0;function $9(e,t){const n=t(e.length*1,1)>>>0;return _s().set(e,n/1),fc=e.length,n}function mg(e){const t=$9(e,lr.__wbindgen_malloc),n=fc,r=lr.get_exif(t,n);return T$(r)}const Au=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},O9=typeof Au.encodeInto=="function"?function(e,t){return Au.encodeInto(e,t)}:function(e,t){const n=Au.encode(e);return t.set(n),{read:e.length,written:n.length}};function _9(e,t,n){if(n===void 0){const l=Au.encode(e),c=t(l.length,1)>>>0;return _s().subarray(c,c+l.length).set(l),fc=l.length,c}let r=e.length,o=t(r,1)>>>0;const i=_s();let a=0;for(;a127)break;i[o+a]=l}if(a!==r){a!==0&&(e=e.slice(a)),o=n(o,r,r=a+e.length*3,1)>>>0;const l=_s().subarray(o+a,o+r),c=O9(e,l);a+=c.written,o=n(o,r,a,1)>>>0}return fc=a,o}let Qi=null;function sS(){return(Qi===null||Qi.buffer.detached===!0||Qi.buffer.detached===void 0&&Qi.buffer!==lr.memory.buffer)&&(Qi=new DataView(lr.memory.buffer)),Qi}function R9(e,t){try{return e.apply(this,t)}catch(n){lr.__wbindgen_exn_store(La(n))}}async function P9(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function M9(){const e={};return e.wbg={},e.wbg.__wbg_new_abda76e883ba8a5f=function(){const t=new Error;return La(t)},e.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const r=ls(n).stack,o=_9(r,lr.__wbindgen_malloc,lr.__wbindgen_realloc),i=fc;sS().setInt32(t+4*1,i,!0),sS().setInt32(t+4*0,o,!0)},e.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let r,o;try{r=t,o=n,console.error(sh(t,n))}finally{lr.__wbindgen_free(r,o,1)}},e.wbg.__wbindgen_object_drop_ref=function(t){T$(t)},e.wbg.__wbindgen_number_new=function(t){return La(t)},e.wbg.__wbg_getTime_41225036a0393d63=function(t){return ls(t).getTime()},e.wbg.__wbg_getTimezoneOffset_93f7d384c8ade3be=function(t){return ls(t).getTimezoneOffset()},e.wbg.__wbg_new_6fb55f037293191b=function(t){const n=new Date(ls(t));return La(n)},e.wbg.__wbg_new0_218ada33b570be35=function(){return La(new Date)},e.wbg.__wbg_parse_51ee5409072379d3=function(){return R9(function(t,n){const r=JSON.parse(sh(t,n));return La(r)},arguments)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(sh(t,n))},e}function I9(e,t){return lr=e.exports,F$.__wbindgen_wasm_module=t,Qi=null,ss=null,lr.__wbindgen_start(),lr}async function F$(e){if(lr!==void 0)return lr;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("https://zhiweio.github.io/picseal/assets/gen_brand_photo_pictrue_bg-BWP2XARl.wasm",import.meta.url));const t=M9();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await P9(await e,t);return I9(n,r)}function T9(e,t){const[n,r]=s.useState(t),[o,i]=s.useState(I$()),a=s.useRef(null);return{imgRef:a,imgUrl:o,setImgUrl:i,formValue:n,setFormValue:r,handleAdd:g=>{const S=new FileReader;return S.onloadend=async v=>{try{const h=mg(new Uint8Array(v.target.result)),p=fg(h),C={...n,...p,brand_url:Du(p.brand)};console.log("original EXIF data: ",h),console.log("parsed EXIF data: ",p),e.current.setFieldsValue(C),r(C),i(URL.createObjectURL(new Blob([g],{type:g.type})))}catch(h){console.error("Error parsing EXIF data:",h),rg.error("无法识别照片特定数据,请换一张照片",300)}},S.readAsArrayBuffer(g),!1},handleDownload:()=>{const g=document.getElementById("preview"),S=4;wA.toJpeg(g,{quality:1,width:g.clientWidth*S,height:g.clientHeight*S,style:{transform:`scale(${S})`,transformOrigin:"top left"}}).then(v=>{const h=document.createElement("a");h.download=`${Date.now()}.jpg`,h.href=v,document.body.appendChild(h),h.click(),h.remove()}).catch(v=>{console.error("Export Error:",v),rg.error("导出失败,请重试")})},handleFormChange:(g,S)=>{r({...S,brand_url:Du(S.brand)})},handleFontSizeChange:g=>{const S={small:"var(--font-size-small)",normal:"var(--font-size-normal)",large:"var(--font-size-large)"};document.documentElement.style.setProperty("--current-font-size",S[g]),r(v=>({...v,fontSize:g}))},handleFontWeightChange:g=>{const S={normal:"var(--font-weight-normal)",bold:"var(--font-weight-bold)",black:"var(--font-weight-black)"};document.documentElement.style.setProperty("--current-font-weight",S[g]),r(v=>({...v,fontWeight:g}))},handleFontFamilyChange:g=>{const S={default:"var(--font-family-default)",caveat:"var(--font-family-caveat)",misans:"var(--font-family-misans)",helvetica:"var(--font-family-helvetica)",futura:"var(--font-family-futura)",avenir:"var(--font-family-avenir)",didot:"var(--font-family-didot)"};document.documentElement.style.setProperty("--current-font-family",S[g]),r(v=>({...v,fontFamily:g}))},handleScaleChange:g=>{document.documentElement.style.setProperty("--banner-scale",g),r(S=>({...S,scale:g}))},handleExhibitionClick:async g=>{const S=`./exhibition/${g.toLowerCase()}.jpg`;a.current&&a.current.classList.add("fade"),setTimeout(async()=>{i(S);const p=await(await(await fetch(S)).blob()).arrayBuffer(),C=mg(new Uint8Array(p)),w=fg(C),E={...n,...w,brand_url:Du(w.brand)};e.current.setFieldsValue(E),r(E),a.current&&(a.current.classList.remove("fade"),a.current.classList.add("loaded"))},500)}}}const No=QP({scriptUrl:["//at.alicdn.com/t/c/font_4757469_u2nszgglli.js"]});function N9(){const e=s.useRef(),{imgRef:t,imgUrl:n,setImgUrl:r,formValue:o,setFormValue:i,handleAdd:a,handleDownload:l,handleFormChange:c,handleFontSizeChange:u,handleFontWeightChange:d,handleFontFamilyChange:f,handleScaleChange:m,handleExhibitionClick:y}=T9(e,iS),[b,g]=s.useState(!1),S=s.useRef(iS);return s.useEffect(()=>{(async()=>{await F$(),g(!0)})()},[]),s.useEffect(()=>{(async()=>{const h=I$(),p=new Image;p.src=h,p.onload=async()=>{const E=await(await(await fetch(h)).blob()).arrayBuffer(),x=mg(new Uint8Array(E)),$=fg(x);r(h),t.current&&t.current.classList.add("loaded");const O={...S.current,...$,brand_url:Du($.brand)};e.current.setFieldsValue(O),i(O),S.current=O}})()},[b,t,r,i]),b?ge.jsxs(ge.Fragment,{children:[ge.jsx($i.Title,{level:2,className:"picseal-title",children:"PICSEAL"}),ge.jsx(M6,{}),ge.jsx($i.Text,{className:"picseal-description",children:"小米照片风格水印照片,支持佳能、尼康、索尼、苹果、华为、小米、大疆。"}),ge.jsxs("div",{className:"preview-box",children:[ge.jsx($i.Title,{level:4,children:"预览"}),ge.jsxs("div",{className:"preview",id:"preview",children:[ge.jsx("img",{ref:t,className:"preview-picture",src:n,alt:"Preview"}),ge.jsxs("div",{className:"preview-info",children:[ge.jsxs("div",{className:"preview-info-left",children:[ge.jsx("div",{className:"preview-info-model",children:o.model}),ge.jsx("div",{className:"preview-info-date",children:o.date}),ge.jsx("div",{className:"preview-info-brand",children:ge.jsx("img",{src:o.brand_url,alt:"Brand"})})]}),ge.jsx("div",{className:"preview-info-split"}),ge.jsxs("div",{className:"preview-info-right",children:[ge.jsx("div",{className:"preview-info-device",children:o.device}),ge.jsx("div",{className:"preview-info-gps",children:o.gps})]})]})]})]}),ge.jsx("div",{className:"exhibition",children:ge.jsxs(UL,{wrap:!0,gap:"middle",horizontal:"true",justify:"center",align:"center",children:[ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("apple"),children:[ge.jsx(No,{type:"icon-apple",style:{fontSize:"16px"}}),"Apple"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("canon"),children:[ge.jsx(No,{type:"icon-jianeng",style:{fontSize:"28px"}}),"Cannon"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("dji"),children:[ge.jsx(No,{type:"icon-DJI",style:{fontSize:"28px"}}),"Dji"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("fujifilm"),children:[ge.jsx(No,{type:"icon-fushi",style:{fontSize:"28px"}}),"Fuji"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("huawei"),children:[ge.jsx(No,{type:"icon-huawei1",style:{fontSize:"16px"}}),"Huawei"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("leica"),children:[ge.jsx(No,{type:"icon-laika",style:{fontSize:"16px"}}),"Leica"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("xiaomi"),children:[ge.jsx(No,{type:"icon-icon-xiaomiguishu",style:{fontSize:"16px"}}),"Xiaomi"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("nikon"),children:[ge.jsx(No,{type:"icon-nikon",style:{fontSize:"16px"}}),"Nikon"]}),ge.jsxs(Hn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>y("sony"),children:[ge.jsx(No,{type:"icon-sony",style:{fontSize:"28px"}}),"Sony"]})]})}),ge.jsx("div",{className:"op",children:ge.jsxs(S2,{size:"large",children:[ge.jsx(Zp,{accept:"image/*",beforeUpload:v=>(a(v),!1),fileList:[],children:ge.jsx(Hn,{type:"primary",shape:"round",icon:ge.jsx(zP,{}),ghost:!0,children:"新建照片"})}),ge.jsx(Hn,{type:"primary",shape:"round",icon:ge.jsx(jC,{}),onClick:l,children:"导出照片"})]})}),ge.jsxs("div",{className:"props",children:[ge.jsx("div",{className:"props-title",children:ge.jsx($i.Title,{level:4,children:"参数"})}),ge.jsx("div",{className:"props-option",children:ge.jsxs(_n,{ref:e,labelCol:{span:4},wrapperCol:{span:14},layout:"horizontal",size:"small",style:{maxWidth:800},initialValues:o,onValuesChange:c,children:[ge.jsx(_n.Item,{label:"型号",name:"model",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"品牌",name:"brand",children:ge.jsx(Jt,{style:{width:170},children:A2.map(v=>ge.jsx(Jt.Option,{value:v.toLowerCase(),children:v},v))})}),ge.jsx(_n.Item,{label:"参数",name:"device",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"时间",name:"date",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"经纬",name:"gps",children:ge.jsx(zo,{})}),ge.jsx(_n.Item,{label:"字体大小",name:"fontSize",children:ge.jsxs(Jt,{style:{width:170},onChange:u,children:[ge.jsx(Jt.Option,{value:"small",children:"小"}),ge.jsx(Jt.Option,{value:"normal",children:"正常"}),ge.jsx(Jt.Option,{value:"large",children:"大"})]})}),ge.jsx(_n.Item,{label:"字体粗细",name:"fontWeight",children:ge.jsxs(Jt,{style:{width:170},onChange:d,children:[ge.jsx(Jt.Option,{value:"normal",children:"正常"}),ge.jsx(Jt.Option,{value:"bold",children:"加粗"}),ge.jsx(Jt.Option,{value:"black",children:"黑体"})]})}),ge.jsx(_n.Item,{label:"字体",name:"fontFamily",children:ge.jsxs(Jt,{style:{width:170},onChange:f,children:[ge.jsx(Jt.Option,{value:"default",children:"Default"}),ge.jsx(Jt.Option,{value:"misans",children:"MiSans"}),ge.jsx(Jt.Option,{value:"caveat",children:"Caveat"}),ge.jsx(Jt.Option,{value:"helvetica",children:"Helvetica Neue"}),ge.jsx(Jt.Option,{value:"futura",children:"Futura"}),ge.jsx(Jt.Option,{value:"avenir",children:"Avenir"}),ge.jsx(Jt.Option,{value:"didot",children:"Didot"})]})}),ge.jsx(_n.Item,{label:"横幅缩放",name:"scale",children:ge.jsx(RL,{min:.5,max:1.2,step:.1,onChange:m})})]})})]})]}):ge.jsx("div",{children:"Loading WASM..."})}function F9(){return ge.jsxs("a",{href:"https://github.com/zhiweio/picseal",className:"github-corner","aria-label":"View source on GitHub",children:[ge.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 250 250",style:{fill:"#70B7FD",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[ge.jsx("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),ge.jsx("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),ge.jsx("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),ge.jsx("style",{children:` .github-corner:hover .octo-arm { animation: octocat-wave 560ms ease-in-out; } diff --git a/index.html b/index.html index d4bd76d..bfa56f4 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - - + +