!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=643)}([function(e,t,n){"use strict";e.exports=n(846)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var D=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},N={};function j(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(N[e]=o),t&&(N[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=z(t,e.localeData()),L[t]=L[t]||function(e){var t,n,r,o=e.match(D);for(t=0,n=o.length;t=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var F={};function B(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function H(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)s(e,n)&&(t=H(n))&&(r[t]=e[n]);return r}var Y={};function W(e,t){Y[e]=t}function U(e){return e%4==0&&e%100!=0||e%400==0}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=K(t)),n}function q(e,t){return function(n){return null!=n?(X(this,e,n),o.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),_e(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Z=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,ae=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[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;function fe(e,t,n){J[e]=E(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return s(J,e)?J[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ve,ye={};function be(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n68?1900:2e3)};var Ie=q("FullYear",!0);function Le(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function Ne(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[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 je(e,t,n){var r=7+t-n;return-(7+Ne(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+je(e,r,o);return s<=0?a=De(i=e-1)+s:s>De(e)?(i=e+1,a=s-De(e)):(i=e,a=s),{year:i,dayOfYear:a}}function ze(e,t,n){var r,o,i=je(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Fe(o=e.year()-1,t,n):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Fe(e,t,n){var r=je(e,t,n),o=je(e+1,t,n);return(De(e)-r+o)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),W("week",5),W("isoWeek",5),fe("w",re),fe("ww",re,Q),fe("W",re),fe("WW",re,Q),we(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=G(e)})),j("d",0,"do","day"),j("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),j("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),j("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),fe("d",re),fe("e",re),fe("E",re),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),we(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:m(n).invalidWeekday=e})),we(["d","e","E"],(function(e,t,n,r){t[r]=G(e)}));var He="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=pe,Ue=pe,Ke=pe;function Ge(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=f([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?"dddd"===t?-1!==(o=ve.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ve.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ve.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ve.call(this._weekdaysParse,a))||-1!==(o=ve.call(this._shortWeekdaysParse,a))||-1!==(o=ve.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ve.call(this._shortWeekdaysParse,a))||-1!==(o=ve.call(this._weekdaysParse,a))||-1!==(o=ve.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ve.call(this._minWeekdaysParse,a))||-1!==(o=ve.call(this._weekdaysParse,a))||-1!==(o=ve.call(this._shortWeekdaysParse,a))?o:null}function qe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),o=ge(this.weekdaysShort(n,"")),i=ge(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $e(){return this.hours()%12||12}function Xe(e,t){j(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,$e),j("k",["kk",2],0,(function(){return this.hours()||24})),j("hmm",0,0,(function(){return""+$e.apply(this)+A(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+$e.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),B("hour","h"),W("hour",13),fe("a",Je),fe("A",Je),fe("H",re),fe("h",re),fe("k",re),fe("HH",re,Q),fe("hh",re,Q),fe("kk",re,Q),fe("hmm",oe),fe("hmmss",ie),fe("Hmm",oe),fe("Hmmss",ie),be(["H","HH"],3),be(["k","kk"],(function(e,t,n){var r=G(e);t[3]=24===r?0:r})),be(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),be(["h","hh"],(function(e,t,n){t[3]=G(e),m(n).bigHour=!0})),be("hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r)),m(n).bigHour=!0})),be("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(o)),m(n).bigHour=!0})),be("Hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r))})),be("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(o))}));var Ze,Qe=q("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:xe,monthsShort:Se,week:{dow:0,doy:6},weekdays:He,weekdaysMin:Ye,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}i++}return Ze}(e)}function ct(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>_e(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ut=/^\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)?)?$/,dt=/^\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)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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]],ft=[["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/]],mt=/^\/?Date\((-?\d+)/i,gt=/^(?:(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}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,r,o,i,a,s=e._i,l=ut.exec(s)||dt.exec(s);if(l){for(m(e).iso=!0,t=0,n=pt.length;t7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=ze(Pt(),i,a),n=Ct(t.gg,e._a[0],c.year),r=Ct(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Fe(n,i,a)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(s=Re(n,r,o,i,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Ct(e._a[0],r[0]),(e._dayOfYear>De(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ne(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ne:Le).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,i,a,s,l=""+e._i,c=l.length,u=0;for(r=z(e._f,e._locale).match(D)||[],t=0;t0&&m(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),u+=n.length),N[i]?(n?m(e).empty=!1:m(e).unusedTokens.push(i),Ce(i,n,e)):e._strict&&!n&&m(e).unusedTokens.push(i);m(e).charsLeftOver=c-u,l.length>0&&m(e).unusedInput.push(l),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),_t(e),ct(e)}else wt(e);else yt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new C(ct(t)):(d(t)?e._d=t:i(n)?function(e){var t,n,r,o,i,a,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:v()}));function Ot(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e(i=Fe(e,r,o))&&(t=i),un.call(this,e,t,n,r,o))}function un(e,t,n,r,o){var i=Re(e,t,n,r,o),a=Ne(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),fe("N",an),fe("NN",an),fe("NNN",an),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?m(n).era=o:m(n).invalidEra=e})),fe("y",ce),fe("yy",ce),fe("yyy",ce),fe("yyyy",ce),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),be(["y","yy","yyy","yyyy"],0),be(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),fe("G",ue),fe("g",ue),fe("GG",re,Q),fe("gg",re,Q),fe("GGGG",se,te),fe("gggg",se,te),fe("GGGGG",le,ne),fe("ggggg",le,ne),we(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=G(e)})),we(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),j("Q",0,"Qo","quarter"),B("quarter","Q"),W("quarter",7),fe("Q",Z),be("Q",(function(e,t){t[1]=3*(G(e)-1)})),j("D",["DD",2],"Do","date"),B("date","D"),W("date",9),fe("D",re),fe("DD",re,Q),fe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),be(["D","DD"],2),be("Do",(function(e,t){t[2]=G(e.match(re)[0])}));var dn=q("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),W("dayOfYear",4),fe("DDD",ae),fe("DDDD",ee),be(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),j("m",["mm",2],0,"minute"),B("minute","m"),W("minute",14),fe("m",re),fe("mm",re,Q),be(["m","mm"],4);var hn=q("Minutes",!1);j("s",["ss",2],0,"second"),B("second","s"),W("second",15),fe("s",re),fe("ss",re,Q),be(["s","ss"],5);var pn,fn,mn=q("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),W("millisecond",16),fe("S",ae,Z),fe("SS",ae,Q),fe("SSS",ae,ee),pn="SSSS";pn.length<=9;pn+="S")fe(pn,ce);function gn(e,t){t[6]=G(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")be(pn,gn);fn=q("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var vn=C.prototype;function yn(e){return e}vn.add=Gt,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Pt(),r=Rt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(E(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Pt(n)))},vn.clone=function(){return new C(this)},vn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Rt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=H(t)){case"year":i=Zt(this,r)/12;break;case"month":i=Zt(this,r);break;case"quarter":i=Zt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:K(i)},vn.endOf=function(e){var t,n;if(void 0===(e=H(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,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+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(Pt(),e)},vn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Pt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(Pt(),e)},vn.get=function(e){return E(this[e=H(e)])?this[e]():this},vn.invalidAt=function(){return m(this).overflow},vn.isAfter=function(e,t){var n=_(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Ft,vn.isUTC=Ft,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=S("dates accessor is deprecated. Use date instead.",dn),vn.months=S("months accessor is deprecated. Use month instead",Me),vn.years=S("years accessor is deprecated. Use year instead",Ie),vn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=St(t))._a?(e=t._isUTC?f(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var bn=M.prototype;function wn(e,t,n,r){var o=lt(),i=f().set(r,t);return o[n](i,e)}function Cn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return wn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=wn(e,r,n,"month");return o}function _n(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=lt(),a=e?i._week.dow:0,s=[];if(null!=n)return wn(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=wn(t,(o+a)%7,r,"day");return s}bn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r},bn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(e){return this._ordinal.replace("%d",e)},bn.preparse=yn,bn.postformat=yn,bn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return E(o)?o(e,t,n,r):o.replace(/%d/i,e)},bn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},bn.set=function(e){var t,n;for(n in e)s(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.eras=function(e,t){var n,r,i,a=this._eras||lt("en")._eras;for(n=0,r=a.length;n=0)return l[r]},bn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},bn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},bn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},bn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},bn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},bn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ee.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},bn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},bn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},bn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},bn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=f([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&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},bn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ke),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},bn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("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;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=S("moment.lang is deprecated. Use moment.locale instead.",at),o.langData=S("moment.langData is deprecated. Use moment.localeData instead.",lt);var xn=Math.abs;function Sn(e,t,n,r){var o=Vt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var On=En("ms"),Mn=En("s"),An=En("m"),Dn=En("h"),In=En("d"),Ln=En("w"),Nn=En("M"),jn=En("Q"),Rn=En("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=zn("milliseconds"),Bn=zn("seconds"),Hn=zn("minutes"),Vn=zn("hours"),Yn=zn("days"),Wn=zn("months"),Un=zn("years"),Kn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var $n=Math.abs;function Xn(e){return(e>0)-(e<0)||+e}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=$n(this._milliseconds)/1e3,c=$n(this._days),u=$n(this._months),d=this.asSeconds();return d?(e=K(l/60),t=K(e/60),l%=60,e%=60,n=K(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=Xn(this._months)!==Xn(d)?"-":"",a=Xn(this._days)!==Xn(d)?"-":"",s=Xn(this._milliseconds)!==Xn(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Zn=At.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},Zn.add=function(e,t){return Sn(this,e,t,1)},Zn.subtract=function(e,t){return Sn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=H(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Zn.asMilliseconds=On,Zn.asSeconds=Mn,Zn.asMinutes=An,Zn.asHours=Dn,Zn.asDays=In,Zn.asWeeks=Ln,Zn.asMonths=Nn,Zn.asQuarters=jn,Zn.asYears=Rn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Zn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*kn(Tn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=K(i/1e3),l.seconds=e%60,t=K(e/60),l.minutes=t%60,n=K(t/60),l.hours=n%24,a+=K(n/24),o=K(Pn(a)),s+=o,a-=kn(Tn(o)),r=K(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Zn.clone=function(){return Vt(this)},Zn.get=function(e){return e=H(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Fn,Zn.seconds=Bn,Zn.minutes=Hn,Zn.hours=Vn,Zn.days=Yn,Zn.weeks=function(){return K(this.days()/7)},Zn.months=Wn,Zn.years=Un,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Gn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Gn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Vt(e).abs(),i=Kn(o.as("s")),a=Kn(o.as("m")),s=Kn(o.as("h")),l=Kn(o.as("d")),c=Kn(o.as("M")),u=Kn(o.as("w")),d=Kn(o.as("y")),h=i<=n.ss&&["s",i]||i0,h[4]=r,qn.apply(null,h)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Jn,Zn.toString=Jn,Zn.toJSON=Jn,Zn.locale=Qt,Zn.localeData=tn,Zn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Zn.lang=en,j("X",0,0,"unix"),j("x",0,0,"valueOf"),fe("x",ue),fe("X",/[+-]?\d+(\.\d{1,3})?/),be("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),be("x",(function(e,t,n){n._d=new Date(G(e))})), //! moment.js o.version="2.29.1",t=Pt,o.fn=vn,o.min=function(){var e=[].slice.call(arguments,0);return Ot("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return Ot("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=f,o.unix=function(e){return Pt(1e3*e)},o.months=function(e,t){return Cn(e,t,"months")},o.isDate=d,o.locale=at,o.invalid=v,o.duration=Vt,o.isMoment=_,o.weekdays=function(e,t,n){return _n(e,t,n,"weekdays")},o.parseZone=function(){return Pt.apply(null,arguments).parseZone()},o.localeData=lt,o.isDuration=Dt,o.monthsShort=function(e,t){return Cn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return _n(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(O(tt[e]._config,t)):(null!=(r=it(e))&&(o=r._config),t=O(o,t),null==r&&(t.abbr=e),(n=new M(t)).parentLocale=tt[e],tt[e]=n),at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===at()&&at(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return k(tt)},o.weekdaysShort=function(e,t,n){return _n(e,t,n,"weekdaysShort")},o.normalizeUnits=H,o.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=vn,o.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"},o}()}).call(this,n(202)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.languageManager=void 0;const r=n(7),o=n(880),i=n(881),a=n(882),s=n(113);n(103),n(276),n(171);var l;!function(e){e.zhCN="zh-cn",e.enUS="en-us",e.zhTW="zh-tw"}(l||(l={}));class c{constructor(){this.useLanguage=o.default,this.languageList={[l.zhCN]:o.default,[l.enUS]:i.default,[l.zhTW]:a.default},this.useLanguage=this.languageConfig}static get simple(){let e;return()=>(e||(e=new c),e)}get currentLanguage(){var e;try{return(null===(e=s.getOfflineDemoData())||void 0===e?void 0:e.config.lang)||l.zhCN}catch(e){return l.zhCN}}get languageVersion(){try{return(null===window||void 0===window?void 0:window.LANG)||l.zhCN}catch(e){return l.zhCN}}get isZHVersion(){const e=this.languageVersion;return e===l.zhTW||e===l.zhCN}get isEnVersion(){return!this.isZHVersion}get isZHLanguage(){const e=this.currentLanguage;return e===l.zhCN||e===l.zhTW}get isEnLanguage(){return this.currentLanguage===l.enUS}get languageConfig(){return this.languageList[this.currentLanguage]}getLanguageValue(e){return this.useLanguage[e]}}t.languageManager=c.simple(),t.default=(e,...n)=>{let o,i;return o=e.split("."),i=void 0,r.each(o,e=>i=r.isUndefined(i)?t.languageManager.getLanguageValue(e):i[e]),r.isUndefined(i)?(console.log(`i18n 错误: ${e} not exist`),""):r.isString(i)?i.replace(/{(\d+)}/g,(e,t)=>r.isUndefined(n[t])?e:n[t]):(console.log(`[i18n error] ${e} not string`),"")}},function(e,t,n){var r=n(21),o=n(79),i=n(65),a=n(66),s=n(80),l=function(e,t,n){var c,u,d,h,p=e&l.F,f=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=f?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=f?o:o[t]||(o[t]={}),w=b.prototype||(b.prototype={});for(c in f&&(n=t),n)d=((u=!p&&y&&void 0!==y[c])?y:n)[c],h=v&&u?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&l.U),b[c]!=d&&i(b,c,h),g&&w[c]!=d&&(w[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MoveMode=t.SizeMode=t.isBasicComp=t.isShapeText=t.isRichText=t.isTextType=t.TextTypes=t.CViewport=t.CHotArea=t.CArtboard=t.CTable=t.CTreeItem=t.CTree=t.CKeyboard=t.CNumericStep=t.CQRCode=t.CSlider=t.CSelect=t.CSymbol=t.CSelectPanel=t.CListLayoutPanel=t.CContentPanel=t.CGridPanel=t.CWrapPanel=t.CStackPanel=t.CCanvasPanel=t.CGroup=t.CPureText=t.CArc=t.CButton=t.CConnector=t.CSvg=t.CAudio=t.CVideo=t.CTextArea=t.CInput=t.CParagraph=t.CText=t.CPolygon=t.CCompoundPath=t.CPath=t.CLine=t.CSnapshot=t.CImage=t.CIcon=t.CEllipse=t.CRect=void 0,t.CRect="rect",t.CEllipse="ellipse",t.CIcon="icon",t.CImage="image",t.CSnapshot="snapshot",t.CLine="line",t.CPath="path",t.CCompoundPath="compoundPath",t.CPolygon="polygon",t.CText="text",t.CParagraph="paragraph",t.CInput="input",t.CTextArea="textarea",t.CVideo="video",t.CAudio="audio",t.CSvg="svg",t.CConnector="connector",t.CButton="button",t.CArc="arc",t.CPureText="pureText",t.CGroup="group",t.CCanvasPanel="canvas-panel",t.CStackPanel="stack-panel",t.CWrapPanel="wrap-panel",t.CGridPanel="grid-panel",t.CContentPanel="content-panel",t.CListLayoutPanel="list-layout-panel",t.CSelectPanel="select-panel",t.CSymbol="symbol",t.CSelect="select",t.CSlider="slider",t.CQRCode="qrcode",t.CNumericStep="numericStep",t.CKeyboard="keyboard",t.CTree="tree",t.CTreeItem="treeItem",t.CTable="tabel",t.CArtboard="artboard",t.CHotArea="hot-area",t.CViewport="viewPort",t.TextTypes=[t.CPureText,t.CText,t.CParagraph,t.CInput,t.CTextArea],t.isTextType=function(e){return-1!==t.TextTypes.indexOf(e)},t.isRichText=function(e){return-1!==[t.CText,t.CParagraph,t.CRect,t.CEllipse,t.CLine,t.CPath,t.CPolygon].indexOf(e)},t.isShapeText=function(e){return-1!==[t.CRect,t.CEllipse,t.CLine,t.CPath,t.CPolygon,t.CCompoundPath].indexOf(e)},t.isBasicComp=function(e){return!!e&&-1!==[t.CRect,t.CEllipse,t.CLine,t.CPath,t.CPolygon].indexOf(e)},function(e){e[e.custom=0]="custom",e[e.ratio=1]="ratio",e[e.vertical=2]="vertical",e[e.horizontal=3]="horizontal",e[e.none=4]="none"}(t.SizeMode||(t.SizeMode={})),function(e){e[e.custom=0]="custom",e[e.vertical=1]="vertical",e[e.horizontal=2]="horizontal",e[e.neither=3]="neither"}(t.MoveMode||(t.MoveMode={}))},function(e,t,n){(function(e,r){var o; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var i="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",w="[object String]",C="[object Symbol]",_="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",k="[object Float32Array]",P="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",M="[object Uint8Array]",A="[object Uint16Array]",D="[object Uint32Array]",I=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,z=RegExp(j.source),F=RegExp(R.source),B=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,G=RegExp(K.source),q=/^\s+/,$=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fe="[\\ud800-\\udfff]",me="["+pe+"]",ge="["+he+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+pe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Pe="(?:"+be+"|"+we+")",Te="(?:"+ke+"|"+we+")",Ee="(?:"+ge+"|"+Ce+")"+"?",Oe="[\\ufe0e\\ufe0f]?"+Ee+("(?:\\u200d(?:"+[_e,xe,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Ee+")*"),Me="(?:"+[ye,xe,Se].join("|")+")"+Oe,Ae="(?:"+[_e+ge+"?",ge,xe,Se,fe].join("|")+")",De=RegExp("['’]","g"),Ie=RegExp(ge,"g"),Le=RegExp(Ce+"(?="+Ce+")|"+Ae+Oe,"g"),Ne=RegExp([ke+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,ke,"$"].join("|")+")",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,ke+Pe,"$"].join("|")+")",ke+"?"+Pe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Me].join("|"),"g"),je=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,Be={};Be[k]=Be[P]=Be[T]=Be[E]=Be[O]=Be[M]=Be["[object Uint8ClampedArray]"]=Be[A]=Be[D]=!0,Be[l]=Be[c]=Be[x]=Be[u]=Be[S]=Be[d]=Be[h]=Be[p]=Be[m]=Be[g]=Be[v]=Be[y]=Be[b]=Be[w]=Be[_]=!1;var He={};He[l]=He[c]=He[x]=He[S]=He[u]=He[d]=He[k]=He[P]=He[T]=He[E]=He[O]=He[m]=He[g]=He[v]=He[y]=He[b]=He[w]=He[C]=He[M]=He["[object Uint8ClampedArray]"]=He[A]=He[D]=!0,He[h]=He[p]=He[_]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ye=parseFloat,We=parseInt,Ue="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ue||Ke||Function("return this")(),qe=t&&!t.nodeType&&t,$e=qe&&"object"==typeof r&&r&&!r.nodeType&&r,Xe=$e&&$e.exports===qe,Je=Xe&&Ue.process,Ze=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Qe=Ze&&Ze.isArrayBuffer,et=Ze&&Ze.isDate,tt=Ze&&Ze.isMap,nt=Ze&&Ze.isRegExp,rt=Ze&&Ze.isSet,ot=Ze&&Ze.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function ht(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Nt(e,t){for(var n=e.length;n--&&Ct(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rt=Pt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),zt=Pt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+Ve[e]}function Bt(e){return je.test(e)}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function Yt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Xt=function e(t){var n,r=(t=null==t?Ge:Xt.defaults(Ge.Object(),t,Xt.pick(Ge,ze))).Array,o=t.Date,$=t.Error,he=t.Function,pe=t.Math,fe=t.Object,me=t.RegExp,ge=t.String,ve=t.TypeError,ye=r.prototype,be=he.prototype,we=fe.prototype,Ce=t["__core-js_shared__"],_e=be.toString,xe=we.hasOwnProperty,Se=0,ke=(n=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Pe=we.toString,Te=_e.call(fe),Ee=Ge._,Oe=me("^"+_e.call(xe).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Xe?t.Buffer:void 0,Ae=t.Symbol,Le=t.Uint8Array,je=Me?Me.allocUnsafe:void 0,Ve=Vt(fe.getPrototypeOf,fe),Ue=fe.create,Ke=we.propertyIsEnumerable,qe=ye.splice,$e=Ae?Ae.isConcatSpreadable:void 0,Je=Ae?Ae.iterator:void 0,Ze=Ae?Ae.toStringTag:void 0,yt=function(){try{var e=ti(fe,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pt=t.clearTimeout!==Ge.clearTimeout&&t.clearTimeout,Jt=o&&o.now!==Ge.Date.now&&o.now,Zt=t.setTimeout!==Ge.setTimeout&&t.setTimeout,Qt=pe.ceil,en=pe.floor,tn=fe.getOwnPropertySymbols,nn=Me?Me.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=Vt(fe.keys,fe),sn=pe.max,ln=pe.min,cn=o.now,un=t.parseInt,dn=pe.random,hn=ye.reverse,pn=ti(t,"DataView"),fn=ti(t,"Map"),mn=ti(t,"Promise"),gn=ti(t,"Set"),vn=ti(t,"WeakMap"),yn=ti(fe,"create"),bn=vn&&new vn,wn={},Cn=Ei(pn),_n=Ei(fn),xn=Ei(mn),Sn=Ei(gn),kn=Ei(vn),Pn=Ae?Ae.prototype:void 0,Tn=Pn?Pn.valueOf:void 0,En=Pn?Pn.toString:void 0;function On(e){if(Ua(e)&&!La(e)&&!(e instanceof In)){if(e instanceof Dn)return e;if(xe.call(e,"__wrapped__"))return Oi(e)}return new Dn(e)}var Mn=function(){function e(){}return function(t){if(!Wa(t))return{};if(Ue)return Ue(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function An(){}function Dn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function In(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,i){var a,s=1&t,c=2&t,h=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!Wa(e))return e;var _=La(e);if(_){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bo(e,a)}else{var I=oi(e),L=I==p||I==f;if(za(e))return po(e,s);if(I==v||I==l||L&&!o){if(a=c||L?{}:ai(e),!s)return c?function(e,t){return wo(e,ri(e),t)}(e,function(e,t){return e&&wo(t,_s(t),e)}(a,e)):function(e,t){return wo(e,ni(e),t)}(e,Gn(a,e))}else{if(!He[I])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case x:return fo(e);case u:case d:return new r(+e);case S:return function(e,t){var n=t?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case P:case T:case E:case O:case M:case"[object Uint8ClampedArray]":case A:case D:return mo(e,n);case m:return new r;case g:case w:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case C:return o=e,Tn?fe(Tn.call(o)):{}}var o}(e,I,s)}}i||(i=new zn);var N=i.get(e);if(N)return N;i.set(e,a),Xa(e)?e.forEach((function(r){a.add(Jn(r,t,n,r,e,i))})):Ka(e)&&e.forEach((function(r,o){a.set(o,Jn(r,t,n,o,e,i))}));var j=_?void 0:(h?c?qo:Go:c?_s:Cs)(e);return st(j||e,(function(r,o){j&&(r=e[o=r]),Wn(a,o,Jn(r,t,n,o,e,i))})),a}function Zn(e,t,n){var r=n.length;if(null==e)return!r;for(e=fe(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ve(i);return Ci((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=dt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=pt(t,At(n))),r?(i=ht,a=!1):t.length>=200&&(i=It,a=!1,t=new Rn(t));e:for(;++o-1},Nn.prototype.set=function(e,t){var n=this.__data__,r=Un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Ln,map:new(fn||Nn),string:new Ln}},jn.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},jn.prototype.get=function(e){return Qo(this,e).get(e)},jn.prototype.has=function(e){return Qo(this,e).has(e)},jn.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new Nn,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!fn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jn(r)}return n.set(e,t),this.size=n.size,this};var tr=xo(cr),nr=xo(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,o):ft(o,s):r||(o[o.length]=s)}return o}var sr=So(),lr=So(!0);function cr(e,t){return e&&sr(e,t,Cs)}function ur(e,t){return e&&lr(e,t,Cs)}function dr(e,t){return ut(t,(function(t){return Ha(e[t])}))}function hr(e,t){for(var n=0,r=(t=lo(t,e)).length;null!=e&&nt}function gr(e,t){return null!=e&&xe.call(e,t)}function vr(e,t){return null!=e&&t in fe(e)}function yr(e,t,n){for(var o=n?ht:dt,i=e[0].length,a=e.length,s=a,l=r(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=pt(d,At(t))),c=ln(d.length,c),l[s]=!n&&(t||i>=120&&d.length>=120)?new Rn(s&&d):void 0}d=e[0];var h=-1,p=l[0];e:for(;++h=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Lr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&qe.call(s,l,1),qe.call(e,l,1);return e}function jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;li(o)?qe.call(e,o,1):eo(e,o)}}return e}function Rr(e,t){return e+en(dn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return _i(gi(e,t,Gs),e+"")}function Br(e){return Bn(Ms(e))}function Hr(e,t){var n=Ms(e);return ki(n,Xn(t,0,n.length))}function Vr(e,t,n,r){if(!Wa(e))return e;for(var o=-1,i=(t=lo(t,e)).length,a=i-1,s=e;null!=s&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Za(a)&&(n?a<=t:a=200){var c=t?null:Fo(e);if(c)return Wt(c);a=!1,o=It,l=new Rn}else l=t?[]:s;e:for(;++r=r?e:Kr(e,t,n)}var ho=Pt||function(e){return Ge.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=je?je(n):new e.constructor(n);return e.copy(r),r}function fo(e){var t=new e.constructor(e.byteLength);return new Le(t).set(new Le(e)),t}function mo(e,t){var n=t?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function go(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Za(e),a=void 0!==t,s=null===t,l=t==t,c=Za(t);if(!s&&!c&&!i&&e>t||i&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!c&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ci(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=fe(t);++r-1?o[i?t[a]:a]:void 0}}function Oo(e){return Ko((function(t){var n=t.length,r=n,o=Dn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(i);if(o&&!s&&"wrapper"==Xo(a))var s=new Dn([],!0)}for(r=s?r:n;++r1&&b.reverse(),d&&cs))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&n?new Rn:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(r),n)))}function Si(e){var t=0,n=0;return function(){var r=cn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ki(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$i(e,n)}));function na(e){var t=On(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Ko((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof In&&li(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new Dn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=Co((function(e,t,n){xe.call(e,n)?++e[n]:qn(e,n,1)}));var aa=Eo(Ii),sa=Eo(Li);function la(e,t){return(La(e)?st:tr)(e,Zo(t,3))}function ca(e,t){return(La(e)?lt:nr)(e,Zo(t,3))}var ua=Co((function(e,t,n){xe.call(e,n)?e[n].push(t):qn(e,n,[t])}));var da=Fr((function(e,t,n){var o=-1,i="function"==typeof t,a=ja(e)?r(e.length):[];return tr(e,(function(e){a[++o]=i?it(t,e,n):br(e,t,n)})),a})),ha=Co((function(e,t,n){qn(e,n,t)}));function pa(e,t){return(La(e)?pt:Er)(e,Zo(t,3))}var fa=Co((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ma=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ci(e,t[0],t[1])?t=[]:n>2&&ci(t[0],t[1],t[2])&&(t=[t[0]]),Ir(e,ar(t,1),[])})),ga=Jt||function(){return Ge.Date.now()};function va(e,t,n){return t=n?void 0:t,Ho(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new ve(i);return e=os(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Fr((function(e,t,n){var r=1;if(n.length){var o=Yt(n,Jo(ba));r|=32}return Ho(e,r,t,n,o)})),wa=Fr((function(e,t,n){var r=3;if(n.length){var o=Yt(n,Jo(wa));r|=32}return Ho(t,r,e,n,o)}));function Ca(e,t,n){var r,o,a,s,l,c,u=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new ve(i);function f(t){var n=r,i=o;return r=o=void 0,u=t,s=e.apply(i,n)}function m(e){return u=e,l=Ci(v,t),d?f(e):s}function g(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=a}function v(){var e=ga();if(g(e))return y(e);l=Ci(v,function(e){var n=t-(e-c);return h?ln(n,a-(e-u)):n}(e))}function y(e){return l=void 0,p&&r?f(e):(r=o=void 0,s)}function b(){var e=ga(),n=g(e);if(r=arguments,o=this,c=e,n){if(void 0===l)return m(c);if(h)return ho(l),l=Ci(v,t),f(c)}return void 0===l&&(l=Ci(v,t)),s}return t=as(t)||0,Wa(n)&&(d=!!n.leading,a=(h="maxWait"in n)?sn(as(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==l&&ho(l),u=0,r=c=o=l=void 0},b.flush=function(){return void 0===l?s:y(ga())},b}var _a=Fr((function(e,t){return Qn(e,1,t)})),xa=Fr((function(e,t,n){return Qn(e,as(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Sa.Cache||jn),n}function ka(e){if("function"!=typeof e)throw new ve(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=jn;var Pa=co((function(e,t){var n=(t=1==t.length&&La(t[0])?pt(t[0],At(Zo())):pt(ar(t,1),At(Zo()))).length;return Fr((function(r){for(var o=-1,i=ln(r.length,n);++o=t})),Ia=wr(function(){return arguments}())?wr:function(e){return Ua(e)&&xe.call(e,"callee")&&!Ke.call(e,"callee")},La=r.isArray,Na=Qe?At(Qe):function(e){return Ua(e)&&fr(e)==x};function ja(e){return null!=e&&Ya(e.length)&&!Ha(e)}function Ra(e){return Ua(e)&&ja(e)}var za=nn||al,Fa=et?At(et):function(e){return Ua(e)&&fr(e)==d};function Ba(e){if(!Ua(e))return!1;var t=fr(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!qa(e)}function Ha(e){if(!Wa(e))return!1;var t=fr(e);return t==p||t==f||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==os(e)}function Ya(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ua(e){return null!=e&&"object"==typeof e}var Ka=tt?At(tt):function(e){return Ua(e)&&oi(e)==m};function Ga(e){return"number"==typeof e||Ua(e)&&fr(e)==g}function qa(e){if(!Ua(e)||fr(e)!=v)return!1;var t=Ve(e);if(null===t)return!0;var n=xe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_e.call(n)==Te}var $a=nt?At(nt):function(e){return Ua(e)&&fr(e)==y};var Xa=rt?At(rt):function(e){return Ua(e)&&oi(e)==b};function Ja(e){return"string"==typeof e||!La(e)&&Ua(e)&&fr(e)==w}function Za(e){return"symbol"==typeof e||Ua(e)&&fr(e)==C}var Qa=ot?At(ot):function(e){return Ua(e)&&Ya(e.length)&&!!Be[fr(e)]};var es=jo(Tr),ts=jo((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(ja(e))return Ja(e)?Gt(e):bo(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=oi(e);return(t==m?Ht:t==b?Wt:Ms)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function os(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Xn(os(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Za(e))return NaN;if(Wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Mt(e);var n=ie.test(e);return n||se.test(e)?We(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function ss(e){return wo(e,_s(e))}function ls(e){return null==e?"":Zr(e)}var cs=_o((function(e,t){if(pi(t)||ja(t))wo(t,Cs(t),e);else for(var n in t)xe.call(t,n)&&Wn(e,n,t[n])})),us=_o((function(e,t){wo(t,_s(t),e)})),ds=_o((function(e,t,n,r){wo(t,_s(t),e,r)})),hs=_o((function(e,t,n,r){wo(t,Cs(t),e,r)})),ps=Ko($n);var fs=Fr((function(e,t){e=fe(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ci(t[0],t[1],o)&&(r=1);++n1),t})),wo(e,qo(e),n),r&&(n=Jn(n,7,Wo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Ps=Ko((function(e,t){return null==e?{}:function(e,t){return Lr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ts(e,t){if(null==e)return{};var n=pt(qo(e),(function(e){return[e]}));return t=Zo(t),Lr(e,n,(function(e,n){return t(e,n[0])}))}var Es=Bo(Cs),Os=Bo(_s);function Ms(e){return null==e?[]:Dt(e,Cs(e))}var As=Po((function(e,t,n){return t=t.toLowerCase(),e+(n?Ds(t):t)}));function Ds(e){return Bs(ls(e).toLowerCase())}function Is(e){return(e=ls(e))&&e.replace(ce,Rt).replace(Ie,"")}var Ls=Po((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ns=Po((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),js=ko("toLowerCase");var Rs=Po((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=Po((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Fs=Po((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=ko("toUpperCase");function Hs(e,t,n){return e=ls(e),void 0===(t=n?void 0:t)?function(e){return Re.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Vs=Fr((function(e,t){try{return it(e,void 0,t)}catch(e){return Ba(e)?e:new $(e)}})),Ys=Ko((function(e,t){return st(t,(function(t){t=Ti(t),qn(e,t,ba(e[t],e))})),e}));function Ws(e){return function(){return e}}var Us=Oo(),Ks=Oo(!0);function Gs(e){return e}function qs(e){return Sr("function"==typeof e?e:Jn(e,1))}var $s=Fr((function(e,t){return function(n){return br(n,e,t)}})),Xs=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Js(e,t,n){var r=Cs(t),o=dr(t,r);null!=n||Wa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=dr(t,Cs(t)));var i=!(Wa(n)&&"chain"in n&&!n.chain),a=Ha(e);return st(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ft([this.value()],arguments))})})),e}function Zs(){}var Qs=Io(pt),el=Io(ct),tl=Io(vt);function nl(e){return ui(e)?kt(Ti(e)):function(e){return function(t){return hr(t,e)}}(e)}var rl=No(),ol=No(!0);function il(){return[]}function al(){return!1}var sl=Do((function(e,t){return e+t}),0),ll=zo("ceil"),cl=Do((function(e,t){return e/t}),1),ul=zo("floor");var dl,hl=Do((function(e,t){return e*t}),1),pl=zo("round"),fl=Do((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ve(i);return e=os(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=va,On.assign=cs,On.assignIn=us,On.assignInWith=ds,On.assignWith=hs,On.at=ps,On.before=ya,On.bind=ba,On.bindAll=Ys,On.bindKey=wa,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return La(e)?e:[e]},On.chain=na,On.chunk=function(e,t,n){t=(n?ci(e,t,n):void 0===t)?1:sn(os(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=r(Qt(o/t));io?0:o+n),(r=void 0===r||r>o?o:os(r))<0&&(r+=o),r=n>r?0:is(r);n>>0)?(e=ls(e))&&("string"==typeof t||null!=t&&!$a(t))&&!(t=Zr(t))&&Bt(e)?uo(Gt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ve(i);return t=null==t?0:sn(os(t),0),Fr((function(n){var r=n[t],o=uo(n,0,t);return r&&ft(o,r),it(e,this,o)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Kr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Kr(e,0,(t=n||void 0===t?1:os(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,(t=r-(t=n||void 0===t?1:os(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?no(e,Zo(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?no(e,Zo(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ve(i);return Wa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:r,maxWait:t,trailing:o})},On.thru=ra,On.toArray=ns,On.toPairs=Es,On.toPairsIn=Os,On.toPath=function(e){return La(e)?pt(e,Ti):Za(e)?[e]:bo(Pi(ls(e)))},On.toPlainObject=ss,On.transform=function(e,t,n){var r=La(e),o=r||za(e)||Qa(e);if(t=Zo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Wa(e)&&Ha(i)?Mn(Ve(e)):{}}return(o?st:cr)(e,(function(e,r,o){return t(n,e,r,o)})),n},On.unary=function(e){return va(e,1)},On.union=Ui,On.unionBy=Ki,On.unionWith=Gi,On.uniq=function(e){return e&&e.length?Qr(e):[]},On.uniqBy=function(e,t){return e&&e.length?Qr(e,Zo(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},On.unset=function(e,t){return null==e||eo(e,t)},On.unzip=qi,On.unzipWith=$i,On.update=function(e,t,n){return null==e?e:to(e,t,so(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,so(n),r)},On.values=Ms,On.valuesIn=function(e){return null==e?[]:Dt(e,_s(e))},On.without=Xi,On.words=Hs,On.wrap=function(e,t){return Ta(so(t),e)},On.xor=Ji,On.xorBy=Zi,On.xorWith=Qi,On.zip=ea,On.zipObject=function(e,t){return io(e||[],t||[],Wn)},On.zipObjectDeep=function(e,t){return io(e||[],t||[],Vr)},On.zipWith=ta,On.entries=Es,On.entriesIn=Os,On.extend=us,On.extendWith=ds,Js(On,On),On.add=sl,On.attempt=Vs,On.camelCase=As,On.capitalize=Ds,On.ceil=ll,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Xn(as(e),t,n)},On.clone=function(e){return Jn(e,4)},On.cloneDeep=function(e){return Jn(e,5)},On.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Zn(e,t,Cs(t))},On.deburr=Is,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=cl,On.endsWith=function(e,t,n){e=ls(e),t=Zr(t);var r=e.length,o=n=void 0===n?r:Xn(os(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},On.eq=Ma,On.escape=function(e){return(e=ls(e))&&F.test(e)?e.replace(R,zt):e},On.escapeRegExp=function(e){return(e=ls(e))&&G.test(e)?e.replace(K,"\\$&"):e},On.every=function(e,t,n){var r=La(e)?ct:rr;return n&&ci(e,t,n)&&(t=void 0),r(e,Zo(t,3))},On.find=aa,On.findIndex=Ii,On.findKey=function(e,t){return bt(e,Zo(t,3),cr)},On.findLast=sa,On.findLastIndex=Li,On.findLastKey=function(e,t){return bt(e,Zo(t,3),ur)},On.floor=ul,On.forEach=la,On.forEachRight=ca,On.forIn=function(e,t){return null==e?e:sr(e,Zo(t,3),_s)},On.forInRight=function(e,t){return null==e?e:lr(e,Zo(t,3),_s)},On.forOwn=function(e,t){return e&&cr(e,Zo(t,3))},On.forOwnRight=function(e,t){return e&&ur(e,Zo(t,3))},On.get=gs,On.gt=Aa,On.gte=Da,On.has=function(e,t){return null!=e&&ii(e,t,gr)},On.hasIn=vs,On.head=ji,On.identity=Gs,On.includes=function(e,t,n,r){e=ja(e)?e:Ms(e),n=n&&!r?os(n):0;var o=e.length;return n<0&&(n=sn(o+n,0)),Ja(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ct(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:os(n);return o<0&&(o=sn(r+o,0)),Ct(e,t,o)},On.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=ln(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=Xa,On.isString=Ja,On.isSymbol=Za,On.isTypedArray=Qa,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ua(e)&&oi(e)==_},On.isWeakSet=function(e){return Ua(e)&&"[object WeakSet]"==fr(e)},On.join=function(e,t){return null==e?"":on.call(e,t)},On.kebabCase=Ls,On.last=Bi,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=os(n))<0?sn(r+o,0):ln(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):wt(e,xt,o,!0)},On.lowerCase=Ns,On.lowerFirst=js,On.lt=es,On.lte=ts,On.max=function(e){return e&&e.length?or(e,Gs,mr):void 0},On.maxBy=function(e,t){return e&&e.length?or(e,Zo(t,2),mr):void 0},On.mean=function(e){return St(e,Gs)},On.meanBy=function(e,t){return St(e,Zo(t,2))},On.min=function(e){return e&&e.length?or(e,Gs,Tr):void 0},On.minBy=function(e,t){return e&&e.length?or(e,Zo(t,2),Tr):void 0},On.stubArray=il,On.stubFalse=al,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=hl,On.nth=function(e,t){return e&&e.length?Dr(e,os(t)):void 0},On.noConflict=function(){return Ge._===this&&(Ge._=Ee),this},On.noop=Zs,On.now=ga,On.pad=function(e,t,n){e=ls(e);var r=(t=os(t))?Kt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Lo(en(o),n)+e+Lo(Qt(o),n)},On.padEnd=function(e,t,n){e=ls(e);var r=(t=os(t))?Kt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=dn();return ln(e+o*(t-e+Ye("1e-"+((o+"").length-1))),t)}return Rr(e,t)},On.reduce=function(e,t,n){var r=La(e)?mt:Tt,o=arguments.length<3;return r(e,Zo(t,4),n,o,tr)},On.reduceRight=function(e,t,n){var r=La(e)?gt:Tt,o=arguments.length<3;return r(e,Zo(t,4),n,o,nr)},On.repeat=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:os(t),zr(ls(e),t)},On.replace=function(){var e=arguments,t=ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,o=(t=lo(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var o=Ot(r,t=Zo(t));++n=i)return e;var s=n-Kt(r);if(s<1)return r;var l=a?uo(a,0,s).join(""):e.slice(0,s);if(void 0===o)return l+r;if(a&&(s+=l.length-s),$a(o)){if(e.slice(s).search(o)){var c,u=l;for(o.global||(o=me(o.source,ls(re.exec(o))+"g")),o.lastIndex=0;c=o.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Zr(o),s)!=s){var h=l.lastIndexOf(o);h>-1&&(l=l.slice(0,h))}return l+r},On.unescape=function(e){return(e=ls(e))&&z.test(e)?e.replace(j,$t):e},On.uniqueId=function(e){var t=++Se;return ls(e)+t},On.upperCase=Fs,On.upperFirst=Bs,On.each=la,On.eachRight=ca,On.first=ji,Js(On,(dl={},cr(On,(function(e,t){xe.call(On.prototype,t)||(dl[t]=e)})),dl),{chain:!1}),On.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){In.prototype[e]=function(n){n=void 0===n?1:sn(os(n),0);var r=this.__filtered__&&!t?new In(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},In.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;In.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");In.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");In.prototype[e]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Gs)},In.prototype.find=function(e){return this.filter(e).head()},In.prototype.findLast=function(e){return this.reverse().find(e)},In.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new In(this):this.map((function(n){return br(n,e,t)}))})),In.prototype.reject=function(e){return this.filter(ka(Zo(e)))},In.prototype.slice=function(e,t){e=os(e);var n=this;return n.__filtered__&&(e>0||t<0)?new In(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=os(t))<0?n.dropRight(-t):n.take(t-e)),n)},In.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},cr(In.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=On[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof In,l=a[0],c=s||La(t),u=function(e){var t=o.apply(On,ft([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=i&&!d,f=s&&!h;if(!i&&c){t=f?t:new In(this);var m=e.apply(t,a);return m.__actions__.push({func:ra,args:[u],thisArg:void 0}),new Dn(m,d)}return p&&f?e.apply(this,a):(m=this.thru(u),p?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(La(o)?o:[],e)}return this[n]((function(n){return t.apply(La(n)?n:[],e)}))}})),cr(In.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";xe.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Mo(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var e=new In(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},In.prototype.reverse=function(){if(this.__filtered__){var e=new In(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},In.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=La(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof An;){var r=Oi(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof In){var t=e;return this.__actions__.length&&(t=new In(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Wi],thisArg:void 0}),new Dn(t,this.__chain__)}return this.thru(Wi)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Je&&(On.prototype[Je]=function(){return this}),On}();Ge._=Xt,void 0===(o=function(){return Xt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(64),n(202)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceOrUnshiftArray=t.replaceOrPushArray=t.replaceArray=t.autoSerialnumber=t.to12Precision=t.scaleObjectValue=t.betweenNumber=t.flatArray=t.replaceArrayItem=t.isNotEmpty=t.getCountNumInArray=t.isInputting=t.calcValueFromText=t.validateNumberText=t.throttle=t.debounce=t.removeItemFromArray=t.moveArrayItems=t.moveArrayItem=t.isEmptyObject=t.isBaseData=t.getObjType=t.isEqualDate=t.getPointOnCycleInCurrentCoordination=t.getPointOnCycle=t.arrayEquals=t.getDecimalPart=t.sameObject=t.isNotEqual0=t.isEqual0=t.notSameNumber=t.sameNumber=t.EPSILON=t.simpleMerge=t.merge=t.jsonClone=t.depthClone=t.max=t.min=t.ceil=t.floor=t.abs=t.round=t.isMoreOrLess=t.equalRange=t.intersectRange=t.betweenRange=t.between=t.distance=t.shortGuid=void 0;const r=n(28),o=n(7);function i(e,t,n){return n?e>=t.min&&e<=t.max:e>t.min&&et?e-t:t-e},t.between=i,t.betweenRange=function(e,t,n){return i(t.min,e,n)&&i(t.max,e,n)||i(e.min,t,n)&&i(e.max,t,n)},t.intersectRange=function(e,t,n){return i(e.min,t,n)||i(e.max,t,n)||i(t.max,e,n)||i(t.min,e,n)},t.equalRange=function(e,t){return s(e.min,t.min)&&s(e.max,t.max)},t.isMoreOrLess=function(e,t,n){return t>=e-n&&t<=e+n},t.round=function(e){if(0===e%1)return e;let t=e;return e>0?(t+=.5,t-t%1):(t=0-t+.5,0-(t-t%1))},t.abs=function(e){return e>0?e:0-e},t.floor=function(e){const t=e%1;return 0===t?e:e>0?e-t:e-1-t},t.ceil=function(e){const t=e%1;return 0===t?e:e>0?e-t+1:e-t},t.min=function(...e){const t=Array.from(e);if(!t.length)return NaN;let n=t.pop();for(;t.length>0;){const e=t.pop();n>e&&(n=e)}return n},t.max=function(...e){const t=Array.from(e);if(!t.length)return NaN;let n=t.pop();for(;t.length>0;){const e=t.pop();n(e.includes(t)||e.push(t),e),Object.keys(n)),i={};return o.forEach(o=>{const s=t[o],l=n[o],c=r?r(o,s,l):void 0;if(void 0!==c)i[o]=c;else{const t=typeof s,n=typeof l;i[o]="object"==typeof s?a(s):s,"undefined"!==n&&("undefined"===t?i[o]=a(l):"string"===t||"number"===t||"boolean"===t?i[o]=l:"object"===t&&"object"==typeof l&&(i[o]=e(s,l,r)))}}),i}}throw new Error(`${t}, ${n} 不是对象,不能合并`)},t.simpleMerge=function(e,t){if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.assign({},e);return n.forEach(n=>{let o=e[n];void 0===o&&(o=t[n],r[n]=o)}),r}return e},t.EPSILON=1e-5,t.sameNumber=s,t.notSameNumber=l,t.isEqual0=function(e){return s(e,0)},t.isNotEqual0=function(e){return l(e,0)},t.sameObject=function(e,t,n=!0){return n?JSON.stringify(e)===JSON.stringify(t):e===t},t.getDecimalPart=function(e){return(e+"").split(".")[1]},t.arrayEquals=function(e,t){return t.every(t=>e.includes(t))&&e.every(e=>t.includes(e))},t.getPointOnCycle=c,t.getPointOnCycleInCurrentCoordination=function(e,t,n){const r=c({x:e.x,y:-e.y},t,n);return{x:r.x,y:-r.y}},t.isEqualDate=(e,n)=>{const r=t.getObjType(e);if(r!==t.getObjType(n))return!1;if("Base"===r)return e===n;if("Array"===r){if(e.length!==n.length)return!1;for(let r=0;r{switch(Object.prototype.toString.call(e)){case"[object Array]":return"Array";case"[object Object]":return"Object";case"[object Function]":return"Function";case"[object Undefined]":return"Undefined";case"[object Null]":return"Null";case"[object Number]":case"[object String]":case"[object Boolean]":return"Base";default:return"Error"}},t.isBaseData=e=>{switch(Object.prototype.toString.call(e)){case"[object Number]":case"[object String]":case"[object Boolean]":return!0;default:return!1}},t.isEmptyObject=function(e){const t=Object.prototype.hasOwnProperty;for(const n in e)if(t.call(e,n))return!1;return!0},t.moveArrayItem=function(e,t,n){if(t===n)return e;const r=[...e],o=r.splice(t,1,void 0)[0];return r.splice(n,0,o),r.filter(e=>!!e)},t.moveArrayItems=function(e,t,n,r=1){if(t===n)return e;const o=a(e),i=o.splice(t,r);return o.splice(n,0,...i),o},t.removeItemFromArray=function(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)},t.debounce=function(e,t){let n=void 0;return function(){clearTimeout(n),n=window.setTimeout(e,t)}},t.throttle=function(e,t){let n=(new Date).getTime();return function(){const r=(new Date).getTime();r-n>t&&(e(),n=r)}},t.validateNumberText=function(e,t=""){if(!e)return"";let n=e;const[r]=e;if("."===r&&(n="0"+e),"0"===r&&e.length>1){"."!==e[1]&&(n="0")}let o=0;for(let e=0;e1)){n=n.substring(0,e);break}return/^-?\d*\.?\d*$/.test(n)?n:t},t.calcValueFromText=function(e){const t=e.replace(/\s/g,"").replace("×","*").replace("÷","/");if(/(\d.\+\-\*\/\(\))*/.test(t)){const e="+-*/.";let n=0,r=0;const o=t.split(""),i=o.every((t,n)=>{if(n>0){const r=o[n-1];return-1===e.indexOf(t)||-1===e.indexOf(r)}return!0});if(o.forEach(e=>{"("===e?n++:")"===e&&r++}),!i||n!==r)return;try{return new Function("return "+t)()}catch(e){return}}},t.isInputting=function(){const e=document.activeElement;if(e){const t=e,n=t.tagName;return t.isContentEditable||["INPUT","TEXTAREA"].includes(n)}return!1},t.getCountNumInArray=function(e){const t={};e.forEach(e=>{const n=JSON.stringify(e),r=t[n];r?t[n]+=Number(r):t[n]=1});const n=Object.keys(t);let r=0,o=0,i="",a="";return n.forEach((e,n)=>{const s=t[e];0===n&&(o=s,a=e),s>r&&(r=s,i=e),s=0&&t<=e.length-1&&(n?e.splice(t,1,n):e.splice(t,1)),e},t.flatArray=function e(t,n){const r=[];return t.forEach(t=>{const o=n(t);(null==o?void 0:o.length)?r.push(...e(o,n)):r.push(t)}),r},t.betweenNumber=function(e,t){return Math.min(t.max,Math.max(e,t.min))},t.scaleObjectValue=function(e,t,n){return Object.keys(e).reduce((r,o)=>{let i=e[o];return"number"==typeof i&&(i*=t,(null==n?void 0:n.min)&&(i=Math.max(i,n.min)),(null==n?void 0:n.max)&&(i=Math.min(i,n.max)),(null==n?void 0:n.filter)&&(i=n.filter(i))),r[o]=i,r},{})},t.to12Precision=function(e){return Number(e.toPrecision(12))},t.autoSerialnumber=function(e,t){let n=t;if(e.length){const r=new RegExp(t+"d*"),o=e.filter(e=>-1!==e.indexOf(t)&&r.test(e)).map(e=>{const n=e.replace(t,"").trim();return n?parseInt(n,10):0}).sort((e,t)=>e-t);n=o.length?`${t} ${o[o.length-1]+1}`:t}return n},t.replaceArray=function(e,t,n){const r=[...e],o=r.findIndex(t);if(-1!==o){const e=n(r[o]);r.splice(o,1,e)}return r},t.replaceOrPushArray=function(e,t,n){const r=[...e],o=r.findIndex(t),i=n(r[o]);return-1!==o?r.splice(o,1,i):r.push(i),r},t.replaceOrUnshiftArray=function(e,t,n){const r=[...e],o=r.findIndex(t),i=n(r[o]);return-1!==o?r.splice(o,1,i):r.unshift(i),r}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpriteThumb=void 0,t.SpriteThumb={APQC:{className:"sprite-icon-APQC",position:{x:0,y:0}},Arrow:{className:"sprite-icon-arrow",position:{x:40,y:0}},Beveledrectangle:{className:"sprite-icon-beveledrectangle",position:{x:0,y:40}},BreadCrumbs:{className:"sprite-icon-breadcrumbs",position:{x:40,y:40}},Button:{className:"sprite-icon-button",position:{x:80,y:0}},CallOut:{className:"sprite-icon-callout",position:{x:80,y:40}},CanvasPanel:{className:"sprite-icon-canvas-panel",position:{x:0,y:80}},CheckBox:{className:"sprite-icon-checkbox",position:{x:40,y:80}},CheckBoxGroup:{className:"sprite-icon-checkbox-group",position:{x:80,y:80}},Circle:{className:"sprite-icon-circle",position:{x:120,y:0}},CircleProgress:{className:"sprite-icon-circle-progress",position:{x:120,y:40}},ClassicTab:{className:"sprite-icon-classic-tab",position:{x:120,y:80}},Cloud:{className:"sprite-icon-cloud",position:{x:0,y:120}},Collate:{className:"sprite-icon-collate",position:{x:40,y:120}},ContentPanel:{className:"sprite-icon-content-panel",position:{x:80,y:120}},Cross:{className:"sprite-icon-cross",position:{x:120,y:120}},Database:{className:"sprite-icon-database",position:{x:160,y:0}},Delay:{className:"sprite-icon-delay",position:{x:160,y:40}},Diamond:{className:"sprite-icon-diamond",position:{x:160,y:80}},Display:{className:"sprite-icon-display",position:{x:160,y:120}},Document:{className:"sprite-icon-document",position:{x:0,y:160}},DownArrow:{className:"sprite-icon-down-arrow",position:{x:40,y:160}},Drop:{className:"sprite-icon-drop",position:{x:80,y:160}},Drops:{className:"sprite-icon-drops",position:{x:120,y:160}},Ellipse:{className:"sprite-icon-ellipse",position:{x:120,y:0}},ExternalData:{className:"sprite-icon-external-data",position:{x:200,y:0}},Heart:{className:"sprite-icon-heart",position:{x:200,y:40}},Hexagon:{className:"sprite-icon-hexagon",position:{x:200,y:80}},HorizontalDoubleArrow:{className:"sprite-icon-horizontal-double-arrow",position:{x:200,y:120}},Hotspot:{className:"sprite-icon-hotspot",position:{x:200,y:160}},Image:{className:"sprite-icon-image",position:{x:0,y:200}},Keyboard:{className:"sprite-icon-keyboard",position:{x:40,y:200}},Keying:{className:"sprite-icon-keying",position:{x:80,y:200}},LeftArrow:{className:"sprite-icon-left-arrow",position:{x:120,y:200}},LeftArrowButton:{className:"sprite-icon-left-arrow-button",position:{x:160,y:200}},LeftBrace:{className:"sprite-icon-left-brace",position:{x:200,y:200}},LeftBracket:{className:"sprite-icon-left-bracket",position:{x:240,y:0}},LeftGrid:{className:"sprite-icon-left-grid",position:{x:240,y:40}},LeftTurn:{className:"sprite-icon-left-turn",position:{x:240,y:80}},LimitCycle:{className:"sprite-icon-limit-cycle",position:{x:240,y:120}},Line:{className:"sprite-icon-line",position:{x:240,y:160}},List:{className:"sprite-icon-list",position:{x:240,y:200}},ManualInput:{className:"sprite-icon-manual-input",position:{x:0,y:240}},ManualOperation:{className:"sprite-icon-manual-operation",position:{x:40,y:240}},Numeric:{className:"sprite-icon-numeric",position:{x:80,y:240}},Octagon:{className:"sprite-icon-octagon",position:{x:120,y:240}},OffPageConnector:{className:"sprite-icon-off-page-connector",position:{x:160,y:240}},parallelogram:{className:"sprite-icon-parallelogram",position:{x:200,y:240}},pentagon:{className:"sprite-icon-pentagon",position:{x:240,y:240}},PieChart:{className:"sprite-icon-pie-chart",position:{x:280,y:0}},Polygon:{className:"sprite-icon-polygon",position:{x:280,y:40}},Progress:{className:"sprite-icon-progress",position:{x:280,y:80}},PunchedCard:{className:"sprite-icon-punched-card",position:{x:280,y:120}},PunchedTape:{className:"sprite-icon-punched-tape",position:{x:280,y:160}},QRCode:{className:"sprite-icon-QRCode",position:{x:280,y:200}},QueueData:{className:"sprite-icon-queue-data",position:{x:280,y:240}},Radio:{className:"sprite-icon-radio",position:{x:0,y:280}},RadioGroup:{className:"sprite-icon-radio-group",position:{x:40,y:280}},Ready:{className:"sprite-icon-ready",position:{x:80,y:280}},Rect:{className:"sprite-icon-rect",position:{x:120,y:280}},Rectangle:{className:"sprite-icon-rectangle",position:{x:160,y:280}},RightAngle:{className:"sprite-icon-right-angle",position:{x:200,y:280}},RightArrow:{className:"sprite-icon-right-arrow",position:{x:240,y:280}},RightArrowButton:{className:"sprite-icon-right-arrow-button",position:{x:280,y:280}},RightBrace:{className:"sprite-icon-right-brace",position:{x:320,y:0}},RightBracket:{className:"sprite-icon-right-bracket",position:{x:320,y:40}},RightTriangle:{className:"sprite-icon-right-triangle",position:{x:320,y:80}},RightTurn:{className:"sprite-icon-right-turn",position:{x:320,y:120}},RoundedSpeechBubble:{className:"sprite-icon-rounded-speech-bubble",position:{x:320,y:160}},RoundRectangle:{className:"sprite-icon-round-rectangle",position:{x:320,y:200}},Score:{className:"sprite-icon-score",position:{x:320,y:240}},Sector:{className:"sprite-icon-sector",position:{x:320,y:280}},SectorDiagram:{className:"sprite-icon-sector-diagram",position:{x:0,y:320}},SegmentControls:{className:"sprite-icon-segment-controls",position:{x:40,y:320}},Select:{className:"sprite-icon-select",position:{x:80,y:320}},Semicircle:{className:"sprite-icon-semicircle",position:{x:120,y:320}},Slider:{className:"sprite-icon-slider",position:{x:160,y:320}},SquareSpeechBubble:{className:"sprite-icon-square-speech-bubble",position:{x:200,y:320}},Star:{className:"sprite-icon-star",position:{x:240,y:320}},Start:{className:"sprite-icon-start",position:{x:280,y:320}},StickNote:{className:"sprite-icon-stick-note",position:{x:320,y:320}},Switch:{className:"sprite-icon-switch",position:{x:360,y:0}},TabBar:{className:"sprite-icon-tab-bar",position:{x:360,y:40}},Table:{className:"sprite-icon-table",position:{x:360,y:80}},Text:{className:"sprite-icon-text",position:{x:360,y:120}},Textarea:{className:"sprite-icon-textarea",position:{x:360,y:160}},TextInput:{className:"sprite-icon-text-input",position:{x:360,y:200}},trapezoid:{className:"sprite-icon-trapezoid",position:{x:360,y:240}},Tree:{className:"sprite-icon-tree",position:{x:360,y:280}},Triangle:{className:"sprite-icon-triangle",position:{x:360,y:320}},UpArrow:{className:"sprite-icon-up-arrow",position:{x:0,y:360}},UpGrid:{className:"sprite-icon-up-grid",position:{x:40,y:360}},VerticalDoubleArrow:{className:"sprite-icon-vertical-double-arrow",position:{x:80,y:360}},Video:{className:"sprite-icon-video",position:{x:120,y:360}},Snapshot:{className:"sprite-icon-snapshot",position:{x:160,y:360}}}},function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o!e)&&(a("检测到 null 组件,自动修复。"),e.components=e.components.filter(e=>e)),u.isRemoveChildrenOperation(n))e.components&&(e.components=e.components.filter(e=>e&&!n.value.includes(e._id)));else if(u.isAddChildrenOperation(n)){if(!n.value||0===n.value.length||n.value.some(e=>!e)){a("Abort Patch! 检测到 add operation 中的 value 有空值,数据:"+JSON.stringify(n));continue}if(e.components||(e.components=[]),n.value.some(t=>!!e.components.find(e=>e._id===t._id))){a("Duplicate Add Detected! 检测到向同一个组件添加重复的组件,放弃执行。");continue}const t=parseInt(n.path,10),r=t<0||t>e.components.length?e.components.length:t;e.components.splice(r,0,...n.value)}else r.applyOperation(e,n)}}function l(e,t,n){if(0===t.length)return;"artboard"!==e.type&&t.push(u.replace("/v",e.v+1));const i=[];for(let a of t)if(u.isRemoveChildrenOperation(a))e.components&&(a.value.forEach(e=>o.removeComponentNodeByID(n,e)),e.components=e.components.filter(e=>e&&!a.value.includes(e._id)));else if(u.isAddChildrenOperation(a)){e.components||(e.components=[]),a.value.forEach(e=>o.addComponentNode(n,e)),i.push(...a.value);const t=parseInt(a.path,10),r=t<0||t>e.components.length?e.components.length:t;e.components.splice(r,0,...a.value)}else r.applyOperation(e,a);return i}function c(e,t,n){if(e._id===t)return s(e,n),!0;if(e.components&&e.components.length>0){return e.components.map(e=>c(e,t,n)).some(e=>e)}return!1}var u;t.applyOperations=s,t.applyOperationsAndApplyToAvlTree=l,t.findAndPatch=c,t.patchArtboard=function(e,t){for(let n in t){const r=t[n];if("self"===n)continue;if("ROOT"===n){s(e,r);continue}let o=!1;if(e.components&&e.components.length>0){o=e.components.map(e=>e?c(e,n,r):null).some(e=>e)}o||a(`对 ${n} 的操作 ${JSON.stringify(r)} 失败。`)}},t.patchArtboardByAVLTree=function(e,t,n){const r=[];for(let o in n){const i=n[o];if("self"===o)continue;if(0===i.length&&a(`检测到空操作:${o} @ ${JSON.stringify(n)}`),"ROOT"===o){const n=l(e,i,t);n&&r.push(...n);continue}let s=!1;const c=t.get(o);if(c){const e=l(c,i,t);e&&r.push(...e),s=!0}s||a(`[avl] 对 ${o} 的操作 ${JSON.stringify(i)} 失败。`)}return r},t.reversePagePatches=function(e){const t={};for(let n in e)t[n]={do:e[n].undo,undo:e[n].do};return t},t.extractPageOperationsFromPagePatches=function(e){const t={};for(let n in e)t[n]=e[n].do;return t},function(e){e.add=function(e,t){return{op:"add",path:e,value:t}},e.remove=function(e){return{op:"remove",path:e}},e.replace=function(e,t){return{op:"replace",path:e,value:t}},e.move=function(e,t){return{op:"move",path:e,from:t}},e.copy=function(e,t){return{op:"copy",path:e,from:t}},e.addChildren=function(e,t){return{op:"add-children",path:e,value:t}},e.removeChildren=function(e){return{op:"remove-children",path:"-",value:e}},e.isRemoveChildrenOperation=function(e){return!Array.isArray(e)&&"remove-children"===e.op},e.isAddChildrenOperation=function(e){return!Array.isArray(e)&&"add-children"===e.op}}(u=t.Ops||(t.Ops={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShapeData=t.DefaultFlowShapeSize=t.shapeDefaultSize100_60=t.getShapePropertiesData=void 0;const r=n(20),o=n(32),i=n(23),a=n(104),s=n(50),l={needFill:!0,closed:!0};function c(e=l){const{needFill:t,closed:n,properties:c}=e,u={fill:{disabled:!t,type:o.FillType.solid,color:r.DefaultWhiteFillColor},stroke:{thickness:1,color:r.DefaultStrokeColor,position:n?i.StrokePosition.inner:i.StrokePosition.center,disabled:!1},textFormat:{disabled:!1,fontFamily:"Microsoft YaHei",fontSize:14,textAlign:a.TextAlign.center,color:r.DefaultTextColor,fontStyle:{bold:!1,italic:!1,underline:!1,strike:!1},wrap:!0,isMulti:!0,verticalAlign:a.VerticalAlign.middle,letterSpace:0},padding:{disabled:!1,hidden:!1,left:0,top:0,right:0,bottom:0},shadow:s.getDefaultShadow()};let d=u;if(c){Object.keys(u).reduce((e,t)=>(e.includes(t)||e.push(t),e),Object.keys(c)).forEach(e=>{const t=e;d[t]&&c[t]&&(d[t]=Object.assign(Object.assign({},d[t]),c[t]))})}return JSON.stringify(d)}t.getShapePropertiesData=c,t.shapeDefaultSize100_60={width:100,height:60,lockedRatio:!1},t.DefaultFlowShapeSize={size100_60:{width:100,height:60,lockedRatio:!1},size60_60:{width:60,height:60,lockedRatio:!1},size60_80:{width:60,height:80,lockedRatio:!1}},t.getShapeData=function(e,t,n,r=!0,o){return`{\n type: 'path',\n connectors: [],\n layout: {\n responsive: false,\n auto: true,\n fixedWidth: false,\n fixedHeight: false,\n horizontal: 'auto',\n vertical: 'auto',\n },\n properties: ${c({needFill:r,closed:n.closed,properties:o})},\n interaction: {},\n size: ${JSON.stringify(t)},\n states: {\n },\n name: '${e}',\n value: ${JSON.stringify(n)}\n }`}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleHelper=void 0;const r=n(7),o=n(16),i=n(16),a=n(891),s=n(150),l=n(32),c=n(48),u=n(23),d=n(55),h=n(20);!function(e){e.parserFill=(e,t)=>r.memoize(()=>{const{type:n,color:r,disabled:i}=e;if(!i){if(n&&n!==l.FillType.solid){const e=r;return n===l.FillType.linear?{background:o.parseLinearToString(e,t)}:{background:o.parseRadialToString(e)}}return{background:o.parseColorToString(r||h.TransparentColor)}}return{}})();const t=e=>{const{thickness:t,color:n,mode:r,dashArray:i,dashModel:a}=e;let l=void 0;switch(a){case u.PresetDashModel.shortDash:case u.PresetDashModel.dashDot:case u.PresetDashModel.dashDotDot:case u.PresetDashModel.longDash:case u.PresetDashModel.longDashDot:case u.PresetDashModel.middleDash:l="dashed";break;case u.PresetDashModel.dot:l="dotted";break;case u.PresetDashModel.solid:l="solid";break;default:"custom"!==r&&(l="solid")}if(!l&&"custom"===r)if(i&&i.length){const[e]=i,n=i.length>1?i[1]:e;0!==e&&0!==n&&(l="dashed",s.default.isMoreOrLess(e,t||1,1)&&s.default.isMoreOrLess(n,t||1,1)&&(l="dotted"))}else l="solid";return{borderStyle:l,borderColor:o.parseColorToString(n||"#000"),borderWidth:t}};e.parserStroke=e=>r.memoize(()=>{const{disabled:n}=e,r={};if(!n){const{borderStyle:n,borderWidth:o,borderColor:i}=t(e);r.borderWidth=o,r.borderColor=i,r.borderStyle=n}return r})(),e.parserSeparator=(e,n)=>{if(!n||n.disabled)return{};const{thickness:r}=n;if(0===r)return{};const{borderColor:o,borderWidth:i,borderStyle:a}=t(n);return"bottom"===e?{borderBottomColor:o,borderBottomWidth:i,borderBottomStyle:a}:{borderRightColor:o,borderRightWidth:i,borderRightStyle:a,borderLeftWidth:i,borderLeftColor:"transparent"}},e.parseSVGStroke=e=>{if(e&&!e.disabled){const{thickness:t,color:n,dashArray:i,cap:a,join:s,mode:l,dashModel:c}=e,d=r.isUndefined(t)?1:t,h=d;let p=void 0;if(r.isUndefined(c)||c===u.PresetDashModel.unset||"custom"===l){const e=[],t=r.isUndefined(i)?0:i.length;if(t&&i)if(1===t){0===i[0]||e.push(i[0]*h,i[0]*h)}else e.push(...i.map(e=>e*h));p=e.length?e.join(","):void 0}else p=r.isUndefined(c)||c===u.PresetDashModel.solid?void 0:c===u.PresetDashModel.dot?`${d},${d}`:`${Math.max(2*d,3)},${Math.max(d,2)}`;const f={stroke:o.parseColorToString(n||"#000"),strokeWidth:d,strokeDasharray:p,strokeLinecap:a||u.StrokeLineCap.Butt,strokeLinejoin:s||u.StrokeLineJoin.Miter,position:u.StrokePosition.inner};return f.strokeLinecap===u.StrokeLineCap.Butt&&d%2==1&&(f.strokeDashoffset=-.5),f}return{stroke:"none",strokeWidth:0}},e.parserBoxShadow=e=>{if(e){const{x:t,y:n,blur:r,color:i,disabled:a}=e;if(!a)return{boxShadow:`${t||0}px ${n||0}px ${r||0}px ${o.parseColorToString(i)}`}}return{}},e.parserDropShadow=e=>{if(e){const{x:t,y:n,blur:r,color:i,disabled:a}=e;if(!a)return`drop-shadow(${t||0}px ${n||0}px ${r||0}px ${o.parseColorToString(i||h.ShadowColor)})`}return""},e.clearComponentStyleWithRichTextValue=(e,t)=>{const n=a.default.text2xml(t,"root");let r=!n,o=!1,i=!1,s=!1,l=!1;if(n){n.getRootNode().firstChild.childNodes.forEach(e=>{var t;if(e.nodeType===Node.TEXT_NODE)r=!0;else{const n=e;if(n.getAttribute("style")){const e=null===(t=n.attributes.getNamedItem("style"))||void 0===t?void 0:t.value;!o&&(o=(null==e?void 0:e.includes("bold"))||!1),!i&&(i=(null==e?void 0:e.includes("italic"))||!1),!s&&(s=(null==e?void 0:e.includes("underline"))||!1),!l&&(l=(null==e?void 0:e.includes("line-through"))||!1)}}})}if(!r){const{textDecorationLine:t,textDecoration:n,fontWeight:r,fontStyle:a}=e;if(s){const r=/underline(;?)/;n&&(e.textDecoration=n.toString().replace(r,"")),t&&(e.textDecorationLine=t.toString().replace(r,""))}if(l){const r=/line-through(;?)/;n&&(e.textDecoration=n.toString().replace(r,"")),t&&(e.textDecorationLine=t.toString().replace(r,""))}o&&r&&r.toString().includes("bold")&&delete e.fontWeight,i&&a&&a.includes("italic")&&delete e.fontStyle}};class n{static getTextAlign(e,t="left"){return e||t}doGetTextStyle(e){var t;const r=e||(null===(t=this.data)||void 0===t?void 0:t.textStyle);if(r){const{fontStyle:e,fontSize:t,fontFamily:i,textAlign:a,color:s,letterSpace:l,transform:u}=r;let h;e&&(e.underline&&e.strike?h="underline line-through":e.underline?h="underline":e.strike&&(h="line-through"));let p="none";switch(u){case c.TextTransform.lowerCase:p="lowercase";break;case c.TextTransform.upperCase:p="uppercase";break;case c.TextTransform.capitalize:p="capitalize";break;default:p=void 0}const f=l||void 0,m=n.getTextAlign(a||c.TextAlign.left);return{fontSize:t,fontFamily:i&&d.getFontFamily(i),textAlign:m,color:o.parseColorToString(s||"#000"),fontStyle:e&&e.italic?"italic":void 0,fontWeight:e&&e.bold?"bold":void 0,textDecorationLine:h,whiteSpace:"nowrap",letterSpacing:f,textTransform:p}}return{}}getTextStyle(){if(this.data){const{textStyle:e,textFormat:t,multiText:n}=this.data;return t?this.getTextStyleEx(t):Object.assign(Object.assign({},this.doGetTextStyle(e)),this.doGetMultiStyle(n,null==e?void 0:e.fontSize))}return{}}getTextStyleEx(e){if(e){const{isMulti:t}=e,n=this.doGetTextStyle(e),r=t?this.doGetMultiStyle(e,e.fontSize):{};return Object.assign(Object.assign({},n),r)}return{}}getTextStyleData(e,t){if(!t)return{size:e,style:{}};const{fontSize:n,isMulti:r}=t,o=s.default.value(n,d.DefaultFontSize)/d.FontBoxScale,i=Object.assign(Object.assign({},t),{fontSize:o}),a=r?this.getTextStyleEx(i):this.doGetTextStyle(i);return a.lineHeight=e.height/d.FontBoxScale+"px",{size:{width:e.width/d.FontBoxScale,height:e.height/d.FontBoxScale},style:a}}getShadowStyle(t){var n,r;return t?e.parserBoxShadow(null===(n=this.data)||void 0===n?void 0:n.shadow):{filter:e.parserDropShadow(null===(r=this.data)||void 0===r?void 0:r.shadow)}}getTextShadow(e){if(this.data&&this.data.shadow){const{x:t,y:n,blur:r,color:i,disabled:a}=this.data.shadow;if(!a){const a=e||1,[s,l,c]=[t,n,r].map(e=>(e||0)*a);return{filter:`drop-shadow(${s}px ${l}px ${.5*c}px ${o.parseColorToString(i)})`}}}return{}}getFillStyle(t){return this.data&&this.data.fill&&!this.data.fill.disabled?e.parserFill(this.data.fill,t):{}}getStrokeStyle(){let t={};if(this.data&&this.data.stroke){const{disabled:n}=this.data.stroke;if(!n&&(t=e.parserStroke(this.data.stroke),this.data.border)){const{left:e,top:n,right:r,bottom:o}=this.data.border,i=t.borderStyle;"none"!==i&&(t.borderLeftStyle=e?i:"none",t.borderTopStyle=n?i:"none",t.borderRightStyle=r?i:"none",t.borderBottomStyle=o?i:"none")}}return t}getRadiusStyle(e,t){if(this.data&&this.data.radius){const{bottomLeft:n,topRight:r,topLeft:o,bottomRight:i,disabled:a,isPercent:l}=this.data.radius,c=0===o&&0===r&&0===n&&0===i;if(!a&&!c){const{top:a,left:c,right:u,bottom:d}=t||{top:!0,left:!0,right:!0,bottom:!0};let h=0;this.data.stroke&&(h=(this.data.stroke.thickness||0)/2);const p=s.default.min(e.width,e.height)/2;let f=o,m=r,g=n,v=i;if(l?(o&&(f=s.default.min(o*p/100+h,p)),r&&(m=s.default.min(r*p/100+h,p)),n&&(g=s.default.min(n*p/100+h,p)),i&&(v=s.default.min(i*p/100+h,p))):(o&&(f=s.default.min(o+h,p)),r&&(m=s.default.min(r+h,p)),n&&(g=s.default.min(n+h,p)),i&&(v=s.default.min(i+h,p))),this.data.border&&!this.data.border.disabled){const{top:e,left:t,right:n,bottom:r}=this.data.border;t||(g=f=0),n||(v=m=0),e||(f=m=0),r||(g=v=0)}return{borderTopLeftRadius:a&&c?f:0,borderTopRightRadius:a&&u?m:0,borderBottomLeftRadius:d&&c?g:0,borderBottomRightRadius:d&&u?v:0}}}return{}}doGetMultiStyle(e,t){if(e){const{wrap:n,indent:o,vertical:i,lineHeight:a,lineHeightEx:s}=e,l=t||d.DefaultFontSize;let c=l;return c=r.isUndefined(s)?r.isUndefined(a)?Math.round(1.4*l):l+a:s,{whiteSpace:n?"pre-wrap":"nowrap",wordBreak:n?"break-word":"normal",textIndent:o?"1.2em":void 0,lineHeight:c+"px",writingMode:i?"vertical-rl":void 0}}return{}}getMultiStyle(){if(this.data&&this.data.multiText&&this.data.textStyle){const{fontSize:e}=this.data.textStyle;return this.doGetMultiStyle(this.data.multiText,e)}return{}}getPaddingStyle(e){var t;if(!this.data)return{};const{padding:n,textFormat:r,textStyle:o}=this.data;if(!n||n.disabled)return{};let i=1;if(e){const e=(null===(t=o||r)||void 0===t?void 0:t.fontSize)||14;i=s.default.min(1,e/12)}const{left:a,top:l,right:c,bottom:u}=n;return{paddingTop:(l||0)/i,paddingRight:(c||0)/i,paddingBottom:(u||0)/i,paddingLeft:(a||0)/i}}}class p extends n{init(e){this.data=e}}class f extends class{getStroke(){return this.data&&this.data.stroke&&!this.data.stroke.disabled?e.parseSVGStroke(this.data.stroke):{stroke:"none",strokeWidth:0}}getShadow(){var t;return e.parserDropShadow(null===(t=this.data)||void 0===t?void 0:t.shadow)}getFill(e){if(this.data&&this.data.fill){const{type:t,color:n,disabled:r}=this.data.fill;if(!r)return t===l.FillType.solid?o.parseColorToString(n):`url(#${e})`}return"none"}getStrokeEx(t){let n="";if(this.data){const{stroke:r,radius:o,border:a}=this.data,s=e.calculateRadius(t,o);n=i.createRectStrokePath({size:t,radius:s,stroke:(null==r?void 0:r.disabled)?void 0:r,borderModel:(null==a?void 0:a.disabled)?void 0:a})}return Object.assign(Object.assign({position:u.StrokePosition.inner},this.getStroke()),{strokePathData:n})}}{init(e){this.data=e}}let m,g;e.initSVGStyleParser=e=>(m||(m=new f),m.init(e),m),e.initCSSStyleParser=e=>(g||(g=new p),g.init(e),g),e.createCSSStyleParser=e=>{const t=new p;return t.init(e),t},e.getOpacity=e=>r.isUndefined(e)?1:e/100,e.getRotate=e=>{if(e)return`rotate(${e}deg)`},e.calculateRadius=(e,t)=>{const n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};if(t&&!t.disabled){let{isPercent:r,topRight:o,topLeft:i,bottomLeft:a,bottomRight:l}=t;const c=s.default.min(e.width,e.height)/2;r?(o&&(o=s.default.round(s.default.min(o*c/100,c))),i&&(i=s.default.round(s.default.min(i*c/100,c))),a&&(a=s.default.round(s.default.min(a*c/100,c))),l&&(l=s.default.round(s.default.min(l*c/100,c)))):(o&&(o=s.default.min(o,s.default.round(c))),i&&(i=s.default.min(i,s.default.round(c))),a&&(a=s.default.min(a,s.default.round(c))),l&&(l=s.default.min(l,s.default.round(c)))),n.topRight=o||n.topRight,n.topLeft=i||n.topLeft,n.bottomLeft=a||n.bottomLeft,n.bottomRight=l||n.bottomRight}return n}}(t.StyleHelper||(t.StyleHelper={}))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(847)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSameColor=t.createRectFillPath=t.createRectStrokePath=t.PolygonData=t.PathData=t.transTextToImage=t.transSpriteImgToSmallImg=t.getDeviceRatio=t.setDash=t.applyFillToStyle=t.parseRadialToString=t.parseLinearToString=t.parseGradientColorToString=t.transitionGradientToPureColor=t.transitionPureColorToRadialGradient=t.transitionPureColorToLinearGradient=t.calcColorStopByInsertPoint=t.fullColorStops=t.getFillToolColorString=t.color2hexString=t.rgba2hex=t.autoCompleHex=t.hexChipPattern=t.hex2Rgb=t.compareHex=t.rgb2Hex=t.RGBA2HEX=t.transColorToRGBA=t.parseColorToString=t.mergeColor=t.reviseRadialGradient=t.isLight=t.DahModel=t.FillType=void 0;const r=n(7),o=n(152),i=n(8),a=n(93),s=n(28),l=n(52),c=n(133);var u,d,h;function p(e){if(!e)return"rgba(0,0,0,1)";if("string"==typeof e)return e;const{r:t,g:n,b:o,a:i}=e,a=(e,t)=>r.isUndefined(e)||r.isNull(e)||r.isNaN(e)?t||0:e;return r.memoize(()=>`rgba(${a(t)}, ${a(n)}, ${a(o)}, ${a(i,1)})`)()}function f(e){if("object"==typeof e)return e;if("#"===e[0]){let t=e.substring(1),n="ff";e.length>7&&(t=e.substr(1,7),n=e.substr(7));const r=Math.round(100*parseInt(n,16)/255)/100,{r:o,g:i,b:a}=v(t);return{r:o,g:i,b:a,a:r}}if(0===e.indexOf("rgba")){const t=e.replace(/[rgba\(\)]/g,"").split(",");return{r:parseInt(t[0].trim(),10),g:parseInt(t[1].trim(),10),b:parseInt(t[2].trim(),10),a:parseFloat(t[3].trim())}}if(0===e.indexOf("rgb")){const t=e.replace(/[rgb\(\)]/g,"").split(",");return{r:parseInt(t[0].trim(),10),g:parseInt(t[1].trim(),10),b:parseInt(t[2].trim(),10),a:1}}return{r:0,g:0,b:0,a:0}}function m(e){return((1<<24)+(parseInt(e.r+"")<<16)+(parseInt(e.g+"")<<8)+parseInt(e.b+"")).toString(16).slice(1).toUpperCase()}function g(e){const t=e.length;return 6===t?e:3===t?e.split("").map(e=>e+e).join(""):e}function v(e){const t=[];for(let n=0;n<6;n+=2)t.push(parseInt("0x"+e.slice(n,n+2)));return{r:t[0],g:t[1],b:t[2]}}function y(e){const t=o(p(e));return"#"+m({rgb:t.toRgb(),hsv:t.toHsv(),alpha:100*t.getAlpha(),hsl:t.toHsl()}.rgb)}function b(e){const t=e.map((e,t)=>({index:t,color:e.color,point:e.point}));t[0].point=0,t[t.length-1].point=100;const n=e=>{const r={start:e,end:void 0};for(let n=e+1;n1){const e=t[r.start].point,n=(t[r.end].point-e)/(r.end-r.start);let o=e+n;for(let e=r.start+1;e=240&&e.g>=240&&e.b>=240}function C(e){const t=f(e),n=function(e){let t=e;const{a:n}=e,r=o(Object.assign(Object.assign({},e),{a:1})).toHsv();return w(e)?(r.v-=.3,t=Object.assign(Object.assign({},o(r).toRgb()),{a:n})):(r.s>.7?r.s-=.4:r.s=Math.max(0,r.s-.3),r.v<.3?r.v+=.3:r.v=Math.min(r.v+.2,1),t=Object.assign(Object.assign({},o(r).toRgb()),{a:n})),t}(t);let r=t,i=n;return w(t)||(r=n,i=t),[{color:r,point:0},{color:i,point:100}]}function _(e,t={start:0,end:1}){const{start:n,end:r}=t,o=r-n;return b(e).sort((e,t)=>(e.point||0)-(t.point||0)).map(e=>{var t;return`${"string"==typeof e.color?e.color:p(e.color)} ${(null!==(t=e.point)&&void 0!==t?t:0)*o+100*n}%`}).join(",")}function x(e,t={width:100,height:100}){const{direction:n,colorStops:r}=e,{x1:o,x2:i,y1:a,y2:u}=n||{x1:0,x2:0,y1:0,y2:1},{width:d,height:h}=t,p={x:o*d,y:a*h},f={x:i*d,y:u*h},m=s.getPointAngle(p,f)-90,g=m+"deg,",{height:v}=l.getBoundsOfRotatedRectangle({position:{x:0,y:0},size:t,rotate:m}),y={x:d/2,y:h/2},b=s.rotatePoint({x:y.x,y:y.y+v/2},y,m),w=s.rotatePoint({x:y.x,y:y.y-v/2},y,m),C=c.getFootOfPerpendicular(p,b,w),x=c.getFootOfPerpendicular(f,b,w);return`linear-gradient(${g}${_(r,{start:S(C,b,w,v),end:S(x,b,w,v)})})`}function S(e,t,n,r){const o=c.getTowPointDis(e,t),i=c.getTowPointDis(e,n);return(o<=r&&i<=r||i128;return i||o<.3&&(i=!0),i},t.reviseRadialGradient=function(e,t){const n=i.depthClone(e),{to:o,from:a,widthRatio:s,angle:l}=n;if(r.isUndefined(s)){const e=o||{x:.5,y:.5,r:.5};e.r=1.414*e.r,n.to=e,n.from=a||{x:.5,y:.5,r:0},n.angle=l||0,n.widthRatio=t.width/t.height}else n.to=o||{x:.5,y:.5,r:.5},n.from=a||{x:.5,y:.5,r:0},n.angle=l||0,n.widthRatio=s;return n},t.mergeColor=function(e,t){const{r:n,g:r,b:o}=e;let i=t;return t>100?i=t%255/255:t>1&&(i=t/100),{r:n,g:r,b:o,a:i}},t.parseColorToString=p,t.transColorToRGBA=f,t.RGBA2HEX=function(e){const t=m(e);let n=Math.round(255*e.a).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),`#${t}${n}`},t.rgb2Hex=m,t.compareHex=function(e,t){const n=e.toUpperCase(),r=t.toUpperCase();return g(n)===g(r)},t.hex2Rgb=v,t.hexChipPattern=/^([a-fA-F0-9]{1,6})$/,t.autoCompleHex=e=>{let t="";if(6===e.length)return e;if(3===e.length){for(let n=0;n<3;n+=1)t+=e.slice(n,n+1).concat(e.slice(n,n+1));return t}if(2===e.length)return e+e+e;if(1===e.length)return e+e+e+e+e+e;if(/^([a-fA-F0-9])([a-fA-F0-9])\1\2$/.test(e))return e.concat(e.slice(0,2));if(/^([a-fA-F0-9])\1([a-fA-F0-9])\2$/.test(e)){const t=e.slice(0,1),n=e.slice(2,3);return t+t+t+n+n+n}return/^([a-fA-F0-9])\1([a-fA-F0-9])\2[a-fA-F0-9]$/.test(e)?e.concat(e.slice(4,5)):/^([a-fA-F0-9])([a-fA-F0-9])\1\2\1$/.test(e)?e.concat(e.slice(1,2)):(t=e.padEnd(6,"0"),t)},t.rgba2hex=function({r:e,g:t,b:n,a:r},o){const i=e<<16,a=t<<8,s=n;let l=Math.round(255*r).toString(16);return 2!==l.length&&(l="0"+l),["#",((1<<24)+i+a+s).toString(16).slice(1),o?"":l].join("").toUpperCase()},t.color2hexString=y,t.getFillToolColorString=function(e){const{type:t,color:n}=e;if(t===u.solid)return y(n);{const{colorStops:e}=n,t=e.map(e=>y(e.color)),r=[];return t.forEach((e,t)=>{t%5==0&&r.push([]),r[r.length-1].push(e)}),r.map(e=>e.join(", ")).join("\n")}},t.fullColorStops=b,t.calcColorStopByInsertPoint=function(e,t,n){const r=t.point-e.point,o=(n-e.point)/r,a=Object.assign(Object.assign({},i.depthClone(e)),{point:n}),s=a.color,{r:l,g:c,b:u,a:d}=e.color,{r:h,g:p,b:f,a:m}=t.color;return s.a=d+(m-d)*o,s.r=l+(h-l)*o,s.g=c+(p-c)*o,s.b=u+(f-u)*o,a},t.transitionPureColorToLinearGradient=function(e){return{colorStops:C(e),direction:{x1:.5,x2:.5,y1:0,y2:1}}},t.transitionPureColorToRadialGradient=function(e){return{colorStops:C(e),to:{x:.5,y:.5,r:.5},from:{x:.5,y:.5,r:0},widthRatio:1,angle:0}},t.transitionGradientToPureColor=function(e){return e.colorStops[0].color},t.parseGradientColorToString=_,t.parseLinearToString=x,t.parseRadialToString=k,t.applyFillToStyle=function(e,t){switch(e.type){case u.solid:t.background=p(e.color);break;case u.radial:t.background=k(e.color);break;case u.linear:t.background=x(e.color)}t.background&&(t.fill=t.background)},t.setDash=P,t.getDeviceRatio=T,t.transSpriteImgToSmallImg=function(e,t,n){let r=document.createElement("canvas");const o=r.getContext("2d");if(o){const i=T(o),s=40,l=40;o.scale(i,i);let c=1;a.isSafari()&&(c=i),r.width=s*c,r.height=l*c,o.drawImage(e,t,n,s,l,0,0,r.width,r.height);const u=r.toDataURL();return r=void 0,u}return""},t.transTextToImage=function(e,t,n,r){let o=document.createElement("canvas");const i=o.getContext("2d");if(i){const s=T(i);i.scale(s,s);const l=a.isSafari()?s:1;o.width=o.height=n*l,i.fillStyle=p(r||"#000"),i.font=`${n*l}px ${t}`,i.fillText(e,0,n*l*7/8);const c=o.toDataURL();return o=void 0,c}return""},function(e){e.moveTo="moveTo",e.lineTo="lineTo",e.arcTo="arcTo",e.curveTo="curveTo"}(h||(h={}));class E{constructor(){this.pointsCmd=[],this.isClose=!1,this.toSVG=()=>{const e=this.pointsCmd[0],t=this.pointsCmd.map(e=>{const{cmd:t,params:n}=e,[r,o,i,a,s,l]=n,c=n.length;switch(t){case h.moveTo:return`M${r} ${o}`;case h.lineTo:return`L${r} ${o}`;case h.curveTo:return 4===c?`Q${r} ${o} ${i} ${a}`:6===c?`C${r} ${o} ${s} ${l} ${i} ${a} `:"";case h.arcTo:return`A${r} ${o} ${s} 0 1 ${i} ${a}`;default:return""}});e&&e.cmd!==h.moveTo&&t.unshift("M0 0");let n=t.join(" ");return this.isClose&&(n+="Z"),n},this.moveTo=(e,t)=>(this.lastMoveCmd={params:[e,t]},this.pointsCmd.push({cmd:h.moveTo,params:[e,t]}),this),this.lineTo=(e,t)=>(this.pointsCmd.push({cmd:h.lineTo,params:[e,t]}),this),this.curveTo=(e,t,n,r,o,i)=>{const a=[e,t,n,r];return void 0!==o&&void 0!==i&&a.push(o,i),this.pointsCmd.push({cmd:h.curveTo,params:a}),this},this.arcTo=(e,t,n,r,o)=>(this.pointsCmd.push({cmd:h.arcTo,params:[e,t,n,r,o]}),this),this.close=()=>{if(this.lastMoveCmd){const[e,t]=this.lastMoveCmd.params;this[h.lineTo].apply(this,[e,t])}return this.isClose=!0,this},this.clear=()=>(this.pointsCmd=[],this.lastMoveCmd=void 0,this.isClose=!1,this),this.stroke=(e,t)=>{e&&(e.strokeStyle=t.color,e.lineWidth=t.thickness,function(e,t,n){if(!e)return;let r;const o=T(e);t=t||1;const i=Math.max(1,t)*o,a=(t<3?4*t:3*t)*o,s=Math.max(i,2);switch(n){case d.Dashed:r=[a,a];break;case d.Dotted:r=[i,s];break;case d.DashDot:r=[i,s,a,s];break;case d.DashDotDot:r=[i,s,a,s,i,s];break;default:r=[]}P(e,r)}(e,t.thickness,t.dashModel),e.stroke())},this.fill=(e,t)=>{if(t.type===u.solid)e.fillStyle=p(t.color);else{const n=b(t.color.colorStops);let r;if(t.type===u.linear){const{direction:n}=t.color,{x1:o,x2:i,y1:a,y2:s}=n||{x1:0,x2:0,y1:0,y2:0};r=e.createLinearGradient(o,a,i,s)}else{const{from:n,to:o}=t.color,i=n?n.x:0,a=n?n.y:0,s=n?n.r:0,l=o?o.x:0,c=o?o.y:1,u=o?o.r:1;r=e.createRadialGradient(i,a,s,l,c,u)}n.forEach(e=>{r.addColorStop(e.point||0,p(e.color))}),e.fillStyle=r}e.fill()}}}t.PathData=E;t.PolygonData=class{constructor(e,t=3){this.size=e,this.sideCount=t,this.toPolygonPoints=(e=1)=>{const{width:t,height:n}=this.size;if(3===this.sideCount)return[{x:t/2,y:e},{x:t-e,y:n-e},{x:e,y:n-e}];if(4===this.sideCount)return[{x:t/2,y:e},{x:t-e,y:n/2},{x:t/2,y:n-e},{x:e,y:n/2}];const r=360/this.sideCount;let o=90-r/2;const i=[];let a=50,s=50,l=50,c=50;for(let e=0;e=360&&(o-=360)}const u=this.size.width-2*e,d=this.size.height-2*e,h=u/(s-a),p=d/(c-l);return i.forEach(t=>{t.x=(t.x-a)*h+e,t.y=(t.y-l)*p+e}),i},this.toStarPoints=()=>[],this.size=e,this.sideCount=Math.max(t,3)}},t.createRectStrokePath=function(e){const{size:t,stroke:n,radius:r,borderModel:o}=e,{width:a,height:s}=t;if(a<=0||s<=0)return"";const l=n?n.thickness||1:0,c=function(e,t,n,r){let o=i.min(e-n,t-n)/2;switch((null==r?void 0:r.position)||"inner"){case"outer":o=i.min(e+n,t+n)/2;break;case"center":o=i.min(e,t)/2}return o}(a,s,l,n);let u=!0,d=!0,h=!0,p=!0;o&&(u=!!o.left,d=!!o.top,h=!!o.right,p=!!o.bottom);const{topRight:f,bottomRight:m,bottomLeft:g,topLeft:v}=function(e,t,n,r){const o=(t,o=0)=>{const a=(null==r?void 0:r.isPercent)?i.min(e.width,e.height)*o/200:o;return i.min(i.max(a-n,0),t)},a=o(t,null==r?void 0:r.topLeft),s=o(t,null==r?void 0:r.topRight),l=o(t,null==r?void 0:r.bottomLeft),c=o(t,null==r?void 0:r.bottomRight);return{topRight:s,bottomRight:c,bottomLeft:l,topLeft:a}}(t,c,0,r),y=a,b=s,w=new E,C=()=>{w.moveTo(0,0),f?w.lineTo(y-f,0).arcTo(f,f,y,0+f,90):w.lineTo(y,0),w.lineTo(y,s)},_=()=>{w.moveTo(0,0),f?w.lineTo(y-f,0).arcTo(f,f,y,0+f,90):w.lineTo(y,0),m?w.lineTo(y,b-m).arcTo(m,m,y-m,b,180):w.lineTo(y,b),w.lineTo(0,b)},x=()=>{w.moveTo(y,0),m?w.lineTo(y,b-m).arcTo(m,m,y-m,b,180):w.lineTo(y,b),w.lineTo(0,b)},S=()=>{w.moveTo(y,0),m?w.lineTo(y,b-m).arcTo(m,m,y-m,b,180):w.lineTo(y,b),g?w.lineTo(0+g,b).arcTo(g,g,0,b-g,270):w.lineTo(0,b),w.lineTo(0,0)},k=()=>{w.moveTo(a,b),g?w.lineTo(0+g,b).arcTo(g,g,0,b-g,270):w.lineTo(0,b),w.lineTo(0,0)},P=()=>{w.moveTo(a,b),g?w.lineTo(0+g,b).arcTo(g,g,0,b-g,270):w.lineTo(0,b),v?w.lineTo(0,0+v).arcTo(v,v,0+v,0,0):w.lineTo(0,0),w.lineTo(a,0)},T=()=>{w.moveTo(0,s),v?w.lineTo(0,0+v).arcTo(v,v,0+v,0,0):w.lineTo(0,0),w.lineTo(a,0)},O=()=>{w.moveTo(0,s),v?w.lineTo(0,0+v).arcTo(v,v,0+v,0,0):w.lineTo(0,0),f?w.lineTo(y-f,0).arcTo(f,f,y,0+f,90):w.lineTo(y,0),w.lineTo(y,s)};if(!(!d&&!p&&u&&h||!u&&!h&&d&&p)){!(d&&u&&h&&p)?d?u&&h?O():u&&p?P():h&&p?_():u?T():h?C():w.moveTo(0,0).lineTo(a,0):u?d&&p?P():d&&h?O():p&&h?S():d?T():p?k():w.moveTo(0,0).lineTo(0,s):h?d&&p?_():d&&u?O():p&&u?S():d?C():p?x():w.moveTo(y,0).lineTo(y,s):p&&(u&&h?S():u&&d?P():h&&d?_():u?k():h?x():w.moveTo(0,b).lineTo(a,b)):(v?w.moveTo(0,0+v).arcTo(v,v,0+v,0,0):w.moveTo(0,0),f?w.lineTo(y-f,0).arcTo(f,f,y,0+f,90):w.lineTo(y,0),m?w.lineTo(y,b-m).arcTo(m,m,y-m,b,180):w.lineTo(y,b),g?w.lineTo(0+g,b).arcTo(g,g,0,b-g,270).close():w.lineTo(0,b).close())}else d&&p?w.moveTo(0,0).lineTo(a,0).moveTo(0,b).lineTo(a,b):w.moveTo(0,0).lineTo(0,s).moveTo(y,0).lineTo(y,s);return w.toSVG()},t.createRectFillPath=function(e,t,n,r){const{width:o,height:a}=e;if(o<=0||a<=0)return"";let{topRight:s,topLeft:l,bottomRight:c,bottomLeft:u}=t;const d=new E,h=i.min(o,a)/2;s=i.min(s||0,h),l=i.min(l||0,h),u=i.min(u||0,h),c=i.min(c||0,h);const{left:p,top:f,right:m,bottom:g}=r||{left:!0,top:!0,right:!0,bottom:!0};return p&&f&&l?(d.moveTo(0,l),d.arcTo(l,l,0+l,0,0)):d.moveTo(0,0),f&&m&&s?(d.lineTo(o-s,0),d.arcTo(s,s,o,s,90)):d.lineTo(o,0),m&&g&&c?(d.lineTo(o,a-c),d.arcTo(c,c,o-c,a,180)):d.lineTo(o,a),g&&p&&u?(d.lineTo(u,a),d.arcTo(u,u,0,a-u,270)):d.lineTo(0,a),d.close(),d.toSVG()},t.isSameColor=function(e,t){return p(e)===p(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompValueSettingOption=t.getNewCreatedSGData=t.IConnectorProperties=t.IConnnectTextInfo=t.UITableComponent=t.UITreeItemComponent=t.UITreeComponent=t.UIGridPanelComponent=t.UISymbolComponent=t.UICompoundPathComponent=t.UIConnectorComponent=t.UISelectPanelComponent=t.UIListLayoutSealedComponent=t.UIContentPanelComponent=t.UIWrapPanelComponent=t.UIArtboard=t.UIFragment=t.UIStackPanelComponent=t.UIGroupComponent=t.UIPanelComponent=t.UIContainerComponent=t.UIComponent=void 0;const r=n(886);t.UIComponent=r.default,Object.defineProperty(t,"CompValueSettingOption",{enumerable:!0,get:function(){return r.CompValueSettingOption}});const o=n(1341);t.UIContainerComponent=o.default;const i=n(1342);t.UIPanelComponent=i.default;const a=n(1343);t.UIStackPanelComponent=a.default;const s=n(1344);t.UIGroupComponent=s.default;const l=n(1345);t.UIFragment=l.default;const c=n(1346);t.UIArtboard=c.default;const u=n(1347);t.UIWrapPanelComponent=u.default;const d=n(1348);t.UIContentPanelComponent=d.default;const h=n(1349);t.UIListLayoutSealedComponent=h.default;const p=n(1351);t.UISelectPanelComponent=p.default,Object.defineProperty(t,"getNewCreatedSGData",{enumerable:!0,get:function(){return p.getNewCreatedSGData}});const f=n(1352);t.UIConnectorComponent=f.default,Object.defineProperty(t,"IConnnectTextInfo",{enumerable:!0,get:function(){return f.IConnnectTextInfo}}),Object.defineProperty(t,"IConnectorProperties",{enumerable:!0,get:function(){return f.IConnectorProperties}});const m=n(1353);t.UICompoundPathComponent=m.default;const g=n(1354);t.UISymbolComponent=g.default;const v=n(1356);t.UIGridPanelComponent=v.default;const y=n(1357);t.UITreeComponent=y.default;const b=n(1358);Object.defineProperty(t,"UITreeItemComponent",{enumerable:!0,get:function(){return b.UITreeItemComponent}});const w=n(1359);t.UITableComponent=w.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getListTypeByHTMLString=t.getTextFormatByHTMLString=t.getManyRichStyleByHTMLString=t.getCSSStyleValue=t.getRichStylesByName=t.getChildNodes=t.getHTMLElementChildren=t.execCommandOutdent=t.execCommandIndent=t.getNewCSSStyle=t.insertOrderedList=t.transBlankChartNotInTag=t.transBlankChart=t.containerValue=t.execCommandFontSize=t.applyFontStyleToLI=t.measureTextSize=t.resetRichTextElements=t.isMultiLine=t.adjustHTMLLineHeight=t.getTextFormatFromHTML=t.replaceOldFontSize=t.getPureText=t.filterHTMLText=t.allowedParagraphTextTags=t.allowedTextStyles=t.allowedTextTags=t.allowedBlockTags=t.getParagraph=t.loremIpsum=void 0;const r=n(148),o=n(868),i=n(55);var a;!function(e){e.color="color",e.fontFamily="fontFamily",e.fontSize="fontSize",e.fontWeight="fontWeight",e.fontStyle="fontStyle",e.textDecorationLine="textDecorationLine",e.textAlign="textAlign"}(a||(a={})),t.loremIpsum=new o.LoremIpsum({sentencesPerParagraph:{max:7,min:5},wordsPerSentence:{max:16,min:4}}),t.getParagraph=function(e=1){let n=t.loremIpsum.generateParagraphs(e);return n=n[0].toLocaleLowerCase()+n.substr(1),"Lorem ipsum "+n};const s={};t.allowedBlockTags=["pre","h1","h2","h3","h4","h5","h6","ul","ol","li","dt","dl","dd"],t.allowedTextTags=["label","span","font","em","i","b","u","strike","strong","a",...t.allowedBlockTags],t.allowedTextStyles={color:[/^#(0x)?[0-9a-f]+$/i,/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/],"font-size":[/^.*$/],"font-weight":[/^.*$/],"font-style":[/^.*$/],"text-decoration":[/^.*$/],"text-decoration-line":[/^.*$/],"white-space":[/^.*$/],"font-family":[/^.*$/],"line-height":[/^.*$/],"vertical-align":[/^.*$/],transform:[/^.*$/]},t.allowedParagraphTextTags=["p","div","br"];const l=[...t.allowedParagraphTextTags,...t.allowedBlockTags].map(e=>e.toUpperCase()),c=/^\s/;function u(e,n,o,i){const a=e.match(//g);if(a.length!==(null==t?void 0:t.length))return e}const s=[...t.allowedTextTags],l=Object.assign({},t.allowedTextStyles);return n&&(s.push(...t.allowedParagraphTextTags),l["line-height"]=[/^.*$/]),delete l["white-space"],o&&o(s,l),r(e,Object.assign({allowedTags:s,allowedAttributes:{"*":["style"],a:["href"]},allowedStyles:{"*":l},nonTextTags:["textarea","input","style","script","noscript"]},i||{}))}function d(e){let t,n;const r=`${e.replace(/( )/g,"")}`;if(window.DOMParser){n=new DOMParser,t=n.parseFromString(r,"text/xml");const e=t.getRootNode().firstChild;if(e.firstChild&&"parsererror"===e.firstChild.nodeName)return null}else{if(!window.ActiveXObject)throw new Error("cannot parse xml");t=new window.ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(r)}return t}t.filterHTMLText=u,t.getPureText=function(e){return e?r(e,{}):""};const h={"xx-small":10,"x-small":12,small:13,medium:16,large:18,"x-large":24,"xx-large":32},p={h1:32,h2:24,h3:18,h4:16,h5:13,h6:12},f=/(font-size|line-height|letter-spacing):\s*(\d+)px;?/gi;function m(e,t){return function(e,t){const n="in"===t&&i.FontBoxScale||"out"===t&&1/i.FontBoxScale||1;return e.replace(f,(e,t,r)=>`${t}:${r*n}px;`)}(e,t)}function g(e){return"string"!=typeof e?0:-1!==e.indexOf("px")?parseInt((""+e).replace(/px/g,""),10):-1!==e.indexOf("pt")?Math.round(parseInt((""+e).replace(/pt/g,""),10)/.75):h[e]}function v(e){const t=e.nodeName,n={},r=e.getAttribute("style");if(r){const e=r.split(";").reduce((e,t)=>{var n,r;const o=t.split(":");return e[null===(n=o[0])||void 0===n?void 0:n.trim()]=null===(r=o[1])||void 0===r?void 0:r.trim(),e},{});e["font-family"]&&(n.fontFamily=i.checkFontFamily(e["font-family"])),n.color=e.color;const o=e["font-size"];if(o?n.fontSize=g(o):p[t]&&(n.fontSize=p[t]),e["font-style"]||e["font-weight"]||e["text-decoration"]?(n.fontStyle={},("bold"===e["font-weight"]||e["font-weight"]>=700)&&(n.fontStyle.bold=!0),"italic"===e["font-style"]&&(n.fontStyle.italic=!0),e["text-decoration"]&&(-1!==e["text-decoration"].indexOf("underline")?n.fontStyle.underline=!0:-1!==e["text-decoration"].indexOf("line-through")&&(n.fontStyle.strike=!0))):p[t]&&(n.fontStyle={bold:!0}),e["line-height"]){const t=e["line-height"];if(t.includes("px")||t.includes("pt"))n.lineHeight=g(t);else if(-1!==t.indexOf("%")){const e=parseInt(t.replace("%",""),10)/100;n.lineHeight=Math.round(e*(n.fontSize||14))}else try{const e=parseFloat(t);n.lineHeight=Math.round(e*(n.fontSize||14))}catch(e){}}}return n}function y(e){const t=["
","

","
"];for(let n=0;n{"<"===e&&(t=!0,n=!1),">"===e&&(n=!0,t=!1);return t&&!n?e:e.replace(/[ ]/g," ")}).join("")}function C(e){let t=0,n=0;for(;n<2;)n++,c.test(e)&&(e=e.replace(c,""),t++);return{value:e,tabSize:t}}function _(e){const t=e.childNodes;return[...new Array(t.length)].map((e,n)=>t.item(n))}function x(e,t){const n=document.createElement("div");n.innerHTML=e,n.id="getcssstyles";return k(n).reduce((e,n)=>{const r=S(n,{endID:"getcssstyles",endStyle:t});return r&&!e.includes(r)&&e.push(r),e},[])}function S(e,t){const{endID:n,endStyle:r}=t;let o=e.parentElement;for(;o;){const e=o.style[r];if(e)return e;if(o.id===n)return;o=o.parentElement}}function k(e){let t=_(e);const n=t.filter(e=>e.nodeType===Node.TEXT_NODE);for(;t.length;){const e=t[0];if(e.nodeType===Node.ELEMENT_NODE){const n=_(e);t=[...t,...n]}else n.push(e);t.shift()}return n}t.replaceOldFontSize=m,t.getTextFormatFromHTML=function(e){const t=d(e);if(t&&t.childNodes){const e=t.childNodes[0];if(1===e.childNodes.length&&"#text"!==e.childNodes[0].nodeName)return v(e.firstChild)}return{}},t.adjustHTMLLineHeight=function(e){if(!e)return"";const t=d(e),n=e=>{if("#text"!==e.nodeName){const{fontSize:t,lineHeight:r}=v(e);if(!r&&t){const n=e;let r=n.getAttribute("style");r=r?`${r}; line-height: ${t+6}px`:`line-height: ${t+6}px`,r=r.replace(/(font-size:\d*\.*\d*(rem|em));*/,""),r=r.replace(/(font-size:\d*\.*\d*pt);*/,`font-size: ${t}px;`),n.setAttribute("style",r)}e.childNodes.length&&e.childNodes.forEach(e=>n(e))}};if(t){const e=t.childNodes[0];return e.childNodes.forEach(e=>{n(e)}),e.innerHTML}return e},t.isMultiLine=y,t.resetRichTextElements=function(e){const t=document.createElement("div");t.innerHTML=e;let n=[...new Array(t.children.length)].map((e,n)=>null==t?void 0:t.children[n]),r=0,o=r,a=0;for(;0!==n.length;){const e=n[0];if(e){let t=e.getAttribute("style");if(t&&/(font-size)|(letter-spacing)|(line-height)/.test(t)){const n=g(e.style.fontSize),s=g(e.style.lineHeight),l=g(e.style.letterSpacing);n>r&&(r=n),s>o&&(o=s),l>a&&(a=l),t=t.replace(/(font-size:\s*\d*\.*\d*px);*/,`font-size: ${n/i.FontBoxScale}px;`),t=t.replace(/(line-height:\s*\d*\.*\d*px);*/,`line-height: ${s/i.FontBoxScale}px;`),t=t.replace(/(letter-spacing:\s*\d*\.*\d*px);*/,`letter-spacing: ${l/i.FontBoxScale}px;`),e.setAttribute("style",t)}if(e.hasChildNodes()){const t=[...new Array(e.children.length)].map((t,n)=>e.children[n]);n=n.concat(t)}}n.shift()}return{text:t.innerHTML,style:{maxFontSize:r,maxLineHeight:Math.max(r,o),maxLetterSpacing:a}}},t.measureTextSize=function(e,t,n){let r=u(m(t,"out"),!!n&&n.isMultiText,(e,t)=>{(null==n?void 0:n.indent)&&(t["text-indent"]=[/^.*$/])});(null==n?void 0:n.isRich)||(r=w(r));const{defaultWidth:o,defaultHeight:a,isMultiText:l,wrap:c,editing:d}=n||{},h=Object.assign({},e);o&&(h.width=o),l?c?(h.whiteSpace="pre-wrap",h.wordBreak="break-word",h.wordWrap="break-word"):h.whiteSpace="nowrap":delete h.whiteSpace;const p=y(r),f={style:h,text:r,option:n},v=function(e){let t=0;if(e.length>0)for(let n=0;n{!function(e,t,n,r){const o={color:e.style.color||"","font-size":e.style.fontSize,"font-family":e.style.fontFamily,"font-style":e.style.fontStyle,"font-weight":e.style.fontWeight,"text-decoration-line":e.style.textDecorationLine};if(!r)switch(t){case"foreColor":o.color=n;break;case"fontSize":o["font-size"]=n+"px";break;case"fontName":o["font-family"]=n;break;case"italic":o["font-style"]="normal"===n?"normal":"italic";break;case"bold":o["font-weight"]="normal"===n?"normal":"bold";break;case"strike":{const e=o["text-decoration-line"]||"";o["text-decoration-line"]="normal"===n?e.replace("line-through",""):e+" line-through";break}case"underline":{const e=o["text-decoration-line"]||"";o["text-decoration-line"]="normal"===n?e.replace("underline",""):e+" underline";break}}const i=Object.keys(o).filter(e=>o[e]).map(e=>`${e}: ${o[e]};`).join("");setTimeout(()=>{i&&e.setAttribute("style",i)},0)}(e,n,r,0===t&&!o||t===a-1&&!i)})}(l===c?[l]:function(e,t){let n=e.nextElementSibling;const r=[e];for(;n&&(r.push(n),n!==t);)n=n.nextElementSibling;return r}(l,c),{command:e,value:t,firstLiHasSelected:h,lastLiHasSelected:p})},t.execCommandFontSize=function(e,t,n){const r=document.execCommand("fontSize",!1,"7");if(document.execCommand("styleWithCSS"),!r)return;document.querySelectorAll(e+' span[style*="xxx-large"]').forEach(e=>{const r=e;"span"===r.tagName.toLowerCase()&&(r.style.fontSize=t+"px",n&&(r.style.lineHeight=n/i.FontBoxScale+"px"))}),document.querySelectorAll(e+' font[size*="7"]').forEach(e=>{"font"===e.tagName.toLowerCase()&&(e.removeAttribute("size"),e.style.fontSize=t+"px",n&&(e.style.lineHeight=n/i.FontBoxScale+"px"))})},t.containerValue=function(e,t,n=!1){return n?-1!==e.toLowerCase().indexOf(t.toLowerCase()):-1!==e.indexOf(t)},t.transBlankChart=function(e){return e?e.replace(/[ ]/g," "):e},t.transBlankChartNotInTag=w,t.insertOrderedList=function(e,t){const n=document.createElement("div");return n.id="insertOrderedList",n.innerHTML=""+e,n.querySelectorAll("ul,ol").forEach(e=>function(e,t){const n=e.parentElement;if(!n)return;const r=document.createDocumentFragment();e.childNodes.forEach(e=>{const n=document.createElement(t);if(1===e.nodeType){const t=e;n.innerHTML=t.innerHTML;const r=t.getAttribute("style");r&&n.setAttribute("style",r)}else n.appendChild(e.cloneNode());r.appendChild(n)}),n.replaceChild(r,e)}(e,"p")),t?function(e,t,n){const r=document.createElement(t);return e.childNodes.forEach(e=>{const t=document.createElement(n);if(1===e.nodeType){const n=e,r=n.getAttribute("style");if(l.includes(e.nodeName))t.innerHTML=n.innerHTML,r&&t.setAttribute("style",r);else{const e=document.createElement(n.tagName);e.innerHTML=n.innerHTML,r&&e.setAttribute("style",r),t.appendChild(e)}}else t.appendChild(e.cloneNode());r.appendChild(t)}),r.outerHTML}(n,("order"===t?"OL":"unOrder"===t&&"UL")||"DIV","li"):n.innerHTML},t.getNewCSSStyle=function(e,t,n,r){const o=((null==n?void 0:n.split(";"))||[]).reduce((e,t)=>{if(!(t=t.trim()))return e;const n=t.split(":").map(e=>e.trim());return e.push(n),e},[])||[],i=o.findIndex(t=>t[0]===e);if(-1===i)o.push([e,r?r(""):t]);else{const e=o[i];e[1]=r?r(e[1]):t,o.splice(i,1,e)}return o.reduce((e,t)=>t[1]&&e+t.join(":")+";","")},t.execCommandIndent=function(e){const t=[...new Array(2)].map(()=>" ").join(""),n=e.parentElement,r=document.createDocumentFragment(),o=document.createElement("span");if(o.innerHTML=t,1===e.nodeType){const n=e,i=document.createElement(n.tagName);if("BR"===n.tagName)r.appendChild(i),r.appendChild(o);else if(l.includes(n.tagName))i.innerHTML=t+n.innerHTML,r.appendChild(i);else{const e=i.getAttribute("style");e&&i.setAttribute("style",e),i.innerHTML=n.innerHTML,r.appendChild(o),r.appendChild(i)}}else r.appendChild(o),r.appendChild(e.cloneNode());return null==n||n.replaceChild(r,e),2},t.execCommandOutdent=function(e){if(1===e.nodeType&&l.includes(e.nodeName)){const t=e;t.innerText=C(t.innerText).value,function(e){const t=[];let n=e.previousSibling;for(;n&&!l.includes(n.nodeName);)t.unshift(n),n=n.previousSibling;let r=0;t.forEach(e=>{if(2!==r)if(1===e.nodeType){const t=e,{value:n,tabSize:o}=C(t.innerText);t.innerText=n,r+=o}else if(e.nodeValue){const{value:t,tabSize:n}=C(e.nodeValue);e.nodeValue=t,r+=n}})}(t)}else{let t=e.parentElement;for(;t;){if(l.includes(t.nodeName)){const e=t,{value:n,tabSize:r}=C(e.innerText);return e.innerText=n,r}t=t.parentElement}}return 2},t.getHTMLElementChildren=function(e){const t=e.childNodes;return[...new Array(t.length)].reduce((e,n,r)=>{const o=t.item(r);return o.nodeType===Node.ELEMENT_NODE&&e.push(o),e},[])},t.getChildNodes=_,t.getRichStylesByName=x,t.getCSSStyleValue=function(e,t){return e.reduce((e,n)=>{const r=n[t];return r&&!e.includes(r)&&e.push(r),e},[])},t.getManyRichStyleByHTMLString=function(e){return Object.keys(a).reduce((t,n)=>{const r=n;return t[r]=x(e,r),t},{color:[],fontFamily:[],fontSize:[],fontWeight:[],fontStyle:[],textDecorationLine:[],textAlign:[]})},t.getTextFormatByHTMLString=function(e,t){const n=document.createElement("div");return n.id="jojo",n.innerHTML=e,function(e){const t={},{fontFamily:n,fontSize:r,color:o,fontWeight:a,fontStyle:s,textAlign:l,textDecorationLine:c}=e;if(n&&(t.fontFamily=i.getFontKey(n)),r&&(t.fontSize=parseInt(r.split("px")[0])),o&&(t.color=o),a&&(t.fontStyle={bold:"bold"===a||parseInt(a)>400}),s&&(t.fontStyle=Object.assign(Object.assign({},t.fontStyle||{}),{italic:"italic"===s})),c){c.includes("line-through")&&(t.fontStyle=Object.assign(Object.assign({},t.fontStyle||{}),{strike:!0}));c.includes("underline")&&(t.fontStyle=Object.assign(Object.assign({},t.fontStyle||{}),{underline:!0}))}return l&&(t.textAlign=l),t}(k(n).reduce((e,r)=>Object.keys(e).reduce((e,o)=>{const i=o,a=S(r,{endID:n.id,endStyle:i});if(!a)return delete e[i],e;const s=e[i];if(void 0===s)return e;return t[i]!==a&&""===s?(e[i]=a,e):a!==s?(delete e[i],e):e},e),{color:"",fontFamily:"",fontSize:"",fontWeight:"",fontStyle:"",textAlign:"",textDecorationLine:""}))},t.getListTypeByHTMLString=function(e){const t=document.createElement("div");if(t.innerHTML=e,1===t.childNodes.length){const e=t.firstChild;switch(null==e?void 0:e.nodeName){case"UL":return"unOrder";case"OL":return"order"}}}},function(e,t,n){var r=n(31);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AndDesignColors=t.RulerActiveAreaColor=t.RuleGraduationColor=t.SystemGreenColor=t.SystemDarkColor=t.DefaultTableInnerStrokeColor=t.DefaultTableOuterStrokeColor=t.DefaultSelectColor=t.DisabledIconColor=t.DefaultIconColor=t.DisabledTextColor=t.DefaultTextColor=t.PressedStrokeColor=t.HoverStrokeColor=t.FocusStrokeColor=t.SelectedStrokeColor=t.DisabledStrokeColor=t.DefaultStrokeColor1=t.DefaultStrokeColor=t.DisabledDarkFillColor=t.DefaultDarkFillColor=t.DisabledWhiteFillColor=t.DefaultWhiteFillColor=t.GrayColor=t.LightGrayColor=t.SilverWhiteColor=t.DarkRedColor=t.LightRedColor=t.HalfTransparentDarkGreenColor=t.PaleRedColor=t.DeepBlueColor=t.BlueColor=t.RedColor=t.DarkGreenColor=t.DarkGrayColor=t.BlackColor=t.WhiteColor=t.TextShadowColor=t.ShadowColor=t.TransparentColor=void 0,t.TransparentColor={r:0,g:0,b:0,a:0},t.ShadowColor={r:0,g:0,b:0,a:.15},t.TextShadowColor={r:0,g:0,b:0,a:.15},t.WhiteColor={r:255,g:255,b:255,a:1},t.BlackColor={r:0,g:0,b:0,a:1},t.DarkGrayColor={r:112,g:112,b:112,a:1},t.DarkGreenColor={r:74,g:214,b:98,a:1},t.RedColor={r:254,g:64,b:102,a:1},t.BlueColor={r:65,g:143,b:215,a:1},t.DeepBlueColor={r:0,g:157,b:255,a:1},t.PaleRedColor={r:255,g:217,b:224,a:1},t.HalfTransparentDarkGreenColor={r:65,g:143,b:215,a:.6},t.LightRedColor={r:254,g:64,b:102,a:.9},t.DarkRedColor={r:254,g:64,b:102,a:.8},t.SilverWhiteColor={r:240,g:240,b:240,a:1},t.LightGrayColor={r:226,g:226,b:226,a:1},t.GrayColor={r:153,g:153,b:153,a:1},t.DefaultWhiteFillColor=t.WhiteColor,t.DisabledWhiteFillColor=Object.assign(Object.assign({},t.WhiteColor),{a:.3}),t.DefaultDarkFillColor={r:240,g:240,b:240,a:1},t.DisabledDarkFillColor={r:224,g:224,b:224,a:1},t.DefaultStrokeColor={r:119,g:119,b:119,a:1},t.DefaultStrokeColor1={r:121,g:121,b:121,a:1},t.DisabledStrokeColor={r:119,g:119,b:119,a:.3},t.SelectedStrokeColor={r:65,g:143,b:215,a:1},t.FocusStrokeColor={r:65,g:143,b:215,a:1},t.HoverStrokeColor={r:65,g:143,b:215,a:1},t.PressedStrokeColor={r:65,g:143,b:215,a:1},t.DefaultTextColor={r:51,g:51,b:51,a:1},t.DisabledTextColor={r:119,g:119,b:119,a:.3},t.DefaultIconColor={r:119,g:119,b:119,a:1},t.DisabledIconColor=Object.assign(Object.assign({},t.BlackColor),{a:.3}),t.DefaultSelectColor={r:119,g:119,b:119,a:1},t.DefaultTableOuterStrokeColor={r:216,g:216,b:216,a:1},t.DefaultTableInnerStrokeColor={r:216,g:216,b:216,a:1},t.SystemDarkColor={r:153,g:165,b:190,a:1},t.SystemGreenColor={r:27,g:190,b:10,a:1},t.RuleGraduationColor={r:66,g:81,b:108,a:1},t.RulerActiveAreaColor={r:34,g:49,b:75,a:1},t.AndDesignColors={PrimaryColor:{r:24,g:144,b:255,a:1},LinkColor:{r:24,g:144,b:255,a:1},SuccessColor:{r:82,g:196,b:26,a:1},WarningColor:{r:250,g:173,b:20,a:1},ErrorColor:{r:245,g:34,b:45,a:1},HeadingColor:{r:0,g:0,b:0,a:.85},TextColor:{r:0,g:0,b:0,a:.65},TextSecondDarkColor:{r:0,g:0,b:0,a:.45},DisabledColor:{r:0,g:0,b:0,a:.25},BorderColor:{r:217,g:217,b:217,a:1},BoxShadowColor:{r:0,g:0,b:0,a:.15}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(382);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"IButtonProps",{enumerable:!0,get:function(){return r.IButtonProps}});var o=n(939);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return o.default}});var i=n(287);Object.defineProperty(t,"Badge",{enumerable:!0,get:function(){return i.default}});var a=n(942);Object.defineProperty(t,"CalcInput",{enumerable:!0,get:function(){return a.default}});var s=n(945);Object.defineProperty(t,"Carousel",{enumerable:!0,get:function(){return s.default}});var l=n(384);Object.defineProperty(t,"ICarouselItem",{enumerable:!0,get:function(){return l.ICarouselItem}});var c=n(385);Object.defineProperty(t,"CheckBox",{enumerable:!0,get:function(){return c.default}});var u=n(951);Object.defineProperty(t,"CheckBoxGroup",{enumerable:!0,get:function(){return u.default}});var d=n(953);Object.defineProperty(t,"ColorPicker",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"ColorInput",{enumerable:!0,get:function(){return d.ColorInput}}),Object.defineProperty(t,"colorPanelManager",{enumerable:!0,get:function(){return d.colorPanelManager}});var h=n(386);Object.defineProperty(t,"Dialog",{enumerable:!0,get:function(){return h.default}});var p=n(997);Object.defineProperty(t,"ErrorHandler",{enumerable:!0,get:function(){return p.default}});var f=n(998);Object.defineProperty(t,"FloatPanel",{enumerable:!0,get:function(){return f.default}});var m=n(1e3);Object.defineProperty(t,"HelpIcon",{enumerable:!0,get:function(){return m.default}});var g=n(61);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return g.default}});var v=n(1002);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return v.default}});var y=n(1004);Object.defineProperty(t,"IconLabel",{enumerable:!0,get:function(){return y.default}});var b=n(1006);Object.defineProperty(t,"IconLink",{enumerable:!0,get:function(){return b.default}});var w=n(288);Object.defineProperty(t,"Input",{enumerable:!0,get:function(){return w.default}});var C=n(393);Object.defineProperty(t,"InputNumber",{enumerable:!0,get:function(){return C.default}});var _=n(1010);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return _.default}});var x=n(388);Object.defineProperty(t,"List",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"IListItem",{enumerable:!0,get:function(){return x.IListItem}});var S=n(1012);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return S.default}});var k=n(1014);Object.defineProperty(t,"Notice",{enumerable:!0,get:function(){return k.default}});var P=n(1016);Object.defineProperty(t,"Pagination",{enumerable:!0,get:function(){return P.default}});var T=n(1018);Object.defineProperty(t,"Panel",{enumerable:!0,get:function(){return T.default}});var E=n(394);Object.defineProperty(t,"PopupMenu",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"IMenuItem",{enumerable:!0,get:function(){return E.IMenuItem}});var O=n(1021);Object.defineProperty(t,"PopupPanel",{enumerable:!0,get:function(){return O.default}});var M=n(1023);Object.defineProperty(t,"Tree",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"TreeItemData",{enumerable:!0,get:function(){return M.TreeItemData}}),Object.defineProperty(t,"cloneTreeItemData",{enumerable:!0,get:function(){return M.cloneTreeItemData}}),Object.defineProperty(t,"searchTreeNodes",{enumerable:!0,get:function(){return M.searchTreeNodes}}),Object.defineProperty(t,"searchNodes",{enumerable:!0,get:function(){return M.searchNodes}}),Object.defineProperty(t,"findNode",{enumerable:!0,get:function(){return M.findNode}}),Object.defineProperty(t,"findRootNode",{enumerable:!0,get:function(){return M.findRootNode}}),Object.defineProperty(t,"modifyAllChilrenExpand",{enumerable:!0,get:function(){return M.modifyAllChilrenExpand}}),Object.defineProperty(t,"builderTreeItemData",{enumerable:!0,get:function(){return M.builderTreeItemData}});var A=n(1025);Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return A.default}});var D=n(1027);Object.defineProperty(t,"RadioButtonGroup",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"Radio",{enumerable:!0,get:function(){return D.Radio}});var I=n(175);Object.defineProperty(t,"ScrollBars",{enumerable:!0,get:function(){return I.default}});var L=n(1031);Object.defineProperty(t,"SearchBox",{enumerable:!0,get:function(){return L.default}});var N=n(387);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return N.default}});var j=n(1033);Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return j.default}});var R=n(1035);Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return R.default}});var z=n(1037);Object.defineProperty(t,"TabBar",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"ITabBarItem",{enumerable:!0,get:function(){return z.ITabBarItem}});var F=n(1039);Object.defineProperty(t,"TabPanel",{enumerable:!0,get:function(){return F.default}});var B=n(1041);Object.defineProperty(t,"Tag",{enumerable:!0,get:function(){return B.default}});var H=n(1043);Object.defineProperty(t,"TextArea",{enumerable:!0,get:function(){return H.default}});var V=n(1045);Object.defineProperty(t,"TileList",{enumerable:!0,get:function(){return V.default}});var Y=n(211);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return Y.default}});var W=n(135);Object.defineProperty(t,"withAutoClose",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"IAutoCloseComponentProps",{enumerable:!0,get:function(){return W.IAutoCloseComponentProps}}),Object.defineProperty(t,"PopupManager",{enumerable:!0,get:function(){return W.PopupManager}}),Object.defineProperty(t,"IPopupComponent",{enumerable:!0,get:function(){return W.IPopupComponent}}),Object.defineProperty(t,"IAutoCloseProps",{enumerable:!0,get:function(){return W.IAutoCloseProps}});var U=n(1047);Object.defineProperty(t,"Zoomer",{enumerable:!0,get:function(){return U.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorPropertyName=t.StrokePropertyName=t.StrokePosition=t.PresetDashModel=t.StrokeLineCap=t.StrokeLineJoin=void 0,function(e){e.Miter="miter",e.Round="round",e.Bevel="bevel"}(t.StrokeLineJoin||(t.StrokeLineJoin={})),function(e){e.Butt="butt",e.Round="round",e.Square="square"}(t.StrokeLineCap||(t.StrokeLineCap={})),function(e){e.solid="solid",e.longDash="long-dash",e.middleDash="middle-dash",e.shortDash="short-dash",e.dashDot="dash-dot",e.dashDotDot="dash-dot-dot",e.longDashDot="long-dash-dot",e.dot="dot",e.unset="unset"}(t.PresetDashModel||(t.PresetDashModel={})),function(e){e.inner="inner",e.center="center",e.outer="outer"}(t.StrokePosition||(t.StrokePosition={})),t.StrokePropertyName="stroke",t.SeparatorPropertyName="separator"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortPredefinedStates=t.isPredefinedState=t.getPredefinedStateName=t.predefinedComponentStates=t.containerPresetState=t.disabledState=t.allTogglePredefinedStates=t.PredefinedStates=void 0;const r=n(4);var o;!function(e){e.normal="normal",e.hover="hover",e.pressed="pressed",e.toggleCheck="toggleCheck",e.checked="checked",e.unchecked="unchecked",e.focus="focus",e.blur="blur",e.disabled="disabled"}(o=t.PredefinedStates||(t.PredefinedStates={})),t.allTogglePredefinedStates=[o.disabled,o.checked],t.disabledState={type:o.disabled,name:r.default("state.disabled")},t.containerPresetState=[{type:o.checked,name:r.default("state.checked")},t.disabledState,{type:o.hover,name:r.default("state.hover")},{type:o.pressed,name:r.default("state.pressed")}],t.predefinedComponentStates=[{type:o.checked,name:r.default("state.checked")},t.disabledState,{type:o.hover,name:r.default("state.hover")},{type:o.pressed,name:r.default("state.pressed")},{type:o.focus,name:r.default("state.focus")}],t.getPredefinedStateName=function(e){const n=t.predefinedComponentStates.find(t=>t.type===e);return n?n.name:""},t.isPredefinedState=function(e){return[o.normal,o.hover,o.pressed,o.checked,o.disabled,o.focus].includes(e)},t.sortPredefinedStates=function(e){const n=[];t.predefinedComponentStates.forEach(t=>{e.includes(t.type)&&n.push(t.type)}),-1!==e.indexOf(o.normal)&&n.unshift(o.normal),e.splice(0,e.length,...n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockPlusLang=void 0;const r=n(7),o=n(1496),i=n(1497),a=n(1498),s=n(69);!function(e){e.ZH="zh-cn",e.EN="en-us",e.TW="zh-tw"}(t.MockPlusLang||(t.MockPlusLang={}));const l={"zh-cn":o.default,"en-us":i.default,"zh-tw":a.default};let c=l[window.LANG||"zh-cn"];if(!s.isFigma()){const e=null===localStorage||void 0===localStorage?void 0:localStorage.getItem("mockplus_language");c=e&&l[e]||c}t.default=(e,...t)=>{let n="";const o=e.split(".");return r.each(o,e=>{n=n?n[e]:c[e]}),n?n.replace(/{(\d+)}/g,(e,n)=>r.isUndefined(t[n])?e:t[n]):(console.log(`i18n 错误: ${e} not exist.`),"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(138);n(1448),n(1453);const a=e=>{const{cls:t,color:n,tooltip:a,toolTipDirection:s,size:l,solid:c,disabled:u,tooltipAlign:d,disableHover:h,disableHoverColor:p,clickArea:f,hidden:m,tooltipStyle:g,allowDisabledClick:v,theme:y,onClick:b,onContextMenu:w}=e,C=r.createElement("i",{className:o.default("dsm-c-icon","idoc_iconfont","icon-_"+t,{"dsm-c-icon-solid":c,"dsm-c-icon-disabled":u,"dsm-c-icon-solid-disabled":u&&c,"dsm-c-icon-solid-disableHover":h,"dsm-c-icon-solid-disableHoverColor":p,"dsm-c-icon-orea":!!f,"dsm-c-icon-blue":"blue"===y}),style:{fontSize:l,width:f?f.width:l,height:f?f.height:l,color:n,visibility:m?"hidden":"visible"},onClick:!u||v?b:void 0,onContextMenu:u?void 0:w});return a?r.createElement(i.default,{text:a,align:d,theme:"small",tipStyle:g,direction:s},C):C};a.defaultProps={solid:!1,cls:"tag_peace",size:16,tooltip:"",color:"",toolTipDirection:"down",tooltipAlign:"center",disabled:!1,disableHover:!1,disableHoverColor:!1,hidden:!1},t.default=a},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boundsToNinePoints=t.boundsToPoints=t.createBoundsBySize=t.rotate=t.rotatePoint=t.getPointAngle=t.roundPoint=t.offsetPoint=t.tranDeltaToOffset=t.getBoundsOffset=t.isEqualBounds=t.empty=t.getRoundedPositionOfPoint=t.getBoundsWithPoints=t.size=t.intersect=t.union=t.initBoundsWithPositionAndSize=t.getPointsBounds=t.initByRect=t.create=t.init=t.setLocation=t.round=t.scale=t.inflateSide=t.inflate=t.offsetBounds=t.isContainer=t.isIntersetLine=t.isIntersect=t.isContainerPoint2=t.isContainerPoint=t.isEmpty=t.center=t.bottomLeft=t.topRight=t.bottomRight=t.topLeft=t.isEqualSize=t.isEqualPoints=t.isEqualPoint=t.isEqualPosition=t.transPositionToPoint=t.transPointToPosition=void 0;const r=n(8);function o(e){return{left:e.x,top:e.y}}function i(e){return{x:e.left,y:e.top}}function a(e,t,n){return r.sameNumber(e.top,t.top,n)&&r.sameNumber(e.left,t.left,n)}function s(e,t,n){return a(o(e),o(t),n)}function l(e){return{left:e.left,top:e.top}}function c(e){return{left:e.right,top:e.bottom}}function u(e){return{left:e.right,top:e.top}}function d(e){return{left:e.left,top:e.bottom}}function h(e){return 0===e.height||0===e.width}function p(e,{left:t,top:n},o){const i=e.left-r.EPSILON,a=e.top-r.EPSILON,s=e.right+r.EPSILON,l=e.bottom+r.EPSILON;return o?i<=t&&s>=t&&a<=n&&l>=n:it&&an}function f(e,t){const{start:n,end:r}=e,{start:o,end:i}=t,a=(o.x-n.x)*(r.y-n.y)-(r.x-n.x)*(o.y-n.y),s=(i.x-n.x)*(r.y-n.y)-(r.x-n.x)*(i.y-n.y),l=(n.x-o.x)*(i.y-o.y)-(i.x-o.x)*(n.y-o.y),c=(r.x-o.x)*(i.y-o.y)-(i.x-o.x)*(r.y-o.y);return a*s<0&&l*c<0}function m(e,t){const{left:n,top:r}=t;return Object.assign(Object.assign({},e),{left:e.left+n,top:e.top+r,right:e.right+n,bottom:e.bottom+r})}function g(e,t){const n=t.left-e.left,r=t.top-e.top;return Object.assign(Object.assign({},e),{width:n,height:r,bottom:t.top,right:t.left})}function v(e,t,n,r){return g({left:e,top:t},{left:n,top:r})}function y(e,t){const n={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},{left:o,top:i,right:a,bottom:s}=e.reduce((e,t)=>(e.top=r.min(e.top,t.y),e.left=r.min(e.left,t.x),e.right=r.max(e.right,t.x),e.bottom=r.max(e.bottom,t.y),e),Object.assign({},n));return{left:o,top:i,right:a,bottom:s,width:t?Math.round(a-o):a-o,height:t?Math.round(s-i):s-i}}function b(){return{left:0,top:0,right:0,width:0,height:0,bottom:0}}function w(e,t){const{x:n,y:r}=e,{x:o,y:i}=t;let a=0;return n===o?a=r>i?90:270:r===i?a=no&&ri?a=180+a:ns(e,t[n]))},t.isEqualSize=function(e,t){return r.sameNumber(e.width,t.width)&&r.sameNumber(e.height,t.height)},t.topLeft=l,t.bottomRight=c,t.topRight=u,t.bottomLeft=d,t.center=function(e){const{left:t,top:n,width:o,height:i}=e;return{left:t+r.round(o/2),top:n+r.round(i/2)}},t.isEmpty=h,t.isContainerPoint=p,t.isContainerPoint2=function(e,t,...n){return n.some(n=>p(n,e,t))},t.isIntersect=function(e,t){if(h(t))return p(e,l(t))||p(e,c(t));if(h(e))return p(t,l(e))||p(t,c(e));const{left:n,top:o,right:i,bottom:a}=e,{left:s,top:u,right:d,bottom:f}=t,m=r.max(n,s),g=r.max(o,u),v=r.min(i,d),y=r.min(a,f);return v-m>0&&y-g>0},t.isIntersetLine=function(e,t){const n=i(l(e)),r=i(u(e)),a=i(d(e)),s=i(c(e)),h=o(t.start),m=o(t.end);let g=p(e,h)||p(e,m);return g||(g=f(t,{start:n,end:s})||f(t,{start:r,end:a})),g},t.isContainer=function(e,t,n){return p(e,l(t),n)&&p(e,u(t),n)&&p(e,d(t),n)&&p(e,c(t),n)},t.offsetBounds=m,t.inflate=function(e,t){let{left:n,top:r,right:o,bottom:i,width:a,height:s}=e;return{left:n-t.left,top:r-t.top,right:o+t.left,bottom:i+t.top,width:a+2*t.left,height:s+2*t.top}},t.inflateSide=function(e,t){let{left:n,top:r,right:o,bottom:i}=e;return e.left=n-t.left,e.top=r-t.top,e.right=o+t.right,e.bottom=i+t.bottom,e.width=e.right-e.left,e.height=e.bottom-e.top,Object.assign({},e)},t.scale=function(e,t){const{left:n,top:r,right:o,bottom:i,width:a,height:s}=e;return{left:n*t,top:r*t,right:o*t,bottom:i*t,width:a*t,height:s*t}},t.round=function(e){let{left:t,top:n,right:o,bottom:i}=e;return t=r.round(t),n=r.round(n),o=r.round(o),i=r.round(i),{left:t,top:n,right:o,bottom:i,width:o-t,height:i-n}},t.setLocation=function(e,t){return m(e,{left:t.left-e.left,top:t.top-e.top})},t.init=g,t.create=function(e){return g(l(e),c(e))},t.initByRect=v,t.getPointsBounds=function(e){let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.forEach(e=>{t=r.min(t,e.x),n=r.min(n,e.y),o=r.max(o,e.x),i=r.max(i,e.y)}),v(t,n,o,i)},t.initBoundsWithPositionAndSize=function(e,t){const{height:n,width:r}=t;return g(o(e),o({x:e.x+r,y:e.y+n}))},t.union=function(...e){if(!e.length)return{left:0,top:0,right:0,width:0,height:0,bottom:0};if(1===e.length)return e[0];const t=[...e],n=t.shift();let{left:o,top:i,right:a,bottom:s}=n;return t.forEach(e=>{o=r.min(o,e.left),i=r.min(i,e.top),a=r.max(a,e.right),s=r.max(s,e.bottom)}),g({top:i,left:o},{left:a,top:s})},t.intersect=function(...e){if(!e.length)return{left:0,top:0,right:0,width:0,height:0,bottom:0};if(1===e.length)return e[0];const t=[...e],n=t.shift();let{left:o,top:i,right:a,bottom:s}=n;return t.forEach(e=>{o=r.max(o,e.left),i=r.max(i,e.top),a=r.min(a,e.right),s=r.min(s,e.bottom)}),a<=o||s<=i?{left:0,top:0,right:0,width:0,height:0,bottom:0}:g({left:o,top:i},{left:a,top:s})},t.size=function(e){const{width:t,height:n}=e;return Math.hypot(t,n)},t.getBoundsWithPoints=y,t.getRoundedPositionOfPoint=function(e){return{x:r.round(2*e.x)/2,y:r.round(2*e.y)/2}},t.empty=b,t.isEqualBounds=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},t.getBoundsOffset=function(e,t){return{left:r.round(e.left-t.left),top:r.round(e.top-t.top),right:r.round(t.right-e.right),bottom:r.round(t.bottom-e.bottom)}},t.tranDeltaToOffset=function(e){return{left:-e.x,right:e.x,top:-e.y,bottom:e.y}},t.offsetPoint=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},t.roundPoint=function(e){return{x:r.round(e.x),y:r.round(e.y)}},t.getPointAngle=w,t.rotatePoint=C,t.rotate=function(e,t,n){return y(_(e).map(e=>C(e,t,n)))},t.createBoundsBySize=function(e){return{left:0,top:0,bottom:e.height,right:e.width,width:e.width,height:e.height}},t.boundsToPoints=_,t.boundsToNinePoints=function(e){const{left:t,top:n,right:o,bottom:i,width:a,height:s}=e,l=r.round(a/2),c=r.round(s/2);return[{x:t,y:n},{x:t+l,y:n},{x:o,y:n},{x:o,y:n+c},{x:o,y:i},{x:t+l,y:i},{x:t,y:i},{x:t,y:n+c},{x:t+l,y:n+c}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCompChangeByNewPosition=t.flattComps=t.getSelectionFrameTypeByConstraint=t.updateCompDataBaseOnContainer=t.setDefaultStatusOfSelectionGroupChild=t.updateChildrenPositionByGrid=t.getTwoDimensionalArray=t.getMaxIndexOfComponents=t.updateChildDataByFlip=t.getModifyAttrArtboardPatches=t.getModifyFlipAttrPatches=t.setMovingDataFromClonedCompsToOrgin=t.setMovingDataFromOriginToClonedComps=t.getCurrentMousePosition=t.extractDynamicInfo=t.writeMasterID=t.filterInvalidateComps=t.generatorFnMapWithEnumValue=t.getParentByFilter=t.getMovingTipsPosition=t.getPadding=t.getBoundsOffsetBySizeChange=t.getAdjustDiffWhenMove=t.allCompsSatisfy=t.getGapByControlOffset=t.extractComps=t.findParentByFiltering=t.findChildrenByFiltering=t.setValueWithFontstyle=t.transRadius=t.translateSizeMode=t.getTextCompInSealed=t.getCheckedTextStylePatchesWhenMainTextStyleChange=t.getChangedValue=t.tansPointInArtBoardToGroup=t.mapVectorToTargetCoordinates=t.reverseMapPosition=t.mapPositionToTargetCoordinates=t.getLayoutDirection=t.getAnchors=t.getAnchorsList=t.getCompBoundsInPage=t.getCompsBoundsInArtboard=t.getCompBoundsInArtboard=t.getCompAbsoluteMatrix=t.getCompLocalMatrix=t.getBoundsInParent=t.resetInteractionTargetID=t.resetValueMap=t.resetID=t.getSelectionBoxPoints=void 0;const r=n(7),o=n(885),i=n(8),a=n(28),s=n(28),l=n(40),c=n(12),u=n(32),d=n(104),h=n(23),p=n(372),f=n(277),m=n(151),g=n(20),v=n(17),y=n(62),b=n(6),w=n(6),C=n(43),_=n(34),x=n(30),S=n(375),k=n(158),P=n(52);function T(e){const t={};return e.forEach(e=>{const n=x.getNewID();if(t[e._id]=n,e._id=n,e.components){const n=T(e.components);for(let e in n)t[e]=n[e]}}),t}function E(e,t){const n=[],r=e=>{n.push(...e),e.forEach(e=>{e.components&&r(e.components)})};r(e),n.forEach(e=>{const{interaction:n,type:r}=e;if(b.CConnector===r){const{startPoint:n,endPoint:r}=e.value;if(n.id){const e=t[n.id];n.id=e||""}if(r.id){const e=t[r.id];r.id=e||""}}for(let e in n){const r=n[e];r&&r.actions.forEach(e=>{if("component"===e.type){const n=e.target,r=t[n];r&&(e.target=r)}})}})}function O({size:e,position:t,rotate:n,scale:r,isRoot:a}){let s;const l=n||0,c=r||1;if(a)s=o.Matrix.identity,s.m31=s.m32=0;else if(i.sameNumber(l,0)&&i.sameNumber(c,1))s=o.Matrix.identity,s.m31=t.x,s.m32=t.y;else if(i.sameNumber(l,0))s=o.Matrix.identity,s.m31=t.x,s.m32=t.y,s.m11=c,s.m22=c;else{const n=o.Matrix.identity;n.m11=c,n.m22=c,s=n.clone();const r=o.Matrix.identity;r.m31=-.5*e.width*c,r.m32=-.5*e.height*c;const i=o.Matrix.identity;i.m31=.5*e.width*c,i.m32=.5*e.height*c;const a=o.Matrix.createRotation(l*(Math.PI/180));a.multiplyMatrix(i),r.multiplyMatrix(a),s.multiplyMatrix(r);const u=o.Matrix.identity;u.m31=t.x,u.m32=t.y,s.multiplyMatrix(u)}return s}function M(e,t=1){const{size:n,position:r,rotate:o}=e,i=O({scale:t,size:n,position:r,rotate:o,isRoot:e.isArtboard});let a;if(e.parent){const t=i.clone();t.multiplyMatrix(M(e.parent)),a=t}else a=i;return a}function A(e){const{size:t}=e;return M(e).multiplyRect({left:0,top:0,right:t.width,bottom:t.height})}function D(e){const t={left:!1,right:!1,top:!1,bottom:!1,center:!1,middle:!1};switch(e.horizontal){case l.HorizontalAlign.Left:t.left=!0;break;case l.HorizontalAlign.Right:t.right=!0;break;case l.HorizontalAlign.LeftAndRight:t.left=!0,t.right=!0;break;case l.HorizontalAlign.Center:t.center=!0}switch(e.vertical){case l.VerticalAlign.Top:t.top=!0;break;case l.VerticalAlign.Bottom:t.bottom=!0;break;case l.VerticalAlign.TopAndBottom:t.top=!0,t.bottom=!0;break;case l.VerticalAlign.Middle:t.middle=!0}return t}function I(e){return e.reduce((e,t)=>{const n=t.dynamicInfo;return!r.isEmpty(n)&&(e[t.id]=n),e},{})}function L(e,t,n){return{do:{[e]:[c.Ops.replace(t,n.newValue)]},undo:{[e]:[c.Ops.replace(t,n.oldValue)]}}}function N(e,t,n){const r=new v.UIComponent(e,t,!1),o=new y.ArtboardPatchesClass;n.horizontal&&k.updatePatchesByWhenFlip(r,k.IFlipModel.Horizontal,o),n.vertical&&k.updatePatchesByWhenFlip(r,k.IFlipModel.Vertical,o);const i=_.extractDynamicInfoFromPatch(o)[e._id];i&&(void 0!==i.rotate&&(e.rotate=i.rotate),void 0!==i.value&&(e.value=i.value))}t.getSelectionBoxPoints=function(e){if(0===e.size)return null;if(1===e.size){return e.values().next().value.getBoxPointsInArtboard(!1)}let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.forEach(e=>{e.getBoxPointsInArtboard(!1).forEach(e=>{e.xr&&(r=e.x),e.yo&&(o=e.y)})}),[{x:t,y:n},{x:r,y:n},{x:r,y:o},{x:t,y:o}]},t.resetID=T,t.resetValueMap=function e(t,n){t.forEach(t=>{var r,o;if(t.lib){const e=C.getComponent(t.lib);(null===(r=null==e?void 0:e.editor)||void 0===r?void 0:r.onClone)&&e.editor.onClone(t,n)}(null===(o=t.components)||void 0===o?void 0:o.length)&&e(t.components,n)})},t.resetInteractionTargetID=E,t.getBoundsInParent=function({size:e,rotate:t,position:n}){return O({size:e,position:n,rotate:t}).multiplyRect({left:0,top:0,right:e.width,bottom:e.height})},t.getCompLocalMatrix=function(e,t=1){const{size:n,position:r,rotate:o}=e;return O({size:n,position:r,rotate:o,scale:t,isRoot:e.isArtboard})},t.getCompAbsoluteMatrix=M,t.getCompBoundsInArtboard=A,t.getCompsBoundsInArtboard=function(e){return a.union(...e.map(e=>A(e)))},t.getCompBoundsInPage=function(e){const t=e.getRootNode(),{x:n,y:r}=t.position,o=A(e);return a.offsetBounds(o,{left:n,top:r})},t.getAnchorsList=function(e){const t=Object.keys(e[0].layout),n={};t.forEach(t=>{n[t]=!e.some(n=>n.layout[t]!==(e[0]&&e[0].layout[t]))});const r={left:!0,top:!0,bottom:!0,right:!0,center:!1,middle:!1},o=D(e[0].layout);return Object.keys(r).forEach(t=>{r[t]=!e.some(e=>D(e.layout)[t]!==o[t])}),{layout:{responsive:n.responsive?e[0].layout.responsive:void 0,auto:n.auto?e[0].layout.auto:void 0,vertical:n.vertical?e[0].layout.vertical:void 0,horizontal:n.horizontal?e[0].layout.horizontal:void 0,fixedWidth:n.fixedWidth?e[0].layout.fixedWidth:void 0,fixedHeight:n.fixedHeight?e[0].layout.fixedHeight:void 0},anchors:{left:r.left?o.left:void 0,right:r.right?o.right:void 0,top:r.top?o.top:void 0,bottom:r.bottom?o.bottom:void 0,center:r.center?o.center:void 0,middle:r.middle?o.middle:void 0}}},t.getAnchors=D,t.getLayoutDirection=function(e){const t={horizontal:l.HorizontalAlign.Auto,vertical:l.VerticalAlign.Auto};return!e.center||e.left||e.right?e.left&&e.right?t.horizontal=l.HorizontalAlign.LeftAndRight:e.left&&!e.right?t.horizontal=l.HorizontalAlign.Left:!e.left&&e.right?t.horizontal=l.HorizontalAlign.Right:e.left||e.right||(t.horizontal=l.HorizontalAlign.Auto):t.horizontal=l.HorizontalAlign.Center,!e.middle||e.top||e.bottom?e.top&&e.bottom?t.vertical=l.VerticalAlign.TopAndBottom:e.top&&!e.bottom?t.vertical=l.VerticalAlign.Top:!e.top&&e.bottom?t.vertical=l.VerticalAlign.Bottom:e.top||e.bottom||(t.vertical=l.VerticalAlign.Auto):t.vertical=l.VerticalAlign.Middle,t},t.mapPositionToTargetCoordinates=function(e,t,n){const r=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI);return{x:e.x*r-e.y*o+n.x,y:e.y*r+e.x*o+n.y}},t.reverseMapPosition=function(e,t,n){const r=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI);return{x:e.x*r+e.y*o-n.x*r-n.y*o,y:e.y*r-e.x*o+n.x*o-n.y*r}},t.mapVectorToTargetCoordinates=function(e,t){const n=Math.cos(t/180*Math.PI),r=Math.sin(t/180*Math.PI),{x:o,y:i}=e;return{x:o*n-i*r,y:i*n+o*r}},t.tansPointInArtBoardToGroup=function(e,t){let n=t,r=0;const o=t.getBoxPointsInArtboard()[0];for(;n instanceof v.UIComponent&&!n.isArtboard;)r+=n.rotate,n=n.parent;const i=Math.cos(r/180*Math.PI),a=Math.sin(r/180*Math.PI);return e.map(e=>({x:e.x*i+e.y*a-o.x*i-o.y*a,y:e.y*i-e.x*a+o.x*a-o.y*i}))},t.getChangedValue=function(e,t){const n={},o=Object.keys(e);for(const i of o){const o=i,a=e[o],s=t[o];r.isEqual(a,s)||(n[o]=a)}return n},t.getCheckedTextStylePatchesWhenMainTextStyleChange=function(e,t,n){var r,o;const i={do:{},undo:{}};if(f.CompTextStyleNameConfig[(null===(r=e.lib)||void 0===r?void 0:r.type)||e.type].entireTextStyleName===t){const t=(null===(o=e.lib)||void 0===o?void 0:o.type)||e.type;if(f.CompTextStyleNameConfig[t]){const r=f.CompTextStyleNameConfig[t].checkedTextStyleName;if(r){const t=e.getCurrentPropertiesPath("properties/"+r),o=e.properties,a=o[r],s=Object.assign(Object.assign({},a),n);i.do[e.id]=[c.Ops.replace(t,s)],i.undo[e.id]=[c.Ops.replace(t,o[r])]}}}return i},t.getTextCompInSealed=function e(t){let n=t.components.find(e=>[b.CPureText,b.CText,b.CInput].includes(e.type))||null;if(!n)for(let r=0;rt?(e=>i.min(e/a*100,100))(e):(e=>i.min(e/100*a,a))(e);if(e.isPercent!==t.isPercent){let{topLeft:n,topRight:r,bottomRight:o,bottomLeft:a}=t;return n&&(n=i.round(c(n,e.isPercent))),r&&(r=i.round(c(r,e.isPercent))),o&&(o=i.round(c(o,e.isPercent))),a&&(a=i.round(c(a,e.isPercent))),{prop:s,name:l,topLeft:n,topRight:r,bottomLeft:a,bottomRight:o,isPercent:e.isPercent,disabled:e.disabled}}{let{topLeft:t,topRight:n,bottomRight:r,bottomLeft:o,isPercent:c}=e;return t&&(t=c?i.min(t,100):i.min(a,t)),n&&(n=c?i.min(n,100):i.min(a,n)),o&&(o=c?i.min(o,100):i.min(a,o)),r&&(r=c?i.min(r,100):i.min(a,r)),{prop:s,name:l,topLeft:t,topRight:n,bottomLeft:o,bottomRight:r,isPercent:e.isPercent,disabled:e.disabled}}},t.setValueWithFontstyle=(e,t)=>{const n=!!(null==t?void 0:t.underline),r=!!(null==t?void 0:t.strike),o=!!(null==t?void 0:t.bold),i=!!(null==t?void 0:t.italic),a=new S.FontStyleHelper,{value:s}=a.changeTextFontStyle(e,[{type:"underline",boolean:n},{type:"strike",boolean:r},{type:"bold",boolean:o},{type:"italic",boolean:i}]);return s},t.findChildrenByFiltering=function(e,t){if(!e.isContainer)return;const n=[],r=e=>{const o=e.components.filter(t);if(o.length)n.push(...o);else{e.components.filter(e=>e.isContainer).forEach(e=>{r(e)})}};return r(e),n.length?n:void 0},t.findParentByFiltering=function(e,t){if(!e)return;let n=void 0;const r=e=>{e.parent&&(e.parent&&t(e.parent)?n=e.parent:r(e.parent))};return r(e),n},t.extractComps=function e(t){const n=[...t];return t.forEach(t=>{t instanceof v.UIContainerComponent&&n.push(...e(t.components))}),n},t.getGapByControlOffset=function(e,t){const{type:n,rowIndex:r,colIndex:o}=t,i="horizontal"===n?o:r;return("horizontal"===n?e.x:e.y)*(2/(2*i+1))},t.allCompsSatisfy=function(e,t){return e.reduce((e,n)=>e=e&&t(n),!0)},t.getAdjustDiffWhenMove=function(e,t){const{horizontal:n,vertical:r}=e;let o={x:t.x,y:t.y};return n||(o.x=0),r||(o.y=0),o},t.getBoundsOffsetBySizeChange=function(e,t){const{width:n,height:r}=e,{width:o,height:i}=t;return{right:o-n,bottom:i-r,top:0,left:0}},t.getPadding=function(e){if(!e||e.disabled)return{left:0,right:0,top:0,bottom:0};const{left:t,right:n,top:r,bottom:o}=e;return{left:t||0,right:n||0,top:r||0,bottom:o||0}},t.getMovingTipsPosition=function(e,t,n){t=t||90,n=n||20;const r=e.pageX+t+16>window.innerWidth,o=e.pageY+n+16>window.innerHeight;return r?{left:window.innerWidth-t,top:e.clientY+16}:o?{left:e.clientX+16,top:window.innerHeight-n}:{left:e.clientX+16,top:e.clientY+16}},t.getParentByFilter=function e(t,n){const r=t.parent;if(r)return n(r)?r:e(r,n)},t.generatorFnMapWithEnumValue=function(e,t){return r.fromPairs(e.map(e=>[""+e,r.partial(t,e)]))},t.filterInvalidateComps=function e(t){const n=t.filter(e=>!!e);return n.forEach(t=>{t.components&&(t.components=e(t.components))}),n},t.writeMasterID=function e(t){var n;t.masterID=t._id,null===(n=t.components)||void 0===n||n.forEach(e)},t.extractDynamicInfo=I,t.getCurrentMousePosition=function(e){const{pageY:t,pageX:n}=e;return{x:n,y:t}},t.setMovingDataFromOriginToClonedComps=function(e,t){const n=I(e);t.forEach(({comp:e,source:t})=>{e.dynamicInfo=n[t]}),_.clearCompDynamicInfo(e)},t.setMovingDataFromClonedCompsToOrgin=function(e,t){const n=t.map(({comp:e})=>e),r=t.reduce((e,{comp:t,source:n})=>(e[n]=t.dynamicInfo,e),{});e.forEach(e=>{e.dynamicInfo=r[e.id]}),_.clearCompDynamicInfo(n)},t.getModifyFlipAttrPatches=function(e,t,n){const r=t===k.IFlipModel.Horizontal?"horizontal":"vertical";let o=new y.ArtboardPatchesClass;return e.reduce((e,t)=>{const o=Object.assign(Object.assign({},t.flip||{}),{[r]:n}),i=void 0===t.flip?void 0:t.flip,a=L(t.id,"/flip",{oldValue:i,newValue:o});return e.coverPatches(a)},o)},t.getModifyAttrArtboardPatches=L,t.updateChildDataByFlip=N,t.getMaxIndexOfComponents=function(e,t){const n=t.reduce((t,n,r)=>(e.find(e=>e.id===n.id)&&t.push(r),t),[]);return Math.max(-1,...n)},t.getTwoDimensionalArray=function(e,t,n){const o=new Array(t).fill(1).map(()=>{const e=r.cloneDeep(n);return E([e],T([e])),e});return new Array(e).fill(1).map(()=>r.cloneDeep(o).map(e=>(E([r.cloneDeep(e)],T([e])),e)))},t.updateChildrenPositionByGrid=function(e,t,n){let r=0;return e.forEach(e=>{let o=0,i=0;e.forEach(e=>{const t=e.position;t.y=r,t.x=o,o+=e.size.width+n,i=Math.max(i,e.size.height)}),r+=i+t}),e},t.setDefaultStatusOfSelectionGroupChild=function(e,t){return e.forEach(e=>function e(t,n){var r;const{properties:o,states:i}=t;i[n]||(i[n]={enabled:!0,properties:{}});const a=i[n];a.enabled=!0,a.properties||(a.properties={}),Object.keys(o).forEach(e=>{var t;const n=o[e],r=n.prop||e,i=a.properties[e];switch(r){case u.FillPropertyName:{const t=n;i||t.type!==u.FillType.solid||(a.properties[e]=Object.assign(Object.assign({},t),{color:g.DeepBlueColor}));break}case h.StrokePropertyName:case p.IconPropertyName:!i&&(a.properties[e]=Object.assign(Object.assign({},n),{color:g.DeepBlueColor}));break;case d.TextFormatExPropertyName:r!==d.TextFormatExPropertyName||(null===(t=o[u.FillPropertyName])||void 0===t?void 0:t.disabled)?!i&&(a.properties[e]=Object.assign(Object.assign({},n),{color:g.DeepBlueColor})):!i&&(a.properties[e]=Object.assign(Object.assign({},n),{color:g.WhiteColor}))}}),null===(r=t.components)||void 0===r||r.forEach(t=>e(t,n))}(e,t)),e[0].selected=!0,e},t.updateCompDataBaseOnContainer=function(e,t){const n=e.flip;((null==n?void 0:n.horizontal)||(null==n?void 0:n.vertical))&&N(t,e,{horizontal:!!(null==n?void 0:n.horizontal),vertical:!!(null==n?void 0:n.vertical)})},t.getSelectionFrameTypeByConstraint=function(e){return e===w.SizeMode.custom?m.default.box:e===w.SizeMode.ratio?m.default.corner:e===w.SizeMode.horizontal?m.default.leftMiddle_to_rightMiddle:e===w.SizeMode.vertical?m.default.topMiddle_to_bottomMiddle:e===w.SizeMode.none?m.default.none:m.default.box},t.flattComps=e=>{const t=[],n=e=>{t.push(...e),e.forEach(e=>{e instanceof v.UIContainerComponent&&n(e.components)})};return n([e]),t},t.getCompChangeByNewPosition=function(e,t){const{width:n,height:r}=e.getViewBoundsInParent(),o=P.getCenter(t,{height:r,width:n},0),i=s.getRoundedPositionOfPoint(P.getNWPoint(o,e.size,0));return e.isLayoutCenterAtHorizontal&&(i.x=e.position.x),e.isLayoutMiddleAtVertical&&(i.y=e.position.y),{id:e.id,type:_.ComponentChangeType.Edit,position:i,size:e.size,rotate:e.rotate}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GUID=t.getNewID=t.setSeed=t.getRandomSeed=void 0;let r=0,o=i();function i(){return Math.round(1e6*Math.random()).toString(36)}t.getRandomSeed=i,t.setSeed=function(e){o=e},t.getNewID=function(){return r++,`${o}-${r.toString(32)}`},t.GUID=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FillPropertyName=t.FillType=void 0,function(e){e.solid="solid",e.linear="linear",e.radial="radial"}(t.FillType||(t.FillType={})),t.FillPropertyName="fill"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCommonComponent=void 0;const r=n(40);t.makeCommonComponent=(e,t,n)=>Object.assign({_id:e,type:t,connectors:[],layout:{responsive:!1,auto:!0,fixedWidth:!1,fixedHeight:!1,horizontal:r.HorizontalAlign.Auto,vertical:r.VerticalAlign.Auto},properties:{},interaction:{},size:{width:0,height:0},position:{x:0,y:0},v:0,states:{}},n,{_id:e})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLineValueByZoom=t.getOffsetByNewSizeAndFixPoint=t.getResizeListLayout=t.getResizeMySelfLayout=t.getResizeResultByParentChange=t.getCompSizeChangeByOffSet=t.getAdjustedZeroOffset=t.clearCompDynamicInfo=t.setCompData=t.setCompDynamicInfo=t.getSuchChild=t.addLayoutToBackup=t.getBackupAllCompsLayout=t.getChildLayout=t.getDoByCompDynamicInfo=t.getCompUpperComponents=t.getCompChildrenWithoutGroupContainer=t.getCompAndItsChildren=t.getResizeSingLinePatch=t.extractDynamicInfoFromPatch=t.getCompInitialStatusForResize=t.getCompAndChildrenInitialStatusForResize=t.getLineSelectionFrameType=t.isDragStartOrEndPoint=t.getMinSizeOfComp=t.getAllPointsByDraggingPoint=t.getAllPointsByCornerPoint=t.getOffsetBySizeChange=t.getMinMaxXY=t.getAdjustedDiffAvoidReverse=t.responsiveFixedHeightStrategy=t.responsiveFixedWidthStrategy=t.getNewPositionWhenCenter=t.updateSizeAsLockedRatio=t.updateUnChangedComponentsPatches=t.updateEditComponentsPatches=t.EditType=t.ComponentChangeType=void 0;const r=n(7),o=n(131),i=n(28),a=n(28),s=n(8),l=n(133),c=n(103),u=n(12),d=n(40),h=n(151),p=n(1083),f=n(1084),m=n(24),g=n(52),v=n(114),y=n(29),b=n(35),w=n(136),C=n(6),_=n(6),x=n(17),S=n(85),k=n(95);var P;function T(e,t,n){if(n){const n=Math.abs(t.width-e.width),r=Math.abs(t.height-e.height);let o=n>.9,i=r>.9;if(o&&i){r-n>3?o=!1:i=!1}const a=e.width/e.height;return o?t.height=t.width/a:i&&(t.width=t.height*a),t}return t}function E(e,t,n,r,i){let a={x:e.x,y:e.y};const{before:l,after:c}=i.container;switch(r.horizontal){case d.HorizontalAlign.Left:a.x=e.x+n.left;break;case d.HorizontalAlign.Right:a.x=e.x+n.right;break;case d.HorizontalAlign.LeftAndRight:o.ok(!1,"组件不能既固定宽度,又两边都锚定.");break;case d.HorizontalAlign.Auto:s.isEqual0(l.size.width-t.width)?a.x=e.x+n.left+n.right:a.x=(e.x-l.position.x)/(l.size.width-t.width)*(c.size.width-t.width)+c.position.x;break;case d.HorizontalAlign.Center:a.x=c.position.x+c.size.width/2-t.width/2;break;default:o.ok(!1,"不该有这种情况")}return a}function O(e,t,n,r,i){let a={x:e.x,y:e.y};const{before:l,after:c}=i.container;switch(r.vertical){case d.VerticalAlign.Top:a.y=e.y+n.top;break;case d.VerticalAlign.Bottom:a.y=e.y+n.bottom;break;case d.VerticalAlign.TopAndBottom:o.ok(!1,"组件不能既固定宽度,又两边都锚定.");break;case d.VerticalAlign.Auto:s.isEqual0(e.y-l.position.y)?a.y=e.y+n.top+n.bottom:a.y=(e.y-l.position.y)/(l.size.height-t.height)*(c.size.height-t.height)+c.position.y;break;case d.VerticalAlign.Middle:a.y=c.position.y+c.size.height/2-t.height/2;break;default:o.ok(!1,"不该有这种情况")}return a}function M(e){return e.reduce((e,t)=>({minX:t.xe.maxX?t.x:e.maxX,maxY:t.y>e.maxY?t.y:e.maxY}),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0})}function A(e){switch(e.type){case C.CLine:return{width:p.MinSizeOfLine,height:p.MinSizeOfLine};case C.CPath:return{width:p.MinSizeOfPath,height:p.MinSizeOfPath};case C.CTable:return w.getTableMinSizeFromValue(e.value);default:return{width:p.MinSizeOfNormalComp,height:p.MinSizeOfNormalComp}}}function D(e){const{id:t,position:n,size:r}=e;return{id:t,position:n,positionPath:e.getCurrentPositionPath(),size:r,sizePath:e.getCurrentSizePath(),value:e.value,valuePath:[C.CCompoundPath,C.CPath].includes(e.type)?"/value":e.getCurrentPropertiesPath("/value")}}function I(e,t,n,r){let o=[];return e.forEach(e=>{if((!e.hidden||e.hidden&&!r)&&o.push(e),(!e.hidden||!r)&&e.components){const i=e instanceof x.UISymbolComponent&&!e.isGroup;if(t&&i)return;if(n&&e.isSealed)return;o=o.concat(I(e.components,t,n,r))}}),o}!function(e){e.Edit="edit",e.Add="added",e.Removed="removed"}(P=t.ComponentChangeType||(t.ComponentChangeType={})),function(e){e.move="move",e.resize="resize",e.rotate="rotate"}(t.EditType||(t.EditType={})),t.updateEditComponentsPatches=function(e,t,n,o){t.filter(e=>e.type===P.Edit).forEach(t=>{var i;const l=[],d=[],{id:h,value:p,position:f,specialSetting:g,rotate:v,size:y}=t,w=e.find(e=>h===e.id);if(!w)return;const _=null==g?void 0:g.isResizeSingleLine,{x:x,y:S}=w.position,k=f.x-n.x,P=f.y-n.y,{size:T}=w,E=s.notSameNumber(T.width,y.width)||s.notSameNumber(T.height,y.height),O={x:s.notSameNumber(x,k)?k:x,y:s.notSameNumber(S,P)?P:S};if(!r.isEqual(w.position,O)){const e=w.getCurrentPositionPath();l.push(u.Ops.replace(e,O)),d.push(u.Ops.replace(e,w.position))}if(w.rotate!==v){const e=w.getCurrentRotatePath();l.push(u.Ops.replace(e,v)),d.push(u.Ops.replace(e,w.rotate))}if(!w.isGroup&&E){const e=[C.CText,C.CPureText].includes(w.type)&&Boolean(w.currentStateID),t=w.getCurrentSizePath(e);l.push(u.Ops.add(""+t,Object.assign(Object.assign({},T),y))),d.push(u.Ops.replace(""+t,T))}const M=a.initBoundsWithPositionAndSize(f,y),A=w.type;if(_&&p){const e=w.value;if(!r.isEqual(p,e)){let t;t=c.enumToArray(m.PredefinedStates).includes(w.currentStateID)?"/value":w.getCurrentPropertiesPath("/value"),l.push(u.Ops.replace(""+t,p)),d.push(u.Ops.replace(""+t,e))}}if(!_&&!w.isContainer||[C.CCompoundPath,C.CTable].includes(A)){const e=w.updateValueOrPropertiesWithBoundsChanged(M);if(e){const t=w.id;e.do[t].forEach(e=>{l.push(e)}),e.undo[t].forEach(e=>{d.push(e)})}}if(l.length>0){const e=o.do[h],t=o.undo[h];o.do[h]=e?[...e,...l]:l,o.undo[h]=t?[...t,...d]:d}if(A===C.CCompoundPath){const e=w.size,t={x:M.width/(e.width||1),y:M.height/(e.height||1)};w.updateChildrenOfCompoundPathByZoom(t,o)}if(A===C.CTable){const e=null===(i=l.find(e=>/value$/.test(e.path)))||void 0===i?void 0:i.value;if(e&&(E||t.value)){const t=w.updateTextCompSize(e);t&&b.coverPatches(o,t)}}const D=w.updateRadialGradientPatchesWithNewSize(M);b.coverPatches(o,D)})},t.updateUnChangedComponentsPatches=function(e,t,n){e.forEach(e=>{if(e.isConnector)return;const r=[],o=[],i=e.position,a={x:i.x-t.x,y:i.y-t.y};if(t.x||t.y){const t=e.getCurrentPositionPath();r.push(u.Ops.replace(t,a)),o.push(u.Ops.replace(t,e.position))}r.length>0&&(n.do[e.id]=r,n.undo[e.id]=o)})},t.updateSizeAsLockedRatio=T,t.getNewPositionWhenCenter=function(e,t,n,r,o){const i=g.getCenter({x:0,y:0},r),a=g.getNWPoint(i,n,0);let s={x:t.x,y:t.y};return(e instanceof x.UIComponent&&e.isLayoutMiddleAtVertical||(null==o?void 0:o.isLayoutMiddleAtVertical))&&(s.y=a.y),(e instanceof x.UIComponent&&e.isLayoutCenterAtHorizontal||(null==o?void 0:o.isLayoutCenterAtHorizontal))&&(s.x=a.x),s},t.responsiveFixedWidthStrategy=E,t.responsiveFixedHeightStrategy=O,t.getAdjustedDiffAvoidReverse=function(e,t,n,r,o){const i=[h.SelectionPoints.rightTop,h.SelectionPoints.rightBottom,h.SelectionPoints.rightMiddle].includes(e),a=[h.SelectionPoints.leftTop,h.SelectionPoints.leftBottom,h.SelectionPoints.leftMiddle].includes(e),s=[h.SelectionPoints.leftTop,h.SelectionPoints.topMiddle,h.SelectionPoints.rightTop].includes(e),l=[h.SelectionPoints.rightBottom,h.SelectionPoints.bottomMiddle,h.SelectionPoints.leftBottom].includes(e);let c=y.mapVectorToTargetCoordinates({x:t.x,y:t.y},-o);const u=n.width-r.width,d=n.height-r.height;return i&&-c.x>u&&(c.x=-u),a&&c.x>u&&(c.x=u),s&&c.y>d&&(c.y=d),l&&-c.y>=d&&(c.y=-d),y.mapVectorToTargetCoordinates(c,o)},t.getMinMaxXY=M,t.getOffsetBySizeChange=function(e,t){const{height:n,width:r}=e,{height:o,width:i}=t;return{left:0,right:i-r,top:0,bottom:o-n}},t.getAllPointsByCornerPoint=function(e){const t=e.map((t,n)=>{const r=e[(n+1)%4];return{x:(r.x+t.x)/2,y:(r.y+t.y)/2}});return e.concat(t)},t.getAllPointsByDraggingPoint=function(e){const{originalPoints:t,dragIndex:n,newPoint:r,isWidthHeightBothChange:o,resizingCenterAnchorComp:i,rotateAngle:a}=e;return g.dragResizePoint(t,n,r,o,a,i)},t.getMinSizeOfComp=A,t.isDragStartOrEndPoint=function(e,t,n){const{value:r,size:o}=e;let{startPoint:i,endPoint:s}=r;i=i||{x:0,y:0},s=s||{x:o.width,y:o.height};const l=y.tansPointInArtBoardToGroup(t,e.parent),c=l[n],{minX:u,minY:d}=M(l),h={x:c.x-u,y:c.y-d};return{isDraggingStartPoint:a.isEqualPoint(h,i,.5),isDraggingEndPoint:a.isEqualPoint(h,s,.5)}},t.getLineSelectionFrameType=function(e){const t=e.value;if(t){const n=e.size,{startPoint:r,endPoint:o}=t,i=r||{x:0,y:0},a=o||{x:n.width,y:n.height};return(i.y-a.y)/(i.x-a.x)>0?h.default.leftTop_to_rightBottom:h.default.leftBottom_to_rightTop}return h.default.leftTop_to_rightBottom},t.getCompAndChildrenInitialStatusForResize=function e(t){let n=[];return t.forEach(t=>{n.push(D(t)),t instanceof x.UIContainerComponent&&t.components&&(n=n.concat(e(t.components)))}),n},t.getCompInitialStatusForResize=D,t.extractDynamicInfoFromPatch=function(e,t){return Object.entries(e.do).reduce((e,[n,r])=>{let o={editType:t};return r.forEach(e=>{const t=e.value;if(e.path.includes("size")&&(o.size=t),e.path.includes("position")&&(o.position=t),e.path.includes("value")&&(o.value=t),e.path.includes("rotate")&&(o.rotate=t),e.path.includes("properties")){const n=e.path.replace("properties","").replace(/\//g,"").replace(".","").replace(/\//g,"");o.properties=n?{[n]:t}:t}e.path.includes("autoSize")&&(o.autoSize=t)}),e[n]=o,e},{})},t.getResizeSingLinePatch=function(e,t,n){var r;const o=e,{startPoint:i,endPoint:a}=o.value,{newPoints:c,dragIndex:u,dragStartOrEndPointInfo:d}=n,{isDraggingStartPoint:h}=d,p=y.tansPointInArtBoardToGroup(c,e.parent),f=y.tansPointInArtBoardToGroup(t,e.parent),{minX:m,minY:g,maxX:v,maxY:b}=M(p);let w=i,C=a;const _={height:b-g,width:v-m,lockedRatio:e.lockedRatio},x={0:2,1:3,2:0,3:1},S=x[u],k=Object.assign({},f[S]),T=p.findIndex(e=>s.isMoreOrLess(e.x,k.x,.5)&&s.isMoreOrLess(e.y,k.y,.5)),E=s.depthClone(Object.assign({},p[x[T]]));k.x-=m,k.y-=g,E.x-=m,E.y-=g,s.isMoreOrLess(k.x,E.x,.5)&&(E.x=k.x),s.isMoreOrLess(k.y,E.y,.5)&&(E.y=k.y),h?(w=E,C=k):(w=k,C=E);const O=e=>{e.x%1>.7?e.x=Math.ceil(e.x):e.x%1<.3?e.x=Math.floor(e.x):e.x=Math.floor(e.x)+.5,e.y%1>.7?e.y=Math.ceil(e.y):e.y%1<.3?e.y=Math.floor(e.y):e.y=Math.floor(e.y)+.5};O(w),O(C);const A={startPoint:w,endPoint:C},D=l.getOffsetByPoints(f,p,0),I=e.position,L={x:s.round(I.x+D.left),y:s.round(I.y+D.top)},N={id:e.id,type:P.Edit,position:L,size:_,rotate:e.rotate,value:A,specialSetting:{isResizeSingleLine:!0}};return(null===(r=o.parent)||void 0===r?void 0:r.getPositionPatchesOfChildrenChanged([N],!0)).patches},t.getCompAndItsChildren=I,t.getCompChildrenWithoutGroupContainer=function e(t){let n=[];return t.components.forEach(t=>{t.isGroup?n=n.concat(e(t)):n.push(t)}),n},t.getCompUpperComponents=function e(t){let n=[];return t.forEach(t=>{let r=t.parent;r&&!r.isArtboard&&(n.push(r),n=n.concat(r.components.filter(e=>e.id!==t.id)),n=n.concat(e([r])))}),n};const L=e=>![C.CPath,C.CCompoundPath].includes(e);function N(e){const t=v.collectComponentsLayout(e.components,i.createBoundsBySize(e.size));return e.components.forEach(e=>{if(e instanceof x.UIContainerComponent){const n=N(e);e.components.forEach(e=>{const r=n.get(e);r&&t.set(e,r)})}}),t}function j(e,t,n){t.forEach(t=>{const r=n.get(t);r&&e.set(t,r)})}function R(e){return r.mapValues(e,e=>s.sameNumber(e,0)?0:e)}t.getDoByCompDynamicInfo=function(e,t=!0){let n={},o={};return I(e,!0).forEach(e=>{const i=e.id;if(!o[i]){const a=e.currentState.position||e.toJSON().position,l=e.currentState.size||e.toJSON().size,c=e.currentState.value||e.toJSON().value,d=e.properties,{dynamicInfo:{position:h,size:p,value:f,properties:m,autoSize:g}}=e;if(h&&!r.isEqual(a,h)){const r=e.getCurrentPositionPath();e.rotate&&0!==e.rotate&&(t=!1);const o=t&&L(e.type)?{x:s.round(h.x),y:s.round(h.y)}:h;(n[e.id]||(n[e.id]=[])).push(u.Ops.replace(r,o))}if(p){if(s.notSameNumber(l.width,p.width)||s.notSameNumber(l.height,p.height)){const o=[C.CText,C.CPureText].includes(e.type)&&Boolean(e.currentStateID),i=e.getCurrentSizePath(o),a=t&&L(e.type)?r.mapValues(p,e=>s.round(e)):p;(n[e.id]||(n[e.id]=[])).push(u.Ops.replace(""+i,Object.assign(Object.assign({},l),a))),e instanceof x.UISymbolComponent&&(n[e.id]||(n[e.id]=[])).push(u.Ops.replace("/sizeVersion",Math.min(e.sizeVersion+1,e.symbolSizeVersion+1)))}}if(f&&!e.isRefValue()){if(!r.isEqual(f,c)){const t=[C.CCompoundPath,C.CPath].includes(e.type)||e.type===C.CPath?"/value":e.getCurrentPropertiesPath("/value");(n[e.id]||(n[e.id]=[])).push(u.Ops.replace(""+t,f))}}if(null==m?void 0:m.fill){if(!r.isEqual(m.fill,d.fill)){const t=e.getCurrentPropertiesPath("properties/fill");(n[e.id]||(n[e.id]=[])).push(u.Ops.replace(""+t,m.fill))}}if(null==m?void 0:m.cell){const t=(e.currentState.properties||e.toJSON().properties).cell;if(!r.isEqual(m.cell,t)){const t=e.getCurrentPropertiesPath("properties/cell");(n[e.id]||(n[e.id]=[])).push(u.Ops.replace(""+t,m.cell))}}if(void 0!==g){if(!r.isEqual(g,e.$data.autoSize)){const t="./autoSize";(n[e.id]||(n[e.id]=[])).push(u.Ops.replace(""+t,g))}}o[i]=!0}}),n},t.getChildLayout=N,t.getBackupAllCompsLayout=function(e){const t=k.getViewBoundsOfComponents(e);let n=v.collectComponentsLayout(e,t);const r=I(e);return e.forEach(e=>{if(e instanceof x.UIContainerComponent){const t=v.collectComponentsLayout(e.components,i.createBoundsBySize(e.size));j(n,r,t),e.components.forEach(e=>{if(e.isContainer){const t=N(e);j(n,r,t)}})}}),n},t.addLayoutToBackup=j,t.getSuchChild=function e(t,n,r=!0){const o=t.components;let i=[];return r?null==o||o.forEach(t=>{var o;(null===(o=t.components)||void 0===o?void 0:o.length)?i=i.concat(e(t,n,r)):n(t)&&i.push(t)}):null==o||o.forEach(e=>{n(e)&&i.push(e)}),i},t.setCompDynamicInfo=function(e,t){e.forEach(e=>{t[e.id]&&(e.dynamicInfo=Object.assign({position:e.position,size:e.size,value:e.currentState.value,autoSize:e.autoSize,properties:e.properties},t[e.id]))})},t.setCompData=function(e,t){e.forEach(e=>{const n=t[e.id];if(n){const{position:t,size:r,value:o}=n,i=e.toJSON();t&&(i.position=t),r&&(i.size=r),o&&(i.value=o)}})},t.clearCompDynamicInfo=function(e){e.forEach(e=>{e.dynamicInfo={},e.initialResizeInfo={}})},t.getAdjustedZeroOffset=R,t.getCompSizeChangeByOffSet=function(e,t){let n,r,o=R(e);r=-o.top+o.bottom,n=-o.left+o.right;const{horizontal:i,vertical:a}=t.centerLayoutInfo;return(i||t.rotate&&a)&&(n=-o.left+o.right),(a||t.rotate&&i)&&(r=-o.top+o.bottom),{heightChange:r,widthChange:n}},t.getResizeResultByParentChange=function(e,t,n,r){const i=e.size,a=e.size,l=e.position,c=S.makeUIComponent(e);let u={x:l.x,y:l.y},h={width:i.width,height:i.height},p=r.shift;p=!e.layout.responsive||r.shift;const{before:f,after:m,isResponsive:v}=r.container;if(p){const o=r.scale.h,a=r.scale.v;let s={width:i.width*o,height:i.height*a};return s=T(i,s,!v&&r.shift&&!e.layout.responsive||!!i.lockedRatio),u={x:m.position.x+(l.x-f.position.x)*o,y:m.position.y+(l.y-f.position.y)*a},s=c.adjustZeroSize(s),c.updateSizeWhenResizeText(s,i),e.layout.responsive&&!e.layout.auto&&(n.fixedHeight&&(s.height=i.height,u.y=O(l,i,t,n,r).y),n.fixedWidth&&(s.width=i.width,u.x=E(l,i,t,n,r).x)),{position:u,size:s,rotate:e.rotate||0}}const b=c.rotate;let w=c.getBoxPointsInParent()[0];if(n.fixedWidth)switch(n.horizontal){case d.HorizontalAlign.Left:u.x=l.x+t.left;break;case d.HorizontalAlign.Right:u.x=l.x+t.right;break;case d.HorizontalAlign.LeftAndRight:o.ok(!1,"组件不能既固定宽度,又两边都锚定.");break;case d.HorizontalAlign.Auto:s.isEqual0(f.size.width-i.width)?u.x=l.x+t.left+t.right:(c.initialResizeInfo.xDistributionRatio||(c.initialResizeInfo.xDistributionRatio=(l.x-f.position.x)/(f.size.width-i.width)),u.x=c.initialResizeInfo.xDistributionRatio*(m.size.width-i.width)+m.position.x);break;case d.HorizontalAlign.Center:u.x=m.position.x+m.size.width/2-i.width/2;break;default:o.ok(!1,"不该有这种情况")}else switch(n.horizontal){case d.HorizontalAlign.Auto:u.x=m.position.x+(l.x-f.position.x)*r.scale.h,h.width=i.width*r.scale.h,w.x=g.getNWPoint(g.getCenter(u,h,0),h,e.rotate||0).x;break;case d.HorizontalAlign.Center:h.width=i.width*r.scale.h,u.x=m.position.x+m.size.width/2-h.width/2;break;case d.HorizontalAlign.Right:{h.width=i.width*r.scale.h;const n=f.size.width-l.x-i.width;u.x=m.size.width-h.width-n+t.left,s.notSameNumber(t.right,0)&&(w.x=g.getNWPoint(g.getCenter(u,h,0),h,e.rotate||0).x);break}case d.HorizontalAlign.LeftAndRight:{h.width=Math.max(A(c).width,i.width+t.right-t.left);const e=y.mapVectorToTargetCoordinates({x:t.left,y:0},c.rotate);c.rotate?s.notSameNumber(t.left,0)&&(w.x+=e.x,w.y+=e.y):(c.initialResizeInfo.right||(c.initialResizeInfo.right=f.size.width-l.x-i.width),u.x=l.x+t.left,c.type===_.CPath&&0===a.width&&(h.width=0));break}default:0!==t.left&&(u.x=l.x+t.left),t.right-t.left!=0&&(h.width=i.width*r.scale.h),s.notSameNumber(t.left,0)&&(w.x=g.getNWPoint(g.getCenter(u,h,0),h,c.rotate).x)}if(n.fixedHeight)switch(n.vertical){case d.VerticalAlign.Top:u.y=l.y+t.top;break;case d.VerticalAlign.Bottom:u.y=l.y+t.bottom;break;case d.VerticalAlign.TopAndBottom:o.ok(!1,"组件不能既固定宽度,又两边都锚定.");break;case d.VerticalAlign.Auto:s.isEqual0(f.size.height-i.height)?u.y=l.y+t.top+t.bottom:(c.initialResizeInfo.yDistributionRatio||(c.initialResizeInfo.yDistributionRatio=(l.y-f.position.y)/(f.size.height-i.height)),u.y=c.initialResizeInfo.yDistributionRatio*(m.size.height-i.height)+m.position.y,w.y=g.getNWPoint(g.getCenter(u,h,0),h,c.rotate).y);break;case d.VerticalAlign.Middle:u.y=m.position.y+m.size.height/2-i.height/2;break;default:o.ok(!1,"不该有这种情况")}else switch(n.vertical){case d.VerticalAlign.Auto:u.y=m.position.y+(l.y-f.position.y)*r.scale.v,h.height=i.height*r.scale.v,w.y=g.getNWPoint(g.getCenter(u,h,0),h,c.rotate).y;break;case d.VerticalAlign.Middle:u.y=m.position.y+m.size.height/2-h.height/2,h.height=i.height*r.scale.v;break;case d.VerticalAlign.TopAndBottom:{h.height=Math.max(A(c).height,i.height+t.bottom-t.top);const e=y.mapVectorToTargetCoordinates({x:0,y:t.top},c.rotate);c.type===_.CPath&&0===a.height&&(h.height=0),c.rotate?t.top&&(w.y+=e.y,w.x+=e.x):u.y=l.y+t.top;break}case d.VerticalAlign.Bottom:{h.height=i.height*r.scale.v;const e=f.size.height-l.y-i.height;u.y=m.size.height-h.height-e+t.top,w=g.getNWPoint(g.getCenter(u,h,0),h,c.rotate);break}default:0!==t.top&&(u.y=l.y+t.top),t.bottom-t.top!=0&&(h.height=i.height*r.scale.v)}h=c.adjustZeroSize(h),c.updateSizeWhenResizeText(h,i),h=T(i,h,c.lockedRatio);const C=s.notSameNumber(h.height,i.height)||s.notSameNumber(h.width,i.width);return c.rotate&&C&&(u=g.getNWPoint(g.getCenter(w,h,c.rotate),h,0)),{position:{x:u.x,y:u.y},size:h,rotate:b}},t.getResizeMySelfLayout=function(){return{horizontal:d.HorizontalAlign.LeftAndRight,vertical:d.VerticalAlign.TopAndBottom,fixedHeight:!1,fixedWidth:!1}},t.getResizeListLayout=function(e,t,n,r={shift:!1}){const o=t,i={do:{},undo:{}},a=e.getCoordinateOffset(n),{layout:l,cell:c}=e.properties,{left:u,right:d}=e.padding,{shift:h}=r;if("vertical"===l.direction)if(c.ratioHeight){const r=e.components.map((r,c)=>{let u,d=s.depthClone(o);const p=e.components.length,f=((null==l?void 0:l.verticalGap)||0)*(p-1);u=(n.size.height-f)/p-r.size.height,s.isNotEqual0(t.bottom)&&(d.bottom=u),s.isNotEqual0(t.top)&&(d.top=-u);const m=r.resizeMySelf(d,h);return m.patches&&b.coverPatches(i,m.patches),(s.isNotEqual0(t.top)||s.isNotEqual0(t.bottom))&&(m.position={x:r.position.x,y:r.position.y+u*c+t.top}),{id:r.id,type:P.Edit,position:{x:m.position.x+a.x,y:m.position.y+a.y},size:m.size,rotate:m.rotate}}),c=e.getPositionPatchesOfChildrenChanged(r,!1);c.patches&&b.coverPatches(i,c.patches)}else{const t=e.components.map(e=>{const t=Object.assign(Object.assign({},o),{top:0,bottom:0}),n=e.resizeMySelf(t,h);n.patches&&b.coverPatches(i,n.patches),(s.isNotEqual0(o.top)||s.isNotEqual0(o.left))&&(n.position={x:e.position.x+o.left,y:e.position.y+o.top});const r={x:n.position.x+a.x,y:n.position.y+a.y};return{id:e.id,type:P.Edit,position:r,size:n.size,rotate:n.rotate}}),n=e.getPositionPatchesOfChildrenChanged(t,!1);n.patches&&b.coverPatches(i,n.patches)}else if(c.ratioWidth){const t={x:0,width:u};let r=0;const c=e.components.length,p=l&&l.horizontalGap||0,f=p*(c-1),m=(n.size.width-f-u-d)/c,g=m%1,v=m-g,y=e.components.map((e,n)=>{let l=v-e.size.width;r+=g,r>=1&&(r-=1,l+=1);let c=s.depthClone(o);s.isNotEqual0(o.right)&&(c.right=l),s.isNotEqual0(o.left)&&(c.left=-l),s.isNotEqual0(o.left)&&s.isNotEqual0(o.right)&&(c.left=0,c.right=l);const{position:u,size:d,rotate:f,patches:m}=e.resizeMySelf(c,h);return m&&b.coverPatches(i,m),u.x=t.x+t.width+(0===n?0:p),t.x=u.x,t.width=d.width,{id:e.id,type:P.Edit,position:{x:u.x,y:u.y+a.y},size:d,rotate:f}}),w=e.getPositionPatchesOfChildrenChanged(y,!1);w.patches&&b.coverPatches(i,w.patches)}else{const n=e.components.map(e=>{const n={left:0,right:0,top:t.top,bottom:t.bottom},r=e.resizeMySelf(n,h);return r.patches&&b.coverPatches(i,r.patches),s.isNotEqual0(o.left)&&(r.position={x:r.position.x+o.left,y:r.position.y}),{id:e.id,type:P.Edit,position:{x:r.position.x+a.x,y:r.position.y+a.y},size:r.size,rotate:r.rotate}}),r=e.getPositionPatchesOfChildrenChanged(n,!1);r.patches&&b.coverPatches(i,r.patches)}return i},t.getOffsetByNewSizeAndFixPoint=function(e,t,n,r,o){let i=t,a=e;if(1===r.length&&o){const e=r[0],n=e.getViewBoundsInParent();a={height:n.height,width:n.width},i=y.getBoundsInParent({size:t,rotate:e.rotate,position:e.position})}const s=i.width-a.width,l=i.height-a.height,c=-Math.floor(s/2),u=Math.ceil(s/2),d=-Math.floor(l/2),h=Math.ceil(l/2);return{[f.TransformOriginType.NW]:{left:0,top:0,right:s,bottom:l},[f.TransformOriginType.NE]:{left:-s,top:0,right:0,bottom:l},[f.TransformOriginType.SE]:{left:-s,top:-l,right:0,bottom:0},[f.TransformOriginType.SW]:{left:0,top:-l,right:s,bottom:0},[f.TransformOriginType.N]:{left:c,top:0,right:u,bottom:l},[f.TransformOriginType.E]:{left:-s,top:d,right:0,bottom:h},[f.TransformOriginType.S]:{left:c,top:-l,right:u,bottom:0},[f.TransformOriginType.W]:{left:0,top:d,right:s,bottom:h},[f.TransformOriginType.MIDDLE]:{left:c,top:d,right:u,bottom:h}}[n]},t.getLineValueByZoom=function(e,t){const{startPoint:n,endPoint:r}=e;return{startPoint:{x:n.x*t.x,y:n.y*t.y},endPoint:{x:r.x*t.x,y:r.y*t.y}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortPatches=t.OperationOrder=t.mergePatches=t.assignPatches=t.coverPatches=t.convertUIOperationToPagePatches=void 0;const r=n(8);t.convertUIOperationToPagePatches=function(e,t){return{[e.ownerArtboardID]:{do:{[e.id]:t.do},undo:{[e.id]:t.undo}}}},t.coverPatches=function(e,t){for(let n in t.do)e.do[n]=e.do[n]?e.do[n].filter(e=>!t.do[n].some(t=>t.path===e.path)):[],e.undo[n]=e.undo[n]?e.undo[n].filter(e=>!t.undo[n].some(t=>t.path===e.path)):[],e.do[n].push(...t.do[n]),e.undo[n].push(...t.undo[n]);return e},t.assignPatches=function(e,t){const{do:n,undo:o}=e,{do:i,undo:a}=t;return r.depthClone({do:Object.assign(Object.assign({},n),i),undo:Object.assign(Object.assign({},o),a)})},t.mergePatches=function(e,t){for(let n in t.do)e.do[n]=e.do[n]?e.do[n].filter(e=>!t.do[n].some(t=>("remove-children"===e.op&&"remove-children"===t.op&&(t.value=[...e.value,...t.value]),"add-children"===e.op&&"add-children"===t.op&&e.path===t.path&&(t.value=[...e.value,...t.value]),t.path===e.path&&t.op===e.op))):[],e.do[n].push(...t.do[n]),e.undo[n]=e.undo[n]?e.undo[n].filter(e=>!t.undo[n].some(t=>("remove-children"===e.op&&"remove-children"===t.op&&(t.value=[...e.value,...t.value]),"add-children"===e.op&&"add-children"===t.op&&e.path===t.path&&(t.value=[...e.value,...t.value]),t.path===e.path&&t.op!==e.op))):[],e.undo[n].push(...t.undo[n]);return e},t.OperationOrder=["remove-children","add-children"].reduce((e,t,n)=>Object.assign(Object.assign({},e),{[t]:n}),{}),t.sortPatches=function(e){for(let n in e.do)e.do[n].sort((e,n)=>t.OperationOrder[e.op]-t.OperationOrder[n.op]),e.undo[n].sort((e,n)=>t.OperationOrder[e.op]-t.OperationOrder[n.op])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={VK_A:65,VK_B:66,VK_C:67,VK_D:68,VK_E:69,VK_F:70,VK_G:71,VK_H:72,VK_I:73,VK_J:74,VK_K:75,VK_L:76,VK_M:77,VK_N:78,VK_O:79,VK_P:80,VK_Q:81,VK_R:82,VK_S:83,VK_T:84,VK_U:85,VK_V:86,VK_W:87,VK_X:88,VK_Y:89,VK_Z:90,VK_0:48,VK_1:49,VK_2:50,VK_3:51,VK_4:52,VK_5:53,VK_6:54,VK_7:55,VK_8:56,VK_9:57,VK_NUM_0:96,VK_NUM_1:97,VK_NUM_2:98,VK_NUM_3:99,VK_NUM_4:100,VK_NUM_5:101,VK_NUM_6:102,VK_NUM_7:103,VK_NUM_8:104,VK_NUM_9:105,VK_NUM_STAR:106,VK_NUM_PLUS:107,VK_NUM_PLUS_FF:61,VK_NUM_ENTER:108,VK_NUM_SUBTRACT:109,VK_NUM_SUBTRACT_FF:173,VK_NUM_DOT:110,VK_NUM_DIVIDE:111,VK_F1:112,VK_F2:113,VK_F3:114,VK_F4:115,VK_F5:116,VK_F6:117,VK_F7:118,VK_F8:119,VK_F9:120,VK_F10:121,VK_F11:122,VK_F12:123,VK_BACKSPACE:8,VK_TAB:9,VK_CLEAR:12,VK_ENTER:13,VK_SHIFT:16,VK_CTRL:17,VK_ALT:18,VK_CAPE_LOCK:20,VK_ESCAPE:27,VK_SPACE:32,VK_PAGE_UP:33,VK_PAGE_DOWN:34,VK_END:35,VK_HOME:36,VK_LEFT:37,VK_UP:38,VK_RIGHT:39,VK_DOWN:40,VK_INSERT:45,VK_DEL:46,VK_NUM_LOCK:144,VK_SEMICOLON:186,VK_EQUAL:187,VK_COMMA:188,VK_SUBTRACT:189,VK_DOT:190,VK_DIVIDE:191,VK_WAVE:192,VK_LEFT_SQUARE_BRACKET:219,VK_SLASH:220,VK_RIGHT_SQUARE_BRACKET:221,VK_QUOTATION:222}},function(e,t,n){var r=n(166)("wks"),o=n(119),i=n(21).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(82),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){e.exports=!n(27)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VerticalAlign=t.HorizontalAlign=void 0,function(e){e.Auto="auto",e.Left="left",e.Right="right",e.LeftAndRight="left&right",e.Center="center"}(t.HorizontalAlign||(t.HorizontalAlign={})),function(e){e.Auto="auto",e.Top="top",e.Bottom="bottom",e.TopAndBottom="top&bottom",e.Middle="middle"}(t.VerticalAlign||(t.VerticalAlign={}))},function(e,t,n){var r=n(19),o=n(329),i=n(88),a=Object.defineProperty;t.f=n(39)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(129),i=n(150),a={appType:"web",customSize:{width:1e3,height:1e3},selected:{pad:0,phone:0,web:0}};var s;!function(e){e.Component_Copy="MOCKPLUS-COMPONENT-DATA-COPIED",e.Component_Cut="MOCKPLUS-COMPONENT-DATA-CUT",e.Artboard_Copy="MOCKPLUS-ARTBOARD-DATA-COPIED",e.Table_Copy="MOCKPLUS-TABLE-COPIED",e.Normal=""}(s||(s={}));const l=new class{constructor(){this.currentScale=1,this.searchCache={},this._previewScale=1,this.cache={},this.currentScale=(this.scaleValue||100)/100}getValue(e,t){let n=this.cache[e];return r.isUndefined(n)&&(n=o.loadFromCache(e,t)),this.cache[e]=n,n}saveValue(e,t){new Promise(()=>{o.saveToCahche(e,t)}),this.cache[e]=t}get navigationMapVisible(){return this.getValue("showNavigation",!1)}set navigationMapVisible(e){this.saveValue("showNavigation",e)}get leftPanelType(){return this.getValue("leftPanelType",2)}set leftPanelType(e){this.saveValue("leftPanelType",e)}get leftPanelWidth(){return this.getValue("leftPanelWidth",240)}set leftPanelWidth(e){this.saveValue("leftPanelWidth",e)}get previewControllerPanelWidth(){return this.getValue("previewControllerPanelWidth",280)}set previewControllerPanelWidth(e){this.saveValue("previewControllerPanelWidth",e)}get rightPanelVisible(){return this.getValue("rightPanelVisible",!0)}set rightPanelVisible(e){this.saveValue("rightPanelVisible",e)}getIconLibrariesCollapse(e){return this.getValue("iconLibrariesCollapseList",e)}set iconLibrariesCollapse(e){this.saveValue("iconLibrariesCollapseList",e)}get componentLibrariesCollapse(){return this.getValue("compLibCollapseList",[])}set componentLibrariesCollapse(e){this.saveValue("compLibCollapseList",e)}get propertyPanelSelected(){return this.getValue("propertyPanelSelected")}set propertyPanelSelected(e){this.saveValue("propertyPanelSelected",e)}get propertyItemCollapse(){return this.getValue("property-item-collapse",{})}set propertyItemCollapse(e){this.saveValue("property-item-collapse",e)}get statePanelVisible(){return this.getValue("statePanelVisible",!0)}set statePanelVisible(e){this.saveValue("statePanelVisible",e)}get artboardPanelVisible(){return this.getValue("artboardPanelVisible",!1)}set artboardPanelVisible(e){this.saveValue("artboardPanelVisible",e)}getStatePanelPoint(e){return this.getValue("state-panel-point",e)}set statePanelPoint(e){this.saveValue("state-panel-point",e)}getArtpanelPanelPoint(e){return this.getValue("artboard-panel-point",e)}set artboardPanelPoint(e){this.saveValue("artboard-panel-point",e)}get resourceGroupCollapse(){return this.getValue("resourceGroupCollpase",[])}set resourceGroupCollapse(e){this.saveValue("resourceGroupCollpase",e)}get resourceLibrariesLayout(){return this.getValue("resourceLibrariesLayout","list")}set resourceLibrariesLayout(e){this.saveValue("resourceLibrariesLayout",e)}set fileUploadOption(e){this.saveValue("fileUploadOption",e)}get fileUploadOption(){return this.getValue("fileUploadOption",{fitComp:!0,holdRetio:!0})}set previewOption(e){this.saveValue("previewOption",e)}get previewOption(){return this.getValue("previewOption",[])}set defaultShowControlPanel(e){this.saveValue("defaultShowControlPanel",e)}get defaultShowControlPanel(){return this.getValue("defaultShowControlPanel",!0)}set shareOption(e){this.saveValue("shareOptions",e)}get shareOption(){return this.getValue("shareOptions",[])}set prevCompActionCommandType(e){this.saveValue("prevCompActionCommandType",e)}get prevCompActionCommandType(){return this.getValue("prevCompActionCommandType")}set prevCompActions(e){this.saveValue("prevCompAction",e)}get prevCompActions(){return this.getValue("prevCompAction")}set prevPageAction(e){this.saveValue("prevPageAction",e)}get prevPageAction(){return this.getValue("prevPageAction")}set prevFragmentAction(e){this.saveValue("prevFragmentAction",e)}get prevFragmentAction(){return this.getValue("prevFragmentAction")}set prevFragmentCustomEffect(e){this.saveValue("prevFragmentCustomEffect",e)}get prevFragmentCustomEffect(){return this.getValue("prevFragmentCustomEffect")}set prevFragmentCenterEffect(e){this.saveValue("prevFragmentCenterEffect",e)}get prevFragmentCenterEffect(){return this.getValue("prevFragmentCenterEffect")}getLastSearchValue(e){return this.searchCache[e]||""}cacheLastSearchValue(e,t){this.searchCache[e]=t}get skipSelectingGroupTeaching(){return!!this.getValue("skipSelectingGroupTeaching")}set skipSelectingGroupTeaching(e){this.saveValue("skipSelectingGroupTeaching",e)}get lastUsedDesignRepositoryID(){return this.getValue("lastUsedDesignRepositoryID")}set lastUsedDesignRepositoryID(e){this.saveValue("lastUsedDesignRepositoryID",e)}getLastSelectComponentGroup(e){return this.getValue("lastSelectCompResGroup",{})[e]}setLastSelectComponentGroup(e){const{libID:t,groupID:n}=e;let r=this.getValue("lastSelectCompResGroup",{});r=Object.assign(Object.assign({},r),{[t]:n}),this.saveValue("lastSelectCompResGroup",r)}get syncComponentResourceByAdd(){return this.getValue("syncComponentResourceByAdd",!1)}set syncComponentResourceByAdd(e){this.saveValue("syncComponentResourceByAdd",e)}get selectedResourcesWithGroupID(){return this.getValue("selectedResourcesWithGroupID",{})}getSelectResourceGroupIDs(e){return this.selectedResourcesWithGroupID[e]}setSelectResourceGroupIDs(e){const{libID:t,groupIDs:n}=e;this.saveValue("selectedResourcesWithGroupID",Object.assign(Object.assign({},this.selectedResourcesWithGroupID),{[t]:n}))}get minimalist(){return this.getValue("minimalist",!0)}set minimalist(e){this.saveValue("minimalist",e)}get previewControllPanelWidth(){return this.getValue("previewControllPanelWidth",280)}set previewControllPanelWidth(e){this.saveValue("previewControllPanelWidth",e)}get showPageNumber(){return this.getValue("showPageNumber",!1)}set showPageNumber(e){this.saveValue("showPageNumber",e)}get showTrash(){return this.getValue("showTrash",!1)}set showTrash(e){this.saveValue("showTrash",e)}get scaleValue(){return this.getValue("workpaceScale",100)}set scaleValue(e){this.currentScale=e/100,this.saveValue("workpaceScale",e)}get previewScale(){const e=parseInt(this.getValue("previewScale",100));return i.default.max(0,isNaN(e)?1:e)}set previewScale(e){this.saveValue("previewScale",e)}get scale(){return this.currentScale}get defaultNoneImageModel(){return this.getValue("imageStyle","placeholder")}set defaultNoneImageModel(e){this.saveValue("imageStyle",e)}get recentOpenProjects(){return this.getValue("recentOpenProjects",[])}addRecentOpenProject(e){const t=this.recentOpenProjects;-1===t.indexOf(e)&&this.saveValue("recentOpenProjects",[...t,e])}get tableClipboardData(){return this.getValue(s.Table_Copy)}set tableClipboardData(e){this.saveValue(s.Table_Copy,e)}get strokeDashMode(){return this.getValue("strokeDashMode","custom")}set strokeDashMode(e){this.saveValue("strokeDashMode",e)}get previewNavbarOpt(){return this.getValue("previewNavbarOpt",[])}set previewNavbarOpt(e){this.saveValue("previewNavbarOpt",e)}get lastSelectedTeamIDs(){return this.getValue("lastSelectedTeamIDs",{})}set lastSelectedTeamIDs(e){this.saveValue("lastSelectedTeamIDs",e)}getLastSelectedTeamIDByUserID(e){return this.lastSelectedTeamIDs[e]}setLastSelectedTeamIDByUserID(e,t){this.lastSelectedTeamIDs=Object.assign(Object.assign({},this.lastSelectedTeamIDs),{[e]:t})}get lastSelectedDesktopPanel(){return this.getValue("lastSelectedDesktopPanel")}set lastSelectedDesktopPanel(e){this.saveValue("lastSelectedDesktopPanel",e)}get needScaleRadius(){return this.getValue("needScaleRadius",!1)}set needScaleRadius(e){this.saveValue("needScaleRadius",e)}get needScaleShadow(){return this.getValue("needScaleShadow",!1)}set needScaleShadow(e){this.saveValue("needScaleShadow",e)}set lastIconSize(e){this.cache.lastIconSize=e}get lastIconSize(){return this.cache.lastIconSize||24}get ruleVisible(){return this.getValue("showRuler",!0)}set ruleVisible(e){this.saveValue("showRuler",e)}get showAllGuides(){return this.getValue("showAllGuides",!0)}set showAllGuides(e){this.saveValue("showAllGuides",e)}get appModule(){return this.getValue("appModule","rp")}set appModule(e){this.saveValue("appModule",e)}get appOrderType(){return this.getValue("appOrderType","rpAccessedAt")}set appOrderType(e){this.saveValue("appOrderType",e)}get appOrderValue(){return this.getValue("appOrderValue")}set appOrderValue(e){this.saveValue("appOrderValue",e)}get shareAndInvite(){return this.getValue("shareAndInvite",!0)}set shareAndInvite(e){this.saveValue("shareAndInvite",e)}get lastEmailForLogin(){return this.getValue("lastEmailForLogin")}set lastEmailForLogin(e){this.saveValue("lastEmailForLogin",e)}get createApp(){return this.getValue("rp_project_size",a)}set createApp(e){this.saveValue("rp_project_size",e)}set createAppCustomSize(e){this.createApp=Object.assign(Object.assign({},this.createApp),{customSize:e})}set createAppType(e){this.createApp=Object.assign(Object.assign({},this.createApp),{appType:e})}setCreateAppDevice(e,t){this.createApp=Object.assign(Object.assign({},this.createApp),{appType:e,selected:Object.assign(Object.assign({},this.createApp.selected),{[e]:t})})}get viewedFreeProgram(){return this.getValue("viewedFreeProgram",{})}getViewedFreeProgram(e){return this.viewedFreeProgram[e]||!1}setViewedFreeProgram(e,t){this.saveValue("viewedFreeProgram",Object.assign(Object.assign({},this.viewedFreeProgram),{[e]:t}))}get lastSelectedIframeLinkModule(){return this.getValue("lastSelectedIframeLinkModule","rp-app")}set lastSelectedIframeLinkModule(e){this.saveValue("lastSelectedIframeLinkModule",e)}get lastSelectedIframeLinkType(){return this.getValue("lastSelectedIframeLinkType",0)}set lastSelectedIframeLinkType(e){this.saveValue("lastSelectedIframeLinkType",e)}get playFromCurrent(){return this.getValue("defaultPlayFrom",!0)}set playFromCurrent(e){this.saveValue("defaultPlayFrom",e)}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLibDataByShortCut=t.makeComponentByKeyOrType=t.getLibByType=t.getLibByShortCutOrType=t.getLibData=t.getNameForNewComponent=t.getDefaultComponentName=t.getComponentValueEditorInfo=t.getComponentSupportValueEditorType=t.getComponent=t.makeComponentItem=t.makeVideoComponent=t.makeImageComponent=t.makeComponent=t.ComponentLibs=void 0;const r=n(131),o=n(7),i=n(103),a=n(48),s=n(32),l=n(40),c=n(105),u=n(23),d=n(132),h=n(23),p=n(4),f=n(30),m=n(50),g=n(56),v=n(20),y=n(896),b=n(24),w=n(20),C=n(6),_=n(379),x=n(411),S=n(1262),k=n(1263),P=n(1323),T=n(210),E=n(292);t.ComponentLibs=[_.default,S.default,x.default,P.default,k.default];const O={Rect:C.CRect,Ellipse:C.CEllipse,Icon:C.CIcon,Image:C.CImage,Line:C.CLine,Path:C.CPath,Polygon:C.CPolygon,Text:C.CText,Paragraph:C.CParagraph,Input:C.CInput,Group:C.CGroup,CanvasPanel:C.CCanvasPanel,StackPanel:C.CStackPanel,WrapPanel:C.CWrapPanel,GridPanel:C.CGridPanel,ContentPanel:C.CContentPanel,ListLayoutPanel:C.CListLayoutPanel,Select:C.CSelect,Range:C.CSlider,QRCode:C.CQRCode,NumericStep:C.CNumericStep,Arc:C.CArc,PureText:C.CPureText,Symbol:C.CSymbol},M={TextAlign:a.TextAlign,FillType:s.FillType,PredefinedStates:b.PredefinedStates,HorizontalAlign:l.HorizontalAlign,VerticalAlign:l.VerticalAlign,LinePointType:c.LinePointType,StrokeLineCap:u.StrokeLineCap,StrokeLineJoin:u.StrokeLineJoin,TextVerticalAlign:a.VerticalAlign,InputModel:d.InputModel,StrokePosition:h.StrokePosition};function A(e){let t=e;const n=e.match(/@@[a-z\d\.\-\{\s\}]+/gi);n&&n.forEach(e=>{const n=function(e){if("id"===e)return f.getNewID();if("defaultShadow"===e)return m.getDefaultShadow();if("textShadow"===e)return m.getTextShadow();if("defaultStrokeColor"===e)return w.DefaultStrokeColor;if("defaultTextColor"===e)return w.DefaultTextColor;if(e.indexOf(".")>0){const t=e.split("."),[n,o]=t;if(r.equal(t.length,2),M[n])return i.getEnumValue(M[n],o);switch(n){case"SystemColors":return v[o];case"AntDesignColors":return y[o];case"C":return O[o]}}return""}(e.substr(2));n?t=t.replace(e,JSON.stringify(n)):console.warn(`Not supported pattern ${e}.`)});try{return new Function(`return ${t};`)()}catch(e){throw console.log(t),e}}function D(e,t){e.components&&(e.components=e.components.map(e=>D(e,t)));const n=f.getNewID(),r=e._id;t&&r&&(t[r]=n);const o=Object.assign({layout:{vertical:l.VerticalAlign.Auto,horizontal:l.HorizontalAlign.Auto,fixedWidth:!1,fixedHeight:!1,auto:!0,responsive:!0},position:{x:0,y:0},properties:{},interaction:{},size:{width:0,height:0},v:0,states:{}},e,{_id:n});return function(e){const{type:t,size:n,components:r,properties:o}=e;if(t===C.CListLayoutPanel){const{cell:t,layout:i}=o;if(i)if("vertical"===i.direction)if(t){let o=n.height/(null==r?void 0:r.length);t.ratioHeight||(o=t.rowHeight||o);let i=0;null==r||r.forEach(e=>{e.size.height=o,e.position.y=i,i+=o}),e.size.height=o*r.length}else{let e=0;null==r||r.forEach(t=>{t.position.y=e,e+=t.size.height})}else if(t){let o=n.width/(null==r?void 0:r.length);t.ratioWidth||(o=t.columnWidth||o);let i=0;null==r||r.forEach(e=>{e.size.width=o,e.position.x=i,i+=o}),e.size.width=o*r.length}else{let e=0;null==r||r.forEach(t=>{t.position.x=e,e+=t.size.width})}}}(o),o}function I(e,t){if(e.interaction){Object.keys(e.interaction).forEach(n=>{e.interaction[n].actions.forEach(n=>{if("component"===n.type){const r=t[n.target];r?n.target=r:"@self"===n.target&&(n.target=e._id)}})})}e.components&&e.components.forEach(e=>I(e,t))}function L(e,t,n){let r=void 0;if("basic"===e||"container"===e||"fast"===e){const e=_.default.components.find(e=>e.type===t);if(!(null==e?void 0:e.lib)){const e=_.default.make(t);if(m.mergePropertyCacheToComp(e),_.DefaultBasicComponentsSize[t]){const r=_.DefaultBasicComponentsSize[t][n];r&&(e.size=Object.assign(Object.assign({},e.size),r))}return e}r=e}if(r||(r=N({id:e,type:t})),r&&r.template){let o=r.template.trim();(r.isList||t===C.CSelect)&&r.item&&(o=function(e,t){let n=e;const r=/@@ITEM-([a-z\d\-\{\s\}\u4e00-\u9fa5|]*)/gi;let o;for(;null!==(o=r.exec(e));){const e=o[1].split("|"),r=t.replace(/{(\d+)}/g,(t,n)=>void 0===e[n]?t:e[n]);n=n.replace(o[0],r)}return n}(o,r.item));const i=A(o),a=Object.assign({},i,{lib:{id:e,type:t}});r.initialization&&r.initialization(n,a);const s={},l=D(a,s);return I(l,s),l.layout&&(l.layout=Object.assign({},l.layout,Object.assign(Object.assign({},i.layout),{responsive:!1}))),l}const o=_.default.make(t,"No supported.");return"basic"!==e&&"container"!==e?Object.assign(Object.assign({},o),{lib:{id:e,type:t}}):o}function N(e){const n=t.ComponentLibs.find(t=>t.id===e.id);if(n)return n.components.find(t=>t.type===e.type)}t.makeComponent=L,t.makeImageComponent=function(e,t,n){const r=f.getNewID();return T.makeImage(r,e,t,n)},t.makeVideoComponent=function(e,t,n){const r=f.getNewID();return E.makeVideo(r,e,t,n)},t.makeComponentItem=function(e,t,n,r){const o=N({id:e,type:t});if(!o||!o.item)throw new Error("尝试获取没有配置 item 的组件的 item.");const i=o.item,a=r||(o.itemArgs?o.itemArgs.map(e=>e.value):[]),s=A(i.replace(/{(\d+)}/g,(e,t)=>{if(void 0===a[t]){if(o.itemArgs){const e=o.itemArgs[t];if(e)return e.value}return e}return a[t]}).trim()),l={},c=D(s,l);return I(s,l),c},t.getComponent=N;const j={[C.CParagraph]:g.default.RichText,[C.CInput]:g.default.PureText,[C.CTextArea]:g.default.PureText,[C.CText]:g.default.RichText,[C.CImage]:g.default.Image,[C.CSnapshot]:g.default.Snapshot,[C.CIcon]:g.default.Icon,[C.CVideo]:g.default.Video,[C.CAudio]:g.default.Audio,[C.CQRCode]:g.default.PureText,[C.CSvg]:g.default.Svg,[C.CContentPanel]:g.default.ItemValue,[C.CSelect]:g.default.ItemValue,[C.CNumericStep]:g.default.PureText,[C.CPureText]:g.default.PureText,[C.CTree]:g.default.Tree,[C.CSelectPanel]:g.default.ItemValue};function R(e,t){const n=j[e];if(!o.isUndefined(n))return{type:n};if(t){const e=N(t);return e&&e.value?e.value:null}return null}t.getComponentSupportValueEditorType=function(e,t){const n=R(e,t);if(n)return n.type},t.getComponentValueEditorInfo=R;const z={[C.CAudio]:p.default("resource.components.audio"),[C.CCanvasPanel]:p.default("resource.components.canvasPanel"),[C.CCompoundPath]:p.default("resource.components.compoundPath"),[C.CContentPanel]:p.default("resource.components.contentPanel"),[C.CConnector]:p.default("resource.components.connector"),[C.CEllipse]:p.default("resource.components.ellipse"),[C.CGroup]:p.default("resource.components.group"),[C.CIcon]:p.default("resource.icon"),[C.CImage]:p.default("resource.components.image"),[C.CSnapshot]:p.default("resource.components.snapshot"),[C.CInput]:p.default("resource.components.input"),[C.CKeyboard]:p.default("resource.components.keyboard"),[C.CLine]:p.default("resource.components.line"),[C.CListLayoutPanel]:p.default("resource.components.listLayoutPanel"),[C.CNumericStep]:p.default("resource.components.numericStep"),[C.CParagraph]:p.default("resource.components.paragraph"),[C.CPath]:p.default("resource.components.path"),[C.CPolygon]:p.default("resource.components.polygon"),[C.CQRCode]:p.default("resource.components.qrcode"),[C.CRect]:p.default("resource.components.rect"),[C.CSlider]:p.default("resource.components.slider"),[C.CSelect]:p.default("resource.components.select"),[C.CStackPanel]:p.default("resource.components.stackPanel"),[C.CSelectPanel]:p.default("resource.components.selectPanel"),[C.CTextArea]:p.default("resource.components.textarea"),[C.CText]:p.default("resource.components.text"),[C.CVideo]:p.default("resource.components.video"),[C.CWrapPanel]:p.default("resource.components.wrapPanel"),[C.CPureText]:p.default("resource.components.pureText"),[C.CTable]:p.default("resource.components.table"),[C.CTree]:p.default("resource.components.tree")};function F(e,t){if(t){const e=N(t);if(e)return e.name}return z[e]||e||"component"}function B(e){let t=V(e);return t||(t=H(e)),t}function H(e){for(let n=0,r=t.ComponentLibs.length;nt.type.toLowerCase()===e.toLowerCase());if(o)return{type:r.id,data:o}}}function V(e){const n=e.toLowerCase().trim();for(let e=0,r=t.ComponentLibs.length;ee.lib?e.lib.id===t.id&&e.lib.type===t.type:e.type===t.type).length;return`${F(t.type,t)}${n+1}`},t.getLibData=function(e){for(let n=0,r=t.ComponentLibs.length;nt.type===e);if(r)return r}},t.getLibByShortCutOrType=B,t.getLibByType=H,t.makeComponentByKeyOrType=function(e,t){const n=B(e.toUpperCase());return L(n.type,n.data.type,t)},t.getLibDataByShortCut=V},function(e,t,n){e.exports=n(1643)},function(e,t,n){var r=n(89);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageSkipEffects=t.AnimateEffects=t.CommandTypes=t.EventTypes=void 0,function(e){e.click="click",e.doubleClick="doubleClick",e.contextMenu="contextMenu",e.mouseDown="mouseDown",e.mouseUp="mouseUp",e.mouseEnter="mouseEnter",e.mouseLeave="mouseLeave",e.loaded="loaded",e.afterMove="afterMove",e.afterResize="afterResize",e.afterRotate="afterRotate",e.afterZoom="afterZoom",e.afterVisible="afterVisible",e.afterHide="afterHide",e.checked="checked",e.unChecked="unChecked",e.toggleCheck="toggleCheck",e.focus="focus",e.blur="blur",e.scroll="scroll"}(t.EventTypes||(t.EventTypes={})),function(e){e.move="move",e.resize="resize",e.rotation="rotation",e.zoom="scale",e.toggleVisible="toggleVisible",e.toggleState="toggleState",e.switchContent="switchContent",e.scroll="scroll"}(t.CommandTypes||(t.CommandTypes={})),function(e){e.none="none",e.linear="linear",e.easeIn="ease-in",e.easeOut="ease-out",e.easeInOut="ease-in-out"}(t.AnimateEffects||(t.AnimateEffects={})),function(e){e.none="none",e.pushToLeft="pushToLeft",e.pushToRight="pushToRight",e.pushToTop="pushToTop",e.pushToBottom="pushToBottom",e.slideToLeft="slideToLeft",e.slideToRight="slideToRight",e.slideToTop="slideToTop",e.slideToBottom="slideToBottom",e.fadeIn="fadeIn",e.zoomIn="zoomIn",e.flipInLeft="flipInLeft",e.flipInRight="flipInRight",e.flipInTop="flipInTop",e.flipInBottom="flipInBottom"}(t.PageSkipEffects||(t.PageSkipEffects={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetPathValueRotate=t.getNewPathPropertiesByScalingTheStrokeAndShadow=t.translateMaskDataOfRect=t.isClosedPathWithArea=t.getAnotherPointBySegType=t.updateSegType=t.getSegType=t.isAllowedSegRadiusEdit=t.getSegsType=t.supportedPathProperties=t.compoundPath=t.getPathItemOfComp=t.onPathValueZoom=t.scalePath=t.transformPathDataToPath=t.calcaulateMaxRadius=t.isSegWithRadius=void 0;const r=n(7),o=n(8),i=n(376),a=n(40),s=n(23),l=n(32),c=n(105),u=n(279),d=n(6),h=n(33),p=n(43),f=n(1329),m=n(30),g=n(209),v=n(435);t.isSegWithRadius=e=>{const{previous:t,next:n,radius:r,handleIn:o,handleOut:i}=e;return!!r&&(!(i&&!i.equals(new f.default.Point(0,0)))&&(!(o&&!o.equals(new f.default.Point(0,0)))&&(!!t&&(!(t.handleOut&&!t.handleOut.equals(new f.default.Point(0,0)))&&(!!n&&!(n.handleIn&&!n.handleIn.equals(new f.default.Point(0,0))))))))},t.calcaulateMaxRadius=(e,t=1)=>{const{previous:n,next:r,point:i}=e;if(!(null==n?void 0:n.point)||!(null==r?void 0:r.point)||!i)return 0;const a=n.point.subtract(i),s=r.point.subtract(i);let l=a.getDistance(new f.default.Point(0,0))/t,c=s.getDistance(new f.default.Point(0,0))/t;const u=o.min(l,c),d=Math.PI-s.getAngleInRadians(a);return[0,Math.PI,-Math.PI].includes(d)?0:u/Math.tan(d/2)};const y=(e,n)=>{var r,o;const{previous:i,next:a}=e;if(!t.isSegWithRadius(e))return!1;if((null===(r=e.previous)||void 0===r?void 0:r.point)&&(null===(o=e.next)||void 0===o?void 0:o.point)){const t=e.previous.point.subtract(e.point),r=e.next.point.subtract(e.point);let o=t.getDistance(new f.default.Point(0,0));!i.radius||i.handleOut&&!i.handleOut.equals(new f.default.Point(0,0))||(o/=2);let s=r.getDistance(new f.default.Point(0,0));!a.radius||a.handleIn&&!a.handleIn.equals(new f.default.Point(0,0))||(s/=2);const l=Math.PI-r.getAngleInRadians(t);if([0,Math.PI,-Math.PI].includes(l))return void(e.radius=void 0);const c=e.radius||0,u=Math.min(c*Math.tan(l/2),o,s),d=u/Math.tan(l/2),h=Math.tan(l/4)*(4/3)*d,p=e.point.add(new f.default.Point(u,0)),m=new f.default.Point(h,0),g=new f.default.Segment(p.clone().rotate(t.angle||0,e.point),void 0,m.clone().rotate((t.angle||0)-180,new f.default.Point(0,0)));g.hidden=!0;const v=new f.default.Segment(p.clone().rotate(r.angle||0,e.point),m.clone().rotate((r.angle||0)-180,new f.default.Point(0,0)),void 0);v.hidden=!0;const y=e.index;n.removeSegment(y),n.insertSegments(y,[g,v])}};t.transformPathDataToPath=e=>{var t;let n="";const r=null===(t=w(e).segments)||void 0===t?void 0:t.map(C);if(r){n=b({data:r,closed:e.closed}).pathData||""}return n},t.scalePath=(e,t,n)=>{const r=e.data.map(e=>{const{point:r,handleIn:i,handleOut:a,radius:s}=e;let l=s;return s&&n&&(l=s*o.min(t.x,t.y)),{point:{x:r.x*t.x,y:r.y*t.y},handleIn:{x:i.x*t.x,y:i.y*t.y},handleOut:{x:a.x*t.x,y:a.y*t.y},radius:l}});return{closed:e.closed,data:r}};const b=e=>{let t=document.getElementById("paperCanvas");t||(t=document.createElement("canvas"),t.id="paperCanvas");const n=new f.default.Path(e.data.map(e=>{const t=new f.default.Segment(new f.default.Point(e.point),new f.default.Point(e.handleIn),new f.default.Point(e.handleOut));return t.radius=e.radius,t}));return n.closed=!!e.closed,n},w=e=>{var n,r;const o=b(e);for(;null===(n=o.segments)||void 0===n?void 0:n.find(e=>t.isSegWithRadius(e));){const e=null===(r=o.segments)||void 0===r?void 0:r.find(e=>t.isSegWithRadius(e));y(e,o)}return o};t.onPathValueZoom=(e,t)=>{if(1===t.x&&1===t.y)return e;const n=e=>({x:e.x*t.x,y:e.y*t.y});return{data:e.data.map(e=>{const{point:t,handleOut:r,handleIn:o,radius:i}=e;return{point:n(t),handleIn:n(o),handleOut:n(r),radius:i}}),closed:e.closed}};t.getPathItemOfComp=(e,n)=>{let r;const o=g.componentToSvgValue(e);if(!o)return new f.default.Path;const{data:i}=o;let a="";return i.forEach(e=>{a+=t.transformPathDataToPath(e)+" "}),r=(e=>f.default.PathItem.create(e))(a),r.rotate(e.rotate||0),n&&r.translate(new f.default.Point(e.position.x-n.x,e.position.y-n.y)),r};const C=e=>{const{point:t,handleOut:n,handleIn:r}=e;return{point:{x:(null==t?void 0:t.x)||0,y:(null==t?void 0:t.y)||0},handleIn:{x:(null==r?void 0:r.x)||0,y:(null==r?void 0:r.y)||0},handleOut:{x:(null==n?void 0:n.x)||0,y:(null==n?void 0:n.y)||0}}};t.compoundPath=(e,n)=>{var l;if(e.length<2)return;const c=e[0],u=e.slice(1,e.length),g=e.map(e=>e.position).reduce((e,t)=>({x:o.min(e.x,t.x),y:o.min(e.y,t.y)}));let v=t.getPathItemOfComp(c,g);v.closePath();let y=[];u.forEach(e=>{const n=t.getPathItemOfComp(e,g);n.closePath(),y.push(n)});const b=[v,...y].filter(e=>o.sameNumber(Math.abs(e.area),0)),w=b.map(e=>e.bounds).filter(e=>null!==e),x=w.length?w.reduce((e,t)=>e.unite(t)):void 0,S=y.reduce((e,t)=>((e,t,n)=>{switch(n){case i.CompoundOperation.Exclude:return e.exclude(t);case i.CompoundOperation.Intersect:return e.intersect(t);case i.CompoundOperation.Subtract:return e.subtract(t);case i.CompoundOperation.Unite:default:return e.unite(t)}})(e,t,n),v),{className:k,bounds:P,closed:T,children:E}=S;let O=P;if([i.CompoundOperation.Unite,i.CompoundOperation.Exclude].includes(n)&&x&&(O=O?O.unite(x):x),!O)return;if(!(null==O?void 0:O.width)||!(null==O?void 0:O.height))return;if(O.width<1||O.height<1)return;S.translate(new f.default.Point(-(O.left||0),-(O.top||0)));const M=[];if("Path"===k){const e={data:[],closed:!1};e.data=(null===(l=S.segments)||void 0===l?void 0:l.map(C))||[],e.closed=!!T,M.push(e)}else"CompoundPath"===k&&M.push(...(null==E?void 0:E.map(e=>{var t;return{data:(null===(t=e.segments)||void 0===t?void 0:t.map(C))||[],closed:!!e.closed}}))||[]);if([i.CompoundOperation.Unite,i.CompoundOperation.Exclude].includes(n)&&b.forEach(e=>{var t;e.translate(new f.default.Point(-((null==O?void 0:O.left)||0),-((null==O?void 0:O.top)||0)));const{className:n,children:r}=e;if("Path"===n){const n={data:[],closed:!1};n.data=(null===(t=e.segments)||void 0===t?void 0:t.map(C))||[],n.closed=!1,M.push(n)}else"CompoundPath"===n&&M.push(...(null==r?void 0:r.map(e=>{var t;return{data:(null===(t=e.segments)||void 0===t?void 0:t.map(C))||[],closed:!1}}))||[])}),!M.length)return;const A=e.map(e=>{const t=o.depthClone(e);return t.position={x:t.position.x-g.x-((null==O?void 0:O.left)||0),y:t.position.y-g.y-((null==O?void 0:O.top)||0)},t.layout={responsive:!0,auto:!1,horizontal:a.HorizontalAlign.LeftAndRight,vertical:a.VerticalAlign.TopAndBottom,fixedHeight:!1,fixedWidth:!1},t._currentState=void 0,t.selected=!1,t.disabled=!1,t}),D=o.depthClone(e[0].properties);Object.keys(D).filter(e=>!_.includes(e)).forEach(e=>delete D[e]);const I=M.find(e=>!e.closed);D.stroke&&I&&(D.stroke.position=s.StrokePosition.center);const L=h.makeCommonComponent(m.getNewID(),d.CCompoundPath,{name:p.getDefaultComponentName(d.CCompoundPath),size:{width:O.width,height:O.height},position:{x:g.x+(O.left||0),y:g.y+(O.top||0)},opacity:r.isUndefined(e[0].opacity)?100:e[0].opacity,properties:Object.assign(Object.assign({},D),{compoundModel:{prop:"enum",componentOperation:n,disabled:!1,hidden:!0}}),components:A,value:M});return delete L.properties.padding,L};const _=[l.FillPropertyName,s.StrokePropertyName,u.ShadowPropertyName];t.supportedPathProperties=[l.FillPropertyName,s.StrokePropertyName,u.ShadowPropertyName,c.LinePropertyName],t.getSegsType=e=>{if(!e.length)return;let n=v.SegType.Straight;for(let r=0;r{const{type:t,handleIn:n,handleOut:r}=e;return t||(e.isSmooth()?o.sameNumber((null==n?void 0:n.length)||0,(null==r?void 0:r.length)||0)?v.SegType.Mirrored:v.SegType.Asymmetric:o.sameNumber((null==n?void 0:n.length)||0,0)&&o.sameNumber((null==r?void 0:r.length)||0,0)?v.SegType.Straight:v.SegType.Disconnected)},t.updateSegType=e=>{const n=t.getSegType(e.clone());switch(n){case v.SegType.Straight:case v.SegType.Disconnected:e.type=n;break;case v.SegType.Mirrored:e.type!==v.SegType.Disconnected&&e.type!==v.SegType.Asymmetric&&(e.type=n);break;case v.SegType.Asymmetric:e.type!==v.SegType.Disconnected&&(e.type=n)}},t.getAnotherPointBySegType=(e,t,n)=>{switch(e){case v.SegType.Straight:case v.SegType.Mirrored:return new f.default.Point(-t.x,-t.y);case v.SegType.Asymmetric:{if(!n)return n;const e=t.angle;return new f.default.Point(n.length||0,0).rotate((e||0)+180,new f.default.Point(0,0))}case v.SegType.Disconnected:default:return n}},t.isClosedPathWithArea=e=>{const{data:t,closed:n}=e;if(!n)return!1;if(t.length<2)return!1;const o=t[0],i=o.point,a=t.find(e=>!r.isEqual(i,e.point));let s;if(a){const e=a.point;s=(e.y-i.y)/(e.x-i.x)}return!(!r.isUndefined(s)&&!t.some(e=>!x(e)||!S(e,o,s)))};const x=e=>r.isEqual(e.handleIn,{x:0,y:0})||r.isEqual(e.handleOut,{x:0,y:0}),S=(e,t,n)=>{const{point:i}=e,{point:a}=t;if(r.isEqual(i,a))return!0;const s=(i.y-a.y)/(i.x-a.x);return!!(o.sameNumber(s,n)||Math.abs(s)===1/0&&Math.abs(n)===1/0)};t.translateMaskDataOfRect=(e,t,n,r)=>{const o=new f.default.Path(e);if(!r)return e;const{left:i,right:a,top:s,bottom:l}=t,c=new f.default.Point(0,0);return i&&!a&&o.scale(r/n.width+1,1,c),!i&&a&&(o.scale(r/n.width+1,1,c),o.translate(new f.default.Point(-r,0))),s&&!l&&o.scale(1,r/n.height+1,c),!s&&l&&(o.scale(1,r/n.height+1,c),o.translate(new f.default.Point(0,-r))),o.pathData||e},t.getNewPathPropertiesByScalingTheStrokeAndShadow=function(e,t){const n=o.depthClone(e),{stroke:r,shadow:i}=n;return r&&(r.dashArray&&(r.dashArray=r.dashArray.map(e=>e*t)),r.thickness&&(r.thickness*=t)),i&&(i.blur&&(i.blur*=t),i.x&&(i.x*=t),i.y&&(i.y*=t)),n},t.resetPathValueRotate=function(e,t,n){var r,o,i,a,s,l;const c=w(e);c.rotate(t);const u=(null===(r=c.bounds)||void 0===r?void 0:r.x)||0,d=(null===(o=c.bounds)||void 0===o?void 0:o.y)||0,h={width:(null===(i=c.bounds)||void 0===i?void 0:i.width)||0,height:(null===(a=c.bounds)||void 0===a?void 0:a.height)||0},p={x:n.x+u,y:n.y+d};return c.translate(new f.default.Point({x:-u,y:-d})),{newValue:{data:null!==(l=null===(s=c.segments)||void 0===s?void 0:s.map(e=>C(e)))&&void 0!==l?l:[],closed:!!c.closed},newSize:h,newPosition:p}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextPropertyName=t.VerticalAlign=t.TextTransform=t.TextAlign=void 0,function(e){e.left="left",e.center="center",e.right="right",e.justify="justify"}(t.TextAlign||(t.TextAlign={})),function(e){e.none="none",e.upperCase="upperCase",e.lowerCase="lowerCase",e.capitalize="capitalize"}(t.TextTransform||(t.TextTransform={})),function(e){e.top="top",e.middle="middle",e.bottom="bottom"}(t.VerticalAlign||(t.VerticalAlign={})),t.TextPropertyName="textStyle"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAction=t.ActionType=void 0,function(e){e.App_GetApp="[app] get-app",e.App_AddNode="[app] add-node",e.App_InsertNode="[app] insert-node",e.App_UpdateNodes="[app] update-nodes",e.App_PatchNode="[app] patch-node",e.App_LoadArtboards="[app] load-artboards",e.App_SelectNode="[app] select-node",e.App_ArtboardSelectSync="[app] select-sync",e.App_Tree_UpdateSelectedIDs="[app] tree_update_selected",e.App_Tree_UpdateExpandedIDs="[app] tree_update_expanded",e.App_Tree_HidePage="[app] tree_hide_page",e.App_RemoveArtboard="[app] remove-artboard",e.App_UpdateCoopers="[app] update-coopers",e.App_KillCoopers="[app] kill-coopers",e.App_DownloadArtboard="[app] download-artboard",e.APP_RefreshPage="[app] refresh-page",e.App_Tree_UpdateTrashSelectedIDs="[app] tree_update_trash_selected",e.App_ChangeProjectSize="[app] change_project_size",e.App_Patch_Info="[app] patch info",e.App_LoadAllPrototypeApps="[app] load all prototype apps",e.IO_UPDATE="[io] update",e.Preview_GetApp="[preview] get-app",e.Preview_LoadArtBoard="[preview] load-artboard",e.Preview_AfterSkipToPage="[preview] skip-to-page",e.Preview_SelectNode="[preview] select-node",e.Preview_Exit="[preview] exit",e.Preview_beforeSkipToPage="[preview] before-skip-to-page",e.Preview_goBackward="[preview] go-backward",e.Preview_goForward="[preview] go-forward",e.Preview_returnHome="[preview] go-home",e.Preview_showFragment="[preview] show-fragment",e.Preview_exitFragment="[preview] exit-fragment",e.Preview_showMessage="[preview] show-message",e.Preview_hideMessage="[preview] hide-message",e.Preview_toLogIn="[preview] to-log-in",e.Preview_PwdEnabled="[preview] app pwd enabled",e.Preview_resetLink="[preview] reset link ",e.Preview_checkShareLinkReset="[preview] check share link has reset",e.Preview_setCurrLinkID="[preview] get current linkID",e.Preview_hasShareLinkReset="[preview] check share link has reset",e.Preview_ProjectExist="[preview] check the project exist",e.Global_Toast="[global] toast",e.Global_IO_Message="[global] io-message",e.Global_SOCKET_STATE_CHANGE="[global] socket-state-change",e.Global_NETWORK_STATE_CHANGE="[global] network-state-change",e.Global_AFK="[global] afk",e.Global_Waiting="[global] waiting",e.Global_Offline_Sync="[global] offline-sync",e.Lib_LoadLib="[Lib] load-app",e.Lib_LoadLibs="[Lib] load-libs",e.Lib_LoadError="[Lib] load-libs-error",e.Lib_AddLib="[Lib] add-lib",e.Lib_UpdateLib="[Lib] update-lib",e.Lib_AddColor="[Lib] add-color",e.Lib_AddTypography="[Lib] add-typography",e.Lib_AddComponent="[Lib] add-component",e.Lib_PatchColorItem="[Lib] patch-color-item",e.Lib_PatchComponentItem="[Lib] patch-component-item",e.Lib_PatchTypographyItem="[Lib] patch-typography-item",e.Lib_RemoveLibItem="[Lib] remove-lib-item",e.Lib_ResourceItemIndexChanged="[Lib] item-index-changed",e.Lib_SwitchLib="[Lib] switch-lib",e.Lib_AddGroup="[Lib] add-group",e.Lib_RemoveGroup="[Lib] remove-group",e.Lib_RenameGroup="[Lib] rename-group",e.Lib_MoveGroup="[Lib] move-group",e.Lib_ResetGroup="[Lib] reset-group",e.Lib_RemoveAfterMoveGroup="[Lib] remove-after-move-group",e.Lib_RemoveComponents="[Lib] remove-components",e.Lib_AddRelations="[Lib] add-relations",e.Lib_PatchRelations="[Lib] patch-relations",e.Lib_RemoveRelations="[Lib] remove-relations",e.User_Preference_Load="[User] load preference",e.User_Preference_Patch="[User] patch preference",e.Page_Revisions_Load="[Revisions] load",e.Page_Revisions_revert="[Revisions] revert",e.Page_Revisions_loadArtboard="[Revisions] load artboard",e.Page_Revision_Switch="[Revisions] switch",e.Page_Revision_Waring="[Revisions] waring",e.User_GetUserInfo="[USER] get user info",e.User_GetSession="[USER] get sission",e.Team_GetTeamInfo="[TEAM] get team info",e.Share_GetTeamInfo="[Share] get team info",e.Share_GetUserInfo="[Share] get user info",e.Share_GetRunLink="[Share] get run link",e.Share_GetRunLinkDone="[Share] get run link done",e.Share_GetRunLinkError="[Share] get run link error",e.Share_SetLinkPass="[Share] set link pass",e.Share_SetLinkPassDone="[Share] set link pass done",e.Share_SetLinkPassError="[Share] set link pass error",e.Share_GetLinkPass="[Share] get link pass",e.Share_GetLinkPassDone="[Share] get link pass done",e.Share_ValidatePasswordError="[Share] validate password error",e.Share_GetPwEnableDone="[Share] get password enable",e.Share_ChangePwEnable="[Share] change password enable",e.Share_ChangePwEnableDone="[Share] change password enable done",e.Share_ChangePwEnableError="[Share] change password enable error",e.Share_ChangeValidatePassword="[Share] change validate pwd",e.User_Login="[User] login",e.User_Logout="[User] logout",e.User_Patch_Token="[User] patch token",e.Team_AllTeams="[Team] all teams",e.Team_SwitchTeam="[Team] switch team",e.Team_ChangeStatus="[Team] change status",e.Team_Create="[Team] create",e.Team_Patch="[Team] patch",e.Tag_Add="[Tag] add",e.Tag_ALL_Tags="[Tag] get all tags",e.AppSet_All="[AppSet] all",e.AppSet_AddAppSet="[AppSet] add appset",e.AppSet_AddApp="[AppSet] add app",e.AppSet_RemoveAppSet="[AppSet] remove appSet",e.AppSet_RemoveApp="[AppSet] remove app",e.AppSet_MoveApp="[AppSet] move app",e.AppSet_Recycle="[AppSet] recycle",e.AppSet_Restore="[AppSet] restore",e.AppSet_ClearFromRecycle="[AppSet] clrear from recycle",e.AppSet_Star="[AppSet] star",e.AppSet_PatchOrder="[AppSet] patch order",e.AppSet_Clear_Apps="[AppSet] clear apps",e.AppSet_Patch="[AppSet] Patch",e.Example_Load_All="[Example] load all",e.Example_Page_Down="[Example] page down",e.ShareApp_GetLink="[Share App] get link",e.ShareApp_GetPublicLink="[Share App] get public link",e.ShareApp_Patch="[Share App] patch",e.ShareApp_ResetLink="[Share App] reset link",e.ShareApp_LoadEmbedShareLink="[Share App] load embed share link",e.ShareApp_ResetEmbedShareLink="[Share App] reset embed share link",e.Activity_Invitation_All="[Activity] all invitation",e.Activity_Invitation_Progress_Info="[Activity] invitation progress info",e.Activity_Upgrade="[Activity] upgrade",e.Activity_Link_Token="[Activity] Link Token",e.Message_Get_UnreadCount="[Message] get unread count",e.Message_Read_App="[Message] read app message",e.Message_Read_App_About_Me="[Message] read app message about me",e.Message_Resolve_Join="[Message] read join app message",e.Message_Read_All="[Message] read all message",e.Message_Read_All_About_Me="[Message] read all message about me",e.Member_Load_All="[Member] load team members",e.Member_Load_App_Members="[Member] load app members",e.Member_Update_App_Members="[Member] update app members",e.Invitation_Load_Link="[invitation] load link",e.Invitation_Patch_Link="[invitation] patch link",e.Invitation_Patch_Group="[invitation] patch group",e.Department_Load_List="[department] load list"}(t.ActionType||(t.ActionType={})),t.createAction=function(e,t){return void 0===t?{type:e}:{type:e,payload:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPublicPropertiesByComps=t.upgradeTextProperValue=t.upgradeTextFormatForDisplay=t.upgradeTextFormatForApply=t.mergeProperties=t.transEffectValueToCSSValue=t.getImageColorFilter=t.getEffectData=t.getEffectValue=t.mergePropertyCacheToComp=t.propertyCache=t.isSamePropertyValue=t.compareProperty=t.getDefaultPropertyName=t.textProps=t.shapeProps=t.sortProperty=t.getDefaultShadow=t.getTextShadow=t.PropertyOrder=void 0;const r=n(7),o=n(8),i=n(18),a=n(16),s=n(32),l=n(23),c=n(206),u=n(279),d=n(48),h=n(372),p=n(278),f=n(892),m=n(377),g=n(893),v=n(105),y=n(894),b=n(280),w=n(895),C=n(132),_=n(378),x=n(104),S=n(281),k=n(20),P=n(55),T=n(4),E=n(6),O=n(29),M=n(14);function A(){return{disabled:!0,hidden:!1,x:0,y:3,blur:6,color:k.TextShadowColor}}function D(e){e.sort((e,n)=>t.PropertyOrder[e.type]-t.PropertyOrder[n.type])}t.PropertyOrder=["opacity",d.TextPropertyName,x.TextFormatExPropertyName,p.MultiTextPropertyName,s.FillPropertyName,h.IconPropertyName,l.StrokePropertyName,w.BorderPropertyName,c.RadiusPropertyName,u.ShadowPropertyName,_.PaddingPropertyName,C.InputModelPropertyName,b.PolygonPropertyName,f.ImgPropertyName,y.ColorFilterPropertyName,S.BlurPropertyName,v.LinePropertyName,m.LayoutPropertyName,g.ContainerPropertyName].reduce((e,t,n)=>Object.assign(Object.assign({},e),{[t]:n}),{}),t.getTextShadow=A,t.getDefaultShadow=function(e=!1){return e?A():{disabled:!0,hidden:!1,x:0,y:3,blur:6,color:k.ShadowColor}},t.sortProperty=D;const I={[s.FillPropertyName]:T.default("property.propertyNames.fill"),[l.StrokePropertyName]:T.default("property.propertyNames.stroke"),[w.BorderPropertyName]:T.default("property.propertyNames.border"),[c.RadiusPropertyName]:T.default("property.propertyNames.radius"),[d.TextPropertyName]:T.default("property.propertyNames.text"),[b.PolygonPropertyName]:T.default("property.propertyNames.polygon"),[h.IconPropertyName]:T.default("property.propertyNames.icon"),[f.ImgPropertyName]:T.default("property.propertyNames.img"),[m.LayoutPropertyName]:T.default("property.propertyNames.layout"),[g.ContainerPropertyName]:T.default("property.propertyNames.container"),[u.ShadowPropertyName]:T.default("property.propertyNames.shadow"),[v.LinePropertyName]:T.default("property.propertyNames.line"),[C.InputModelPropertyName]:T.default("property.propertyNames.inputModel"),[_.PaddingPropertyName]:T.default("property.propertyNames.padding"),[l.SeparatorPropertyName]:T.default("property.propertyNames.separator"),color:T.default("property.propertyNames.color")};t.shapeProps=["opacity",s.FillPropertyName,l.StrokePropertyName,u.ShadowPropertyName,c.RadiusPropertyName,w.BorderPropertyName],t.textProps=[d.TextPropertyName,x.TextFormatExPropertyName,p.MultiTextPropertyName],t.getDefaultPropertyName=function(e){return I[e]||e},t.compareProperty=function(e,t){const n=Object.keys(e),r=Object.keys(t);return!!o.arrayEquals(n,r)&&n.every(n=>{const r=n;if("ref"===r||"prop"===r||"name"===r||"hidden"===r)return!0;const i=e[r],a=t[r],s=typeof i,l=typeof i;return s===l&&(Array.isArray(i)&&Array.isArray(a)?o.arrayEquals(i,a):"object"===s&&"object"===l?o.isEqualDate(i,a):i===a)})},t.isSamePropertyValue=function e(t,n){const r=typeof n;let o=t;if("object"===r)return!!o&&Object.keys(n).every(r=>e(t[r],n[r]));switch(r){case"number":o=o||0;break;case"string":o=o||"";break;case"boolean":o=o||!1;break;default:return!0}return o===n};function L(e,t){return r.isUndefined(t)?0:t}function N(e,t){if(!t)return"";switch(e){case y.FilterName.hueRotate:return`hue-rotate(${(1.8*t+360)%360}deg)`;case y.FilterName.saturate:return`${e}(${t+100}%)`;case y.FilterName.brightness:case y.FilterName.contrast:return`${e}(${(t+100)/2+50}%)`;case y.FilterName.invert:return`${e}(${t}%)`}return""}function j(e,t){return!!t&&(e.length>1||(1!==e.length||e[0]!==t)&&0!==e.length)}t.propertyCache=new class{constructor(){this.cache={},this.support={[E.CText]:[d.TextPropertyName,p.MultiTextPropertyName,x.TextFormatExPropertyName],[E.CConnector]:[l.StrokePropertyName],[E.CIcon]:[h.IconPropertyName],[E.CLine]:[l.StrokePropertyName,v.LinePropertyName]},this.cache={}}canCache(e,t){const n=this.support[e];return!!n&&-1!==n.indexOf(t)}get(e,t){var n;return null===(n=this.cache[e])||void 0===n?void 0:n[t]}save(e,t,n){if(!this.canCache(e,t))return;let r=this.cache[e];r||(r=this.cache[e]={}),r[t]=o.depthClone(n)}},t.mergePropertyCacheToComp=function(e){const{properties:n,type:r}=e;if(Object.keys(n).forEach(e=>{var o;const i=n[e],a=i.prop||e;if(!i.hidden){const e=t.propertyCache.get(r,a);if(e){Object.keys(e).forEach(t=>{["hidden","name","prop"].includes(t)||(i[t]=e[t])});const t=Math.round(1.4*((null===(o=n.textStyle||n.textFormat)||void 0===o?void 0:o.fontSize)||14));a===p.MultiTextPropertyName?(n.multiText.wrap=!1,n.multiText.lineHeightEx=t):a===x.TextFormatExPropertyName&&(n.textFormat.wrap=!1,n.textFormat.lineHeightEx=void 0,n.textFormat.lineHeight=void 0,n.textFormat.listType=void 0)}}}),e.type===E.CText){const{textFormat:t,textStyle:r}=n,o=(null==t?void 0:t.fontStyle)||(null==r?void 0:r.fontStyle);if(t||r){e.value=O.setValueWithFontstyle(e.value,o);const t=M.StyleHelper.initCSSStyleParser(n),r=Object.assign({},t.getTextStyle()),{width:a,height:s}=i.measureTextSize(r,e.value,{isRich:!0,wrap:!1,isMultiText:!0});e.size.width=a,e.size.height=s}}},t.getEffectValue=L,t.getEffectData=function(e,t){const n={name:T.default("property.component.colorFilter."+e),value:L(0,t),min:-100,max:100,step:1};return e===y.FilterName.invert&&(n.min=0),n},t.getImageColorFilter=function(e,t){let n="";if(e){const{disabled:t}=e;if(!t){n=function(e){const t={[y.FilterName.hueRotate]:0,[y.FilterName.saturate]:1,[y.FilterName.brightness]:2,[y.FilterName.contrast]:3,[y.FilterName.invert]:4};return e.sort((e,n)=>{var r,o;return null!==(o=null!==(r=t[e])&&void 0!==r?r:5-t[n])&&void 0!==o?o:5})}(Object.keys(e)).map(t=>N(t,e[t])).join(" ")}}return t&&!t.disabled&&t.blurValue.aMount&&(n=`${n||""} blur(${t.blurValue.aMount}px)`),n},t.transEffectValueToCSSValue=N,t.mergeProperties=function(e,t){if(!t)return e;const n=o.depthClone(e);return Object.keys(t).reduce((e,t)=>(e.includes(t)||e.push(t),e),Object.keys(e)).forEach(e=>{const r=e,i=n[r],a=t[r];i?a&&(n[r]=o.merge(i,a,(e,t,n)=>{if(["colorStops","color","radius","dashArray"].includes(e))return n}),!a.ref&&n[r]&&delete n[r].ref):n[r]=a}),n},t.upgradeTextFormatForApply=function(e,t){if(!t)return e;const n=i.getTextFormatByHTMLString(t,function(e){var t,n,r,o;const i=[];return(null===(t=e.fontStyle)||void 0===t?void 0:t.strike)&&i.push("line-through"),(null===(n=e.fontStyle)||void 0===n?void 0:n.underline)&&i.push("underline"),{fontFamily:e.fontFamily,fontSize:(e.fontSize||14)+"px",color:a.parseColorToString(e.color||""),textAlign:e.textAlign,fontWeight:(null===(r=e.fontStyle)||void 0===r?void 0:r.bold)?"bold":"",fontStyle:(null===(o=e.fontStyle)||void 0===o?void 0:o.italic)?"italic":"",textDecorationLine:i.join(" ")}}(e));e=Object.assign(Object.assign(Object.assign({},e),n),{textAlign:e.textAlign,fontStyle:Object.assign(Object.assign({},e.fontStyle||{}),n.fontStyle||{})}),n.textAlign&&(e.textAlign=n.textAlign);const r=i.getListTypeByHTMLString(t);return r&&(e.listType=r),e},t.upgradeTextFormatForDisplay=function(e,t){if(!t)return e;const n=Object.assign({},e),r=i.getManyRichStyleByHTMLString(t),{fontFamily:o,fontSize:s,fontStyle:l,textAlign:c,listType:u,color:d}=n;if(o&&j(r.fontFamily,P.getFontFamily(o))&&delete n.fontFamily,j(r.fontSize,s+"px")&&delete n.fontSize,d&&j(r.color,a.parseColorToString(d))&&delete n.color,n.fontStyle){(null==l?void 0:l.bold)&&j(r.fontWeight,"bold")&&(n.fontStyle.bold=!1);(null==l?void 0:l.italic)&&j(r.fontStyle,"italic")&&(n.fontStyle.italic=!1)}return j(r.textAlign,c)&&delete n.textAlign,function(e,t){if(!t)return!1;const n="order"===t?"OL":"UL",r=document.createElement("div");r.innerHTML=e;const o=r.childNodes;return 1!==o.length||o.item(0).nodeName!==n}(t,u)&&delete n.listType,n},t.upgradeTextProperValue=function(e){if(!e)return e;const{lineHeight:t,lineHeightEx:n,fontSize:i}=e;return r.isUndefined(n)&&!r.isUndefined(t)?Object.assign(Object.assign({},o.depthClone(e)),{lineHeightEx:t+(i||P.DefaultFontSize)}):r.isUndefined(n)&&r.isUndefined(t)?Object.assign(Object.assign({},o.depthClone(e)),{lineHeightEx:1.4*(i||P.DefaultFontSize)}):e},t.getPublicPropertiesByComps=function(e){const t=[],n=[...e],o=n.length;if(o){const e={},i=n.reduce((e,t)=>(Object.keys(t.properties).forEach(n=>{let o=t.properties[n];r.isUndefined(o)||o||(o={}),o&&(e[n]?e[n].count=e[n].count+1:e[n]={count:1,type:o.prop||n},o.hidden&&(e[n].count=e[n].count-1))}),e),e);Object.keys(i).forEach(e=>{i[e].count===o&&t.push({name:e,type:i[e].type})})}if(1===o&&t.forEach(e=>{e.locked=n[0].locked}),o>1){const e=t.findIndex(e=>"layout"===e.type);-1!==e&&t.splice(e,1)}if(n.some(e=>e.type===E.CPath&&e.value.closed)){const e=t.findIndex(e=>"line"===e.type);-1!==e&&t.splice(e,1)}return D(t),t.unshift({name:"opacity",type:"opacity"}),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(239);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAngleOfLine=t.getAngleWhenShiftPress=t.getMidpointOfTwoPoints=t.getSymmetricPoint=t.getCenter=t.getBoundsOfRotatedRectangle=t.rotateSinglePoint=t.getNoRotateRect=t.getNWPoint=t.centerRotatePoints=t.fixPointsWithMinimum=t.getScalePoints=t.getRectPoints=t.getDragPoints=t.getAllMiddlePointByCornerPoint=t.getAllResizePoints=t.getSizeByPoints=t.getOppositePoint=t.adjustPointByAdsorbedBounds=t.moveLineAccordingToPoint=t.dragResizePoint=t.ILineIndex=t.getDirectionByIndex=t.getPointsByLines=t.getLinesByPoints=t.ILineDirection=void 0;const r=n(133),o=n(373),i=n(151),a=n(8),s=n(374);function l(e){const t=[];let n,o=e[0];return e.forEach((i,a)=>{const s=a+1===e.length?0:a+1;n=e[s],t.push(r.getLineByPoint(o,n)),o=n}),t}function c(e){const t=[];let n=e[e.length-1];return e.forEach(e=>{t.push(r.getPointByLine(n,e)),n=e}),t}function u(e,t,n,o,a){if(t>=i.SelectionPoints.leftTop&&t<=i.SelectionPoints.leftBottom){const e=t-1<0?3:t-1,i=t;n[e]=r.moveLineToPoint(n[e],o),n[i]=r.moveLineToPoint(n[i],o)}else{const e=t-4;n[e]=r.moveLineToPoint(n[e],o)}}function d(e,t){let n;if(t>=0&&t<4)n=t-2<0?t+2:t-2;else{const e=t-4;n=e-2<0?e+2:e-2,n+=4}return e[n]}function h(e){return{width:r.getTowPointDis(e[0],e[1]),height:r.getTowPointDis(e[1],e[2])}}function p(e,t,n){const r=e.x-t.x,o=e.y-t.y;return{x:t.x+Math.sqrt(Math.pow(o,2)+Math.pow(r,2))*Math.cos((180*Math.atan2(-o,r)/Math.PI-n)*Math.PI/180),y:t.y-Math.sqrt(Math.pow(o,2)+Math.pow(r,2))*Math.sin((180*Math.atan2(-o,r)/Math.PI-n)*Math.PI/180)}}function f(e,t,n){if(!n)return{x:e.x+t.width/2,y:e.y+t.height/2};const r=e.x,o=e.y,i=(180-Math.atan(t.height/t.width)/Math.PI*180-n+360)/180*Math.PI,a=Math.sqrt(Math.pow(t.width/2,2)+Math.pow(t.height/2,2));return{x:r-a*Math.cos(i),y:-(-o-a*Math.sin(i))}}!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(t.ILineDirection||(t.ILineDirection={})),t.getLinesByPoints=l,t.getPointsByLines=c,t.getDirectionByIndex=function(e){return[o.Direction.nw,o.Direction.ne,o.Direction.se,o.Direction.sw,o.Direction.n,o.Direction.e,o.Direction.s,o.Direction.w][e]},function(e){e[e.Top=0]="Top",e[e.Right=1]="Right",e[e.Bottom=2]="Bottom",e[e.left=3]="left"}(t.ILineIndex||(t.ILineIndex={})),t.dragResizePoint=function(e,t,n,o,a=0,d){const h=(null==d?void 0:d.isVerticalMiddle)||!1,p=(null==d?void 0:d.isHorizontalCenter)||!1,f=l(e);if(h||p){const o=r.getCenterPoint(e);if(t>=0&&t<4){const e=t-1<0?3:t-1,i=t,a={x:2*o.x-n.x,y:2*o.y-n.y};f[e]=r.moveLineToPoint(f[e],n),f[i]=r.moveLineToPoint(f[i],n);[0,1,2,3].filter(t=>t!==e&&t!==i).forEach(e=>{1===e||3===e?p&&(f[e]=r.moveLineToPoint(f[e],a)):h&&(f[e]=r.moveLineToPoint(f[e],a))})}else{const e=t-4,i=(e+2)%4,s={x:2*o.x-n.x,y:2*o.y-n.y};f[e]=r.moveLineToPoint(f[e],n);1===e||3===e?(p||a&&h)&&(f[i]=r.moveLineToPoint(f[i],s)):(h||a&&p)&&(f[i]=r.moveLineToPoint(f[i],s))}}else u(e,t,f,n,o);const m=f[0],g=f[1];if(m.k===g.k){const r=m.isPoint?m:g,o=m.isPoint?0:1;r.k=0,r.b=e[o].y,t!==i.SelectionPoints.leftTop&&t!==i.SelectionPoints.rightTop||(r.b=n.y)}const v=f[2],y=f[3];if(v.k===y.k){const r=v.isPoint?v:y,o=v.isPoint?2:3;r.k=0,r.b=e[o].y,t!==i.SelectionPoints.rightBottom&&t!==i.SelectionPoints.leftBottom||(r.b=n.y)}return c(f).map(e=>s.Point(e).round())},t.moveLineAccordingToPoint=u,t.adjustPointByAdsorbedBounds=function(e,t,n){const r=n.left+n.width/2,o=n.top+n.height/2,i=d(e,t);return{x:2*r-i.x,y:2*o-i.y}},t.getOppositePoint=d,t.getSizeByPoints=h,t.getAllResizePoints=function(e){const t=e.concat([]);let n,r=e[0];return e.forEach((o,i)=>{const a=i+1===e.length?0:i+1;n=e[a],t.push({x:(r.x+n.x)/2,y:(r.y+n.y)/2}),r=n}),t},t.getAllMiddlePointByCornerPoint=function(e){return e.reduce((t,n,r)=>{const o=r+1===e.length?0:r+1,i=n,a=e[o];return t.push({x:(i.x+a.x)/2,y:(i.y+a.y)/2}),t},[])},t.getDragPoints=function(e,t){switch(t){case i.default.box:return e;case i.default.none:return[];case i.default.leftTop_to_rightBottom:return[e[0],e[2]];case i.default.leftBottom_to_rightTop:return[e[1],e[3]];case i.default.leftMiddle_to_rightMiddle:return[e[5],e[7]];case i.default.topMiddle_to_bottomMiddle:return[e[4],e[6]];case i.default.corner:return[e[0],e[1],e[2],e[3]];case i.default.control:return[e[4],e[5],e[6],e[7]]}return e},t.getRectPoints=function(e,t,n=0){if(a.sameNumber(n,0))return[{x:e.x,y:e.y},{x:e.x+t.width,y:e.y},{x:e.x+t.width,y:e.y+t.height},{x:e.x,y:e.y+t.height}];const{x:r,y:o}=f(e,t,0),i=Math.hypot(t.width/2,t.height/2),s=Math.atan(t.height/t.width),l=n/180*Math.PI,c=Math.PI-s-l,u=s-l,d=2*Math.PI-s-l,h=Math.PI+s-l,p=Math.cos,m=Math.sin;return[{x:r+i*p(c),y:-(-o+i*m(c))},{x:r+i*p(u),y:-(-o+i*m(u))},{x:r+i*p(d),y:-(-o+i*m(d))},{x:r+i*p(h),y:-(-o+i*m(h))}]},t.getScalePoints=function(e,t){if(e)return e.map(e=>({x:e.x*t,y:e.y*t}))},t.fixPointsWithMinimum=function(e,t){const n=e.map(e=>e.x),r=e.map(e=>e.y),o=Math.max(...n)-Math.min(...n),i=Math.max(...r)-Math.min(...r);if(or.rotatePoint(e,n)),e=r.offsetPoints(e,{x:t.x,y:t.y})),e},t.getNWPoint=function(e,t,n){const r=(180-Math.atan(t.height/t.width)/Math.PI*180-n+360)/180*Math.PI,o=Math.sqrt(Math.pow(t.width/2,2)+Math.pow(t.height/2,2));return{x:e.x+o*Math.cos(r),y:-(-e.y+o*Math.sin(r))}},t.getNoRotateRect=function(e){const t=h(e),n=r.getCenterPoint(e);return Object.assign(Object.assign({},t),{left:n.x-t.width/2,top:n.y-t.height/2,right:n.x+t.width/2,bottom:n.y+t.height/2})},t.rotateSinglePoint=p,t.getBoundsOfRotatedRectangle=function({position:e,size:t,rotate:n}){const r=[{x:e.x,y:e.y},{x:e.x+t.width,y:e.y},{x:e.x,y:e.y+t.height},{x:e.x+t.width,y:e.y+t.height}],o={x:e.x+t.width/2,y:e.y+t.height/2},i=r.map(e=>p(e,o,n));let a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;return i.forEach(e=>{a=Math.min(a,e.x),s=Math.min(s,e.y),l=Math.max(l,e.x),c=Math.max(c,e.y)}),{left:a,top:s,right:l,bottom:c,width:l-a,height:c-s}},t.getCenter=f,t.getSymmetricPoint=function(e,t){const{direction:n,intersectionOnYAxes:r,intersectionOnXAxes:o}=t;return"vertical"===n?{x:2*o-e.x,y:e.y}:{x:e.x,y:2*r-e.y}},t.getMidpointOfTwoPoints=function(e,t){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}},t.getAngleWhenShiftPress=function(e,t){const n=t%e;return t%360-n+(n>=e/2?e:0)},t.getAngleOfLine=function(e,t){const{x:n,y:r}=e,{x:o,y:i}=t;let s;if(n===o)s=r>i?90:270;else{const e=(r-i)/(n-o),t=a.sameNumber(n,0)&&a.sameNumber(r,0)?0:180;s=180*Math.atan(e)/Math.PI+t}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileAppType=t.couldPagePreview=t.isNodeVisible=t.parseDataToRPTree=t.isStartWithControlPanel=t.isStartFromPreview=t.isPhoneIn=t.isLarkApplets=t.isLarkBrowser=t.parserVisibleCommand=t.shouldHiddenPageVisible=t.parserScaleCommand=t.parserRotateCommand=t.parserResizeCommand=t.parserMoveCommand=t.isMobileDevice=t.isMobileApp=t.getPreviewOptFromUrl=t.getPreviewOptFromOfflineDemo=t.getDefaultOption=t.shareOptionToSearchStr=t.getUrlSearchObj=void 0;const r=n(7),o=n(171),i=n(215),a=n(8),s=n(216),l=n(92),c=n(113),u=n(42),d=n(276);function h(){return function(e){const t=a.depthClone(e);return Object.keys(t).forEach(n=>{const r=e[n].toLowerCase(),o=Number(r);"1"===r?t[n]=!0:"0"===r?t[n]=!1:isNaN(o)||(t[n]=o)}),t}(d.parseUrlSearch())}function p(){var e;const t=null===(e=c.getOfflineDemoData())||void 0===e?void 0:e.config;return t?{showLinkAreaWhenHovered:t.showLinkAreaWhenHovered,alwaysShowLinkArea:t.alwaysShowLinkArea,autoScreen:t.autoScreen,mobileType:t.mobileType,noBoundary:t.noBoundary}:{}}function f(e){const t=null!=e?e:h(),n={};return Object.keys(t).forEach(e=>{switch(e){case o.PreviewUrlSearchKey.ShowOutside:n.noBoundary=!!t[e];break;case o.PreviewUrlSearchKey.DeviceType:n.mobileType=t[e];break;case o.PreviewUrlSearchKey.AlwayshowLinkArea:n.alwaysShowLinkArea=!!t[e];break;case o.PreviewUrlSearchKey.ShowLinkAreaWhenMouseHover:n.showLinkAreaWhenHovered=!!t[e];break;case o.PreviewUrlSearchKey.FitToScreen:n.autoScreen=!!t[e]}}),n}t.getUrlSearchObj=h,t.shareOptionToSearchStr=function(e){const t=Object.keys(e).filter(t=>!r.isUndefined(e[t]));let n="";const i=e=>r.isBoolean(e)?e?1:0:e,a=t.map(t=>{const n=e[t];switch(t){case"alwaysShowLinkArea":return`${o.PreviewUrlSearchKey.AlwayshowLinkArea}=${i(n)}`;case"showLinkAreaWhenHovered":return`${o.PreviewUrlSearchKey.ShowLinkAreaWhenMouseHover}=${i(n)}`;case"autoScreen":return`${o.PreviewUrlSearchKey.FitToScreen}=${i(n)}`;case"noBoundary":return`${o.PreviewUrlSearchKey.ShowOutside}=${i(n)}`;case"showControllerPanel":return`${o.PreviewUrlSearchKey.ShowControllerPanel}=${i(n)}`;case"mobileType":return`${o.PreviewUrlSearchKey.DeviceType}=${i(n)}`;default:return}}).filter(e=>!r.isUndefined(e));return a.length&&(n="?"+a.join("&")),n},t.getDefaultOption=function(e){var t;const{appType:n,size:r,_id:a}=e;let s=o.MobileType.None;switch(n){case"pad":s=o.MobileType.Pad;break;case"phone":s=i.adapterPhoneShell(r.height/r.width);break;default:s=o.MobileType.None}const l={showLinkAreaWhenHovered:!1,alwaysShowLinkArea:!1,autoScreen:!1,mobileType:s,noBoundary:!["pad","phone"].includes(n)},c=p(),d=f(),h=u.default.previewOption||[];let m=l;if(h.length){const e=h.find(e=>e.appID===a),n=(null===(t=null==e?void 0:e.option)||void 0===t?void 0:t.mobileType)||"",r=["iphoneX","iphone","android","pad","none"].includes(n)?n:s;m=Object.assign({},l,null==e?void 0:e.option,{mobileType:r},d,c)}else m=Object.assign({},l,d,c),u.default.previewOption=[{appID:a,option:m}];return["phone","pad"].includes(n)||delete m.mobileType,-1!==location.href.indexOf("/standalone/rp")&&(m.noBoundary=!1),m},t.getPreviewOptFromOfflineDemo=p,t.getPreviewOptFromUrl=f,t.isMobileApp=-1!==window.location.href.indexOf("phoneUrl=true"),t.isMobileDevice=()=>null!==navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i),t.parserMoveCommand=function(e,t){const{x:n,y:r,fromCurrent:o}=t,{position:i}=e;let a=i.x,s=i.y;return o?(a+=n,s+=r):(a=n,s=r),{x:a,y:s}},t.parserResizeCommand=function(e,t){const{size:n,position:r}=e,{width:o,height:i,fromCurrent:a,transformOrigin:s}=t;let l,c;a?(l=n.width+o,c=n.height+i):(l=o,c=i);let u=r.x,d=r.y;const h=l-n.width,p=c-n.height;let f=0,m=0;return"center"===s||"top"===s||"bottom"===s?m=-h/2:"right"!==s&&"topRight"!==s&&"bottomRight"!==s||(m=-h),"left"===s||"right"===s||"center"===s?f=-p/2:"bottomLeft"!==s&&"bottom"!==s&&"bottomRight"!==s||(f=-p),u+=m,d+=f,{size:{width:l,height:c},position:{x:u,y:d}}},t.parserRotateCommand=function(e,t){const n=e.rotate||0,{rotate:r,fromCurrent:o}=t;let i=r;return o&&(i=n+r),i},t.parserScaleCommand=function(e,t){const n=e._scale,{size:r,position:o}=e,{x:i,y:a,fromCurrent:s,transformOrigin:l}=t;let c=i,u=a;s&&(c=(n.x||1)*i,u=(n.y||1)*a);let d=o.x,h=o.y,p=r.width*c,f=r.height*u;const m=p-r.width*n.x,g=f-r.height*n.y;let v=0,y=0;return"center"===l||"top"===l||"bottom"===l?y=-m/2:"left"===l||"topLeft"===l||"bottomLeft"===l?y=0:"right"!==l&&"topRight"!==l&&"bottomRight"!==l||(y=-m),"left"===l||"right"===l||"center"===l?v=-g/2:"topLeft"===l||"top"===l||"topRight"===l?v=0:"bottomLeft"!==l&&"bottom"!==l&&"bottomRight"!==l||(v=-g),d+=y,h+=v,{scale:{x:c,y:u},position:{x:d,y:h}}},t.shouldHiddenPageVisible=e=>s.isAdminOrSuperAdmin(e)||s.isMember(e),t.parserVisibleCommand=function(e,t){const n=e.hidden,{state:r}=t;let o=n;switch(r){case"show":o=!1;break;case"hidden":o=!0;break;default:o=!n}return o},t.isLarkBrowser=-1!==navigator.userAgent.indexOf("Lark")&&-1===window.location.href.indexOf("lark=true"),t.isLarkApplets=-1!==window.location.href.indexOf("lark=true"),t.isPhoneIn=-1!==window.location.href.indexOf("phoneUrl=true"),t.isStartFromPreview=-1!==window.location.href.indexOf("/run/rp"),t.isStartWithControlPanel=-1!==window.location.href.indexOf(o.PreviewUrlSearchKey.ShowControllerPanel+"=true"),t.parseDataToRPTree=function(e,t,n=!1,r=!1){const o=(t,i)=>t.filter(e=>!r||!e.hidden).map(t=>{const r={data:t,isLeaf:!t.children||!t.children.length,selected:t._id===e,parent:i};return r.isLeaf||(r.expand=!n,r.children=o(t.children,r)),r});return o(t)},t.isNodeVisible=function(e){return!e.hidden&&e.state!==l.NodeState.Deleted},t.couldPagePreview=function(e,n){const r=t.shouldHiddenPageVisible(n);return!(!e||!r&&l.isPageHidden(e)||e.state===l.NodeState.Deleted)},t.isMobileAppType=function(e){return["pad","phone"].includes(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChineseFont=t.checkFontFamily=t.MinRichTextSize=t.MinFontSize=t.DefaultFontSize=t.DefaultRichTextFontSize=t.FontBoxScale=t.DefaultTextSize=t.getFontKey=t.getFontFamily=t.fontFamilysConfig=t.DefaultFontFamilys=t.FontFamilys=void 0;const r=n(103),o=n(4);var i;!function(e){e.MicrosoftYaHei="Microsoft YaHei",e.PingFangSC="PingFang SC",e.SimSun="SimSun",e.FangSong="FangSong",e.KaiTi="KaiTi",e.SimHei="SimHei",e.Roboto="Roboto",e.Arial="Arial",e.ArialBlack="Arial Black",e.TimesNewRoman="Times New Roman",e.Tahoma="Tahoma",e.Verdana="Verdana",e.Helvetica="Helvetica"}(i=t.FontFamilys||(t.FontFamilys={})),t.DefaultFontFamilys=[{id:i.MicrosoftYaHei,text:o.default("property.component.textStyle.MicrosoftYahei")},{id:i.PingFangSC,text:o.default("property.component.textStyle.pingfang")},{id:i.SimSun,text:o.default("property.component.textStyle.SimSun")},{id:i.FangSong,text:o.default("property.component.textStyle.FangSong")},{id:i.KaiTi,text:o.default("property.component.textStyle.KaiTi")},{id:i.SimHei,text:o.default("property.component.textStyle.SimHei")},{id:i.Roboto,text:"Roboto"},{id:i.Arial,text:"Arial"},{id:i.ArialBlack,text:"Arial Bold"},{id:i.TimesNewRoman,text:"Times New Roman"},{id:i.Tahoma,text:"Tahoma"},{id:i.Verdana,text:"Verdana"},{id:i.Helvetica,text:"Helvetica"}],t.fontFamilysConfig={[i.MicrosoftYaHei]:'"Microsoft YaHei", 微软雅黑, -apple-system, BlinkMacSystemFont, "PingFang SC", Helvetica, Tahoma, Arial, sans-serif',[i.PingFangSC]:'"PingFang SC", -apple-system, BlinkMacSystemFont, Helvetica, Tahoma, Arial, "Microsoft YaHei", 微软雅黑, sans-serif',[i.SimSun]:"SimSun, STSong",[i.FangSong]:"FangSong_GB2312, FangSong, STFangsong",[i.KaiTi]:"KaiTi_GB2312, KaiTi, STKaiti",[i.SimHei]:'SimHei, "Heiti SC", 黑体, sans-serif',[i.Roboto]:"Roboto",[i.Arial]:"Arial",[i.ArialBlack]:'"Arial Black"',[i.TimesNewRoman]:'"Times New Roman"',[i.Tahoma]:"Tahoma",[i.Verdana]:"Verdana",[i.Helvetica]:"Helvetica"},t.getFontFamily=e=>Object.keys(t.fontFamilysConfig).includes(e)?t.fontFamilysConfig[e]:e,t.getFontKey=e=>Object.keys(t.fontFamilysConfig).find(n=>t.fontFamilysConfig[n]===e)||e,t.DefaultTextSize=[{id:8,text:"8"},{id:9,text:"9"},{id:10,text:"10"},{id:11,text:"11"},{id:12,text:"12"},{id:13,text:"13"},{id:14,text:"14"},{id:16,text:"16"},{id:18,text:"18"},{id:20,text:"20"},{id:22,text:"22"},{id:24,text:"24"},{id:26,text:"26"},{id:28,text:"28"},{id:36,text:"36"},{id:42,text:"42"},{id:48,text:"48"},{id:72,text:"72"}],t.FontBoxScale=.5,t.DefaultRichTextFontSize=t.DefaultTextSize,t.DefaultFontSize=14,t.MinFontSize=t.DefaultTextSize[0].id,t.MinRichTextSize=t.DefaultRichTextFontSize[0].id,t.checkFontFamily=function(e){if(!e)return i.MicrosoftYaHei;const t=e.split(",");let n="",o=Number.POSITIVE_INFINITY;return t.forEach((e,t)=>{const a=e.trim(),s=r.getEnumName(i,a);s&&t{const{userAgent:e}=window.navigator;return"ActiveXObject"in window||e.indexOf("Trident")>-1},t.getDevicePixelRatio=function(){return window.devicePixelRatio||1},t.getOSSystem=function(){return o?s.macOS:-1!==r.indexOf("Windows")?s.Windows:-1!==r.indexOf("Android")||-1!==r.indexOf("Adr")?s.Android:-1!==r.indexOf("Linux")?s.Linux:r.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)||-1!==r.indexOf("iPhone")||-1!==r.indexOf("iPad")?s.iOS:s.Unknown}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.axDelete=t.patch=t.get=t.post=t.put=t.idocBaseUrl=t.rpBaseUrl=void 0;const o=n(296),i=n(1205);t.rpBaseUrl=window.location.origin+"/rpapi/v1",t.idocBaseUrl=window.location.origin+"/api/v1",t.put=function(e,t,n){return r(this,void 0,void 0,(function*(){const r=yield o.default.put(e,t,n);if(0===r.data.code)return r.data.payload;throw new i.CustomError(r.data.message,r.data.code)}))},t.post=function(e,t,n){return r(this,void 0,void 0,(function*(){const r=yield o.default.post(e,t,n);if(0===r.data.code)return r.data.payload;throw new i.CustomError(r.data.message,r.data.code)}))},t.get=function(e,t){return r(this,void 0,void 0,(function*(){const n=yield o.default.get(e,t);if(0===n.data.code)return n.data.payload;throw new i.CustomError(n.data.message,n.data.code)}))},t.patch=function(e,t,n){return r(this,void 0,void 0,(function*(){const r=yield o.default.patch(e,t,n);if(0===r.data.code)return r.data.payload;throw new i.CustomError(r.data.message,r.data.code)}))},t.axDelete=function(e,t){return r(this,void 0,void 0,(function*(){const n=yield o.default.delete(e,t);if(0===n.data.code)return n.data.payload;throw new i.CustomError(n.data.message,n.data.code)}))}},function(e,t,n){e.exports=n(853)()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(211);n(932),n(383);class a extends r.PureComponent{constructor(e){super(e),this.renderContent=()=>{const{selected:e,cls:t,style:n,size:i,disabled:a,url:s,theme:l,customFontIcon:c}=this.props,{onMouseDown:u,onClick:d,onMouseOver:h,onMouseEnter:p}=this.props,f=n||{},m=!!s,g=!m&&!c,v=i||16,y=!!c&&!g&&!m;return(g||y)&&(f.fontSize=v,f.height=v+2,f.width=v+2,f.lineHeight=v+"px"),r.createElement("div",{style:f,className:o.default("dsm-c-rp-icon",{selected:e&&"button"===l&&!a,disabled:a,"button-theme":"button"===l||"hot-button"===l,"hot-button-theme":"hot-button"===l,"img-icon":m,"font-icon":g}),onClick:a?void 0:d,onMouseDown:a?void 0:u,onMouseEnter:a?void 0:p,onMouseOver:a?void 0:h},r.createElement("div",{className:"icon-background"}),m&&r.createElement("img",{src:s,width:v,height:v,draggable:!1}),g&&r.createElement("i",{style:{fontSize:i},className:"mockplus_rp mockplus_rp_"+(t||"icon_normal")}),y&&r.createElement("label",{style:{fontSize:i,fontFamily:c.fontName}},String.fromCharCode(c.iconCode)))},this.state={},this.selfRef=r.createRef()}render(){const{tips:e,className:t,isInPopup:n,autoHideTips:o}=this.props,a="dsm-c-rp-icon-tooltip "+(t||"");return e?r.createElement(i.default,{text:e,ownerIsDialog:n,className:a,autoHide:null==o||o},this.renderContent()):r.createElement("div",{className:a},this.renderContent())}}a.defaultProps={size:16,theme:"button"},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCompExistedInDoOfPatches=t.ArtboardPatchesClass=void 0;const r=n(7),o=n(116);function i(e,t){return Boolean(e.do[t])}function a(e,t){return Boolean(e.undo[t])}t.ArtboardPatchesClass=class{constructor(e){this._do=r.defaultTo(null==e?void 0:e.do,{}),this._undo=r.defaultTo(null==e?void 0:e.undo,{})}get do(){return this._do}get undo(){return this._undo}coverPatches(e){for(let t in e.do){const n=e.do[t],r=this.do[t],o=s(n);this.do[t]=i(this,t)?r.filter(o):[];const l=e.undo[t],c=this.undo[t],u=s(l);this.undo[t]=a(this,t)?c.filter(u):[],this.do[t].push(...n),this.undo[t].push(...l)}return this}isCompExistedInPatches(e){return this.do[e]}getPatchesByCompChange(e,t){return{do:{[e]:[...t.do]},undo:{[e]:[...t.undo]}}}getAttrChangePatches(e,t,n){const r=(new o.ComponentPatchesClass).getAttrChangePatches(e,t,{oldVal:n.oldVal,newVal:n.newVal});return this.coverPatches(this.getPatchesByCompChange(e,r)),this}findOperationSuit(e){const t=this._do;return Object.values(t).reduce((e,t)=>e=e.concat(t),[]).some(e)}},t.isCompExistedInDoOfPatches=i;const s=r.curry((e,t)=>!e.some(e=>e.path===t.path))},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l"+o+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.offMove=t.onMove=t.getMousePosition=t.dragDelegate=void 0;const r=n(75),o=n(899).default();window.addEventListener("mousemove",o.call),t.dragDelegate=(e,t)=>{let n,i;const a={x:0,y:0},s={dx:0,dy:0};let l=!1,c=Object.assign({},a);window.event instanceof MouseEvent&&(n={pageX:window.event.pageX,pageY:window.event.pageY});const u=t=>{if(t.buttons!==r.MouseButtons.Left)return;n||(n={pageX:t.pageX,pageY:t.pageY}),i||(i=n),a.x=t.pageX-n.pageX,a.y=t.pageY-n.pageY,s.dx=t.pageX-i.pageX,s.dy=t.pageY-i.pageY,i={pageX:t.pageX,pageY:t.pageY},l||(Math.abs(a.x)>=5||Math.abs(a.y)>=5)&&(l=!0);const o=c.x!==a.x||c.y!==a.y;l&&o&&(c=Object.assign({},a),e(t,a,s,n))},d=e=>{window.removeEventListener("mouseup",d),o.remove(u),t(e,a,l)};window.addEventListener("mouseup",d),o.add(u)},t.getMousePosition=(e,t)=>{const n=e.getBoundingClientRect();return{x:t.pageX-n.left+e.scrollLeft,y:t.pageY-n.top+e.scrollTop,pageX:t.pageX,pageY:t.pageY}},t.onMove=e=>{o.add(e)},t.offMove=e=>{o.remove(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEmail=t.copy=t.keydown=t.getMacCmdOrCtrl=t.loadFromCache=t.saveToCahche=t.isMac=t.isFirefox=t.isSafari=t.isChrome=t.isFigma=t.isIE=t.isCtrlKey=t.isMacOS=void 0;const r=window.navigator.userAgent;t.isMacOS=-1!==window.navigator.userAgent.indexOf("Macintosh"),t.isCtrlKey=e=>e.ctrlKey||e.metaKey,t.isIE=()=>{const{userAgent:e}=window.navigator;return"ActiveXObject"in window||e.indexOf("Trident")>-1},t.isFigma=()=>/Figma/.test(r),t.isChrome=()=>/Chrome/.test(r),t.isSafari=()=>/Safari/.test(r)&&!t.isChrome(),t.isFirefox=()=>/Firefox/.test(r),t.isMac=-1!==r.indexOf("Macintosh"),t.saveToCahche=function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(e){console.log(e)}},t.loadFromCache=function(e,t){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch(n){return console.error(`not find ${e} from cache`),t}return t},t.getMacCmdOrCtrl=()=>t.isSafari()?"^":"⌘",t.keydown=e=>{const t=-1!==window.navigator.userAgent.indexOf("Macintosh"),n=[],r=e=>-1===["control","shift","alt","meta"].indexOf(e.toLowerCase()),o=e=>t?"backspace"===e:"delete"===e||"del"===e;return{clear:()=>n.length=0,setKey:t=>{const i=t.key.toLowerCase();"control"!==i&&"meta"!==i||-1!==n.indexOf("ctrl")||n.push("ctrl"),"alt"===i&&-1===n.indexOf("alt")&&n.push("alt"),"shift"===i&&-1===n.indexOf("shift")&&n.push("shift"),o(i)&&-1===n.indexOf("delete")?n.push("delete"):r(t.key.toLocaleLowerCase())&&-1===n.indexOf(t.key.toLocaleLowerCase())&&n.push(t.key.toLocaleLowerCase());const a=n.join("+").toLowerCase();return e&&-1!==e.indexOf(a)&&t.preventDefault(),a},removeKey:e=>{const t=e.key.toLowerCase();"control"!==t&&"meta"!==t||-1===n.indexOf("ctrl")||n.splice(n.indexOf("ctrl"),1),"alt"===t&&-1!==n.indexOf("alt")&&n.splice(n.indexOf("alt"),1),"shift"===t&&-1!==n.indexOf("shift")&&n.splice(n.indexOf("shift"),1),o(t)&&-1!==n.indexOf("delete")?n.splice(n.indexOf("delete"),1):r(e.key.toLocaleLowerCase())&&-1!==n.indexOf(e.key.toLocaleLowerCase())&&n.splice(n.indexOf(e.key.toLocaleLowerCase()),1)},getKeys:()=>n}},t.copy=e=>{const t=document.createElement("textarea");t.textContent=e,t.style.position="fixed",document.body.appendChild(t),t.select();try{return document.execCommand("copy"),document.body.removeChild(t),!0}catch(e){console.warn("copy failed.")}return document.body.removeChild(t),!1},t.validateEmail=e=>/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(230);n(1503);class s extends r.Component{constructor(e){super(e),this.check=e=>{const t=!this.props.checked;this.props.disabled||this.props.onChange&&(this.props.onChange(t),e.stopPropagation())}}render(){const{disabled:e,checked:t,indeterminate:n,text:s,icon:l,iconLink:c,desc:u,autoLinefeed:d,width:h,maxWidth:p,fontSize:f}=this.props;return r.createElement("div",{className:o.default("dsm-c-checkbox",{"disabled-checkbox":e,"dsm-c-checkbox-dark":this.props.darkMode,"dsm-c-checkbox-auto-line":d}),style:{width:h,maxWidth:d?p:"max-content"},onClick:this.check,onDoubleClick:e=>{e.stopPropagation()}},r.createElement("span",{className:o.default("checkbox-viewer",{"checkbox-checked":t&&!n,"checkbox-checked-indeterminate":t&&n})},r.createElement("span",{className:"checkbox-viewer-inner"})),d?r.createElement("span",{className:"checkbox-text",style:{maxWidth:l?`calc(${p} - 45px)`:`calc(${p} - 23px)`,fontSize:f}},s):r.createElement("span",{className:"checkbox-text",style:{maxWidth:l?"calc(100% - 45px)":"calc(100% - 23px)",fontSize:f}},s),l&&r.createElement(a.default,{href:c,target:"target"},r.createElement(i.default,{cls:l})),u&&r.createElement("div",{className:"dsc"},u))}}s.defaultProps={darkMode:!1,checked:!1,indeterminate:!1,text:"",autoLinefeed:!1,width:"auto",maxWidth:200,fontSize:13},t.default=s},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(167),o=n(89);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(168),o=n(118),i=n(72),a=n(88),s=n(71),l=n(329),c=Object.getOwnPropertyDescriptor;t.f=n(39)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(71),o=n(45),i=n(246)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MouseButtons=t.MouseButton=void 0,function(e){e[e.Left=0]="Left",e[e.Wheel=1]="Wheel",e[e.Right=2]="Right",e[e.Back=3]="Back",e[e.Forward=4]="Forward"}(t.MouseButton||(t.MouseButton={})),function(e){e[e.Null=0]="Null",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Wheel=4]="Wheel",e[e.Back=8]="Back",e[e.Forward=16]="Forward"}(t.MouseButtons||(t.MouseButtons={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShortCutKey=t.transShortCutKeyToMac=t.unListenerShortCut=t.listenerShortCut=t.stopBubbleWhenSortCut=void 0;const r=n(84),o=n(57),i=n(8),a=["f1","ctrl+g","ctrl+d","ctrl+0","ctrl+1","ctrl+2","ctrl+3","ctrl+4","ctrl+5","ctrl+6","ctrl+7","ctrl+8","ctrl+9","ctrl++","ctrl+-","ctrl+=","ctrl+z","ctrl+y","ctrl+l","ctrl+f","ctrl+p","ctrl+r","ctrl+t","ctrl+o","alt+w","ctrl+n","ctrl+h","ctrl+f11","ctrl+arrowup","ctrl+arrowdown","ctrl+arrowright","ctrl+arrowleft","ctrl+shift+arrowup","ctrl+shift+arrowdown","shift+arrowleft","shift+arrowright","shift+arrowup","shift+arrowdown","ctrl+tab","ctrl+alt+l","ctrl+alt+¬","ctrl+alt+c","ctrl+alt+ç","ctrl+alt+r","ctrl+alt+®","ctrl+alt+t","ctrl+alt+†","ctrl+alt+m","ctrl+alt+µ","ctrl+alt+b","ctrl+alt+∫","ctrl+shift+h","ctrl+shift+u","alt+g","alt+©","alt+l","alt+¬","ctrl+s","ctrl+f4","alt+f4","ctrl+f11"];o.isMockRPD||a.push("ctrl+w");const s=["alt+arrowleft","alt+arrowright","alt+arrowup","alt+arrowdown","ctrl+[","ctrl+]","ctrl+s","ctrl+f","ctrl++","ctrl+-","ctrl+=","ctrl+0","ctrl+1","ctrl+2","ctrl+3","ctrl+4","ctrl+5","ctrl+6","ctrl+7","ctrl+8","ctrl+9","ctrl+n"],l=e=>{c(e)};function c(e){const t=r.convertEventToHotKey(e).replace(/^[ ]$/g,"");i.isInputting()?-1!==s.indexOf(t)&&e.preventDefault():u.includes(t)||(-1===a.indexOf(t)&&-1===s.indexOf(t)||e.preventDefault(),r.isControlKeyPressed(e)&&0==="1234567890".indexOf(e.key)&&e.preventDefault())}t.stopBubbleWhenSortCut=c;let u=[];t.listenerShortCut=function(e){u=e||[],window.addEventListener("keydown",l,{capture:!0})},t.unListenerShortCut=function(){u=[],window.removeEventListener("keydown",l)};const d=["⇧","⌥","⌘"];function h(e){return e.trim().split(" + ").map(e=>{const t=e.trim();return"Alt"===t?"⌥":"Ctrl"===t?"⌘":"Shift"===t?"⇧":"Delete"===t||"Backspace"===t?"⌫":"Enter"===t?"↩":t}).sort((e,t)=>{const n=d.indexOf(e),r=d.indexOf(t);return-1===n||-1===r?1:n-r}).join("")}t.transShortCutKeyToMac=h,t.getShortCutKey=function(e,t){const n=[];t&&(t.ctrlKey&&n.push("Ctrl"),t.altKey&&n.push("Alt"),t.shiftKey&&n.push("Shift"));let r=e[0].toUpperCase()+e.substring(1).toLowerCase();o.isMacOS&&("delete"!==e.toLowerCase()&&"backspace"!==e.toLowerCase()||(r="⌫"),"enter"===e.toLowerCase()&&(r="↩")),n.push(r);let i=n.join(" + ");return o.isMacOS&&(i=h(i)),i}},function(e,t,n){"use strict";var r=n(421),o=n(1189),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n0?r:n)(e)}},function(e,t,n){"use strict";var r=n(27);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberKeyDoubleClickEventHandle=t.isCharsKey=t.isDelPressed=t.isControlKeyPressed=t.convertShortCutToHotKey=t.convertEventToHotKey=void 0;const r=n(57),o=n(8);function i(e){return r.isMacOS&&e.metaKey||!r.isMacOS&&e.ctrlKey}t.convertEventToHotKey=e=>{var t;const n=[],o=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return o?(i(e)&&n.push("ctrl"),(e.altKey||"alt"===o)&&n.push("alt"),(e.shiftKey||"shift"===o)&&n.push("shift"),(e=>r.isMacOS?"backspace"===e:"delete"===e||"del"===e)(o)?n.push("delete"):(e=>-1===["control","shift","alt","meta"].indexOf(e.toLowerCase()))(e.key)&&n.push(e.key),n.join("+").toLowerCase()):""},t.convertShortCutToHotKey=e=>{const t=[];return r.isMacOS?e.replace(/ /g,"").replace("⌘","ctrl+").replace("⇧","shift+").replace("⌥","alt+").replace("⌫","delete").replace("↩","enter").toLowerCase():(e.split(" ").forEach((e,n)=>{n%2==0&&t.push(e)}),t.length>1?(t.forEach((e,n)=>{let r=e.toLowerCase();"⌘"===r?r="ctrl":"⌥"===r?r="alt":"⇧"===r?r="shift":"⌫"===r?r="delete":"↩"===r&&(r="enter"),t[n]=r}),t.join("+").toLowerCase()):e.toLowerCase())},t.isControlKeyPressed=i,t.isDelPressed=function(e){const t=e.key.toLowerCase();return r.isMacOS?"backspace"===t:"delete"===t||"del"===t},t.isCharsKey=function(e){return![{min:65,max:90},{min:48,max:57},{min:96,max:107},{min:111,max:109},{min:192,max:186},{min:222,max:219},{min:32,max:32}].some(t=>{return!((n=e)<=(r=t).max&&n>=r.min);var n,r})};t.NumberKeyDoubleClickEventHandle=class{constructor(e){this._capture=!1,this.DURATION=300,this.clickCount=0,this.isKeyPressed=!1,this.timeStamp=0,this.NUM_KEY="0123456789",this.numStr="",this.doExecute=()=>{let e=this.numStr.trim();const t=/\d+/.test(e);if(this.reset(),!t||!e.length)return;"0"===e?e="100":"00"===e?e="0":1===e.length?e+="0":"0"===e[0]&&(e=e.substr(1));const n=parseInt(e,10);this.handle&&this.handle(n)},this.handleKeyDown=e=>{if(o.isInputting()||this.isControllerKey(e))return void this.reset();const{key:t}=e;this.validateKey(t),clearTimeout(this.timeOut),this.isNumberChar(t)&&(this.timeOut=window.setTimeout(this.doExecute,this.DURATION))},this.handleKeyUp=e=>{o.isInputting()||this.isControllerKey(e)?this.reset():this.isNumberChar(e.key)&&(this.isKeyPressed=!0)},this._capture=!!e}reset(){this.numStr="",this.clickCount=0,this.isKeyPressed=!1,this.timeStamp=0,clearTimeout(this.timeOut),this.timeOut=void 0}isControllerKey(e){return e.shiftKey||e.altKey||e.ctrlKey||e.metaKey}isNumberChar(e){return-1!==this.NUM_KEY.indexOf(e)}validateKey(e){const t=this.isNumberChar(e);t||(this.timeStamp=0,this.clickCount=0,this.numStr="");const n=Date.now(),r=n-this.timeStamp<=this.DURATION;!this.isKeyPressed&&t&&(this.timeStamp=n,this.numStr=""+e,this.clickCount=1),t&&r&&this.isKeyPressed&&(this.clickCount++,this.clickCount>=2&&this.numStr.length<2&&(this.clickCount=0,this.numStr=this.numStr?`${this.numStr}${e}`:e))}get capture(){return{capture:this._capture}}addEventListener(e){this.handle=e,window.addEventListener("keydown",this.handleKeyDown,this.capture),window.addEventListener("keyup",this.handleKeyUp,this.capture)}removeEventListener(){window.removeEventListener("keydown",this.handleKeyDown,this.capture),window.removeEventListener("keyup",this.handleKeyUp,this.capture)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createArtboard=t.makeComponents=t.makeUIComponent=void 0;const r=n(6),o=n(17);let i;function a(e,t,n){const a=function(e){return i||(i={[r.CGroup]:o.UIGroupComponent,[r.CSymbol]:o.UISymbolComponent,[r.CStackPanel]:o.UIStackPanelComponent,[r.CWrapPanel]:o.UIWrapPanelComponent,[r.CGridPanel]:o.UIGridPanelComponent,[r.CContentPanel]:o.UIContentPanelComponent,[r.CListLayoutPanel]:o.UIListLayoutSealedComponent,[r.CSelectPanel]:o.UISelectPanelComponent,[r.CCanvasPanel]:o.UIPanelComponent,[r.CConnector]:o.UIConnectorComponent,[r.CCompoundPath]:o.UICompoundPathComponent,[r.CTable]:o.UITableComponent,[r.CTree]:o.UITreeComponent,[r.CTreeItem]:o.UITreeItemComponent}),i[e]}(null==e?void 0:e.type);return a?new a(e,t,n):(null==e?void 0:e.sealed)?new o.UIPanelComponent(e,t,n):(null==e?void 0:e.alias)===r.CTreeItem?new o.UITreeItemComponent(e,t,n):new o.UIComponent(e,t,n)}t.makeUIComponent=a,t.makeComponents=function(e,t,n){return function(e){const t=e.filter(e=>!!e);e.length!==t.length&&e.splice(0,e.length,...t)}(e),e.map(e=>a(e,t,n))},t.createArtboard=function(e){return{_id:e.id,appID:e.appID,background:void 0,components:[],imageURL:"",interaction:{},latestRevisionID:"",modified:!1,name:e.name,nodeID:e.nodeID,position:e.position,responsive:!1,size:e.size,type:e.type,userID:e.userID,updatedBy:e.userID,state:0,createdAt:new Date,updatedAt:new Date}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.hasInteraction=t.getClassNameAndStyleOfFragmentAction=t.getFragmentPositionTip=t.getPositionFromFragmentAction=t.getRealMode=t.isPageOrFragmentActionTypeExited=t.getSupportCommands=t.canSetInteraction=t.getSupportEventsInfo=t.getSupportEvents=t.DefaultCommandParam=t.DefaultAnimation=t.DefaultScrollCommandParam=t.DefaultContentCommandParam=t.DefaultStateCommandParam=t.DefaultVisibleCommandParam=t.DefaultRotateCommandParam=t.DefaultZoomCommandParam=t.DefaultResizeCommandParam=t.DefaultMoveCommandParam=void 0;const o=n(16),i=n(177),a=n(46),s=n(1145),l=n(20),c=n(6),u=n(412),d=[a.EventTypes.click,a.EventTypes.doubleClick,a.EventTypes.contextMenu,a.EventTypes.mouseDown,a.EventTypes.mouseUp,a.EventTypes.mouseEnter,a.EventTypes.mouseLeave,a.EventTypes.afterMove,a.EventTypes.afterResize,a.EventTypes.afterZoom,a.EventTypes.afterRotate,a.EventTypes.afterVisible,a.EventTypes.afterHide],h=[a.EventTypes.click,a.EventTypes.doubleClick,a.EventTypes.contextMenu,a.EventTypes.mouseDown,a.EventTypes.mouseUp,a.EventTypes.loaded];function p(e,t){if(!e)return[...h];if([c.CCompoundPath,c.CTable].find(e=>{var n;return e===(null===(n=null==t?void 0:t.parent)||void 0===n?void 0:n.type)}))return[];if(!t||t.isConnector||t.type===c.CSymbol)return[];const n=[...d],r=t.parent.select;return t.select?"self"===t.select.target?(n.push(a.EventTypes.checked),t.select.reversible&&n.push(a.EventTypes.unChecked,a.EventTypes.toggleCheck)):n.splice(0):r&&"child"===r.target&&n.push(a.EventTypes.checked,a.EventTypes.unChecked,a.EventTypes.toggleCheck),t.type===c.CInput&&n.push(a.EventTypes.focus,a.EventTypes.blur),t.autoSize&&n.splice(n.indexOf(a.EventTypes.afterResize),1),(t.autoSize||t.type===c.CLine)&&n.splice(n.indexOf(a.EventTypes.afterResize),1),t.type==c.CLine&&n.splice(n.indexOf(a.EventTypes.afterRotate),1),n}t.DefaultMoveCommandParam={x:0,y:0,fromCurrent:!1},t.DefaultResizeCommandParam={width:0,height:0,fromCurrent:!1,transformOrigin:"topLeft"},t.DefaultZoomCommandParam={x:1,y:1,fromCurrent:!1,transformOrigin:"center"},t.DefaultRotateCommandParam={rotate:0,fromCurrent:!1,transformOrigin:"center"},t.DefaultVisibleCommandParam={state:"toggle",forceFront:!1},t.DefaultStateCommandParam={stateID:"normal"},t.DefaultContentCommandParam={target:"@next",effect:"none"},t.DefaultScrollCommandParam={horizontal:!1,vertical:!0},t.DefaultAnimation={effect:"none",delay:0,duration:0},t.DefaultCommandParam={[a.CommandTypes.move]:t.DefaultMoveCommandParam,[a.CommandTypes.resize]:t.DefaultResizeCommandParam,[a.CommandTypes.rotation]:t.DefaultRotateCommandParam,[a.CommandTypes.zoom]:t.DefaultZoomCommandParam,[a.CommandTypes.toggleVisible]:t.DefaultVisibleCommandParam,[a.CommandTypes.toggleState]:t.DefaultStateCommandParam,[a.CommandTypes.switchContent]:t.DefaultContentCommandParam,[a.CommandTypes.scroll]:t.DefaultScrollCommandParam},t.getSupportEvents=p,t.getSupportEventsInfo=function(e){var t;const n=p(!!e,e),r=null===(t=null==e?void 0:e.libData)||void 0===t?void 0:t.interactions,o=null==r?void 0:r.transformEventName,i=n.map(e=>{const t={id:e,text:s.EventNames[e]};if(o){const n=o(e);n&&(t.text=n)}return t});return(null==r?void 0:r.sort)?r.sort(i):i},t.canSetInteraction=function(e){return p(!0,e).length>0},t.getSupportCommands=function(e){var t;const n=[a.CommandTypes.move,a.CommandTypes.zoom];return e?(e.autoSize||n.splice(1,0,a.CommandTypes.resize),e.type!==c.CLine&&n.push(a.CommandTypes.rotation),[c.CLine,c.CSymbol].includes(e.type)&&n.splice(n.indexOf(a.CommandTypes.resize),1),n.push(a.CommandTypes.toggleVisible),u.allowedToggleStateCmd(e)&&n.push(a.CommandTypes.toggleState),e.type===c.CContentPanel&&(null===(t=e.value)||void 0===t?void 0:t.length)&&n.push(a.CommandTypes.switchContent),n.push(a.CommandTypes.scroll),n):[]},t.isPageOrFragmentActionTypeExited=(e,t)=>r(void 0,void 0,void 0,(function*(){var n;const r=null===(n=null==e?void 0:e.actions)||void 0===n?void 0:n.find(e=>e.type===t);return!r||"fragment"!==t&&"page"!==t?{isExisted:!1}:{isExisted:!0,action:r}})),t.getRealMode=(e,t)=>{let n=e;if(!n)switch(t){case a.PageSkipEffects.slideToBottom:n=i.FragmentPositionMode.Top;break;case a.PageSkipEffects.slideToLeft:n=i.FragmentPositionMode.Right;break;case a.PageSkipEffects.slideToRight:n=i.FragmentPositionMode.Left;break;case a.PageSkipEffects.slideToTop:n=i.FragmentPositionMode.Bottom;break;default:n=i.FragmentPositionMode.Center}return n},t.getPositionFromFragmentAction=(e,n,r,o,a)=>{switch(t.getRealMode(r,a)){case i.FragmentPositionMode.Custom:return o||{x:0,y:0};case i.FragmentPositionMode.Left:return{x:0,y:e.size.height/2-n.size.height/2};case i.FragmentPositionMode.Right:return{x:e.size.width-n.size.width,y:e.size.height/2-n.size.height/2};case i.FragmentPositionMode.Top:return{x:e.size.width/2-n.size.width/2,y:0};case i.FragmentPositionMode.Bottom:return{x:e.size.width/2-n.size.width/2,y:e.size.height-n.size.height};case i.FragmentPositionMode.Center:return{x:e.size.width/2-n.size.width/2,y:e.size.height/2-n.size.height/2}}},t.getFragmentPositionTip=(e,n,r)=>{const o=t.getRealMode(e,n);switch(o){case i.FragmentPositionMode.Custom:return`${r.x}, ${r.y}`;case i.FragmentPositionMode.Left:case i.FragmentPositionMode.Right:case i.FragmentPositionMode.Top:case i.FragmentPositionMode.Bottom:case i.FragmentPositionMode.Center:return s.FragmentPositionModes[o];default:return`${r.x}, ${r.y}`}},t.getClassNameAndStyleOfFragmentAction=e=>{var t;const n={},r={},{animation:i,params:a,isExit:s}=e;if(a.showBackground)if(a.backgroundColor){const{color:e,type:t}=a.backgroundColor;e&&t&&o.applyFillToStyle({color:e,type:t},r)}else r.background=o.parseColorToString(Object.assign(Object.assign({},l.GrayColor),{a:.5}));r.pointerEvents="none",a.showBackground&&(r.pointerEvents="all"),n.animationTimingFunction=i.effect,n.animationDuration=(null!==(t=i.duration)&&void 0!==t?t:1)+"ms";let c=a.effect;"none"===c&&(n.animationDuration="1ms"),n.animationFillMode="forwards",s||i.duration||!["slideToLeft","slideToRight","slideToTop","slideToBottom"].includes(c)||(c+="-none");return{keyframeName:s?"revert-fragment-"+c:"fragment-"+c,bgStyle:r,animationStyle:n}},t.hasInteraction=function(e){const{interactions:t}=e;return!(!t||!Object.keys(t).length)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(389),i=n(2);function a(e){const{width:t,height:n,children:a,setRef:s,autoHeight:l,autoHeightMin:c,autoHeightMax:u,disabledScroll:d,onScroll:h,onScrollStart:p,onScrollStop:f}=e;return r.createElement(o.default,{autoHeight:l,autoHeightMin:c,autoHeightMax:u,className:i("dsm-c-scrollview",{disabled:d}),style:{width:t,height:n},autoHide:!0,renderTrackHorizontal:e=>r.createElement("div",Object.assign({},e,{className:"track-bar h-track"})),renderTrackVertical:e=>r.createElement("div",Object.assign({},e,{className:"track-bar v-track"})),ref:s,onScroll:h,onScrollStart:p,onScrollStop:f},a)}n(1491),a.defaultProps={autoHeight:!1,autoHeightMin:0,autoHeightMax:200,width:"100%",height:"100%"},t.default=a},function(e,t,n){var r=n(31);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(5),o=n(79),i=n(27);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(80),o=n(167),i=n(45),a=n(38),s=n(262);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,p=t||s;return function(t,s,f){for(var m,g,v=i(t),y=o(v),b=r(s,f,3),w=a(y.length),C=0,_=n?p(t,w):l?p(t,0):void 0;w>C;C++)if((h||C in y)&&(g=b(m=y[C],C,v),e))if(n)_[C]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:_.push(m)}else if(u)return!1;return d?-1:c||u?u:_}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPageHidden=t.getHiddenParentNode=t.getAllPageCount=t.containsNode=t.prettyPrintTree=t.getNodesByIDs=t.collapseOfTree=t.renameNodeOfTree=t.findParentNodeByID=t.findAllAncestors=t.findNodeByID=t.findNextPageNode=t.getRemoveNodeIncludeChild=t.changeTreeToArray=t.getFirstPageNode=t.getFirstPageNodeOfTree=t.parseNodesWithArtboardsToTreeByState=t.parseNodeToTreeByState=t.parseNodesToTree=t.NodeState=void 0;const r=n(272);var o;function i(e){return Object.assign({},e,{_id:e._id,name:e.name,type:e.type,index:0,appID:e.appID,artboardID:e.artboardID,path:e.path,children:[],userID:e.userID,_collapse:e._collapse||!1,hidden:e.hidden})}function a(e,t){const n=[];return e.forEach(e=>function(e,t,n){const r=i(e);if("ROOT"===e.path)r.index=t.length,n&&(r.index=e.index),t.push(r);else{const o=e.path.split(",").slice(1);o.reduce((i,a,s)=>{const l=i.find(e=>e._id===a);return s===o.length-1&&(l?(r.parent=l,r.index=l.children.length,n&&(r.index=e.index),l.hidden&&(r.hidden=!0),l.children.push(r)):(r.index=t.length,n&&(r.index=e.index),t.push(r))),l?l.children:i},t)}}(e,n,t)),n}function s(e,t){const n=e.map(e=>i(e)),r=n.filter(e=>e.state===o.Normal),s=n.filter(e=>e.state===o.Deleted),l=s.map(e=>e._id);let c=[],u=[];r.forEach(e=>{!function(e,t){const n=e.path;for(let e=0,r=t.length;e{const t=e.path.split(",").reverse()[0],n=s.find(e=>e._id===t);n&&n.children.push(e)}),s.sort((e,t)=>{const n=new Date(e.deletedAt||0).getTime();return new Date(t.deletedAt||0).getTime()-n}),{realNodes:d,tempDeleteNodes:s}}function l(e,t){for(let n=0;n{t.push(e),e.children.length&&c(e.children,t)}),t}function u(e,t,n){e.forEach(e=>{t.includes(e._id)?(n.push(e._id),e.children.length&&u(e.children,e.children.map(e=>e._id),n)):e.children.length&&u(e.children,t,n)})}function d(e,t){for(let n=0;n{t.children&&t.children.length>0&&e(t.children,n,r);const o=n.filter(e=>e.nodeID===t._id);if(o.length>0){t.stateID=t._id;const e=o.map(e=>({_id:`${t._id}$${e._id}`,name:`[${e.name||"-"}]`,type:"fragment",size:e.size,position:e.position,index:0,appID:e.appID,artboardID:e._id,path:t.path,children:[],userID:e.userID,_collapse:!1,stateID:t._id,source:"rp-fragment",imageURL:e.imageURL,imageCreatedAt:e.imageCreatedAt,updatedAt:e.updatedAt,createdAt:e.createdAt}));t.children.unshift(...e);const n={_id:t._id,pages:[t,...e]};r.push(n)}})}(n,t,r),{pageNodes:n,states:r}},t.getFirstPageNodeOfTree=l,t.getFirstPageNode=function(e){return l(a(e))},t.changeTreeToArray=c,t.getRemoveNodeIncludeChild=u,t.findNextPageNode=function(e,t,n){let r=[];if(u(e,t,r),!r.includes(n)){const t=d(e,n);if(t)return t}const o=c(e);let i=0;r.forEach(e=>{const t=o.findIndex(t=>t._id===e);i=Math.max(t,i)});let a=i+1,s=o[a];for(;s&&("page"!==(null==s?void 0:s.type)||r.includes(s._id));)++a,s=o[a];for(s||(s=o[i]);s&&("page"!==(null==s?void 0:s.type)||r.includes(s._id));)--a,s=o[a];return s},t.findNodeByID=d,t.findAllAncestors=function(e){const t=[];let n=e;for(;n.parent;)t.unshift(n.parent._id),n=n.parent;return t},t.findParentNodeByID=function e(t,n,r=null){for(let o=0;ot._id===n?Object.assign({},t,{name:r}):(t.children&&(t.children=e(t.children,n,r)),t))},t.collapseOfTree=function e(t,n,r){return t.map(t=>t._id===n?Object.assign({},t,{_collapse:r}):(t.children&&(t.children=e(t.children,n,r)),t))},t.getNodesByIDs=function e(t,n){if(0===n.length)return[];for(let r=0;rn.includes(e._id));if(o.children&&o.children.length>0){const t=e(o.children,n);if(t.length>0)return t}}return[]},t.prettyPrintTree=function e(t,n=0){t.forEach(t=>{const r=Array(n).fill(" ").join("");console.log(`${r} [${t.index}] ${t._id} ${t.name}`),t.children&&t.children.length>0&&e(t.children,n+1)})},t.containsNode=function e(t,n){if(t._id===n)return!0;if(!t.children||0===t.children.length)return!1;for(let r=0;r{e.filter(e=>3!==e.state).forEach(e=>{"page"===e.type&&t++,e.children&&n(e.children)})};return n(e),t},t.getHiddenParentNode=h,t.isPageHidden=function(e){return!!h(e).length||e.hidden}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minWindowTop=t.isMac=t.isFirefox=t.isSafari=t.isChrome=t.isIE=t.isCtrlKey=t.isMacOS=void 0;const r=window.navigator.userAgent;t.isMacOS=-1!==window.navigator.userAgent.indexOf("Macintosh"),t.isCtrlKey=e=>e.ctrlKey||e.metaKey,t.isIE=()=>{const{userAgent:e}=window.navigator;return"ActiveXObject"in window||e.indexOf("Trident")>-1},t.isChrome=()=>/Chrome/.test(r),t.isSafari=()=>/Safari/.test(r)&&!t.isChrome(),t.isFirefox=()=>/Firefox/.test(r),t.isMac=-1!==r.indexOf("Macintosh");const o=r.includes("mockRPD"),i=-1!==r.indexOf("LarkLocale");t.minWindowTop=o?t.isMacOS?24:40:i?36:0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderClipFill=t.renderGradient=t.renderRadialGradient=t.renderLinearGradient=void 0;const r=n(0),o=n(32),i=n(16),a=n(8);t.renderLinearGradient=(e,t,n)=>{const{colorStops:o,direction:s}=t,{x1:l,x2:c,y1:u,y2:d}=s||{x1:0,x2:0,y1:0,y2:1},h=i.fullColorStops(o),p=a.max(n.width,n.height);if(!p)return null;const f=n.width/p,m=n.height/p;return r.createElement("defs",null,r.createElement("linearGradient",{id:""+e,x1:l*f,x2:c*f,y1:u*m,y2:d*m},h.sort((e,t)=>(e.point||0)-(t.point||0)).map((e,t)=>r.createElement("stop",{key:""+t,offset:(e.point||0)+"%",stopColor:i.parseColorToString(e.color)}))))},t.renderRadialGradient=(e,t,n)=>{const{colorStops:o,to:a,from:s,angle:l,widthRatio:c}=t,u=i.fullColorStops(o),{x:d,y:h}=s||{x:.5,y:.5,r:0},{x:p,y:f,r:m}=a||{x:.5,y:.5,r:.5},g=`translate(${d}, ${h}),\n scale(${n.height/n.width}, 1),\n rotate(${l||0}),\n scale(${c||1}, 1),\n translate(${-d}, ${-h})`;return r.createElement("defs",null,r.createElement("radialGradient",{id:""+e,fx:d,fy:h,cx:p,cy:f,r:m,gradientTransform:g},u.sort((e,t)=>(e.point||0)-(t.point||0)).map((e,t)=>r.createElement("stop",{key:""+t,offset:(e.point||0)+"%",stopColor:i.parseColorToString(e.color)}))))},t.renderGradient=(e,n,r)=>{if(e){const{type:i,color:a}=e;if(i===o.FillType.linear)return t.renderLinearGradient(n,a,r);if(i===o.FillType.radial)return t.renderRadialGradient(n,a,r)}return null},t.renderClipFill=(e,n)=>{const{id:i,type:a,size:u,fill:d,scale:h,transition:p,transform:f,offset:m}=e;let g;const v=`${a}-fill-${i}`,y=`url(#${v})`,b=`${a}-clip-path-${i}`;if(d&&d.disabled)return null;switch(null==d?void 0:d.type){case o.FillType.linear:g=l(n,y,b,u,d.color,h,p,f,m);break;case o.FillType.radial:g=c(n,y,b,u,d.color,h,p,f,m);break;case o.FillType.solid:g=s(n,b,u,d.color,h,p,f,m);break;default:return null}return r.createElement(r.Fragment,null,t.renderGradient(d,v,u),g)};const s=(e,t,n,o,a=1,s,l,c)=>{const u=i.parseColorToString(o);return r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("clipPath",{id:""+t},e)),r.createElement("g",{style:{clipPath:`url(#${t})`,transform:l}},r.createElement("rect",{x:(null==c?void 0:c.x)||0,y:(null==c?void 0:c.y)||0,width:n.width*a,height:n.height*a,fill:u,style:{transition:s,MozTransition:s,WebkitTransition:s}})))},l=(e,t,n,o,i,s=1,l,c,u)=>{const d=a.max(o.width,o.height);return r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("clipPath",{id:""+n},e)),r.createElement("g",{style:{clipPath:`url(#${n})`,transform:c}},r.createElement("rect",{x:(null==u?void 0:u.x)||0,y:(null==u?void 0:u.y)||0,width:d*s,height:d*s,fill:t,style:{transition:l,MozTransition:l,WebkitTransition:l}})))},c=(e,t,n,o,a,s=1,l,c,u)=>{const d=i.reviseRadialGradient(a,o),{colorStops:h}=d;return i.fullColorStops(h).length?r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("clipPath",{id:n},e)),r.createElement("g",{style:{clipPath:`url(#${n})`,transform:c}},r.createElement("rect",{x:(null==u?void 0:u.x)||0,y:(null==u?void 0:u.y)||0,width:o.width*s,height:o.height*s,fill:t,style:{transition:l,MozTransition:l,WebkitTransition:l}}))):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getViewBoundsOfComponentsWithArtboard=t.getViewBoundsOfComponents=t.getViewPositionOfComponentsData=void 0;const r=n(52),o=n(28);function i(e){return r.getBoundsOfRotatedRectangle({position:e.position,size:e.size,rotate:e.rotate||0})}t.getViewPositionOfComponentsData=function(e){if(0===e.length)return null;const t=i(e[0]),n={x:t.left,y:t.top};return e.length<=1?n:e.reduce((e,t)=>{const n=i(t);return{x:Math.min(e.x,n.left),y:Math.min(e.y,n.top)}},n)},t.getViewBoundsOfComponents=function(e){return 0===e.length?null:o.union(...e.map(e=>e.getViewBoundsInParent()))},t.getViewBoundsOfComponentsWithArtboard=function(e){return 0===e.length?null:o.union(...e.map(e=>e.getViewBoundsInArtboard()))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modifyPathWithOffset=t.getInteractionOfTwoSpecialLine=t.resetConnectPatchWhenResize=t.resetConnectPatch=t.modifyCustomPath=t.modifyConnectPatch=t.updateConnectCompWhenEndMove=t.updateConnectComponentPatches=t.updateConnectByDiff=t.removeConnectWhenDelete=t.getInnerOrAroundConnect=t.shouldModifyEndPointForDirection=t.shouldModifyStartPointForDirection=t.autoAdsorptionWithDirection=t.autoAdsorption=t.judgeExtendWithPut=t.isSamePoint=t.removePathPointByLine=t.getDirectionByPoints=t.getManhattanDistanceOfTwoPoints=t.getMidpointWithPath=t.getPathControlPoints=t.parseLineStr=t.modifyPathWhenRender=t.offsetPathWhenRender=t.getPathStartOrEndDirection=t.getPathStartOrEndTwoPoint=t.getPointByComponent=t.getSearchPointByRealPoint=t.offsetPointArray=t.convertPointsToArray=t.convertPointArrayToPoint=t.getSizeByPaths=t.getPositionByPaths=t.getSearchPoint=t.isAngleInRange=t.getEndPosition=t.getAllEndPosition=t.getRealPoint=t.searchPathBySelf=t.searchPathByPlanner=t.getPathPlannerOfContainer=t.DELTA=void 0;const r=n(7),o=n(8),i=n(28),a=n(12),s=n(34),l=n(6),c=n(52),u=n(35),d=n(408),h=n(1116);function p(e){const{size:t,rotate:n}=e,o={left:270,top:0,right:90,bottom:180};return r.mapValues(o,(e,r)=>f((o[r]+n)%360,t))}function f(e,t){const n=Math.atan(t.width/t.height)/Math.PI*180,r={left:[270-n,360-n],top:[360-n,90-n],right:[90-n,90+n],bottom:[90+n,270-n]};return Object.entries(r).reduce((t,[n,r])=>(m(e%360,r)&&(t=n),t),"left")}function m(e,t){const[n,r]=t;return n=0&&e<=r||e>n&&e<=360}function g(e){const t=e.filter((e,t)=>t%2==0),n=e.filter((e,t)=>t%2!=0);if(!t.length||!n.length)return{minPoint:{x:0,y:0},maxPoint:{x:0,y:0}};let r=Math.min(...t),o=Math.max(...t);return{minPoint:{x:r,y:Math.min(...n)},maxPoint:{x:o,y:Math.max(...n)}}}function v(e,t={offsetX:0,offsetY:0}){const n=[],{offsetX:r,offsetY:o}=t;for(let t=0;t=0;n--)t.push(e[2*n],e[2*n+1]);return t}function w(e,t){const{position:n,size:r,rotate:i}=e,[a,s,l,u]=c.getAllMiddlePointByCornerPoint(c.getRectPoints(n,r,i));switch(t){case"left":return{x:o.round(u.x),y:o.round(u.y)};case"top":return{x:o.round(a.x),y:o.round(a.y)};case"right":return{x:o.round(s.x),y:o.round(s.y)};case"bottom":return{x:o.round(l.x),y:o.round(l.y)};default:return{x:0,y:0}}}function C(e,t=!0){var n,r,o,i;const a=t?e:b(e);return{point1:{x:null!==(n=a[0])&&void 0!==n?n:0,y:null!==(r=a[1])&&void 0!==r?r:0},point2:{x:null!==(o=a[2])&&void 0!==o?o:0,y:null!==(i=a[3])&&void 0!==i?i:0}}}function _(e,t=!0){if(e.length>=4){const{point1:n,point2:r}=C(e,t);return T(n,r)}return""}function x(e,t,n=!0){const r=e.length,o=_(e,n);["arrow-down","arrow-up"].includes(o)?n?e[1]-=t:e[r-1]-=t:["arrow-left","arrow-right"].includes(o)&&(n?e[0]-=t:e[r-2]-=t)}function S(e,t){let n=[];const r=t%2/2;return n=e.map(e=>e+r),x(n,r),x(n,r,!1),n}function k(e){const t=[...e],n={x:t[0],y:t[1]},r={x:t[2],y:t[3]},o={x:t[4],y:t[5]};(A(n,r,o)||M(n,r,o))&&t.splice(2,2);const i=t.length,a={x:t[i-2],y:t[i-1]},s={x:t[i-4],y:t[i-3]},l={x:t[i-6],y:t[i-5]};return(A(a,s,l)||M(a,s,l))&&t.splice(i-4,2),t}function P(e,t){return o.abs(e.x-t.x)+o.abs(e.y-t.y)}function T(e,t){return o.sameNumber(e.x,t.x)&&o.sameNumber(e.y,t.y)?"arrow-center":o.sameNumber(e.x,t.x)?e.yt.x?"arrow-left":"arrow-right":""}function E(e,t){const n=v([...e]),r=n.length;let i=[],a=r-((null==t?void 0:t.endCursor)||1),s=(null==t?void 0:t.beginCursor)||0,l=s+1,c="",u=[];for(;sa){i.push(...u.slice(1,u.length-1));break}const e=n[s],t=n[l];e.x!==t.x||c||(c="vertical",u.push(s)),e.y!==t.y||c||(c="horizontal",u.push(s)),"vertical"===c&&o.sameNumber(e.x,t.x)||"horizontal"===c&&o.sameNumber(e.y,t.y)?(u.push(l),l++):(u.length>2?(s=u[u.length-1],i.push(...u.slice(1,u.length-1))):s++,c="",l=s+1,u=[])}let d=n.filter((e,t)=>!i.includes(t));(null==t?void 0:t.removeSamePoint)&&(d=function(e,t=0){const n=[...e];let r=t,o=r+1,i=[];for(;r1&&o!i.includes(t))}(d));const h=[];return d.forEach(e=>{h.push(e.x,e.y)}),h}function O(e,n){return o.sameNumber(P(e,n),t.DELTA)}function M(e,t,n){const r=T(e,t),o=T(e,n);if(a=o,"arrow-down"===(i=r)&&"arrow-down"===a||"arrow-up"===i&&"arrow-up"===a||"arrow-left"===i&&"arrow-left"===a||"arrow-right"===i&&"arrow-right"===a||""===i&&""===a||"arrow-center"===i||"arrow-center"===a){if(P(e,t)>=P(e,n))return!0}var i,a;return!1}function A(e,t,n){const r=T(e,t),o=T(e,n);return a=o,"arrow-down"===(i=r)&&"arrow-up"===a||"arrow-up"===i&&"arrow-down"===a||"arrow-left"===i&&"arrow-right"===a||"arrow-right"===i&&"arrow-left"===a;var i,a}function D(e,n){let r={x:e.x,y:e.y};return e.x===n.x&&e.yn.y&&(r.y-=t.DELTA),e.y===n.y&&e.xn.x&&(r.x-=t.DELTA),r}function I(e,t,n=0){return o.sameNumber(e.x,t.x,n)&&o.sameNumber(e.y,t.y,n)}function L(e,t,n=!1){const r=[],o=[],i=e.components.filter(e=>{if(e.isConnector){const i=e,{startPoint:a,endPoint:s}=i.value;if(t.includes(e.id))return o.push(i),!1;if(n&&t.includes(a.id)&&o.push(i),!n&&t.includes(a.id)&&t.includes(s.id))o.push(i);else{if(t.includes(a.id))return r.push({connectId:e.id,compId:a.id,isStart:!0}),!0;if(t.includes(s.id))return r.push({connectId:e.id,compId:s.id,isStart:!1}),!0}}}),a=[],s=i.filter(e=>{if(e.isConnector&&e.isAloneLineAfterDelete([...t]))return!0;a.push(e)});return{innerConnectComps:o,roundConnectComps:i,roundMapInfo:r,aloneConnectComps:s,notAloneConnectComps:a}}function N(e,t,n,r,o=!1,i){const s={do:{},undo:{}};return t.forEach(t=>{const{startPoint:l,endPoint:c,path:u}=t.value,{newStart:d,newEnd:h}=function(e,t,n,r,o){const{startPoint:i,endPoint:a}=t.value,s=Object.assign({},i),l=Object.assign({},a),c=o.find(e=>e.connectId===t.id&&e.isStart),u=o.find(e=>e.connectId===t.id&&!e.isStart);if(c&&c.isStart){const t=e.components.find(e=>e.id===a.id);if(t){if(!n.includes(a.id)){const e=w(t,a.direction);l.x=e.x+r.offsetX,l.y=e.y+r.offsetY}}else l.id=a.id,l.direction=a.direction,l.x=a.x+r.offsetX,l.y=a.y+r.offsetY}if(u){const t=e.components.find(e=>e.id===u.compId);if(!u.isStart&&t){const e=w(t,a.direction);l.x=e.x,l.y=e.y}}return{newStart:s,newEnd:l}}(e,t,n,r,i);if(!o&&(null==u?void 0:u.length)){const e=y(u,r);s.do[t.id]=[a.Ops.replace("/value",{startPoint:d,endPoint:h,path:e})],s.undo[t.id]=[a.Ops.replace("/value",{startPoint:l,endPoint:c,path:u})]}else s.do[t.id]=[a.Ops.replace("/value",{startPoint:d,endPoint:h})],s.undo[t.id]=[a.Ops.replace("/value",{startPoint:l,endPoint:c})]}),s}function j(e,t,n){const{startPoint:r,endPoint:o,path:s}=e.value,l=i.offsetPoint(e.getStartPoint(!0),t),c=i.offsetPoint(e.getEndPoint(!0),t),u=Object.assign({},r,l),d=Object.assign({},o,c),h=(null==s?void 0:s.length)?y(s,{offsetX:t.x,offsetY:t.y}):[],p=(null==s?void 0:s.length)?{startPoint:u,endPoint:d,path:h}:{startPoint:u,endPoint:d};n.do[e.id]=[a.Ops.replace("/value",p)],n.undo[e.id]=[a.Ops.replace("/value",e.value)]}function R(e,n,r){let i=[...e];if(e.length<6)return e;"start"!==r&&(i=b(e));const{isExtendACorner:a,isLineCorner:s,originStartPoint:l,originCornerPoint:c}=function(e){const t=e.length,n={x:e[0],y:e[1]},r={x:e[2],y:e[3]};let i={x:e[4],y:e[5]};const a={x:e[t-2],y:e[t-1]};let s=!1;if(8===e.length&&T(n,r)===T(n,a)){s=!0;const e=T(n,a);"arrow-left"===e?i={x:o.round(a.x+(n.x-a.x)/2),y:a.y}:"arrow-up"===e?i={x:a.x,y:o.round(a.y+(n.y-a.y)/2)}:"arrow-right"===e?i={x:o.round(n.x+(a.x-n.x)/2),y:n.y}:"arrow-down"===e?i={x:n.x,y:o.round(n.y+(a.y-n.y)/2)}:s=!1}let l=!1;if(!T(n,i)){const t={x:e[2],y:e[3]};l=!0,i=Object.assign({},t)}return{isExtendACorner:l,isLineCorner:s,originStartPoint:n,originCornerPoint:i,originEndPoint:a}}(i),u=T(l,c);return"arrow-left"===u?n.x>c.x+5?(i[0]=n.x,i[1]=n.y,i[2]=n.x-t.DELTA,i[3]=n.y,a?i.splice(4,0,c.x,n.y):s?i.splice(4,0,c.x,n.y,c.x,c.y):i[5]=n.y):i=[]:"arrow-up"===u?n.y>c.y+5?(i[0]=n.x,i[1]=n.y,i[2]=n.x,i[3]=n.y-t.DELTA,a?i.splice(4,0,n.x,c.y):s?i.splice(4,0,n.x,c.y,c.x,c.y):i[4]=n.x):i=[]:"arrow-right"===u?n.x!e.isConnector).map(e=>e.getViewBoundsInParent()));return{bigBounds:i.inflate(n,{left:3*t.DELTA,top:3*t.DELTA})}}(e),a=function(e){let t=1;const n=o.round(o.max(e.right,e.top)).toString().length;return n>3&&(t=Math.pow(.1,n-3)),t}(r),s=i.scale(r,a),c={width:s.width+2*t.DELTA,height:s.height+2*t.DELTA},u=new Array(o.round(c.width*c.height)).fill(0),p=d(u,[o.round(c.width),o.round(c.height)]);return function(e,t){t.forEach(t=>{for(let n=t.left;n<=t.right;n++)e.set(n,t.top,1),e.set(n,t.bottom,1);for(let n=t.top;n<=t.bottom;n++)e.set(t.left,n,1),e.set(t.right,n,1)})}(p,e.components.filter(e=>!e.isConnector&&e.type!==l.CLine&&!e.locked&&(!n||(null==n?void 0:n.includes(e.id)))).map(e=>{const n=e.getViewBoundsInParent(),s=i.offsetBounds(n,{left:-r.left,top:-r.top}),l=i.scale(s,a),c=t.DELTA*a;return{left:o.max(o.round(l.left-c+1+t.DELTA),0),right:o.max(o.round(l.right+c-1+t.DELTA),0),top:o.max(o.round(l.top-c+1+t.DELTA),0),bottom:o.max(o.round(l.bottom+c-1+t.DELTA),0)}})),{planner:h(p),bigBounds:r,scaleNum:a}},t.searchPathByPlanner=function(e,n,r,i,a){let s=[];if(o.sameNumber(e.x,n.x)&&o.sameNumber(e.y,n.y))return s;const l={x:o.round((e.x-i.left)*a),y:o.round((e.y-i.top)*a)},c={x:o.round((n.x-i.left)*a),y:o.round((n.y-i.top)*a)};if(o.sameNumber(l.x,c.x)&&o.sameNumber(l.y,c.y))return s;r.search(l.x+t.DELTA,l.y+t.DELTA,c.x+t.DELTA,c.y+t.DELTA,s),s=E(s);const u=s.length;if(s.length>=4){const r=o.sameNumber(s[0],s[2])?"vertical":"horizontal",l=o.sameNumber(s[u-4],s[u-2])?"vertical":"horizontal";s=s.map((s,c)=>{if(1!==a){if(c===u-2)return n.x;if(c===u-1)return n.y;if("horizontal"===l&&c===u-3)return n.y;if("vertical"===l&&c===u-4)return n.x;if(0===c)return e.x;if(1===c)return e.y;if("horizontal"===r&&3===c)return e.y;if("vertical"===r&&2===c)return e.x}return c%2==0?o.round((s-t.DELTA)/a+i.left):o.round((s-t.DELTA)/a+i.top)})}const d=v(s);return 1!==a&&d.length&&!I(d[0],n)&&s.unshift(e.x,e.y),s},t.searchPathBySelf=function(e,t){const n={x:t.x,y:e.y};let r=[e.x,e.y,n.x,n.y,t.x,t.y];return(i.isEqualPoint(e,n)||i.isEqualPoint(n,t))&&(r=[e.x,e.y,t.x,t.y]),r},t.getRealPoint=function(e,t){if(!t.id)return{x:o.round(t.x||0),y:o.round(t.y||0)};const n=e.components.find(e=>e.id===t.id);if(!n)return{x:t.x||0,y:t.y||0};const{position:r,size:i}=n,a=c.getRectPoints(r,i,n.rotate),[s,l,u,d]=c.getAllMiddlePointByCornerPoint(a);switch(t.direction){case"left":return{x:o.round(d.x),y:o.round(d.y)};case"top":return{x:o.round(s.x),y:o.round(s.y)};case"right":return{x:o.round(l.x),y:o.round(l.y)};case"bottom":return{x:o.round(u.x),y:o.round(u.y)}}return{x:o.round(t.x||0),y:o.round(t.y||0)}},t.getAllEndPosition=p,t.getEndPosition=f,t.isAngleInRange=m,t.getSearchPoint=function(e,n){if(!n.id)return{x:o.round(n.x||0),y:o.round(n.y||0)};const r=e.components.find(e=>e.id===n.id);if(!r)return{x:n.x||0,y:n.y||0};const{position:i,size:a,rotate:s}=r,[l,u,d,h]=c.getAllMiddlePointByCornerPoint(c.getRectPoints(i,a,s)),f=p(r),m={left:{x:-t.DELTA,y:0},top:{x:0,y:-t.DELTA},right:{x:t.DELTA,y:0},bottom:{x:0,y:t.DELTA}};switch(n.direction){case"left":{const e=m[f.left];return{x:o.round(h.x+e.x),y:o.round(h.y+e.y)}}case"top":{const e=m[f.top];return{x:o.round(l.x+e.x),y:o.round(l.y+e.y)}}case"right":{const e=m[f.right];return{x:o.round(u.x+e.x),y:o.round(u.y+e.y)}}case"bottom":{const e=m[f.bottom];return{x:o.round(d.x+e.x),y:o.round(d.y+e.y)}}}return{x:o.round(n.x||0),y:o.round(n.y||0)}},t.getPositionByPaths=function(e){const{minPoint:t}=g(e);return{x:t.x,y:t.y}},t.getSizeByPaths=function(e){const{minPoint:t,maxPoint:n}=g(e);return{width:o.max(n.x-t.x,1),height:o.max(n.y-t.y,1)}},t.convertPointArrayToPoint=v,t.convertPointsToArray=function(e){return e.reduce((e,t)=>(e.push(t.x,t.y),e),[])},t.offsetPointArray=y,t.getSearchPointByRealPoint=function(e,n){switch(n){case"left":return{x:e.x-t.DELTA,y:e.y};case"top":return{x:e.x,y:e.y-t.DELTA};case"right":return{x:e.x+t.DELTA,y:e.y};case"bottom":return{x:e.x,y:e.y+t.DELTA};default:return e}},t.getPointByComponent=w,t.getPathStartOrEndTwoPoint=C,t.getPathStartOrEndDirection=_,t.offsetPathWhenRender=S,t.modifyPathWhenRender=k,t.parseLineStr=function(e,t,n,r,o){let i=S(e,t);i=function(e,t,n,r){const{startArrow:o,endArrow:i}=t,a=[...e];if(o&&(a[0]+=n.width,a[1]+=n.height),i){const e=a.length;a[e-2]+=r.width,a[e-1]+=r.height}return a}(i,n,r,o),i=k(i);const a=[];for(let e=0;e=i){s=i-n[a],a++;break}a++}const l=r[a],c=r[a+1],u=Object.assign({},l);return l&&c&&l.x===c.x&&(u.y=c.y>l.y?l.y+s:l.y-s),l&&c&&l.y===c.y&&(u.x=c.x>l.x?l.x+s:l.x-s),u||{x:0,y:0}},t.getManhattanDistanceOfTwoPoints=P,t.getDirectionByPoints=T,t.removePathPointByLine=E,t.isSamePoint=I,t.judgeExtendWithPut=function(e){const n=[...e],r={x:e[0],y:e[1]},o={x:e[2],y:e[3]},i=e.length,a={x:e[i-2],y:e[i-1]},s={x:e[i-4],y:e[i-3]};if(P(a,s)>t.DELTA){const e=D(a,s);n.splice(i-2,0,e.x,e.y)}if(P(r,o)>t.DELTA){const e=D(r,o);n.splice(2,0,e.x,e.y)}return n},t.autoAdsorption=function(e,t,n,r=5){let i=[...e];const a="vertical"===n?1:0,s=2*(t-1)+a,l=2*(t+2)+a,c=2*t+a,u=2*(t+1)+a;if(t>1&&t+2=8){const t={x:e[i-2],y:e[i-1]},a={x:e[i-4],y:e[i-3]},s={x:e[i-6],y:e[i-5]},l={x:e[i-8],y:e[i-7]},c=O(t,a);(c&&P(t,s)=8){const t={x:e[0],y:e[1]},i={x:e[2],y:e[3]},a={x:e[4],y:e[5]},s={x:e[6],y:e[7]},l=O(t,i);(l&&P(t,a)=6){const r={x:t[0],y:t[1]},o={x:t[2],y:t[3]},i={x:t[4],y:t[5]},a=e.getStartDirection();if(T(r,o)===T(o,i)&&(("left"===a||"right"===a)&&"horizontal"===n||("top"===a||"bottom"===a)&&"vertical"===n))return!0}return!1},t.shouldModifyEndPointForDirection=function(e,t,n){const r=t.length;if(r>=6){const o={x:t[r-2],y:t[r-1]},i={x:t[r-4],y:t[r-3]},a={x:t[r-6],y:t[r-5]},s=e.getEndDirection();if(T(o,i)===T(o,a)&&(("left"===s||"right"===s)&&"horizontal"===n||("top"===s||"bottom"===s)&&"vertical"===n))return!0}return!1},t.getInnerOrAroundConnect=L,t.removeConnectWhenDelete=function(e,t){let n={do:{},undo:{}};const r=t.filter(e=>!e.isConnector).map(e=>e.id),{innerConnectComps:o,aloneConnectComps:i}=L(e,r),s=[],l=[];return[...o,...i].forEach(t=>{s.push(t.id);const n=e.components.findIndex(e=>e.id===t.id);l.push(a.Ops.addChildren(""+n,[t.toJSON()]))}),s.length&&(n.do[e.id]=[a.Ops.removeChildren(s)],n.undo[e.id]=[...l]),n},t.updateConnectByDiff=function(e,t,n,r=!1,o=!1){const i=t.filter(e=>!e.isConnector).map(e=>e.id),a=t.map(e=>e.id),{innerConnectComps:s,roundConnectComps:l,roundMapInfo:c}=L(e,i,r),d=N(e,s,a,n,!1,c),h=N(e,l,a,o?{offsetX:0,offsetY:0}:n,!0,c);return u.coverPatches(h,d)},t.updateConnectComponentPatches=function(e,t,n,o={x:0,y:0},s){const l=t.map(e=>e.id),{innerConnectComps:c,roundConnectComps:u}=L(e,l,!1);if(u.forEach(e=>{const r=t.find(t=>t.id===e.getStartCompID()||t.id===e.getEndCompID());r&&z(e,r,n)}),c.forEach(s=>{const l=s.getStartCompID(),c=s.getEndCompID(),u=t.find(e=>e.id===l),d=t.find(e=>e.id===c),h=e.components.find(e=>e.id===l),p=e.components.find(e=>e.id===c),f={x:0,y:0};u&&h&&(f.x=u.position.x-h.position.x,f.y=u.position.y-h.position.y);const m={x:0,y:0};d&&p&&(m.x=d.position.x-p.position.x,m.y=d.position.y-p.position.y),u&&h&&!p?j(s,i.offsetPoint(f,{x:0-o.x,y:0-o.y}),n):d&&!h&&p?j(s,i.offsetPoint(m,{x:0-o.x,y:0-o.y}),n):I(f,m)&&h&&p&&r.isEqual(null==u?void 0:u.size,null==h?void 0:h.size)&&r.isEqual(null==d?void 0:d.size,null==p?void 0:p.size)?j(s,i.offsetPoint(f,{x:0-o.x,y:0-o.y}),n):function(e,t,n){const{startPoint:r,endPoint:o}=e.value,i=t.find(t=>t.id===e.getStartCompID()),s=t.find(t=>t.id===e.getEndCompID()),l=i&&w(i,r.direction),c=s&&w(s,o.direction);n.do[e.id]=[a.Ops.replace("/value",{startPoint:Object.assign({},r,l),endPoint:Object.assign({},o,c)})],n.undo[e.id]=[a.Ops.replace("/value",e.value)]}(s,t,n)}),s){const t=[...c,...u].map(e=>e.id);e.components.filter(e=>e.isConnector&&!t.includes(e.id)).forEach(e=>{j(e,{x:0-o.x,y:0-o.y},n)})}},t.updateConnectCompWhenEndMove=function(e,t){let n={do:{},undo:{}};return e.forEach(e=>{var r;e.isConnector&&(null===(r=t[e.id])||void 0===r?void 0:r.value)&&(n.do[e.id]=[a.Ops.replace("/value",t[e.id].value)],n.undo[e.id]=[a.Ops.replace("/value",e.$data.value)])}),n},t.modifyConnectPatch=j,t.modifyCustomPath=R,t.resetConnectPatch=z,t.resetConnectPatchWhenResize=function(e,t,n){const r={do:{},undo:{}},o=t.filter(e=>!e.isConnector).map(e=>e.id),{innerConnectComps:i}=L(e,o);return i.forEach(e=>{const{startPoint:t,endPoint:o}=e.value,i=n.find(e=>e.id===t.id||e.id===o.id);i&&z(e,i,r)}),r},t.getInteractionOfTwoSpecialLine=function(e,t){const n=e[0].x===e[1].x?"vertical":"horizontal",r=t[0].x===t[1].x?"vertical":"horizontal";if("horizontal"===n&&"horizontal"===r){if(e[0].y!==t[0].y)return;{const{minX:n,maxX:r}=s.getMinMaxXY(e),{minX:o,maxX:i}=s.getMinMaxXY(t);if(n>i||ro&&rn&&io)return[{x:o,y:t[0].y}];if(r>i&&n=o&&r<=l&&r>=a?[{x:r,y:n}]:void 0}{const n=e[0].y,r=t[0].x,{minY:o,maxY:i}=s.getMinMaxXY(t),{minX:a,maxX:l}=s.getMinMaxXY(e);return n<=i&&n>=o&&r<=l&&r>=a?[{x:r,y:n}]:void 0}}if(e[0].x!==t[0].x)return;{const{minY:n,maxY:r}=s.getMinMaxXY(e),{minY:o,maxY:i}=s.getMinMaxXY(t);if(n>i||ro&&rr&&io)return[{x:t[0].x,y:o}];if(r>i&&nthis.originParams[e],this.saveCacheOriginParams=(e,t)=>{this.originParams[e]=t},this.initAnimationOperation=()=>{const{animate:e}=this.command;return o.Ops.replace("./_animation",{timing:e.effect,delay:e.delay,duration:e.duration,animationIterationCount:e.loop?"infinite":1})},this.refreshSelf=()=>{const e=this._worker.docTree.get(this.command.target.id);e&&(this.command.target=e)},this.delay=(e,t)=>{window.setTimeout(()=>{e()},t)},this.cleanAnimation=()=>{const{target:{id:e,ownerArtboardID:t,_animation:n}}=this.command;n&&this.patch({[t]:{[e]:[o.Ops.replace("/_animation",void 0)]}})},this.finish=()=>{this.cleanAnimation(),this.onFinish&&this.onFinish(this)},this.patch=e=>{var t;null===(t=this.workManager)||void 0===t||t.patch(e)},this._worker=e,this.doc=e.doc,this.command=t}get canRevert(){return!this.command.params.disabledAutoRevert}execute(e){if(e&&!this.canRevert)return;!e&&this.cashOriginParams();const t=(e?this.revert:this.run).bind(this);this.delay(()=>{t(),this.delay(this.finish,this.command.animate.duration)},this.command.animate.delay||0)}startSubWorker(){var e,t;this.afterEvent&&this.afterTrigger&&(null===(e=this.workManager)||void 0===e?void 0:e.startWorker)&&this.fulfilled&&(this.fulfilled=!1,null===(t=this.workManager)||void 0===t||t.startWorker(this.afterTrigger,this.afterEvent))}get afterTrigger(){return this.command.target}getCurrentPath(e){const t=this.command.target,{currentStateID:n}=t,o=t.states[null!=n?n:""];if(!n||n===i.PredefinedStates.normal||!o)return"/"+e;const a=e.split("/");let s=!r.isUndefined(o),l=o;for(let e=0;en;)o[n]=t[n++];return o},Oe=function(e,t,n){H(e,t,{get:function(){return this._d[n]}})},Me=function(e){var t,n,r,o,i,a,s=_(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,h=T(s);if(null!=h&&!x(h)){for(a=h.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,n=m(s.length),o=Pe(this,n);n>t;t++)o[t]=d?u(s[t],t):s[t];return o},Ae=function(){for(var e=0,t=arguments.length,n=Pe(this,t);t>e;)n[e]=arguments[e++];return n},De=!!U&&i((function(){pe.call(new U(1))})),Ie=function(){return pe.apply(De?de.call(ke(this)):ke(this),arguments)},Le={copyWithin:function(e,t){return z.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return R.apply(ke(this),arguments)},filter:function(e){return Te(this,X(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){$(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return Ce(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return le.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ue.call(ke(this),e)},subarray:function(e,t){var n=ke(this),r=n.length,o=v(e,r);return new(D(n,n[ve]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-o))}},Ne=function(e,t){return Te(this,de.call(ke(this),e,t))},je=function(e){ke(this);var t=Se(arguments[1],1),n=this.length,r=_(e),o=m(r.length),i=0;if(o+t>n)throw Y("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,_e)}(this,n,e)},enumerable:!0})};b?(f=n((function(e,n,r,o){u(e,f,c,"_d");var i,a,s,l,d=0,p=0;if(C(n)){if(!(n instanceof G||"ArrayBuffer"==(l=w(n))||"SharedArrayBuffer"==l))return be in n?Ee(f,n):Me.call(f,n);i=n,p=Se(r,t);var v=n.byteLength;if(void 0===o){if(v%t)throw Y("Wrong length!");if((a=v-p)<0)throw Y("Wrong length!")}else if((a=m(o)*t)+p>v)throw Y("Wrong length!");s=a/t}else s=g(n),i=new G(a=s*t);for(h(e,"_d",{b:i,o:p,l:a,e:s,v:new q(i)});d1)for(var n=1;n{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}),r},t.includeEnum=function(e,t){if("object"==typeof e)for(let n in e)if(e[n]===t)return!0;return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextFormatExPropertyName=void 0,t.TextFormatExPropertyName="textFormat";var r=n(48);Object.defineProperty(t,"FontStyle",{enumerable:!0,get:function(){return r.FontStyle}}),Object.defineProperty(t,"FontStyleName",{enumerable:!0,get:function(){return r.FontStyleName}}),Object.defineProperty(t,"TextAlign",{enumerable:!0,get:function(){return r.TextAlign}}),Object.defineProperty(t,"TextPropertyName",{enumerable:!0,get:function(){return r.TextPropertyName}}),Object.defineProperty(t,"TextTransform",{enumerable:!0,get:function(){return r.TextTransform}}),Object.defineProperty(t,"VerticalAlign",{enumerable:!0,get:function(){return r.VerticalAlign}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LinePropertyName=t.PointOrder=t.LinePointType=void 0,function(e){e.none="none",e.solidArrow="solidArrow",e.hollowArrow="hollowArrow",e.solidDot="solidDot",e.hollowDot="hollowDot",e.solidCube="solidCube",e.hollowCube="hollowCube",e.perpendicular="perpendicular"}(r=t.LinePointType||(t.LinePointType={})),t.PointOrder=[r.solidArrow,r.hollowArrow,r.solidDot,r.hollowDot,r.solidCube,r.hollowCube,r.perpendicular],t.LinePropertyName="line"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);t.default=r.createContext({})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasPanelConfig=t.makeCanvas=t.DefaultCanvasData=void 0;const r=n(0),o=n(7),i=n(2),a=n(22),s=n(32),l=n(14),c=n(20),u=n(106),d=n(4),h=n(33),p=n(6),f=n(40),m=n(6),g=n(10),v=n(115);n(1072);const y=n(8);t.DefaultCanvasData={size:{width:300,height:300},layout:{responsive:!1,auto:!0,fixedWidth:!1,fixedHeight:!1,horizontal:f.HorizontalAlign.Auto,vertical:f.VerticalAlign.Auto},properties:{container:{scroll:!0,showScroll:!0},fill:{disabled:!1,type:s.FillType.solid,color:c.DefaultWhiteFillColor},stroke:{thickness:1,color:c.DefaultStrokeColor,disabled:!1},radius:{isPercent:!1,disabled:!0,topRight:0,topLeft:0,bottomRight:0,bottomLeft:0},shadow:{disabled:!0,x:0,y:3,blur:6,color:c.ShadowColor}}},t.makeCanvas=function(e,n){return n?h.makeCommonComponent(e,p.CCanvasPanel,n):h.makeCommonComponent(e,p.CCanvasPanel,y.depthClone(t.DefaultCanvasData))},t.CanvasPanelConfig={type:m.CCanvasPanel,name:d.default("resource.components.canvasPanel"),thumb:{spriteIconClass:g.SpriteThumb.CanvasPanel.className,dragPosition:g.SpriteThumb.CanvasPanel.position}};class b extends r.Component{render(){const{comp:e,isPreview:t,isContainerActiveContainer:n,ignoreFill:s,ignoreStroke:c}=this.props,{properties:u,size:h,isSealed:p,opacity:f}=e,{container:m}=u,g=l.StyleHelper.initCSSStyleParser(u);let y=Object.assign({},g.getShadowStyle());const b=e.getTransition();y=Object.assign(Object.assign(Object.assign(Object.assign({},h),y),g.getRadiusStyle(h)),{opacity:o.isUndefined(e.opacity)?1:e.opacity/100,transition:b});let w=!1;u.container&&(w=!u.container.showScroll);const C=!t&&n,_=t||!n,x=0===f;return r.createElement("div",{className:i.default("lib-comp-panel",{preview:t,clip:_,expand:C,"no-sealed":!p}),style:y},u.fill&&!u.fill.disabled&&!x&&r.createElement(v.default,{size:h,transition:b,properties:{fill:s?void 0:u.fill,radius:u.radius}}),m&&m.scroll&&t?r.createElement(a.ScrollBars,{autoHide:!0,hiddenHorizontalScrollBar:w,hiddenVerticalScrollBar:w,thumbClassName:"lib-comp-canvas-scroll-thumb"},this.props.children):this.props.children,!t&&!e.components.length&&r.createElement("p",{className:"empty-container-tips",style:{lineHeight:e.size.height+"px"}},d.default("tips.doubleClickComponent")),u.stroke&&!u.stroke.disabled&&!x&&r.createElement(v.default,{size:h,transition:b,properties:{stroke:c?void 0:u.stroke,radius:u.radius,border:u.border},zIndex:e.components.length}))}}t.default=b,b.contextType=u.default},function(e,t,n){"use strict";var r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0});const s=n(296),l=(n(298),n(426),n(299),n(1206)),c=(n(427),n(428),n(1211)),u=n(1212),d=n(1213),h=n(4),p=n(1214),f=n(1215),m=n(1216),g=n(1217),v=n(1218),y=null!==(o=null===(r=window.apis)||void 0===r?void 0:r.Token)&&void 0!==o?o:"";s.default.defaults.baseURL=null!==(a=null===(i=window.apis)||void 0===i?void 0:i.Prefix)&&void 0!==a?a:"",s.default.defaults.headers.Authorization="Bearer "+y,s.default.defaults.headers["x-mockplus-lang"]=h.languageManager.currentLanguage;t.default={app:m.default,artboard:g.default,team:f.default,file:l,user:p.default,ds:v.default,userPreference:c,share:u,mixedApp:d}},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new n,_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new w(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){_.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var x=void 0!==o.ResizeObserver?o.ResizeObserver:_;t.default=x}.call(this,n(64))},function(e,t){e.exports=!1},function(e,t,n){var r=n(119)("meta"),o=n(31),i=n(71),a=n(41).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(27)((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},function(e,t,n){var r=n(37)("unscopables"),o=Array.prototype;null==o[r]&&n(65)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOfflineDemoData=void 0,t.getOfflineDemoData=()=>{const e=window.offlineDemoData;if(e&&"[object Object]"===Object.prototype.toString.call(e))return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectComponentsLayout=t.getCompsLayoutByData=t.getSmartLayoutByCompData=t.getSmartLayout=t.getAutoLayout=void 0;const r=n(8),o=n(40),i=n(29);function a(e,t){const n=Math.max(5,.15*t.width),a=Math.max(5,.15*t.height),{position:s,size:l,rotate:c}=e,u=i.getBoundsInParent({position:s,size:l,rotate:c}),d=r.round(u.left-t.left),h=r.round(t.width-d-u.width),p=r.round(u.top-t.top),f=d<=n,m=h<=n,g=p<=a,v=r.round(t.height-p-u.height)<=a;let y=o.HorizontalAlign.Left;f&&(y=o.HorizontalAlign.Left),m&&(y=o.HorizontalAlign.Right),f&&m&&(y=o.HorizontalAlign.LeftAndRight),f||m||(y=o.HorizontalAlign.Auto);let b=o.VerticalAlign.Top;g&&(b=o.VerticalAlign.Top),v&&(b=o.VerticalAlign.Bottom),g&&v&&(b=o.VerticalAlign.TopAndBottom),g||v||(b=o.VerticalAlign.Auto);return{horizontal:y,vertical:b,fixedWidth:!f||!m,fixedHeight:!g||!v}}function s(e,t){const n=new WeakMap;return 0===e.length||e.forEach(e=>{const{position:r,size:o,rotate:i}=e,s=a({position:r,size:o,rotate:i},t);n.set(e,s)}),n}function l(e,t){const n=new Map;return 0===e.length||e.forEach(e=>{const{position:r,size:o,rotate:i}=e,s=a({position:r,size:o,rotate:i||0},t);n.set(e._id,s)}),n}t.getAutoLayout=a,t.getSmartLayout=s,t.getSmartLayoutByCompData=l,t.getCompsLayoutByData=function(e,t){const n=l(e,t);return e.forEach(e=>{const t=e.layout,{vertical:r,horizontal:o,fixedHeight:i,fixedWidth:a,auto:s}=t;s||n.set(e._id,{fixedHeight:i,fixedWidth:a,horizontal:o,vertical:r})}),n},t.collectComponentsLayout=function(e,t){const n=s(e,t);return e.forEach(e=>{const t=e.layout;t.auto||n.set(e,{fixedHeight:t.fixedHeight,fixedWidth:t.fixedWidth,horizontal:t.horizontal,vertical:t.vertical})}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(14);t.default=e=>{const{size:t,properties:n,zIndex:i,transition:a}=e,s=o.StyleHelper.initCSSStyleParser(n),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.size),s.getFillStyle(t)),s.getStrokeStyle()),s.getRadiusStyle(t,n.border)),{left:0,top:0,position:"absolute",boxSizing:"border-box",zIndex:i||"auto",pointerEvents:"none",transition:a,overflow:"hidden"});return r.createElement("div",{className:"lib-comp-general-background",style:l})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doAddOperationByNewValue=t.ComponentPatchesClass=void 0;const r=n(12),o=n(7),i=n(432);class a{constructor(e){this.doAddOperation=(e,t)=>{const n=this.do,o=this.undo;this.isPathExistedInPatches(e)||(n.push(r.Ops.add(e,t)),o.push(r.Ops.remove(e)))},this.doReplaceOperationByPath=(e,t,n)=>{!o.isEqual(t,n)&&!this.do.find(t=>t.path===e)&&(this.do.push(r.Ops.replace(e,n)),this.undo.push(r.Ops.replace(e,t)))},this._do=o.defaultTo(null==e?void 0:e.do,[]),this._undo=o.defaultTo(null==e?void 0:e.undo,[])}get do(){return this._do}get undo(){return this._undo}get value(){return{do:this.do,undo:this.undo}}mergeNewValueToPatches(e,t,n){!i.isSameProperty(t,n)&&!this.isPathExistedInPatches(e)&&this.addOperation({do:r.Ops.replace(e,o.assign(t,n)),undo:r.Ops.replace(e,t)})}isPathExistedInPatches(e){return Boolean(this.do.find(t=>t.path===e))}addOperation(e){this.do.push(e.do),this.undo.push(e.undo)}getAttrChangePatches(e,t,n){return new a({do:[r.Ops.replace(t,n.newVal)],undo:[r.Ops.replace(t,n.oldVal)]})}}t.ComponentPatchesClass=a,t.doAddOperationByNewValue=(e,t,n)=>{n.isPathExistedInPatches(e)||(n.do.push(r.Ops.add(e,t)),n.undo.push(r.Ops.remove(e)))}},function(e,t,n){"use strict";e.exports=n(855)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(331),o=n(247);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(82),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(19),o=n(332),i=n(247),a=n(246)("IE_PROTO"),s=function(){},l=function(){var e,t=n(244)("iframe"),r=i.length;for(t.style.display="none",n(248).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("