|
|
!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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;
|
|
|
/*!
|
|
|
Copyright (c) 2018 Jed Watson.
|
|
|
Licensed under the MIT License (MIT), see
|
|
|
http://jedwatson.github.io/classnames
|
|
|
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return kt(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=m(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=f(NaN);return null!=e?p(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=o.momentProperties=[],b=!1;function w(e,t){var n,r,o;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)c(o=t[r=y[n]])||(e[r]=o);return e}function C(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,o.updateOffset(this),b=!1)}function _(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function x(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return p((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,i,a,l=[];for(i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(a in r+="\n["+i+"] ",arguments[0])s(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];l.push(r)}x(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,P={};function T(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),P[e]||(x(t),P[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function M(e){null!=e&&this.set(e)}function A(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=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<n;t++)N[o[t]]?o[t]=N[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=E(o[r])?o[r].call(t,e):o[r];return i}}(t),L[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=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;n<e.length;n++)ye[e[n]]=r}function we(e,t){be(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Ce(e,t,n){null!=t&&s(ye,e)&&ye[e](t,n._a,n,e)}function _e(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?U(e)?29:28:31-r%7%2}ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},j("M",["MM",2],"Mo",(function(){return this.month()+1})),j("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),j("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),B("month","M"),W("month",8),fe("M",re),fe("MM",re,Q),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("MMMM",(function(e,t){return t.monthsRegex(e)})),be(["M","MM"],(function(e,t){t[1]=G(e)-1})),be(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:m(n).invalidMonth=e}));var xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe=pe,Te=pe;function Ee(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ve.call(this._shortMonthsParse,a))?o:null:-1!==(o=ve.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ve.call(this._shortMonthsParse,a))||-1!==(o=ve.call(this._longMonthsParse,a))?o:null:-1!==(o=ve.call(this._longMonthsParse,a))||-1!==(o=ve.call(this._shortMonthsParse,a))?o:null}function Oe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),_e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Me(e){return null!=e?(Oe(this,e),o.updateOffset(this,!0),this):$(this,"Month")}function Ae(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=ge(r[t]),o[t]=ge(o[t]);for(t=0;t<24;t++)i[t]=ge(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function De(e){return U(e)?366:365}j("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),j(0,["YY",2],0,(function(){return this.year()%100})),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),B("year","y"),W("year",1),fe("Y",ue),fe("YY",re,Q),fe("YYYY",se,te),fe("YYYYY",le,ne),fe("YYYYYY",le,ne),be(["YYYYY","YYYYYY"],0),be("YYYY",(function(e,t){t[0]=2===e.length?o.parseTwoDigitYear(e):G(e)})),be("YY",(function(e,t){t[0]=o.parseTwoDigitYear(e)})),be("Y",(function(e,t){t[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?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;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ot(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n(1601)("./"+t),at(r)}catch(e){tt[t]=null}return tt[t]}function at(e,t){var n;return e&&((n=c(t)?lt(e):st(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new M(O(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),at(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!i(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=ot(e[i]).split("-")).length,n=(n=ot(e[i+1]))?n.split("-"):null;t>0;){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;t<n;t++)if(pt[t][1].exec(l[1])){o=pt[t][0],r=!1!==pt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(l[3])){i=(l[2]||" ")+ft[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!ht.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),xt(e)}else e._isValid=!1}function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function wt(e){var t,n,r,o,i,a,s,l,c=gt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],r=c[3],o=c[2],i=c[5],a=c[6],s=c[7],l=[bt(n),Se.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||Ve.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(c[8],c[9],c[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,i,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=Ct(t.GG,e._a[0],ze(Pt(),1,4).year),r=Ct(t.W,1),((o=Ct(t.E,1))<1||o>7)&&(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;t<r.length;t++)i=r[t],(n=(l.match(me(i,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&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;o<e._f.length;o++)i=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],xt(t),g(t)&&(a=!0),i+=m(t).charsLeftOver,i+=10*m(t).unusedTokens.length,m(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(s=!0));p(e,n||t)}(e):n?xt(e):function(e){var t=e._i;c(t)?e._d=new Date(o.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,wt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),_t(e)):a(t)?function(e){if(!e._d){var t=V(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),_t(e)}}(e):u(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function kt(e,t,n,r,o){var s,c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=e,c._f=t,c._strict=r,(s=new C(ct(St(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Pt(e,t,n,r){return kt(e,t,n,r,!1)}o.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Tt=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Et=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?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<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Mt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function At(e){var t=V(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===ve.call(Mt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Mt.length;++n)if(e[Mt[n]]){if(r)return!1;parseFloat(e[Mt[n]])!==G(e[Mt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function Dt(e){return e instanceof At}function It(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){j(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)}))}Lt("Z",":"),Lt("ZZ",""),fe("Z",he),fe("ZZ",he),be(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=jt(he,e)}));var Nt=/([\+\-]|\d\d)/gi;function jt(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Nt)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?r:-r}function Rt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(_(e)||d(e)?e.valueOf():Pt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):Pt(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ht=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var n,r,o,i,a,l,c=e,d=null;return Dt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Bt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(It(1e3*d[6]))*n}):(d=Ht.exec(e))?(n="-"===d[1]?-1:1,c={y:Yt(d[2],n),M:Yt(d[3],n),w:Yt(d[4],n),d:Yt(d[5],n),h:Yt(d[6],n),m:Yt(d[7],n),s:Yt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=Pt(c.from),a=Pt(c.to),o=i.isValid()&&a.isValid()?(a=Rt(a,i),i.isBefore(a)?l=Wt(i,a):((l=Wt(a,i)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=o.milliseconds,c.M=o.months),r=new At(c),Dt(e)&&s(e,"_locale")&&(r._locale=e._locale),Dt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ut(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(T(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Kt(this,Vt(n,r),e),this}}function Kt(e,t,n,r){var i=t._milliseconds,a=It(t._days),s=It(t._months);e.isValid()&&(r=null==r||r,s&&Oe(e,$(e,"Month")+s*n),a&&X(e,"Date",$(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||s))}Vt.fn=At.prototype,Vt.invalid=function(){return Vt(NaN)};var Gt=Ut(1,"add"),qt=Ut(-1,"subtract");function $t(e){return"string"==typeof e||e instanceof String}function Xt(e){return _(e)||d(e)||$t(e)||u(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&$t(e)})).length),t&&n}(e)||function(e){var t,n,r=a(e)&&!l(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)n=i[t],o=o||s(e,n);return r&&o}(e)||null==e}function Jt(e){var t,n=a(e)&&!l(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||s(e,o[t]);return n&&r}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=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<t;++e)r.push(ge(a[e].name)),n.push(ge(a[e].abbr)),o.push(ge(a[e].narrow)),i.push(ge(a[e].name)),i.push(ge(a[e].abbr)),i.push(ge(a[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function ln(e,t){j(0,[e,e.length],0,t)}function cn(e,t,n,r,o){var i;return null==e?ze(this,r,o).year:(t>(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()<this.clone().startOf(t).valueOf())},vn.isBefore=function(e,t){var n=_(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},vn.isBetween=function(e,t,n,r){var o=_(e)?e:Pt(e),i=_(t)?t:Pt(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n)))},vn.isSame=function(e,t){var n,r=_(e)?e:Pt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=H(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},vn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},vn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},vn.isValid=function(){return g(this)},vn.lang=en,vn.locale=Qt,vn.localeData=tn,vn.max=Et,vn.min=Tt,vn.parsingFlags=function(){return p({},m(this))},vn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:Y[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=V(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(E(this[e=H(e)]))return this[e](t);return this},vn.startOf=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(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),o.updateOffset(this,!0),this},vn.subtract=qt,vn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},vn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},vn.toDate=function(){return new Date(this.valueOf())},vn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>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;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},vn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},vn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},vn.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-o(i[e].since).year())*n+i[e].offset;return this.year()},vn.year=Ie,vn.isLeapYear=function(){return U(this.year())},vn.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},vn.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},vn.quarter=vn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},vn.month=Me,vn.daysInMonth=function(){return _e(this.year(),this.month())},vn.week=vn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},vn.isoWeek=vn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},vn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},vn.weeksInWeekYear=function(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)},vn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},vn.isoWeeksInISOWeekYear=function(){return Fe(this.isoWeekYear(),1,4)},vn.date=dn,vn.day=vn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},vn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},vn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},vn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},vn.hour=vn.hours=Qe,vn.minute=vn.minutes=hn,vn.second=vn.seconds=mn,vn.millisecond=vn.milliseconds=fn,vn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=jt(he,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Vt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:zt(this)},vn.utc=function(e){return this.utcOffset(0,e)},vn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},vn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=jt(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},vn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},vn.isDST=function(){return this.utcOffset()>this.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;r<o;r++)(n&&e[r]!==t[r]||!n&&G(e[r])!==G(t[r]))&&a++;return a+i}(t._a,e.toArray())>0):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<r;++n){switch(typeof a[n].since){case"string":i=o(a[n].since).startOf("day"),a[n].since=i.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=o(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}}return a},bn.erasParse=function(e,t,n){var r,o,i,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(i=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,a,s].indexOf(e)>=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]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,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 <https://lodash.com/>
|
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
|
* Released under MIT license <https://lodash.com/license>
|
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
|
* 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<i;){var a=e[o];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function dt(e,t){return!!(null==e?0:e.length)&&Ct(e,t,0)>-1}function ht(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function ft(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function mt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function gt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=kt("length");function bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function wt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ct(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,xt,n)}function _t(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function xt(e){return e!=e}function St(e,t){var n=null==e?0:e.length;return n?Et(e,t)/n:NaN}function kt(e){return function(t){return null==t?void 0:t[e]}}function Pt(e){return function(t){return null==e?void 0:e[t]}}function Tt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Et(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Ot(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Mt(e){return e?e.slice(0,qt(e)+1).replace(q,""):e}function At(e){return function(t){return e(t)}}function Dt(e,t){return pt(t,(function(t){return e[t]}))}function It(e,t){return e.has(t)}function Lt(e,t){for(var n=-1,r=e.length;++n<r&&Ct(t,e[n],0)>-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<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function Wt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Kt(e){return Bt(e)?function(e){var t=Le.lastIndex=0;for(;Le.test(e);)++t;return t}(e):yt(e)}function Gt(e){return Bt(e)?function(e){return e.match(Le)||[]}(e):function(e){return e.split("")}(e)}function qt(e){for(var t=e.length;t--&&$.test(e.charAt(t)););return t}var $t=Pt({"&":"&","<":"<",">":">",""":'"',"'":"'"});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<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jn;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new Nn(e);this.size=t.size}function Fn(e,t){var n=La(e),r=!n&&Ia(e),o=!n&&!r&&za(e),i=!n&&!r&&!o&&Qa(e),a=n||r||o||i,s=a?Ot(e.length,ge):[],l=s.length;for(var c in e)!t&&!xe.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||li(c,l))||s.push(c);return s}function Bn(e){var t=e.length;return t?e[Rr(0,t-1)]:void 0}function Hn(e,t){return ki(bo(e),Xn(t,0,e.length))}function Vn(e){return ki(bo(e))}function Yn(e,t,n){(void 0!==n&&!Ma(e[t],n)||void 0===n&&!(t in e))&&qn(e,t,n)}function Wn(e,t,n){var r=e[t];xe.call(e,t)&&Ma(r,n)&&(void 0!==n||t in e)||qn(e,t,n)}function Un(e,t){for(var n=e.length;n--;)if(Ma(e[n][0],t))return n;return-1}function Kn(e,t,n,r){return tr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Gn(e,t){return e&&wo(t,Cs(t),e)}function qn(e,t,n){"__proto__"==t&&yt?yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $n(e,t){for(var n=-1,o=t.length,i=r(o),a=null==e;++n<o;)i[n]=a?void 0:gs(e,t[n]);return i}function Xn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=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<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}On.templateSettings={escape:B,evaluate:H,interpolate:V,variable:"",imports:{_:On}},On.prototype=An.prototype,On.prototype.constructor=On,Dn.prototype=Mn(An.prototype),Dn.prototype.constructor=Dn,In.prototype=Mn(An.prototype),In.prototype.constructor=In,Ln.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},Ln.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ln.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},Ln.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:xe.call(t,e)},Ln.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this},Nn.prototype.clear=function(){this.__data__=[],this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=Un(t,e);return!(n<0)&&(n==t.length-1?t.pop():qe.call(t,n,1),--this.size,!0)},Nn.prototype.get=function(e){var t=this.__data__,n=Un(t,e);return n<0?void 0:t[n][1]},Nn.prototype.has=function(e){return Un(this.__data__,e)>-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;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!Za(a):n(a,s)))var s=a,l=i}return l}function ir(e,t){var n=[];return tr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function ar(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=si),o||(o=[]);++i<a;){var s=e[i];t>0&&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&&n<r;)e=e[Ti(t[n++])];return n&&n==r?e:void 0}function pr(e,t,n){var r=t(e);return La(e)?r:ft(r,n(e))}function fr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ze&&Ze in fe(e)?function(e){var t=xe.call(e,Ze),n=e[Ze];try{e[Ze]=void 0;var r=!0}catch(e){}var o=Pe.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return o}(e):function(e){return Pe.call(e)}(e)}function mr(e,t){return e>t}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<i&&u.length<c;){var f=d[h],m=t?t(f):f;if(f=n||0!==f?f:0,!(p?It(p,m):o(u,m,n))){for(s=a;--s;){var g=l[s];if(!(g?It(g,m):o(e[s],m,n)))continue e}p&&p.push(m),u.push(f)}}return u}function br(e,t,n){var r=null==(e=vi(e,t=lo(t,e)))?e:e[Ti(Bi(t))];return null==r?void 0:it(r,e,n)}function wr(e){return Ua(e)&&fr(e)==l}function Cr(e,t,n,r,o){return e===t||(null==e||null==t||!Ua(e)&&!Ua(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=La(e),s=La(t),p=a?c:oi(e),f=s?c:oi(t),_=(p=p==l?v:p)==v,k=(f=f==l?v:f)==v,P=p==f;if(P&&za(e)){if(!za(t))return!1;a=!0,_=!1}if(P&&!_)return i||(i=new zn),a||Qa(e)?Uo(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new Le(e),new Le(t)));case u:case d:case g:return Ma(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case w:return e==t+"";case m:var s=Ht;case b:var l=1&r;if(s||(s=Wt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var p=Uo(s(e),s(t),r,o,i,a);return a.delete(e),p;case C:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,p,n,r,o,i);if(!(1&n)){var T=_&&xe.call(e,"__wrapped__"),E=k&&xe.call(t,"__wrapped__");if(T||E){var O=T?e.value():e,M=E?t.value():t;return i||(i=new zn),o(O,M,n,r,i)}}if(!P)return!1;return i||(i=new zn),function(e,t,n,r,o,i){var a=1&n,s=Go(e),l=s.length,c=Go(t).length;if(l!=c&&!a)return!1;var u=l;for(;u--;){var d=s[u];if(!(a?d in t:xe.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);var m=a;for(;++u<l;){d=s[u];var g=e[d],v=t[d];if(r)var y=a?r(v,g,d,t,e,i):r(g,v,d,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i)}(e,t,n,r,Cr,o))}function _r(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=fe(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new zn;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?Cr(u,c,3,r,d):h))return!1}}return!0}function xr(e){return!(!Wa(e)||(t=e,ke&&ke in t))&&(Ha(e)?Oe:ae).test(Ei(e));var t}function Sr(e){return"function"==typeof e?e:null==e?Gs:"object"==typeof e?La(e)?Mr(e[0],e[1]):Or(e):nl(e)}function kr(e){if(!pi(e))return an(e);var t=[];for(var n in fe(e))xe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pr(e){if(!Wa(e))return function(e){var t=[];if(null!=e)for(var n in fe(e))t.push(n);return t}(e);var t=pi(e),n=[];for(var r in e)("constructor"!=r||!t&&xe.call(e,r))&&n.push(r);return n}function Tr(e,t){return e<t}function Er(e,t){var n=-1,o=ja(e)?r(e.length):[];return tr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Or(e){var t=ei(e);return 1==t.length&&t[0][2]?mi(t[0][0],t[0][1]):function(n){return n===e||_r(n,e,t)}}function Mr(e,t){return ui(e)&&fi(t)?mi(Ti(e),t):function(n){var r=gs(n,e);return void 0===r&&r===t?vs(n,e):Cr(t,r,3)}}function Ar(e,t,n,r,o){e!==t&&sr(t,(function(i,a){if(o||(o=new zn),Wa(i))!function(e,t,n,r,o,i,a){var s=bi(e,n),l=bi(t,n),c=a.get(l);if(c)return void Yn(e,n,c);var u=i?i(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=La(l),p=!h&&za(l),f=!h&&!p&&Qa(l);u=l,h||p||f?La(s)?u=s:Ra(s)?u=bo(s):p?(d=!1,u=po(l,!0)):f?(d=!1,u=mo(l,!0)):u=[]:qa(l)||Ia(l)?(u=s,Ia(s)?u=ss(s):Wa(s)&&!Ha(s)||(u=ai(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l));Yn(e,n,u)}(e,t,a,n,Ar,r,o);else{var s=r?r(bi(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),Yn(e,a,s)}}),_s)}function Dr(e,t){var n=e.length;if(n)return li(t+=t<0?n:0,n)?e[t]:void 0}function Ir(e,t,n){t=t.length?pt(t,(function(e){return La(e)?function(t){return hr(t,1===e.length?e[0]:e)}:e})):[Gs];var r=-1;return t=pt(t,At(Zo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Er(e,(function(e,n,o){return{criteria:pt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=go(o[r],i[r]);if(l){if(r>=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<o;){var a=t[r],s=hr(e,a);n(s,a)&&Vr(i,lo(a,e),s)}return i}function Nr(e,t,n,r){var o=r?_t:Ct,i=-1,a=t.length,s=e;for(e===t&&(t=bo(t)),n&&(s=pt(e,At(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,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&&++o<i;){var l=Ti(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=Wa(u)?u:li(t[o+1])?[]:{})}Wn(s,l,c),s=s[l]}return e}var Yr=bn?function(e,t){return bn.set(e,t),e}:Gs,Wr=yt?function(e,t){return yt(e,"toString",{configurable:!0,enumerable:!1,value:Ws(t),writable:!0})}:Gs;function Ur(e){return ki(Ms(e))}function Kr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?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<i;)a[o]=e[o+t];return a}function Gr(e,t){var n;return tr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function qr(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Za(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return $r(e,t,Gs,n)}function $r(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,l=Za(t),c=void 0===t;o<i;){var u=en((o+i)/2),d=n(e[u]),h=void 0!==d,p=null===d,f=d==d,m=Za(d);if(a)var g=r||f;else g=c?f&&(r||h):s?f&&h&&(r||!p):l?f&&h&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);g?o=u+1:i=u}return ln(i,4294967294)}function Xr(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ma(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function Jr(e){return"number"==typeof e?e:Za(e)?NaN:+e}function Zr(e){if("string"==typeof e)return e;if(La(e))return pt(e,Zr)+"";if(Za(e))return En?En.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qr(e,t,n){var r=-1,o=dt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=ht;else if(i>=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<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function eo(e,t){return null==(e=vi(e,t=lo(t,e)))||delete e[Ti(Bi(t))]}function to(e,t,n,r){return Vr(e,t,n(hr(e,t)),r)}function no(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Kr(e,r?0:i,r?i+1:o):Kr(e,r?i+1:0,r?o:i)}function ro(e,t){var n=e;return n instanceof In&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,ft([e],t.args))}),n)}function oo(e,t,n){var o=e.length;if(o<2)return o?Qr(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=er(a[i]||s,e[l],t,n));return Qr(ar(a,1),t,n)}function io(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function ao(e){return Ra(e)?e:[]}function so(e){return"function"==typeof e?e:Gs}function lo(e,t){return La(e)?e:ui(e,t)?[e]:Pi(ls(e))}var co=Fr;function uo(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=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&&e<t||c&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function vo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=sn(a-s,0),d=r(c+u),h=!o;++l<c;)d[l]=t[l];for(;++i<s;)(h||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function yo(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=sn(a-l,0),h=r(d+u),p=!o;++i<d;)h[i]=e[i];for(var f=i;++c<u;)h[f+c]=t[c];for(;++s<l;)(p||i<a)&&(h[f+n[s]]=e[i++]);return h}function bo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function wo(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?qn(n,s,l):Wn(n,s,l)}return n}function Co(e,t){return function(n,r){var o=La(n)?at:Kn,i=t?t():{};return o(n,e,Zo(r,2),i)}}function _o(e){return Fr((function(t,n){var r=-1,o=n.length,i=o>1?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<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}function xo(e,t){return function(n,r){if(null==n)return n;if(!ja(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=fe(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function So(e){return function(t,n,r){for(var o=-1,i=fe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function ko(e){return function(t){var n=Bt(t=ls(t))?Gt(t):void 0,r=n?n[0]:t.charAt(0),o=n?uo(n,1).join(""):t.slice(1);return r[e]()+o}}function Po(e){return function(t){return mt(Hs(Is(t).replace(De,"")),e,"")}}function To(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mn(e.prototype),r=e.apply(n,t);return Wa(r)?r:n}}function Eo(e){return function(t,n,r){var o=fe(t);if(!ja(t)){var i=Zo(n,3);t=Cs(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-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;++r<n;){var l=Xo(a=t[r]),c="wrapper"==l?$o(a):void 0;s=c&&di(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Xo(c[0])].apply(s,c[3]):1==a.length&&di(a)?s[l]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&La(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Mo(e,t,n,o,i,a,s,l,c,u){var d=128&t,h=1&t,p=2&t,f=24&t,m=512&t,g=p?void 0:To(e);return function v(){for(var y=arguments.length,b=r(y),w=y;w--;)b[w]=arguments[w];if(f)var C=Jo(v),_=jt(b,C);if(o&&(b=vo(b,o,i,f)),a&&(b=yo(b,a,s,f)),y-=_,f&&y<u){var x=Yt(b,C);return Ro(e,t,Mo,v.placeholder,n,b,x,l,c,u-y)}var S=h?n:this,k=p?S[e]:e;return y=b.length,l?b=yi(b,l):m&&y>1&&b.reverse(),d&&c<y&&(b.length=c),this&&this!==Ge&&this instanceof v&&(k=g||To(k)),k.apply(S,b)}}function Ao(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Do(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Zr(n),r=Zr(r)):(n=Jr(n),r=Jr(r)),o=e(n,r)}return o}}function Io(e){return Ko((function(t){return t=pt(t,At(Zo())),Fr((function(n){var r=this;return e(t,(function(e){return it(e,r,n)}))}))}))}function Lo(e,t){var n=(t=void 0===t?" ":Zr(t)).length;if(n<2)return n?zr(t,e):t;var r=zr(t,Qt(e/Kt(t)));return Bt(t)?uo(Gt(r),0,e).join(""):r.slice(0,e)}function No(e){return function(t,n,o){return o&&"number"!=typeof o&&ci(t,n,o)&&(n=o=void 0),t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n,o){for(var i=-1,a=sn(Qt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,o=void 0===o?t<n?1:-1:rs(o),e)}}function jo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=as(t),n=as(n)),e(t,n)}}function Ro(e,t,n,r,o,i,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,o,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,s,l,c],h=n.apply(void 0,d);return di(e)&&wi(h,d),h.placeholder=r,xi(h,e,t)}function zo(e){var t=pe[e];return function(e,n){if(e=as(e),(n=null==n?0:ln(os(n),292))&&rn(e)){var r=(ls(e)+"e").split("e");return+((r=(ls(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Fo=gn&&1/Wt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Zs;function Bo(e){return function(t){var n=oi(t);return n==m?Ht(t):n==b?Ut(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ho(e,t,n,o,s,l,c,u){var d=2&t;if(!d&&"function"!=typeof e)throw new ve(i);var h=o?o.length:0;if(h||(t&=-97,o=s=void 0),c=void 0===c?c:sn(os(c),0),u=void 0===u?u:os(u),h-=s?s.length:0,64&t){var p=o,f=s;o=s=void 0}var m=d?void 0:$o(e),g=[e,t,n,o,s,p,f,l,c,u];if(m&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?vo(c,l,t[4]):l,e[4]=c?Yt(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?yo(c,l,t[6]):l,e[6]=c?Yt(e[5],a):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:ln(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(g,m),e=g[0],t=g[1],n=g[2],o=g[3],s=g[4],!(u=g[9]=void 0===g[9]?d?0:e.length:sn(g[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var o=To(e);return function i(){for(var a=arguments.length,s=r(a),l=a,c=Jo(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:Yt(s,c);if((a-=u.length)<n)return Ro(e,t,Mo,i.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==Ge&&this instanceof i?o:e;return it(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Mo.apply(void 0,g):function(e,t,n,o){var i=1&t,a=To(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),h=this&&this!==Ge&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return it(h,i?n:this,d)}}(e,t,n,o);else var v=function(e,t,n){var r=1&t,o=To(e);return function t(){var i=this&&this!==Ge&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}}(e,t,n);return xi((m?Yr:wi)(v,g),e,t)}function Vo(e,t,n,r){return void 0===e||Ma(e,we[n])&&!xe.call(r,n)?t:e}function Yo(e,t,n,r,o,i){return Wa(e)&&Wa(t)&&(i.set(t,e),Ar(e,t,void 0,Yo,i),i.delete(t)),e}function Wo(e){return qa(e)?void 0:e}function Uo(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))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<s;){var f=e[d],m=t[d];if(r)var g=a?r(m,f,d,t,e,i):r(f,m,d,e,t,i);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!vt(t,(function(e,t){if(!It(p,t)&&(f===e||o(f,e,n,r,i)))return p.push(t)}))){h=!1;break}}else if(f!==m&&!o(f,m,n,r,i)){h=!1;break}}return i.delete(e),i.delete(t),h}function Ko(e){return _i(gi(e,void 0,Ni),e+"")}function Go(e){return pr(e,Cs,ni)}function qo(e){return pr(e,_s,ri)}var $o=bn?function(e){return bn.get(e)}:Zs;function Xo(e){for(var t=e.name+"",n=wn[t],r=xe.call(wn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Jo(e){return(xe.call(On,"placeholder")?On:e).placeholder}function Zo(){var e=On.iteratee||qs;return e=e===qs?Sr:e,arguments.length?e(arguments[0],arguments[1]):e}function Qo(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ei(e){for(var t=Cs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,fi(o)]}return t}function ti(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var ni=tn?function(e){return null==e?[]:(e=fe(e),ut(tn(e),(function(t){return Ke.call(e,t)})))}:il,ri=tn?function(e){for(var t=[];e;)ft(t,ni(e)),e=Ve(e);return t}:il,oi=fr;function ii(e,t,n){for(var r=-1,o=(t=lo(t,e)).length,i=!1;++r<o;){var a=Ti(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ya(o)&&li(a,o)&&(La(e)||Ia(e))}function ai(e){return"function"!=typeof e.constructor||pi(e)?{}:Mn(Ve(e))}function si(e){return La(e)||Ia(e)||!!($e&&e&&e[$e])}function li(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function ci(e,t,n){if(!Wa(n))return!1;var r=typeof t;return!!("number"==r?ja(n)&&li(t,n.length):"string"==r&&t in n)&&Ma(n[t],e)}function ui(e,t){if(La(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Za(e))||(W.test(e)||!Y.test(e)||null!=t&&e in fe(t))}function di(e){var t=Xo(e),n=On[t];if("function"!=typeof n||!(t in In.prototype))return!1;if(e===n)return!0;var r=$o(n);return!!r&&e===r[0]}(pn&&oi(new pn(new ArrayBuffer(1)))!=S||fn&&oi(new fn)!=m||mn&&"[object Promise]"!=oi(mn.resolve())||gn&&oi(new gn)!=b||vn&&oi(new vn)!=_)&&(oi=function(e){var t=fr(e),n=t==v?e.constructor:void 0,r=n?Ei(n):"";if(r)switch(r){case Cn:return S;case _n:return m;case xn:return"[object Promise]";case Sn:return b;case kn:return _}return t});var hi=Ce?Ha:al;function pi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function fi(e){return e==e&&!Wa(e)}function mi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in fe(n)))}}function gi(e,t,n){return t=sn(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=sn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),it(e,this,l)}}function vi(e,t){return t.length<2?e:hr(e,Kr(t,0,-1))}function yi(e,t){for(var n=e.length,r=ln(t.length,n),o=bo(e);r--;){var i=t[r];e[r]=li(i,n)?o[i]:void 0}return e}function bi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var wi=Si(Yr),Ci=Zt||function(e,t){return Ge.setTimeout(e,t)},_i=Si(Wr);function xi(e,t,n){var r=t+"";return _i(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+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;++n<t;){var i=Rr(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}var Pi=function(e){var t=Sa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(U,(function(e,n,r,o){t.push(r?o.replace(te,"$1"):n||e)})),t}));function Ti(e){if("string"==typeof e||Za(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ei(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Oi(e){if(e instanceof In)return e.clone();var t=new Dn(e.__wrapped__,e.__chain__);return t.__actions__=bo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Mi=Fr((function(e,t){return Ra(e)?er(e,ar(t,1,Ra,!0)):[]})),Ai=Fr((function(e,t){var n=Bi(t);return Ra(n)&&(n=void 0),Ra(e)?er(e,ar(t,1,Ra,!0),Zo(n,2)):[]})),Di=Fr((function(e,t){var n=Bi(t);return Ra(n)&&(n=void 0),Ra(e)?er(e,ar(t,1,Ra,!0),void 0,n):[]}));function Ii(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)),wt(e,Zo(t,3),o)}function Li(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=os(n),o=n<0?sn(r+o,0):ln(o,r-1)),wt(e,Zo(t,3),o,!0)}function Ni(e){return(null==e?0:e.length)?ar(e,1):[]}function ji(e){return e&&e.length?e[0]:void 0}var Ri=Fr((function(e){var t=pt(e,ao);return t.length&&t[0]===e[0]?yr(t):[]})),zi=Fr((function(e){var t=Bi(e),n=pt(e,ao);return t===Bi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yr(n,Zo(t,2)):[]})),Fi=Fr((function(e){var t=Bi(e),n=pt(e,ao);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yr(n,void 0,t):[]}));function Bi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Hi=Fr(Vi);function Vi(e,t){return e&&e.length&&t&&t.length?Nr(e,t):e}var Yi=Ko((function(e,t){var n=null==e?0:e.length,r=$n(e,t);return jr(e,pt(t,(function(e){return li(e,n)?+e:e})).sort(go)),r}));function Wi(e){return null==e?e:hn.call(e)}var Ui=Fr((function(e){return Qr(ar(e,1,Ra,!0))})),Ki=Fr((function(e){var t=Bi(e);return Ra(t)&&(t=void 0),Qr(ar(e,1,Ra,!0),Zo(t,2))})),Gi=Fr((function(e){var t=Bi(e);return t="function"==typeof t?t:void 0,Qr(ar(e,1,Ra,!0),void 0,t)}));function qi(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Ra(e))return t=sn(e.length,t),!0})),Ot(t,(function(t){return pt(e,kt(t))}))}function $i(e,t){if(!e||!e.length)return[];var n=qi(e);return null==t?n:pt(n,(function(e){return it(t,void 0,e)}))}var Xi=Fr((function(e,t){return Ra(e)?er(e,t):[]})),Ji=Fr((function(e){return oo(ut(e,Ra))})),Zi=Fr((function(e){var t=Bi(e);return Ra(t)&&(t=void 0),oo(ut(e,Ra),Zo(t,2))})),Qi=Fr((function(e){var t=Bi(e);return t="function"==typeof t?t:void 0,oo(ut(e,Ra),void 0,t)})),ea=Fr(qi);var ta=Fr((function(e){var t=e.length,n=t>1?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<i;)r[o]=t[o].call(this,r[o]);return it(e,this,r)}))})),Ta=Fr((function(e,t){return Ho(e,32,void 0,t,Yt(t,Jo(Ta)))})),Ea=Fr((function(e,t){return Ho(e,64,void 0,t,Yt(t,Jo(Ea)))})),Oa=Ko((function(e,t){return Ho(e,256,void 0,void 0,void 0,t)}));function Ma(e,t){return e===t||e!=e&&t!=t}var Aa=jo(mr),Da=jo((function(e,t){return e>=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);++n<r;)for(var i=t[n],a=_s(i),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||Ma(u,we[c])&&!xe.call(e,c))&&(e[c]=i[c])}return e})),ms=Fr((function(e){return e.push(void 0,Yo),it(Ss,void 0,e)}));function gs(e,t,n){var r=null==e?void 0:hr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ii(e,t,vr)}var ys=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),e[t]=n}),Ws(Gs)),bs=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),xe.call(e,t)?e[t].push(n):e[t]=[n]}),Zo),ws=Fr(br);function Cs(e){return ja(e)?Fn(e):kr(e)}function _s(e){return ja(e)?Fn(e,!0):Pr(e)}var xs=_o((function(e,t,n){Ar(e,t,n)})),Ss=_o((function(e,t,n,r){Ar(e,t,n,r)})),ks=Ko((function(e,t){var n={};if(null==e)return n;var r=!1;t=pt(t,(function(t){return t=lo(t,e),r||(r=t.length>1),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));i<o;)s[a++]=Kr(e,i,i+=t);return s},On.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},On.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return ft(La(n)?bo(n):[n],ar(t,1))},On.cond=function(e){var t=null==e?0:e.length,n=Zo();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new ve(i);return[n(e[0]),e[1]]})):[],Fr((function(n){for(var r=-1;++r<t;){var o=e[r];if(it(o[0],this,n))return it(o[1],this,n)}}))},On.conforms=function(e){return function(e){var t=Cs(e);return function(n){return Zn(n,e,t)}}(Jn(e,1))},On.constant=Ws,On.countBy=ia,On.create=function(e,t){var n=Mn(e);return null==t?n:Gn(n,t)},On.curry=function e(t,n,r){var o=Ho(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},On.curryRight=function e(t,n,r){var o=Ho(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},On.debounce=Ca,On.defaults=fs,On.defaultsDeep=ms,On.defer=_a,On.delay=xa,On.difference=Mi,On.differenceBy=Ai,On.differenceWith=Di,On.drop=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,(t=n||void 0===t?1:os(t))<0?0:t,r):[]},On.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,0,(t=r-(t=n||void 0===t?1:os(t)))<0?0:t):[]},On.dropRightWhile=function(e,t){return e&&e.length?no(e,Zo(t,3),!0,!0):[]},On.dropWhile=function(e,t){return e&&e.length?no(e,Zo(t,3),!0):[]},On.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ci(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=os(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:os(r))<0&&(r+=o),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},On.filter=function(e,t){return(La(e)?ut:ir)(e,Zo(t,3))},On.flatMap=function(e,t){return ar(pa(e,t),1)},On.flatMapDeep=function(e,t){return ar(pa(e,t),1/0)},On.flatMapDepth=function(e,t,n){return n=void 0===n?1:os(n),ar(pa(e,t),n)},On.flatten=Ni,On.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},On.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:os(t)):[]},On.flip=function(e){return Ho(e,512)},On.flow=Us,On.flowRight=Ks,On.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},On.functions=function(e){return null==e?[]:dr(e,Cs(e))},On.functionsIn=function(e){return null==e?[]:dr(e,_s(e))},On.groupBy=ua,On.initial=function(e){return(null==e?0:e.length)?Kr(e,0,-1):[]},On.intersection=Ri,On.intersectionBy=zi,On.intersectionWith=Fi,On.invert=ys,On.invertBy=bs,On.invokeMap=da,On.iteratee=qs,On.keyBy=ha,On.keys=Cs,On.keysIn=_s,On.map=pa,On.mapKeys=function(e,t){var n={};return t=Zo(t,3),cr(e,(function(e,r,o){qn(n,t(e,r,o),e)})),n},On.mapValues=function(e,t){var n={};return t=Zo(t,3),cr(e,(function(e,r,o){qn(n,r,t(e,r,o))})),n},On.matches=function(e){return Or(Jn(e,1))},On.matchesProperty=function(e,t){return Mr(e,Jn(t,1))},On.memoize=Sa,On.merge=xs,On.mergeWith=Ss,On.method=$s,On.methodOf=Xs,On.mixin=Js,On.negate=ka,On.nthArg=function(e){return e=os(e),Fr((function(t){return Dr(t,e)}))},On.omit=ks,On.omitBy=function(e,t){return Ts(e,ka(Zo(t)))},On.once=function(e){return ya(2,e)},On.orderBy=function(e,t,n,r){return null==e?[]:(La(t)||(t=null==t?[]:[t]),La(n=r?void 0:n)||(n=null==n?[]:[n]),Ir(e,t,n))},On.over=Qs,On.overArgs=Pa,On.overEvery=el,On.overSome=tl,On.partial=Ta,On.partialRight=Ea,On.partition=fa,On.pick=Ps,On.pickBy=Ts,On.property=nl,On.propertyOf=function(e){return function(t){return null==e?void 0:hr(e,t)}},On.pull=Hi,On.pullAll=Vi,On.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,Zo(n,2)):e},On.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Nr(e,t,void 0,n):e},On.pullAt=Yi,On.range=rl,On.rangeRight=ol,On.rearg=Oa,On.reject=function(e,t){return(La(e)?ut:ir)(e,ka(Zo(t,3)))},On.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Zo(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return jr(e,o),n},On.rest=function(e,t){if("function"!=typeof e)throw new ve(i);return Fr(e,t=void 0===t?t:os(t))},On.reverse=Wi,On.sampleSize=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:os(t),(La(e)?Hn:Hr)(e,t)},On.set=function(e,t,n){return null==e?e:Vr(e,t,n)},On.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Vr(e,t,n,r)},On.shuffle=function(e){return(La(e)?Vn:Ur)(e)},On.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ci(e,t,n)?(t=0,n=r):(t=null==t?0:os(t),n=void 0===n?r:os(n)),Kr(e,t,n)):[]},On.sortBy=ma,On.sortedUniq=function(e){return e&&e.length?Xr(e):[]},On.sortedUniqBy=function(e,t){return e&&e.length?Xr(e,Zo(t,2)):[]},On.split=function(e,t,n){return n&&"number"!=typeof n&&ci(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295: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<sn(t,n)}(e=as(e),t,n)},On.invoke=ws,On.isArguments=Ia,On.isArray=La,On.isArrayBuffer=Na,On.isArrayLike=ja,On.isArrayLikeObject=Ra,On.isBoolean=function(e){return!0===e||!1===e||Ua(e)&&fr(e)==u},On.isBuffer=za,On.isDate=Fa,On.isElement=function(e){return Ua(e)&&1===e.nodeType&&!qa(e)},On.isEmpty=function(e){if(null==e)return!0;if(ja(e)&&(La(e)||"string"==typeof e||"function"==typeof e.splice||za(e)||Qa(e)||Ia(e)))return!e.length;var t=oi(e);if(t==m||t==b)return!e.size;if(pi(e))return!kr(e).length;for(var n in e)if(xe.call(e,n))return!1;return!0},On.isEqual=function(e,t){return Cr(e,t)},On.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Cr(e,t,void 0,n):!!r},On.isError=Ba,On.isFinite=function(e){return"number"==typeof e&&rn(e)},On.isFunction=Ha,On.isInteger=Va,On.isLength=Ya,On.isMap=Ka,On.isMatch=function(e,t){return e===t||_r(e,t,ei(t))},On.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,_r(e,t,ei(t),n)},On.isNaN=function(e){return Ga(e)&&e!=+e},On.isNative=function(e){if(hi(e))throw new $("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},On.isNil=function(e){return null==e},On.isNull=function(e){return null===e},On.isNumber=Ga,On.isObject=Wa,On.isObjectLike=Ua,On.isPlainObject=qa,On.isRegExp=$a,On.isSafeInteger=function(e){return Va(e)&&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&&r<t?e+Lo(t-r,n):e},On.padStart=function(e,t,n){e=ls(e);var r=(t=os(t))?Kt(e):0;return t&&r<t?Lo(t-r,n)+e:e},On.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(ls(e).replace(q,""),t||0)},On.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ci(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=rs(e),void 0===t?(t=e,e=0):t=rs(t)),e>t){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);++r<o;){var i=null==e?void 0:e[Ti(t[r])];void 0===i&&(r=o,i=n),e=Ha(i)?i.call(e):i}return e},On.round=pl,On.runInContext=e,On.sample=function(e){return(La(e)?Bn:Br)(e)},On.size=function(e){if(null==e)return 0;if(ja(e))return Ja(e)?Kt(e):e.length;var t=oi(e);return t==m||t==b?e.size:kr(e).length},On.snakeCase=Rs,On.some=function(e,t,n){var r=La(e)?vt:Gr;return n&&ci(e,t,n)&&(t=void 0),r(e,Zo(t,3))},On.sortedIndex=function(e,t){return qr(e,t)},On.sortedIndexBy=function(e,t,n){return $r(e,t,Zo(n,2))},On.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=qr(e,t);if(r<n&&Ma(e[r],t))return r}return-1},On.sortedLastIndex=function(e,t){return qr(e,t,!0)},On.sortedLastIndexBy=function(e,t,n){return $r(e,t,Zo(n,2),!0)},On.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=qr(e,t,!0)-1;if(Ma(e[n],t))return n}return-1},On.startCase=zs,On.startsWith=function(e,t,n){return e=ls(e),n=null==n?0:Xn(os(n),0,e.length),t=Zr(t),e.slice(n,n+t.length)==t},On.subtract=fl,On.sum=function(e){return e&&e.length?Et(e,Gs):0},On.sumBy=function(e,t){return e&&e.length?Et(e,Zo(t,2)):0},On.template=function(e,t,n){var r=On.templateSettings;n&&ci(e,t,n)&&(t=void 0),e=ls(e),t=ds({},t,r,Vo);var o,i,a=ds({},t.imports,r.imports,Vo),s=Cs(a),l=Dt(a,s),c=0,u=t.interpolate||ue,d="__p += '",h=me((t.escape||ue).source+"|"+u.source+"|"+(u===V?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),p="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(h,(function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(c,l).replace(de,Ft),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var f=xe.call(t,"variable")&&t.variable;if(f){if(ee.test(f))throw new $("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(I,""):d).replace(L,"$1").replace(N,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Vs((function(){return he(s,p+"return "+d).apply(void 0,l)}));if(m.source=d,Ba(m))throw m;return m},On.times=function(e,t){if((e=os(e))<1||e>9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var o=Ot(r,t=Zo(t));++n<e;)t(n);return o},On.toFinite=rs,On.toInteger=os,On.toLength=is,On.toLower=function(e){return ls(e).toLowerCase()},On.toNumber=as,On.toSafeInteger=function(e){return e?Xn(os(e),-9007199254740991,9007199254740991):0===e?e:0},On.toString=ls,On.toUpper=function(e){return ls(e).toUpperCase()},On.trim=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return Mt(e);if(!e||!(t=Zr(t)))return e;var r=Gt(e),o=Gt(t);return uo(r,Lt(r,o),Nt(r,o)+1).join("")},On.trimEnd=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return e.slice(0,qt(e)+1);if(!e||!(t=Zr(t)))return e;var r=Gt(e);return uo(r,0,Nt(r,Gt(t))+1).join("")},On.trimStart=function(e,t,n){if((e=ls(e))&&(n||void 0===t))return e.replace(q,"");if(!e||!(t=Zr(t)))return e;var r=Gt(e);return uo(r,Lt(r,Gt(t))).join("")},On.truncate=function(e,t){var n=30,r="...";if(Wa(t)){var o="separator"in t?t.separator:o;n="length"in t?os(t.length):n,r="omission"in t?Zr(t.omission):r}var i=(e=ls(e)).length;if(Bt(e)){var a=Gt(e);i=a.length}if(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<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=ln(t,e+a);break;case"takeRight":e=sn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,h=0,p=ln(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return ro(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}f[h++]=g}return f},On.prototype.at=oa,On.prototype.chain=function(){return na(this)},On.prototype.commit=function(){return new Dn(this.value(),this.__chain__)},On.prototype.next=function(){void 0===this.__values__&&(this.__values__=ns(this.value()));var e=this.__index__>=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&&e<t.max}function a(e){return o.cloneDeep(e)}function s(e,n,r){const o=r||t.EPSILON;return Math.abs(e-n)<=o||e===n}function l(e,t){return!s(e,t)}function c(e,t,n){return{x:e.x+t*Math.cos(n),y:e.y+t*Math.sin(n)}}t.shortGuid=function(){return(new Date).getTime().toString(36)},t.distance=function(e,t){return e>t?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&&(n=e)}return n},t.depthClone=a,t.jsonClone=function(e){return JSON.parse(JSON.stringify(e))},t.merge=function e(t,n,r){if("object"==typeof t&&"object"==typeof n){if(Array.isArray(t))return Array.isArray(n)?[...t,...n]:[...t,n];if(Array.isArray(n))return[t,...n];{const o=Object.keys(t).reduce((e,t)=>(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<e.length;r++)if(!t.isEqualDate(e[r],n[r]))return!1;return!0}if("Object"===r){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(!t.isEqualDate(e[r],n[r]))return!1;return!0}return"Undefined"===r||"Null"===r},t.getObjType=e=>{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;e<n.length;e++)if("."===n[e]&&(o+=1,o>1)){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<o&&(o=s,a=e)}),{maxKey:JSON.parse(i),maxCount:r,minKey:JSON.parse(a),minCount:o}},t.isNotEmpty=function(e){return!r.isEmpty(e)},t.replaceArrayItem=function(e,t,n){return t>=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<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ops=t.extractPageOperationsFromPagePatches=t.reversePagePatches=t.patchArtboardByAVLTree=t.patchArtboard=t.findAndPatch=t.applyOperationsAndApplyToAvlTree=t.applyOperations=void 0;const r=n(883),o=n(368);function i(e){return e<10?"0"+e:e.toString()}function a(e){var t;console.warn(`${t=new Date,`${t.getFullYear()}-${i(1+t.getMonth())}-${i(t.getDate())} ${i(t.getHours())}:${i(t.getMinutes())}:${i(t.getSeconds())}`} ${e}`)}function s(e,t){if(0!==t.length){t.push(u.replace("/v",(e.v||0)+1));for(let n of t)if(e.components&&e.components.some(e=>!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;n<t.length;n++)if(void 0!==t[n].point){r.end=n;break}if(r.end||(r.end=t.length-1),r.end-r.start>1){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<r.end;e++)t[e].point=o,o+=n}r.end<t.length-1&&n(r.end)};return n(0),t}function w(e){return e.r>=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||i<o?1:-1)*o/r}function k(e){const{from:t,colorStops:n}=e;return`radial-gradient(ellipse${t?` at ${100*t.x}% ${100*t.y}%`:""},${_(n)})`}function P(e,t){if(!e)return;const n=t||[];e.setLineDash?(e.setLineDash(n),e.lineDashOffset=0):e.mozDash&&(e.mozDash=n,e.mozDashOffset=5)}function T(e){if(!e)return 1;return(window.devicePixelRatio||1)/(e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}!function(e){e.solid="solid",e.linear="linear",e.radial="radial"}(u=t.FillType||(t.FillType={})),function(e){e[e.Solid=0]="Solid",e[e.Dashed=1]="Dashed",e[e.Dotted=2]="Dotted",e[e.DashDot=3]="DashDot",e[e.DashDotDot=4]="DashDotDot"}(d=t.DahModel||(t.DahModel={})),t.isLight=function(e){const{r:t,g:n,b:r,a:o}=e;let i=.299*t+.587*n+.114*r>128;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<this.sideCount;e++){const e=50+50*Math.cos(o*Math.PI/180),t=50+50*Math.sin(o*Math.PI/180);a=Math.min(a,e),s=Math.max(s,e),l=Math.min(l,t),c=Math.max(c,t),i.push({x:e,y:t}),o+=r,o>=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(!(null==a?void 0:a.length))return e;{const t=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=`<root>${e.replace(/( )/g,"")}</root>`;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=["<div>","<p>","<br>"];for(let n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1}function b(e,t){let n=e.parentElement;if(!t)return n;for(t=t.toLocaleLowerCase();n;){if(n.tagName.toLocaleLowerCase()===t)return n;n=n.parentElement}return null}function w(e){if(!e)return e;let t=!1,n=!1;return e.split("").map(e=>{"<"===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<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t.toString(32)}(JSON.stringify(f));let b=document.getElementById("measure");if(b||(b=document.createElement("div"),document.body.appendChild(b)),b){b.id="measure",b.style.lineHeight=p?"1.42":"unset",b.style.textIndent="",b.style.writingMode="",b.style.whiteSpace="",b.style.height="auto",b.style.wordWrap="normal",b.style.wordBreak="break-word",b.className="measure-text-layer debugger "+(l&&c?"wrap":""),b.innerHTML=r,b.style.position="absolute",b.style.zIndex="100000",b.style.display="block",b.style.fontFamily=h.fontFamily||"",b.style.fontWeight=h.fontWeight||"normal",b.style.fontStyle=h.fontStyle||"",b.style.padding="0px",b.style.margin="0px",b.style.width=void 0!==o?o+"px":"auto",d||(b.style.transform=`scale(${i.FontBoxScale})`,b.style.letterSpacing=(h.letterSpacing||0)/i.FontBoxScale+"px",b.style.lineHeight=g(h.lineHeight||"")/i.FontBoxScale+"px",b.style.fontSize=h.fontSize/i.FontBoxScale+"px"),"vertical-rl"===b.style.writingMode?a&&(b.style.height=a/i.FontBoxScale+"px"):o&&(b.style.width=o/i.FontBoxScale+"px"),b.style.overflow=h.overflow||"hidden",b.style.textTransform=h.textTransform,b.style.verticalAlign=h.verticalAlign,l?(b.style.whiteSpace=h.whiteSpace||"pre-wrap",b.style.writingMode=h.writingMode||"horizontal-tb",b.style.textIndent=h.textIndent,"nowrap"===b.style.whiteSpace&&(b.style.width="auto"),"vertical-rl"===b.style.writingMode&&(b.style.height="auto",b.classList.add("vertical"),a&&(b.style.height=c?a/i.FontBoxScale+"px":"auto",b.style.width="auto"))):(b.style.whiteSpace="nowrap",b.classList.add("no-wrap"));const{width:e,height:t}=b.getBoundingClientRect();return s[v]={width:Math.ceil(e),height:Math.ceil(t)},s[v]}return{width:0,height:0}},t.applyFontStyleToLI=function(e,t){var n;const r=document.getSelection();if(!r||!r.rangeCount)return;const{focusNode:o,focusOffset:i,anchorNode:a,anchorOffset:s}=r;if(!o||!a)return;const l=b(o,"li"),c=b(a,"li");if(!c||!l)return;const u=function(e){let t=e.childNodes.item(0);for(;t.childNodes.length;)t=t.childNodes.item(0);return t}(l),d=function(e){const t=e.childNodes;let n=t.item(t.length-1);for(;n.childNodes.length;){const e=n.childNodes;n=e.item(e.length-1)}return n}(c),h=0===i&&u===o,p=(null===(n=null==a?void 0:a.nodeValue)||void 0===n?void 0:n.length)===s&&d===a;!function(e,t){let{command:n,value:r,firstLiHasSelected:o,lastLiHasSelected:i}=t;e.forEach((e,t,{length:a})=>{!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:i<t&&s>t&&a<n&&l>n}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=n<o?180:0:(a=Math.atan((r-i)/(n-o))*(180/Math.PI),n>o&&r<i?a+=360:n<o&&r>i?a=180+a:n<o&&r<i&&(a+=180)),a%360}function C(e,t,n){const r=Math.hypot(e.x-t.x,e.y-t.y);let o=(w(e,t)+n)%360;return o<0&&(o+=360),{x:t.x+r*Math.cos(o*Math.PI/180),y:t.y+r*Math.sin(o*Math.PI/180)}}function _(e){const{left:t,width:n,height:r,top:o}=e;return[{x:t,y:o},{x:t+n,y:o},{x:t+n,y:o+r},{x:t,y:o+r}]}t.transPointToPosition=o,t.transPositionToPoint=i,t.isEqualPosition=a,t.isEqualPoint=s,t.isEqualPoints=function(e,t){return e.length===t.length&&e.every((e,n)=>s(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.x<t&&(t=e.x),e.x>r&&(r=e.x),e.y<n&&(n=e.y),e.y>o&&(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;r<t.components.length&&!(t.components[r]instanceof v.UIContainerComponent&&(n=e(t.components[r]),n));r++);return n},t.translateSizeMode=function(e){return e===w.SizeMode.horizontal?{canChangeHeight:!1,canChangeWidth:!0}:e===w.SizeMode.vertical?{canChangeHeight:!0,canChangeWidth:!1}:e===w.SizeMode.none?{canChangeHeight:!1,canChangeWidth:!1}:{canChangeHeight:!0,canChangeWidth:!0}},t.transRadius=function(e,t,n){const{width:r,height:o}=n,a=i.round(i.min(r,o)/2),{prop:s,name:l}=t,c=(e,t)=>t?(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.x<e.minX?t.x:e.minX,minY:t.y<e.minY?t.y:e.minY,maxX:t.x>e.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;n<r;n++){const r=t.ComponentLibs[n],o=r.components.find(t=>t.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;e<r;e++){const r=t.ComponentLibs[e];for(let e=0,t=r.components.length;e<t;e++){const t=r.components[e];if(t.shortCut&&t.shortCut.toLowerCase().trim()===n)return{type:r.id,data:t}}}}t.getDefaultComponentName=F,t.getNameForNewComponent=function(e,t){const n=e.filter(e=>e.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;n<r;n++){const r=t.ComponentLibs[n].components.find(t=>t.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<e.length;r++){const o=t.getSegType(e[r]);if(o!==n&&0!==r)return;n=o}return n},t.isAllowedSegRadiusEdit=function(e){var n,r;if(t.getSegsType([e])!==v.SegType.Straight)return!1;const{previous:o,next:i}=e;return!(null===(n=null==o?void 0:o.handleOut)||void 0===n?void 0:n.length)&&!(null===(r=null==i?void 0:i.handleIn)||void 0===r?void 0:r.length)},t.getSegType=e=>{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(o<t){const n=Math.ceil((t-o)/2);e[0].x-=n,e[3].x-=n,e[1].x+=n,e[2].x+=n}if(i<t){const n=Math.ceil((t-i)/2);e[0].y-=n,e[1].y-=n,e[2].y+=n,e[3].y+=n}},t.centerRotatePoints=function(e,t,n){return n&&(e=(e=r.offsetPoints(e,{x:-t.x,y:-t.y})).map(e=>r.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<o&&(o=t,n=r.getEnumValue(i,s))}),n},t.isChineseFont=function(e){return/[\u4e00-\u9fa5]/.test(e)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.isTextEditorType=void 0,function(e){e[e.PureText=0]="PureText",e[e.ListItemPureTextValues=1]="ListItemPureTextValues",e[e.RichText=2]="RichText",e[e.Image=3]="Image",e[e.Snapshot=4]="Snapshot",e[e.Icon=5]="Icon",e[e.Bool=6]="Bool",e[e.Video=7]="Video",e[e.Audio=8]="Audio",e[e.Object=9]="Object",e[e.Svg=10]="Svg",e[e.ItemValue=11]="ItemValue",e[e.Tree=12]="Tree"}(r||(r={})),t.default=r,t.isTextEditorType=function(e){return e===r.PureText||e===r.RichText}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOSSystem=t.getDevicePixelRatio=t.isIE=t.isShareFrame=t.isIframe=t.isMockRPD=t.isElectron=t.isFireFox=t.isMacOS=void 0;const r=window.navigator.userAgent,o=-1!==r.indexOf("Macintosh"),i=-1!==r.indexOf("Firefox"),a=-1!==r.toLowerCase().indexOf(" electron");var s;!function(e){e.macOS="macOS",e.Windows="windows",e.Android="android",e.Linux="linux",e.iOS="ios",e.Unknown="unknown"}(s||(s={})),t.isMacOS=o,t.isFireFox=i,t.isElectron=a,t.isMockRPD=r.includes("mockRPD"),t.isIframe=window.self!==window.top,t.isShareFrame="true"===new URLSearchParams(location.search).get("isFrame"),t.isIE=()=>{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<i.length;r++)n=i[r],t.indexOf(n)>=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<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(41),o=n(118);e.exports=n(39)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(21),o=n(65),i=n(71),a=n(119)("src"),s=n(646),l=(""+s).split("toString");n(79).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(e,t,n){var r=n(5),o=n(27),i=n(89),a=/"/g,s=function(e,t,n,r){var o=String(i(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+"</"+t+">"};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;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";var r=n(117),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=p(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=h(n,v);try{c(t,v,y)}catch(e){}}}}return t}},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(54);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?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<r;e++)if(n.includes(t[e]))return!0;return!1}(e,l)?c.push(e):u.push(e)});const d=a(c,t);return a(u,t).forEach(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<e.length;n++){const o=e[n],i=!t||t(o);if(o.type===r.NodeType.Page&&i)return o;if(o.children){const e=l(o.children,t);if(e)return e}}return null}function c(e,t=[]){return e.forEach(e=>{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<e.length;n++){const r=e[n];if(r._id===t)return r;if(r.children){const e=d(r.children,t);if(e)return e}}return null}function h(e,t=[]){const n=e.parent;return(null==n?void 0:n.hidden)&&t.push(n),(null==n?void 0:n.parent)?h(n,t):t}!function(e){e[e.Normal=0]="Normal",e[e.Deleted=3]="Deleted"}(o=t.NodeState||(t.NodeState={})),t.parseNodesToTree=a,t.parseNodeToTreeByState=s,t.parseNodesWithArtboardsToTreeByState=function(e,t){const n=s(e).realNodes,r=[];return function e(t,n,r){t.forEach(t=>{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;o<t.length;o++){const i=t[o];if(i._id===n)return{parent:r,index:o};if(i.children){const t=e(i.children,n,i);if(-1!==t.index)return t}}return{parent:r,index:-1}},t.renameNodeOfTree=function e(t,n,r){return t.map(t=>t._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;r<t.length;r++){const o=t[r];if(n.includes(o._id))return t.filter(e=>n.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<t.children.length;r++)if(e(t.children[r],n))return!0;return!1},t.getAllPageCount=function(e){let t=0;const n=e=>{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<r?n<e&&e<=r:e>=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<e.length/2;t++)n.push({x:e[2*t]+r,y:e[2*t+1]+o});return n}function y(e,t={offsetX:0,offsetY:0}){const n=[],{offsetX:r,offsetY:o}=t;for(let t=0;t<e.length/2;t++)n.push(e[2*t]+r,e[2*t+1]+o);return n}function b(e){const t=[];for(let n=e.length/2-1;n>=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.y<t.y?"arrow-down":"arrow-up":o.sameNumber(e.y,t.y)?e.x>t.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(;s<r-1;){if(l>a){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(;r<n.length-1&&o<n.length;){const e=n[r],t=n[o];e.x===t.x&&e.y===t.y&&(r>1&&o<n.length-2?i.push(r,o):i.push(o)),r++,o++}return n.filter((e,t)=>!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.y<n.y&&(r.y+=t.DELTA),e.x===n.x&&e.y>n.y&&(r.y-=t.DELTA),e.y===n.y&&e.x<n.x&&(r.x+=t.DELTA),e.y===n.y&&e.x>n.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<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-down"===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=[]),"start"!==r&&(i=b(i)),i=E(i,{removeSamePoint:!0,beginCursor:1,endCursor:2}),i.length<8&&(i=[]),i}function z(e,t,n){var r,o;const{startPoint:i,endPoint:s,path:l}=e.value,c=Object.assign({},i),u=Object.assign({},s);let d=[];if(t.id===i.id){const n=w(t,i.direction);c.x=n.x,c.y=n.y,l&&!(null===(r=e.parent)||void 0===r?void 0:r.isGroup)&&(d=R(l,c,"start"))}if(t.id===s.id){const n=w(t,s.direction);u.x=n.x,u.y=n.y,l&&!(null===(o=e.parent)||void 0===o?void 0:o.isGroup)&&(d=R(l,u,"end"))}d.length?n.do[e.id]=[a.Ops.replace("/value",{startPoint:c,endPoint:u,path:d})]:n.do[e.id]=[a.Ops.replace("/value",{startPoint:c,endPoint:u})],n.undo[e.id]=[a.Ops.replace("/value",e.value)]}t.DELTA=15,t.getPathPlannerOfContainer=function(e,n){const{bigBounds:r}=function(e){const n=i.union(...e.components.filter(e=>!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.length/2;e++)0!==e?a.push(`L ${i[2*e]} ${i[2*e+1]}`):a.push(`M ${i[e]} ${i[e+1]}`);return a.join(" ")},t.getPathControlPoints=function(e,t){const n=v(S(e,t)),r=[];for(let e=0;e<n.length;e++){const t=n[e].x,i=n[e].y;if(e+1<n.length){const a=n[e+1].x,s=n[e+1].y;let l=o.min(t,a)+o.abs(a-t)/2,c=o.min(i,s)+o.abs(s-i)/2;const u=t===a?"horizontal":"vertical";0===e&&("horizontal"===u?c=i:l=t),e===n.length-2&&("horizontal"===u?c=s:l=a),r.push({x:l,y:c,direction:u})}}return{centerPoints:r,startControl:r[0],endControl:r[n.length-2]}},t.getMidpointWithPath=function(e){let t=0,n=[];const r=v(e,{offsetX:0,offsetY:0});for(let e=0,i=r.length;e<i-1;e++){const i=r[e],a=r[e+1];t+=o.abs(i.x-a.x)+o.abs(i.y-a.y),n.push(t)}const i=t/2;let a=0,s=0;for(;a<n.length-1;){if(n[a]<i&&n[a+1]>=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<i.length/2-1){const e=i[s],t=i[l];o.abs(i[c]-e)<r&&(i[c]=i[u]=e),o.abs(i[u]-t)<r&&(i[c]=i[u]=t)}return i},t.autoAdsorptionWithDirection=function(e,t,n,r=5){let o=[...e];const i=e.length;if(t===i/2-4&&i>=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)<r||!c&&P(t,a)<r)&&("horizontal"===n?o.splice(i-8,4,t.x,l.y,t.x,t.y):o.splice(i-8,4,l.x,t.y,t.x,t.y))}if(2===t&&i>=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)<r||!l&&P(t,a)<r)&&("horizontal"===n?o.splice(4,4,t.x,t.y,t.x,s.y):o.splice(4,4,t.x,t.y,s.x,t.y))}return o},t.shouldModifyStartPointForDirection=function(e,t,n){if(t.length>=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||r<o)return;if(n>o&&r<i)return;if(o>n&&i<r)return;if(n<o&&r>o)return[{x:o,y:t[0].y}];if(r>i&&n<i)return[{x:i,y:t[0].y}]}}else{if("vertical"!==n||"vertical"!==r){if("vertical"===n&&"horizontal"===r){const n=t[0].y,r=e[0].x,{minY:o,maxY:i}=s.getMinMaxXY(e),{minX:a,maxX:l}=s.getMinMaxXY(t);return n<=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||r<o)return;if(n>o&&r<i)return;if(o>r&&i<r)return;if(n<o&&r>o)return[{x:t[0].x,y:o}];if(r>i&&n<i)return[{x:t[0].x,y:i}]}}},t.modifyPathWithOffset=function(e,t){let{startPoint:n,endPoint:r,path:o}=e.value;n.x+=t.x,n.y+=t.y,r.x+=t.x,r.y+=t.y,(null==o?void 0:o.length)&&(e.value.path=y(o,{offsetX:t.x,offsetY:t.y}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(12),i=n(24);t.default=class{constructor(e,t){this.originParams={},this.fulfilled=!1,this.getCacheOriginParams=e=>this.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;e<a.length&&s;e++){if(!r.isObject(l)){s=!1;break}if(l=l[a[e]],r.isUndefined(l)){s=!1;break}}return s?`/states/${n}/${e}`:"/"+e}get afterEvent(){}}},function(e,t,n){var r=n(608),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";if(n(39)){var r=n(110),o=n(21),i=n(27),a=n(5),s=n(198),l=n(270),c=n(80),u=n(125),d=n(118),h=n(65),p=n(127),f=n(82),m=n(38),g=n(357),v=n(121),y=n(88),b=n(71),w=n(145),C=n(31),_=n(45),x=n(259),S=n(122),k=n(74),P=n(123).f,T=n(261),E=n(119),O=n(37),M=n(91),A=n(188),D=n(170),I=n(264),L=n(147),N=n(193),j=n(124),R=n(263),z=n(346),F=n(41),B=n(73),H=F.f,V=B.f,Y=o.RangeError,W=o.TypeError,U=o.Uint8Array,K=Array.prototype,G=l.ArrayBuffer,q=l.DataView,$=M(0),X=M(2),J=M(3),Z=M(4),Q=M(5),ee=M(6),te=A(!0),ne=A(!1),re=I.values,oe=I.keys,ie=I.entries,ae=K.lastIndexOf,se=K.reduce,le=K.reduceRight,ce=K.join,ue=K.sort,de=K.slice,he=K.toString,pe=K.toLocaleString,fe=O("iterator"),me=O("toStringTag"),ge=E("typed_constructor"),ve=E("def_constructor"),ye=s.CONSTR,be=s.TYPED,we=s.VIEW,Ce=M(1,(function(e,t){return Pe(D(e,e[ve]),t)})),_e=i((function(){return 1===new U(new Uint16Array([1]).buffer)[0]})),xe=!!U&&!!U.prototype.set&&i((function(){new U(1).set({})})),Se=function(e,t){var n=f(e);if(n<0||n%t)throw Y("Wrong offset!");return n},ke=function(e){if(C(e)&&be in e)return e;throw W(e+" is not a typed array!")},Pe=function(e,t){if(!C(e)||!(ge in e))throw W("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return Ee(D(e,e[ve]),t)},Ee=function(e,t){for(var n=0,r=t.length,o=Pe(e,r);r>n;)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;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e){return J(ke(this),e,arguments.length>1?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(;i<o;)this[t+i]=r[i++]},Re={entries:function(){return ie.call(ke(this))},keys:function(){return oe.call(ke(this))},values:function(){return re.call(ke(this))}},ze=function(e,t){return C(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Fe=function(e,t){return ze(e,t=y(t,!0))?d(2,e[t]):V(e,t)},Be=function(e,t,n){return!(ze(e,t=y(t,!0))&&C(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?H(e,t,n):(e[t]=n.value,e)};ye||(B.f=Fe,F.f=Be),a(a.S+a.F*!ye,"Object",{getOwnPropertyDescriptor:Fe,defineProperty:Be}),i((function(){he.call({})}))&&(he=pe=function(){return ce.call(this)});var He=p({},Le);p(He,Re),h(He,fe,Re.values),p(He,{slice:Ne,set:je,constructor:function(){},toString:he,toLocaleString:Ie}),Oe(He,"buffer","b"),Oe(He,"byteOffset","o"),Oe(He,"byteLength","l"),Oe(He,"length","e"),H(He,me,{get:function(){return this[be]}}),e.exports=function(e,t,n,l){var c=e+((l=!!l)?"Clamped":"")+"Array",d="get"+e,p="set"+e,f=o[c],v=f||{},y=f&&k(f),b=!f||!s.ABV,_={},x=f&&f.prototype,T=function(e,n){H(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[d](n*t+r.o,_e)}(this,n)},set:function(e){return function(e,n,r){var o=e._d;l&&(r=(r=Math.round(r))<0?0:r>255?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)});d<s;)T(e,d++)})),x=f.prototype=S(He),h(x,"constructor",f)):i((function(){f(1)}))&&i((function(){new f(-1)}))&&N((function(e){new f,new f(null),new f(1.5),new f(e)}),!0)||(f=n((function(e,n,r,o){var i;return u(e,f,c),C(n)?n instanceof G||"ArrayBuffer"==(i=w(n))||"SharedArrayBuffer"==i?void 0!==o?new v(n,Se(r,t),o):void 0!==r?new v(n,Se(r,t)):new v(n):be in n?Ee(f,n):Me.call(f,n):new v(g(n))})),$(y!==Function.prototype?P(v).concat(P(y)):P(v),(function(e){e in f||h(f,e,v[e])})),f.prototype=x,r||(x.constructor=f));var E=x[fe],O=!!E&&("values"==E.name||null==E.name),M=Re.values;h(f,ge,!0),h(x,be,c),h(x,we,!0),h(x,ve,f),(l?new f(1)[me]==c:me in x)||H(x,me,{get:function(){return c}}),_[c]=f,a(a.G+a.W+a.F*(f!=v),_),a(a.S,c,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*i((function(){v.of.call(f,1)})),c,{from:Me,of:Ae}),"BYTES_PER_ELEMENT"in x||h(x,"BYTES_PER_ELEMENT",t),a(a.P,c,Le),j(c),a(a.P+a.F*xe,c,{set:je}),a(a.P+a.F*!O,c,Re),r||x.toString==he||(x.toString=he),a(a.P+a.F*i((function(){new f(1).slice()})),c,{slice:Ne}),a(a.P+a.F*(i((function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()}))||!i((function(){x.toLocaleString.call([1,2])}))),c,{toLocaleString:Ie}),L[c]=O?E:M,r||O||h(x,fe,M)}}else e.exports=function(){}},function(e,t,n){var r=n(352),o=n(5),i=n(166)("metadata"),a=i.store||(i.store=new(n(355))),s=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new r)}var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}return i};e.exports={store:a,map:s,has:function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){s(n,r,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){o(o.S,"Reflect",e)}}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.includeEnum=t.subtractEnum=t.enumToArray=t.getEnumValue=t.getEnumName=void 0,t.getEnumName=function(e,t){if("object"==typeof e)for(let n in e)if(e[n]===t)return n;return""},t.getEnumValue=function(e,t){for(let n in e)if(n===t)return e[n];return null},t.enumToArray=function(e){const t=[];if("object"==typeof e)for(let n in e){const r=e[n];t.push(r)}return t},t.subtractEnum=function(e,...t){const n=Array.from(t),r=[...e];return n.forEach(e=>{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__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function s(){i(a)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},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);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=v(0,0,0,0);function h(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function f(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=u(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=h(r.width),l=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=p(r,"left","right")+i),Math.round(l+a)!==n&&(l-=p(r,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var c=Math.round(s+i)-t,f=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(f)&&(l-=f)}return v(o.left,o.top,s,l)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?m(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):f(e):d}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,o,i,a,s,l,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);c(this,{target:e,contentRect:u})},w=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},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("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(331),o=n(247).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(21),o=n(41),i=n(39),a=n(37)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(80),o=n(344),i=n(259),a=n(19),s=n(38),l=n(261),c={},u={};(t=e.exports=function(e,t,n,d,h){var p,f,m,g,v=h?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(p=s(e.length);p>b;b++)if((g=t?y(a(f=e[b])[0],f[1]):y(e[b]))===c||g===u)return g}else for(m=v.call(e);!(f=m.next()).done;)if((g=o(m,y,f.value,t))===c||g===u)return g}).BREAK=c,t.RETURN=u},function(e,t,n){var r=n(66);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(31);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoClearLocalStorage=t.loadFromCache=t.saveToCahche=t.getAppCache=t.setAppCache=void 0;const r=n(365);t.setAppCache=function(e,t,n){return window.localStorage.setItem(`rp_app_cache_${e}-${t}`,JSON.stringify(n))},t.getAppCache=function(e,t){const n=window.localStorage.getItem(`rp_app_cache_${e}-${t}`);if(!n)return null;try{return JSON.parse(n)}catch(e){console.error(e)}return null};let o=!0;function i(){window.localStorage&&(window.localStorage.length>(window.debug?20:80)&&r.free(),o=!1)}t.saveToCahche=function(e,t){try{o&&i(),window.localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error(e)}},t.loadFromCache=function(e,t){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch(e){return t||n}return t},t.autoClearLocalStorage=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCell=t.DefalutColumn=t.DefalutRow=t.DefalutCellStyle=t.DefalutTableOuterStroke=t.DefalutTableStroke=t.DefaultCellPadding=t.MaxColumnsCount=t.MaxRowsCount=t.MinCellWidth=t.MinCellHeight=t.DefaultCellWidth=t.DefaultCellHeight=void 0;const r=n(149),o=n(48),i=n(23),a=n(20);t.DefaultCellHeight=30,t.DefaultCellWidth=80,t.MinCellHeight=20,t.MinCellWidth=20,t.MaxRowsCount=300,t.MaxColumnsCount=50,t.DefaultCellPadding=4,t.DefalutTableStroke={disabled:!1,thickness:1,color:a.DefaultTableInnerStrokeColor,dashModel:i.PresetDashModel.solid},t.DefalutTableOuterStroke={disabled:!1,thickness:1,color:a.DefaultTableOuterStrokeColor,dashModel:i.PresetDashModel.solid},t.DefalutCellStyle={textAlign:o.TextAlign.left,verticalAlign:o.VerticalAlign.middle,fill:a.DefaultWhiteFillColor,wrap:!0,border:{top:t.DefalutTableStroke,bottom:t.DefalutTableStroke,left:t.DefalutTableStroke,right:t.DefalutTableStroke}},t.DefalutRow={height:t.DefaultCellHeight,selected:!1},t.DefalutColumn={width:80,type:r.CellTypes.Text,data:{text:""},dataSource:[],style:t.DefalutCellStyle,mergeAcross:0,mergeDown:0},t.DefaultCell={type:r.CellTypes.Text,data:{text:""},dataSource:[],style:t.DefalutCellStyle,mergeAcross:0,mergeDown:0}},function(e,t,n){"use strict";(function(t){var r=n(271);
|
|
|
/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/function o(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=n(173),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function d(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function f(e){if(a.isFunction(e)){if(c)return e.name;var t=e.toString().match(p);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(c||!a.isFunction(e))return a.inspect(e);var t=f(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,n,r,o){throw new h.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:o})}function y(e,t){e||v(e,!0,t,"==",h.ok)}function b(e,t,n,r){if(e===t)return!0;if(i(e)&&i(t))return 0===o(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(d(e)&&d(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var s=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=w(e),i=w(t);if(o&&!i||!o&&i)return!1;if(o)return e=l.call(e),t=l.call(t),b(e,t,n);var s,c,u=x(e),d=x(t);if(u.length!==d.length)return!1;for(u.sort(),d.sort(),c=u.length-1;c>=0;c--)if(u[c]!==d[c])return!1;for(c=u.length-1;c>=0;c--)if(s=u[c],!b(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function C(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,n,r){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&v(o,n,"Missing expected exception"+r);var i="string"==typeof r,s=!e&&o&&!n;if((!e&&a.isError(o)&&i&&C(o,n)||s)&&v(o,n,"Got unwanted exception"+r),e&&o&&n&&!C(o,n)||!e&&o)throw o}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,o=f(t),i=r.indexOf("\n"+o);if(i>=0){var a=r.indexOf("\n",i+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(e,t,n){e!=t&&v(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){_(!0,e,t,n)},h.doesNotThrow=function(e,t,n){_(!1,e,t,n)},h.ifError=function(e){if(e)throw e},h.strict=r((function e(t,n){t||v(t,!0,n,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var x=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(64))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputModelPropertyName=t.InputModel=void 0,function(e){e.normal="normal",e.numeric="numeric",e.password="password"}(t.InputModel||(t.InputModel={})),t.InputModelPropertyName="inputModel"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFootOfPerpendicular=t.getAngleByPoint=t.getCenterPoint=t.getBoundingOfPoints=t.offsetPoint=t.offsetPoints=t.getOffsetByPoints=t.getDeltaForOrderRotate=t.rotatePoint=t.isPointInArea=t.getQuadrilateralArea=t.getTriangleArea=t.moveLineToPoint=t.getRotateOffset=t.getTowPointDis=t.getPointByLine=t.getLineByPoint=void 0;const r=n(131),o=n(7),i=n(8),a=n(28);function s(e,t){let n,o;return r.ok(e.k!==t.k,"平行线无交点"),e.k===1/0?(n=e.b,o=t.k*n+t.b):t.k===1/0?(n=t.b,o=e.k*n+e.b):(n=(t.b-e.b)/(e.k-t.k),o=e.k*n+e.b),{x:n,y:o}}function l(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function c(e,t,n){return{x:Math.hypot(t,e)*Math.cos((180*Math.atan2(-t,e)/Math.PI+n)*Math.PI/180),y:-Math.hypot(t,e)*Math.sin((180*Math.atan2(-t,e)/Math.PI+n)*Math.PI/180)}}function u(e,t){let n;return n=e.k===1/0?t.x:t.y-e.k*t.x,Object.assign(Object.assign({},e),{k:e.k,b:n})}function d(e){const t=l(e[0],e[1]),n=l(e[1],e[2]),r=l(e[2],e[0]),o=t+n+r;return Math.sqrt(.5*o*(.5*o-t)*(.5*o-n)*(.5*o-r))}function h(e){return d([e[0],e[1],e[2]])+d([e[2],e[3],e[0]])}function p(e,t){return{x:e.x+t.x,y:e.y+t.y}}t.getLineByPoint=function(e,t){const n={k:0,b:0,isPoint:!1};return 0===Math.round(e.x-t.x)?(n.k=1/0,n.b=e.x):(n.k=(e.y-t.y)/(e.x-t.x),n.b=e.y-n.k*e.x),n.isPoint=i.sameNumber(e.x,t.x)&&i.sameNumber(t.y,e.y),n},t.getPointByLine=s,t.getTowPointDis=l,t.getRotateOffset=c,t.moveLineToPoint=u,t.getTriangleArea=d,t.getQuadrilateralArea=h,t.isPointInArea=function(e,t){if(e instanceof Array&&4===e.length){const n=d([e[0],e[1],t]),r=d([e[1],e[2],t]),o=d([e[2],e[3],t]),a=d([e[3],e[0],t]),s=h(e);return 0!==s&&i.distance(s,n+r+o+a)<=1}return!1},t.rotatePoint=function(e,t){if(t){const n=2*t*Math.PI/360;return{x:e.x*Math.cos(n)-e.y*Math.sin(n),y:e.x*Math.sin(n)+e.y*Math.cos(n)}}return e},t.getDeltaForOrderRotate=function(e,t,n,r){e/=2,t/=2;const o=Math.hypot(e,t),i=Math.atan2(-t,e)/Math.PI*180,a=(i-n-r)/180*Math.PI,s=(-i-n-r)/180*Math.PI,l=(i-n)/180*Math.PI,c=(-i-n)/180*Math.PI,u=Math.max(Math.abs(Math.sin(a)*o),Math.abs(Math.sin(s)*o)),d=Math.max(Math.abs(Math.cos(a)*o),Math.abs(Math.cos(s)*o)),h=Math.max(Math.abs(Math.sin(l)*o),Math.abs(Math.sin(c)*o)),p=Math.max(Math.abs(Math.cos(l)*o),Math.abs(Math.cos(c)*o));return{left:p-d,top:h-u,right:d-p,bottom:u-h}},t.getOffsetByPoints=function(e,t,n,r=!0){const s=e.map(e=>c(e.x,e.y,n)),l=t.map(e=>c(e.x,e.y,n)),{left:u,top:d,right:h,bottom:p}=a.getBoundsWithPoints(s),{left:f,top:m,right:g,bottom:v}=a.getBoundsWithPoints(l);return y={left:r?i.round(f-u):f-u,top:r?i.round(m-d):m-d,right:r?i.round(g-h):g-h,bottom:r?i.round(v-p):v-p},o.mapValues(y,e=>i.sameNumber(e,0)?0:e);var y},t.offsetPoints=function(e,t){return e.map(e=>p(e,t))},t.offsetPoint=p,t.getBoundingOfPoints=function(e,t=!0){let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY;e.forEach(e=>{e.x<n&&(n=e.x),e.x>a&&(a=e.x),e.y<r&&(r=e.y),e.y>s&&(s=e.y)});const l=a-n,c=s-r,u={left:n,top:r,width:l,height:c,right:n+l,bottom:r+c};return t?o.mapValues(u,e=>i.round(e)):u},t.getCenterPoint=function(e){let t=0,n=0;return e.forEach(e=>{t+=e.x,n+=e.y}),{x:t/e.length,y:n/e.length}},t.getAngleByPoint=function(e,t){const n=t.x-e.x,r=t.y-e.y,o=Math.hypot(n,r),i=Math.asin(r/o);let a=180/(Math.PI/i);return t.x<e.x&&(a=180-a),a=Math.round((a+360)%360),a},t.getFootOfPerpendicular=function(e,t,n){if(i.sameNumber(t.x,n.x))return{x:t.x,y:e.y};if(i.sameNumber(t.y,n.y))return{x:e.x,y:t.y};const r=(n.y-t.y)/(n.x-t.x),o=-1/r;return s(u({k:r,b:0,isPoint:!1},t),u({k:o,b:0,isPoint:!1},e))}},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.makeShapeBase=void 0;const o=n(0),i=n(2),a=n(8),s=n(32),l=n(23),c=n(48),u=n(14),d=n(50),h=n(42),p=n(20),f=n(20),m=n(6),g=n(55),v=n(33),y=n(898);n(923),t.makeShapeBase=function(e,t,n,o){const i=o||{},{properties:a,states:u,size:g}=i,y=r(i,["properties","states","size"]),b=Object.assign({properties:Object.assign({stroke:{thickness:1,color:p.DefaultStrokeColor1,cap:l.StrokeLineCap.Butt,join:l.StrokeLineJoin.Miter,position:l.StrokePosition.inner,mode:h.default.strokeDashMode,disabled:!1},shadow:d.getDefaultShadow()},a),size:g||{width:100,height:100}},y);return n&&!(null==a?void 0:a.fill)?b.properties.fill={disabled:!1,type:s.FillType.solid,color:f.DefaultWhiteFillColor}:(null==a?void 0:a.fill)||(b.properties.fill={disabled:!0,type:s.FillType.solid,color:f.DefaultWhiteFillColor}),b.properties.textFormat={disabled:!1,fontFamily:"Microsoft YaHei",fontSize:14,textAlign:c.TextAlign.center,color:p.DefaultTextColor,fontStyle:{bold:!1,italic:!1,underline:!1,strike:!1},verticalAlign:c.VerticalAlign.middle,letterSpace:0,lineHeightEx:20,wrap:!0,isMulti:!0},b.properties.padding={disabled:!1,hidden:t===m.CLine,left:0,top:0,right:0,bottom:0},b.states=Object.assign({disabled:{enabled:!1,opacity:30}},u),v.makeCommonComponent(e,t,b)};class b extends o.Component{constructor(){super(...arguments),this.parserTextStyle=e=>{const{properties:t,type:n,libData:r}=e.comp,{multiText:o,textFormat:i,fill:a,stroke:s,shadow:l}=t;let{width:c,height:d}=e.comp.size,h=0;c/=g.FontBoxScale,d/=g.FontBoxScale,s&&!s.disabled&&(h=s.thickness||0);const p=u.StyleHelper.initCSSStyleParser(t),f=n!==m.CLine&&h||0,v={left:f,top:f,right:f,bottom:f};let y=void 0,b=void 0,w=void 0;const C=(null==i?void 0:i.vertical)||(null==o?void 0:o.vertical);if(t.padding){const{left:e,top:n,right:o,bottom:a}=t.padding;"D"===(null==r?void 0:r.shortCut)&&(C&&"right"===(null==i?void 0:i.textAlign)||!C&&"bottom"===(null==i?void 0:i.verticalAlign))&&(v.bottom=(v.bottom+(a||0))/g.FontBoxScale),!1===t.padding.disabled&&(C?(v.top=(v.top+(e||0))/g.FontBoxScale,v.right=(v.right+(n||0))/g.FontBoxScale,v.bottom=(v.bottom+(o||0))/g.FontBoxScale,v.left=(v.left+(a||0))/g.FontBoxScale):(v.left=(v.left+(e||0))/g.FontBoxScale,v.right=(v.right+(o||0))/g.FontBoxScale,v.bottom=(v.bottom+(a||0))/g.FontBoxScale,v.top=(v.top+(n||0))/g.FontBoxScale))}e.valueEditing?(y=C?void 0:c-v.left-v.right,b=C?d-v.top-v.bottom:void 0):(y=C?void 0:c,b=C?d:void 0,t.overflow&&t.overflow.value&&(w="hidden",C?y=c-v.left-v.right:b=d-v.top-v.bottom));let _=!0;a&&!a.disabled||s&&!s.disabled||(_=!1);let x={};return _||(null==l?void 0:l.disabled)||(x=_?p.getShadowStyle():p.getTextShadow(1/g.FontBoxScale)),Object.assign(Object.assign(Object.assign({},p.getTextStyle()),x),{paddingLeft:v.left,paddingTop:v.top,paddingRight:v.right,paddingBottom:v.bottom,maxWidth:y,maxHeight:b,overflow:w})},this.handleSubmit=(e,t,n)=>{const{onValueEdited:r,comp:o}=this.props;if(!n){const e=document.getSelection();e&&e.empty()}r&&r(o,e,{wrap:null==t?void 0:t.wrap},n)},this.handleValueEditing=()=>{const{onValueEditing:e,comp:t}=this.props;e&&e(t)}}renderTextFragment(e,t,n){var r,o,s,l;const{comp:c,valueEditing:u,isPreview:d}=this.props;if(!(e&&n||u))return null;let{width:h,height:p}=c.size;const{multiText:f,textStyle:m,textFormat:v}=t,b=(null==v?void 0:v.wrap)||(null==f?void 0:f.wrap),w=null===(r=v||f)||void 0===r?void 0:r.vertical,C=(null==v?void 0:v.verticalAlign)||(null==m?void 0:m.verticalAlign)||"middle",_=a.depthClone(this.state.textStyle),x=(null===(o=v||m)||void 0===o?void 0:o.fontSize)||14,S=(null===(s=v||m)||void 0===s?void 0:s.letterSpace)||0,k=(null==v?void 0:v.lineHeightEx)||c.lineHeight||20,P=["top","center","bottom"];let T=C;if(_){if(_.transition=c.getTransition(),_.fontSize=x/g.FontBoxScale,_.lineHeight=k/g.FontBoxScale+"px",_.letterSpacing=S/g.FontBoxScale,_.transform="scale("+g.FontBoxScale+")",_.left=0,P.includes(T)||(T="center"),w){switch(_.height=p/g.FontBoxScale+"px",_.transformOrigin="left top",_.width=void 0,T){case"top":_.right=0,_.left=void 0,_.transformOrigin="right top";break;case"center":_.transform+=" translateX(-50%)"}_.top="50%",_.transform+=" translateY(-50%)"}else _.width=h/g.FontBoxScale+"px",_.height=void 0,_.transformOrigin="left "+T,_.left="50%","line"===c.type?(_.transformOrigin="left top",_.transform+=" translate(-50%, -50%)"):(_.transform+=" translateX(-50%)","center"===T&&(_.transform+=" translateY(-"+50/g.FontBoxScale+"%)"));"drops"===(null===(l=c.lib)||void 0===l?void 0:l.type)&&(_.top="37%")}return y.createShapeCompTextFragment(c,e||" ",{onChanged:this.handleSubmit,onChanging:this.handleValueEditing,editing:u,wrap:b,style:_,opacity:n,className:i.default("lib-shape-comp-text",C,{wrap:b,vertical:w,editing:u,normal:!d&&!u,preview:d})})}render(){return null}}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupManager=void 0;const r=n(0),o=n(75),i=n(8);var a;!function(e){e.manager=new class{constructor(){this.popupPanel=[],this._locked=!1,this._canClose=!0}locked(){this._locked=!0}closeLastPopup(){if(i.isInputting())return;if(this._locked)return void(this._locked=!1);let e=void 0;for(let t=this.count-1;t>=0;t--)this.popupPanel[t].preventClose||(e=this.popupPanel[t]);e&&e.props.onClose&&e.props.onClose()}closeAll(){this.popupPanel.forEach(e=>{!e.preventClose&&e.props.onClose&&e.props.onClose()})}closeAllUnModal(){const e=this.popupPanel.filter(e=>!e.isModal&&!e.preventClose);for(;e.length;){const t=e.pop();t&&t.props.onClose&&t.props.onClose()}}getLastModal(){for(let e=this.popupPanel.length-1;e>=0;e--)if(this.popupPanel[e].isModal)return this.popupPanel[e];return null}getLastPanel(){const e=this.popupPanel.length;return e?this.popupPanel[e-1]:null}isLast(e){return e===this.popupPanel[this.count-1]}get count(){return this.popupPanel.length}get modalCount(){return this.popupPanel.filter(e=>e.isModal).length}get canClose(){return this._canClose}set canClose(e){this._canClose=e}addPopup(e){this.popupPanel.includes(e)||this.popupPanel.push(e)}remove(e){const t=this.popupPanel.indexOf(e);-1!==t&&this.popupPanel.splice(t,1)}}}(a=t.PopupManager||(t.PopupManager={})),t.default=function(e){return class extends r.Component{constructor(e){super(e),this.isModal=!1,this.doClose=()=>{const e=this.preventClose;this.props.onClose&&this.isLast&&!e&&this.props.onClose()},this.onWindowKeyDown=e=>{"Escape"===e.key&&(this.timeID=window.setTimeout(this.doClose,0))},this.onWindowMouseDown=e=>{try{if(this.props.triggerCloseContainer){const t=this.props.triggerCloseContainer.getBoundingClientRect();if(t.left>e.pageX||t.right<e.pageX||t.top>e.pageY||t.bottom<e.pageY)return}this.domRef.current&&e.buttons===o.MouseButtons.Left&&(this.domRef.current.contains(e.target)?this.isLast=!0:(this.isLast=a.manager.isLast(this),this.isLast&&!this.preventClose&&(this.timeID=window.setTimeout(()=>{a.manager.canClose&&this.doClose()},20))))}catch(e){console.error(e)}},this.domRef=r.createRef()}componentDidMount(){a.manager.addPopup(this),setTimeout(()=>{window.addEventListener("mousedown",this.onWindowMouseDown,{capture:!0}),window.addEventListener("keydown",this.onWindowKeyDown,!1)},1)}componentWillUnmount(){window.removeEventListener("mousedown",this.onWindowMouseDown,{capture:!0}),window.removeEventListener("keydown",this.onWindowKeyDown,!1),a.manager.remove(this),window.clearTimeout(this.timeID)}render(){return r.createElement(e,Object.assign({},this.props,{forwardedRef:this.domRef}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableClipboardHelper=t.moveColumns=t.moveRows=t.updateAreaTopOrLeftBorderShow=t.canMoveColumns=t.canMoveRows=t.getNewIndexAfterMoved=t.getColumnWidth=t.getRowHeight=t.getStyleOfColumn=t.getStyleOfRow=t.makeCompInTable=t.setBorder=t.setFill=t.setVerticalAlign=t.setTextAlign=t.setColumnsWidth=t.setRowsHeight=t.getBoundsOfSelectArea=t.formatCompPropertiesAndValue=t.getAdjacentCells=t.isCellSelected=t.getOutsideCells=t.toRealAreaOfSelectArea=t.getAreaOfCell=t.resetSelectAreaOrigin=t.uniteSelectArea=t.index2String=t.getRowsAndColumnsOfSelectArea=t.getAllCellsOfSelectArea=t.findCell=t.removeColumn=t.pushColumns=t.unshiftColumns=t.removeRow=t.pushRows=t.unshiftRows=t.splitCells=t.mergeCells=t.canRemoveColumns=t.canRemoveRows=t.canSplitCells=t.canMergeCells=t.prorateDistribution=t.updateValueWithTableSizeDiff=t.parserMergeBorder=t.verticalAlign2Flex=t.textAlign2Flex=t.getTableMinSizeFromValue=t.getTableSizeFromValue=void 0;const r=n(148),o=n(7),i=n(149),a=n(8),s=n(130),l=n(7),c=n(6),u=n(213),d=n(28),h=n(30),p=n(14),f=n(18),m=n(43),g=n(8),v=n(4);t.getTableSizeFromValue=e=>{const{rows:t,columns:n,showHeader:r,headerHeight:o}=e,i=n.map(e=>e.width).reduce((e,t)=>e+t);let a=t.map(e=>e.height).reduce((e,t)=>e+t);return r&&(a+=o),{width:i,height:a}},t.getTableMinSizeFromValue=e=>{const{rows:t,columns:n,showHeader:r}=e,o=n.length*s.MinCellWidth;let i=t.length*s.MinCellHeight;return r&&(i+=s.MinCellHeight),{width:o,height:i}},t.textAlign2Flex=e=>{switch(e){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return"flex-start"}},t.verticalAlign2Flex=e=>{switch(e){case"top":return"flex-start";case"middle":return"center";case"bottom":return"flex-end";default:return"flex-start"}},t.parserMergeBorder=(e,n,r,o={rowLine:!0,columnLine:!0})=>{const{style:{border:i},mergeAcross:s,mergeDown:l,mergedBy:c}=n,u=a.jsonClone(i);if(s+l)s&&(u.right.disabled=!0),l&&(u.bottom.disabled=!0);else if(c){const[n,o]=c,i=t.findCell(e,{row:o,column:n});i&&(r.column!==n&&(u.left.disabled=!0),r.column!==n+i.mergeAcross&&(u.right.disabled=!0),r.row!==o&&(u.top.disabled=!0),r.row!==o+i.mergeDown&&(u.bottom.disabled=!0))}const{rowLine:d,columnLine:h}=o;return d||(u.top.disabled=!0,u.bottom.disabled=!0),h||(u.left.disabled=!0,u.right.disabled=!0),u},t.updateValueWithTableSizeDiff=(e,n)=>{const r=a.jsonClone(e);if(!n.height&&!n.width)return r;const{rows:o,showHeader:i,columns:c}=r,u=c.map((e,t)=>({index:t,data:e.width})),d=t.prorateDistribution(u,n.width,s.MinCellWidth),h=o.map((e,t)=>({index:t,data:e.height}));i&&h.unshift({index:-1,data:r.headerHeight});const p=t.prorateDistribution(h,n.height,s.MinCellHeight);if(r.rows.forEach((e,t)=>{const n=p.find(e=>e.index===t);l.isUndefined(n)||(e.height=n.data)}),i){const e=p.find(e=>-1===e.index);l.isUndefined(e)||(r.headerHeight=e.data)}return r.columns.forEach((e,t)=>{const n=d.find(e=>e.index===t);l.isUndefined(n)||(e.width=n.data)}),r},t.prorateDistribution=(e,t,n=0)=>{const r=a.jsonClone(e).sort((e,t)=>e.data-t.data);let o=r.reduce((e,t)=>({index:0,data:e.data+t.data})).data;const i=Math.max(n*e.length-o,t);let s=0,l=i;if(i<0)for(let e=0;e<r.length;e++){const t=r.slice(0,e),a=r.slice(e,r.length);let c=i-(0===t.length?0:n*t.length-t.reduce((e,t)=>({index:0,data:e.data+t.data})).data);const u=0===a.length?0:a.reduce((e,t)=>({index:0,data:e.data+t.data})).data;if(r[e].data+c*r[e].data/u>=n){s=e,o=u,l=c;break}}r.forEach((e,t)=>{if(t<s)e.data=n;else{const n=e.data+l*r[t].data/o;e.data=n}});let c=0;r.forEach(e=>{const t=Math.floor(e.data);c+=e.data-t,e.data=t});for(let e=r.length-1;e>=0&&c>0;e--)c<1?(r[e].data=r[e].data+c,c=0):(r[e].data=r[e].data+1,c-=1);return r},t.canMergeCells=(e,n)=>{if(-1===n.start.row&&n.end.row>-1)return!1;const r=t.getAllCellsOfSelectArea(e,n);return!(r.length<2)&&!r.some(e=>{const{mergedBy:t,mergeAcross:n,mergeDown:r}=e.cell;return t||n||r})},t.canSplitCells=(e,n)=>t.getAllCellsOfSelectArea(e,n).some(e=>e.cell.mergeAcross||e.cell.mergeDown||e.cell.mergedBy),t.canRemoveRows=(e,t)=>{const n=Array.from(new Set(t)).sort((e,t)=>e-t),r=e.showHeader?e.rows.length+1:e.rows.length;return n.length<r},t.canRemoveColumns=(e,t)=>Array.from(new Set(t)).sort((e,t)=>e-t).length<e.columns.length,t.mergeCells=(e,n)=>{const r=a.jsonClone(e);t.resetSelectAreaOrigin(n);const o=t.findCell(r,n.start);o&&(o.mergeDown=n.end.row-n.start.row,o.mergeAcross=n.end.column-n.start.column);return t.getAllCellsOfSelectArea(r,n).forEach(e=>{const{cell:t}=e;t.mergeAcross||t.mergeDown||(t.mergedBy=[n.start.column,n.start.row],t.type=a.jsonClone(s.DefaultCell.type),t.data=a.jsonClone(s.DefaultCell.data),t.dataSource=a.jsonClone(s.DefaultCell.dataSource))}),r},t.splitCells=(e,n)=>{const r=a.jsonClone(e);return t.getAllCellsOfSelectArea(r,n).filter(e=>e.cell.mergeAcross||e.cell.mergeDown||e.cell.mergedBy).forEach(e=>{const{cell:n,position:o}=e,i=t.getAreaOfCell(r,n,o),l=t.getAllCellsOfSelectArea(r,i),c=l.find(e=>e.cell.mergedBy);l.forEach(e=>{e.cell.mergeAcross=0,e.cell.mergeDown=0,e.cell.mergedBy=void 0,c&&e!==c&&(e.cell.style=Object.assign(Object.assign({},a.jsonClone(c.cell.style)),{border:e.cell.style.border}),e.cell.data=a.jsonClone(s.DefaultCell.data),e.cell.dataSource=a.jsonClone(s.DefaultCell.dataSource),e.cell.type=a.jsonClone(s.DefaultCell.type))})}),r},t.unshiftRows=(e,n,r)=>{const o=a.jsonClone(e),i={start:{row:n,column:0},end:{row:n,column:o.columns.length-1}},l=t.getAllCellsOfSelectArea(o,i),c=a.jsonClone(new Array(r).fill(new Array(o.columns.length).fill(s.DefaultCell))),u=a.jsonClone(new Array(r).fill(s.DefalutRow));return P(o,n,c,u),b(l,n,c,o,r),o.cells.splice(n,0,...c),o.rows.splice(n,0,...u),o},t.pushRows=(e,n,r)=>{const o=a.jsonClone(e),i=a.jsonClone(new Array(r).fill(new Array(o.columns.length).fill(s.DefaultCell))),l=a.jsonClone(new Array(r).fill(s.DefalutRow));let c;if(P(o,n-1,i,l),n<o.rows.length){c={start:{row:n,column:0},end:{row:n,column:o.columns.length-1}};b(t.getAllCellsOfSelectArea(o,c),n,i,o,r)}return o.cells.splice(n,0,...i),o.rows.splice(n,0,...l),o},t.removeRow=(e,n)=>{const r=a.jsonClone(e);if(-1===n){r.showHeader=!1,r.headerHeight=s.DefaultCellHeight;const e=a.jsonClone(new Array(r.columns.length).fill(s.DefalutColumn));e.forEach((e,t)=>{var n;e.width=(null===(n=r.columns[t])||void 0===n?void 0:n.width)||s.DefaultCellWidth}),r.columns=e}else{const e={start:{row:n,column:0},end:{row:n,column:r.columns.length-1}};if(t.getAllCellsOfSelectArea(r,e).forEach(e=>{const{mergedBy:o}=e.cell;if(o&&o[1]<n&&o[0]===e.position.column){const e={row:o[1],column:o[0]},n=t.findCell(r,e);(null==n?void 0:n.mergeDown)&&(n.mergeDown=n.mergeDown-1)}}),n<r.rows.length-1){const e={start:{row:n+1,column:0},end:{row:r.rows.length-1,column:r.columns.length-1}};t.getAllCellsOfSelectArea(r,e).forEach(e=>{const{cell:o,position:i}=e;if(o.mergedBy)if(o.mergedBy[1]===n){const e={row:o.mergedBy[1],column:o.mergedBy[0]},n=t.findCell(r,e);1===(null==n?void 0:n.mergeDown)&&0===n.mergeAcross?o.mergedBy=void 0:n&&i.row===e.row+1&&i.column===e.column&&(o.mergedBy=void 0,o.mergeDown=n.mergeDown-1,o.mergeAcross=n.mergeAcross)}else o.mergedBy[1]>n&&(o.mergedBy=[o.mergedBy[0],o.mergedBy[1]-1])})}r.rows.splice(n,1),r.cells.splice(n,1)}return r},t.unshiftColumns=(e,n,r)=>{const o=a.jsonClone(e),i={start:{row:-1,column:n},end:{row:o.rows.length-1,column:n}},l=t.getAllCellsOfSelectArea(o,i),c=a.jsonClone(new Array(r).fill(s.DefalutColumn)),u=a.jsonClone(new Array(o.rows.length).fill(new Array(r).fill(s.DefaultCell)));k(o,n,u,c);const d=[];return l.forEach(e=>{const{mergedBy:t,style:r}=e.cell;if(t&&t[0]<n){-1===e.position.row?c.forEach(e=>{e.mergedBy=t}):u[e.position.row].forEach(e=>{e.mergedBy=a.jsonClone(t),e.style=a.jsonClone(r)});const n={row:t[1],column:t[0]};d.some(e=>a.isEqualDate(e,n))||d.push(n)}}),d.forEach(e=>{const n=t.findCell(o,e);n&&n.mergeAcross&&(n.mergeAcross=n.mergeAcross+r)}),o.cells.forEach(e=>{e.forEach(e=>{e.mergedBy&&e.mergedBy[0]>=n&&(e.mergedBy=[e.mergedBy[0]+r,e.mergedBy[1]])})}),o.columns.forEach(e=>{e.mergedBy&&e.mergedBy[0]>=n&&(e.mergedBy=[e.mergedBy[0]+r,e.mergedBy[1]])}),o.cells.forEach((e,t)=>{e.splice(n,0,...u[t])}),o.columns.splice(n,0,...c),o},t.pushColumns=(e,n,r)=>{const o=a.jsonClone(e),i=a.jsonClone(new Array(r).fill(s.DefalutColumn)),l=a.jsonClone(new Array(o.rows.length).fill(new Array(r).fill(s.DefaultCell)));let c;if(k(o,n-1,l,i),n<=o.columns.length){c={start:{row:-1,column:n},end:{row:o.rows.length-1,column:n}};const e=t.getAllCellsOfSelectArea(o,c),s=[];e.forEach(e=>{const{mergedBy:t,style:r}=e.cell;if(t&&t[0]<n){-1===e.position.row?i.forEach(e=>{e.mergedBy=t}):l[e.position.row].forEach(e=>{e.mergedBy=a.jsonClone(t),e.style=a.jsonClone(r)});const n={row:t[1],column:t[0]};s.some(e=>a.isEqualDate(e,n))||s.push(n)}}),s.forEach(e=>{const n=t.findCell(o,e);n&&n.mergeAcross&&(n.mergeAcross=n.mergeAcross+r)}),o.cells.forEach(e=>{e.forEach(e=>{e.mergedBy&&e.mergedBy[0]>=n&&(e.mergedBy=[e.mergedBy[0]+r,e.mergedBy[1]])})}),o.columns.forEach(e=>{e.mergedBy&&e.mergedBy[0]>=n&&(e.mergedBy=[e.mergedBy[0]+r,e.mergedBy[1]])})}return o.cells.forEach((e,t)=>{e.splice(n,0,...l[t])}),o.columns.splice(n,0,...i),o},t.removeColumn=(e,n)=>{const r=a.jsonClone(e),o={start:{row:-1,column:n},end:{row:r.rows.length-1,column:n}};if(t.getAllCellsOfSelectArea(r,o).forEach(e=>{const{mergedBy:o}=e.cell;if(o&&o[0]<n&&o[1]===e.position.row){const e={row:o[1],column:o[0]},n=t.findCell(r,e);(null==n?void 0:n.mergeAcross)&&(n.mergeAcross=n.mergeAcross-1)}}),n<r.columns.length-1){const e={start:{row:-1,column:n+1},end:{row:r.rows.length-1,column:r.columns.length-1}};t.getAllCellsOfSelectArea(r,e).forEach(e=>{const{cell:o,position:i}=e;if(o.mergedBy)if(o.mergedBy[0]===n){const e={row:o.mergedBy[1],column:o.mergedBy[0]},n=t.findCell(r,e);1===(null==n?void 0:n.mergeAcross)&&0===n.mergeDown?o.mergedBy=void 0:n&&i.column===e.column+1&&i.row===e.row&&(o.mergedBy=void 0,o.mergeDown=n.mergeDown,o.mergeAcross=n.mergeAcross-1)}else o.mergedBy[0]>n&&(o.mergedBy=[o.mergedBy[0]-1,o.mergedBy[1]])})}return r.columns.splice(n,1),r.cells.forEach(e=>e.splice(n,1)),r},t.findCell=(e,t)=>{var n;const{row:r,column:o}=t,{columns:i,cells:a}=e;let s;return s=-1===r?i.find((e,t)=>t===o):null===(n=a.find((e,t)=>t===r))||void 0===n?void 0:n.find((e,t)=>t===o),s},t.getAllCellsOfSelectArea=(e,n)=>{const r=[];for(let o=n.start.row;o<=n.end.row;o++)for(let i=n.start.column;i<=n.end.column;i++){const n={row:o,column:i},a=t.findCell(e,n);a&&r.push({cell:a,position:n})}return r},t.getRowsAndColumnsOfSelectArea=e=>{const{start:t,end:n}=e,r=[],o=[];for(let e=t.row;e<=n.row;e++)r.push(e);for(let e=t.column;e<=n.column;e++)o.push(e);return{rows:r,columns:o}},t.index2String=e=>{const t="A".charCodeAt(0),n="Z".charCodeAt(0)-t+1;let r="";for(;e>=0;)r=String.fromCharCode(e%n+t)+r,e=Math.floor(e/n)-1;return r},t.uniteSelectArea=(e,n)=>{t.resetSelectAreaOrigin(e),t.resetSelectAreaOrigin(n);const r=a.jsonClone(e);return e.start={row:Math.min(r.start.row,n.start.row),column:Math.min(r.start.column,n.start.column)},e.end={row:Math.max(r.end.row,n.end.row),column:Math.max(r.end.column,n.end.column)},e},t.resetSelectAreaOrigin=e=>{const t=a.jsonClone(e);e.start.row=Math.min(t.start.row,t.end.row),e.end.row=Math.max(t.start.row,t.end.row),e.start.column=Math.min(t.start.column,t.end.column),e.end.column=Math.max(t.start.column,t.end.column)},t.getAreaOfCell=(e,n,r)=>{const o={start:r,end:r};if(n.mergedBy){o.start={column:n.mergedBy[0],row:n.mergedBy[1]};const r=t.findCell(e,o.start);o.end={column:n.mergedBy[0]+((null==r?void 0:r.mergeAcross)||0),row:n.mergedBy[1]+((null==r?void 0:r.mergeDown)||0)}}else(n.mergeAcross||n.mergeDown)&&(o.end={column:r.column+n.mergeAcross,row:r.row+n.mergeDown});return t.resetSelectAreaOrigin(o),o},t.toRealAreaOfSelectArea=(e,n)=>{const r=a.jsonClone(n),o=t.getOutsideCells(e,n).map(n=>t.getAreaOfCell(e,n.cell,n.position)).reduce((e,n)=>t.uniteSelectArea(e,n));n.start=Object.assign({},o.start),n.end=Object.assign({},o.end),a.isEqualDate(r,n)||t.toRealAreaOfSelectArea(e,n)},t.getOutsideCells=(e,t)=>{const{columns:n,cells:r}=e,{start:o,end:i}=t,a=[];return-1!==o.row&&-1!==i.row||n.forEach((e,t)=>{t>=Math.min(o.column,i.column)&&t<=Math.max(o.column,i.column)&&a.push({cell:e,position:{row:-1,column:t}})}),r.forEach((e,t)=>{e.forEach((e,n)=>{([o.row,i.row].includes(t)&&n>=Math.min(o.column,i.column)&&n<=Math.max(o.column,i.column)||t>Math.min(o.row,i.row)&&t<Math.max(o.row,i.row)&&(n===o.column||n===i.column))&&a.push({cell:e,position:{row:t,column:n}})})}),a},t.isCellSelected=(e,t,n)=>!!n&&(n.start.row<=e&&n.end.row>=e&&n.start.column<=t&&n.end.column>=t),t.getAdjacentCells=(e,n)=>{const{row:r,column:o}=n;return{left:t.findCell(e,{row:r,column:o-1}),right:t.findCell(e,{row:r,column:o+1}),top:t.findCell(e,{row:r-1,column:o}),bottom:t.findCell(e,{row:r+1,column:o})}},t.formatCompPropertiesAndValue=(e,t)=>{const{type:n}=e;let o={},i=e.value;switch(n){case c.CText:{i=r(e.value,{allowedTags:[],allowedAttributes:{}});const n=u.makeText("",i);o=n.properties,o.textFormat=n.properties.textFormat,o.textFormat.verticalAlign=t.verticalAlign,o.textFormat.textAlign=t.textAlign,o.textFormat.wrap=!0;break}default:return}return{newProperties:o,newValue:i}},t.getBoundsOfSelectArea=(e,t)=>{const{rows:n,columns:r,headerHeight:o,showHeader:i}=e,{start:a,end:s}=t;let l=0,c=0;r.forEach((e,t)=>{t<a.column&&(l+=e.width),t<=s.column&&(c+=e.width)});let u=0,h=0;return n.forEach((e,t)=>{t<a.row&&(u+=e.height),t<=s.row&&(h+=e.height)}),i&&(u+=o,h+=o),-1===a.row&&(u-=o),d.init({left:l,top:u},{left:c,top:h})},t.setRowsHeight=(e,t,n)=>{const r=a.jsonClone(e);return t.forEach(e=>{r.rows[e].height=Math.max(n,s.MinCellHeight)}),r},t.setColumnsWidth=(e,t,n)=>{const r=a.jsonClone(e);return t.forEach(e=>{r.columns[e].width=Math.max(n,s.MinCellWidth)}),r},t.setTextAlign=(e,n,r)=>{const o=a.jsonClone(e);return t.getAllCellsOfSelectArea(o,n).forEach(e=>{e.cell.style.textAlign=r}),o},t.setVerticalAlign=(e,n,r)=>{const o=a.jsonClone(e);return t.getAllCellsOfSelectArea(o,n).forEach(e=>{e.cell.style.verticalAlign=r}),o},t.setFill=(e,n,r)=>{const o=a.jsonClone(e);return t.getAllCellsOfSelectArea(o,n).forEach(e=>{e.cell.style.fill=Object.assign({},r)}),o};const y=(e,t)=>{const n=a.jsonClone(e),{width:r,color:i}=t;return o.isNumber(r)&&(n.thickness=r),i&&(n.color=i),n};function b(e,n,r,o,i){const s=[];e.forEach(e=>{const{mergedBy:t,style:o}=e.cell;if(t&&t[1]<n){r.forEach(n=>{const r=n[e.position.column];r.mergedBy=a.jsonClone(t),r.style=a.jsonClone(o)});const n={row:t[1],column:t[0]};s.some(e=>a.isEqualDate(e,n))||s.push(n)}}),s.forEach(e=>{const n=t.findCell(o,e);n&&n.mergeDown&&(n.mergeDown=n.mergeDown+i)}),o.cells.forEach(e=>{e.forEach(e=>{e.mergedBy&&e.mergedBy[1]>=n&&(e.mergedBy=[e.mergedBy[0],e.mergedBy[1]+i])})})}function w(e,t){if(e){const n=a.jsonClone(Object.assign({},s.DefalutTableStroke,{disabled:!0}));e.style.border[t]=n}}t.setBorder=(e,n,r,o)=>{const i=a.jsonClone(e),s=t.getAllCellsOfSelectArea(i,n);return s.forEach(e=>{const{position:n}=e,{left:r,right:o,bottom:a,top:s}=t.getAdjacentCells(i,n);w(r,"right"),w(o,"left"),w(s,"bottom"),w(a,"top")}),s.forEach(e=>{const{left:t,right:n,bottom:o,top:i}=e.cell.style.border;e.cell.style.border={left:Object.assign(Object.assign({},y(t,r)),{disabled:!1}),right:Object.assign(Object.assign({},y(n,r)),{disabled:!1}),top:Object.assign(Object.assign({},y(i,r)),{disabled:!1}),bottom:Object.assign(Object.assign({},y(o,r)),{disabled:!1})}}),i},t.makeCompInTable=(e,t,n,r)=>{switch(e){case i.CellTypes.CheckBox:return _(t,r);case i.CellTypes.Radio:return S(t,r);case i.CellTypes.Text:default:return t.text?C(t,n,r):null}};const C=(e,n,r)=>{const{text:o,fontFamily:i,letterSpace:a,fontStyle:l,fontSize:c,color:d}=e,m=u.makeText(h.getNewID(),""+o);m.row=r.row,m.column=r.column;const g=t.findCell(n,r);if(g){m.properties.textFormat.textAlign=g.style.textAlign,m.properties.textFormat.verticalAlign=g.style.verticalAlign,m.properties.textFormat.wrap=!0,x(m.properties.textFormat,{fontFamily:i,letterSpace:a,fontStyle:l,fontSize:c,color:d});const e=p.StyleHelper.initCSSStyleParser(m.properties),u=t.getAreaOfCell(n,g,r),h=t.getBoundsOfSelectArea(n,u),{width:v,height:y}=f.measureTextSize(e.getTextStyle(),""+o,{isMultiText:!0,isRich:!0,wrap:!0,defaultWidth:h.width-2*s.DefaultCellPadding});m.size.width=v,m.size.height=y,m.position={x:0,y:0},m.autoSize=!1}return m},_=(e,t)=>{var n;const r=m.makeComponent("common","checkbox","");if(r){r.name=v.default("resource.components.checkbox");const{text:o,fontFamily:i,letterSpace:a,fontStyle:s,fontSize:l,color:u}=e;r.value=o,r.row=t.row,r.column=t.column,x(r.properties.textStyle,{fontFamily:i,letterSpace:a,fontStyle:s,fontSize:l,color:u});const d=p.StyleHelper.initCSSStyleParser(r.properties),h=f.measureTextSize(d.getTextStyle(),o,{isMultiText:!1,wrap:!1,isRich:!1});r.size.width=26+h.width;const m=null===(n=r.components)||void 0===n?void 0:n.filter(e=>e.type===c.CPureText);(null==m?void 0:m.length)&&(m[0].size=h)}return r};function x(e,t){if(!e)return;const n={};["fontFamily","letterSpace","fontSize","fontStyle","color"].forEach(e=>{const r=e;o.isUndefined(t[r])||(n[r]=t[r])}),Object.assign(e,n)}const S=(e,t)=>{var n;const r=m.makeComponent("common","radio","");if(r){r.name=v.default("resource.components.radio");const{text:o,fontFamily:i,letterSpace:a,fontStyle:s,fontSize:l,color:u}=e;r.value=e,r.row=t.row,r.column=t.column,x(r.properties.textStyle,{fontFamily:i,letterSpace:a,fontStyle:s,fontSize:l,color:u});const d=p.StyleHelper.initCSSStyleParser(r.properties),h=f.measureTextSize(d.getTextStyle(),o,{isMultiText:!1,wrap:!1,isRich:!1});r.size.width=26+h.width;const m=null===(n=r.components)||void 0===n?void 0:n.filter(e=>e.type===c.CPureText);(null==m?void 0:m.length)&&(m[0].size=h)}return r};function k(e,n,r,o){const i=t.getColumnWidth(e,n),a=t.getStyleOfColumn(e,n);a&&(r.forEach((e,t)=>{e.forEach(e=>{e.style=Object.assign({},e.style,a[t+1])})}),o.forEach(e=>{e.style=Object.assign({},e.style,a[0])})),o.forEach(e=>{e.width=i||e.width})}function P(e,n,r,o){const i=t.getRowHeight(e,n),a=t.getStyleOfRow(e,n);a&&r.forEach(e=>{e.forEach((e,t)=>{e.style=Object.assign({},e.style,a[t])})}),o.forEach(e=>{e.height=i||e.height})}t.getStyleOfRow=(e,n)=>{const r=a.jsonClone(e),{columns:o,rows:i,cells:s}=r;if(n<-1||n>=i.length)return;const l=-1===n?o:s[n];let c;return(null==l?void 0:l.length)&&(c=l.map((e,o)=>{const i=t.getAreaOfCell(r,e,{row:n,column:o});return(t.findCell(r,i.start)||e).style})),c},t.getStyleOfColumn=(e,n)=>{const r=a.jsonClone(e),{columns:o,cells:i}=r;if(n<0||n>=o.length)return;const s=i.map(e=>e[n]);let l;return s.unshift(o[n]),(null==s?void 0:s.length)&&(l=s.map((e,o)=>{const i=t.getAreaOfCell(r,e,{row:o-1,column:n});return(t.findCell(r,i.start)||e).style})),l},t.getRowHeight=(e,t)=>{const{headerHeight:n,rows:r}=e;return-1===t?n:r[t].height},t.getColumnWidth=(e,t)=>{const{columns:n}=e;return n[t].width},t.getNewIndexAfterMoved=(e,t,n,r,o)=>{let i=t;const{rows:s,columns:l}=e,c=o?r<0?new Array(t).fill(0).map((e,n)=>s[t-1-n].height):new Array(s.length-n-1).fill(0).map((e,t)=>s[n+t+1].height):r<0?new Array(t).fill(0).map((e,n)=>l[t-1-n].width):new Array(l.length-n-1).fill(0).map((e,t)=>l[n+t+1].width);if(r<0){let e=0;for(;e<c.length&&!(-r<c[e]);e++)r+=c[e];i-=e}else if(r>0){let e=0;for(;e<c.length&&!(r<c[e]);e++)r-=c[e];i+=e}return a.max(i,0)},t.canMoveRows=(e,n,r,o)=>{if(o===n)return{enable:!1};if(-1===n)return{enable:!1,text:v.default("alert.headCannotBeMoved")};if(-1===o)return{enable:!1,text:v.default("alert.cannotMoveToHeader")};const{rows:i,columns:s}=e;if(!a.between(o,{min:0,max:i.length-1},!0))return{enable:!1};const c={start:{row:n,column:0},end:{row:r,column:s.length-1}};if(t.toRealAreaOfSelectArea(e,c),c.start.row!==n||c.end.row!==r)return{enable:!1,text:v.default("alert.cannotMoveRow1")};const u=o<n,d={start:{row:u?o:r+1,column:0},end:{row:u?n-1:r+o-n,column:s.length-1}},h=a.jsonClone(d);return t.toRealAreaOfSelectArea(e,h),l.isEqual(h,d)?{enable:!0}:{enable:!1,text:v.default("alert.cannotMoveRow2")}},t.canMoveColumns=(e,n,r,o)=>{if(o===n)return{enable:!1};const{rows:i,columns:s,showHeader:c}=e;if(!a.between(o,{min:0,max:s.length-1},!0))return{enable:!1};const u={start:{row:c?-1:0,column:n},end:{row:i.length-1,column:r}};if(t.toRealAreaOfSelectArea(e,u),u.start.column!==n||u.end.column!==r)return{enable:!1,text:v.default("alert.cannotMoveColumn1")};const d=o<n,h={start:{row:c?-1:0,column:d?o:r+1},end:{row:i.length-1,column:d?n-1:r+o-n}},p=a.jsonClone(h);return t.toRealAreaOfSelectArea(e,p),l.isEqual(p,h)?{enable:!0}:{enable:!1,text:v.default("alert.cannotMoveColumn2")}},t.updateAreaTopOrLeftBorderShow=(e,n,r)=>{t.getAllCellsOfSelectArea(e,n).forEach(e=>{const{cell:t,position:o}=e;r&&o.row===n.start.row?t.style.border.top.disabled=!1:o.column===n.start.column&&(t.style.border.left.disabled=!1)})},t.moveRows=(e,n,r,o)=>{const i=a.jsonClone(e),s=o-n,{columns:l,rows:c,cells:u}=i,d={start:{row:n,column:0},end:{row:r,column:l.length-1}},h=o<n,p={start:{row:h?o:r+1,column:0},end:{row:h?n-1:r+o-n,column:l.length-1}};return t.updateAreaTopOrLeftBorderShow(i,d,!0),t.updateAreaTopOrLeftBorderShow(i,p,!0),u.forEach((e,o)=>{(a.between(o,{min:n,max:r},!0)||a.between(o,{min:p.start.row,max:p.end.row},!0))&&e.forEach((e,i)=>{const a=!!e.mergedBy,l=t.isCellSelected(o,i,d),c=t.isCellSelected(o,i,p);a&&(l?e.mergedBy=[e.mergedBy[0],e.mergedBy[1]+s]:c&&(e.mergedBy=[e.mergedBy[0],e.mergedBy[1]-Math.sign(s)*(r-n+1)]))})}),i.rows=g.moveArrayItems(c,n,o,r+1-n),i.cells=g.moveArrayItems(u,n,o,r+1-n),i},t.moveColumns=(e,n,r,o)=>{const i=a.jsonClone(e),s=o-n,{rows:l,cells:c,showHeader:u}=i,d={start:{row:u?-1:0,column:n},end:{row:l.length-1,column:r}},h=o<n,p={start:{row:u?-1:0,column:h?o:r+1},end:{row:l.length-1,column:h?n-1:r+o-n}};return t.updateAreaTopOrLeftBorderShow(i,d,!1),t.updateAreaTopOrLeftBorderShow(i,p,!1),c.forEach((e,o)=>{e.forEach((e,i)=>{const a=!!e.mergedBy,l=t.isCellSelected(o,i,d),c=t.isCellSelected(o,i,p);a&&(l?e.mergedBy=[e.mergedBy[0]+s,e.mergedBy[1]]:c&&(e.mergedBy=[e.mergedBy[0]-Math.sign(s)*(r-n+1),e.mergedBy[1]]))})}),i.columns=g.moveArrayItems(a.jsonClone(i.columns),n,o,r+1-n),i.cells=i.cells.map(e=>g.moveArrayItems(a.jsonClone(e),n,o,r+1-n)),i},function(e){e.getPasteAreas=(e,t,n)=>{const r=(e=>({row:e.end.row-e.start.row+1,column:e.end.column-e.start.column+1}))(t);let o=Math.floor(r.row/n.row),i=Math.floor(r.column/n.column),l=0,c=0;const u=t.start;if(!o||!i){o=1,i=1;const t=u.row+n.row,r=u.column+n.column;if(l=a.max(0,t-e.rows.length),c=a.max(0,r-e.columns.length),t>s.MaxRowsCount||r>s.MaxColumnsCount)return}const d=[];for(let e=0;e<o;e++)for(let t=0;t<i;t++)d.push((h=e,p=t,{start:{row:u.row+n.row*h,column:u.column+n.column*p},end:{row:u.row+n.row*(h+1)-1,column:u.column+n.column*(p+1)-1}}));var h,p;return{addRows:l,addColumns:c,pasteAreas:d}},e.setPasteAreaRowAndColumnSize=(e,t,n,r)=>{const{rows:o,columns:i}=e,{start:a,end:s}=t;if(null==n?void 0:n.length)for(let t=0;t<n.length&&t<s.row-a.row+1;t++){const r=n[t];if(l.isNumber(r)){const n=t+a.row;-1===n?e.headerHeight=r:o[n]&&(o[n].height=r)}}if(null==r?void 0:r.length)for(let e=0;e<r.length&&e<s.column-a.column+1;e++){const t=r[e];if(l.isNumber(t)){const n=e+a.column;i[n]&&(i[n].width=t)}}},e.buildTableClipboardData=(e,r,o)=>{const i=a.jsonClone(e),{start:s,end:l}=r,c=l.row-s.row+1,u=l.column-s.column+1,d=n(i,c,u,r),{rows:h,columns:p,headerHeight:f}=i;return{cells:d,rowHeights:new Array(c).fill(void 0).map((e,t)=>{var n;const r=s.row+t;return-1===r?f:(null===(n=h[r])||void 0===n?void 0:n.height)||void 0}),colWidths:new Array(u).fill(void 0).map((e,t)=>{var n;const r=s.column+t;return(null===(n=p[r])||void 0===n?void 0:n.width)||void 0}),components:o.filter(e=>{const{row:n,column:o}=e;return t.isCellSelected(n,o,r)}).map(e=>{const t=a.jsonClone(e.toJSON());return t.column=(t.column||0)-s.column,t.row=(t.row||0)-s.row,t})}};const n=(e,n,r,o)=>{const{start:i,end:l}=o,c=a.jsonClone(new Array(n).fill(new Array(r).fill(s.DefaultCell)));return t.getAllCellsOfSelectArea(e,o).forEach(e=>{const{cell:n,position:r}=e,{mergeAcross:a,mergeDown:s,mergedBy:u}=n;if(u){const e={row:u[1],column:u[0]};t.isCellSelected(e.row,e.column,o)?(u[0]-=i.column,u[1]-=i.row):n.mergedBy=void 0}a&&a+r.column>l.column&&(n.mergeAcross=l.column-r.column),s&&s+r.row>l.row&&(n.mergeDown=l.row-r.row);t.isCellSelected(r.row,r.column,o)&&(c[r.row-i.row][r.column-i.column]=n)}),c}}(t.TableClipboardHelper||(t.TableClipboardHelper={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getListEvents=void 0;const r={onClick:"onItemClick",onDoubleClick:"onItemDoubleClick",onMouseDown:"onItemMouseDown",onMouseUp:"onItemMouseUp",onMouseEnter:"onItemEnter",onMouseLeave:"onItemLeave",onContextMenu:"onItemContextMenu",onTouchStart:"onItemTouchStart",onTouchEnd:"onItemTouchEnd"};t.getListEvents=function(e,t){const n={};return t&&e.forEach(e=>{const o={};n[e.id]=o,Object.keys(r).forEach(n=>{const i=t[r[n]];i&&(o[n]=t=>{i(t,e)})})}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1447);const i=({theme:e,direction:t,text:n,children:i,width:a,align:s,tipStyle:l,NoCover:c})=>r.createElement("div",{style:{width:a},className:"dsm-c-tooltip"},n&&r.createElement("div",{style:l,className:o.default("tips",t,s,{"size-s":"small"===e},{cover:c})},n),i);i.defaultProps={theme:"normal",direction:"down",text:"",align:"center",tipStyle:{}},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(70),s=n(25),l=n(69);n(1509);class c extends r.Component{constructor(e){super(e),this.dialogContent=r.createRef(),this.onWindowKeyDown=e=>{"Escape"===e.key&&this.props.onCancel&&this.handleClose(e),"Enter"===e.key&&!this.props.disableOk&&this.props.onOk&&(e.stopPropagation(),this.props.onOk(e))},this.handleAnimationEnd=e=>{const{onCancel:t}=this.props,n=this.dialogContent.current;t&&t(e),null==n||n.removeEventListener("animationend",this.handleAnimationEnd)},this.handleClose=e=>{const{onCancel:t}=this.props,n=this.dialogContent.current;null==n||n.addEventListener("animationend",this.handleAnimationEnd),this.setState({closing:!0},()=>{!n&&t&&t(e)})},this.state={closing:!1}}componentDidMount(){this.props.escToClose&&window.addEventListener("keydown",this.onWindowKeyDown)}componentWillUnmount(){this.props.escToClose&&window.removeEventListener("keydown",this.onWindowKeyDown)}render(){let{showOk:e,showCenter:t,showCancel:n,clickModalToDismiss:c,okText:u,disableOk:d,disableCenter:h,title:p,show:f,showClose:m,cancelText:g,centerText:v,children:y,sureDelete:b,showNotTips:w,isNotTips:C,notTipsHint:_,titleAlignCenter:x,contentOverflow:S,subTitle:k,width:P,contentMinHeight:T,contentMaxHeight:E,boldTitle:O,lightTitle:M,theme:A,showLeft:D,leftText:I,disableLeft:L,onOk:N,onCenterBtnClick:j,onNotTips:R,onLeftBtnClick:z}=this.props;const{closing:F}=this.state;return r.createElement("div",{className:o.default("",{"dsm-c-comp-dialog":f,hide:!f,ie:l.isIE(),"theme-blue":"blue"===A})},r.createElement("div",{className:o.default("dsm-c-bg",{closing:F}),onClick:e=>c&&this.handleClose(e)}),r.createElement("div",{className:"dsm-c-pop-wrap"},r.createElement("div",{ref:this.dialogContent,className:o.default("dsm-c-pop",{"empty-title":!p||!p.trim(),closing:F}),style:{overflow:S,width:P,minHeight:T,maxHeight:E}},m&&r.createElement(i.default,{cls:"demo_close",onClick:this.handleClose}),p&&p.trim()&&r.createElement("div",{className:o.default("dsm-c-pop-title",{"dsm-c-pop-title-bold":O,"dsm-c-pop-title-light":M}),style:x?{textAlign:"center"}:{}},p,k&&k.trim()&&r.createElement("span",{className:"dsm-c-pop-sub-title"},k)),r.createElement("div",{className:o.default("dsm-c-pop-content")},y),r.createElement("div",{className:"dsm-c-button-wrap"},w&&r.createElement(a.default,{text:_,checked:C,onChange:e=>{R&&R(e)}}),D&&r.createElement("button",{className:o.default("dsm-c-buttons",{"dsm-c-disable-button":L}),disabled:L,onClick:z},I),e&&r.createElement("button",{className:o.default("dsm-c-buttons",{"dsm-c-spc-button":!n||!b,"dsm-c-disable-button":d}),disabled:d,onClick:N},u||s.default("Dialog.ok")),t&&r.createElement("button",{className:o.default("dsm-c-buttons",{"dsm-c-disable-button":h}),disabled:h,onClick:j},v),n&&r.createElement("button",{className:o.default("dsm-c-buttons",{"dsm-c-spc-button":b}),onClick:this.handleClose},g)))))}}c.defaultProps={title:"",subTitle:"",show:!0,showOk:!0,showCancel:!1,disableOk:!1,children:"",showClose:!0,okText:s.default("Dialog.ok"),cancelText:s.default("Dialog.cancel"),clickModalToDismiss:!1,sureDelete:!1,showNotTips:!1,isNotTips:!1,notTipsHint:"",titleAlignCenter:!1,contentOverflow:"auto",escToClose:!0,contentMinHeight:0,lightTitle:!1,showLeft:!1,leftText:"",disableLeft:!1},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1636);Object.defineProperty(t,"ITableColumn",{enumerable:!0,get:function(){return r.ITableColumn}}),Object.defineProperty(t,"IColumnType",{enumerable:!0,get:function(){return r.IColumnType}}),Object.defineProperty(t,"ITableData",{enumerable:!0,get:function(){return r.ITableData}}),Object.defineProperty(t,"ITableColumnAlign",{enumerable:!0,get:function(){return r.ITableColumnAlign}}),Object.defineProperty(t,"IPoint",{enumerable:!0,get:function(){return r.IPoint}}),Object.defineProperty(t,"TableSelection",{enumerable:!0,get:function(){return r.TableSelection}}),Object.defineProperty(t,"ITableSort",{enumerable:!0,get:function(){return r.ITableSort}}),Object.defineProperty(t,"ITableSortOrder",{enumerable:!0,get:function(){return r.ITableSortOrder}}),Object.defineProperty(t,"ISortIcon",{enumerable:!0,get:function(){return r.ISortIcon}}),Object.defineProperty(t,"ICompareRefs",{enumerable:!0,get:function(){return r.ICompareRefs}});var o=n(1637);Object.defineProperty(t,"IPosition",{enumerable:!0,get:function(){return o.IPosition}});var i=n(1638);Object.defineProperty(t,"IPager",{enumerable:!0,get:function(){return i.IPager}}),Object.defineProperty(t,"IPagerSelectAction",{enumerable:!0,get:function(){return i.IPagerSelectAction}})},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return i})),n.d(t,"applyMiddleware",(function(){return g})),n.d(t,"bindActionCreators",(function(){return d})),n.d(t,"combineReducers",(function(){return c})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return s}));var r=n(324),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,c=t,u=[],d=u,h=!1;function p(){d===u&&(d=u.slice())}function f(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1),u=null}}}function g(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,c=l(c,e)}finally{h=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,g({type:i.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return g({type:i.INIT}),(o={dispatch:g,subscribe:m,getState:f,replaceReducer:v})[r.a]=y,o}function l(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function c(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,o={},i=0;i<s.length;i++){var c=s[i],u=n[c],d=e[c],h=u(d,t);if(void 0===h){var p=l(c,t);throw new Error(p)}o[c]=h,r=r||h!==d}return(r=r||s.length!==Object.keys(e).length)?o:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=u(o,t))}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return f({},n,{dispatch:r=m.apply(void 0,i)(n.dispatch)})}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return je})),n.d(t,"b",(function(){return Re}));var r=n(0),o=n(141),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",s="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",c="dnd-core/DROP",u="dnd-core/END_DRAG",d=function(e,t){return e===t};function h(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case i:case a:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case l:return h(e.clientOffset,n.clientOffset)?e:m({},e,{clientOffset:n.clientOffset});case u:case c:return v;default:return e}}var b="dnd-core/ADD_SOURCE",w="dnd-core/ADD_TARGET",C="dnd-core/REMOVE_SOURCE",_="dnd-core/REMOVE_TARGET";function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)}function k(e,t){return e.filter((function(e){return e!==t}))}function P(e){return"object"===x(e)}function T(e,t){var n=new Map,r=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e,t){1===e&&o.push(t)})),o}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case a:return O({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case s:return O({},e,{isSourcePublic:!0});case l:return O({},e,{targetIds:n.targetIds});case _:return-1===e.targetIds.indexOf(n.targetId)?e:O({},e,{targetIds:k(e.targetIds,n.targetId)});case c:return O({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case u:return O({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case b:case w:return e+1;case C:case _:return e-1;default:return e}}var L=[],N=[];function j(e,t){return e!==L&&(e===N||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}function R(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case l:break;case b:case w:case _:case C:return L;case a:case s:case u:case c:default:return N}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,d=T(r,i),h=d.length>0||!p(r,i);if(!h)return L;var f=i[i.length-1],m=r[r.length-1];return f!==m&&(f&&d.push(f),m&&d.push(m)),d}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:R(e.dirtyHandlerIds,{type:t.type,payload:B({},t.payload,{prevTargetIds:S(e,"dragOperation.targetIds",[])})}),dragOffset:y(e.dragOffset,t),refCount:I(e.refCount,t),dragOperation:D(e.dragOperation,t),stateId:z(e.stateId)}}L.__IS_NONE__=!0,N.__IS_ALL__=!0;var Y=n(11);function W(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var U={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function K(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,s=n.getSourceClientOffset,l=e.getMonitor(),c=e.getRegistry();e.dispatch(W(i)),G(t,l,c);var u=X(t,l);if(null!==u){var d=null;i&&(q(s),d=s(u)),e.dispatch(W(i,d));var h=c.getSource(u),p=h.beginDrag(l,u);$(p),c.pinSource(u);var f=c.getSourceType(u);return{type:a,payload:{itemType:f,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}e.dispatch(U)}}function G(e,t,n){Object(Y.a)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){Object(Y.a)(n.getSource(e),"Expected sourceIds to be registered.")}))}function q(e){Object(Y.a)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function $(e){Object(Y.a)(P(e),"Item must be an object.")}function X(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function J(e){return function(){if(e.getMonitor().isDragging())return{type:s}}}function Z(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function Q(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;ee(t);var o=t.slice(0),i=e.getMonitor(),a=e.getRegistry();te(o,i,a);var s=i.getItemType();return ne(o,a,s),re(o,i,a),{type:l,payload:{targetIds:o,clientOffset:r||null}}}}function ee(e){Object(Y.a)(Array.isArray(e),"Expected targetIds to be an array.")}function te(e,t,n){Object(Y.a)(t.isDragging(),"Cannot call hover while not dragging."),Object(Y.a)(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];Object(Y.a)(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");var i=n.getTarget(o);Object(Y.a)(i,"Expected targetIds to be registered.")}}function ne(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];Z(t.getTargetType(o),n)||e.splice(r,1)}}function re(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();le(n);var o=ue(n);o.forEach((function(o,i){var a=ce(o,i,r,n),s={type:c,payload:{dropResult:ie({},t,{},a)}};e.dispatch(s)}))}}function le(e){Object(Y.a)(e.isDragging(),"Cannot call drop while not dragging."),Object(Y.a)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function ce(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){Object(Y.a)(void 0===e||P(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function ue(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function de(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){Object(Y.a)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:u}}}function he(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var fe,me=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=n}var t,n,r;return t=e,(n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;Object(Y.a)("function"==typeof e,"listener must be a function."),Object(Y.a)(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,i=function(){var n=t.store.getState(),i=n.stateId;try{i===o||i===o+1&&!j(n.dirtyHandlerIds,r)||e()}finally{o=i}};return this.store.subscribe(i)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;Object(Y.a)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return Object(Y.a)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return Object(Y.a)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&Z(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return Object(Y.a)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Z(r,o))return!1;var i=this.getTargetIds();if(!i.length)return!1;var a=i.indexOf(e);return n?a===i.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?he((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?he(t,n):null;var e,t,n}}])&&pe(t.prototype,n),r&&pe(t,r),e}(),ge=0;function ve(e){return(ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e,t){t&&Array.isArray(e)?e.forEach((function(e){return ye(e,!1)})):Object(Y.a)("string"==typeof e||"symbol"===ve(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(fe||(fe={}));var be=n(327),we=[],Ce=[],_e=be.a.makeRequestCallFromTimer((function(){if(Ce.length)throw Ce.shift()}));function xe(e){var t;(t=we.length?we.pop():new Se).task=e,Object(be.a)(t)}var Se=function(){function e(){}return e.prototype.call=function(){try{this.task.call()}catch(e){xe.onerror?xe.onerror(e):(Ce.push(e),_e())}finally{this.task=null,we[we.length]=this}},e}();function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Te(e){var t=(ge++).toString();switch(e){case fe.SOURCE:return"S".concat(t);case fe.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function Ee(e){switch(e[0]){case"S":return fe.SOURCE;case"T":return fe.TARGET;default:Object(Y.a)(!1,"Cannot parse handler ID: ".concat(e))}}function Oe(e,t){var n=e.entries(),r=!1;do{var o=n.next(),i=o.done;if(Pe(o.value,2)[1]===t)return!0;r=!!i}while(!r);return!1}var Me=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,n,r;return t=e,(n=[{key:"addSource",value:function(e,t){ye(e),function(e){Object(Y.a)("function"==typeof e.canDrag,"Expected canDrag to be a function."),Object(Y.a)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Object(Y.a)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(fe.SOURCE,e,t);return this.store.dispatch(function(e){return{type:b,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){ye(e,!0),function(e){Object(Y.a)("function"==typeof e.canDrop,"Expected canDrop to be a function."),Object(Y.a)("function"==typeof e.hover,"Expected hover to be a function."),Object(Y.a)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(fe.TARGET,e,t);return this.store.dispatch(function(e){return{type:w,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return Oe(this.dragSources,e)||Oe(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(Y.a)(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}},{key:"getTarget",value:function(e){return Object(Y.a)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return Object(Y.a)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return Object(Y.a)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return Ee(e)===fe.SOURCE}},{key:"isTargetId",value:function(e){return Ee(e)===fe.TARGET}},{key:"removeSource",value:function(e){var t=this;Object(Y.a)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:C,payload:{sourceId:e}}}(e)),xe((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){Object(Y.a)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:_,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);Object(Y.a)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){Object(Y.a)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=Te(e);return this.types.set(r,t),e===fe.SOURCE?this.dragSources.set(r,n):e===fe.TARGET&&this.dropTargets.set(r,n),r}}])&&ke(t.prototype,n),r&&ke(t,r),e}();function Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Object(o.createStore)(V,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var Le=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ae(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=Ie(n);this.store=r,this.monitor=new me(r,new Me(r)),r.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,(n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:K(e),publishDragSource:J(e),hover:Q(e),drop:se(e),endDrag:de(e)}}(this);return Object.keys(n).reduce((function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}])&&De(t.prototype,n),r&&De(t,r),e}();function Ne(e,t,n,r){var o=new Le(r),i=e(o,t,n);return o.receiveBackend(i),o}var je=r.createContext({dragDropManager:void 0});function Re(e,t,n,r){return{dragDropManager:Ne(e,t,n,r)}}},function(e,t,n){e.exports=function(){"use strict";return function(e,t,n){(n=n||{}).childrenKeyName=n.childrenKeyName||"children";var r=e||[],o=[],i=0;do{var a=r.filter((function(e){return t(e,i)}))[0];if(!a)break;o.push(a),r=a[n.childrenKeyName]||[],i+=1}while(r.length>0);return o}}()},function(e,t,n){var r=n(41).f,o=n(71),i=n(37)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(81),o=n(37)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(5),o=n(89),i=n(27),a=n(250),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var o={},s=i((function(){return!!a[e]()||"
"!="
"[e]()})),l=o[e]=s?t(d):a[e];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},function(e,t){e.exports={}},function(e,t,n){"use strict";(function(n){var r,o,i,a;function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a=function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return o(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var i=!1,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){n.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},n.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(u(e,a,a+16383>s?s:a+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){(function(t){var r=e("base64-js"),o=e("ieee754");function i(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return n.__proto__=t.prototype,n}function t(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return a(e,t,n)}function a(e,n,r){if("string"==typeof e)return function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|h(e,n),o=i(r),a=o.write(e,n);return a!==r&&(o=o.slice(0,a)),o}(e,n);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e));if(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer))return function(e,n,r){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var o;return(o=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r)).__proto__=t.prototype,o}(e,n,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return t.from(o,n,r);var a=function(e){if(t.isBuffer(e)){var n=0|d(e.length),r=i(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||F(e.length)?i(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e))}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),i(e<0?0:0|d(e))}function u(e){for(var t=e.length<0?0:0|d(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function h(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+c(e));var r=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return o?-1:N(e).length;n=(""+n).toLowerCase(),i=!0}}function p(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,n,r,o,i){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof n&&(n=t.from(n,o)),t.isBuffer(n))return 0===n.length?-1:g(e,n,r,o,i);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):g(e,[n],r,o,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,h=0;h<l;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function v(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(F(s))return a;e[n+a]=s}return a}function y(e,t,n,r){return R(N(t,e.length-n),e,n,r)}function b(e,t,n,r){return R(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return b(e,t,n,r)}function C(e,t,n,r){return R(j(t),e,n,r)}function _(e,t,n,r){return R(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){var r,o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",a=t;a<n;++a)i+=(r=e[a])<16?"0"+r.toString(16):r.toString(16);return i}function E(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,n,r,o,i,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||n<a)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||A(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return t=+t,n>>>=0,i||A(e,0,n,8),o.write(e,t,n,r,52,8),n+8}n.Buffer=t,n.SlowBuffer=function(e){return+e!=e&&(e=0),t.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,t.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),t.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,n){return a(e,t,n)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,n){return function(e,t,n){return s(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},t.allocUnsafe=function(e){return l(e)},t.allocUnsafeSlow=function(e){return l(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,n){if(z(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),z(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var r=e.length,o=n.length,i=0,a=Math.min(r,o);i<a;++i)if(e[i]!==n[i]){r=e[i],o=n[i];break}return r<o?-1:o<r?1:0},t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var o=t.allocUnsafe(n),i=0;for(r=0;r<e.length;++r){var a=e[r];if(z(a,Uint8Array)&&(a=t.from(a)),!t.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},t.byteLength=h,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},t.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},t.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},t.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):p.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},t.prototype.compare=function(e,n,r,o,i){if(z(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+c(e));if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),n<0||r>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&n>=r)return 0;if(o>=i)return-1;if(n>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(o>>>=0),s=(r>>>=0)-(n>>>=0),l=Math.min(a,s),u=this.slice(o,i),d=e.slice(n,r),h=0;h<l;++h)if(u[h]!==d[h]){a=u[h],s=d[h];break}return a<s?-1:s<a?1:0},t.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},t.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},t.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},t.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},t.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<e&&(n=e);var o=this.subarray(e,n);return o.__proto__=t.prototype,o},t.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},t.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},t.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},t.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),o.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),o.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},t.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},t.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},t.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},t.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},t.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},t.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},t.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},t.prototype.copy=function(e,n,r,o){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),n>=e.length&&(n=e.length),n||(n=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-n<o-r&&(o=e.length-n+r);var i=o-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(n,r,o);else if(this===e&&r<n&&n<o)for(var a=i-1;a>=0;--a)e[a+n]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,o),n);return i},t.prototype.fill=function(e,n,r,o){if("string"==typeof e){if("string"==typeof n?(o=n,n=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){var i=e.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(e=i)}}else"number"==typeof e&&(e&=255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var a;if(n>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=n;a<r;++a)this[a]=e;else{var s=t.isBuffer(e)?e:t.from(e,o),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-n;++a)this[a+n]=s[a%l]}return this};var L=/[^+/0-9A-Za-z-_]/g;function N(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:32}],4:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.attributeNames=n.elementNames=void 0,n.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),n.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},{}],5:[function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(n,"__esModule",{value:!0});var s=a(e("domelementtype")),l=e("entities"),c=e("./foreignNames"),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]),d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function h(e,t){void 0===t&&(t={});for(var n=Array.isArray(e)||e.cheerio?e:[e],r="",o=0;o<n.length;o++)r+=p(n[o],t);return r}function p(e,t){switch(e.type){case"root":return h(e.children,t);case s.Directive:return"<"+e.data+">";case s.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case s.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);default:return s.isTag(e)?function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&f.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1}))),!t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var o="<"+e.name,i=function(e,t){if(e)return Object.keys(e).map((function(n){var r,o,i=null!==(r=e[n])&&void 0!==r?r:"";return"foreign"===t.xmlMode&&(n=null!==(o=c.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==i?n+'="'+(t.decodeEntities?l.encodeXML(i):i.replace(/"/g,"""))+'"':n})).join(" ")}(e.attribs,t);return i&&(o+=" "+i),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(o+=" "),o+="/>"):(o+=">",e.children.length>0&&(o+=h(e.children,t)),!t.xmlMode&&d.has(e.name)||(o+="</"+e.name+">")),o}(e,t):function(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&u.has(e.parent.name)||(n=l.encodeXML(n)),n}(e,t)}}n.default=h;var f=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},{"./foreignNames":4,domelementtype:6,entities:20}],6:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Doctype=n.CDATA=n.Tag=n.Style=n.Script=n.Comment=n.Directive=n.Text=n.isTag=void 0,n.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"},{}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./node");n.Node=r.Node,n.Element=r.Element,n.DataNode=r.DataNode,n.NodeWithChildren=r.NodeWithChildren;var o=/\s+/g,i={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},a=function(){function e(e,t,n){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=null,"function"==typeof t&&(n=t,t=i),"object"===c(e)&&(t=e,e=void 0),this._callback=e||null,this._options=t||i,this._elementCB=n||null}return e.prototype.onparserinit=function(e){this._parser=e},e.prototype.onreset=function(){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=this._parser||null},e.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this._lastNode=null;var e=this._tagStack.pop();e&&this._parser&&(this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e))},e.prototype.onopentag=function(e,t){var n=new r.Element(e,t);this.addNode(n),this._tagStack.push(n)},e.prototype.ontext=function(e){var t=this._options.normalizeWhitespace,n=this._lastNode;if(n&&"text"===n.type)t?n.data=(n.data+e).replace(o," "):n.data+=e;else{t&&(e=e.replace(o," "));var i=new r.DataNode("text",e);this.addNode(i),this._lastNode=i}},e.prototype.oncomment=function(e){if(this._lastNode&&"comment"===this._lastNode.type)this._lastNode.data+=e;else{var t=new r.DataNode("comment",e);this.addNode(t),this._lastNode=t}},e.prototype.oncommentend=function(){this._lastNode=null},e.prototype.oncdatastart=function(){var e=new r.DataNode("text",""),t=new r.NodeWithChildren("cdata",[e]);this.addNode(t),e.parent=t,this._lastNode=e},e.prototype.oncdataend=function(){this._lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new r.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];this._parser&&(this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex)),n.push(e),r&&(e.prev=r,r.next=e),t&&(e.parent=t),this._lastNode=null},e.prototype.addDataNode=function(e){this.addNode(e),this._lastNode=e},e}();n.DomHandler=a,n.default=a},{"./node":8}],8:[function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0});var i=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8]]),a=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return i.get(this.type)||1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent||null},set:function(e){this.parent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev||null},set:function(e){this.prev=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next||null},set:function(e){this.next=e},enumerable:!0,configurable:!0}),e}();n.Node=a;var s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!0,configurable:!0}),t}(a);n.DataNode=s;var l=function(e){function t(t,n){var r=e.call(this,"directive",n)||this;return r.name=t,r}return o(t,e),t}(s);n.ProcessingInstruction=l;var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!0,configurable:!0}),t}(a);n.NodeWithChildren=c;var u=function(e){function t(t,n){var r=e.call(this,"script"===t?"script":"style"===t?"style":"tag",[])||this;return r.name=t,r.attribs=n,r.attribs=n,r}return o(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!0,configurable:!0}),t}(c);n.Element=u},{}],9:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.uniqueSort=n.compareDocumentPosition=n.removeSubsets=void 0;var r=e("./tagtypes");function o(e,t){var n=[],o=[];if(e===t)return 0;for(var i=r.hasChildren(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(i=r.hasChildren(t)?t:t.parent;i;)o.unshift(i),i=i.parent;for(var a=Math.min(n.length,o.length),s=0;s<a&&n[s]===o[s];)s++;if(0===s)return 1;var l=n[s-1],c=l.children,u=n[s],d=o[s];return c.indexOf(u)>c.indexOf(d)?l===t?20:4:l===e?10:2}n.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},n.compareDocumentPosition=o,n.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=o(e,t);return 2&n?-1:4&n?1:0})),e}},{"./tagtypes":15}],10:[function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),o(e("./stringify"),n),o(e("./traversal"),n),o(e("./manipulation"),n),o(e("./querying"),n),o(e("./legacy"),n),o(e("./helpers"),n),o(e("./tagtypes"),n)},{"./helpers":9,"./legacy":11,"./manipulation":12,"./querying":13,"./stringify":14,"./tagtypes":15,"./traversal":16}],11:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getElementsByTagType=n.getElementsByTagName=n.getElementById=n.getElements=n.testElement=void 0;var r=e("./querying"),o=e("./tagtypes");function i(e){return"text"===e.type}var a={tag_name:function(e){return"function"==typeof e?function(t){return o.isTag(t)&&e(t.name)}:"*"===e?o.isTag:function(t){return o.isTag(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.data)}:function(t){return i(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(n){return o.isTag(n)&&t(n.attribs[e])}:function(n){return o.isTag(n)&&n.attribs[e]===t}}function l(e,t){return function(n){return e(n)||t(n)}}function c(e){var t=Object.keys(e).map((function(t){var n=e[t];return t in a?a[t](n):s(t,n)}));return 0===t.length?null:t.reduce(l)}n.testElement=function(e,t){var n=c(e);return!n||n(t)},n.getElements=function(e,t,n,o){void 0===o&&(o=1/0);var i=c(e);return i?r.filter(i,t,n,o):[]},n.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),r.findOne(s("id",e),t,n)},n.getElementsByTagName=function(e,t,n,o){return void 0===o&&(o=1/0),r.filter(a.tag_name(e),t,n,o)},n.getElementsByTagType=function(e,t,n,o){return void 0===n&&(n=!0),void 0===o&&(o=1/0),r.filter(a.tag_type(e),t,n,o)}},{"./querying":13,"./tagtypes":15}],12:[function(e,t,n){function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(n,"__esModule",{value:!0}),n.prepend=n.append=n.appendChild=n.replaceElement=n.removeElement=void 0,n.removeElement=r,n.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t}},n.appendChild=function(e,t){if(r(t),t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},n.append=function(e,t){r(t);var n=e.parent,o=e.next;if(t.next=o,t.prev=e,e.next=t,t.parent=n,o){if(o.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(o),0,t)}}else n&&n.children.push(t)},n.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},{}],13:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.findAll=n.existsOne=n.findOne=n.findOneChild=n.find=n.filter=void 0;var r=e("./tagtypes");function o(e,t,n,i){for(var a=[],s=0,l=t;s<l.length;s++){var c=l[s];if(e(c)&&(a.push(c),--i<=0))break;if(n&&r.hasChildren(c)&&c.children.length>0){var u=o(e,c.children,n,i);if(a.push.apply(a,u),(i-=u.length)<=0)break}}return a}n.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),o(e,t,n,r)},n.find=o,n.findOneChild=function(e,t){return t.find(e)},n.findOne=function e(t,n,o){void 0===o&&(o=!0);for(var i=null,a=0;a<n.length&&!i;a++){var s=n[a];r.isTag(s)&&(t(s)?i=s:o&&s.children.length>0&&(i=e(t,s.children)))}return i},n.existsOne=function e(t,n){return n.some((function(n){return r.isTag(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},n.findAll=function(e,t){for(var n,o,i=[],a=t.filter(r.isTag);o=a.shift();){var s=null===(n=o.children)||void 0===n?void 0:n.filter(r.isTag);s&&s.length>0&&a.unshift.apply(a,s),e(o)&&i.push(o)}return i}},{"./tagtypes":15}],14:[function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.getText=n.getInnerHTML=n.getOuterHTML=void 0;var o=e("./tagtypes"),i=r(e("dom-serializer"));function a(e,t){return i.default(e,t)}n.getOuterHTML=a,n.getInnerHTML=function(e,t){return o.hasChildren(e)?e.children.map((function(e){return a(e,t)})).join(""):""},n.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):o.isTag(t)?"br"===t.name?"\n":e(t.children):o.isCDATA(t)?e(t.children):o.isText(t)?t.data:""}},{"./tagtypes":15,"dom-serializer":5}],15:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.hasChildren=n.isComment=n.isText=n.isCDATA=n.isTag=void 0;var r=e("domelementtype");n.isTag=function(e){return r.isTag(e)},n.isCDATA=function(e){return"cdata"===e.type},n.isText=function(e){return"text"===e.type},n.isComment=function(e){return"comment"===e.type},n.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")}},{domelementtype:6}],16:[function(e,t,n){function r(e){return e.children||null}function o(e){return e.parent||null}Object.defineProperty(n,"__esModule",{value:!0}),n.nextElementSibling=n.getName=n.hasAttrib=n.getAttributeValue=n.getSiblings=n.getParent=n.getChildren=void 0,n.getChildren=r,n.getParent=o,n.getSiblings=function(e){var t=o(e);return t?r(t):[e]},n.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},n.hasAttrib=function(e,t){return!!e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},n.getName=function(e){return e.name},n.nextElementSibling=function(e){for(var t=e.next;null!==t&&"tag"!==t.type;)t=t.next;return t}},{}],17:[function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.decodeHTML=n.decodeHTMLStrict=n.decodeXML=void 0;var o=r(e("./maps/entities.json")),i=r(e("./maps/legacy.json")),a=r(e("./maps/xml.json")),s=r(e("./decode_codepoint"));function l(e){var t=Object.keys(e).join("|"),n=u(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}n.decodeXML=l(a.default),n.decodeHTMLStrict=l(o.default);var c=function(e,t){return e<t?1:-1};function u(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]}}n.decodeHTML=function(){for(var e=Object.keys(i.default).sort(c),t=Object.keys(o.default).sort(c),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=u(o.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,l)}}()},{"./decode_codepoint":18,"./maps/entities.json":22,"./maps/legacy.json":23,"./maps/xml.json":24}],18:[function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var o=r(e("./maps/decode.json"));n.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"<22>";e in o.default&&(e=o.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},{"./maps/decode.json":21}],19:[function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.escape=n.encodeHTML=n.encodeXML=void 0;var o=l(r(e("./maps/xml.json")).default),i=c(o);n.encodeXML=h(o,i);var a=l(r(e("./maps/entities.json")).default),s=c(a);function l(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function c(e){for(var t=[],n=[],r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];1===i.length?t.push("\\"+i):n.push(i)}t.sort();for(var a=0;a<t.length-1;a++){for(var s=a;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var l=1+s-a;l<3||t.splice(a,l,t[a]+"-"+t[s])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}n.encodeHTML=h(a,s);var u=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;function d(e){return"&#x"+e.codePointAt(0).toString(16).toUpperCase()+";"}function h(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(u,d)}}var p=c(o);n.escape=function(e){return e.replace(p,d).replace(u,d)}},{"./maps/entities.json":22,"./maps/xml.json":24}],20:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.encode=n.decodeStrict=n.decode=void 0;var r=e("./decode"),o=e("./encode");n.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},n.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},n.encode=function(e,t){return(!t||t<=0?o.encodeXML:o.encodeHTML)(e)};var i=e("./encode");Object.defineProperty(n,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(n,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(n,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(n,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(n,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var a=e("./decode");Object.defineProperty(n,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(n,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(n,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(n,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(n,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(n,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},{"./decode":17,"./encode":19}],21:[function(e,t,n){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},{}],22:[function(e,t,n){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}},{}],23:[function(e,t,n){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},{}],24:[function(e,t,n){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},{}],25:[function(e,t,n){var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},i=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var s,l=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),s=0===u.x}catch(e){s=!1}function d(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function h(e,t,n){if(t)e.call(n);else for(var r=e.length,o=_(e,r),i=0;i<r;++i)o[i].call(n)}function p(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=_(e,o),a=0;a<o;++a)i[a].call(n,r)}function f(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=_(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function m(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=_(e,a),l=0;l<a;++l)s[l].call(n,r,o,i)}function g(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=_(e,o),a=0;a<o;++a)i[a].apply(n,r)}function v(e,t,n,o){var i,a,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]):(a=e._events=r(null),e._eventsCount=0),s){if("function"==typeof s?s=a[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),!s.warned&&(i=d(e))&&i>0&&s.length>i){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,"object"===("undefined"==typeof console?"undefined":c(console))&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else s=a[t]=n,++e._eventsCount;return e}function y(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function b(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=i.call(y,r);return o.listener=n,r.wrapFn=o,o}function w(e,t,n){var r=e._events;if(!r)return[];var o=r[t];return o?"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):_(o,o.length):[]}function C(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function _(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}s?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');l=e}}):a.defaultMaxListeners=l,a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return d(this)},a.prototype.emit=function(e){var t,n,r,o,i,a,s="error"===e;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:h(n,c,this);break;case 2:p(n,c,this,arguments[1]);break;case 3:f(n,c,this,arguments[1],arguments[2]);break;case 4:m(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];g(n,c,this,o)}return!0},a.prototype.addListener=function(e,t){return v(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return v(this,e,t,!0)},a.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,b(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,b(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,o,i,a,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(o=this._events))return this;if(!(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=r(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i),1===n.length&&(o[e]=n[0]),o.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.removeAllListeners=function(e){var t,n,i;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=r(null):delete n[e]),this;if(0===arguments.length){var a,s=o(n);for(i=0;i<s.length;++i)"removeListener"!==(a=s[i])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},a.prototype.listeners=function(e){return w(this,e,!0)},a.prototype.rawListeners=function(e){return w(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):C.call(e,t)},a.prototype.listenerCount=C,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],26:[function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(function(e){for(var t,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n.events.push([e].concat(r)),n._cbs[e]&&(t=n._cbs)[e].apply(t,r)}))||this;return n._cbs=t,n.events=[],n}return o(t,e),t.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},t.prototype.restart=function(){var e;this._cbs.onreset&&this._cbs.onreset();for(var t=0;t<this.events.length;t++){var n=this.events[t],r=n[0],o=n.slice(1);this._cbs[r]&&(e=this._cbs)[r].apply(e,o)}},t}(i(e("./MultiplexHandler")).default);n.CollectingHandler=a},{"./MultiplexHandler":28}],27:[function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var s=i(e("domhandler")),l=a(e("domutils")),u=e("./Parser"),d=function(e){function t(t,n){return"object"===c(t)&&null!==t&&(n=t=void 0),e.call(this,t,n)||this}return o(t,e),t.prototype.onend=function(){var e={},t=p(v,this.dom);if(t)if("feed"===t.name){var n=t.children;e.type="atom",g(e,"id","id",n),g(e,"title","title",n);var r=m("href",p("link",n));r&&(e.link=r),g(e,"description","subtitle",n),(o=f("updated",n))&&(e.updated=new Date(o)),g(e,"author","email",n,!0),e.items=h("entry",n).map((function(e){var t={},n=e.children;g(t,"id","id",n),g(t,"title","title",n);var r=m("href",p("link",n));r&&(t.link=r);var o=f("summary",n)||f("content",n);o&&(t.description=o);var i=f("updated",n);return i&&(t.pubDate=new Date(i)),t}))}else{var o;n=p("channel",t.children).children,e.type=t.name.substr(0,3),e.id="",g(e,"title","title",n),g(e,"link","link",n),g(e,"description","description",n),(o=f("lastBuildDate",n))&&(e.updated=new Date(o)),g(e,"author","managingEditor",n,!0),e.items=h("item",t.children).map((function(e){var t={},n=e.children;g(t,"id","guid",n),g(t,"title","title",n),g(t,"link","link",n),g(t,"description","description",n);var r=f("pubDate",n);return r&&(t.pubDate=new Date(r)),t}))}this.feed=e,this.handleCallback(t?null:Error("couldn't find root of feed"))},t}(s.default);function h(e,t){return l.getElementsByTagName(e,t,!0)}function p(e,t){return l.getElementsByTagName(e,t,!0,1)[0]}function f(e,t,n){return void 0===n&&(n=!1),l.getText(l.getElementsByTagName(e,t,n,1)).trim()}function m(e,t){return t?t.attribs[e]:null}function g(e,t,n,r,o){void 0===o&&(o=!1);var i=f(n,r,o);i&&(e[t]=i)}function v(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}n.FeedHandler=d;var y={xmlMode:!0};n.parseFeed=function(e,t){void 0===t&&(t=y);var n=new d(t);return new u.Parser(n,t).end(e),n.feed}},{"./Parser":29,domhandler:7,domutils:10}],28:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e){this._func=e}return e.prototype.onattribute=function(e,t){this._func("onattribute",e,t)},e.prototype.oncdatastart=function(){this._func("oncdatastart")},e.prototype.oncdataend=function(){this._func("oncdataend")},e.prototype.ontext=function(e){this._func("ontext",e)},e.prototype.onprocessinginstruction=function(e,t){this._func("onprocessinginstruction",e,t)},e.prototype.oncomment=function(e){this._func("oncomment",e)},e.prototype.oncommentend=function(){this._func("oncommentend")},e.prototype.onclosetag=function(e){this._func("onclosetag",e)},e.prototype.onopentag=function(e,t){this._func("onopentag",e,t)},e.prototype.onopentagname=function(e){this._func("onopentagname",e)},e.prototype.onerror=function(e){this._func("onerror",e)},e.prototype.onend=function(){this._func("onend")},e.prototype.onparserinit=function(e){this._func("onparserinit",e)},e.prototype.onreset=function(){this._func("onreset")},e}();n.default=r},{}],29:[function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var a=i(e("./Tokenizer")),s=e("events"),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:c,h1:c,h2:c,h3:c,h4:c,h5:c,h6:c,select:l,input:l,output:l,button:l,datalist:l,textarea:l,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:c,article:c,aside:c,blockquote:c,details:c,div:c,dl:c,fieldset:c,figcaption:c,figure:c,footer:c,form:c,header:c,hr:c,main:c,nav:c,ol:c,pre:c,section:c,table:c,ul:c,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),h=new Set(["math","svg"]),p=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=/\s|\//,m=function(e){function t(n,r){var o=e.call(this)||this;return o._tagname="",o._attribname="",o._attribvalue="",o._attribs=null,o._stack=[],o._foreignContext=[],o.startIndex=0,o.endIndex=null,o.parseChunk=t.prototype.write,o.done=t.prototype.end,o._options=r||{},o._cbs=n||{},o._tagname="",o._attribname="",o._attribvalue="",o._attribs=null,o._stack=[],o._foreignContext=[],o.startIndex=0,o.endIndex=null,o._lowerCaseTagNames="lowerCaseTags"in o._options?!!o._options.lowerCaseTags:!o._options.xmlMode,o._lowerCaseAttributeNames="lowerCaseAttributeNames"in o._options?!!o._options.lowerCaseAttributeNames:!o._options.xmlMode,o._tokenizer=new(o._options.Tokenizer||a.default)(o._options,o),o._cbs.onparserinit&&o._cbs.onparserinit(o),o}return o(t,e),t.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},t.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},t.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&Object.prototype.hasOwnProperty.call(u,e))for(var t=void 0;u[e].has(t=this._stack[this._stack.length-1]);this.onclosetag(t));!this._options.xmlMode&&d.has(e)||(this._stack.push(e),h.has(e)?this._foreignContext.push(!0):p.has(e)&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},t.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&d.has(this._tagname)&&this._cbs.onclosetag(this._tagname),this._tagname=""},t.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(h.has(e)||p.has(e))&&this._foreignContext.pop(),!this._stack.length||!this._options.xmlMode&&d.has(e))this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},t.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},t.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},t.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},t.prototype.onattribdata=function(e){this._attribvalue+=e},t.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},t.prototype._getInstructionName=function(e){var t=e.search(f),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},t.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},t.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},t.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},t.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},t.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},t.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.write=function(e){this._tokenizer.write(e)},t.prototype.end=function(e){this._tokenizer.end(e)},t.prototype.pause=function(){this._tokenizer.pause()},t.prototype.resume=function(){this._tokenizer.resume()},t}(s.EventEmitter);n.Parser=m},{"./Tokenizer":30,events:25}],30:[function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var o=r(e("entities/lib/decode_codepoint")),i=r(e("entities/lib/maps/entities.json")),a=r(e("entities/lib/maps/legacy.json")),s=r(e("entities/lib/maps/xml.json"));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e,t,n){var r=e.toLowerCase();return e===r?function(e,o){o===r?e._state=t:(e._state=n,e._index--)}:function(o,i){i===r||i===e?o._state=t:(o._state=n,o._index--)}}function u(e,t){var n=e.toLowerCase();return function(r,o){o===n||o===e?r._state=t:(r._state=3,r._index--)}}var d=c("C",23,16),h=c("D",24,16),p=c("A",25,16),f=c("T",26,16),m=c("A",27,16),g=u("R",34),v=u("I",35),y=u("P",36),b=u("T",37),w=c("R",39,1),C=c("I",40,1),_=c("P",41,1),x=c("T",42,1),S=u("Y",44),k=u("L",45),P=u("E",46),T=c("Y",48,1),E=c("L",49,1),O=c("E",50,1),M=c("#",52,53),A=c("X",55,54),D=function(){function e(e,t){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1,this._cbs=t,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}return e.prototype.reset=function(){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1},e.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=2,this._sectionStart=this._index):this._decodeEntities&&1===this._special&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=1,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||1!==this._special||l(e)?this._state=1:"!"===e?(this._state=15,this._sectionStart=this._index+1):"?"===e?(this._state=17,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?3:31,this._sectionStart=this._index)},e.prototype._stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this._emitToken("onopentagname"),this._state=8,this._index--)},e.prototype._stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this._special?"s"===e||"S"===e?this._state=32:(this._state=1,this._index--):(this._state=6,this._sectionStart=this._index))},e.prototype._stateInClosingTagName=function(e){(">"===e||l(e))&&(this._emitToken("onclosetag"),this._state=7,this._index--)},e.prototype._stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=1,this._sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this._sectionStart=this._index)},e.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=1,this._sectionStart=this._index+1):l(e)||(this._state=8,this._index--)},e.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=10,this._index--)},e.prototype._stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this._cbs.onattribend(),this._state=8,this._index--):l(e)||(this._cbs.onattribend(),this._state=9,this._sectionStart=this._index)},e.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this._sectionStart=this._index+1):"'"===e?(this._state=13,this._sectionStart=this._index+1):l(e)||(this._state=14,this._sectionStart=this._index,this._index--)},e.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeDeclaration=function(e){this._state="["===e?22:"-"===e?18:16},e.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeComment=function(e){"-"===e?(this._state=19,this._sectionStart=this._index+1):this._state=16},e.prototype._stateInComment=function(e){"-"===e&&(this._state=20)},e.prototype._stateAfterComment1=function(e){this._state="-"===e?21:19},e.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=28,this._sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype._stateInCdata=function(e){"]"===e&&(this._state=29)},e.prototype._stateAfterCdata1=function(e){this._state="]"===e?30:28},e.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"]"!==e&&(this._state=28)},e.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=33:"t"===e||"T"===e?this._state=43:(this._state=3,this._index--)},e.prototype._stateBeforeSpecialEnd=function(e){2!==this._special||"c"!==e&&"C"!==e?3!==this._special||"t"!==e&&"T"!==e?this._state=1:this._state=47:this._state=38},e.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||l(e))&&(this._special=2),this._state=3,this._index--},e.prototype._stateAfterScript5=function(e){">"===e||l(e)?(this._special=1,this._state=6,this._sectionStart=this._index-6,this._index--):this._state=1},e.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||l(e))&&(this._special=3),this._state=3,this._index--},e.prototype._stateAfterStyle4=function(e){">"===e||l(e)?(this._special=1,this._state=6,this._sectionStart=this._index-5,this._index--):this._state=1},e.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?s.default:i.default;Object.prototype.hasOwnProperty.call(t,e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},e.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(a.default,n))return this._emitPartial(a.default[n]),void(this._sectionStart+=t+1);t--}},e.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(1!==this._baseState?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},e.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),i=parseInt(r,t);this._emitPartial(o.default(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},e.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},e.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},e.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(1===this._state?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},e.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},e.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);1===this._state?this._stateText(e):12===this._state?this._stateInAttributeValueDoubleQuotes(e):9===this._state?this._stateInAttributeName(e):19===this._state?this._stateInComment(e):8===this._state?this._stateBeforeAttributeName(e):3===this._state?this._stateInTagName(e):6===this._state?this._stateInClosingTagName(e):2===this._state?this._stateBeforeTagName(e):10===this._state?this._stateAfterAttributeName(e):13===this._state?this._stateInAttributeValueSingleQuotes(e):11===this._state?this._stateBeforeAttributeValue(e):5===this._state?this._stateBeforeClosingTagName(e):7===this._state?this._stateAfterClosingTagName(e):31===this._state?this._stateBeforeSpecial(e):20===this._state?this._stateAfterComment1(e):14===this._state?this._stateInAttributeValueNoQuotes(e):4===this._state?this._stateInSelfClosingTag(e):16===this._state?this._stateInDeclaration(e):15===this._state?this._stateBeforeDeclaration(e):21===this._state?this._stateAfterComment2(e):18===this._state?this._stateBeforeComment(e):32===this._state?this._stateBeforeSpecialEnd(e):38===this._state?w(this,e):39===this._state?C(this,e):40===this._state?_(this,e):33===this._state?g(this,e):34===this._state?v(this,e):35===this._state?y(this,e):36===this._state?b(this,e):37===this._state?this._stateBeforeScript5(e):41===this._state?x(this,e):42===this._state?this._stateAfterScript5(e):43===this._state?S(this,e):28===this._state?this._stateInCdata(e):44===this._state?k(this,e):45===this._state?P(this,e):46===this._state?this._stateBeforeStyle4(e):47===this._state?T(this,e):48===this._state?E(this,e):49===this._state?O(this,e):50===this._state?this._stateAfterStyle4(e):17===this._state?this._stateInProcessingInstruction(e):53===this._state?this._stateInNamedEntity(e):22===this._state?d(this,e):51===this._state?M(this,e):23===this._state?h(this,e):24===this._state?p(this,e):29===this._state?this._stateAfterCdata1(e):30===this._state?this._stateAfterCdata2(e):25===this._state?f(this,e):26===this._state?m(this,e):27===this._state?this._stateBeforeCdata6(e):55===this._state?this._stateInHexEntity(e):54===this._state?this._stateInNumericEntity(e):52===this._state?A(this,e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},e.prototype.pause=function(){this._running=!1},e.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},e.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},e.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},e.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);28===this._state||29===this._state||30===this._state?this._cbs.oncdata(e):19===this._state||20===this._state||21===this._state?this._cbs.oncomment(e):53!==this._state||this._xmlMode?54!==this._state||this._xmlMode?55!==this._state||this._xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},e.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},e.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},e.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},e.prototype._emitPartial=function(e){1!==this._baseState?this._cbs.onattribdata(e):this._cbs.ontext(e)},e}();n.default=D},{"entities/lib/decode_codepoint":18,"entities/lib/maps/entities.json":22,"entities/lib/maps/legacy.json":23,"entities/lib/maps/xml.json":24}],31:[function(e,t,n){function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(n,"__esModule",{value:!0});var i=e("./Parser");n.Parser=i.Parser;var a=e("domhandler");n.DomHandler=a.DomHandler,n.DefaultHandler=a.DomHandler,n.parseDOM=function(e,t){var n=new a.DomHandler(void 0,t);return new i.Parser(n,t).end(e),n.dom},n.createDomStream=function(e,t,n){var r=new a.DomHandler(e,t,n);return new i.Parser(r,t)};var s=e("./Tokenizer");n.Tokenizer=s.default;var l=o(e("domelementtype"));n.ElementType=l,n.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0},r(e("./FeedHandler")),r(e("./WritableStream")),r(e("./CollectingHandler"));var c=o(e("domutils"));n.DomUtils=c;var u=e("./FeedHandler");n.RssHandler=u.FeedHandler},{"./CollectingHandler":26,"./FeedHandler":27,"./Parser":29,"./Tokenizer":30,"./WritableStream":2,domelementtype:6,domhandler:7,domutils:10}],32:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=f,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*m}},{}],33:[function(e,t,n){var r=e("./_getNative")(e("./_root"),"DataView");t.exports=r},{"./_getNative":93,"./_root":130}],34:[function(e,t,n){var r=e("./_hashClear"),o=e("./_hashDelete"),i=e("./_hashGet"),a=e("./_hashHas"),s=e("./_hashSet");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},{"./_hashClear":100,"./_hashDelete":101,"./_hashGet":102,"./_hashHas":103,"./_hashSet":104}],35:[function(e,t,n){var r=e("./_listCacheClear"),o=e("./_listCacheDelete"),i=e("./_listCacheGet"),a=e("./_listCacheHas"),s=e("./_listCacheSet");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},{"./_listCacheClear":113,"./_listCacheDelete":114,"./_listCacheGet":115,"./_listCacheHas":116,"./_listCacheSet":117}],36:[function(e,t,n){var r=e("./_getNative")(e("./_root"),"Map");t.exports=r},{"./_getNative":93,"./_root":130}],37:[function(e,t,n){var r=e("./_mapCacheClear"),o=e("./_mapCacheDelete"),i=e("./_mapCacheGet"),a=e("./_mapCacheHas"),s=e("./_mapCacheSet");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l},{"./_mapCacheClear":118,"./_mapCacheDelete":119,"./_mapCacheGet":120,"./_mapCacheHas":121,"./_mapCacheSet":122}],38:[function(e,t,n){var r=e("./_getNative")(e("./_root"),"Promise");t.exports=r},{"./_getNative":93,"./_root":130}],39:[function(e,t,n){var r=e("./_getNative")(e("./_root"),"Set");t.exports=r},{"./_getNative":93,"./_root":130}],40:[function(e,t,n){var r=e("./_ListCache"),o=e("./_stackClear"),i=e("./_stackDelete"),a=e("./_stackGet"),s=e("./_stackHas"),l=e("./_stackSet");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,t.exports=c},{"./_ListCache":35,"./_stackClear":134,"./_stackDelete":135,"./_stackGet":136,"./_stackHas":137,"./_stackSet":138}],41:[function(e,t,n){var r=e("./_root").Symbol;t.exports=r},{"./_root":130}],42:[function(e,t,n){var r=e("./_root").Uint8Array;t.exports=r},{"./_root":130}],43:[function(e,t,n){var r=e("./_getNative")(e("./_root"),"WeakMap");t.exports=r},{"./_getNative":93,"./_root":130}],44:[function(e,t,n){t.exports=function(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)}},{}],45:[function(e,t,n){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},{}],46:[function(e,t,n){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},{}],47:[function(e,t,n){var r=e("./_baseTimes"),o=e("./isArguments"),i=e("./isArray"),a=e("./isBuffer"),s=e("./_isIndex"),l=e("./isTypedArray"),c=Object.prototype.hasOwnProperty;t.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),p=n||u||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},{"./_baseTimes":72,"./_isIndex":108,"./isArguments":145,"./isArray":146,"./isBuffer":149,"./isTypedArray":159}],48:[function(e,t,n){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},{}],49:[function(e,t,n){t.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},{}],50:[function(e,t,n){var r=e("./_baseAssignValue"),o=e("./eq");t.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},{"./_baseAssignValue":55,"./eq":142}],51:[function(e,t,n){var r=e("./_baseAssignValue"),o=e("./eq"),i=Object.prototype.hasOwnProperty;t.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},{"./_baseAssignValue":55,"./eq":142}],52:[function(e,t,n){var r=e("./eq");t.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},{"./eq":142}],53:[function(e,t,n){var r=e("./_copyObject"),o=e("./keys");t.exports=function(e,t){return e&&r(t,o(t),e)}},{"./_copyObject":82,"./keys":160}],54:[function(e,t,n){var r=e("./_copyObject"),o=e("./keysIn");t.exports=function(e,t){return e&&r(t,o(t),e)}},{"./_copyObject":82,"./keysIn":161}],55:[function(e,t,n){var r=e("./_defineProperty");t.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},{"./_defineProperty":88}],56:[function(e,t,n){var r=e("./_Stack"),o=e("./_arrayEach"),i=e("./_assignValue"),a=e("./_baseAssign"),s=e("./_baseAssignIn"),l=e("./_cloneBuffer"),c=e("./_copyArray"),u=e("./_copySymbols"),d=e("./_copySymbolsIn"),h=e("./_getAllKeys"),p=e("./_getAllKeysIn"),f=e("./_getTag"),m=e("./_initCloneArray"),g=e("./_initCloneByTag"),v=e("./_initCloneObject"),y=e("./isArray"),b=e("./isBuffer"),w=e("./isMap"),C=e("./isObject"),_=e("./isSet"),x=e("./keys"),S=e("./keysIn"),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,t.exports=function e(t,n,P,T,E,O){var M,A=1&n,D=2&n,I=4&n;if(P&&(M=E?P(t,T,E,O):P(t)),void 0!==M)return M;if(!C(t))return t;var L=y(t);if(L){if(M=m(t),!A)return c(t,M)}else{var N=f(t),j="[object Function]"==N||"[object GeneratorFunction]"==N;if(b(t))return l(t,A);if("[object Object]"==N||"[object Arguments]"==N||j&&!E){if(M=D||j?{}:v(t),!A)return D?d(t,s(M,t)):u(t,a(M,t))}else{if(!k[N])return E?t:{};M=g(t,N,A)}}O||(O=new r);var R=O.get(t);if(R)return R;O.set(t,M),_(t)?t.forEach((function(r){M.add(e(r,n,P,r,t,O))})):w(t)&&t.forEach((function(r,o){M.set(o,e(r,n,P,o,t,O))}));var z=L?void 0:(I?D?p:h:D?S:x)(t);return o(z||t,(function(r,o){z&&(r=t[o=r]),i(M,o,e(r,n,P,o,t,O))})),M}},{"./_Stack":40,"./_arrayEach":45,"./_assignValue":51,"./_baseAssign":53,"./_baseAssignIn":54,"./_cloneBuffer":76,"./_copyArray":81,"./_copySymbols":83,"./_copySymbolsIn":84,"./_getAllKeys":90,"./_getAllKeysIn":91,"./_getTag":98,"./_initCloneArray":105,"./_initCloneByTag":106,"./_initCloneObject":107,"./isArray":146,"./isBuffer":149,"./isMap":152,"./isObject":153,"./isSet":156,"./keys":160,"./keysIn":161}],57:[function(e,t,n){var r=e("./isObject"),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();t.exports=i},{"./isObject":153}],58:[function(e,t,n){var r=e("./_createBaseFor")();t.exports=r},{"./_createBaseFor":87}],59:[function(e,t,n){var r=e("./_arrayPush"),o=e("./isArray");t.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},{"./_arrayPush":49,"./isArray":146}],60:[function(e,t,n){var r=e("./_Symbol"),o=e("./_getRawTag"),i=e("./_objectToString"),a=r?r.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},{"./_Symbol":41,"./_getRawTag":95,"./_objectToString":127}],61:[function(e,t,n){var r=e("./_baseGetTag"),o=e("./isObjectLike");t.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},{"./_baseGetTag":60,"./isObjectLike":154}],62:[function(e,t,n){var r=e("./_getTag"),o=e("./isObjectLike");t.exports=function(e){return o(e)&&"[object Map]"==r(e)}},{"./_getTag":98,"./isObjectLike":154}],63:[function(e,t,n){var r=e("./isFunction"),o=e("./_isMasked"),i=e("./isObject"),a=e("./_toSource"),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!i(e)||o(e))&&(r(e)?h:s).test(a(e))}},{"./_isMasked":111,"./_toSource":139,"./isFunction":150,"./isObject":153}],64:[function(e,t,n){var r=e("./_getTag"),o=e("./isObjectLike");t.exports=function(e){return o(e)&&"[object Set]"==r(e)}},{"./_getTag":98,"./isObjectLike":154}],65:[function(e,t,n){var r=e("./_baseGetTag"),o=e("./isLength"),i=e("./isObjectLike"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},{"./_baseGetTag":60,"./isLength":151,"./isObjectLike":154}],66:[function(e,t,n){var r=e("./_isPrototype"),o=e("./_nativeKeys"),i=Object.prototype.hasOwnProperty;t.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},{"./_isPrototype":112,"./_nativeKeys":124}],67:[function(e,t,n){var r=e("./isObject"),o=e("./_isPrototype"),i=e("./_nativeKeysIn"),a=Object.prototype.hasOwnProperty;t.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},{"./_isPrototype":112,"./_nativeKeysIn":125,"./isObject":153}],68:[function(e,t,n){var r=e("./_Stack"),o=e("./_assignMergeValue"),i=e("./_baseFor"),a=e("./_baseMergeDeep"),s=e("./isObject"),l=e("./keysIn"),c=e("./_safeGet");t.exports=function e(t,n,u,d,h){t!==n&&i(n,(function(i,l){if(h||(h=new r),s(i))a(t,n,l,u,e,d,h);else{var p=d?d(c(t,l),i,l+"",t,n,h):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},{"./_Stack":40,"./_assignMergeValue":50,"./_baseFor":58,"./_baseMergeDeep":69,"./_safeGet":131,"./isObject":153,"./keysIn":161}],69:[function(e,t,n){var r=e("./_assignMergeValue"),o=e("./_cloneBuffer"),i=e("./_cloneTypedArray"),a=e("./_copyArray"),s=e("./_initCloneObject"),l=e("./isArguments"),c=e("./isArray"),u=e("./isArrayLikeObject"),d=e("./isBuffer"),h=e("./isFunction"),p=e("./isObject"),f=e("./isPlainObject"),m=e("./isTypedArray"),g=e("./_safeGet"),v=e("./toPlainObject");t.exports=function(e,t,n,y,b,w,C){var _=g(e,n),x=g(t,n),S=C.get(x);if(S)r(e,n,S);else{var k=w?w(_,x,n+"",e,t,C):void 0,P=void 0===k;if(P){var T=c(x),E=!T&&d(x),O=!T&&!E&&m(x);k=x,T||E||O?c(_)?k=_:u(_)?k=a(_):E?(P=!1,k=o(x,!0)):O?(P=!1,k=i(x,!0)):k=[]:f(x)||l(x)?(k=_,l(_)?k=v(_):p(_)&&!h(_)||(k=s(x))):P=!1}P&&(C.set(x,k),b(k,x,y,w,C),C.delete(x)),r(e,n,k)}}},{"./_assignMergeValue":50,"./_cloneBuffer":76,"./_cloneTypedArray":80,"./_copyArray":81,"./_initCloneObject":107,"./_safeGet":131,"./isArguments":145,"./isArray":146,"./isArrayLikeObject":148,"./isBuffer":149,"./isFunction":150,"./isObject":153,"./isPlainObject":155,"./isTypedArray":159,"./toPlainObject":165}],70:[function(e,t,n){var r=e("./identity"),o=e("./_overRest"),i=e("./_setToString");t.exports=function(e,t){return i(o(e,t,r),e+"")}},{"./_overRest":129,"./_setToString":132,"./identity":144}],71:[function(e,t,n){var r=e("./constant"),o=e("./_defineProperty"),i=e("./identity"),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;t.exports=a},{"./_defineProperty":88,"./constant":141,"./identity":144}],72:[function(e,t,n){t.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},{}],73:[function(e,t,n){var r=e("./_Symbol"),o=e("./_arrayMap"),i=e("./isArray"),a=e("./isSymbol"),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},{"./_Symbol":41,"./_arrayMap":48,"./isArray":146,"./isSymbol":158}],74:[function(e,t,n){t.exports=function(e){return function(t){return e(t)}}},{}],75:[function(e,t,n){var r=e("./_Uint8Array");t.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},{"./_Uint8Array":42}],76:[function(e,t,n){var r=e("./_root"),o="object"==c(n)&&n&&!n.nodeType&&n,i=o&&"object"==c(t)&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},{"./_root":130}],77:[function(e,t,n){var r=e("./_cloneArrayBuffer");t.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},{"./_cloneArrayBuffer":75}],78:[function(e,t,n){var r=/\w*$/;t.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},{}],79:[function(e,t,n){var r=e("./_Symbol"),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(e){return i?Object(i.call(e)):{}}},{"./_Symbol":41}],80:[function(e,t,n){var r=e("./_cloneArrayBuffer");t.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},{"./_cloneArrayBuffer":75}],81:[function(e,t,n){t.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},{}],82:[function(e,t,n){var r=e("./_assignValue"),o=e("./_baseAssignValue");t.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},{"./_assignValue":51,"./_baseAssignValue":55}],83:[function(e,t,n){var r=e("./_copyObject"),o=e("./_getSymbols");t.exports=function(e,t){return r(e,o(e),t)}},{"./_copyObject":82,"./_getSymbols":96}],84:[function(e,t,n){var r=e("./_copyObject"),o=e("./_getSymbolsIn");t.exports=function(e,t){return r(e,o(e),t)}},{"./_copyObject":82,"./_getSymbolsIn":97}],85:[function(e,t,n){var r=e("./_root")["__core-js_shared__"];t.exports=r},{"./_root":130}],86:[function(e,t,n){var r=e("./_baseRest"),o=e("./_isIterateeCall");t.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},{"./_baseRest":70,"./_isIterateeCall":109}],87:[function(e,t,n){t.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},{}],88:[function(e,t,n){var r=e("./_getNative"),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=o},{"./_getNative":93}],89:[function(e,t,r){(function(e){var n="object"==c(e)&&e&&e.Object===Object&&e;t.exports=n}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],90:[function(e,t,n){var r=e("./_baseGetAllKeys"),o=e("./_getSymbols"),i=e("./keys");t.exports=function(e){return r(e,i,o)}},{"./_baseGetAllKeys":59,"./_getSymbols":96,"./keys":160}],91:[function(e,t,n){var r=e("./_baseGetAllKeys"),o=e("./_getSymbolsIn"),i=e("./keysIn");t.exports=function(e){return r(e,i,o)}},{"./_baseGetAllKeys":59,"./_getSymbolsIn":97,"./keysIn":161}],92:[function(e,t,n){var r=e("./_isKeyable");t.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},{"./_isKeyable":110}],93:[function(e,t,n){var r=e("./_baseIsNative"),o=e("./_getValue");t.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},{"./_baseIsNative":63,"./_getValue":99}],94:[function(e,t,n){var r=e("./_overArg")(Object.getPrototypeOf,Object);t.exports=r},{"./_overArg":128}],95:[function(e,t,n){var r=e("./_Symbol"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},{"./_Symbol":41}],96:[function(e,t,n){var r=e("./_arrayFilter"),o=e("./stubArray"),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;t.exports=s},{"./_arrayFilter":46,"./stubArray":163}],97:[function(e,t,n){var r=e("./_arrayPush"),o=e("./_getPrototype"),i=e("./_getSymbols"),a=e("./stubArray"),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;t.exports=s},{"./_arrayPush":49,"./_getPrototype":94,"./_getSymbols":96,"./stubArray":163}],98:[function(e,t,n){var r=e("./_DataView"),o=e("./_Map"),i=e("./_Promise"),a=e("./_Set"),s=e("./_WeakMap"),l=e("./_baseGetTag"),c=e("./_toSource"),u=c(r),d=c(o),h=c(i),p=c(a),f=c(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return t}),t.exports=m},{"./_DataView":33,"./_Map":36,"./_Promise":38,"./_Set":39,"./_WeakMap":43,"./_baseGetTag":60,"./_toSource":139}],99:[function(e,t,n){t.exports=function(e,t){return null==e?void 0:e[t]}},{}],100:[function(e,t,n){var r=e("./_nativeCreate");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},{"./_nativeCreate":123}],101:[function(e,t,n){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},{}],102:[function(e,t,n){var r=e("./_nativeCreate"),o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},{"./_nativeCreate":123}],103:[function(e,t,n){var r=e("./_nativeCreate"),o=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},{"./_nativeCreate":123}],104:[function(e,t,n){var r=e("./_nativeCreate");t.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},{"./_nativeCreate":123}],105:[function(e,t,n){var r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},{}],106:[function(e,t,n){var r=e("./_cloneArrayBuffer"),o=e("./_cloneDataView"),i=e("./_cloneRegExp"),a=e("./_cloneSymbol"),s=e("./_cloneTypedArray");t.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Set]":return new l;case"[object Symbol]":return a(e)}}},{"./_cloneArrayBuffer":75,"./_cloneDataView":77,"./_cloneRegExp":78,"./_cloneSymbol":79,"./_cloneTypedArray":80}],107:[function(e,t,n){var r=e("./_baseCreate"),o=e("./_getPrototype"),i=e("./_isPrototype");t.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},{"./_baseCreate":57,"./_getPrototype":94,"./_isPrototype":112}],108:[function(e,t,n){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var n=c(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},{}],109:[function(e,t,n){var r=e("./eq"),o=e("./isArrayLike"),i=e("./_isIndex"),a=e("./isObject");t.exports=function(e,t,n){if(!a(n))return!1;var s=c(t);return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},{"./_isIndex":108,"./eq":142,"./isArrayLike":147,"./isObject":153}],110:[function(e,t,n){t.exports=function(e){var t=c(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},{}],111:[function(e,t,n){var r,o=e("./_coreJsData"),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(e){return!!i&&i in e}},{"./_coreJsData":85}],112:[function(e,t,n){var r=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},{}],113:[function(e,t,n){t.exports=function(){this.__data__=[],this.size=0}},{}],114:[function(e,t,n){var r=e("./_assocIndexOf"),o=Array.prototype.splice;t.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},{"./_assocIndexOf":52}],115:[function(e,t,n){var r=e("./_assocIndexOf");t.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},{"./_assocIndexOf":52}],116:[function(e,t,n){var r=e("./_assocIndexOf");t.exports=function(e){return r(this.__data__,e)>-1}},{"./_assocIndexOf":52}],117:[function(e,t,n){var r=e("./_assocIndexOf");t.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},{"./_assocIndexOf":52}],118:[function(e,t,n){var r=e("./_Hash"),o=e("./_ListCache"),i=e("./_Map");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},{"./_Hash":34,"./_ListCache":35,"./_Map":36}],119:[function(e,t,n){var r=e("./_getMapData");t.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},{"./_getMapData":92}],120:[function(e,t,n){var r=e("./_getMapData");t.exports=function(e){return r(this,e).get(e)}},{"./_getMapData":92}],121:[function(e,t,n){var r=e("./_getMapData");t.exports=function(e){return r(this,e).has(e)}},{"./_getMapData":92}],122:[function(e,t,n){var r=e("./_getMapData");t.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},{"./_getMapData":92}],123:[function(e,t,n){var r=e("./_getNative")(Object,"create");t.exports=r},{"./_getNative":93}],124:[function(e,t,n){var r=e("./_overArg")(Object.keys,Object);t.exports=r},{"./_overArg":128}],125:[function(e,t,n){t.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},{}],126:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==c(n)&&n&&!n.nodeType&&n,i=o&&"object"==c(t)&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},{"./_freeGlobal":89}],127:[function(e,t,n){var r=Object.prototype.toString;t.exports=function(e){return r.call(e)}},{}],128:[function(e,t,n){t.exports=function(e,t){return function(n){return e(t(n))}}},{}],129:[function(e,t,n){var r=e("./_apply"),o=Math.max;t.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},{"./_apply":44}],130:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==("undefined"==typeof self?"undefined":c(self))&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},{"./_freeGlobal":89}],131:[function(e,t,n){t.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},{}],132:[function(e,t,n){var r=e("./_baseSetToString"),o=e("./_shortOut")(r);t.exports=o},{"./_baseSetToString":71,"./_shortOut":133}],133:[function(e,t,n){var r=Date.now;t.exports=function(e){var t=0,n=0;return function(){var o=r(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},{}],134:[function(e,t,n){var r=e("./_ListCache");t.exports=function(){this.__data__=new r,this.size=0}},{"./_ListCache":35}],135:[function(e,t,n){t.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},{}],136:[function(e,t,n){t.exports=function(e){return this.__data__.get(e)}},{}],137:[function(e,t,n){t.exports=function(e){return this.__data__.has(e)}},{}],138:[function(e,t,n){var r=e("./_ListCache"),o=e("./_Map"),i=e("./_MapCache");t.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},{"./_ListCache":35,"./_Map":36,"./_MapCache":37}],139:[function(e,t,n){var r=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},{}],140:[function(e,t,n){var r=e("./_baseClone");t.exports=function(e){return r(e,5)}},{"./_baseClone":56}],141:[function(e,t,n){t.exports=function(e){return function(){return e}}},{}],142:[function(e,t,n){t.exports=function(e,t){return e===t||e!=e&&t!=t}},{}],143:[function(e,t,n){var r=e("./toString"),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);t.exports=function(e){return(e=r(e))&&i.test(e)?e.replace(o,"\\$&"):e}},{"./toString":166}],144:[function(e,t,n){t.exports=function(e){return e}},{}],145:[function(e,t,n){var r=e("./_baseIsArguments"),o=e("./isObjectLike"),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};t.exports=l},{"./_baseIsArguments":61,"./isObjectLike":154}],146:[function(e,t,n){var r=Array.isArray;t.exports=r},{}],147:[function(e,t,n){var r=e("./isFunction"),o=e("./isLength");t.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},{"./isFunction":150,"./isLength":151}],148:[function(e,t,n){var r=e("./isArrayLike"),o=e("./isObjectLike");t.exports=function(e){return o(e)&&r(e)}},{"./isArrayLike":147,"./isObjectLike":154}],149:[function(e,t,n){var r=e("./_root"),o=e("./stubFalse"),i="object"==c(n)&&n&&!n.nodeType&&n,a=i&&"object"==c(t)&&t&&!t.nodeType&&t,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;t.exports=l},{"./_root":130,"./stubFalse":164}],150:[function(e,t,n){var r=e("./_baseGetTag"),o=e("./isObject");t.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},{"./_baseGetTag":60,"./isObject":153}],151:[function(e,t,n){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},{}],152:[function(e,t,n){var r=e("./_baseIsMap"),o=e("./_baseUnary"),i=e("./_nodeUtil"),a=i&&i.isMap,s=a?o(a):r;t.exports=s},{"./_baseIsMap":62,"./_baseUnary":74,"./_nodeUtil":126}],153:[function(e,t,n){t.exports=function(e){var t=c(e);return null!=e&&("object"==t||"function"==t)}},{}],154:[function(e,t,n){t.exports=function(e){return null!=e&&"object"==c(e)}},{}],155:[function(e,t,n){var r=e("./_baseGetTag"),o=e("./_getPrototype"),i=e("./isObjectLike"),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},{"./_baseGetTag":60,"./_getPrototype":94,"./isObjectLike":154}],156:[function(e,t,n){var r=e("./_baseIsSet"),o=e("./_baseUnary"),i=e("./_nodeUtil"),a=i&&i.isSet,s=a?o(a):r;t.exports=s},{"./_baseIsSet":64,"./_baseUnary":74,"./_nodeUtil":126}],157:[function(e,t,n){var r=e("./_baseGetTag"),o=e("./isArray"),i=e("./isObjectLike");t.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},{"./_baseGetTag":60,"./isArray":146,"./isObjectLike":154}],158:[function(e,t,n){var r=e("./_baseGetTag"),o=e("./isObjectLike");t.exports=function(e){return"symbol"==c(e)||o(e)&&"[object Symbol]"==r(e)}},{"./_baseGetTag":60,"./isObjectLike":154}],159:[function(e,t,n){var r=e("./_baseIsTypedArray"),o=e("./_baseUnary"),i=e("./_nodeUtil"),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},{"./_baseIsTypedArray":65,"./_baseUnary":74,"./_nodeUtil":126}],160:[function(e,t,n){var r=e("./_arrayLikeKeys"),o=e("./_baseKeys"),i=e("./isArrayLike");t.exports=function(e){return i(e)?r(e):o(e)}},{"./_arrayLikeKeys":47,"./_baseKeys":66,"./isArrayLike":147}],161:[function(e,t,n){var r=e("./_arrayLikeKeys"),o=e("./_baseKeysIn"),i=e("./isArrayLike");t.exports=function(e){return i(e)?r(e,!0):o(e)}},{"./_arrayLikeKeys":47,"./_baseKeysIn":67,"./isArrayLike":147}],162:[function(e,t,n){var r=e("./_baseMerge"),o=e("./_createAssigner")((function(e,t,n,o){r(e,t,n,o)}));t.exports=o},{"./_baseMerge":68,"./_createAssigner":86}],163:[function(e,t,n){t.exports=function(){return[]}},{}],164:[function(e,t,n){t.exports=function(){return!1}},{}],165:[function(e,t,n){var r=e("./_copyObject"),o=e("./keysIn");t.exports=function(e){return r(e,o(e))}},{"./_copyObject":82,"./keysIn":161}],166:[function(e,t,n){var r=e("./_baseToString");t.exports=function(e){return null==e?"":r(e)}},{"./_baseToString":73}],167:[function(e,t,n){var r,o;r=this,o=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(m));if(r)return n=r[0],m+=n.length,n}for(var r,o,i,a,s,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,p=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(n(u),m>=l)return g;r=n(d),o=[],","===r.slice(-1)?(r=r.replace(h,""),y()):v()}function v(){for(n(c),i="",a="in descriptor";;){if(s=e.charAt(m),"in descriptor"===a)if(t(s))i&&(o.push(i),i="",a="after descriptor");else{if(","===s)return m+=1,i&&o.push(i),void y();if("("===s)i+=s,a="in parens";else{if(""===s)return i&&o.push(i),void y();i+=s}}else if("in parens"===a)if(")"===s)i+=s,a="in descriptor";else{if(""===s)return o.push(i),void y();i+=s}else if("after descriptor"===a)if(t(s));else{if(""===s)return void y();a="in descriptor",m-=1}m+=1}}function y(){var t,n,i,a,s,l,c,u,d,h=!1,m={};for(a=0;a<o.length;a++)l=(s=o[a])[s.length-1],c=s.substring(0,s.length-1),u=parseInt(c,10),d=parseFloat(c),p.test(c)&&"w"===l?((t||n)&&(h=!0),0===u?h=!0:t=u):f.test(c)&&"x"===l?((t||n||i)&&(h=!0),d<0?h=!0:n=d):p.test(c)&&"h"===l?((i||n)&&(h=!0),0===u?h=!0:i=u):h=!0;h?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(m.url=r,t&&(m.w=t),n&&(m.d=n),i&&(m.h=i),g.push(m))}}},"object"===c(t)&&t.exports?t.exports=o():r.parseSrcset=o()},{}],168:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,o="/"===a.charAt(0))}return(o?"/":"")+(n=t(r(n.split("/"),(function(e){return!!e})),!o).join("/"))||"."},n.normalize=function(e){var i=n.isAbsolute(e),a="/"===o(e,-1);return(e=t(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l<a;l++)if(o[l]!==i[l]){s=l;break}var c=[];for(l=s;l<o.length;l++)c.push("..");return(c=c.concat(i.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:193}],169:[function(e,t,n){var r;n.__esModule=!0,n.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type="atrule",n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.append).call.apply(t,[this].concat(r))},o.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},r}(((r=e("./container"))&&r.__esModule?r:{default:r}).default);n.default=o,t.exports=n.default},{"./container":171}],170:[function(e,t,n){var r;n.__esModule=!0,n.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type="comment",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=e("./node"))&&r.__esModule?r:{default:r}).default);n.default=o,t.exports=n.default},{"./node":178}],171:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r=i(e("./declaration")),o=i(e("./comment"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(t){var n,i;function s(){return t.apply(this,arguments)||this}i=t,(n=s).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var c,u,d,h=s.prototype;return h.push=function(e){return e.parent=this,this.nodes.push(e),this},h.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n,r;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},h.walk=function(e){return this.each((function(t,n){var r;try{r=e(t,n)}catch(e){if(e.postcssNode=t,e.stack&&t.source&&/\n\s{4}at /.test(e.stack)){var o=t.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+o.input.from+":"+o.start.line+":"+o.start.column+"$&")}throw e}return!1!==r&&t.walk&&(r=t.walk(e)),r}))},h.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk((function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("decl"===e.type)return t(e,n)})))},h.walkRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk((function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("rule"===e.type)return t(e,n)})))},h.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk((function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk((function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk((function(e,n){if("atrule"===e.type)return t(e,n)})))},h.walkComments=function(e){return this.walk((function(t,n){if("comment"===t.type)return e(t,n)}))},h.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++)for(var i,s=o[r],l=this.normalize(s,this.last),c=a(l);!(i=c()).done;){var u=i.value;this.nodes.push(u)}return this},h.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,o=a(t=t.reverse());!(r=o()).done;){for(var i,s=r.value,l=this.normalize(s,this.first,"prepend").reverse(),c=a(l);!(i=c()).done;){var u=i.value;this.nodes.unshift(u)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this},h.cleanRaws=function(e){if(t.prototype.cleanRaws.call(this,e),this.nodes)for(var n,r=a(this.nodes);!(n=r()).done;)n.value.cleanRaws(e)},h.insertBefore=function(e,t){for(var n,r,o=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.nodes[e],o).reverse(),s=a(i);!(n=s()).done;){var l=n.value;this.nodes.splice(e,0,l)}for(var c in this.indexes)e<=(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this},h.insertAfter=function(e,t){e=this.index(e);for(var n,r,o=this.normalize(t,this.nodes[e]).reverse(),i=a(o);!(n=i()).done;){var s=n.value;this.nodes.splice(e+1,0,s)}for(var l in this.indexes)e<(r=this.indexes[l])&&(this.indexes[l]=r+o.length);return this},h.removeChild=function(e){var t;for(var n in e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},h.removeAll=function(){for(var e,t=a(this.nodes);!(e=t()).done;)e.value.parent=void 0;return this.nodes=[],this},h.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls((function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))})),this},h.every=function(e){return this.nodes.every(e)},h.some=function(e){return this.nodes.some(e)},h.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},h.normalize=function(t,n){var i=this;if("string"==typeof t)t=function e(t){return t.map((function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t}))}(e("./parse")(t).nodes);else if(Array.isArray(t))for(var s,l=a(t=t.slice(0));!(s=l()).done;){var c=s.value;c.parent&&c.parent.removeChild(c,"ignore")}else if("root"===t.type)for(var u,d=a(t=t.nodes.slice(0));!(u=d()).done;){var h=u.value;h.parent&&h.parent.removeChild(h,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new r.default(t)]}else if(t.selector)t=[new(e("./rule"))(t)];else if(t.name)t=[new(e("./at-rule"))(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new o.default(t)]}return t.map((function(e){return e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&n&&void 0!==n.raws.before&&(e.raws.before=n.raws.before.replace(/[^\s]/g,"")),e.parent=i,e}))},c=s,(u=[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}])&&l(c.prototype,u),d&&l(c,d),s}(i(e("./node")).default);n.default=c,t.exports=n.default},{"./at-rule":169,"./comment":170,"./declaration":173,"./node":178,"./parse":179,"./rule":186}],172:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r=a(e("supports-color")),o=a(e("chalk")),i=a(e("./terminal-highlight"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function l(e,t,n){return(l=c()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){var t,n;function a(t,n,r,o,i,s){var l;return(l=e.call(this,t)||this).name="CssSyntaxError",l.reason=t,i&&(l.file=i),o&&(l.source=o),s&&(l.plugin=s),void 0!==n&&void 0!==r&&(l.line=n,l.column=r),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(l),a),l}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},s.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;i.default&&(void 0===e&&(e=r.default.stdout),e&&(n=(0,i.default)(n)));var a=n.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length;function u(t){return e&&o.default.red?o.default.red.bold(t):t}function d(t){return e&&o.default.gray?o.default.gray(t):t}return a.slice(s,l).map((function(e,n){var r=s+1+n,o=" "+(" "+r).slice(-c)+" | ";if(r===t.line){var i=d(o.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return u(">")+d(o)+e+"\n "+i+u("^")}return" "+d(o)+e})).join("\n")},s.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},a}(s(Error));n.default=h,t.exports=n.default},{"./terminal-highlight":2,chalk:2,"supports-color":2}],173:[function(e,t,n){var r;n.__esModule=!0,n.default=void 0;var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).type="decl",n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(((r=e("./node"))&&r.__esModule?r:{default:r}).default);n.default=o,t.exports=n.default},{"./node":178}],174:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r=a(e("path")),o=a(e("./css-syntax-error")),i=a(e("./previous-map"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=0,u=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===c(e)&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\w+:\/\//.test(t.from)||r.default.isAbsolute(t.from)?this.file=t.from:this.file=r.default.resolve(t.from));var n=new i.default(this.css,t);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(l+=1,this.id="<input css "+l+">"),this.map&&(this.map.file=this.from)}var t,n,a,u=e.prototype;return u.error=function(e,t,n,r){var i;void 0===r&&(r={});var a=this.origin(t,n);return(i=a?new o.default(e,a.line,a.column,a.source,a.file,r.plugin):new o.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(i.input.file=this.file),i},u.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o},u.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:r.default.resolve(this.map.consumer().sourceRoot||".",e)},t=e,(n=[{key:"from",get:function(){return this.file||this.id}}])&&s(t.prototype,n),a&&s(t,a),e}();n.default=u,t.exports=n.default},{"./css-syntax-error":172,"./previous-map":182,path:168}],175:[function(e,t,n){(function(r){n.__esModule=!0,n.default=void 0;var o=u(e("./map-generator")),i=u(e("./stringify")),a=u(e("./warn-once")),s=u(e("./result")),l=u(e("./parse"));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return"object"===c(e)&&"function"==typeof e.then}var m=function(){function e(t,n,r){var o;if(this.stringified=!1,this.processed=!1,"object"===c(n)&&null!==n&&"root"===n.type)o=n;else if(n instanceof e||n instanceof s.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var i=l.default;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{o=i(n,r)}catch(e){this.error=e}}this.result=new s.default(t,o,r)}var t,n,u,h=e.prototype;return h.warnings=function(){return this.sync().warnings()},h.toString=function(){return this.css},h.then=function(e,t){return"production"!==r.env.NODE_ENV&&("from"in this.opts||(0,a.default)("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},h.catch=function(e){return this.async().catch(e)},h.finally=function(e){return this.async().then(e,e)},h.handleError=function(e,t){try{if(this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(t.postcssVersion&&"production"!==r.env.NODE_ENV){var n=t.postcssPlugin,o=t.postcssVersion,i=this.result.processor.version,a=o.split("."),s=i.split(".");(a[0]!==s[0]||parseInt(a[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+o+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},h.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],o=this.run(r);this.plugin+=1,f(o)?o.then((function(){n.asyncTick(e,t)})).catch((function(e){n.handleError(e,r),n.processed=!0,t(e)})):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},h.async=function(){var e=this;return this.processed?new Promise((function(t,n){e.error?n(e.error):t(e.stringify())})):(this.processing||(this.processing=new Promise((function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)})).then((function(){return e.processed=!0,e.stringify()}))),this.processing)},h.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;for(var e,t=d(this.result.processor.plugins);!(e=t()).done;){var n=e.value;if(f(this.run(n)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},h.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},h.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=i.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new o.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},t=e,(n=[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}])&&p(t.prototype,n),u&&p(t,u),e}();n.default=m,t.exports=n.default}).call(this,e("_process"))},{"./map-generator":177,"./parse":179,"./result":184,"./stringify":188,"./warn-once":191,_process:193}],176:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r={split:function(e,t,n){for(var r=[],o="",i=!1,a=0,s=!1,l=!1,c=0;c<e.length;c++){var u=e[c];s?l?l=!1:"\\"===u?l=!0:u===s&&(s=!1):'"'===u||"'"===u?s=u:"("===u?a+=1:")"===u?a>0&&(a-=1):0===a&&-1!==t.indexOf(u)&&(i=!0),i?(""!==o&&r.push(o.trim()),o="",i=!1):o+=u}return(n||""!==o)&&r.push(o.trim()),r},space:function(e){return r.split(e,[" ","\n","\t"])},comma:function(e){return r.split(e,[","],!0)}},o=r;n.default=o,t.exports=n.default},{}],177:[function(e,t,n){(function(r){n.__esModule=!0,n.default=void 0;var o=a(e("source-map")),i=a(e("path"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=function(){function e(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}var t=e.prototype;return t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk((function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}}))),this.previousMaps},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},t.setSourcesContent=function(){var e=this,t={};this.root.walk((function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.relative(r);e.map.setSourceContent(o,n.source.input.css)}}}))},t.applyPrevMaps=function(){for(var e,t=s(this.previous());!(e=t()).done;){var n=e.value,r=this.relative(n.file),a=n.root||i.default.dirname(n.file),l=void 0;!1===this.mapOpts.sourcesContent?(l=new o.default.SourceMapConsumer(n.text)).sourcesContent&&(l.sourcesContent=l.sourcesContent.map((function(){return null}))):l=n.consumer(),this.map.applySourceMap(l,r,this.relative(a))}},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.toBase64=function(e){return r?r.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},t.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?i.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=i.default.dirname(i.default.resolve(t,this.mapOpts.annotation))),e=i.default.relative(t,e),"\\"===i.default.sep?e.replace(/\\/g,"/"):e},t.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},t.generateString=function(){var e=this;this.css="",this.map=new o.default.SourceMapGenerator({file:this.outputFile()});var t,n,r=1,i=1;this.stringify(this.root,(function(o,a,s){if(e.css+=o,a&&"end"!==s&&(a.source&&a.source.start?e.map.addMapping({source:e.sourcePath(a),generated:{line:r,column:i-1},original:{line:a.source.start.line,column:a.source.start.column-1}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:r,column:i-1}})),(t=o.match(/\n/g))?(r+=t.length,n=o.lastIndexOf("\n"),i=o.length-n):i+=o.length,a&&"start"!==s){var l=a.parent||{raws:{}};("decl"!==a.type||a!==l.last||l.raws.semicolon)&&(a.source&&a.source.end?e.map.addMapping({source:e.sourcePath(a),generated:{line:r,column:i-2},original:{line:a.source.end.line,column:a.source.end.column-1}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:r,column:i-1}}))}}))},t.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},e}();n.default=c,t.exports=n.default}).call(this,e("buffer").Buffer)},{buffer:3,path:168,"source-map":208}],178:[function(e,t,n){(function(r){n.__esModule=!0,n.default=void 0;var o=s(e("./css-syntax-error")),i=s(e("./stringifier")),a=s(e("./stringify"));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e){if(void 0===e&&(e={}),this.raws={},"production"!==r.env.NODE_ENV&&"object"!==c(e)&&void 0!==e)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(e));for(var t in e)this[t]=e[t]}var t=e.prototype;return t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o.default(e)},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.toString=function(e){void 0===e&&(e=a.default),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.clone=function(e){void 0===e&&(e={});var t=function e(t,n){var r=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],a=c(i);"parent"===o&&"object"===a?n&&(r[o]=n):"source"===o?r[o]=i:i instanceof Array?r[o]=i.map((function(t){return e(t,r)})):("object"===a&&null!==i&&(i=e(i)),r[o]=i)}return r}(this);for(var n in e)t[n]=e[n];return t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.parent.insertBefore(this,i)}this.remove()}return this},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.before=function(e){return this.parent.insertBefore(this,e),this},t.after=function(e){return this.parent.insertAfter(this,e),this},t.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map((function(e){return"object"===c(e)&&e.toJSON?e.toJSON():e})):"object"===c(n)&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},t.raw=function(e,t){return(new i.default).raw(this,e,t)},t.root=function(){for(var e=this;e.parent;)e=e.parent;return e},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)"\n"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}},t.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();n.default=l,t.exports=n.default}).call(this,e("_process"))},{"./css-syntax-error":172,"./stringifier":187,"./stringify":188,_process:193}],179:[function(e,t,n){(function(r){n.__esModule=!0,n.default=void 0;var o=a(e("./parser")),i=a(e("./input"));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){var n=new i.default(e,t),a=new o.default(n);try{a.parse()}catch(e){throw"production"!==r.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return a.root};n.default=s,t.exports=n.default}).call(this,e("_process"))},{"./input":174,"./parser":180,_process:193}],180:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r=c(e("./declaration")),o=c(e("./tokenize")),i=c(e("./comment")),a=c(e("./at-rule")),s=c(e("./root")),l=c(e("./rule"));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e){this.input=e,this.root=new s.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{line:1,column:1}}}var t=e.prototype;return t.createTokenizer=function(){this.tokenizer=(0,o.default)(this.input)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.comment=function(e){var t=new i.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.emptyRule=function(e){var t=new l.default;this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],a=[],s=e;s;){if(n=s[0],a.push(s),"("===n||"["===n)o||(o=s),i.push("("===n?")":"]");else if(0===i.length){if(";"===n){if(r)return void this.decl(a);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));s=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;a.length&&("space"===(s=a[a.length-1][0])||"comment"===s);)this.tokenizer.back(a.pop());this.decl(a)}else this.unknownWord(a)},t.rule=function(e){e.pop();var t=new l.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.decl=function(e){var t=new r.default;this.init(t);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),o[4]?t.source.end={line:o[4],column:o[5]}:t.source.end={line:o[2],column:o[3]};"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;t.prop+=e.shift()[1]}for(t.raws.between="";e.length;){if(":"===(n=e.shift())[0]){t.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),t.raws.between+=n[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var a=e.length-1;a>0;a--){if("!important"===(n=e[a])[1].toLowerCase()){t.important=!0;var s=this.stringFrom(e,a);" !important"!==(s=this.spacesFromEnd(e)+s)&&(t.raws.important=s);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),c="",u=a;u>0;u--){var d=l[u][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(t.important=!0,t.raws.important=c,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},t.atrule=function(e){var t,n,r=new a.default;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2],e[3]);for(var o=!1,i=!1,s=[];!this.tokenizer.endOfFile();){if(";"===(e=this.tokenizer.nextToken())[0]){r.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){i=!0;break}if("}"===e[0]){if(s.length>0){for(t=s[n=s.length-1];t&&"space"===t[0];)t=s[--n];t&&(r.source.end={line:t[4],column:t[5]})}this.end(e);break}if(s.push(e),this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),o&&(e=s[s.length-1],r.source.end={line:e[4],column:e[5]},this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),i&&(r.nodes=[],this.current=r)},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.raw=function(e,t,n){for(var r,o,i,a,s=n.length,l="",c=!0,u=/^([.|#])?([\w])+/i,d=0;d<s;d+=1)"comment"!==(o=(r=n[d])[0])||"rule"!==e.type?"comment"===o||"space"===o&&d===s-1?c=!1:l+=r[1]:(a=n[d-1],i=n[d+1],"space"!==a[0]&&"space"!==i[0]&&u.test(a[1])&&u.test(i[1])?l+=r[1]:c=!1);if(!c){var h=n.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={value:l,raw:h}}e[t]=l},t.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.colon=function(e){for(var t,n,r,o=0,i=0;i<e.length;i++){if("("===(n=(t=e[i])[0])&&(o+=1),")"===n&&(o-=1),0===o&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return i}this.doubleColon(t)}r=t}return!1},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",e[2],e[3])},t.unknownWord=function(e){throw this.input.error("Unknown word",e[0][2],e[0][3])},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",e[2],e[3])},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.doubleColon=function(e){throw this.input.error("Double colon",e[2],e[3])},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",t[2],t[3])},t.precheckMissedSemicolon=function(){},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&("space"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error("Missed semicolon",n[2],n[3])}},e}();n.default=u,t.exports=n.default},{"./at-rule":169,"./comment":170,"./declaration":173,"./root":185,"./rule":186,"./tokenize":189}],181:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r=p(e("./declaration")),o=p(e("./processor")),i=p(e("./stringify")),a=p(e("./comment")),s=p(e("./at-rule")),l=p(e("./vendor")),c=p(e("./parse")),u=p(e("./list")),d=p(e("./rule")),h=p(e("./root"));function p(e){return e&&e.__esModule?e:{default:e}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new o.default(t)}f.plugin=function(e,t){function n(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new o.default).version,n}var r;return Object.defineProperty(n,"postcss",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return f([n(r)]).process(e,t)},n},f.stringify=i.default,f.parse=c.default,f.vendor=l.default,f.list=u.default,f.comment=function(e){return new a.default(e)},f.atRule=function(e){return new s.default(e)},f.decl=function(e){return new r.default(e)},f.rule=function(e){return new d.default(e)},f.root=function(e){return new h.default(e)};var m=f;n.default=m,t.exports=n.default},{"./at-rule":169,"./comment":170,"./declaration":173,"./list":176,"./parse":179,"./processor":183,"./root":185,"./rule":186,"./stringify":188,"./vendor":190}],182:[function(e,t,n){(function(r){n.__esModule=!0,n.default=void 0;var o=s(e("source-map")),i=s(e("path")),a=s(e("fs"));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);r&&(this.text=r)}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.getAnnotationURL=function(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//gm);if(t&&t.length>0){var n=t[t.length-1];n&&(this.annotation=this.getAnnotationURL(n))}},t.decodeInline=function(e){var t,n="data:application/json,";if(this.startWith(e,n))return decodeURIComponent(e.substr(n.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),r?r.from(t,"base64").toString():window.atob(t);var o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n&&a.default.existsSync&&a.default.existsSync(n))return a.default.readFileSync(n,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=i.default.join(i.default.dirname(e),r)),this.root=i.default.dirname(r),!(!a.default.existsSync||!a.default.existsSync(r))&&a.default.readFileSync(r,"utf-8").toString().trim()}},t.isMap=function(e){return"object"===c(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();n.default=l,t.exports=n.default}).call(this,e("buffer").Buffer)},{buffer:3,fs:2,path:168,"source-map":208}],183:[function(e,t,n){(function(r){n.__esModule=!0,n.default=void 0;var o,i=(o=e("./lazy-result"))&&o.__esModule?o:{default:o};function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(){function e(e){void 0===e&&(e=[]),this.version="7.0.34",this.plugins=this.normalize(e)}var t=e.prototype;return t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t.process=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return void 0===t&&(t={}),0===this.plugins.length&&t.parser===t.stringifier&&"production"!==r.env.NODE_ENV&&"undefined"!=typeof console&&console.warn&&console.warn("You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js."),new i.default(this,e,t)})),t.normalize=function(e){for(var t,n=[],o=a(e);!(t=o()).done;){var i=t.value;if(!0===i.postcss){var s=i();throw new Error("PostCSS plugin "+s.postcssPlugin+" requires PostCSS 8. Update PostCSS or downgrade this plugin.")}if(i.postcss&&(i=i.postcss),"object"===c(i)&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if("function"==typeof i)n.push(i);else{if("object"!==c(i)||!i.parse&&!i.stringify)throw"object"===c(i)&&i.postcssPlugin?new Error("PostCSS plugin "+i.postcssPlugin+" requires PostCSS 8. Update PostCSS or downgrade this plugin."):new Error(i+" is not a PostCSS plugin");if("production"!==r.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}return n},e}();n.default=l,t.exports=n.default}).call(this,e("_process"))},{"./lazy-result":175,_process:193}],184:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r,o=(r=e("./warning"))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t,n,r,a=e.prototype;return a.toString=function(){return this.css},a.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new o.default(e,t);return this.messages.push(n),n},a.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},t=e,(n=[{key:"content",get:function(){return this.css}}])&&i(t.prototype,n),r&&i(t,r),e}();n.default=a,t.exports=n.default},{"./warning":192}],185:[function(e,t,n){var r;function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.__esModule=!0,n.default=void 0;var a=function(t){var n,r;function i(e){var n;return(n=t.call(this,e)||this).type="root",n.nodes||(n.nodes=[]),n}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=i.prototype;return a.removeChild=function(e,n){var r=this.index(e);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),t.prototype.removeChild.call(this,e)},a.normalize=function(e,n,r){var i=t.prototype.normalize.call(this,e);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a,s=o(i);!(a=s()).done;)a.value.raws.before=n.raws.before;return i},a.toResult=function(t){return void 0===t&&(t={}),new(e("./lazy-result"))(new(e("./processor")),this,t).stringify()},i}(((r=e("./container"))&&r.__esModule?r:{default:r}).default);n.default=a,t.exports=n.default},{"./container":171,"./lazy-result":175,"./processor":183}],186:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r=i(e("./container")),o=i(e("./list"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(e){var t,n,r,i,s;function l(t){var n;return(n=e.call(this,t)||this).type="rule",n.nodes||(n.nodes=[]),n}return n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r=l,(i=[{key:"selectors",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}])&&a(r.prototype,i),s&&a(r,s),l}(r.default);n.default=s,t.exports=n.default},{"./container":171,"./list":176}],187:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1},o=function(){function e(e){this.builder=e}var t=e.prototype;return t.stringify=function(e,t){this[e.type](e,t)},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},t.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.block=function(e,t){var n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.raw=function(e,t,n){var o;if(n||(n=t),t&&void 0!==(o=e.raws[t]))return o;var i=e.parent;if("before"===n&&(!i||"root"===i.type&&i.first===e))return"";if(!i)return r[n];var a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s,l="raw"+((s=n)[0].toUpperCase()+s.slice(1));return this[l]?o=this[l](a,e):a.walk((function(e){if(void 0!==(o=e.raws[t]))return!1})),void 0===o&&(o=r[n]),a.rawCache[n]=o,o},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/[^\s]/g,""),!1}})),t);var t},t.rawBeforeComment=function(e,t){var n;return e.walkComments((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/[^\s]/g,"")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls((function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/[^\s]/g,"")),n},t.rawBeforeRule=function(e){var t;return e.walk((function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/[^\s]/g,"")),t},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/[^\s]/g,"")),t},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.beforeAfter=function(e,t){var n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(-1!==n.indexOf("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var a=0;a<o;a++)n+=i}return n},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();n.default=o,t.exports=n.default},{}],188:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r,o=(r=e("./stringifier"))&&r.__esModule?r:{default:r},i=function(e,t){new o.default(t).stringify(e)};n.default=i,t.exports=n.default},{"./stringifier":187}],189:[function(e,t,n){n.__esModule=!0,n.default=function(e,t){void 0===t&&(t={});var n,P,T,E,O,M,A,D,I,L,N,j,R,z,F=e.css.valueOf(),B=t.ignoreErrors,H=F.length,V=-1,Y=1,W=0,U=[],K=[];function G(t){throw e.error("Unclosed "+t,Y,W-V)}return{back:function(e){K.push(e)},nextToken:function(e){if(K.length)return K.pop();if(!(W>=H)){var t=!!e&&e.ignoreUnclosed;switch(((n=F.charCodeAt(W))===s||n===c||n===d&&F.charCodeAt(W+1)!==s)&&(V=W,Y+=1),n){case s:case l:case u:case d:case c:P=W;do{P+=1,(n=F.charCodeAt(P))===s&&(V=P,Y+=1)}while(n===l||n===s||n===u||n===d||n===c);z=["space",F.slice(W,P)],W=P-1;break;case h:case p:case g:case v:case w:case y:case m:var q=String.fromCharCode(n);z=[q,q,Y,W-V];break;case f:if(j=U.length?U.pop()[1]:"",R=F.charCodeAt(W+1),"url"===j&&R!==r&&R!==o&&R!==l&&R!==s&&R!==u&&R!==c&&R!==d){P=W;do{if(L=!1,-1===(P=F.indexOf(")",P+1))){if(B||t){P=W;break}G("bracket")}for(N=P;F.charCodeAt(N-1)===i;)N-=1,L=!L}while(L);z=["brackets",F.slice(W,P+1),Y,W-V,Y,P-V],W=P}else P=F.indexOf(")",W+1),M=F.slice(W,P+1),-1===P||S.test(M)?z=["(","(",Y,W-V]:(z=["brackets",M,Y,W-V,Y,P-V],W=P);break;case r:case o:T=n===r?"'":'"',P=W;do{if(L=!1,-1===(P=F.indexOf(T,P+1))){if(B||t){P=W+1;break}G("string")}for(N=P;F.charCodeAt(N-1)===i;)N-=1,L=!L}while(L);M=F.slice(W,P+1),E=M.split("\n"),(O=E.length-1)>0?(D=Y+O,I=P-E[O].length):(D=Y,I=V),z=["string",F.slice(W,P+1),Y,W-V,D,P-I],V=I,Y=D,W=P;break;case C:_.lastIndex=W+1,_.test(F),P=0===_.lastIndex?F.length-1:_.lastIndex-2,z=["at-word",F.slice(W,P+1),Y,W-V,Y,P-V],W=P;break;case i:for(P=W,A=!0;F.charCodeAt(P+1)===i;)P+=1,A=!A;if(n=F.charCodeAt(P+1),A&&n!==a&&n!==l&&n!==s&&n!==u&&n!==d&&n!==c&&(P+=1,k.test(F.charAt(P)))){for(;k.test(F.charAt(P+1));)P+=1;F.charCodeAt(P+1)===l&&(P+=1)}z=["word",F.slice(W,P+1),Y,W-V,Y,P-V],W=P;break;default:n===a&&F.charCodeAt(W+1)===b?(0===(P=F.indexOf("*/",W+2)+1)&&(B||t?P=F.length:G("comment")),M=F.slice(W,P+1),E=M.split("\n"),(O=E.length-1)>0?(D=Y+O,I=P-E[O].length):(D=Y,I=V),z=["comment",M,Y,W-V,D,P-I],V=I,Y=D,W=P):(x.lastIndex=W+1,x.test(F),P=0===x.lastIndex?F.length-1:x.lastIndex-2,z=["word",F.slice(W,P+1),Y,W-V,Y,P-V],U.push(z),W=P)}return W++,z}},endOfFile:function(){return 0===K.length&&W>=H},position:function(){return W}}};var r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s="\n".charCodeAt(0),l=" ".charCodeAt(0),c="\f".charCodeAt(0),u="\t".charCodeAt(0),d="\r".charCodeAt(0),h="[".charCodeAt(0),p="]".charCodeAt(0),f="(".charCodeAt(0),m=")".charCodeAt(0),g="{".charCodeAt(0),v="}".charCodeAt(0),y=";".charCodeAt(0),b="*".charCodeAt(0),w=":".charCodeAt(0),C="@".charCodeAt(0),_=/[ \n\t\r\f{}()'"\\;/[\]#]/g,x=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g,S=/.[\\/("'\n]/,k=/[a-f0-9]/i;t.exports=n.default},{}],190:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r={prefix:function(e){var t=e.match(/^(-\w+-)/);return t?t[0]:""},unprefixed:function(e){return e.replace(/^-\w+-/,"")}};n.default=r,t.exports=n.default},{}],191:[function(e,t,n){n.__esModule=!0,n.default=function(e){r[e]||(r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))};var r={};t.exports=n.default},{}],192:[function(e,t,n){n.__esModule=!0,n.default=void 0;var r=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var n=t.node.positionBy(t);this.line=n.line,this.column=n.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();n.default=r,t.exports=n.default},{}],193:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var c,u=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!d){var e=l(p);d=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||d||l(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],194:[function(e,t,r){(function(e){!function(n){var o="object"==c(r)&&r&&!r.nodeType&&r,i="object"==c(t)&&t&&!t.nodeType&&t,a="object"==c(e)&&e;a.global!==a&&a.window!==a&&a.self!==a||(n=a);var s,l,u=2147483647,d=/^xn--/,h=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function v(e){throw new RangeError(f[e])}function y(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function b(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+y((e=e.replace(p,".")).split("."),t).join(".")}function w(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function C(e){return y(e,(function(e){var t="";return e>65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=g(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var r=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;r+=36)e=m(e/35);return m(r+36*e/(e+38))}function S(e){var t,n,r,o,i,a,s,l,c,d,h,p=[],f=e.length,g=0,y=128,b=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&v("not-basic"),p.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<f;){for(i=g,a=1,s=36;o>=f&&v("invalid-input"),((l=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>m((u-g)/a))&&v("overflow"),g+=l*a,!(l<(c=s<=b?1:s>=b+26?26:s-b));s+=36)a>m(u/(d=36-c))&&v("overflow"),a*=d;b=x(g-i,t=p.length+1,0==i),m(g/t)>u-y&&v("overflow"),y+=m(g/t),g%=t,p.splice(g++,0,y)}return C(p)}function k(e){var t,n,r,o,i,a,s,l,c,d,h,p,f,y,b,C=[];for(p=(e=w(e)).length,t=128,n=0,i=72,a=0;a<p;++a)(h=e[a])<128&&C.push(g(h));for(r=o=C.length,o&&C.push("-");r<p;){for(s=u,a=0;a<p;++a)(h=e[a])>=t&&h<s&&(s=h);for(s-t>m((u-n)/(f=r+1))&&v("overflow"),n+=(s-t)*f,t=s,a=0;a<p;++a)if((h=e[a])<t&&++n>u&&v("overflow"),h==t){for(l=n,c=36;!(l<(d=c<=i?1:c>=i+26?26:c-i));c+=36)b=l-d,y=36-d,C.push(g(_(d+b%y,0))),l=m(b/y);C.push(g(_(l,0))),i=x(n,f,r==o),n=0,++r}++n,++t}return C.join("")}if(s={version:"1.4.1",ucs2:{decode:w,encode:C},decode:S,encode:k,toASCII:function(e){return b(e,(function(e){return h.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return b(e,(function(e){return d.test(e)?S(e.slice(4).toLowerCase()):e}))}},o&&i)if(t.exports==o)i.exports=s;else for(l in s)s.hasOwnProperty(l)&&(o[l]=s[l]);else n.punycode=s}(this)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],195:[function(e,t,n){function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,h,p,f,m=e[u].replace(s,"%20"),g=m.indexOf(n);g>=0?(d=m.substr(0,g),h=m.substr(g+1)):(d=m,h=""),p=decodeURIComponent(d),f=decodeURIComponent(h),r(a,p)?o(a[p])?a[p].push(f):a[p]=[a[p],f]:a[p]=f}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],196:[function(e,t,n){var r=function(e){switch(c(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===c(e)?i(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],197:[function(e,t,n){n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":195,"./encode":196}],198:[function(e,t,n){var r=e("./util"),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},a.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=i?e:r.toSetString(e),a=i?this.has(e):o.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(i?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(i)return this._set.has(e);var t=r.toSetString(e);return o.call(this._set,t)},a.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},n.ArraySet=a},{"./util":207}],199:[function(e,t,n){var r=e("./base64");n.encode=function(e){var t,n="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&o,(o>>>=5)>0&&(t|=32),n+=r.encode(t)}while(o>0);return n},n.decode=function(e,t,n){var o,i,a,s,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(32&i),c+=(i&=31)<<u,u+=5}while(o);n.value=(s=(a=c)>>1,1==(1&a)?-s:s),n.rest=t}},{"./base64":200}],200:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},n.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},{}],201:[function(e,t,n){n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,r,o){if(0===t.length)return-1;var i=function e(t,r,o,i,a,s){var l=Math.floor((r-t)/2)+t,c=a(o,i[l],!0);return 0===c?l:c>0?r-l>1?e(l,r,o,i,a,s):s==n.LEAST_UPPER_BOUND?r<i.length?r:-1:l:l-t>1?e(t,l,o,i,a,s):s==n.LEAST_UPPER_BOUND?l:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}},{}],202:[function(e,t,n){var r=e("./util");function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){var t,n,o,i,a,s;t=this._last,n=e,o=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,i>o||i==o&&s>=a||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=o},{"./util":207}],203:[function(e,t,n){function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function o(e,t,n,i){if(n<i){var a=n-1;r(e,(u=n,d=i,Math.round(u+Math.random()*(d-u))),i);for(var s=e[i],l=n;l<i;l++)t(e[l],s)<=0&&r(e,a+=1,l);r(e,a+1,l);var c=a+1;o(e,t,n,c-1),o(e,t,c+1,i)}var u,d}n.quickSort=function(e,t){o(e,t,0,e.length-1)}},{}],204:[function(e,t,n){var r=e("./util"),o=e("./binary-search"),i=e("./array-set").ArraySet,a=e("./base64-vlq"),s=e("./quick-sort").quickSort;function l(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),l=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),d=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);l&&(l=r.normalize(l)),a=a.map(String).map(r.normalize).map((function(e){return l&&r.isAbsolute(l)&&r.isAbsolute(e)?r.relative(l,e):e})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(l,e,t)})),this.sourceRoot=l,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),i=r.getArg(n,"column");if(o<s.line||o===s.line&&i<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new l(r.getArg(e,"map"),t)}}))}l.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var o,i=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:o=this._generatedMappings;break;case l.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var l=s.originalLine;s&&s.originalLine===l;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var c=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==c;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},n.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return r.computeSourceURL(n.sourceRoot,e,t)}));for(var l=e._mappings.toArray().slice(),d=n.__generatedMappings=[],h=n.__originalMappings=[],p=0,f=l.length;p<f;p++){var m=l[p],g=new u;g.generatedLine=m.generatedLine,g.generatedColumn=m.generatedColumn,m.source&&(g.source=a.indexOf(m.source),g.originalLine=m.originalLine,g.originalColumn=m.originalColumn,m.name&&(g.name=o.indexOf(m.name)),h.push(g)),d.push(g)}return s(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,o,i,l,c,d=1,h=0,p=0,f=0,m=0,g=0,v=e.length,y=0,b={},w={},C=[],_=[];y<v;)if(";"===e.charAt(y))d++,y++,h=0;else if(","===e.charAt(y))y++;else{for((n=new u).generatedLine=d,l=y;l<v&&!this._charIsMappingSeparator(e,l);l++);if(i=b[o=e.slice(y,l)])y+=o.length;else{for(i=[];y<l;)a.decode(e,y,w),c=w.value,y=w.rest,i.push(c);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");b[o]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=m+i[1],m+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,i.length>4&&(n.name=g+i[4],g+=i[4])),_.push(n),"number"==typeof n.originalLine&&C.push(n)}s(_,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,s(C,r.compareByOriginalPositions),this.__originalMappings=C},c.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,i,a)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=r.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=c,d.prototype=Object.create(l.prototype),d.prototype.constructor=l,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=o.search(t,this._sections,(function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var l=i[a],c=o.consumer._sources.at(l.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=o.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)},n.IndexedSourceMapConsumer=d},{"./array-set":198,"./base64-vlq":199,"./binary-search":201,"./quick-sort":203,"./util":207}],205:[function(e,t,n){var r=e("./base64-vlq"),o=e("./util"),i=e("./array-set").ArraySet,a=e("./mapping-list").MappingList;function s(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var i=r;null!==t&&(i=o.relative(t,r)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(r);null!=a&&n.setSourceContent(r,a)})),n},s.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=o.relative(a,r));var s=new i,l=new i;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=o.join(n,t.source)),null!=a&&(t.source=o.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)}),this),this._sources=s,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=a&&(t=o.relative(a,t)),this.setSourceContent(t,r))}),this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,s=1,l=0,c=0,u=0,d=0,h="",p=this._mappings.toArray(),f=0,m=p.length;f<m;f++){if(e="",(t=p[f]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!o.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=r.encode(i-d),d=i,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),h+=e}return h},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=s},{"./array-set":198,"./base64-vlq":199,"./mapping-list":202,"./util":207}],206:[function(e,t,n){var r=e("./source-map-generator").SourceMapGenerator,o=e("./util"),i=/(\r?\n)/,a="$$$isSourceNode$$$";function s(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[a]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,a=e.split(i),l=0,c=function(){return e()+(e()||"");function e(){return l<a.length?a[l++]:void 0}},u=1,d=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(u<e.generatedLine)){var t=(n=a[l]||"").substr(0,e.generatedColumn-d);return a[l]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(h,t),void(h=e)}p(h,c()),u++,d=0}for(;u<e.generatedLine;)r.add(c()),u++;if(d<e.generatedColumn){var n=a[l]||"";r.add(n.substr(0,e.generatedColumn)),a[l]=n.substr(e.generatedColumn),d=e.generatedColumn}h=e}),this),l<a.length&&(h&&p(h,c()),r.add(a.splice(l).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),r.setSourceContent(e,i))})),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var i=n?o.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,i,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),o=!1,i=null,a=null,s=null,l=null;return this.walk((function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&a===r.line&&s===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),i=r.source,a=r.line,s=r.column,l=r.name,o=!0):o&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,o=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},n.SourceNode=s},{"./source-map-generator":205,"./util":207}],207:[function(e,t,n){n.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function s(e){var t=e,r=i(e);if(r){if(!r.path)return e;t=r.path}for(var o,s=n.isAbsolute(t),l=t.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(o=l[u])?l.splice(u,1):".."===o?c++:c>0&&(""===o?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(t=l.join("/"))&&(t=s?"/":"."),r?(r.path=t,a(r)):t}function l(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),r=i(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),a(n);if(n||t.match(o))return t;if(r&&!r.host&&!r.path)return r.host=t,a(r);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=l,a(r)):l}n.urlParse=i,n.urlGenerate=a,n.normalize=s,n.join=l,n.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},n.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function d(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}n.toSetString=c?u:function(e){return d(e)?"$"+e:e},n.fromSetString=c?u:function(e){return d(e)?e.slice(1):e},n.compareByOriginalPositions=function(e,t,n){var r=h(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:h(e.name,t.name)},n.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=h(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:h(e.name,t.name)},n.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=h(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:h(e.name,t.name)},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},n.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=i(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var o=r.path.lastIndexOf("/");o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return s(t)}},{}],208:[function(e,t,n){n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":204,"./lib/source-map-generator":205,"./lib/source-node":206}],209:[function(e,t,n){var r=e("punycode"),o=e("./util");function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}n.parse=w,n.resolve=function(e,t){return w(e,!1,!0).resolve(t)},n.resolveObject=function(e,t){return e?w(e,!1,!0).resolveObject(t):t},n.format=function(e){return o.isString(e)&&(e=w(e)),e instanceof i?e.format():i.prototype.format.call(e)},n.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(u),h=["%","/","?",";","#"].concat(d),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=e("querystring");function w(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+c(e));var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var w=e=u.join(s);if(w=w.trim(),!n&&1===e.split("#").length){var C=l.exec(w);if(C)return this.path=w,this.href=w,this.pathname=C[1],C[2]?(this.search=C[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(w);if(_){var x=(_=_[0]).toLowerCase();this.protocol=x,w=w.substr(_.length)}if(n||_||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===w.substr(0,2);!S||_&&v[_]||(w=w.substr(2),this.slashes=!0)}if(!v[_]&&(S||_&&!y[_])){for(var k,P,T=-1,E=0;E<p.length;E++)-1!==(O=w.indexOf(p[E]))&&(-1===T||O<T)&&(T=O);for(-1!==(P=-1===T?w.lastIndexOf("@"):w.lastIndexOf("@",T))&&(k=w.slice(0,P),w=w.slice(P+1),this.auth=decodeURIComponent(k)),T=-1,E=0;E<h.length;E++){var O;-1!==(O=w.indexOf(h[E]))&&(-1===T||O<T)&&(T=O)}-1===T&&(T=w.length),this.host=w.slice(0,T),w=w.slice(T),this.parseHost(),this.hostname=this.hostname||"";var M="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!M)for(var A=this.hostname.split(/\./),D=(E=0,A.length);E<D;E++){var I=A[E];if(I&&!I.match(f)){for(var L="",N=0,j=I.length;N<j;N++)I.charCodeAt(N)>127?L+="x":L+=I[N];if(!L.match(f)){var R=A.slice(0,E),z=A.slice(E+1),F=I.match(m);F&&(R.push(F[1]),z.unshift(F[2])),z.length&&(w="/"+z.join(".")+w),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+B,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!g[x])for(E=0,D=d.length;E<D;E++){var V=d[E];if(-1!==w.indexOf(V)){var Y=encodeURIComponent(V);Y===V&&(Y=escape(V)),w=w.split(V).join(Y)}}var W=w.indexOf("#");-1!==W&&(this.hash=w.substr(W),w=w.slice(0,W));var U=w.indexOf("?");if(-1!==U?(this.search=w.substr(U),this.query=w.substr(U+1),t&&(this.query=b.parse(this.query)),w=w.slice(0,U)):t&&(this.search="",this.query={}),w&&(this.pathname=w),y[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var K=this.search||"";this.path=B+K}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!y[e.protocol]){for(var d=Object.keys(e),h=0;h<d.length;h++){var p=d[h];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",g=n.search||"";n.path=m+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),C=w||b||n.host&&e.pathname,_=C,x=n.pathname&&n.pathname.split("/")||[],S=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),C=C&&(""===f[0]||""===x[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=f;else if(f.length)x||(x=[]),x.pop(),x=x.concat(f),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search))return S&&(n.hostname=n.host=x.shift(),(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift())),n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=x.slice(-1)[0],P=(n.host||e.host||x.length>1)&&("."===k||".."===k)||""===k,T=0,E=x.length;E>=0;E--)"."===(k=x[E])?x.splice(E,1):".."===k?(x.splice(E,1),T++):T&&(x.splice(E,1),T--);if(!C&&!_)for(;T--;T)x.unshift("..");!C||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),P&&"/"!==x.join("/").substr(-1)&&x.push("");var O,M=""===x[0]||x[0]&&"/"===x[0].charAt(0);return S&&(n.hostname=n.host=M?"":x.length?x.shift():"",(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift())),(C=C||n.host&&x.length)&&!M&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":210,punycode:194,querystring:197}],210:[function(e,t,n){t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===c(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],211:[function(e,t,n){var r=e("htmlparser2"),o=e("lodash/escapeRegExp"),i=e("lodash/cloneDeep"),a=e("lodash/mergeWith"),l=e("lodash/isString"),c=e("lodash/isPlainObject"),u=e("parse-srcset"),d=e("postcss"),h=e("url"),p=["img","audio","video","picture","svg","object","map","iframe","embed"],f=["script","style"];function m(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function g(e,t){return{}.hasOwnProperty.call(e,t)}function v(e,t){var n=[];return m(e,(function(e){t(e)&&n.push(e)})),n}t.exports=b;var y=/^[^\0\t\n\f\r /<=>]+$/;function b(e,t,n){var C="",_="";function x(e,t){var n=this;this.tag=e,this.attribs=t||{},this.tagPosition=C.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){M.length&&(M[M.length-1].text+=n.text)},this.updateParentNodeMediaChildren=function(){M.length&&p.indexOf(this.tag)>-1&&M[M.length-1].mediaChildren.push(this.tag)}}t?(t=Object.assign({},b.defaults,t)).parser?t.parser=Object.assign({},w,t.parser):t.parser=w:(t=b.defaults).parser=w,f.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!t.allowVulnerableTags&&console.warn("\n\n⚠️ Your `allowedTags` option includes, `".concat(e,"`, which is inherently\nvulnerable to XSS attacks. Please remove it from `allowedTags`.\nOr, to disable this warning, add the `allowVulnerableTags` option\nand ensure you are accounting for this risk.\n\n"))}));var S,k,P=t.nonTextTags||["script","style","textarea","option"];t.allowedAttributes&&(S={},k={},m(t.allowedAttributes,(function(e,t){S[t]=[];var n=[];e.forEach((function(e){l(e)&&e.indexOf("*")>=0?n.push(o(e).replace(/\\\*/g,".*")):S[t].push(e)})),k[t]=new RegExp("^("+n.join("|")+")$")})));var T={};m(t.allowedClasses,(function(e,t){S&&(g(S,t)||(S[t]=[]),S[t].push("class")),T[t]=e}));var E,O,M,A,D,I,L,N={};m(t.transformTags,(function(e,t){var n;"function"==typeof e?n=e:"string"==typeof e&&(n=b.simpleTransform(e)),"*"===t?E=n:N[t]=n}));var j=!1;z();var R=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&z(),I)L++;else{var r=new x(e,n);M.push(r);var o,l=!1,p=!!r.text;if(g(N,e)&&(o=N[e](e,n),r.attribs=n=o.attribs,void 0!==o.text&&(r.innerText=o.text),e!==o.tagName&&(r.name=e=o.tagName,D[O]=o.tagName)),E&&(o=E(e,n),r.attribs=n=o.attribs,e!==o.tagName&&(r.name=e=o.tagName,D[O]=o.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(var t in e)if(g(e,t))return!1;return!0}(A))&&(l=!0,A[O]=!0,"discard"===t.disallowedTagsMode&&-1!==P.indexOf(e)&&(I=!0,L=1),A[O]=!0),O++,l){if("discard"===t.disallowedTagsMode)return;_=C,C=""}C+="<"+e,(!S||g(S,e)||S["*"])&&m(n,(function(n,o){if(y.test(o)){var l,p=!1;if(!S||g(S,e)&&-1!==S[e].indexOf(o)||S["*"]&&-1!==S["*"].indexOf(o)||g(k,e)&&k[e].test(o)||k["*"]&&k["*"].test(o))p=!0;else if(S&&S[e]){var f,b=s(S[e]);try{for(b.s();!(f=b.n()).done;){var w=f.value;if(c(w)&&w.name&&w.name===o){p=!0;var _="";if(!0===w.multiple){var x,P=s(n.split(" "));try{for(P.s();!(x=P.n()).done;){var E=x.value;-1!==w.values.indexOf(E)&&(""===_?_=E:_+=" "+E)}}catch(e){P.e(e)}finally{P.f()}}else w.values.indexOf(n)>=0&&(_=n);n=_}}}catch(e){b.e(e)}finally{b.f()}}if(p){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(o)&&B(e,n))return void delete r.attribs[o];if("iframe"===e&&"src"===o){var O=!0;try{if((l=h.parse(n,!1,!0))&&null===l.host&&null===l.protocol)O=g(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){var M=(t.allowedIframeHostnames||[]).find((function(e){return e===l.hostname})),A=(t.allowedIframeDomains||[]).find((function(e){return l.hostname===e||l.hostname.endsWith(".".concat(e))}));O=M||A}}catch(e){O=!1}if(!O)return void delete r.attribs[o]}if("srcset"===o)try{if(m(l=u(n),(function(e){B("srcset",e.url)&&(e.evil=!0)})),!(l=v(l,(function(e){return!e.evil}))).length)return void delete r.attribs[o];n=v(l,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?" ".concat(e.w,"w"):"")+(e.h?" ".concat(e.h,"h"):"")+(e.d?" ".concat(e.d,"x"):"")})).join(", "),r.attribs[o]=n}catch(e){return void delete r.attribs[o]}if("class"===o&&!(n=function(e,t){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)})).join(" "):e}(n,T[e])).length)return void delete r.attribs[o];if("style"===o)try{if(0===(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(t.prop+":"+t.value),e}),[]).join(";")}(function(e,t){if(!t)return e;var n,r=i(e),o=e.nodes[0];return(n=t[o.selector]&&t["*"]?a(i(t[o.selector]),t["*"],(function(e,t){if(Array.isArray(e))return e.concat(t)})):t[o.selector]||t["*"])&&(r.nodes[0].nodes=o.nodes.reduce(function(e){return function(t,n){return g(e,n.prop)&&e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n),t}}(n),[])),r}(d.parse(e+" {"+n+"}"),t.allowedStyles))).length)return void delete r.attribs[o]}catch(e){return void delete r.attribs[o]}C+=" "+o,n&&n.length&&(C+='="'+F(n,!0)+'"')}else delete r.attribs[o]}else delete r.attribs[o]})),-1!==t.selfClosing.indexOf(e)?C+=" />":(C+=">",!r.innerText||p||t.textFilter||(C+=r.innerText,j=!0)),l&&(C=_+F(C),_="")}},ontext:function(e){if(!I){var n,r=M[M.length-1];if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==n&&"style"!==n){var o=F(e,!1);t.textFilter&&!j?C+=t.textFilter(o,n):j||(C+=o)}else C+=e;M.length&&(M[M.length-1].text+=e)}},onclosetag:function(e){if(I){if(--L)return;I=!1}var n=M.pop();if(n){I=!!t.enforceHtmlBoundary&&"html"===e,O--;var r=A[O];if(r){if(delete A[O],"discard"===t.disallowedTagsMode)return void n.updateParentNodeText();_=C,C=""}D[O]&&(e=D[O],delete D[O]),t.exclusiveFilter&&t.exclusiveFilter(n)?C=C.substr(0,n.tagPosition):(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(C+="</"+e+">",r&&(C=_+F(C),_="")):r&&(C=_,_=""))}}},t.parser);return R.write(e),R.end(),C;function z(){C="",O=0,M=[],A={},D={},I=!1,L=0}function F(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/\>/g,">"),n&&(e=e.replace(/\"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/\>/g,">"),n&&(e=e.replace(/\"/g,""")),e}function B(e,n){var r=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<\!\-\-.*?\-\-\>/g,"")).match(/^([a-zA-Z]+)\:/);if(!r)return!!n.match(/^[\/\\]{2}/)&&!t.allowProtocolRelative;var o=r[1].toLowerCase();return g(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(o):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(o)}}var w={decodeEntities:!0};b.defaults={allowedTags:["h3","h4","h5","h6","blockquote","p","a","ul","ol","nl","li","b","i","strong","em","strike","abbr","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre","iframe"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},b.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,o){var i;if(n)for(i in t)o[i]=t[i];else o=t;return{tagName:e,attribs:o}}}},{htmlparser2:31,"lodash/cloneDeep":140,"lodash/escapeRegExp":143,"lodash/isPlainObject":155,"lodash/isString":157,"lodash/mergeWith":162,"parse-srcset":167,postcss:181,url:209}]},{},[211])(211)},"object"===c(t)&&void 0!==e?e.exports=a():(o=[],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i))}).call(this,n(64))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CellTypes=void 0,function(e){e.Text="text",e.CheckBox="checkBox",e.Radio="radio",e.Button="button"}(t.CellTypes||(t.CellTypes={}))},function(e,t,n){"use strict";
|
|
|
/*! *****************************************************************************
|
|
|
* 自定义的数学函数及方法,其中部分常用的通过自定义计算方式实现,就项目使用情况来说,性能高于对应原生方法
|
|
|
* TODO 该文件目前暂未启用,之前这些方法放在 globalUtils中,待 2021-3的版本发布后,全局统一替换到这个模块
|
|
|
* @author Matt 2021-3-19
|
|
|
***************************************************************************** */Object.defineProperty(t,"__esModule",{value:!0});function r(e,t,n){return n?e>=t.min&&e<=t.max:e>t.min&&e<t.max}function o(e){return e>0?e:0-e}function i(...e){const t=Array.from(e);if(!t.length)return NaN;if(t.length<2)return t[0];const[n,r,...o]=t;return i(n>r?r:n,...o)}function a(...e){const t=Array.from(e);if(!t.length)return NaN;if(t.length<2)return t[0];const[n,r,...o]=t;return a(n>r?n:r,...o)}function s(e,t,n){const r=n||1e-5;return o(e-t)<=r||e===t}t.default={max:a,min:i,ceil:function(e){const t=e%1;return 0===t?e:e>0?e-t+1:e-t},floor:function(e){const t=e%1;return 0===t?e:e>0?e-t:e-1-t},abs:o,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))},pow:function(e,t){return Math.pow(e,t)},trunc:function(e){return e-e%1},hypot:Math.hypot,sqrt:Math.sqrt,cos:Math.cos,acos:Math.acos,sin:Math.sin,asin:Math.asin,tan:Math.tan,atan:Math.atan,random:Math.random,distance:function(e,t){return e>t?e-t:t-e},between:r,betweenNumber:function(e,t){return i(t.max,a(e,t.min))},betweenRange:function(e,t,n){return r(t.min,e,n)&&r(t.max,e,n)||r(e.min,t,n)&&r(e.max,t,n)},isMoreOrLess:function(e,t,n){return t>=e-n&&t<=e+n},equal:s,equalRange:function(e,t){return s(e.min,t.min)&&s(e.max,t.max)},intersectRange:function(e,t,n){return r(e.min,t,n)||r(e.max,t,n)||r(t.max,e,n)||r(t.min,e,n)},value:function(e,t){var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:0}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.isLineSelection=t.SelectionPoints=void 0,function(e){e[e.box=0]="box",e[e.corner=1]="corner",e[e.leftTop_to_rightBottom=2]="leftTop_to_rightBottom",e[e.leftBottom_to_rightTop=3]="leftBottom_to_rightTop",e[e.none=4]="none",e[e.leftMiddle_to_rightMiddle=5]="leftMiddle_to_rightMiddle",e[e.topMiddle_to_bottomMiddle=6]="topMiddle_to_bottomMiddle",e[e.control=7]="control"}(r||(r={})),function(e){e[e.leftTop=0]="leftTop",e[e.rightTop=1]="rightTop",e[e.rightBottom=2]="rightBottom",e[e.leftBottom=3]="leftBottom",e[e.topMiddle=4]="topMiddle",e[e.rightMiddle=5]="rightMiddle",e[e.bottomMiddle=6]="bottomMiddle",e[e.leftMiddle=7]="leftMiddle"}(t.SelectionPoints||(t.SelectionPoints={}));const o=[r.leftTop_to_rightBottom,r.leftBottom_to_rightTop];t.isLineSelection=function(e){return-1!==o.indexOf(e)},t.default=r},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,s=0,l=o.round,c=o.min,u=o.max,d=o.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,l=null,d=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(M[e])e=M[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=Y.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=Y.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=Y.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=Y.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=Y.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=Y.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=Y.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=Y.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=Y.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=Y.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,f=e.g,m=e.b,t={r:255*I(p,255),g:255*I(f,255),b:255*I(m,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=R(e.s),s=R(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c]}}(e.h,r,s),d=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=R(e.s),l=R(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,f,m;return n=D(n),{ok:d,format:e.format||h,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=u(e,t,n),a=c(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function f(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=u(e,t,n),a=c(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function m(e,t,n,r){var o=[j(l(e).toString(16)),j(l(t).toString(16)),j(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function g(e,t,n,r){return[j(z(r)),j(l(e).toString(16)),j(l(t).toString(16)),j(l(n).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s-=t/100,n.s=L(n.s),h(n)}function y(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s+=t/100,n.s=L(n.s),h(n)}function b(e){return h(e).desaturate(100)}function w(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l+=t/100,n.l=L(n.l),h(n)}function C(e,t){t=0===t?0:t||10;var n=h(e).toRgb();return n.r=u(0,c(255,n.r-l(-t/100*255))),n.g=u(0,c(255,n.g-l(-t/100*255))),n.b=u(0,c(255,n.b-l(-t/100*255))),h(n)}function _(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l-=t/100,n.l=L(n.l),h(n)}function x(e,t){var n=h(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,h(n)}function S(e){var t=h(e).toHsl();return t.h=(t.h+180)%360,h(t)}function k(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+120)%360,s:t.s,l:t.l}),h({h:(n+240)%360,s:t.s,l:t.l})]}function P(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+90)%360,s:t.s,l:t.l}),h({h:(n+180)%360,s:t.s,l:t.l}),h({h:(n+270)%360,s:t.s,l:t.l})]}function T(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+72)%360,s:t.s,l:t.l}),h({h:(n+216)%360,s:t.s,l:t.l})]}function E(e,t,n){t=t||6,n=n||30;var r=h(e).toHsl(),o=360/n,i=[h(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(h(r));return i}function O(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(h({h:r,s:o,v:i})),i=(i+s)%1;return a}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=D(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[j(l(e).toString(16)),j(l(t).toString(16)),j(l(n).toString(16)),j(z(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*I(this._r,255))+"%",g:l(100*I(this._g,255))+"%",b:l(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*I(this._r,255))+"%, "+l(100*I(this._g,255))+"%, "+l(100*I(this._b,255))+"%)":"rgba("+l(100*I(this._r,255))+"%, "+l(100*I(this._g,255))+"%, "+l(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=h(e);n="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:d(),g:d(),b:d()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),o=h(t).toRgb(),i=n/100;return h({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},h.readability=function(e,t){var n=h(e),r=h(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,o,i=h.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},h.mostReadable=function(e,t,n){var r,o,i,a,s=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;c<t.length;c++)(r=h.readability(e,t[c]))>l&&(l=r,s=h(t[c]));return h.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var M=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(M);function D(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return c(1,u(0,e))}function N(e){return parseInt(e,16)}function j(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function z(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return N(e)/255}var B,H,V,Y=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!Y.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderMaskStroke=void 0;const r=n(0),o=n(23);t.renderMaskStroke=e=>{const{id:t,data:n,size:i,stroke:a,strokePosition:s,scale:l,offset:c,maskData:u,showMark:d,transition:h}=e,p=(null==c?void 0:c.x)||0,f=(null==c?void 0:c.y)||0,m="stroke-path-"+t,g="mask-path-"+t,v="stroke-mask-"+t,y=100*(a.strokeWidth||0),b={transition:h,transformOrigin:"left top"};switch(s){case o.StrokePosition.center:return r.createElement("path",Object.assign({d:n},a,{shapeRendering:"geometricPrecision",fill:"transparent",style:b,markerStart:d?`url('#${t}-start-marker')`:void 0,markerEnd:d?`url('#${t}-end-marker')`:void 0}));case o.StrokePosition.outer:return r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("path",{id:m,fillRule:"evenodd",d:n,style:b}),!!u&&r.createElement("path",{id:g,fillRule:"evenodd",d:u}),r.createElement("mask",{id:v,x:-y,y:-y,height:i.height+2*y,width:i.width+2*y,maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},r.createElement("rect",{width:(i.width+y)*l,height:(i.height+y)*l,x:p+-.5*y*l,y:f+-.5*y*l,fill:"white"}),r.createElement("use",{fill:"black",href:"#"+(u?g:m)}))),r.createElement("use",Object.assign({fillOpacity:"0",fill:"none"},a,{strokeWidth:2*(a.strokeWidth||0),mask:`url(#${v})`,href:"#"+m})));case o.StrokePosition.inner:default:return r.createElement(r.Fragment,null,r.createElement("defs",null,r.createElement("path",{id:m,fillRule:"evenodd",d:n,style:b}),!!u&&r.createElement("path",{id:g,fillRule:"evenodd",d:u}),r.createElement("mask",{id:v,x:-y,y:-y,height:i.height+2*y,width:i.width+2*y,maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox"},r.createElement("rect",{width:i.width*l,height:i.height*l,x:p,y:f,fill:"black"}),r.createElement("use",{fill:"white",href:"#"+(u?g:m)}))),r.createElement("use",Object.assign({fillOpacity:"0",fill:"none"},a,{strokeWidth:2*(a.strokeWidth||0),mask:`url(#${v})`,href:"#"+m})))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentTheme=void 0,function(e){e.highLight="high-light",e.light="light",e.dark="dark",e.deepDark="deep-dark"}(t.ComponentTheme||(t.ComponentTheme={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapChildsIDByCompID=t.keyDownMoveToTree=t.keyUpMoveToTree=t.keyUpMoveToTreeMix=t.parseTreeData=t.moveNode=t.sameLevelSort=t.deleteToCollaction=t.deleteToTree=t.insertToTreeLast=t.insertToTreeFirst=t.insertToTreeSibling=t.insertToTreeChild=t.insertToTreeCollaction=t.isParentDrag=t.mapRelationWithData=t.createAvlTreeWithTreeData=t.addToAvlTree=t.diffrentWithProperty=t.doChangeSelected=t.doExpand=t.getNodeIcon=t.arrToTree=t.treeToArr=t.createAvlTreeWithTreeComp=t.mapRelationWithComp=t.getAdjustCompInfo=t.TreeCheckboxState=t.TreeItemAlias=t.DropMode=t.TreeItemColumn=void 0;const r=n(176);var o,i;function a(e){var t,n,r;const o=null===(t=e.children)||void 0===t?void 0:t.find(e=>e.checked===i.UnChecked),a=null===(n=e.children)||void 0===n?void 0:n.find(e=>e.checked===i.Checked),s=null===(r=e.children)||void 0===r?void 0:r.find(e=>e.checked===i.Half);return!o||a||s?!a||o||s?i.Half:i.Checked:i.UnChecked}function s(e,n,r){return e.map(e=>{var o,a,l;const c=n.find(t=>t._id===e.id),u=null===(a=null===(o=null==c?void 0:c.components)||void 0===o?void 0:o.find(e=>e.alias===t.TreeItemAlias.CheckBox))||void 0===a?void 0:a.selected;let d={data:e,parent:r,checked:u?i.Checked:i.UnChecked};return(null===(l=e.children)||void 0===l?void 0:l.length)&&(d.children=s(e.children,n,d)),d})}function l(e){return e.map(e=>(delete e.parentID,delete e.level,delete e.visible,delete e.isParent,delete e.path,delete e.checked,e)).sort((e,t)=>e.index-t.index)}function c(e){let t=JSON.parse(JSON.stringify(e));const n=t.filter(e=>{let n=t.filter(t=>e.id==t.parentID);return n.length&&(e.children=l(n)),"ROOT"===e.parentID});return l(n)}function u(e,t){var n;e.insert(t.data.id,t),(null===(n=t.children)||void 0===n?void 0:n.length)&&t.children.forEach(t=>{u(e,t)})}function d(e,t){return e.map(e=>{var n;let r={data:e,parent:t,checked:i.UnChecked};return(null===(n=e.children)||void 0===n?void 0:n.length)&&(r.children=d(e.children,r)),r})}function h(e,t,n,r){var i;const a=n.parent;let s=n.data.index;r===o.After&&s++,e.forEach(e=>{e.data.index>=s&&e.data.index++}),t.data.index=s,t.parent=a,e.splice(s,0,t),a&&(null===(i=null==a?void 0:a.data.children)||void 0===i||i.push(t.data),m(a))}function p(e,t){var n;const r=t.children;e.data.index=(null==r?void 0:r.length)||0,e.parent=t,(null==r?void 0:r.length)?(r.push(e),null===(n=t.data.children)||void 0===n||n.push(e.data)):(t.children=[e],t.data.children=[e.data])}function f(e,t){const n=t.parent,r=t.data.index;n?(n.children.splice(r,1),n.data.children.splice(r,1),n.children.forEach(e=>{e.data.index>r&&e.data.index--}),m(n)):(e.splice(r,1),e.forEach(e=>{e.data.index>r&&e.data.index--}))}function m(e){e.data.children.sort((e,t)=>e.index-t.index)}function g(e,t,n,r){const i=n.parent;let a=t.data.index,s=n.data.index;a-s==1&&r===o.After||s-a==1&&r===o.Before||(a<s?e.forEach(e=>{const n=e.data.index;e.data.id===t.data.id?e.data.index=s:n>a&&n<=s&&e.data.index--}):e.forEach(e=>{const n=e.data.index;e.data.id===t.data.id?e.data.index=s:n<a&&n>=s&&e.data.index++}),i?m(i):e.sort((e,t)=>e.data.index-t.data.index))}function v(e,t,n,r){if(r===o.None)return;const i=n.parent,a=t.parent,s=(null==a?void 0:a.children)||e,l=(null==i?void 0:i.children)||e;r===o.Child?(f(s,t),p(t,n)):a===i?g(s,t,n,r):(f(e,t),h(l,t,n,r))}!function(e){e[e.Expand=0]="Expand",e[e.CheckBox=1]="CheckBox",e[e.Node=2]="Node",e[e.Text=3]="Text"}(t.TreeItemColumn||(t.TreeItemColumn={})),function(e){e.None="none",e.Before="before",e.After="after",e.Child="child"}(o=t.DropMode||(t.DropMode={})),t.TreeItemAlias={ExpandIcon:"expandIcon",ExpandImg:"expandImg",CheckBox:"checkbox",CheckBoxIcon:"checkboxIcon",NodeIcon:"nodeIcon",NodeImg:"nodeImg",NodeText:"nodeText"},function(e){e[e.UnChecked=0]="UnChecked",e[e.Checked=1]="Checked",e[e.Half=2]="Half"}(i=t.TreeCheckboxState||(t.TreeCheckboxState={})),t.getAdjustCompInfo=function(e,t={}){var n;const r=e.checked?i.UnChecked:i.Checked;t[e.data.id]=r,e.checked=r;let o=e.parent;for(;o;){const e=a(o);o.checked!==e&&(t[o.data.id]=e),o=o.parent}return(null===(n=e.children)||void 0===n?void 0:n.length)&&function e(t,n,r){t.forEach(t=>{var o;r[t.data.id]=n,(null===(o=t.children)||void 0===o?void 0:o.length)&&e(t.children,n,r)})}(e.children,r,t),t},t.mapRelationWithComp=s,t.createAvlTreeWithTreeComp=function(e,t){const n=new r.AvlTree,o=s(e,t);return o.forEach(e=>{u(n,e)}),{tree:n,treeRelation:o}},t.treeToArr=function e(t,n=[],r=0,o){var a,s;for(let l=0,c=t.length;l<c;l++){const c=t[l],u=Object.assign(Object.assign({},c),{parentID:(null==o?void 0:o.id)||"ROOT",isParent:!!(null===(a=c.children)||void 0===a?void 0:a.length),level:r,path:o?`${o.path},${o.id}`:"ROOT",visible:!o||o.visible&&o.expand,checked:i.UnChecked});n.push(u),(null===(s=u.children)||void 0===s?void 0:s.length)&&e(u.children,n,r+1,u)}return n},t.arrToTree=c,t.getNodeIcon=function(e){const t=e.components.find(e=>1===e.column);return t?"string"==typeof(null==t?void 0:t.value)?{type:"string",icon:null==t?void 0:t.value}:{type:"IconValue",icon:null==t?void 0:t.value}:{type:"string",icon:""}},t.doExpand=function(e,t){const n=t.expand;return c(e.map(e=>(e.id===t.id&&(e.expand=!n),e)))},t.doChangeSelected=function(e,t){return c(e.map(e=>(e.id===t.id?e.selected=!0:e.selected=!1,e)))},t.diffrentWithProperty=function(e,t){const n=typeof e,r=typeof t;let o=[];return n&&r&&n===r?(o=Object.keys(e).filter(n=>{const r=n,o=e[r],i=t[r];if(JSON.stringify(o)!==JSON.stringify(i))return r}),o):o},t.addToAvlTree=u,t.createAvlTreeWithTreeData=function(e){const t=new r.AvlTree,n=d(e);return n.forEach(e=>{u(t,e)}),{tree:t,treeRelation:n}},t.mapRelationWithData=d,t.isParentDrag=function(e,t){let n=t.parent;for(;n;){if(n.data.id===e.data.id)return!0;n=n.parent}return!1},t.insertToTreeCollaction=h,t.insertToTreeChild=p,t.insertToTreeSibling=function(e,t,n){var r,o;const i=n.data.index;if(n.parent){const e=null===(r=t.parent)||void 0===r?void 0:r.children;e.forEach(e=>{e.data.index>i&&e.data.index++}),e.splice(i+1,0,t),null===(o=t.parent.data.children)||void 0===o||o.splice(i+1,0,t.data)}else e.forEach(e=>{e.data.index>i&&e.data.index++}),e.splice(i+1,0,t)},t.insertToTreeFirst=function(e,t,n){e.forEach(e=>{e.data.index++}),t.data.index=0,t.parent=n,e.unshift(t)},t.insertToTreeLast=function(e,t,n){t.data.index=e.length,t.parent=n,e.push(t)},t.deleteToTree=f,t.deleteToCollaction=function(e,t){const n=t.data.index;e.splice(n,1),e.forEach(e=>{e.data.index>n&&e.data.index--})},t.sameLevelSort=g,t.moveNode=v,t.parseTreeData=function(e){const t=[];return e.forEach(e=>{t.push(e.data)}),t},t.keyUpMoveToTreeMix=function(e,t){const n=t.data.index,r=t.parent;if(r){const i=r.children;if(0===n)v(e,t,r,o.Before);else{g(i,t,i[n-1],o.Before)}}else{if(0===n)return;g(e,t,e[n-1],o.Before)}},t.keyUpMoveToTree=function(e,t){const n=t.data.index,r=t.parent,i=(null==r?void 0:r.children)||e,a=i[n-1];return!!a&&(g(i,t,a,o.Before),!0)},t.keyDownMoveToTree=function(e,t){const n=t.data.index,r=t.parent,i=(null==r?void 0:r.children)||e,a=i[n+1];return!!a&&(g(i,t,a,o.After),!0)},t.mapChildsIDByCompID=function e(t,n){return t.map(t=>{var r;let o=Object.assign({},t);return n[t.id]&&(o.id=n[t.id]),(null===(r=o.children)||void 0===r?void 0:r.length)&&(o.children=e(o.children,n)),o})}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reRenderComps=t.getIsRemovingCurrentActiveContainer=t.getFinalPositionWhenMove=t.convertRemovedComponentsToAddOps=void 0;const r=n(12),o=n(34),i=n(29),a=n(8),s=n(62);t.convertRemovedComponentsToAddOps=function(e,t){return t.map(t=>r.Ops.addChildren(""+e.components.findIndex(e=>e===t),[t.toJSON()]))},t.getFinalPositionWhenMove=function(e,t,n){return e.map(e=>{const r=e.getBoxPointsInParent().shift(),s=e.getBoxPointsInArtboard().shift(),l={x:s.x+t.x,y:s.y+t.y},c=i.tansPointInArtBoardToGroup([l],e.parent).shift(),u=c.x-r.x,d=c.y-r.y,h=n?a.round(e.position.x+u):e.position.x+u,p=n?a.round(e.position.y+d):e.position.y+d,f={x:e.isLayoutCenterAtHorizontal?e.position.x:h,y:e.isLayoutMiddleAtVertical?e.position.y:p};return{id:e.id,type:o.ComponentChangeType.Edit,position:f,size:e.size,rotate:e.rotate}})},t.getIsRemovingCurrentActiveContainer=function(e,t){return Object.values(e).map(e=>new s.ArtboardPatchesClass(e)).some(e=>e.findOperationSuit(e=>"remove-children"===e.op&&e.value.includes(t)))},t.reRenderComps=function(e,t,n){e.forEach(e=>{n?e.updateSelfAndChildrenVision():e.updateVision(),e.updateComponentView&&e.updateComponentView(t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSymmetricLine=t.getCenterOfPath=t.updatePatchesByWhenFlip=t.getPositionPatchesWhenFlip=t.getPatchesWhenFlip=t.IFlipModel=void 0;const r=n(16),o=n(12),i=n(52),a=n(6),s=n(35),l=n(29);var c;function u(e){const{width:t,height:n}=e.size;return{x:t/2,y:n/2}}function d(e,t){return{direction:t===c.Vertical?i.ILineDirection.Horizontal:i.ILineDirection.Vertical,intersectionOnXAxes:e.x,intersectionOnYAxes:e.y}}!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(c=t.IFlipModel||(t.IFlipModel={})),t.getPatchesWhenFlip=function(e,t,n){const r={do:{},undo:{}};return e.forEach(e=>{const o=e.flipHandler(t,n);s.coverPatches(r,o)}),r},t.getPositionPatchesWhenFlip=function(e,t,n,r){const o={x:r.left+r.width/2,y:r.top+r.height/2},{position:a,size:s}=e,c=i.getCenter(a,s),u=d(o,t),h=i.getSymmetricPoint(c,u),p=i.getNWPoint(h,s,0),f=e.getCurrentPositionPath();return l.getModifyAttrArtboardPatches(e.id,f,{oldValue:a,newValue:p})},t.updatePatchesByWhenFlip=function(e,t,n){const h=e.id,p=e.value;if("line"===e.type){const{newValue:r,path:o}=function(e,t){const{startPoint:n,endPoint:r}=e.value,o=d(i.getMidpointOfTwoPoints(n,r),t);return{newValue:{startPoint:i.getSymmetricPoint(n,o),endPoint:i.getSymmetricPoint(r,o)},path:e.getCurrentPropertiesPath("/value")}}(e,t);s.coverPatches(n,l.getModifyAttrArtboardPatches(h,o,{oldValue:p,newValue:r}))}else if("path"===e.type){const{newValue:r,path:o}=function(e,t){const n=e.value,r=d(u(e),t),o=n.data.map(e=>{const{point:n,handleIn:o,handleOut:a,radius:s}=e,l=i.getSymmetricPoint(n,r),c=d({x:0,y:0},t),[u,h]=[o,a].map(e=>i.getSymmetricPoint(e,c));return{point:l,handleIn:u,handleOut:h,radius:s}});return{newValue:Object.assign(Object.assign({},n),{data:o}),path:[a.CCompoundPath,a.CPath].includes(e.type)?"/value":e.getCurrentPropertiesPath("/value")}}(e,t);s.coverPatches(n,l.getModifyAttrArtboardPatches(h,o,{oldValue:p,newValue:r}));const{newRotate:c,rotatePath:f}=function(e){return{newRotate:(360-e.rotate)%360,rotatePath:e.getCurrentRotatePath()}}(e);s.coverPatches(n,l.getModifyAttrArtboardPatches(h,f,{oldValue:e.rotate,newValue:c}))}else if(e.type===a.CCompoundPath){const{newValue:r,path:o}=function(e,t){return{newValue:e.value.map(n=>{const r=d(u(e),t),o=n.data.map(e=>{const{point:n,handleIn:o,handleOut:a,radius:s}=e,l=i.getSymmetricPoint(n,r),c=d({x:0,y:0},t),[u,h]=[o,a].map(e=>i.getSymmetricPoint(e,c));return{point:l,handleIn:u,handleOut:h,radius:s}});return Object.assign(Object.assign({},n),{data:o})}),path:[a.CCompoundPath,a.CPath].includes(e.type)?"/value":e.getCurrentPropertiesPath("/value")}}(e,t);s.coverPatches(n,l.getModifyAttrArtboardPatches(h,o,{oldValue:p,newValue:r}))}else e.type===a.CPolygon&&s.coverPatches(n,function(e,t){const n={do:{},undo:{}};return e.forEach(e=>{const{id:i,size:s,properties:{polygon:l}}=e,{sideCount:u}=l,d={data:new r.PolygonData(s,u).toPolygonPoints(0).map(e=>({point:{x:t===c.Horizontal?s.width-e.x:e.x,y:t===c.Vertical?s.height-e.y:e.y},handleOut:{x:0,y:0},handleIn:{x:0,y:0}})),closed:!0};n.do[i]=[o.Ops.replace("./type",a.CPath),o.Ops.replace("./value",d)],n.undo[i]=[o.Ops.replace("./type",a.CPolygon),o.Ops.remove("./value")]}),n}([e],t))},t.getCenterOfPath=u,t.getSymmetricLine=d},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){var r,o=n(1374),i=n(443),a=n(1376),s=n(1377),l=n(1378);"undefined"!=typeof ArrayBuffer&&(r=n(1379));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=c||u;t.protocol=3;var h=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=o(h),f={type:"error",data:"parser error"},m=n(1380);function g(e,t,n){for(var r=new Array(e.length),o=s(e.length,n),i=function(e,n,o){t(n,(function(t,n){r[e]=n,o(t,r)}))},a=0;a<e.length;a++)i(a,e[a],o)}t.encodePacket=function(e,n,r,o){"function"==typeof n&&(o=n,n=!1),"function"==typeof r&&(o=r,r=null);var i=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,i=new Uint8Array(o),a=new Uint8Array(1+o.byteLength);a[0]=h[e.type];for(var s=0;s<i.length;s++)a[s+1]=i[s];return r(a.buffer)}(e,n,o);if(void 0!==m&&i instanceof m)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(d)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){t.encodePacket({type:e.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);o[0]=h[e.type];var i=new m([o.buffer,e.data]);return r(i)}(e,n,o);if(i&&i.base64)return function(e,n){var r="b"+t.packets[e.type]+e.data.data;return n(r)}(e,o);var a=h[e.type];return void 0!==e.data&&(a+=r?l.encode(String(e.data),{strict:!1}):String(e.data)),o(""+a)},t.encodeBase64Packet=function(e,n){var r,o="b"+t.packets[e.type];if(void 0!==m&&e.data instanceof m){var i=new FileReader;return i.onload=function(){var e=i.result.split(",")[1];n(o+e)},i.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var a=new Uint8Array(e.data),s=new Array(a.length),l=0;l<a.length;l++)s[l]=a[l];r=String.fromCharCode.apply(null,s)}return o+=btoa(r),n(o)},t.decodePacket=function(e,n,r){if(void 0===e)return f;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=l.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return f;var o=e.charAt(0);return Number(o)==o&&p[o]?e.length>1?{type:p[o],data:e.substring(1)}:{type:p[o]}:f}o=new Uint8Array(e)[0];var i=a(e,1);return m&&"blob"===n&&(i=new m([i])),{type:p[o],data:i}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&m&&(o=new m([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=i(e);if(n&&o)return m&&!d?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");g(e,(function(e,r){t.encodePacket(e,!!o&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))}))},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(f,0,1);for(var i,a,s="",l=0,c=e.length;l<c;l++){var u=e.charAt(l);if(":"===u){if(""===s||s!=(i=Number(s)))return r(f,0,1);if(s!=(a=e.substr(l+1,i)).length)return r(f,0,1);if(a.length){if(o=t.decodePacket(a,n,!1),f.type===o.type&&f.data===o.data)return r(f,0,1);if(!1===r(o,l+i,c))return}l+=i,s=""}else s+=u}return""!==s?r(f,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var r=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),o=new Uint8Array(r),i=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}o[i++]=t?0:1;var s=n.byteLength.toString();for(a=0;a<s.length;a++)o[i++]=parseInt(s[a]);o[i++]=255;for(r=new Uint8Array(n),a=0;a<r.length;a++)o[i++]=r[a]})),n(o.buffer)}))},t.encodePayloadAsBlob=function(e,n){g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var i=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(i.length+1);for(o=0;o<i.length;o++)a[o]=parseInt(i[o]);if(a[i.length]=255,m){var s=new m([t.buffer,a.buffer,e]);n(null,s)}}))}),(function(e,t){return n(new m(t))}))},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,i=[];o.byteLength>0;){for(var s=new Uint8Array(o),l=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(f,0,1);c+=s[u]}o=a(o,2+c.length),c=parseInt(c);var d=a(o,0,c);if(l)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var h=new Uint8Array(d);d="";for(u=0;u<h.length;u++)d+=String.fromCharCode(h[u])}i.push(d),o=a(o,c)}var p=i.length;i.forEach((function(e,o){r(t.decodePacket(e,n,!0),o,p)}))}},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.ThunkActions=t.Actions=void 0;const o=n(49);t.Actions={toast:(e,t)=>o.createAction(o.ActionType.Global_Toast,{message:e,type:t}),ioMessage:e=>o.createAction(o.ActionType.Global_IO_Message,e),socketStateChange:e=>o.createAction(o.ActionType.Global_SOCKET_STATE_CHANGE,e),networkStateChange:e=>o.createAction(o.ActionType.Global_NETWORK_STATE_CHANGE,e),afk:()=>o.createAction(o.ActionType.Global_AFK),waiting:e=>o.createAction(o.ActionType.Global_Waiting,e),toggleOfflineSync:e=>o.createAction(o.ActionType.Global_Offline_Sync,e)};let i=null;t.ThunkActions={thunkToast:(e,n=3e3,o="warning")=>a=>r(void 0,void 0,void 0,(function*(){window.debug&&console.log("[toast]: ",e),a(t.Actions.toast(e,o)),i&&clearTimeout(i),n>0&&(i=setTimeout(()=>{a(t.Actions.toast("",o))},n))})),thunkSocketStateChange:e=>n=>{n(t.Actions.socketStateChange(e))},thunkNetworkStateChange:e=>n=>{n(t.Actions.networkStateChange(e))},thunkError:e=>n=>{window.debug&&console.error(e),n(t.Actions.waiting(!1)),t.ThunkActions.thunkToast(e)(n)}}},function(e,t,n){var r=n(1674),o=n(1677);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";n.r(t),n.d(t,"MemoryRouter",(function(){return B})),n.d(t,"Prompt",(function(){return V})),n.d(t,"Redirect",(function(){return K})),n.d(t,"Route",(function(){return X})),n.d(t,"Router",(function(){return F})),n.d(t,"StaticRouter",(function(){return ne})),n.d(t,"Switch",(function(){return re})),n.d(t,"generatePath",(function(){return U})),n.d(t,"matchPath",(function(){return $})),n.d(t,"useHistory",(function(){return ae})),n.d(t,"useLocation",(function(){return se})),n.d(t,"useParams",(function(){return le})),n.d(t,"useRouteMatch",(function(){return ce})),n.d(t,"withRouter",(function(){return oe})),n.d(t,"BrowserRouter",(function(){return ue})),n.d(t,"HashRouter",(function(){return de})),n.d(t,"Link",(function(){return ve})),n.d(t,"NavLink",(function(){return we}));var r=n(51),o=n(0),i=n.n(o),a=(n(59),n(1));function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var c=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&s(e),a=t&&s(t),c=i||a;if(e&&s(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,h=o.length;h>=0;h--){var p=o[h];"."===p?l(o,h):".."===p?(l(o,h),d++):d&&(l(o,h),d--)}if(!c)for(;d--;d)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function u(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var d=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=u(t),o=u(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var h=function(e,t){if(!e)throw new Error("Invariant failed")};function p(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function g(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function v(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(a.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=c(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function C(e,t){t(window.confirm(e))}function _(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),w||h(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,s=i.forceRefresh,l=void 0!==s&&s,c=i.getUserConfirmation,u=void 0===c?C:c,d=i.keyLength,f=void 0===d?6:d,x=e.basename?g(p(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return x&&(i=m(i,x)),y(i,r,n)}function k(){return Math.random().toString(36).substr(2,f)}var P=b();function T(e){Object(a.a)(F,e),F.length=n.length,P.notifyListeners(F.location,F.action)}function E(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||A(S(e.state))}function O(){A(S(_()))}var M=!1;function A(e){if(M)M=!1,T();else{P.confirmTransitionTo(e,"POP",u,(function(t){t?T({action:"POP",location:e}):function(e){var t=F.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(M=!0,N(o))}(e)}))}}var D=S(_()),I=[D.key];function L(e){return x+v(e)}function N(e){n.go(e)}var j=0;function R(e){1===(j+=e)&&1===e?(window.addEventListener("popstate",E),o&&window.addEventListener("hashchange",O)):0===j&&(window.removeEventListener("popstate",E),o&&window.removeEventListener("hashchange",O))}var z=!1;var F={length:n.length,action:"POP",location:D,createHref:L,push:function(e,t){var o=y(e,t,k(),F.location);P.confirmTransitionTo(o,"PUSH",u,(function(e){if(e){var t=L(o),i=o.key,a=o.state;if(r)if(n.pushState({key:i,state:a},null,t),l)window.location.href=t;else{var s=I.indexOf(F.location.key),c=I.slice(0,s+1);c.push(o.key),I=c,T({action:"PUSH",location:o})}else window.location.href=t}}))},replace:function(e,t){var o=y(e,t,k(),F.location);P.confirmTransitionTo(o,"REPLACE",u,(function(e){if(e){var t=L(o),i=o.key,a=o.state;if(r)if(n.replaceState({key:i,state:a},null,t),l)window.location.replace(t);else{var s=I.indexOf(F.location.key);-1!==s&&(I[s]=o.key),T({action:"REPLACE",location:o})}else window.location.replace(t)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return z||(R(1),z=!0),function(){return z&&(z=!1,R(-1)),t()}},listen:function(e){var t=P.appendListener(e);return R(1),function(){R(-1),t()}}};return F}var S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:p},slash:{encodePath:p,decodePath:p}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function P(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(k(window.location.href)+"#"+e)}function E(e){void 0===e&&(e={}),w||h(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?C:r,i=n.hashType,s=void 0===i?"slash":i,l=e.basename?g(p(e.basename)):"",c=S[s],u=c.encodePath,d=c.decodePath;function f(){var e=d(P());return l&&(e=m(e,l)),y(e)}var _=b();function x(e){Object(a.a)(F,e),F.length=t.length,_.notifyListeners(F.location,F.action)}var E=!1,O=null;function M(){var e,t,n=P(),r=u(n);if(n!==r)T(r);else{var i=f(),a=F.location;if(!E&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(O===v(i))return;O=null,function(e){if(E)E=!1,x();else{_.confirmTransitionTo(e,"POP",o,(function(t){t?x({action:"POP",location:e}):function(e){var t=F.location,n=L.lastIndexOf(v(t));-1===n&&(n=0);var r=L.lastIndexOf(v(e));-1===r&&(r=0);var o=n-r;o&&(E=!0,N(o))}(e)}))}}(i)}}var A=P(),D=u(A);A!==D&&T(D);var I=f(),L=[v(I)];function N(e){t.go(e)}var j=0;function R(e){1===(j+=e)&&1===e?window.addEventListener("hashchange",M):0===j&&window.removeEventListener("hashchange",M)}var z=!1;var F={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+u(l+v(e))},push:function(e,t){var n=y(e,void 0,void 0,F.location);_.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=v(n),r=u(l+t);if(P()!==r){O=t,function(e){window.location.hash=e}(r);var o=L.lastIndexOf(v(F.location)),i=L.slice(0,o+1);i.push(t),L=i,x({action:"PUSH",location:n})}else x()}}))},replace:function(e,t){var n=y(e,void 0,void 0,F.location);_.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=v(n),r=u(l+t);P()!==r&&(O=t,T(r));var o=L.indexOf(v(F.location));-1!==o&&(L[o]=t),x({action:"REPLACE",location:n})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return z||(R(1),z=!0),function(){return z&&(z=!1,R(-1)),t()}},listen:function(e){var t=_.appendListener(e);return R(1),function(){R(-1),t()}}};return F}function O(e,t,n){return Math.min(Math.max(e,t),n)}function M(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,c=void 0===l?6:l,u=b();function d(e){Object(a.a)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,c)}var p=O(s,0,o.length-1),f=o.map((function(e){return y(e,void 0,"string"==typeof e?h():e.key||h())})),m=v;function g(e){var t=O(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:f.length,action:"POP",location:f[p],index:p,entries:f,createHref:m,push:function(e,t){var r=y(e,t,h(),w.location);u.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),d({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=y(e,t,h(),w.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,d({action:"REPLACE",location:r}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}var A=n(325),D=n(326),I=n.n(D),L=(n(117),n(60)),N=n(78),j=n.n(N),R=function(e){var t=Object(A.a)();return t.displayName=e,t}("Router-History"),z=function(e){var t=Object(A.a)();return t.displayName=e,t}("Router"),F=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(z.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(R.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);var B=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=M(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return i.a.createElement(F,{history:this.history,children:this.props.children})},t}(i.a.Component);var H=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);function V(e){var t=e.message,n=e.when,r=void 0===n||n;return i.a.createElement(z.Consumer,null,(function(e){if(e||h(!1),!r||e.staticContext)return null;var n=e.history.block;return i.a.createElement(H,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var Y={},W=0;function U(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Y[e])return Y[e];var t=I.a.compile(e);return W<1e4&&(Y[e]=t,W++),t}(e)(t,{pretty:!0})}function K(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(z.Consumer,null,(function(e){e||h(!1);var r=e.history,s=e.staticContext,l=o?r.push:r.replace,c=y(t?"string"==typeof n?U(n,t.params):Object(a.a)({},n,{pathname:U(n.pathname,t.params)}):n);return s?(l(c),null):i.a.createElement(H,{onMount:function(){l(c)},onUpdate:function(e,t){var n,r,o=y(t.to);n=o,r=Object(a.a)({},c,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&d(n.state,r.state)||l(c)},to:n})}))}var G={},q=0;function $(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=G[n]||(G[n]={});if(r[e])return r[e];var o=[],i={regexp:I()(e,o,t),keys:o};return q<1e4&&(r[e]=i,q++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),h=e===u;return i&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var X=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(z.Consumer,null,(function(t){t||h(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?$(n.pathname,e.props):t.match,o=Object(a.a)({},t,{location:n,match:r}),s=e.props,l=s.children,c=s.component,u=s.render;return Array.isArray(l)&&0===l.length&&(l=null),i.a.createElement(z.Provider,{value:o},o.match?l?"function"==typeof l?l(o):l:c?i.a.createElement(c,o):u?u(o):null:"function"==typeof l?l(o):null)}))},t}(i.a.Component);function J(e){return"/"===e.charAt(0)?e:"/"+e}function Z(e,t){if(!e)return t;var n=J(e);return 0!==t.pathname.indexOf(n)?t:Object(a.a)({},t,{pathname:t.pathname.substr(n.length)})}function Q(e){return"string"==typeof e?e:v(e)}function ee(e){return function(){h(!1)}}function te(){}var ne=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return te},t.handleBlock=function(){return te},t}Object(r.a)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,o=void 0===r?"":r,i=n.context,s=void 0===i?{}:i;s.action=t,s.location=function(e,t){return e?Object(a.a)({},t,{pathname:J(e)+t.pathname}):t}(o,y(e)),s.url=Q(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,o=void 0===r?{}:r,s=e.location,l=void 0===s?"/":s,c=Object(L.a)(e,["basename","context","location"]),u={createHref:function(e){return J(n+Q(e))},action:"POP",location:Z(n,y(l)),push:this.handlePush,replace:this.handleReplace,go:ee(),goBack:ee(),goForward:ee(),listen:this.handleListen,block:this.handleBlock};return i.a.createElement(F,Object(a.a)({},c,{history:u,staticContext:o}))},t}(i.a.Component);var re=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(z.Consumer,null,(function(t){t||h(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var s=e.props.path||e.props.from;r=s?$(o.pathname,Object(a.a)({},e.props,{path:s})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);function oe(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(L.a)(t,["wrappedComponentRef"]);return i.a.createElement(z.Consumer,null,(function(t){return t||h(!1),i.a.createElement(e,Object(a.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,j()(n,e)}var ie=i.a.useContext;function ae(){return ie(R)}function se(){return ie(z).location}function le(){var e=ie(z).match;return e?e.params:{}}function ce(e){var t=se(),n=ie(z).match;return e?$(t.pathname,e):n}var ue=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=x(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return i.a.createElement(F,{history:this.history,children:this.props.children})},t}(i.a.Component);var de=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=E(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return i.a.createElement(F,{history:this.history,children:this.props.children})},t}(i.a.Component);var he=function(e,t){return"function"==typeof e?e(t):e},pe=function(e,t){return"string"==typeof e?y(e,null,null,t):e},fe=function(e){return e},me=i.a.forwardRef;void 0===me&&(me=fe);var ge=me((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,s=Object(L.a)(e,["innerRef","navigate","onClick"]),l=s.target,c=Object(a.a)({},s,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=fe!==me&&t||n,i.a.createElement("a",c)}));var ve=me((function(e,t){var n=e.component,r=void 0===n?ge:n,o=e.replace,s=e.to,l=e.innerRef,c=Object(L.a)(e,["component","replace","to","innerRef"]);return i.a.createElement(z.Consumer,null,(function(e){e||h(!1);var n=e.history,u=pe(he(s,e.location),e.location),d=u?n.createHref(u):"",p=Object(a.a)({},c,{href:d,navigate:function(){var t=he(s,e.location);(o?n.replace:n.push)(t)}});return fe!==me?p.ref=t||l:p.innerRef=l,i.a.createElement(r,p)}))})),ye=function(e){return e},be=i.a.forwardRef;void 0===be&&(be=ye);var we=be((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,l=e.activeStyle,c=e.className,u=e.exact,d=e.isActive,p=e.location,f=e.sensitive,m=e.strict,g=e.style,v=e.to,y=e.innerRef,b=Object(L.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.a.createElement(z.Consumer,null,(function(e){e||h(!1);var n=p||e.location,o=pe(he(v,n),n),w=o.pathname,C=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=C?$(n.pathname,{path:C,exact:u,sensitive:f,strict:m}):null,x=!!(d?d(_,n):_),S=x?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,s):c,k=x?Object(a.a)({},g,{},l):g,P=Object(a.a)({"aria-current":x&&r||null,className:S,style:k,to:o},b);return ye!==be?P.ref=t||y:P.innerRef=y,i.a.createElement(ve,P)}))}))},function(e,t,n){var r=n(234),o=n(1659),i=n(611),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){return f=e,h=setTimeout(C,t),m?y(e):d}function w(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=u}function C(){var e=o();if(w(e))return _(e);h=setTimeout(C,function(e){var n=t-(e-p);return g?s(n,u-(e-f)):n}(e))}function _(e){return h=void 0,v&&l?y(e):(l=c=void 0,d)}function x(){var e=o(),n=w(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return b(p);if(g)return clearTimeout(h),h=setTimeout(C,t),y(p)}return void 0===h&&(h=setTimeout(C,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},x.flush=function(){return void 0===h?d:_(o())},x}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var r=n(79),o=n(21),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(110)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(81);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r=n(19);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(19),o=n(54),i=n(37)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MobileType=t.PreviewUrlSearchKey=void 0,function(e){e.Lark="lark",e.PhoneUrl="phoneUrl",e.ShowHiddenPages="showHiddenPages",e.ShowOutside="out",e.DeviceType="dt",e.FitToScreen="fc",e.AlwayshowLinkArea="la",e.ShowLinkAreaWhenMouseHover="ha",e.ShowControllerPanel="ps",e.XMockplusLang="x-mockplus-lang"}(t.PreviewUrlSearchKey||(t.PreviewUrlSearchKey={})),function(e){e.IphoneX="iphoneX",e.Iphone="iphone",e.Android="android",e.Pad="pad",e.None="none"}(t.MobileType||(t.MobileType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClipboarExcelToTable=t.hasTableClipboarDataInStorage=t.clearWorkspaceCopyData=t.clearCopyData=t.pasteComponent=t.clearTextFormatFromClipboard=t.getCopiedArtboardData=t.getCopiedComponentData=t.copiedDataType=t.copyArtboardData=t.copyComponentData=t.ClipboardType=t.copy=void 0;const r=n(148),o=n(18),i=n(8),a=n(365),s=n(130),l=n(42);function c(e){const t=document.createElement("textarea");t.textContent=e,t.style.position="fixed",document.body.appendChild(t),t.select();try{return document.execCommand("copy")}catch(e){console.warn("Copy to clipboard failed",e)}finally{document.body.removeChild(t)}}var u;function d(e){a.clearLocalStorageItem(e)}function h(e,t,n){var r;let o=[];for(let i=0;i<n;i++)(null===(r=e[t][i])||void 0===r?void 0:r.mergedBy)&&e[t][i].mergedBy.length>0||o.push(i);return o}function p(e){return+e.getAttribute("colspan")||1}function f(e,t,n,r,o){if(void 0===e[t])for(;e.length-1<t;)e.push(i.jsonClone(new Array(r).fill(s.DefaultCell)));e[t].splice(n,1,o)}function m(e,t,n,r,o){const i=p(t),a=function(e){return+e.getAttribute("rowspan")||1}(t);for(let l=n;l<n+a;l++)for(let c=r;c<r+i;c++){f(e,l,c,o,l===n&&c===r?Object.assign(Object.assign({},s.DefaultCell),{data:{text:t.innerText.trim()},mergeAcross:i-1,mergeDown:a-1}):Object.assign(Object.assign({},s.DefaultCell),{data:{text:""},mergedBy:[r,n]}))}}function g(e){return{cells:[[Object.assign(Object.assign({},s.DefaultCell),{data:{text:e}})]]}}t.copy=c,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=""}(u=t.ClipboardType||(t.ClipboardType={})),t.copyComponentData=function(e,t,n){const r=document.activeElement;a.clearLocalStorageItem("MOCKPLUS-ARTBOARD-DATA"),a.clearLocalStorageItem(u.Table_Copy),c(t);const o=JSON.stringify({data:e,containerID:n},void 0,2);try{a.saveToLocalStorage("MOCKPLUS-COMPONENT-DATA",o)}catch(e){console.error(e),a.free(),a.saveToLocalStorage("MOCKPLUS-COMPONENT-DATA",o)}r&&r instanceof HTMLElement&&r.focus()},t.copyArtboardData=function(e,t){const n=document.activeElement;a.clearLocalStorageItem("MOCKPLUS-COMPONENT-DATA"),a.clearLocalStorageItem(u.Table_Copy),c(t);const r=JSON.stringify({data:e},void 0,2);try{a.saveToLocalStorage("MOCKPLUS-ARTBOARD-DATA",r)}catch(e){console.error(e),a.free(),a.saveToLocalStorage("MOCKPLUS-ARTBOARD-DATA",r)}n&&n instanceof HTMLElement&&n.focus()},t.copiedDataType=function(e){return e===u.Component_Copy?u.Component_Copy:e===u.Component_Cut?u.Component_Cut:e===u.Artboard_Copy?u.Artboard_Copy:e===u.Table_Copy?u.Table_Copy:u.Normal},t.getCopiedComponentData=function(){const e=a.getLocalStorageItem("MOCKPLUS-COMPONENT-DATA");if(!e)return null;try{const{data:t,containerID:n,cid:r}=JSON.parse(e);return{componentData:t,containerID:n,cid:r}}catch(t){console.warn("Fail to decode component data",e)}return null},t.getCopiedArtboardData=function(){const e=a.getLocalStorageItem("MOCKPLUS-ARTBOARD-DATA");if(!e)return null;try{const{data:t}=JSON.parse(e);return{data:t}}catch(t){console.warn("Fail to decode artboard data",e)}return null},t.clearTextFormatFromClipboard=function(e,t){return o.filterHTMLText(e,t)},t.pasteComponent=function(){const e=a.getLocalStorageItem("MOCKPLUS-COMPONENT-DATA");return(e?JSON.parse(e).data:null)||[]},t.clearCopyData=d,t.clearWorkspaceCopyData=function(){d("MOCKPLUS-COMPONENT-DATA"),d("MOCKPLUS-ARTBOARD-DATA")},t.hasTableClipboarDataInStorage=()=>!!l.default.tableClipboardData,t.parseClipboarExcelToTable=function(e){const{clipboardData:t}=e;if(!t)return g("");const{types:n}=t,o=n.includes("text/html"),a=n.includes("text/plain");if(o){const e=t.getData("text/html"),n=(new DOMParser).parseFromString(e,"text/html"),o=Array.from(n.querySelectorAll("table tr")),a=Array.from(n.querySelectorAll("table colgroup col")),l=Array.from(n.querySelectorAll("table tr td"));if(l.length>0){let e=0,t=[];const r=Array.from(n.querySelectorAll("table tr")),c=Array.from(r[0].querySelectorAll("td")).reduce((e,t)=>e+p(t),0);for(;l.length;){if(void 0===t[e])t[e]=i.jsonClone(new Array(c).fill(s.DefaultCell));else if(!t[e].some(e=>e.mergedBy&&e.mergedBy.length>0)){e++;continue}const n=h(t,e,c);for(;n.length>0;){const r=l.shift();m(t,r,e,n[0],c),n.splice(0,p(r))}e++}const u=[],d=[];return o.length&&o.forEach(e=>{const t=e.getAttribute("height");d.push(t?parseInt(t):void 0)}),a.length&&a.forEach(e=>{const t=e.getAttribute("width");u.push(t?parseInt(t):void 0)}),{cells:t,rowHeights:d,colWidths:u}}if(""===n.body.innerText.trim())return g("");return g(r(e,{allowedTags:["span","ol","ul","div","a","li"],allowedAttributes:{span:["style"],a:["href"]}}))}if(a){const e=t.getData("text/plain");if(e===u.Table_Copy){const t=l.default.tableClipboardData;return t||g(e)}return g(e)}return g("")}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),l=r[n];n<i;l=r[++n])m(l)||!w(l)?a+=" "+l:a+=" "+s(l);return a},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),o=!0}return n.apply(this,arguments)}};var i,a={};function s(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),u(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e,n,r){if(e.customInspect&&n&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return v(o)||(o=u(e,o,r)),o}var i=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(x(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return d(n)}var c,w="",S=!1,k=["{","}"];(p(n)&&(S=!0,k=["[","]"]),x(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),C(n)&&(w=" "+Date.prototype.toUTCString.call(n)),_(n)&&(w=" "+d(n)),0!==a.length||S&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=S?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)E(t,String(a))?i.push(h(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(h(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return h(e,n,r,s,t,S)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,k)):k[0]+w+k[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,o,i){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),E(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"==typeof e&&null!==e}function C(e){return w(e)&&"[object Date]"===S(e)}function _(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(y(i)&&(i=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=f,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=w,t.isDate=C,t.isError=_,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(887);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=n(888),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=O,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(M,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(102))},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.desktopServer=t.DesktopMessageType=t.DesktopMessageTarget=t.DesktopEventType=t.DesktopChannelType=void 0;const o=n(57);var i,a,s;!function(e){e.closeWindow="window-close",e.createEditorWindow="window-create-editor",e.minimizeWindow="window-minimize",e.maximizeWindow="window-maximize",e.unmaximizeWindow="window-unmaximize",e.setWindowPosition="window-position",e.setWindowSize="window-size",e.showMainWindow="window-main-show",e.openWebDevTools="web-open-dev-tools",e.login="login",e.logout="logout",e.reload="reload",e.message="message",e.createApp="create-app",e.loading="loading",e.loaded="loaded",e.readyToShow="ready-to-show",e.getLocalFonts="get-local-fonts",e.checkMaximize="checkMaximize",e.enterFullScreen="enter-full-screen",e.leaveFullScreen="leave-full-screen"}(i=t.DesktopChannelType||(t.DesktopChannelType={})),function(e){e.maximize="maximize",e.unmaximize="unmaximize",e.reload="reload",e.updateCheck="update-check",e.updateProgress="update-progress",e.login="login",e.logout="logout",e.message="message",e.createApp="create-app",e.targetWeb="target-web",e.allWeb="all-web",e.getLocalFonts="get-local-fonts",e.enterFullScreen="enter-full-screen",e.leaveFullScreen="leave-full-screen"}(a=t.DesktopEventType||(t.DesktopEventType={})),function(e){e.targetWeb="target-web",e.allWeb="all-web"}(s=t.DesktopMessageTarget||(t.DesktopMessageTarget={})),function(e){e.patchTeamInfo="patchTeamInfo",e.patchAppInfo="patchAppInfo"}(t.DesktopMessageType||(t.DesktopMessageType={}));class l{constructor(){this.origin=location.origin,this.openPreview=(e,t)=>{var n;const r=this.origin+"/run/rp/"+e+(t?"/"+t:"");null===(n=this.electron)||void 0===n||n.ipcRenderer.send(i.createEditorWindow,r),o.isMockRPD||window.open(r)},this.openExample=e=>{var t;const n=this.origin+"/rp/example/"+e;null===(t=this.electron)||void 0===t||t.ipcRenderer.send(i.createEditorWindow,n),o.isMockRPD||(window.location.href=n)},this.electron=window.require?window.require("electron"):void 0}openApp(e){var t;const n=this.origin+"/rp/editor/"+e;if(null===(t=this.electron)||void 0===t||t.ipcRenderer.send(i.createEditorWindow,n),!o.isMockRPD){const e=document.createElement("a");e.href=n,e.target="_blank",document.body.appendChild(e),e.click(),e.remove()}}minimizeWindow(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.minimizeWindow)}maximizeWindow(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.maximizeWindow)}unmaximizeWindow(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.unmaximizeWindow)}closeWindow(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.closeWindow)}showHomepage(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.showMainWindow),o.isMockRPD||(location.href=this.origin+"/rp/home")}setPosition(e,t,n){var r;e=Math.round(e),t=Math.round(t),null===(r=this.electron)||void 0===r||r.ipcRenderer.send(i.setWindowPosition,e,t,n)}setSize(e,t,n){var r;null===(r=this.electron)||void 0===r||r.ipcRenderer.send(i.setWindowSize,e,t,n)}login(e){var t;null===(t=this.electron)||void 0===t||t.ipcRenderer.send(i.login,e)}logout(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.logout)}createApp(e){var t;null===(t=this.electron)||void 0===t||t.ipcRenderer.send(i.createApp,e)}postMessage(e,t){var n;null===(n=this.electron)||void 0===n||n.ipcRenderer.send(i.message,s.targetWeb,{url:e,data:t})}postAllMessage(e){var t;null===(t=this.electron)||void 0===t||t.ipcRenderer.send(i.message,s.targetWeb,e)}getCaptureImage(){return r(this,void 0,void 0,(function*(){return new Promise((e,t)=>{var n;const r={width:innerWidth*window.devicePixelRatio,height:innerHeight*window.devicePixelRatio};null===(n=this.electron)||void 0===n||n.desktopCapturer.getSources({types:["window"],thumbnailSize:r}).then(n=>{const r=n.find(e=>e.name===document.title);if(!r)return t("no window");e(r.thumbnail.toDataURL())}).catch(t)})}))}getLocalFonts(){var e;return r(this,void 0,void 0,(function*(){return null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.getLocalFonts),new Promise((e,t)=>{var n;null===(n=this.electron)||void 0===n||n.ipcRenderer.addListener(a.getLocalFonts,(n,r)=>r?e(r):t())})}))}doLoading(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.loading)}doLoaded(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.loaded)}readyToShow(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.readyToShow)}checkMaximize(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.checkMaximize)}enterFullScreen(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.enterFullScreen),o.isMockRPD||document.body.requestFullscreen()}leaveFullScreen(){var e;null===(e=this.electron)||void 0===e||e.ipcRenderer.send(i.leaveFullScreen),o.isMockRPD||document.exitFullscreen()}}t.desktopServer=new l,t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(389),i=n(2),a=n(93);n(984);const s=()=>null!==navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);class l extends r.Component{constructor(e){super(e),this.self=r.createRef(),this.getScrollTop=()=>this.self.current.getScrollTop(),this.scrollTop=e=>{this.self.current.scrollTop(e)},this.scrollLeft=e=>{this.self.current.scrollLeft(e)},this.getClientHeight=()=>this.self.current.getClientHeight(),this.getClientWidth=()=>this.self.current.getClientWidth(),this.scrollToTop=()=>{this.self.current.scrollToTop()},this.scrollToBottom=()=>{this.self.current.scrollToBottom()},this.scrollToLeft=()=>{this.self.current.scrollToLeft()},this.scrollToRight=()=>{this.self.current.scrollToRight()},this.getScrollLeft=()=>this.self.current.getScrollLeft(),this.getScrollWidth=()=>this.self.current.getScrollWidth(),this.getScrollHeight=()=>this.self.current.getScrollHeight(),this.getValues=()=>this.self.current.getValues(),this.handleScroll=e=>{if(this.props.disabled&&this.scrollTop(this.scrollTopWithStart),s()){const e=this.getClientHeight(),t=this.getScrollHeight(),n=this.getScrollTop();n<=0?this.scrollTop(0):n+e>=t&&this.scrollTop(t-e)}this.props.onScroll&&this.props.onScroll(e)},this.handleScrollStart=()=>{this.scrollTopWithStart=this.getScrollTop()},this.scrollTopWithStart=0}renderVerticalTracker(){const{thumbTheme:e}=this.props;return()=>s()||this.props.hiddenVerticalScrollBar?r.createElement("i",{className:"no-tracker"}):r.createElement("div",{className:i.default("track-bar","scrollbars-vertical-tracker",e,this.props.trackerClassName)})}renderHorizontalTracker(){const{thumbTheme:e}=this.props;return()=>s()||this.props.hiddenHorizontalScrollBar?r.createElement("i",{className:"no-tracker"}):r.createElement("div",{className:i.default("track-bar","scrollbars-horizontal-tracker",e,this.props.trackerClassName)})}renderVerticalThumb(){const{thumbTheme:e}=this.props;return()=>s()||this.props.hiddenVerticalScrollBar?r.createElement("i",{className:"no-thumb"}):r.createElement("div",{className:i.default("scroll-thumb scroll-bars-vertical-thumb",this.props.thumbClassName,e)})}renderHorizontalThumb(){const{thumbTheme:e}=this.props;return()=>s()||this.props.hiddenHorizontalScrollBar?r.createElement("i",{className:"no-thumb"}):r.createElement("div",{className:i.default("scroll-thumb scroll-bars-horizontal-thumb",e,this.props.thumbClassName)})}render(){const{children:e,className:t,style:n,autoHide:l,theme:c}=this.props;return r.createElement(o.default,{ref:this.self,autoFocus:!0,autoHide:l,style:n,className:i.default("dsm-c-rp-scrollbars",t,c,{autoHide:l,firefox:a.isFirefox(),win:!s()}),renderTrackHorizontal:this.renderHorizontalTracker(),renderTrackVertical:this.renderVerticalTracker(),renderThumbVertical:this.renderVerticalThumb(),renderThumbHorizontal:this.renderHorizontalThumb(),onScroll:this.handleScroll,onScrollStart:this.handleScrollStart},e)}}t.default=l,l.defaultProps={autoHide:!0}},function(e,t,n){"use strict";
|
|
|
/**
|
|
|
* @license
|
|
|
* Copyright Daniel Imms <http://www.growingwiththeweb.com>
|
|
|
* Released under MIT license. See LICENSE in the project root for details.
|
|
|
*/Object.defineProperty(t,"__esModule",{value:!0});var r=n(1086),o=function(){function e(e){this._root=null,this._size=0,this._compare=e||this._defaultCompare}return e.prototype._defaultCompare=function(e,t){return e>t?1:e<t?-1:0},e.prototype.insert=function(e,t){this._root=this._insert(e,t,this._root),this._size++},e.prototype._insert=function(e,t,n){if(null===n)return new r.Node(e,t);if(this._compare(e,n.key)<0)n.left=this._insert(e,t,n.left);else{if(!(this._compare(e,n.key)>0))return this._size--,n;n.right=this._insert(e,t,n.right)}n.height=Math.max(n.leftHeight,n.rightHeight)+1;var o=this._getBalanceState(n);if(4===o){if(!(this._compare(e,n.left.key)<0))return n.left=n.left.rotateLeft(),n.rotateRight();n=n.rotateRight()}if(0===o){if(!(this._compare(e,n.right.key)>0))return n.right=n.right.rotateRight(),n.rotateLeft();n=n.rotateLeft()}return n},e.prototype.delete=function(e){this._root=this._delete(e,this._root),this._size--},e.prototype._delete=function(e,t){if(null===t)return this._size++,t;if(this._compare(e,t.key)<0)t.left=this._delete(e,t.left);else if(this._compare(e,t.key)>0)t.right=this._delete(e,t.right);else if(t.left||t.right)if(!t.left&&t.right)t=t.right;else if(t.left&&!t.right)t=t.left;else{var n=this._minValueNode(t.right);t.key=n.key,t.value=n.value,t.right=this._delete(n.key,t.right)}else t=null;if(null===t)return t;t.height=Math.max(t.leftHeight,t.rightHeight)+1;var r=this._getBalanceState(t);return 4===r?(2===this._getBalanceState(t.left)||3===this._getBalanceState(t.left)||(t.left=t.left.rotateLeft()),t.rotateRight()):0===r?(2===this._getBalanceState(t.right)||1===this._getBalanceState(t.right)||(t.right=t.right.rotateRight()),t.rotateLeft()):t},e.prototype.get=function(e){if(null===this._root)return null;var t=this._get(e,this._root);return null===t?null:t.value},e.prototype._get=function(e,t){var n=this._compare(e,t.key);return 0===n?t:n<0?t.left?this._get(e,t.left):null:t.right?this._get(e,t.right):null},e.prototype.contains=function(e){return null!==this._root&&!!this._get(e,this._root)},e.prototype.findMinimum=function(){return null===this._root?null:this._minValueNode(this._root).key},e.prototype.findMaximum=function(){return null===this._root?null:this._maxValueNode(this._root).key},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._size},enumerable:!0,configurable:!0}),e.prototype._minValueNode=function(e){for(var t=e;t.left;)t=t.left;return t},e.prototype._maxValueNode=function(e){for(var t=e;t.right;)t=t.right;return t},e.prototype._getBalanceState=function(e){switch(e.leftHeight-e.rightHeight){case-2:return 0;case-1:return 1;case 1:return 3;case 2:return 4;default:return 2}},e}();t.AvlTree=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentPositionMode=void 0,function(e){e.Custom="custom",e.Center="center",e.Left="left",e.Right="right",e.Top="top",e.Bottom="bottom"}(t.FragmentPositionMode||(t.FragmentPositionMode={}))},function(e,t,n){var r,o,i;(function(a,s){var l=(a=a||n(1330)).window,c=a.document,u=new function(){var e=/^(statics|enumerable|beans|preserve)$/,t=[],n=t.slice,r=Object.create,o=Object.getOwnPropertyDescriptor,i=Object.defineProperty,a=t.forEach||function(e,t){for(var n=0,r=this.length;n<r;n++)e.call(t,this[n],n,this)},l=function(e,t){for(var n in this)this.hasOwnProperty(n)&&e.call(t,this[n],n,this)},c=Object.assign||function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e},u=function(e,t,n){if(e){var r=o(e,"length");(r&&"number"==typeof r.value?a:l).call(e,t,n=n||e)}return n};function d(t,n,r,a,s){var l={};function c(e,c){"string"==typeof(c=c||(c=o(n,e))&&(c.get?c:c.value))&&"#"===c[0]&&(c=t[c.substring(1)]||c);var u,d="function"==typeof c,p=c,f=s||d&&!c.base?c&&c.get?e in t:t[e]:null;s&&f||(d&&f&&(c.base=f),d&&!1!==a&&(u=e.match(/^([gs]et|is)(([A-Z])(.*))$/))&&(l[u[3].toLowerCase()+u[4]]=u[2]),p&&!d&&p.get&&"function"==typeof p.get&&h.isPlainObject(p)||(p={value:p,writable:!0}),(o(t,e)||{configurable:!0}).configurable&&(p.configurable=!0,p.enumerable=null!=r?r:!u),i(t,e,p))}if(n){for(var u in n)n.hasOwnProperty(u)&&!e.test(u)&&c(u);for(var u in l){var d=l[u],p=t["set"+d],f=t["get"+d]||p&&t["is"+d];!f||!0!==a&&0!==f.length||c(u,{get:f,set:p})}}return t}function h(){for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];n&&c(this,n)}return this}return d(h,{inject:function(e){if(e){var t=!0===e.statics?e:e.statics,n=e.beans,r=e.preserve;t!==e&&d(this.prototype,e,e.enumerable,n,r),d(this,t,null,n,r)}for(var o=1,i=arguments.length;o<i;o++)this.inject(arguments[o]);return this},extend:function(){for(var e,t,n,o=this,a=0,s=arguments.length;a<s&&(!e||!t);a++)n=arguments[a],e=e||n.initialize,t=t||n.prototype;return t=(e=e||function(){o.apply(this,arguments)}).prototype=t||r(this.prototype),i(t,"constructor",{value:e,writable:!0,configurable:!0}),d(e,this),arguments.length&&this.inject.apply(e,arguments),e.base=o,e}}).inject({enumerable:!1,initialize:h,set:h,inject:function(){for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];n&&d(this,n,n.enumerable,n.beans,n.preserve)}return this},extend:function(){var e=r(this);return e.inject.apply(e,arguments)},each:function(e,t){return u(this,e,t)},clone:function(){return new this.constructor(this)},statics:{set:c,each:u,create:r,define:i,describe:o,clone:function(e){return c(new e.constructor,e)},isPlainObject:function(e){var t=null!=e&&e.constructor;return t&&(t===Object||t===h||"Object"===t.name)},pick:function(e,t){return e!==s?e:t},slice:function(e,t,r){return n.call(e,t,r)}}})};e.exports=u,u.inject({enumerable:!1,toString:function(){return null!=this._id?(this._class||"Object")+(this._name?" '"+this._name+"'":" @"+this._id):"{ "+u.each(this,(function(e,t){if(!/^_/.test(t)){var n=typeof e;this.push(t+": "+("number"===n?m.instance.number(e):"string"===n?"'"+e+"'":e))}}),[]).join(", ")+" }"},getClassName:function(){return this._class||""},importJSON:function(e){return u.importJSON(e,this)},exportJSON:function(e){return u.exportJSON(this,e)},toJSON:function(){return u.serialize(this)},set:function(e,t){return e&&u.filter(this,e,t,this._prioritize),this}},{beans:!1,statics:{exports:{},extend:function e(){var t=e.base.apply(this,arguments),n=t.prototype._class;return n&&!u.exports[n]&&(u.exports[n]=t),t},equals:function(e,t){if(e===t)return!0;if(e&&e.equals)return e.equals(t);if(t&&t.equals)return t.equals(e);if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if((n=e.length)!==t.length)return!1;for(;n--;)if(!u.equals(e[n],t[n]))return!1}else{var n,r=Object.keys(e);if((n=r.length)!==Object.keys(t).length)return!1;for(;n--;){var o=r[n];if(!t.hasOwnProperty(o)||!u.equals(e[o],t[o]))return!1}}return!0}return!1},read:function(e,t,n,r){if(this===u){var o=this.peek(e,t);return e.__index++,o}var i=this.prototype,a=i._readIndex,l=t||a&&e.__index||0,c=e.length,d=e[l];if(r=r||c-l,d instanceof this||n&&n.readNull&&null==d&&r<=1)return a&&(e.__index=l+1),d&&n&&n.clone?d.clone():d;if(d=u.create(i),a&&(d.__read=!0),d=d.initialize.apply(d,l>0||l+r<c?u.slice(e,l,l+r):e)||d,a){e.__index=l+d.__read;var h=d.__filtered;h&&(e.__filtered=h,d.__filtered=s),d.__read=s}return d},peek:function(e,t){return e[e.__index=t||e.__index||0]},remain:function(e){return e.length-(e.__index||0)},readList:function(e,t,n,r){for(var o,i=[],a=t||0,s=r?a+r:e.length,l=a;l<s;l++)i.push(Array.isArray(o=e[l])?this.read(o,0,n):this.read(e,l,n,1));return i},readNamed:function(e,t,n,r,o){var i=this.getNamed(e,t),a=i!==s;if(a){var l=e.__filtered;if(!l){var c=this.getSource(e);(l=e.__filtered=u.create(c)).__unfiltered=c}l[t]=s}return this.read(a?[i]:e,n,r,o)},readSupported:function(e,t){var n=this.getSource(e),r=this,o=!1;return n&&Object.keys(n).forEach((function(n){if(n in t){var i=r.readNamed(e,n);i!==s&&(t[n]=i),o=!0}})),o},getSource:function(e){var t=e.__source;if(t===s){var n=1===e.length&&e[0];t=e.__source=n&&u.isPlainObject(n)?n:null}return t},getNamed:function(e,t){var n=this.getSource(e);if(n)return t?n[t]:e.__filtered||n},hasNamed:function(e,t){return!!this.getNamed(e,t)},filter:function(e,t,n,r){var o;function i(r){if(!(n&&r in n||o&&r in o)){var i=t[r];i!==s&&(e[r]=i)}}if(r){for(var a,l={},c=0,u=r.length;c<u;c++)(a=r[c])in t&&(i(a),l[a]=!0);o=l}return Object.keys(t.__unfiltered||t).forEach(i),e},isPlainValue:function(e,t){return u.isPlainObject(e)||Array.isArray(e)||t&&"string"==typeof e},serialize:function(e,t,n,r){t=t||{};var o,i=!r;if(i&&(t.formatter=new m(t.precision),r={length:0,definitions:{},references:{},add:function(e,t){var n="#"+e._id,r=this.references[n];if(!r){this.length++;var o=t.call(e),i=e._class;i&&o[0]!==i&&o.unshift(i),this.definitions[n]=o,r=this.references[n]=[n]}return r}}),e&&e._serialize){o=e._serialize(t,r);var a=e._class;!a||e._compactSerialize||!i&&n||o[0]===a||o.unshift(a)}else if(Array.isArray(e)){o=[];for(var s=0,l=e.length;s<l;s++)o[s]=u.serialize(e[s],t,n,r)}else if(u.isPlainObject(e)){o={};var c=Object.keys(e);for(s=0,l=c.length;s<l;s++){var d=c[s];o[d]=u.serialize(e[d],t,n,r)}}else o="number"==typeof e?t.formatter.number(e,t.precision):e;return i&&r.length>0?[["dictionary",r.definitions],o]:o},deserialize:function(e,t,n,r,o){var i=e,a=!n,s=a&&e&&e.length&&"dictionary"===e[0][0];if(n=n||{},Array.isArray(e)){var l=e[0],c="dictionary"===l;if(1==e.length&&/^#/.test(l))return n.dictionary[l];i=[];for(var d=(l=u.exports[l])?1:0,h=e.length;d<h;d++)i.push(u.deserialize(e[d],t,n,c,s));if(l){var p=i;i=t?t(l,p,a||o):new l(p)}}else if(u.isPlainObject(e))for(var f in i={},r&&(n.dictionary=i),e)i[f]=u.deserialize(e[f],t,n);return s?i[1]:i},exportJSON:function(e,t){var n=u.serialize(e,t);return t&&0==t.asString?n:JSON.stringify(n)},importJSON:function(e,t){return u.deserialize("string"==typeof e?JSON.parse(e):e,(function(e,n,r){var o=r&&t&&t.constructor===e,i=o?t:u.create(e.prototype);if(1===n.length&&i instanceof T&&(o||!(i instanceof O))){var a=n[0];u.isPlainObject(a)&&(a.insert=!1,o&&(n=n.concat([{insert:!0}])))}return(o?i.set:e).apply(i,n),o&&(t=null),i}))},push:function(e,t){var n=t.length;if(n<4096)e.push.apply(e,t);else{var r=e.length;e.length+=n;for(var o=0;o<n;o++)e[r+o]=t[o]}return e},splice:function(e,t,n,r){var o=t&&t.length,i=n===s;(n=i?e.length:n)>e.length&&(n=e.length);for(var a=0;a<o;a++)t[a]._index=n+a;if(i)return u.push(e,t),[];var l=[n,r];t&&u.push(l,t);for(var c=e.splice.apply(e,l),d=(a=0,c.length);a<d;a++)c[a]._index=s;for(a=n+o,d=e.length;a<d;a++)e[a]._index=a;return c},capitalize:function(e){return e.replace(/\b[a-z]/g,(function(e){return e.toUpperCase()}))},camelize:function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))},hyphenate:function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}});var d={on:function(e,t){if("string"!=typeof e)u.each(e,(function(e,t){this.on(t,e)}),this);else{var n=this._eventTypes,r=n&&n[e],o=this._callbacks=this._callbacks||{};-1===(o=o[e]=o[e]||[]).indexOf(t)&&(o.push(t),r&&r.install&&1===o.length&&r.install.call(this,e))}return this},off:function(e,t){if("string"==typeof e){var n,r=this._eventTypes,o=r&&r[e],i=this._callbacks&&this._callbacks[e];return i&&(!t||-1!==(n=i.indexOf(t))&&1===i.length?(o&&o.uninstall&&o.uninstall.call(this,e),delete this._callbacks[e]):-1!==n&&i.splice(n,1)),this}u.each(e,(function(e,t){this.off(t,e)}),this)},once:function(e,t){return this.on(e,(function n(){t.apply(this,arguments),this.off(e,n)}))},emit:function(e,t){var n=this._callbacks&&this._callbacks[e];if(!n)return!1;var r=u.slice(arguments,1),o=t&&t.target&&!t.currentTarget;n=n.slice(),o&&(t.currentTarget=this);for(var i=0,a=n.length;i<a;i++)if(0==n[i].apply(this,r)){t&&t.stop&&t.stop();break}return o&&delete t.currentTarget,!0},responds:function(e){return!(!this._callbacks||!this._callbacks[e])},attach:"#on",detach:"#off",fire:"#emit",_installEvents:function(e){var t=this._eventTypes,n=this._callbacks,r=e?"install":"uninstall";if(t)for(var o in n)if(n[o].length>0){var i=t[o],a=i&&i[r];a&&a.call(this,o)}},statics:{inject:function e(t){var n=t._events;if(n){var r={};u.each(n,(function(e,n){var o="string"==typeof e,i=o?e:n,a=u.capitalize(i),s=i.substring(2).toLowerCase();r[s]=o?{}:e,i="_"+i,t["get"+a]=function(){return this[i]},t["set"+a]=function(e){var t=this[i];t&&this.off(s,t),e&&this.on(s,e),this[i]=e}})),t._eventTypes=r}return e.base.apply(this,arguments)}}},h=u.extend({_class:"PaperScope",initialize:function e(){he=this,this.settings=new u({applyMatrix:!0,insertItems:!0,handleSize:4,hitTolerance:0}),this.project=null,this.projects=[],this.tools=[],this._id=e._id++,e._scopes[this._id]=this;var t=e.prototype;if(!this.support){var n=le.getContext(1,1)||{};t.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:ce.nativeModes},le.release(n)}if(!this.agent){var r=a.navigator.userAgent.toLowerCase(),o=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(r)||[])[0],i="darwin"===o?"mac":o,s=t.agent=t.browser={platform:i};i&&(s[i]=!0),r.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,(function(e,t,n,r,o){if(!s.chrome){var i="opera"===t?r:/^(node|trident)$/.test(t)?o:n;s.version=i,s.versionNumber=parseFloat(i),t={trident:"msie",jsdom:"node"}[t]||t,s.name=t,s[t]=!0}})),s.chrome&&delete s.webkit,s.atom&&delete s.chrome}},version:"0.12.15",getView:function(){var e=this.project;return e&&e._view},getPaper:function(){return this},execute:function(e,t){var n=he.PaperScript.execute(e,this,t);return Z.updateFocus(),n},install:function(e){var t=this;for(var n in u.each(["project","view","tool"],(function(n){u.define(e,n,{configurable:!0,get:function(){return t[n]}})})),this)!/^_/.test(n)&&this[n]&&(e[n]=this[n])},setup:function(e){return he=this,this.project=new P(e),this},createCanvas:function(e,t){return le.getCanvas(e,t)},activate:function(){he=this},clear:function(){for(var e=this.projects,t=this.tools,n=e.length-1;n>=0;n--)e[n].remove();for(n=t.length-1;n>=0;n--)t[n].remove()},remove:function(){this.clear(),delete h._scopes[this._id]},statics:new function(){function e(e){return e+="Attribute",function(t,n){return t[e](n)||t[e]("data-paper-"+n)}}return{_scopes:{},_id:0,get:function(e){return this._scopes[e]||null},getAttribute:e("get"),hasAttribute:e("has")}}}),p=u.extend(d,{initialize:function(e){this._scope=he,this._index=this._scope[this._list].push(this)-1,!e&&this._scope[this._reference]||this.activate()},activate:function(){if(!this._scope)return!1;var e=this._scope[this._reference];return e&&e!==this&&e.emit("deactivate"),this._scope[this._reference]=this,this.emit("activate",e),!0},isActive:function(){return this._scope[this._reference]===this},remove:function(){return null!=this._index&&(u.splice(this._scope[this._list],null,this._index,1),this._scope[this._reference]==this&&(this._scope[this._reference]=null),this._scope=null,!0)},getView:function(){return this._scope.getView()}}),f={findItemBoundsCollisions:function(e,t,n){function r(e){for(var t=new Array(e.length),n=0;n<e.length;n++){var r=e[n].getBounds();t[n]=[r.left,r.top,r.right,r.bottom]}return t}var o=r(e),i=t&&t!==e?r(t):o;return this.findBoundsCollisions(o,i,n||0)},findCurveBoundsCollisions:function(e,t,n,r){function o(e){for(var t=Math.min,n=Math.max,r=new Array(e.length),o=0;o<e.length;o++){var i=e[o];r[o]=[t(i[0],i[2],i[4],i[6]),t(i[1],i[3],i[5],i[7]),n(i[0],i[2],i[4],i[6]),n(i[1],i[3],i[5],i[7])]}return r}var i=o(e),a=t&&t!==e?o(t):i;if(r){for(var s=this.findBoundsCollisions(i,a,n||0,!1,!0),l=this.findBoundsCollisions(i,a,n||0,!0,!0),c=[],u=0,d=s.length;u<d;u++)c[u]={hor:s[u],ver:l[u]};return c}return this.findBoundsCollisions(i,a,n||0)},findBoundsCollisions:function(e,t,n,r,o){var i=!t||e===t,a=i?e:e.concat(t),s=e.length,l=a.length;function c(e,t,n){for(var r=0,o=e.length;r<o;){var i=o+r>>>1;a[e[i]][t]<n?r=i+1:o=i}return r-1}for(var u=r?1:0,d=u+2,h=r?0:1,p=h+2,f=new Array(l),m=0;m<l;m++)f[m]=m;f.sort((function(e,t){return a[e][u]-a[t][u]}));var g=[],v=new Array(s);for(m=0;m<l;m++){var y=f[m],b=a[y],w=i?y:y-s,C=y<s,_=i||!C,x=C?[]:null;if(g.length){var S=c(g,d,b[u]-n)+1;if(g.splice(0,S),i&&o){x=x.concat(g);for(var k=0;k<g.length;k++){v[E=g[k]].push(w)}}else{var P=b[p],T=b[h];for(k=0;k<g.length;k++){var E=g[k],O=a[E],M=E<s,A=i||E>=s;(o||(C&&A||_&&M)&&P>=O[h]-n&&T<=O[p]+n)&&(C&&A&&x.push(i?E:E-s),_&&M&&v[E].push(w))}}}if(C&&(e===t&&x.push(y),v[y]=x),g.length){var D=c(g,d,b[d]);g.splice(D+1,0,y)}else g.push(y)}for(m=0;m<v.length;m++){var I=v[m];I&&I.sort((function(e,t){return e-t}))}return v}},m=u.extend({initialize:function(e){this.precision=u.pick(e,5),this.multiplier=Math.pow(10,this.precision)},number:function(e){return this.precision<16?Math.round(e*this.multiplier)/this.multiplier:e},pair:function(e,t,n){return this.number(e)+(n||",")+this.number(t)},point:function(e,t){return this.number(e.x)+(t||",")+this.number(e.y)},size:function(e,t){return this.number(e.width)+(t||",")+this.number(e.height)},rectangle:function(e,t){return this.point(e,t)+(t||",")+this.size(e,t)}});m.instance=new m;var g=new function(){var e=[[.5773502691896257],[0,.7745966692414834],[.33998104358485626,.8611363115940526],[0,.5384693101056831,.906179845938664],[.2386191860831969,.6612093864662645,.932469514203152],[0,.4058451513773972,.7415311855993945,.9491079123427585],[.1834346424956498,.525532409916329,.7966664774136267,.9602898564975363],[0,.3242534234038089,.6133714327005904,.8360311073266358,.9681602395076261],[.14887433898163122,.4333953941292472,.6794095682990244,.8650633666889845,.9739065285171717],[0,.26954315595234496,.5190961292068118,.7301520055740494,.8870625997680953,.978228658146057],[.1252334085114689,.3678314989981802,.5873179542866175,.7699026741943047,.9041172563704749,.9815606342467192],[0,.2304583159551348,.44849275103644687,.6423493394403402,.8015780907333099,.9175983992229779,.9841830547185881],[.10805494870734367,.31911236892788974,.5152486363581541,.6872929048116855,.827201315069765,.9284348836635735,.9862838086968123],[0,.20119409399743451,.3941513470775634,.5709721726085388,.7244177313601701,.8482065834104272,.937273392400706,.9879925180204854],[.09501250983763744,.2816035507792589,.45801677765722737,.6178762444026438,.755404408355003,.8656312023878318,.9445750230732326,.9894009349916499]],t=[[1],[.8888888888888888,.5555555555555556],[.6521451548625461,.34785484513745385],[.5688888888888889,.47862867049936647,.23692688505618908],[.46791393457269104,.3607615730481386,.17132449237917036],[.4179591836734694,.3818300505051189,.27970539148927664,.1294849661688697],[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626],[.3302393550012598,.31234707704000286,.26061069640293544,.1806481606948574,.08127438836157441],[.29552422471475287,.26926671930999635,.21908636251598204,.1494513491505806,.06667134430868814],[.2729250867779006,.26280454451024665,.23319376459199048,.18629021092773426,.1255803694649046,.05566856711617366],[.24914704581340277,.2334925365383548,.20316742672306592,.16007832854334622,.10693932599531843,.04717533638651183],[.2325515532308739,.22628318026289723,.2078160475368885,.17814598076194574,.13887351021978725,.09212149983772845,.04048400476531588],[.2152638534631578,.2051984637212956,.18553839747793782,.15720316715819355,.12151857068790319,.08015808715976021,.03511946033175186],[.2025782419255613,.19843148532711158,.1861610000155622,.16626920581699392,.13957067792615432,.10715922046717194,.07036604748810812,.03075324199611727],[.1894506104550685,.18260341504492358,.16915651939500254,.14959598881657674,.12462897125553388,.09515851168249279,.062253523938647894,.027152459411754096]],n=Math.abs,r=Math.sqrt,o=Math.pow,i=Math.log2||function(e){return Math.log(e)*Math.LOG2E};function a(e,t,n){return e<t?t:e>n?n:e}function s(e,t,r){function o(e){var t=134217729*e,n=e-t+t;return[n,e-n]}var i=t*t-e*r,a=t*t+e*r;if(3*n(i)<a){var s=o(e),l=o(t),c=o(r),u=t*t,d=e*r;i=u-d+(l[0]*l[0]-u+2*l[0]*l[1]+l[1]*l[1]-(s[0]*c[0]-d+s[0]*c[1]+s[1]*c[0]+s[1]*c[1]))}return i}function l(){var e=Math.max.apply(Math,arguments);return e&&(e<1e-8||e>1e8)?o(2,-Math.round(i(e))):0}return{EPSILON:1e-12,MACHINE_EPSILON:112e-18,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,KAPPA:4*(r(2)-1)/3,isZero:function(e){return e>=-1e-12&&e<=1e-12},isMachineZero:function(e){return e>=-112e-18&&e<=112e-18},clamp:a,integrate:function(n,r,o,i){for(var a=e[i-2],s=t[i-2],l=.5*(o-r),c=l+r,u=0,d=i+1>>1,h=1&i?s[u++]*n(c):0;u<d;){var p=l*a[u];h+=s[u++]*(n(c+p)+n(c-p))}return l*h},findRoot:function(e,t,r,o,i,s,l){for(var c=0;c<s;c++){var u=e(r),d=u/t(r),h=r-d;if(n(d)<l){r=h;break}u>0?(i=r,r=h<=o?.5*(o+i):h):(o=r,r=h>=i?.5*(o+i):h)}return a(r,o,i)},solveQuadratic:function(e,t,o,i,c,u){var d,h=1/0;if(n(e)<1e-12){if(n(t)<1e-12)return n(o)<1e-12?-1:0;d=-o/t}else{var p=s(e,t*=-.5,o);if(p&&n(p)<112e-18){var f=l(n(e),n(t),n(o));f&&(p=s(e*=f,t*=f,o*=f))}if(p>=-112e-18){var m=p<0?0:r(p),g=t+(t<0?-m:m);0===g?h=-(d=o/e):(d=g/e,h=o/g)}}var v=0,y=null==c,b=c-1e-12,w=u+1e-12;return isFinite(d)&&(y||d>b&&d<w)&&(i[v++]=y?d:a(d,c,u)),h!==d&&isFinite(h)&&(y||h>b&&h<w)&&(i[v++]=y?h:a(h,c,u)),v},solveCubic:function(e,t,i,s,c,u,d){var h,p,f,m,v,y=l(n(e),n(t),n(i),n(s));function b(n){var r=e*(h=n);m=(r+(p=r+t))*h+(f=p*h+i),v=f*h+s}if(y&&(e*=y,t*=y,i*=y,s*=y),n(e)<1e-12)e=t,p=i,f=s,h=1/0;else if(n(s)<1e-12)p=t,f=i,h=0;else{b(-t/e/3);var w=v/e,C=o(n(w),1/3),_=w<0?-1:1,x=-m/e,S=x>0?1.324717957244746*Math.max(C,r(x)):C,k=h-_*S;if(k!==h){do{b(k),k=0===m?h:h-v/m/(1+112e-18)}while(_*k>_*h);n(e)*h*h>n(s/h)&&(p=((f=-s/h)-i)/h)}}var P=g.solveQuadratic(e,p,f,c,u,d),T=null==u;return isFinite(h)&&(0===P||P>0&&h!==c[0]&&h!==c[1])&&(T||h>u-1e-12&&h<d+1e-12)&&(c[P++]=T?h:a(h,u,d)),P}}},v={_id:1,_pools:{},get:function(e){if(e){var t=this._pools[e];return t||(t=this._pools[e]={_id:1}),t._id++}return this._id++}},y=u.extend({_class:"Point",_readIndex:!0,initialize:function(e,t){var n=typeof e,r=this.__read,o=0;if("number"===n){var i="number"==typeof t;this._set(e,i?t:e),r&&(o=i?2:1)}else if("undefined"===n||null===e)this._set(0,0),r&&(o=null===e?1:0);else{var a="string"===n?e.split(/[\s,]+/)||[]:e;o=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"x"in a?this._set(a.x||0,a.y||0):"width"in a?this._set(a.width||0,a.height||0):"angle"in a?(this._set(a.length||0,0),this.setAngle(a.angle||0)):(this._set(0,0),o=0)}return r&&(this.__read=o),this},set:"#initialize",_set:function(e,t){return this.x=e,this.y=t,this},equals:function(e){return this===e||e&&(this.x===e.x&&this.y===e.y||Array.isArray(e)&&this.x===e[0]&&this.y===e[1])||!1},clone:function(){return new y(this.x,this.y)},toString:function(){var e=m.instance;return"{ x: "+e.number(this.x)+", y: "+e.number(this.y)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.x),t.number(this.y)]},getLength:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},setLength:function(e){if(this.isZero()){var t=this._angle||0;this._set(Math.cos(t)*e,Math.sin(t)*e)}else{var n=e/this.getLength();g.isZero(n)&&this.getAngle(),this._set(this.x*n,this.y*n)}},getAngle:function(){return 180*this.getAngleInRadians.apply(this,arguments)/Math.PI},setAngle:function(e){this.setAngleInRadians.call(this,e*Math.PI/180)},getAngleInDegrees:"#getAngle",setAngleInDegrees:"#setAngle",getAngleInRadians:function(){if(arguments.length){var e=y.read(arguments),t=this.getLength()*e.getLength();if(g.isZero(t))return NaN;var n=this.dot(e)/t;return Math.acos(n<-1?-1:n>1?1:n)}return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x)},setAngleInRadians:function(e){if(this._angle=e,!this.isZero()){var t=this.getLength();this._set(Math.cos(e)*t,Math.sin(e)*t)}},getQuadrant:function(){return this.x>=0?this.y>=0?1:4:this.y>=0?2:3}},{beans:!1,getDirectedAngle:function(){var e=y.read(arguments);return 180*Math.atan2(this.cross(e),this.dot(e))/Math.PI},getDistance:function(){var e=arguments,t=y.read(e),n=t.x-this.x,r=t.y-this.y,o=n*n+r*r,i=u.read(e);return i?o:Math.sqrt(o)},normalize:function(e){e===s&&(e=1);var t=this.getLength(),n=0!==t?e/t:0,r=new y(this.x*n,this.y*n);return n>=0&&(r._angle=this._angle),r},rotate:function(e,t){if(0===e)return this.clone();e=e*Math.PI/180;var n=t?this.subtract(t):this,r=Math.sin(e),o=Math.cos(e);return n=new y(n.x*o-n.y*r,n.x*r+n.y*o),t?n.add(t):n},transform:function(e){return e?e._transformPoint(this):this},add:function(){var e=y.read(arguments);return new y(this.x+e.x,this.y+e.y)},subtract:function(){var e=y.read(arguments);return new y(this.x-e.x,this.y-e.y)},multiply:function(){var e=y.read(arguments);return new y(this.x*e.x,this.y*e.y)},divide:function(){var e=y.read(arguments);return new y(this.x/e.x,this.y/e.y)},modulo:function(){var e=y.read(arguments);return new y(this.x%e.x,this.y%e.y)},negate:function(){return new y(-this.x,-this.y)},isInside:function(){return _.read(arguments).contains(this)},isClose:function(){var e=arguments,t=y.read(e),n=u.read(e);return this.getDistance(t)<=n},isCollinear:function(){var e=y.read(arguments);return y.isCollinear(this.x,this.y,e.x,e.y)},isColinear:"#isCollinear",isOrthogonal:function(){var e=y.read(arguments);return y.isOrthogonal(this.x,this.y,e.x,e.y)},isZero:function(){var e=g.isZero;return e(this.x)&&e(this.y)},isNaN:function(){return isNaN(this.x)||isNaN(this.y)},isInQuadrant:function(e){return this.x*(e>1&&e<4?-1:1)>=0&&this.y*(e>2?-1:1)>=0},dot:function(){var e=y.read(arguments);return this.x*e.x+this.y*e.y},cross:function(){var e=y.read(arguments);return this.x*e.y-this.y*e.x},project:function(){var e=y.read(arguments),t=e.isZero()?0:this.dot(e)/e.dot(e);return new y(e.x*t,e.y*t)},statics:{min:function(){var e=arguments,t=y.read(e),n=y.read(e);return new y(Math.min(t.x,n.x),Math.min(t.y,n.y))},max:function(){var e=arguments,t=y.read(e),n=y.read(e);return new y(Math.max(t.x,n.x),Math.max(t.y,n.y))},random:function(){return new y(Math.random(),Math.random())},isCollinear:function(e,t,n,r){return Math.abs(e*r-t*n)<=1e-8*Math.sqrt((e*e+t*t)*(n*n+r*r))},isOrthogonal:function(e,t,n,r){return Math.abs(e*n+t*r)<=1e-8*Math.sqrt((e*e+t*t)*(n*n+r*r))}}},u.each(["round","ceil","floor","abs"],(function(e){var t=Math[e];this[e]=function(){return new y(t(this.x),t(this.y))}}),{})),b=y.extend({initialize:function(e,t,n,r){this._x=e,this._y=t,this._owner=n,this._setter=r},_set:function(e,t,n){return this._x=e,this._y=t,n||this._owner[this._setter](this),this},getX:function(){return this._x},setX:function(e){this._x=e,this._owner[this._setter](this)},getY:function(){return this._y},setY:function(e){this._y=e,this._owner[this._setter](this)},isSelected:function(){return!!(this._owner._selection&this._getSelection())},setSelected:function(e){this._owner._changeSelection(this._getSelection(),e)},_getSelection:function(){return"setPosition"===this._setter?4:0}}),w=u.extend({_class:"Size",_readIndex:!0,initialize:function(e,t){var n=typeof e,r=this.__read,o=0;if("number"===n){var i="number"==typeof t;this._set(e,i?t:e),r&&(o=i?2:1)}else if("undefined"===n||null===e)this._set(0,0),r&&(o=null===e?1:0);else{var a="string"===n?e.split(/[\s,]+/)||[]:e;o=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"width"in a?this._set(a.width||0,a.height||0):"x"in a?this._set(a.x||0,a.y||0):(this._set(0,0),o=0)}return r&&(this.__read=o),this},set:"#initialize",_set:function(e,t){return this.width=e,this.height=t,this},equals:function(e){return e===this||e&&(this.width===e.width&&this.height===e.height||Array.isArray(e)&&this.width===e[0]&&this.height===e[1])||!1},clone:function(){return new w(this.width,this.height)},toString:function(){var e=m.instance;return"{ width: "+e.number(this.width)+", height: "+e.number(this.height)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.width),t.number(this.height)]},add:function(){var e=w.read(arguments);return new w(this.width+e.width,this.height+e.height)},subtract:function(){var e=w.read(arguments);return new w(this.width-e.width,this.height-e.height)},multiply:function(){var e=w.read(arguments);return new w(this.width*e.width,this.height*e.height)},divide:function(){var e=w.read(arguments);return new w(this.width/e.width,this.height/e.height)},modulo:function(){var e=w.read(arguments);return new w(this.width%e.width,this.height%e.height)},negate:function(){return new w(-this.width,-this.height)},isZero:function(){var e=g.isZero;return e(this.width)&&e(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(e,t){return new w(Math.min(e.width,t.width),Math.min(e.height,t.height))},max:function(e,t){return new w(Math.max(e.width,t.width),Math.max(e.height,t.height))},random:function(){return new w(Math.random(),Math.random())}}},u.each(["round","ceil","floor","abs"],(function(e){var t=Math[e];this[e]=function(){return new w(t(this.width),t(this.height))}}),{})),C=w.extend({initialize:function(e,t,n,r){this._width=e,this._height=t,this._owner=n,this._setter=r},_set:function(e,t,n){return this._width=e,this._height=t,n||this._owner[this._setter](this),this},getWidth:function(){return this._width},setWidth:function(e){this._width=e,this._owner[this._setter](this)},getHeight:function(){return this._height},setHeight:function(e){this._height=e,this._owner[this._setter](this)}}),_=u.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(e,t,n,r){var o,i=arguments,a=typeof e;if("number"===a?(this._set(e,t,n,r),o=4):"undefined"===a||null===e?(this._set(0,0,0,0),o=null===e?1:0):1===i.length&&(Array.isArray(e)?(this._set.apply(this,e),o=1):e.x!==s||e.width!==s?(this._set(e.x||0,e.y||0,e.width||0,e.height||0),o=1):e.from===s&&e.to===s&&(this._set(0,0,0,0),u.readSupported(i,this)&&(o=1))),o===s){var l,c,d=y.readNamed(i,"from"),h=u.peek(i),p=d.x,f=d.y;if(h&&h.x!==s||u.hasNamed(i,"to")){var m=y.readNamed(i,"to");l=m.x-p,c=m.y-f,l<0&&(p=m.x,l=-l),c<0&&(f=m.y,c=-c)}else{var g=w.read(i);l=g.width,c=g.height}this._set(p,f,l,c),o=i.__index}var v=i.__filtered;return v&&(this.__filtered=v),this.__read&&(this.__read=o),this},set:"#initialize",_set:function(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this},clone:function(){return new _(this.x,this.y,this.width,this.height)},equals:function(e){var t=u.isPlainValue(e)?_.read(arguments):e;return t===this||t&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height||!1},toString:function(){var e=m.instance;return"{ x: "+e.number(this.x)+", y: "+e.number(this.y)+", width: "+e.number(this.width)+", height: "+e.number(this.height)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.x),t.number(this.y),t.number(this.width),t.number(this.height)]},getPoint:function(e){return new(e?y:b)(this.x,this.y,this,"setPoint")},setPoint:function(){var e=y.read(arguments);this.x=e.x,this.y=e.y},getSize:function(e){return new(e?w:C)(this.width,this.height,this,"setSize")},_fw:1,_fh:1,setSize:function(){var e=w.read(arguments),t=this._sx,n=this._sy,r=e.width,o=e.height;t&&(this.x+=(this.width-r)*t),n&&(this.y+=(this.height-o)*n),this.width=r,this.height=o,this._fw=this._fh=1},getLeft:function(){return this.x},setLeft:function(e){if(!this._fw){var t=e-this.x;this.width-=.5===this._sx?2*t:t}this.x=e,this._sx=this._fw=0},getTop:function(){return this.y},setTop:function(e){if(!this._fh){var t=e-this.y;this.height-=.5===this._sy?2*t:t}this.y=e,this._sy=this._fh=0},getRight:function(){return this.x+this.width},setRight:function(e){if(!this._fw){var t=e-this.x;this.width=.5===this._sx?2*t:t}this.x=e-this.width,this._sx=1,this._fw=0},getBottom:function(){return this.y+this.height},setBottom:function(e){if(!this._fh){var t=e-this.y;this.height=.5===this._sy?2*t:t}this.y=e-this.height,this._sy=1,this._fh=0},getCenterX:function(){return this.x+this.width/2},setCenterX:function(e){this._fw||.5===this._sx?this.x=e-this.width/2:(this._sx&&(this.x+=2*(e-this.x)*this._sx),this.width=2*(e-this.x)),this._sx=.5,this._fw=0},getCenterY:function(){return this.y+this.height/2},setCenterY:function(e){this._fh||.5===this._sy?this.y=e-this.height/2:(this._sy&&(this.y+=2*(e-this.y)*this._sy),this.height=2*(e-this.y)),this._sy=.5,this._fh=0},getCenter:function(e){return new(e?y:b)(this.getCenterX(),this.getCenterY(),this,"setCenter")},setCenter:function(){var e=y.read(arguments);return this.setCenterX(e.x),this.setCenterY(e.y),this},getArea:function(){return this.width*this.height},isEmpty:function(){return 0===this.width||0===this.height},contains:function(e){return e&&e.width!==s||4===(Array.isArray(e)?e:arguments).length?this._containsRectangle(_.read(arguments)):this._containsPoint(y.read(arguments))},_containsPoint:function(e){var t=e.x,n=e.y;return t>=this.x&&n>=this.y&&t<=this.x+this.width&&n<=this.y+this.height},_containsRectangle:function(e){var t=e.x,n=e.y;return t>=this.x&&n>=this.y&&t+e.width<=this.x+this.width&&n+e.height<=this.y+this.height},intersects:function(){var e=_.read(arguments),t=u.read(arguments)||0;return e.x+e.width>this.x-t&&e.y+e.height>this.y-t&&e.x<this.x+this.width+t&&e.y<this.y+this.height+t},intersect:function(){var e=_.read(arguments),t=Math.max(this.x,e.x),n=Math.max(this.y,e.y),r=Math.min(this.x+this.width,e.x+e.width),o=Math.min(this.y+this.height,e.y+e.height);return new _(t,n,r-t,o-n)},unite:function(){var e=_.read(arguments),t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x+e.width),o=Math.max(this.y+this.height,e.y+e.height);return new _(t,n,r-t,o-n)},include:function(){var e=y.read(arguments),t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x),o=Math.max(this.y+this.height,e.y);return new _(t,n,r-t,o-n)},expand:function(){var e=w.read(arguments),t=e.width,n=e.height;return new _(this.x-t/2,this.y-n/2,this.width+t,this.height+n)},scale:function(e,t){return this.expand(this.width*e-this.width,this.height*(t===s?e:t)-this.height)}},u.each([["Top","Left"],["Top","Right"],["Bottom","Left"],["Bottom","Right"],["Left","Center"],["Top","Center"],["Right","Center"],["Bottom","Center"]],(function(e,t){var n=e.join(""),r=/^[RL]/.test(n);t>=4&&(e[1]+=r?"Y":"X");var o=e[r?0:1],i=e[r?1:0],a="get"+o,s="get"+i,l="set"+o,c="set"+i,u="set"+n;this["get"+n]=function(e){return new(e?y:b)(this[a](),this[s](),this,u)},this[u]=function(){var e=y.read(arguments);this[l](e.x),this[c](e.y)}}),{beans:!0})),x=_.extend({initialize:function(e,t,n,r,o,i){this._set(e,t,n,r,!0),this._owner=o,this._setter=i},_set:function(e,t,n,r,o){return this._x=e,this._y=t,this._width=n,this._height=r,o||this._owner[this._setter](this),this}},new function(){var e=_.prototype;return u.each(["x","y","width","height"],(function(e){var t=u.capitalize(e),n="_"+e;this["get"+t]=function(){return this[n]},this["set"+t]=function(e){this[n]=e,this._dontNotify||this._owner[this._setter](this)}}),u.each(["Point","Size","Center","Left","Top","Right","Bottom","CenterX","CenterY","TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],(function(t){var n="set"+t;this[n]=function(){this._dontNotify=!0,e[n].apply(this,arguments),this._dontNotify=!1,this._owner[this._setter](this)}}),{isSelected:function(){return!!(2&this._owner._selection)},setSelected:function(e){var t=this._owner;t._changeSelection&&t._changeSelection(2,e)}}))}),S=u.extend({_class:"Matrix",initialize:function e(t,n){var r=arguments,o=r.length,i=!0;if(o>=6?this._set.apply(this,r):1===o||2===o?t instanceof e?this._set(t._a,t._b,t._c,t._d,t._tx,t._ty,n):Array.isArray(t)?this._set.apply(this,n?t.concat([n]):t):i=!1:o?i=!1:this.reset(),!i)throw new Error("Unsupported matrix parameters");return this},set:"#initialize",_set:function(e,t,n,r,o,i,a){return this._a=e,this._b=t,this._c=n,this._d=r,this._tx=o,this._ty=i,a||this._changed(),this},_serialize:function(e,t){return u.serialize(this.getValues(),e,!0,t)},_changed:function(){var e=this._owner;e&&(e._applyMatrix?e.transform(null,!0):e._changed(25))},clone:function(){return new S(this._a,this._b,this._c,this._d,this._tx,this._ty)},equals:function(e){return e===this||e&&this._a===e._a&&this._b===e._b&&this._c===e._c&&this._d===e._d&&this._tx===e._tx&&this._ty===e._ty},toString:function(){var e=m.instance;return"[["+[e.number(this._a),e.number(this._c),e.number(this._tx)].join(", ")+"], ["+[e.number(this._b),e.number(this._d),e.number(this._ty)].join(", ")+"]]"},reset:function(e){return this._a=this._d=1,this._b=this._c=this._tx=this._ty=0,e||this._changed(),this},apply:function(e,t){var n=this._owner;return!!n&&(n.transform(null,u.pick(e,!0),t),this.isIdentity())},translate:function(){var e=y.read(arguments),t=e.x,n=e.y;return this._tx+=t*this._a+n*this._c,this._ty+=t*this._b+n*this._d,this._changed(),this},scale:function(){var e=arguments,t=y.read(e),n=y.read(e,0,{readNull:!0});return n&&this.translate(n),this._a*=t.x,this._b*=t.x,this._c*=t.y,this._d*=t.y,n&&this.translate(n.negate()),this._changed(),this},rotate:function(e){e*=Math.PI/180;var t=y.read(arguments,1),n=t.x,r=t.y,o=Math.cos(e),i=Math.sin(e),a=n-n*o+r*i,s=r-n*i-r*o,l=this._a,c=this._b,u=this._c,d=this._d;return this._a=o*l+i*u,this._b=o*c+i*d,this._c=-i*l+o*u,this._d=-i*c+o*d,this._tx+=a*l+s*u,this._ty+=a*c+s*d,this._changed(),this},shear:function(){var e=arguments,t=y.read(e),n=y.read(e,0,{readNull:!0});n&&this.translate(n);var r=this._a,o=this._b;return this._a+=t.y*this._c,this._b+=t.y*this._d,this._c+=t.x*r,this._d+=t.x*o,n&&this.translate(n.negate()),this._changed(),this},skew:function(){var e=arguments,t=y.read(e),n=y.read(e,0,{readNull:!0}),r=Math.PI/180,o=new y(Math.tan(t.x*r),Math.tan(t.y*r));return this.shear(o,n)},append:function(e,t){if(e){var n=this._a,r=this._b,o=this._c,i=this._d,a=e._a,s=e._c,l=e._b,c=e._d,u=e._tx,d=e._ty;this._a=a*n+l*o,this._c=s*n+c*o,this._b=a*r+l*i,this._d=s*r+c*i,this._tx+=u*n+d*o,this._ty+=u*r+d*i,t||this._changed()}return this},prepend:function(e,t){if(e){var n=this._a,r=this._b,o=this._c,i=this._d,a=this._tx,s=this._ty,l=e._a,c=e._c,u=e._b,d=e._d,h=e._tx,p=e._ty;this._a=l*n+c*r,this._c=l*o+c*i,this._b=u*n+d*r,this._d=u*o+d*i,this._tx=l*a+c*s+h,this._ty=u*a+d*s+p,t||this._changed()}return this},appended:function(e){return this.clone().append(e)},prepended:function(e){return this.clone().prepend(e)},invert:function(){var e=this._a,t=this._b,n=this._c,r=this._d,o=this._tx,i=this._ty,a=e*r-t*n,s=null;return a&&!isNaN(a)&&isFinite(o)&&isFinite(i)&&(this._a=r/a,this._b=-t/a,this._c=-n/a,this._d=e/a,this._tx=(n*i-r*o)/a,this._ty=(t*o-e*i)/a,s=this),s},inverted:function(){return this.clone().invert()},concatenate:"#append",preConcatenate:"#prepend",chain:"#appended",_shiftless:function(){return new S(this._a,this._b,this._c,this._d,0,0)},_orNullIfIdentity:function(){return this.isIdentity()?null:this},isIdentity:function(){return 1===this._a&&0===this._b&&0===this._c&&1===this._d&&0===this._tx&&0===this._ty},isInvertible:function(){var e=this._a*this._d-this._c*this._b;return e&&!isNaN(e)&&isFinite(this._tx)&&isFinite(this._ty)},isSingular:function(){return!this.isInvertible()},transform:function(e,t,n){return arguments.length<3?this._transformPoint(y.read(arguments)):this._transformCoordinates(e,t,n)},_transformPoint:function(e,t,n){var r=e.x,o=e.y;return t||(t=new y),t._set(r*this._a+o*this._c+this._tx,r*this._b+o*this._d+this._ty,n)},_transformCoordinates:function(e,t,n){for(var r=0,o=2*n;r<o;r+=2){var i=e[r],a=e[r+1];t[r]=i*this._a+a*this._c+this._tx,t[r+1]=i*this._b+a*this._d+this._ty}return t},_transformCorners:function(e){var t=e.x,n=e.y,r=t+e.width,o=n+e.height,i=[t,n,r,n,r,o,t,o];return this._transformCoordinates(i,i,4)},_transformBounds:function(e,t,n){for(var r=this._transformCorners(e),o=r.slice(0,2),i=o.slice(),a=2;a<8;a++){var s=r[a],l=1&a;s<o[l]?o[l]=s:s>i[l]&&(i[l]=s)}return t||(t=new _),t._set(o[0],o[1],i[0]-o[0],i[1]-o[1],n)},inverseTransform:function(){return this._inverseTransform(y.read(arguments))},_inverseTransform:function(e,t,n){var r=this._a,o=this._b,i=this._c,a=this._d,s=this._tx,l=this._ty,c=r*a-o*i,u=null;if(c&&!isNaN(c)&&isFinite(s)&&isFinite(l)){var d=e.x-this._tx,h=e.y-this._ty;t||(t=new y),u=t._set((d*a-h*i)/c,(h*r-d*o)/c,n)}return u},decompose:function(){var e,t,n,r=this._a,o=this._b,i=this._c,a=this._d,s=r*a-o*i,l=Math.sqrt,c=Math.atan2,u=180/Math.PI;if(0!==r||0!==o){var d=l(r*r+o*o);e=Math.acos(r/d)*(o>0?1:-1),t=[d,s/d],n=[c(r*i+o*a,d*d),0]}else if(0!==i||0!==a){var h=l(i*i+a*a);e=Math.asin(i/h)*(a>0?1:-1),t=[s/h,h],n=[0,c(r*i+o*a,h*h)]}else e=0,n=t=[0,0];return{translation:this.getTranslation(),rotation:e*u,scaling:new y(t),skewing:new y(n[0]*u,n[1]*u)}},getValues:function(){return[this._a,this._b,this._c,this._d,this._tx,this._ty]},getTranslation:function(){return new y(this._tx,this._ty)},getScaling:function(){return this.decompose().scaling},getRotation:function(){return this.decompose().rotation},applyToContext:function(e){this.isIdentity()||e.transform(this._a,this._b,this._c,this._d,this._tx,this._ty)}},u.each(["a","b","c","d","tx","ty"],(function(e){var t=u.capitalize(e),n="_"+e;this["get"+t]=function(){return this[n]},this["set"+t]=function(e){this[n]=e,this._changed()}}),{})),k=u.extend({_class:"Line",initialize:function(e,t,n,r,o){var i=!1;arguments.length>=4?(this._px=e,this._py=t,this._vx=n,this._vy=r,i=o):(this._px=e.x,this._py=e.y,this._vx=t.x,this._vy=t.y,i=n),i||(this._vx-=this._px,this._vy-=this._py)},getPoint:function(){return new y(this._px,this._py)},getVector:function(){return new y(this._vx,this._vy)},getLength:function(){return this.getVector().getLength()},intersect:function(e,t){return k.intersect(this._px,this._py,this._vx,this._vy,e._px,e._py,e._vx,e._vy,!0,t)},getSide:function(e,t){return k.getSide(this._px,this._py,this._vx,this._vy,e.x,e.y,!0,t)},getDistance:function(e){return Math.abs(this.getSignedDistance(e))},getSignedDistance:function(e){return k.getSignedDistance(this._px,this._py,this._vx,this._vy,e.x,e.y,!0)},isCollinear:function(e){return y.isCollinear(this._vx,this._vy,e._vx,e._vy)},isOrthogonal:function(e){return y.isOrthogonal(this._vx,this._vy,e._vx,e._vy)},statics:{intersect:function(e,t,n,r,o,i,a,s,l,c){l||(n-=e,r-=t,a-=o,s-=i);var u=n*s-r*a;if(!g.isMachineZero(u)){var d=e-o,h=t-i,p=(a*h-s*d)/u,f=(n*h-r*d)/u;if(c||-1e-12<p&&p<1+1e-12&&-1e-12<f&&f<1+1e-12)return c||(p=p<=0?0:p>=1?1:p),new y(e+p*n,t+p*r)}},getSide:function(e,t,n,r,o,i,a,s){a||(n-=e,r-=t);var l=o-e,c=l*r-(i-t)*n;return!s&&g.isMachineZero(c)&&(c=(l*n+l*n)/(n*n+r*r))>=0&&c<=1&&(c=0),c<0?-1:c>0?1:0},getSignedDistance:function(e,t,n,r,o,i,a){return a||(n-=e,r-=t),0===n?r>0?o-e:e-o:0===r?n<0?i-t:t-i:((o-e)*r-(i-t)*n)/(r>n?r*Math.sqrt(1+n*n/(r*r)):n*Math.sqrt(1+r*r/(n*n)))},getDistance:function(e,t,n,r,o,i,a){return Math.abs(k.getSignedDistance(e,t,n,r,o,i,a))}}}),P=p.extend({_class:"Project",_list:"projects",_reference:"project",_compactSerialize:!0,initialize:function(e){p.call(this,!0),this._children=[],this._namedChildren={},this._activeLayer=null,this._currentStyle=new $(null,null,this),this._view=Z.create(this,e||le.getCanvas(1,1)),this._selectionItems={},this._selectionCount=0,this._updateVersion=0},_serialize:function(e,t){return u.serialize(this._children,e,!0,t)},_changed:function(e,t){if(1&e){var n=this._view;n&&(n._needsUpdate=!0,!n._requested&&n._autoUpdate&&n.requestUpdate())}var r=this._changes;if(r&&t){var o=this._changesById,i=t._id,a=o[i];a?a.flags|=e:r.push(o[i]={item:t,flags:e})}},clear:function(){for(var e=this._children,t=e.length-1;t>=0;t--)e[t].remove()},isEmpty:function(){return!this._children.length},remove:function e(){return!!e.base.call(this)&&(this._view&&this._view.remove(),!0)},getView:function(){return this._view},getCurrentStyle:function(){return this._currentStyle},setCurrentStyle:function(e){this._currentStyle.set(e)},getIndex:function(){return this._index},getOptions:function(){return this._scope.settings},getLayers:function(){return this._children},getActiveLayer:function(){return this._activeLayer||new O({project:this,insert:!0})},getSymbolDefinitions:function(){var e=[],t={};return this.getItems({class:D,match:function(n){var r=n._definition,o=r._id;return t[o]||(t[o]=!0,e.push(r)),!1}}),e},getSymbols:"getSymbolDefinitions",getSelectedItems:function(){var e=this._selectionItems,t=[];for(var n in e){var r=e[n],o=r._selection;1&o&&r.isInserted()?t.push(r):o||this._updateSelection(r)}return t},_updateSelection:function(e){var t=e._id,n=this._selectionItems;e._selection?n[t]!==e&&(this._selectionCount++,n[t]=e):n[t]===e&&(this._selectionCount--,delete n[t])},selectAll:function(){for(var e=this._children,t=0,n=e.length;t<n;t++)e[t].setFullySelected(!0)},deselectAll:function(){var e=this._selectionItems;for(var t in e)e[t].setFullySelected(!1)},addLayer:function(e){return this.insertLayer(s,e)},insertLayer:function(e,t){if(t instanceof O){t._remove(!1,!0),u.splice(this._children,[t],e,0),t._setProject(this,!0);var n=t._name;n&&t.setName(n),this._changes&&t._changed(5),this._activeLayer||(this._activeLayer=t)}else t=null;return t},_insertItem:function(e,t,n){return t=this.insertLayer(e,t)||(this._activeLayer||this._insertItem(s,new O(T.NO_INSERT),!0)).insertChild(e,t),n&&t.activate&&t.activate(),t},getItems:function(e){return T._getItems(this,e)},getItem:function(e){return T._getItems(this,e,null,null,!0)[0]||null},importJSON:function(e){this.activate();var t=this._activeLayer;return u.importJSON(e,t&&t.isEmpty()&&t)},removeOn:function(e){var t=this._removeSets;if(t){"mouseup"===e&&(t.mousedrag=null);var n=t[e];if(n){for(var r in n){var o=n[r];for(var i in t){var a=t[i];a&&a!=n&&delete a[o._id]}o.remove()}t[e]=null}}},draw:function(e,t,n){this._updateVersion++,e.save(),t.applyToContext(e);for(var r=this._children,o=new u({offset:new y(0,0),pixelRatio:n,viewMatrix:t.isIdentity()?null:t,matrices:[new S],updateMatrix:!0}),i=0,a=r.length;i<a;i++)r[i].draw(e,o);if(e.restore(),this._selectionCount>0){e.save(),e.strokeWidth=1;var s=this._selectionItems,l=this._scope.settings.handleSize,c=this._updateVersion;for(var d in s)s[d]._drawSelection(e,t,l,s,c);e.restore()}}}),T=u.extend(d,{statics:{extend:function e(t){return t._serializeFields&&(t._serializeFields=u.set({},this.prototype._serializeFields,t._serializeFields)),e.base.apply(this,arguments)},NO_INSERT:{insert:!1}},_class:"Item",_name:null,_applyMatrix:!0,_canApplyMatrix:!0,_canScaleStroke:!1,_pivot:null,_visible:!0,_blendMode:"normal",_opacity:1,_locked:!1,_guide:!1,_clipMask:!1,_selection:0,_selectBounds:!0,_selectChildren:!1,_serializeFields:{name:null,applyMatrix:null,matrix:new S,pivot:null,visible:!0,blendMode:"normal",opacity:1,locked:!1,guide:!1,clipMask:!1,selected:!1,data:{}},_prioritize:["applyMatrix"]},new function(){var e=["onMouseDown","onMouseUp","onMouseDrag","onClick","onDoubleClick","onMouseMove","onMouseEnter","onMouseLeave"];return u.each(e,(function(e){this._events[e]={install:function(e){this.getView()._countItemEvent(e,1)},uninstall:function(e){this.getView()._countItemEvent(e,-1)}}}),{_events:{onFrame:{install:function(){this.getView()._animateItem(this,!0)},uninstall:function(){this.getView()._animateItem(this,!1)}},onLoad:{},onError:{}},statics:{_itemHandlers:e}})},{initialize:function(){},_initialize:function(e,t){var n=e&&u.isPlainObject(e),r=n&&!0===e.internal,o=this._matrix=new S,i=n&&e.project||he.project,a=he.settings;return this._id=r?null:v.get(),this._parent=this._index=null,this._applyMatrix=this._canApplyMatrix&&a.applyMatrix,t&&o.translate(t),o._owner=this,this._style=new $(i._currentStyle,this,i),r||n&&0==e.insert||!a.insertItems&&(!n||!0!==e.insert)?this._setProject(i):(n&&e.parent||i)._insertItem(s,this,!0),n&&e!==T.NO_INSERT&&this.set(e,{internal:!0,insert:!0,project:!0,parent:!0}),n},_serialize:function(e,t){var n={},r=this;function o(o){for(var i in o){var a=r[i];u.equals(a,"leading"===i?1.2*o.fontSize:o[i])||(n[i]=u.serialize(a,e,"data"!==i,t))}}return o(this._serializeFields),this instanceof E||o(this._style._defaults),[this._class,n]},_changed:function(e){var t=this._symbol,n=this._parent||t,r=this._project;8&e&&(this._bounds=this._position=this._decomposed=s),16&e&&(this._globalMatrix=s),n&&72&e&&T._clearBoundsCache(n),2&e&&T._clearBoundsCache(this),r&&r._changed(e,this),t&&t._changed(e)},getId:function(){return this._id},getName:function(){return this._name},setName:function(e){if(this._name&&this._removeNamed(),e===+e+"")throw new Error("Names consisting only of numbers are not supported.");var t=this._getOwner();if(e&&t){var n=t._children,r=t._namedChildren;(r[e]=r[e]||[]).push(this),e in n||(n[e]=this)}this._name=e||s,this._changed(256)},getStyle:function(){return this._style},setStyle:function(e){this.getStyle().set(e)}},u.each(["locked","visible","blendMode","opacity","guide"],(function(e){var t=u.capitalize(e),n="_"+e,r={locked:256,visible:265};this["get"+t]=function(){return this[n]},this["set"+t]=function(t){t!=this[n]&&(this[n]=t,this._changed(r[e]||257))}}),{}),{beans:!0,getSelection:function(){return this._selection},setSelection:function(e){if(e!==this._selection){this._selection=e;var t=this._project;t&&(t._updateSelection(this),this._changed(257))}},_changeSelection:function(e,t){var n=this._selection;this.setSelection(t?n|e:n&~e)},isSelected:function(){if(this._selectChildren)for(var e=this._children,t=0,n=e.length;t<n;t++)if(e[t].isSelected())return!0;return!!(1&this._selection)},setSelected:function(e){if(this._selectChildren)for(var t=this._children,n=0,r=t.length;n<r;n++)t[n].setSelected(e);this._changeSelection(1,e)},isFullySelected:function(){var e=this._children,t=!!(1&this._selection);if(e&&t){for(var n=0,r=e.length;n<r;n++)if(!e[n].isFullySelected())return!1;return!0}return t},setFullySelected:function(e){var t=this._children;if(t)for(var n=0,r=t.length;n<r;n++)t[n].setFullySelected(e);this._changeSelection(1,e)},isClipMask:function(){return this._clipMask},setClipMask:function(e){this._clipMask!=(e=!!e)&&(this._clipMask=e,e&&(this.setFillColor(null),this.setStrokeColor(null)),this._changed(257),this._parent&&this._parent._changed(2048))},getData:function(){return this._data||(this._data={}),this._data},setData:function(e){this._data=e},getPosition:function(e){var t=e?y:b,n=this._position||(this._position=this._getPositionFromBounds());return new t(n.x,n.y,this,"setPosition")},setPosition:function(){this.translate(y.read(arguments).subtract(this.getPosition(!0)))},_getPositionFromBounds:function(e){return this._pivot?this._matrix._transformPoint(this._pivot):(e||this.getBounds()).getCenter(!0)},getPivot:function(){var e=this._pivot;return e?new b(e.x,e.y,this,"setPivot"):null},setPivot:function(){this._pivot=y.read(arguments,0,{clone:!0,readNull:!0}),this._position=s}},u.each({getStrokeBounds:{stroke:!0},getHandleBounds:{handle:!0},getInternalBounds:{internal:!0}},(function(e,t){this[t]=function(t){return this.getBounds(t,e)}}),{beans:!0,getBounds:function(e,t){var n=t||e instanceof S,r=u.set({},n?t:e,this._boundsOptions);r.stroke&&!this.getStrokeScaling()||(r.cacheItem=this);var o=this._getCachedBounds(n&&e,r).rect;return arguments.length?o:new x(o.x,o.y,o.width,o.height,this,"setBounds")},setBounds:function(){var e=_.read(arguments),t=this.getBounds(),n=this._matrix,r=new S,o=e.getCenter();r.translate(o),e.width==t.width&&e.height==t.height||(n.isInvertible()||(n.set(n._backup||(new S).translate(n.getTranslation())),t=this.getBounds()),r.scale(0!==t.width?e.width/t.width:0,0!==t.height?e.height/t.height:0)),o=t.getCenter(),r.translate(-o.x,-o.y),this.transform(r)},_getBounds:function(e,t){var n=this._children;return n&&n.length?(T._updateBoundsCache(this,t.cacheItem),T._getBounds(n,e,t)):new _},_getBoundsCacheKey:function(e,t){return[e.stroke?1:0,e.handle?1:0,t?1:0].join("")},_getCachedBounds:function(e,t,n){e=e&&e._orNullIfIdentity();var r=t.internal&&!n,o=t.cacheItem,i=r?null:this._matrix._orNullIfIdentity(),a=o&&(!e||e.equals(i))&&this._getBoundsCacheKey(t,r),s=this._bounds;if(T._updateBoundsCache(this._parent||this._symbol,o),a&&s&&a in s)return{rect:(h=s[a]).rect.clone(),nonscaling:h.nonscaling};var l=this._getBounds(e||i,t),c=l.rect||l,u=this._style,d=l.nonscaling||u.hasStroke()&&!u.getStrokeScaling();if(a){s||(this._bounds=s={});var h=s[a]={rect:c.clone(),nonscaling:d,internal:r}}return{rect:c,nonscaling:d}},_getStrokeMatrix:function(e,t){var n=this.getStrokeScaling()?null:t&&t.internal?this:this._parent||this._symbol&&this._symbol._item,r=n?n.getViewMatrix().invert():e;return r&&r._shiftless()},statics:{_updateBoundsCache:function(e,t){if(e&&t){var n=t._id,r=e._boundsCache=e._boundsCache||{ids:{},list:[]};r.ids[n]||(r.list.push(t),r.ids[n]=t)}},_clearBoundsCache:function(e){var t=e._boundsCache;if(t){e._bounds=e._position=e._boundsCache=s;for(var n=0,r=t.list,o=r.length;n<o;n++){var i=r[n];i!==e&&(i._bounds=i._position=s,i._boundsCache&&T._clearBoundsCache(i))}}},_getBounds:function(e,t,n){var r=1/0,o=-r,i=r,a=o,s=!1;n=n||{};for(var l=0,c=e.length;l<c;l++){var u=e[l];if(u._visible&&!u.isEmpty(!0)){var d=u._getCachedBounds(t&&t.appended(u._matrix),n,!0),h=d.rect;r=Math.min(h.x,r),i=Math.min(h.y,i),o=Math.max(h.x+h.width,o),a=Math.max(h.y+h.height,a),d.nonscaling&&(s=!0)}}return{rect:isFinite(r)?new _(r,i,o-r,a-i):new _,nonscaling:s}}}}),{beans:!0,_decompose:function(){return this._applyMatrix?null:this._decomposed||(this._decomposed=this._matrix.decompose())},getRotation:function(){var e=this._decompose();return e?e.rotation:0},setRotation:function(e){var t=this.getRotation();if(null!=t&&null!=e){var n=this._decomposed;this.rotate(e-t),n&&(n.rotation=e,this._decomposed=n)}},getScaling:function(){var e=this._decompose(),t=e&&e.scaling;return new b(t?t.x:1,t?t.y:1,this,"setScaling")},setScaling:function(){var e=this.getScaling(),t=y.read(arguments,0,{clone:!0,readNull:!0});if(e&&t&&!e.equals(t)){var n=this.getRotation(),r=this._decomposed,o=new S,i=g.isZero;if(i(e.x)||i(e.y))o.translate(r.translation),n&&o.rotate(n),o.scale(t.x,t.y),this._matrix.set(o);else{var a=this.getPosition(!0);o.translate(a),n&&o.rotate(n),o.scale(t.x/e.x,t.y/e.y),n&&o.rotate(-n),o.translate(a.negate()),this.transform(o)}r&&(r.scaling=t,this._decomposed=r)}},getMatrix:function(){return this._matrix},setMatrix:function(){var e=this._matrix;e.set.apply(e,arguments)},getGlobalMatrix:function(e){var t=this._globalMatrix;if(t)for(var n=this._parent,r=[];n;){if(!n._globalMatrix){t=null;for(var o=0,i=r.length;o<i;o++)r[o]._globalMatrix=null;break}r.push(n),n=n._parent}t||(t=this._globalMatrix=this._matrix.clone(),(n=this._parent)&&t.prepend(n.getGlobalMatrix(!0)));return e?t:t.clone()},getViewMatrix:function(){return this.getGlobalMatrix().prepend(this.getView()._matrix)},getApplyMatrix:function(){return this._applyMatrix},setApplyMatrix:function(e){(this._applyMatrix=this._canApplyMatrix&&!!e)&&this.transform(null,!0)},getTransformContent:"#getApplyMatrix",setTransformContent:"#setApplyMatrix"},{getProject:function(){return this._project},_setProject:function(e,t){if(this._project!==e){this._project&&this._installEvents(!1),this._project=e;for(var n=this._children,r=0,o=n&&n.length;r<o;r++)n[r]._setProject(e);t=!0}t&&this._installEvents(!0)},getView:function(){return this._project._view},_installEvents:function e(t){e.base.call(this,t);for(var n=this._children,r=0,o=n&&n.length;r<o;r++)n[r]._installEvents(t)},getLayer:function(){for(var e=this;e=e._parent;)if(e instanceof O)return e;return null},getParent:function(){return this._parent},setParent:function(e){return e.addChild(this)},_getOwner:"#getParent",getChildren:function(){return this._children},setChildren:function(e){this.removeChildren(),this.addChildren(e)},getFirstChild:function(){return this._children&&this._children[0]||null},getLastChild:function(){return this._children&&this._children[this._children.length-1]||null},getNextSibling:function(){var e=this._getOwner();return e&&e._children[this._index+1]||null},getPreviousSibling:function(){var e=this._getOwner();return e&&e._children[this._index-1]||null},getIndex:function(){return this._index},equals:function(e){return e===this||e&&this._class===e._class&&this._style.equals(e._style)&&this._matrix.equals(e._matrix)&&this._locked===e._locked&&this._visible===e._visible&&this._blendMode===e._blendMode&&this._opacity===e._opacity&&this._clipMask===e._clipMask&&this._guide===e._guide&&this._equals(e)||!1},_equals:function(e){return u.equals(this._children,e._children)},clone:function(e){var t=new this.constructor(T.NO_INSERT),n=this._children,r=u.pick(e?e.insert:s,e===s||!0===e),o=u.pick(e?e.deep:s,!0);n&&t.copyAttributes(this),n&&!o||t.copyContent(this),n||t.copyAttributes(this),r&&t.insertAbove(this);var i=this._name,a=this._parent;if(i&&a){n=a._children;for(var l=i,c=1;n[i];)i=l+" "+c++;i!==l&&t.setName(i)}return t},copyContent:function(e){for(var t=e._children,n=0,r=t&&t.length;n<r;n++)this.addChild(t[n].clone(!1),!0)},copyAttributes:function(e,t){this.setStyle(e._style);for(var n=["_locked","_visible","_blendMode","_opacity","_clipMask","_guide"],r=0,o=n.length;r<o;r++){var i=n[r];e.hasOwnProperty(i)&&(this[i]=e[i])}t||this._matrix.set(e._matrix,!0),this.setApplyMatrix(e._applyMatrix),this.setPivot(e._pivot),this.setSelection(e._selection);var a=e._data,s=e._name;this._data=a?u.clone(a):null,s&&this.setName(s)},rasterize:function(e,t){var n,r,o;u.isPlainObject(e)?(n=e.resolution,r=e.insert,o=e.raster):(n=e,r=t),o?o.matrix.reset(!0):o=new A(T.NO_INSERT);var i=this.getStrokeBounds(),a=(n||this.getView().getResolution())/72,l=i.getTopLeft().floor(),c=i.getBottomRight().ceil(),d=new w(c.subtract(l)),h=d.multiply(a);if(o.setSize(h,!0),!h.isZero()){var p=o.getContext(!0),f=(new S).scale(a).translate(l.negate());p.save(),f.applyToContext(p),this.draw(p,new u({matrices:[f]})),p.restore()}return o.transform((new S).translate(l.add(d.divide(2))).scale(1/a)),(r===s||r)&&o.insertAbove(this),o},contains:function(){var e=this._matrix;return e.isInvertible()&&!!this._contains(e._inverseTransform(y.read(arguments)))},_contains:function(e){var t=this._children;if(t){for(var n=t.length-1;n>=0;n--)if(t[n].contains(e))return!0;return!1}return e.isInside(this.getInternalBounds())},isInside:function(){return _.read(arguments).contains(this.getBounds())},_asPathItem:function(){return new B.Rectangle({rectangle:this.getInternalBounds(),matrix:this._matrix,insert:!1})},intersects:function(e,t){return e instanceof T&&this._asPathItem().getIntersections(e._asPathItem(),null,t,!0).length>0}},new function(){function e(){var e=arguments;return this._hitTest(y.read(e),L.getOptions(e))}function t(){var e=arguments,t=y.read(e),n=L.getOptions(e),r=[];return this._hitTest(t,new u({all:r},n)),r}function n(e,t,n,r){var o=this._children;if(o)for(var i=o.length-1;i>=0;i--){var a=o[i],s=a!==r&&a._hitTest(e,t,n);if(s&&!t.all)return s}return null}return P.inject({hitTest:e,hitTestAll:t,_hitTest:n}),{hitTest:e,hitTestAll:t,_hitTestChildren:n}},{_hitTest:function(e,t,n){if(this._locked||!this._visible||this._guide&&!t.guides||this.isEmpty())return null;var r=this._matrix,o=n?n.appended(r):this.getGlobalMatrix().prepend(this.getView()._matrix),i=Math.max(t.tolerance,1e-12),a=t._tolerancePadding=new w(B._getStrokePadding(i,r._shiftless().invert()));if(!(e=r._inverseTransform(e))||!this._children&&!this.getBounds({internal:!0,stroke:!0,handle:!0}).expand(a.multiply(2))._containsPoint(e))return null;var s,l,c=!(t.guides&&!this._guide||t.selected&&!this.isSelected()||t.type&&t.type!==u.hyphenate(this._class)||t.class&&!(this instanceof t.class)),d=t.match,h=this;function p(e){return e&&d&&!d(e)&&(e=null),e&&t.all&&t.all.push(e),e}function f(t,n){var r=n?s["get"+n]():h.getPosition();if(e.subtract(r).divide(a).length<=1)return new L(t,h,{name:n?u.hyphenate(n):t,point:r})}var m=t.position,g=t.center,v=t.bounds;if(c&&this._parent&&(m||g||v)){if((g||v)&&(s=this.getInternalBounds()),!(l=m&&f("position")||g&&f("center","Center"))&&v)for(var y=["TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],b=0;b<8&&!l;b++)l=f("bounds",y[b]);l=p(l)}return l||(l=this._hitTestChildren(e,t,o)||c&&p(this._hitTestSelf(e,t,o,this.getStrokeScaling()?null:o._shiftless().invert()))||null),l&&l.point&&(l.point=r.transform(l.point)),l},_hitTestSelf:function(e,t){if(t.fill&&this.hasFill()&&this._contains(e))return new L("fill",this)},matches:function(e,t){var n=typeof e;if("object"===n){for(var r in e)if(e.hasOwnProperty(r)&&!this.matches(r,e[r]))return!1;return!0}if("function"===n)return e(this);if("match"===e)return t(this);var o=/^(empty|editable)$/.test(e)?this["is"+u.capitalize(e)]():"type"===e?u.hyphenate(this._class):this[e];if("class"===e){if("function"==typeof t)return this instanceof t;o=this._class}if("function"==typeof t)return!!t(o);if(t){if(t.test)return t.test(o);if(u.isPlainObject(t))return function e(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r],i=n[r];if(u.isPlainObject(o)&&u.isPlainObject(i)){if(!e(o,i))return!1}else if(!u.equals(o,i))return!1}return!0}(t,o)}return u.equals(o,t)},getItems:function(e){return T._getItems(this,e,this._matrix)},getItem:function(e){return T._getItems(this,e,this._matrix,null,!0)[0]||null},statics:{_getItems:function e(t,n,r,o,i){if(!o){var a="object"==typeof n&&n,s=a&&a.overlapping,l=a&&a.inside,c=(y=s||l)&&_.read([y]);o={items:[],recursive:a&&!1!==a.recursive,inside:!!l,overlapping:!!s,rect:c,path:s&&new B.Rectangle({rectangle:c,insert:!1})},a&&(n=u.filter({},n,{recursive:!0,inside:!0,overlapping:!0}))}var d=t._children,h=o.items;r=(c=o.rect)&&(r||new S);for(var p=0,f=d&&d.length;p<f;p++){var m=d[p],g=r&&r.appended(m._matrix),v=!0;if(c){var y=m.getBounds(g);if(!c.intersects(y))continue;c.contains(y)||o.overlapping&&(y.contains(c)||o.path.intersects(m,g))||(v=!1)}if(v&&m.matches(n)&&(h.push(m),i))break;if(!1!==o.recursive&&e(m,n,g,o,i),i&&h.length>0)break}return h}}},{importJSON:function(e){var t=u.importJSON(e,this);return t!==this?this.addChild(t):t},addChild:function(e){return this.insertChild(s,e)},insertChild:function(e,t){var n=t?this.insertChildren(e,[t]):null;return n&&n[0]},addChildren:function(e){return this.insertChildren(this._children.length,e)},insertChildren:function(e,t){var n=this._children;if(n&&t&&t.length>0){for(var r={},o=(t=u.slice(t)).length-1;o>=0;o--){var i=(c=t[o])&&c._id;!c||r[i]?t.splice(o,1):(c._remove(!1,!0),r[i]=!0)}u.splice(n,t,e,0);for(var a=this._project,s=a._changes,l=(o=0,t.length);o<l;o++){var c,d=(c=t[o])._name;c._parent=this,c._setProject(a,!0),d&&c.setName(d),s&&c._changed(5)}this._changed(11)}else t=null;return t},_insertItem:"#insertChild",_insertAt:function(e,t){var n=e&&e._getOwner(),r=e!==this&&n?this:null;return r&&(r._remove(!1,!0),n._insertItem(e._index+t,r)),r},insertAbove:function(e){return this._insertAt(e,1)},insertBelow:function(e){return this._insertAt(e,0)},sendToBack:function(){var e=this._getOwner();return e?e._insertItem(0,this):null},bringToFront:function(){var e=this._getOwner();return e?e._insertItem(s,this):null},appendTop:"#addChild",appendBottom:function(e){return this.insertChild(0,e)},moveAbove:"#insertAbove",moveBelow:"#insertBelow",addTo:function(e){return e._insertItem(s,this)},copyTo:function(e){return this.clone(!1).addTo(e)},reduce:function(e){var t=this._children;if(t&&1===t.length){var n=t[0].reduce(e);return this._parent?(n.insertAbove(this),this.remove()):n.remove(),n}return this},_removeNamed:function(){var e=this._getOwner();if(e){var t=e._children,n=e._namedChildren,r=this._name,o=n[r],i=o?o.indexOf(this):-1;-1!==i&&(t[r]==this&&delete t[r],o.splice(i,1),o.length?t[r]=o[0]:delete n[r])}},_remove:function(e,t){var n=this._getOwner(),r=this._project,o=this._index;return this._style&&this._style._dispose(),!!n&&(this._name&&this._removeNamed(),null!=o&&(r._activeLayer===this&&(r._activeLayer=this.getNextSibling()||this.getPreviousSibling()),u.splice(n._children,null,o,1)),this._installEvents(!1),e&&r._changes&&this._changed(5),t&&n._changed(11,this),this._parent=null,!0)},remove:function(){return this._remove(!0,!0)},replaceWith:function(e){var t=e&&e.insertBelow(this);return t&&this.remove(),t},removeChildren:function(e,t){if(!this._children)return null;e=e||0,t=u.pick(t,this._children.length);for(var n=u.splice(this._children,null,e,t-e),r=n.length-1;r>=0;r--)n[r]._remove(!0,!1);return n.length>0&&this._changed(11),n},clear:"#removeChildren",reverseChildren:function(){if(this._children){this._children.reverse();for(var e=0,t=this._children.length;e<t;e++)this._children[e]._index=e;this._changed(11)}},isEmpty:function(e){var t=this._children,n=t?t.length:0;if(e){for(var r=0;r<n;r++)if(!t[r].isEmpty(e))return!1;return!0}return!n},isEditable:function(){for(var e=this;e;){if(!e._visible||e._locked)return!1;e=e._parent}return!0},hasFill:function(){return this.getStyle().hasFill()},hasStroke:function(){return this.getStyle().hasStroke()},hasShadow:function(){return this.getStyle().hasShadow()},_getOrder:function(e){function t(e){var t=[];do{t.unshift(e)}while(e=e._parent);return t}for(var n=t(this),r=t(e),o=0,i=Math.min(n.length,r.length);o<i;o++)if(n[o]!=r[o])return n[o]._index<r[o]._index?1:-1;return 0},hasChildren:function(){return this._children&&this._children.length>0},isInserted:function(){return!!this._parent&&this._parent.isInserted()},isAbove:function(e){return-1===this._getOrder(e)},isBelow:function(e){return 1===this._getOrder(e)},isParent:function(e){return this._parent===e},isChild:function(e){return e&&e._parent===this},isDescendant:function(e){for(var t=this;t=t._parent;)if(t===e)return!0;return!1},isAncestor:function(e){return!!e&&e.isDescendant(this)},isSibling:function(e){return this._parent===e._parent},isGroupedWith:function(e){for(var t=this._parent;t;){if(t._parent&&/^(Group|Layer|CompoundPath)$/.test(t._class)&&e.isDescendant(t))return!0;t=t._parent}return!1}},u.each(["rotate","scale","shear","skew"],(function(e){var t="rotate"===e;this[e]=function(){var n=arguments,r=(t?u:y).read(n),o=y.read(n,0,{readNull:!0});return this.transform((new S)[e](r,o||this.getPosition(!0)))}}),{translate:function(){var e=new S;return this.transform(e.translate.apply(e,arguments))},transform:function(e,t,n){var r=this._matrix,o=e&&!e.isIdentity(),i=n&&this._canApplyMatrix||this._applyMatrix&&(o||!r.isIdentity()||t&&this._children);if(!o&&!i)return this;if(o){!e.isInvertible()&&r.isInvertible()&&(r._backup=r.getValues()),r.prepend(e,!0);var a=this._style,s=a.getFillColor(!0),l=a.getStrokeColor(!0);s&&s.transform(e),l&&l.transform(e)}if(i&&(i=this._transformContent(r,t,n))){var c=this._pivot;c&&r._transformPoint(c,c,!0),r.reset(!0),n&&this._canApplyMatrix&&(this._applyMatrix=!0)}var u=this._bounds,d=this._position;(o||i)&&this._changed(25);var h=o&&u&&e.decompose();if(h&&h.skewing.isZero()&&h.rotation%90==0){for(var p in u){var f=u[p];if(f.nonscaling)delete u[p];else if(i||!f.internal){var m=f.rect;e._transformBounds(m,m)}}this._bounds=u;var g=u[this._getBoundsCacheKey(this._boundsOptions||{})];g&&(this._position=this._getPositionFromBounds(g.rect))}else o&&d&&this._pivot&&(this._position=e._transformPoint(d,d));return this},_transformContent:function(e,t,n){var r=this._children;if(r){for(var o=0,i=r.length;o<i;o++)r[o].transform(e,t,n);return!0}},globalToLocal:function(){return this.getGlobalMatrix(!0)._inverseTransform(y.read(arguments))},localToGlobal:function(){return this.getGlobalMatrix(!0)._transformPoint(y.read(arguments))},parentToLocal:function(){return this._matrix._inverseTransform(y.read(arguments))},localToParent:function(){return this._matrix._transformPoint(y.read(arguments))},fitBounds:function(e,t){e=_.read(arguments);var n=this.getBounds(),r=n.height/n.width,o=e.height/e.width,i=(t?r>o:r<o)?e.width/n.width:e.height/n.height,a=new _(new y,new w(n.width*i,n.height*i));a.setCenter(e.getCenter()),this.setBounds(a)}}),{_setStyles:function(e,t,n){var r=this._style,o=this._matrix;if(r.hasFill()&&(e.fillStyle=r.getFillColor().toCanvasStyle(e,o)),r.hasStroke()){e.strokeStyle=r.getStrokeColor().toCanvasStyle(e,o),e.lineWidth=r.getStrokeWidth();var i=r.getStrokeJoin(),a=r.getStrokeCap(),s=r.getMiterLimit();if(i&&(e.lineJoin=i),a&&(e.lineCap=a),s&&(e.miterLimit=s),he.support.nativeDash){var l=r.getDashArray(),c=r.getDashOffset();l&&l.length&&("setLineDash"in e?(e.setLineDash(l),e.lineDashOffset=c):(e.mozDash=l,e.mozDashOffset=c))}}if(r.hasShadow()){var u=t.pixelRatio||1,d=n._shiftless().prepend((new S).scale(u,u)),h=d.transform(new y(r.getShadowBlur(),0)),p=d.transform(this.getShadowOffset());e.shadowColor=r.getShadowColor().toCanvasStyle(e),e.shadowBlur=h.getLength(),e.shadowOffsetX=p.x,e.shadowOffsetY=p.y}},draw:function(e,t,n){this._updateVersion=this._project._updateVersion;if(this._visible&&0!==this._opacity){var r=t.matrices,o=t.viewMatrix,i=this._matrix,a=r[r.length-1].appended(i);if(a.isInvertible()){o=o?o.appended(a):a,r.push(a),t.updateMatrix&&(this._globalMatrix=a);var s,l,c,u=this._blendMode,d=g.clamp(this._opacity,0,1),h="normal"===u,p=ce.nativeModes[u],f=h&&1===d||t.dontStart||t.clip||(p||h&&d<1)&&this._canComposite(),m=t.pixelRatio||1;if(!f){var v=this.getStrokeBounds(o);if(!v.width||!v.height)return void r.pop();c=t.offset,l=t.offset=v.getTopLeft().floor(),s=e,e=le.getContext(v.getSize().ceil().add(1).multiply(m)),1!==m&&e.scale(m,m)}e.save();var y=n?n.appended(i):this._canScaleStroke&&!this.getStrokeScaling(!0)&&o,b=!f&&t.clipItem,w=!y||b;if(f?(e.globalAlpha=d,p&&(e.globalCompositeOperation=u)):w&&e.translate(-l.x,-l.y),w&&(f?i:o).applyToContext(e),b&&t.clipItem.draw(e,t.extend({clip:!0})),y){e.setTransform(m,0,0,m,0,0);var C=t.offset;C&&e.translate(-C.x,-C.y)}this._draw(e,t,o,y),e.restore(),r.pop(),t.clip&&!t.dontFinish&&e.clip(this.getFillRule()),f||(ce.process(u,e,s,d,l.subtract(c).multiply(m)),le.release(e),t.offset=c)}}},_isUpdated:function(e){var t=this._parent;if(t instanceof H)return t._isUpdated(e);var n=this._updateVersion===e;return!n&&t&&t._visible&&t._isUpdated(e)&&(this._updateVersion=e,n=!0),n},_drawSelection:function(e,t,n,r,o){var i=this._selection,a=1&i,s=2&i||a&&this._selectBounds,l=4&i;if(this._drawSelected||(a=!1),(a||s||l)&&this._isUpdated(o)){var c,u=this.getSelectedColor(!0)||(c=this.getLayer())&&c.getSelectedColor(!0),d=t.appended(this.getGlobalMatrix(!0)),h=n/2;if(e.strokeStyle=e.fillStyle=u?u.toCanvasStyle(e):"#009dec",a&&this._drawSelected(e,d,r),l){var p=this.getPosition(!0),f=this._parent,m=f?f.localToGlobal(p):p,g=m.x,v=m.y;e.beginPath(),e.arc(g,v,h,0,2*Math.PI,!0),e.stroke();for(var y=[[0,-1],[1,0],[0,1],[-1,0]],b=h,w=n+1,C=0;C<4;C++){var _=y[C],x=_[0],S=_[1];e.moveTo(g+x*b,v+S*b),e.lineTo(g+x*w,v+S*w),e.stroke()}}if(s){var k=d._transformCorners(this.getInternalBounds());e.beginPath();for(C=0;C<8;C++)e[C?"lineTo":"moveTo"](k[C],k[++C]);e.closePath(),e.stroke();for(C=0;C<8;C++)e.fillRect(k[C]-h,k[++C]-h,n,n)}}},_canComposite:function(){return!1}},u.each(["down","drag","up","move"],(function(e){this["removeOn"+u.capitalize(e)]=function(){var t={};return t[e]=!0,this.removeOn(t)}}),{removeOn:function(e){for(var t in e)if(e[t]){var n="mouse"+t,r=this._project,o=r._removeSets=r._removeSets||{};o[n]=o[n]||{},o[n][this._id]=this}return this}}),{tween:function(e,t,n){n||(n=t,t=e,e=null,n||(n=t,t=null));var r=n&&n.easing,o=n&&n.start,i=null!=n&&("number"==typeof n?n:n.duration),a=new ae(this,e,t,i,r,o);return i&&this.on("frame",(function e(t){a._handleFrame(1e3*t.time),a.running||this.off("frame",e)})),a},tweenTo:function(e,t){return this.tween(null,e,t)},tweenFrom:function(e,t){return this.tween(e,null,t)}}),E=T.extend({_class:"Group",_selectBounds:!1,_selectChildren:!0,_serializeFields:{children:[]},initialize:function(e){this._children=[],this._namedChildren={},this._initialize(e)||this.addChildren(Array.isArray(e)?e:arguments)},_changed:function e(t){e.base.call(this,t),2050&t&&(this._clipItem=s)},_getClipItem:function(){var e=this._clipItem;if(e===s){e=null;for(var t=this._children,n=0,r=t.length;n<r;n++)if(t[n]._clipMask){e=t[n];break}this._clipItem=e}return e},isClipped:function(){return!!this._getClipItem()},setClipped:function(e){var t=this.getFirstChild();t&&t.setClipMask(e)},_getBounds:function e(t,n){var r=this._getClipItem();return r?r._getCachedBounds(r._matrix.prepended(t),u.set({},n,{stroke:!1})):e.base.call(this,t,n)},_hitTestChildren:function e(t,n,r){var o=this._getClipItem();return(!o||o.contains(t))&&e.base.call(this,t,n,r,o)},_draw:function(e,t){var n=t.clip,r=!n&&this._getClipItem();t=t.extend({clipItem:r,clip:!1}),n?(e.beginPath(),t.dontStart=t.dontFinish=!0):r&&r.draw(e,t.extend({clip:!0}));for(var o=this._children,i=0,a=o.length;i<a;i++){var s=o[i];s!==r&&s.draw(e,t)}}}),O=E.extend({_class:"Layer",initialize:function(){E.apply(this,arguments)},_getOwner:function(){return this._parent||null!=this._index&&this._project},isInserted:function e(){return this._parent?e.base.call(this):null!=this._index},activate:function(){this._project._activeLayer=this},_hitTestSelf:function(){}}),M=T.extend({_class:"Shape",_applyMatrix:!1,_canApplyMatrix:!1,_canScaleStroke:!0,_serializeFields:{type:null,size:null,radius:null},initialize:function(e,t){this._initialize(e,t)},_equals:function(e){return this._type===e._type&&this._size.equals(e._size)&&u.equals(this._radius,e._radius)},copyContent:function(e){this.setType(e._type),this.setSize(e._size),this.setRadius(e._radius)},getType:function(){return this._type},setType:function(e){this._type=e},getShape:"#getType",setShape:"#setType",getSize:function(){var e=this._size;return new C(e.width,e.height,this,"setSize")},setSize:function(){var e=w.read(arguments);if(this._size){if(!this._size.equals(e)){var t=this._type,n=e.width,r=e.height;"rectangle"===t?this._radius.set(w.min(this._radius,e.divide(2).abs())):"circle"===t?(n=r=(n+r)/2,this._radius=n/2):"ellipse"===t&&this._radius._set(n/2,r/2),this._size._set(n,r),this._changed(9)}}else this._size=e.clone()},getRadius:function(){var e=this._radius;return"circle"===this._type?e:new C(e.width,e.height,this,"setRadius")},setRadius:function(e){var t=this._type;if("circle"===t){if(e===this._radius)return;var n=2*e;this._radius=e,this._size._set(n,n)}else if(e=w.read(arguments),this._radius){if(this._radius.equals(e))return;if(this._radius.set(e),"rectangle"===t){n=w.max(this._size,e.multiply(2));this._size.set(n)}else"ellipse"===t&&this._size._set(2*e.width,2*e.height)}else this._radius=e.clone();this._changed(9)},isEmpty:function(){return!1},toPath:function(e){var t=new(B[u.capitalize(this._type)])({center:new y,size:this._size,radius:this._radius,insert:!1});return t.copyAttributes(this),he.settings.applyMatrix&&t.setApplyMatrix(!0),(e===s||e)&&t.insertAbove(this),t},toShape:"#clone",_asPathItem:function(){return this.toPath(!1)},_draw:function(e,t,n,r){var o=this._style,i=o.hasFill(),a=o.hasStroke(),s=t.dontFinish||t.clip,l=!r;if(i||a||s){var c=this._type,u=this._radius,d="circle"===c;if(t.dontStart||e.beginPath(),l&&d)e.arc(0,0,u,0,2*Math.PI,!0);else{var h=d?u:u.width,p=d?u:u.height,f=this._size,m=f.width,g=f.height;if(l&&"rectangle"===c&&0===h&&0===p)e.rect(-m/2,-g/2,m,g);else{var v=m/2,y=g/2,b=.44771525016920644,w=h*b,C=p*b,_=[-v,-y+p,-v,-y+C,-v+w,-y,-v+h,-y,v-h,-y,v-w,-y,v,-y+C,v,-y+p,v,y-p,v,y-C,v-w,y,v-h,y,-v+h,y,-v+w,y,-v,y-C,-v,y-p];r&&r.transform(_,_,32),e.moveTo(_[0],_[1]),e.bezierCurveTo(_[2],_[3],_[4],_[5],_[6],_[7]),v!==h&&e.lineTo(_[8],_[9]),e.bezierCurveTo(_[10],_[11],_[12],_[13],_[14],_[15]),y!==p&&e.lineTo(_[16],_[17]),e.bezierCurveTo(_[18],_[19],_[20],_[21],_[22],_[23]),v!==h&&e.lineTo(_[24],_[25]),e.bezierCurveTo(_[26],_[27],_[28],_[29],_[30],_[31])}}e.closePath()}s||!i&&!a||(this._setStyles(e,t,n),i&&(e.fill(o.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),a&&e.stroke())},_canComposite:function(){return!(this.hasFill()&&this.hasStroke())},_getBounds:function(e,t){var n=new _(this._size).setCenter(0,0),r=this._style,o=t.stroke&&r.hasStroke()&&r.getStrokeWidth();return e&&(n=e._transformBounds(n)),o?n.expand(B._getStrokePadding(o,this._getStrokeMatrix(e,t))):n}},new function(){function e(e,t,n){var r=e._radius;if(!r.isZero())for(var o=e._size.divide(2),i=1;i<=4;i++){var a=new y(i>1&&i<4?-1:1,i>2?-1:1),s=a.multiply(o),l=s.subtract(a.multiply(r));if(new _(n?s.add(a.multiply(n)):s,l).contains(t))return{point:l,quadrant:i}}}function t(e,t,n,r){var o=e.divide(t);return(!r||o.isInQuadrant(r))&&o.subtract(o.normalize()).multiply(t).divide(n).length<=1}return{_contains:function t(n){if("rectangle"===this._type){var r=e(this,n);return r?n.subtract(r.point).divide(this._radius).getLength()<=1:t.base.call(this,n)}return n.divide(this.size).getLength()<=.5},_hitTestSelf:function n(r,o,i,a){var s=!1,l=this._style,c=o.stroke&&l.hasStroke(),u=o.fill&&l.hasFill();if(c||u){var d=this._type,h=this._radius,p=c?l.getStrokeWidth()/2:0,f=o._tolerancePadding.add(B._getStrokePadding(p,!l.getStrokeScaling()&&a));if("rectangle"===d){var m=f.multiply(2),g=e(this,r,m);if(g)s=t(r.subtract(g.point),h,f,g.quadrant);else{var v=new _(this._size).setCenter(0,0),y=v.expand(m),b=v.expand(m.negate());s=y._containsPoint(r)&&!b._containsPoint(r)}}else s=t(r,h,f)}return s?new L(c?"stroke":"fill",this):n.base.apply(this,arguments)}}},{statics:new function(){function e(e,t,n,r,o){var i=u.create(M.prototype);return i._type=e,i._size=n,i._radius=r,i._initialize(u.getNamed(o),t),i}return{Circle:function(){var t=arguments,n=y.readNamed(t,"center"),r=u.readNamed(t,"radius");return e("circle",n,new w(2*r),r,t)},Rectangle:function(){var t=arguments,n=_.readNamed(t,"rectangle"),r=w.min(w.readNamed(t,"radius"),n.getSize(!0).divide(2));return e("rectangle",n.getCenter(!0),n.getSize(!0),r,t)},Ellipse:function(){var t=arguments,n=M._readEllipse(t),r=n.radius;return e("ellipse",n.center,r.multiply(2),r,t)},_readEllipse:function(e){var t,n;if(u.hasNamed(e,"radius"))t=y.readNamed(e,"center"),n=w.readNamed(e,"radius");else{var r=_.readNamed(e,"rectangle");t=r.getCenter(!0),n=r.getSize(!0).divide(2)}return{center:t,radius:n}}}}}),A=T.extend({_class:"Raster",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!1,handle:!1},_serializeFields:{crossOrigin:null,source:null},_prioritize:["crossOrigin"],_smoothing:"low",beans:!0,initialize:function(e,t){if(!this._initialize(e,t!==s&&y.read(arguments))){var n,r=typeof e,o="string"===r?c.getElementById(e):"object"===r?e:null;if(o&&o!==T.NO_INSERT)if(o.getContext||null!=o.naturalHeight)n=o;else if(o){var i=w.read(arguments);i.isZero()||(n=le.getCanvas(i))}n?this.setImage(n):this.setSource(e)}this._size||(this._size=new w,this._loaded=!1)},_equals:function(e){return this.getSource()===e.getSource()},copyContent:function(e){var t=e._image,n=e._canvas;if(t)this._setImage(t);else if(n){var r=le.getCanvas(e._size);r.getContext("2d").drawImage(n,0,0),this._setImage(r)}this._crossOrigin=e._crossOrigin},getSize:function(){var e=this._size;return new C(e?e.width:0,e?e.height:0,this,"setSize")},setSize:function(e,t){var n=w.read(arguments);if(n.equals(this._size))t&&this.clear();else if(n.width>0&&n.height>0){var r=!t&&this.getElement();this._setImage(le.getCanvas(n)),r&&this.getContext(!0).drawImage(r,0,0,n.width,n.height)}else this._canvas&&le.release(this._canvas),this._size=n.clone()},getWidth:function(){return this._size?this._size.width:0},setWidth:function(e){this.setSize(e,this.getHeight())},getHeight:function(){return this._size?this._size.height:0},setHeight:function(e){this.setSize(this.getWidth(),e)},getLoaded:function(){return this._loaded},isEmpty:function(){var e=this._size;return!e||0===e.width&&0===e.height},getResolution:function(){var e=this._matrix,t=new y(0,0).transform(e),n=new y(1,0).transform(e).subtract(t),r=new y(0,1).transform(e).subtract(t);return new w(72/n.getLength(),72/r.getLength())},getPpi:"#getResolution",getImage:function(){return this._image},setImage:function(e){var t=this;function n(e){var n=t.getView(),r=e&&e.type||"load";n&&t.responds(r)&&(he=n._scope,t.emit(r,new ee(e)))}this._setImage(e),this._loaded?setTimeout(n,0):e&&J.add(e,{load:function(r){t._setImage(e),n(r)},error:n})},_setImage:function(e){this._canvas&&le.release(this._canvas),e&&e.getContext?(this._image=null,this._canvas=e,this._loaded=!0):(this._image=e,this._canvas=null,this._loaded=!!(e&&e.src&&e.complete)),this._size=new w(e?e.naturalWidth||e.width:0,e?e.naturalHeight||e.height:0),this._context=null,this._changed(1033)},getCanvas:function(){if(!this._canvas){var e=le.getContext(this._size);try{this._image&&e.drawImage(this._image,0,0),this._canvas=e.canvas}catch(t){le.release(e)}}return this._canvas},setCanvas:"#setImage",getContext:function(e){return this._context||(this._context=this.getCanvas().getContext("2d")),e&&(this._image=null,this._changed(1025)),this._context},setContext:function(e){this._context=e},getSource:function(){var e=this._image;return e&&e.src||this.toDataURL()},setSource:function(e){var t=new a.Image,n=this._crossOrigin;n&&(t.crossOrigin=n),e&&(t.src=e),this.setImage(t)},getCrossOrigin:function(){var e=this._image;return e&&e.crossOrigin||this._crossOrigin||""},setCrossOrigin:function(e){this._crossOrigin=e;var t=this._image;t&&(t.crossOrigin=e)},getSmoothing:function(){return this._smoothing},setSmoothing:function(e){this._smoothing="string"==typeof e?e:e?"low":"off",this._changed(257)},getElement:function(){return this._canvas||this._loaded&&this._image}},{beans:!1,getSubCanvas:function(){var e=_.read(arguments),t=le.getContext(e.getSize());return t.drawImage(this.getCanvas(),e.x,e.y,e.width,e.height,0,0,e.width,e.height),t.canvas},getSubRaster:function(){var e=_.read(arguments),t=new A(T.NO_INSERT);return t._setImage(this.getSubCanvas(e)),t.translate(e.getCenter().subtract(this.getSize().divide(2))),t._matrix.prepend(this._matrix),t.insertAbove(this),t},toDataURL:function(){var e=this._image,t=e&&e.src;if(/^data:/.test(t))return t;var n=this.getCanvas();return n?n.toDataURL.apply(n,arguments):null},drawImage:function(e){var t=y.read(arguments,1);this.getContext(!0).drawImage(e,t.x,t.y)},getAverageColor:function(e){var t,n;if(e?e instanceof F?(n=e,t=e.getBounds()):"object"==typeof e&&("width"in e?t=new _(e):"x"in e&&(t=new _(e.x-.5,e.y-.5,1,1))):t=this.getBounds(),!t)return null;var r=Math.min(t.width,32),o=Math.min(t.height,32),i=A._sampleContext;i?i.clearRect(0,0,33,33):i=A._sampleContext=le.getContext(new w(32)),i.save();var a=(new S).scale(r/t.width,o/t.height).translate(-t.x,-t.y);a.applyToContext(i),n&&n.draw(i,new u({clip:!0,matrices:[a]})),this._matrix.applyToContext(i);var s=this.getElement(),l=this._size;s&&i.drawImage(s,-l.width/2,-l.height/2),i.restore();for(var c=i.getImageData(.5,.5,Math.ceil(r),Math.ceil(o)).data,d=[0,0,0],h=0,p=0,f=c.length;p<f;p+=4){var m=c[p+3];h+=m,m/=255,d[0]+=c[p]*m,d[1]+=c[p+1]*m,d[2]+=c[p+2]*m}for(p=0;p<3;p++)d[p]/=h;return h?K.read(d):null},getPixel:function(){var e=y.read(arguments),t=this.getContext().getImageData(e.x,e.y,1,1).data;return new K("rgb",[t[0]/255,t[1]/255,t[2]/255],t[3]/255)},setPixel:function(){var e=arguments,t=y.read(e),n=K.read(e),r=n._convert("rgb"),o=n._alpha,i=this.getContext(!0),a=i.createImageData(1,1),s=a.data;s[0]=255*r[0],s[1]=255*r[1],s[2]=255*r[2],s[3]=null!=o?255*o:255,i.putImageData(a,t.x,t.y)},clear:function(){var e=this._size;this.getContext(!0).clearRect(0,0,e.width+1,e.height+1)},createImageData:function(){var e=w.read(arguments);return this.getContext().createImageData(e.width,e.height)},getImageData:function(){var e=_.read(arguments);return e.isEmpty()&&(e=new _(this._size)),this.getContext().getImageData(e.x,e.y,e.width,e.height)},setImageData:function(e){var t=y.read(arguments,1);this.getContext(!0).putImageData(e,t.x,t.y)},_getBounds:function(e,t){var n=new _(this._size).setCenter(0,0);return e?e._transformBounds(n):n},_hitTestSelf:function(e){if(this._contains(e)){var t=this;return new L("pixel",t,{offset:e.add(t._size.divide(2)).round(),color:{get:function(){return t.getPixel(this.offset)}}})}},_draw:function(e,t,n){var r=this.getElement();if(r&&r.width>0&&r.height>0){e.globalAlpha=g.clamp(this._opacity,0,1),this._setStyles(e,t,n);var o=this._smoothing,i="off"===o;X.setPrefixed(e,i?"imageSmoothingEnabled":"imageSmoothingQuality",!i&&o),e.drawImage(r,-this._size.width/2,-this._size.height/2)}},_canComposite:function(){return!0}}),D=T.extend({_class:"SymbolItem",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!0},_serializeFields:{symbol:null},initialize:function(e,t){this._initialize(e,t!==s&&y.read(arguments,1))||this.setDefinition(e instanceof I?e:new I(e))},_equals:function(e){return this._definition===e._definition},copyContent:function(e){this.setDefinition(e._definition)},getDefinition:function(){return this._definition},setDefinition:function(e){this._definition=e,this._changed(9)},getSymbol:"#getDefinition",setSymbol:"#setDefinition",isEmpty:function(){return this._definition._item.isEmpty()},_getBounds:function(e,t){var n=this._definition._item;return n._getCachedBounds(n._matrix.prepended(e),t)},_hitTestSelf:function(e,t,n){var r=t.extend({all:!1}),o=this._definition._item._hitTest(e,r,n);return o&&(o.item=this),o},_draw:function(e,t){this._definition._item.draw(e,t)}}),I=u.extend({_class:"SymbolDefinition",initialize:function(e,t){this._id=v.get(),this.project=he.project,e&&this.setItem(e,t)},_serialize:function(e,t){return t.add(this,(function(){return u.serialize([this._class,this._item],e,!1,t)}))},_changed:function(e){8&e&&T._clearBoundsCache(this),1&e&&this.project._changed(e)},getItem:function(){return this._item},setItem:function(e,t){e._symbol&&(e=e.clone()),this._item&&(this._item._symbol=null),this._item=e,e.remove(),e.setSelected(!1),t||e.setPosition(new y),e._symbol=this,this._changed(9)},getDefinition:"#getItem",setDefinition:"#setItem",place:function(e){return new D(this,e)},clone:function(){return new I(this._item.clone(!1))},equals:function(e){return e===this||e&&this._item.equals(e._item)||!1}}),L=u.extend({_class:"HitResult",initialize:function(e,t,n){this.type=e,this.item=t,n&&this.inject(n)},statics:{getOptions:function(e){var t=e&&u.read(e);return new u({type:null,tolerance:he.settings.hitTolerance,fill:!t,stroke:!t,segments:!t,handles:!1,ends:!1,position:!1,center:!1,bounds:!1,guides:!1,selected:!1},t)}}}),N=u.extend({_class:"Segment",beans:!0,_selection:0,initialize:function(e,t,n,r,o,i){var a,l,c,u,d=arguments.length;d>0&&(null==e||"object"==typeof e?1===d&&e&&"point"in e?(a=e.point,l=e.handleIn,c=e.handleOut,u=e.selection):(a=e,l=t,c=n,u=r):(a=[e,t],l=n!==s?[n,r]:null,c=o!==s?[o,i]:null)),new j(a,this,"_point"),new j(l,this,"_handleIn"),new j(c,this,"_handleOut"),u&&this.setSelection(u)},_serialize:function(e,t){var n=this._point,r=this._selection,o=r||this.hasHandles()?[n,this._handleIn,this._handleOut]:n;return r&&o.push(r),u.serialize(o,e,!0,t)},_changed:function(e){var t=this._path;if(t){var n,r=t._curves,o=this._index;r&&(e&&e!==this._point&&e!==this._handleIn||!(n=o>0?r[o-1]:t._closed?r[r.length-1]:null)||n._changed(),e&&e!==this._point&&e!==this._handleOut||!(n=r[o])||n._changed()),t._changed(41)}},getPoint:function(){return this._point},setPoint:function(){this._point.set(y.read(arguments))},getHandleIn:function(){return this._handleIn},setHandleIn:function(){this._handleIn.set(y.read(arguments))},getHandleOut:function(){return this._handleOut},setHandleOut:function(){this._handleOut.set(y.read(arguments))},hasHandles:function(){return!this._handleIn.isZero()||!this._handleOut.isZero()},isSmooth:function(){var e=this._handleIn,t=this._handleOut;return!e.isZero()&&!t.isZero()&&e.isCollinear(t)},clearHandles:function(){this._handleIn._set(0,0),this._handleOut._set(0,0)},getSelection:function(){return this._selection},setSelection:function(e){var t=this._selection,n=this._path;this._selection=e=e||0,n&&e!==t&&(n._updateSelection(this,t,e),n._changed(257))},_changeSelection:function(e,t){var n=this._selection;this.setSelection(t?n|e:n&~e)},isSelected:function(){return!!(7&this._selection)},setSelected:function(e){this._changeSelection(7,e)},getIndex:function(){return this._index!==s?this._index:null},getPath:function(){return this._path||null},getCurve:function(){var e=this._path,t=this._index;return e?(t>0&&!e._closed&&t===e._segments.length-1&&t--,e.getCurves()[t]||null):null},getLocation:function(){var e=this.getCurve();return e?new z(e,this===e._segment1?0:1):null},getNext:function(){var e=this._path&&this._path._segments;return e&&(e[this._index+1]||this._path._closed&&e[0])||null},smooth:function(e,t,n){var r=e||{},o=r.type,i=r.factor,a=this.getPrevious(),l=this.getNext(),c=(a||this)._point,u=this._point,d=(l||this)._point,h=c.getDistance(u),p=u.getDistance(d);if(o&&"catmull-rom"!==o){if("geometric"!==o)throw new Error("Smoothing method '"+o+"' not supported.");if(a&&l){var f=c.subtract(d),m=i===s?.4:i,g=m*h/(h+p);t||this.setHandleIn(f.multiply(g)),n||this.setHandleOut(f.multiply(g-m))}}else{var v=i===s?.5:i,b=Math.pow(h,v),w=b*b,C=Math.pow(p,v),_=C*C;if(!t&&a){var x=2*_+3*C*b+w,S=3*C*(C+b);this.setHandleIn(0!==S?new y((_*c._x+x*u._x-w*d._x)/S-u._x,(_*c._y+x*u._y-w*d._y)/S-u._y):new y)}if(!n&&l){x=2*w+3*b*C+_,S=3*b*(b+C);this.setHandleOut(0!==S?new y((w*d._x+x*u._x-_*c._x)/S-u._x,(w*d._y+x*u._y-_*c._y)/S-u._y):new y)}}},getPrevious:function(){var e=this._path&&this._path._segments;return e&&(e[this._index-1]||this._path._closed&&e[e.length-1])||null},isFirst:function(){return!this._index},isLast:function(){var e=this._path;return e&&this._index===e._segments.length-1||!1},reverse:function(){var e=this._handleIn,t=this._handleOut,n=e.clone();e.set(t),t.set(n)},reversed:function(){return new N(this._point,this._handleOut,this._handleIn)},remove:function(){return!!this._path&&!!this._path.removeSegment(this._index)},clone:function(){return new N(this._point,this._handleIn,this._handleOut)},equals:function(e){return e===this||e&&this._class===e._class&&this._point.equals(e._point)&&this._handleIn.equals(e._handleIn)&&this._handleOut.equals(e._handleOut)||!1},toString:function(){var e=["point: "+this._point];return this._handleIn.isZero()||e.push("handleIn: "+this._handleIn),this._handleOut.isZero()||e.push("handleOut: "+this._handleOut),"{ "+e.join(", ")+" }"},transform:function(e){this._transformCoordinates(e,new Array(6),!0),this._changed()},interpolate:function(e,t,n){var r=1-n,o=n,i=e._point,a=t._point,s=e._handleIn,l=t._handleIn,c=t._handleOut,u=e._handleOut;this._point._set(r*i._x+o*a._x,r*i._y+o*a._y,!0),this._handleIn._set(r*s._x+o*l._x,r*s._y+o*l._y,!0),this._handleOut._set(r*u._x+o*c._x,r*u._y+o*c._y,!0),this._changed()},_transformCoordinates:function(e,t,n){var r=this._point,o=n&&this._handleIn.isZero()?null:this._handleIn,i=n&&this._handleOut.isZero()?null:this._handleOut,a=r._x,s=r._y,l=2;return t[0]=a,t[1]=s,o&&(t[l++]=o._x+a,t[l++]=o._y+s),i&&(t[l++]=i._x+a,t[l++]=i._y+s),e&&(e._transformCoordinates(t,t,l/2),a=t[0],s=t[1],n?(r._x=a,r._y=s,l=2,o&&(o._x=t[l++]-a,o._y=t[l++]-s),i&&(i._x=t[l++]-a,i._y=t[l++]-s)):(o||(t[l++]=a,t[l++]=s),i||(t[l++]=a,t[l++]=s))),t}}),j=y.extend({initialize:function(e,t,n){var r,o,i;if(e)if((r=e[0])!==s)o=e[1];else{var a=e;(r=a.x)===s&&(r=(a=y.read(arguments)).x),o=a.y,i=a.selected}else r=o=0;this._x=r,this._y=o,this._owner=t,t[n]=this,i&&this.setSelected(!0)},_set:function(e,t){return this._x=e,this._y=t,this._owner._changed(this),this},getX:function(){return this._x},setX:function(e){this._x=e,this._owner._changed(this)},getY:function(){return this._y},setY:function(e){this._y=e,this._owner._changed(this)},isZero:function(){var e=g.isZero;return e(this._x)&&e(this._y)},isSelected:function(){return!!(this._owner._selection&this._getSelection())},setSelected:function(e){this._owner._changeSelection(this._getSelection(),e)},_getSelection:function(){var e=this._owner;return this===e._point?1:this===e._handleIn?2:this===e._handleOut?4:0}}),R=u.extend({_class:"Curve",beans:!0,initialize:function(e,t,n,r,o,i,a,s){var l,c,u,d,h,p,f=arguments.length;3===f?(this._path=e,l=t,c=n):f?1===f?"segment1"in e?(l=new N(e.segment1),c=new N(e.segment2)):"point1"in e?(u=e.point1,h=e.handle1,p=e.handle2,d=e.point2):Array.isArray(e)&&(u=[e[0],e[1]],d=[e[6],e[7]],h=[e[2]-e[0],e[3]-e[1]],p=[e[4]-e[6],e[5]-e[7]]):2===f?(l=new N(e),c=new N(t)):4===f?(u=e,h=t,p=n,d=r):8===f&&(u=[e,t],d=[a,s],h=[n-e,r-t],p=[o-a,i-s]):(l=new N,c=new N),this._segment1=l||new N(u,null,h),this._segment2=c||new N(d,p,null)},_serialize:function(e,t){return u.serialize(this.hasHandles()?[this.getPoint1(),this.getHandle1(),this.getHandle2(),this.getPoint2()]:[this.getPoint1(),this.getPoint2()],e,!0,t)},_changed:function(){this._length=this._bounds=s},clone:function(){return new R(this._segment1,this._segment2)},toString:function(){var e=["point1: "+this._segment1._point];return this._segment1._handleOut.isZero()||e.push("handle1: "+this._segment1._handleOut),this._segment2._handleIn.isZero()||e.push("handle2: "+this._segment2._handleIn),e.push("point2: "+this._segment2._point),"{ "+e.join(", ")+" }"},classify:function(){return R.classify(this.getValues())},remove:function(){var e=!1;if(this._path){var t=this._segment2,n=t._handleOut;(e=t.remove())&&this._segment1._handleOut.set(n)}return e},getPoint1:function(){return this._segment1._point},setPoint1:function(){this._segment1._point.set(y.read(arguments))},getPoint2:function(){return this._segment2._point},setPoint2:function(){this._segment2._point.set(y.read(arguments))},getHandle1:function(){return this._segment1._handleOut},setHandle1:function(){this._segment1._handleOut.set(y.read(arguments))},getHandle2:function(){return this._segment2._handleIn},setHandle2:function(){this._segment2._handleIn.set(y.read(arguments))},getSegment1:function(){return this._segment1},getSegment2:function(){return this._segment2},getPath:function(){return this._path},getIndex:function(){return this._segment1._index},getNext:function(){var e=this._path&&this._path._curves;return e&&(e[this._segment1._index+1]||this._path._closed&&e[0])||null},getPrevious:function(){var e=this._path&&this._path._curves;return e&&(e[this._segment1._index-1]||this._path._closed&&e[e.length-1])||null},isFirst:function(){return!this._segment1._index},isLast:function(){var e=this._path;return e&&this._segment1._index===e._curves.length-1||!1},isSelected:function(){return this.getPoint1().isSelected()&&this.getHandle1().isSelected()&&this.getHandle2().isSelected()&&this.getPoint2().isSelected()},setSelected:function(e){this.getPoint1().setSelected(e),this.getHandle1().setSelected(e),this.getHandle2().setSelected(e),this.getPoint2().setSelected(e)},getValues:function(e){return R.getValues(this._segment1,this._segment2,e)},getPoints:function(){for(var e=this.getValues(),t=[],n=0;n<8;n+=2)t.push(new y(e[n],e[n+1]));return t}},{getLength:function(){return null==this._length&&(this._length=R.getLength(this.getValues(),0,1)),this._length},getArea:function(){return R.getArea(this.getValues())},getLine:function(){return new k(this._segment1._point,this._segment2._point)},getPart:function(e,t){return new R(R.getPart(this.getValues(),e,t))},getPartLength:function(e,t){return R.getLength(this.getValues(),e,t)},divideAt:function(e){return this.divideAtTime(e&&e.curve===this?e.time:this.getTimeAt(e))},divideAtTime:function(e,t){var n=null;if(e>=1e-8&&e<=1-1e-8){var r=R.subdivide(this.getValues(),e),o=r[0],i=r[1],a=t||this.hasHandles(),s=this._segment1,l=this._segment2,c=this._path;a&&(s._handleOut._set(o[2]-o[0],o[3]-o[1]),l._handleIn._set(i[4]-i[6],i[5]-i[7]));var u=o[6],d=o[7],h=new N(new y(u,d),a&&new y(o[4]-u,o[5]-d),a&&new y(i[2]-u,i[3]-d));c?(c.insert(s._index+1,h),n=this.getNext()):(this._segment2=h,this._changed(),n=new R(h,l))}return n},splitAt:function(e){var t=this._path;return t?t.splitAt(e):null},splitAtTime:function(e){return this.splitAt(this.getLocationAtTime(e))},divide:function(e,t){return this.divideAtTime(e===s?.5:t?e:this.getTimeAt(e))},split:function(e,t){return this.splitAtTime(e===s?.5:t?e:this.getTimeAt(e))},reversed:function(){return new R(this._segment2.reversed(),this._segment1.reversed())},clearHandles:function(){this._segment1._handleOut._set(0,0),this._segment2._handleIn._set(0,0)},statics:{getValues:function(e,t,n,r){var o=e._point,i=e._handleOut,a=t._handleIn,s=t._point,l=o.x,c=o.y,u=s.x,d=s.y,h=r?[l,c,l,c,u,d,u,d]:[l,c,l+i._x,c+i._y,u+a._x,d+a._y,u,d];return n&&n._transformCoordinates(h,h,4),h},subdivide:function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],l=e[5],c=e[6],u=e[7];t===s&&(t=.5);var d=1-t,h=d*n+t*o,p=d*r+t*i,f=d*o+t*a,m=d*i+t*l,g=d*a+t*c,v=d*l+t*u,y=d*h+t*f,b=d*p+t*m,w=d*f+t*g,C=d*m+t*v,_=d*y+t*w,x=d*b+t*C;return[[n,r,h,p,y,b,_,x],[_,x,w,C,g,v,c,u]]},getMonoCurves:function(e,t){var n=[],r=t?0:1,o=e[r+0],i=e[r+2],a=e[r+4],s=e[r+6];if(o>=i==i>=a&&i>=a==a>=s||R.isStraight(e))n.push(e);else{var l=3*(i-a)-o+s,c=2*(o+a)-4*i,u=i-o,d=[],h=g.solveQuadratic(l,c,u,d,1e-8,1-1e-8);if(h){d.sort();var p=d[0],f=R.subdivide(e,p);n.push(f[0]),h>1&&(p=(d[1]-p)/(1-p),f=R.subdivide(f[1],p),n.push(f[0])),n.push(f[1])}else n.push(e)}return n},solveCubic:function(e,t,n,r,o,i){var a=e[t],s=e[t+2],l=e[t+4],c=e[t+6],u=0;if(!(a<n&&c<n&&s<n&&l<n||a>n&&c>n&&s>n&&l>n)){var d=3*(s-a),h=3*(l-s)-d,p=c-a-d-h;u=g.solveCubic(p,h,d,a-n,r,o,i)}return u},getTimeOf:function(e,t){var n=new y(e[0],e[1]),r=new y(e[6],e[7]);if(null===(t.isClose(n,1e-12)?0:t.isClose(r,1e-12)?1:null))for(var o=[t.x,t.y],i=[],a=0;a<2;a++)for(var s=R.solveCubic(e,a,o[a],i,0,1),l=0;l<s;l++){var c=i[l];if(t.isClose(R.getPoint(e,c),1e-7))return c}return t.isClose(n,1e-7)?0:t.isClose(r,1e-7)?1:null},getNearestTime:function(e,t){if(R.isStraight(e)){var n=e[0],r=e[1],o=e[6]-n,i=e[7]-r,a=o*o+i*i;if(0===a)return 0;var s=((t.x-n)*o+(t.y-r)*i)/a;return s<1e-12?0:s>.999999999999?1:R.getTimeOf(e,new y(n+s*o,r+s*i))}var l=1/0,c=0;function u(n){if(n>=0&&n<=1){var r=t.getDistance(R.getPoint(e,n),!0);if(r<l)return l=r,c=n,!0}}for(var d=0;d<=100;d++)u(d/100);for(var h=.005;h>1e-8;)u(c-h)||u(c+h)||(h/=2);return c},getPart:function(e,t,n){var r=t>n;if(r){var o=t;t=n,n=o}return t>0&&(e=R.subdivide(e,t)[1]),n<1&&(e=R.subdivide(e,(n-t)/(1-t))[0]),r?[e[6],e[7],e[4],e[5],e[2],e[3],e[0],e[1]]:e},isFlatEnough:function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=3*o-2*n-l,d=3*i-2*r-c,h=3*a-2*l-n,p=3*s-2*c-r;return Math.max(u*u,h*h)+Math.max(d*d,p*p)<=16*t*t},getArea:function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],l=e[7];return 3*((l-n)*(r+i)-(s-t)*(o+a)+o*(t-i)-r*(n-a)+l*(i+t/3)-s*(a+n/3))/20},getBounds:function(e){for(var t=e.slice(0,2),n=t.slice(),r=[0,0],o=0;o<2;o++)R._addBounds(e[o],e[o+2],e[o+4],e[o+6],o,0,t,n,r);return new _(t[0],t[1],n[0]-t[0],n[1]-t[1])},_addBounds:function(e,t,n,r,o,i,a,s,l){function c(e,t){var n=e-t,r=e+t;n<a[o]&&(a[o]=n),r>s[o]&&(s[o]=r)}i/=2;var u=a[o]+i,d=s[o]-i;if(e<u||t<u||n<u||r<u||e>d||t>d||n>d||r>d)if(t<e!=t<r&&n<e!=n<r)c(e,0),c(r,0);else{var h=3*(t-n)-e+r,p=2*(e+n)-4*t,f=t-e,m=g.solveQuadratic(h,p,f,l);c(r,0);for(var v=0;v<m;v++){var y=l[v],b=1-y;1e-8<=y&&y<=1-1e-8&&c(b*b*b*e+3*b*b*y*t+3*b*y*y*n+y*y*y*r,i)}}}}},u.each(["getBounds","getStrokeBounds","getHandleBounds"],(function(e){this[e]=function(){this._bounds||(this._bounds={});var t=this._bounds[e];return t||(t=this._bounds[e]=B[e]([this._segment1,this._segment2],!1,this._path)),t.clone()}}),{}),u.each({isStraight:function(e,t,n,r){if(t.isZero()&&n.isZero())return!0;var o=r.subtract(e);if(o.isZero())return!1;if(o.isCollinear(t)&&o.isCollinear(n)){var i=new k(e,r);if(i.getDistance(e.add(t))<1e-7&&i.getDistance(r.add(n))<1e-7){var a=o.dot(o),s=o.dot(t)/a,l=o.dot(n)/a;return s>=0&&s<=1&&l<=0&&l>=-1}}return!1},isLinear:function(e,t,n,r){var o=r.subtract(e).divide(3);return t.equals(o)&&n.negate().equals(o)}},(function(e,t){this[t]=function(t){var n=this._segment1,r=this._segment2;return e(n._point,n._handleOut,r._handleIn,r._point,t)},this.statics[t]=function(t,n){var r=t[0],o=t[1],i=t[6],a=t[7];return e(new y(r,o),new y(t[2]-r,t[3]-o),new y(t[4]-i,t[5]-a),new y(i,a),n)}}),{statics:{},hasHandles:function(){return!this._segment1._handleOut.isZero()||!this._segment2._handleIn.isZero()},hasLength:function(e){return(!this.getPoint1().equals(this.getPoint2())||this.hasHandles())&&this.getLength()>(e||0)},isCollinear:function(e){return e&&this.isStraight()&&e.isStraight()&&this.getLine().isCollinear(e.getLine())},isHorizontal:function(){return this.isStraight()&&Math.abs(this.getTangentAtTime(.5).y)<1e-8},isVertical:function(){return this.isStraight()&&Math.abs(this.getTangentAtTime(.5).x)<1e-8}}),{beans:!1,getLocationAt:function(e,t){return this.getLocationAtTime(t?e:this.getTimeAt(e))},getLocationAtTime:function(e){return null!=e&&e>=0&&e<=1?new z(this,e):null},getTimeAt:function(e,t){return R.getTimeAt(this.getValues(),e,t)},getParameterAt:"#getTimeAt",getTimesWithTangent:function(){var e=y.read(arguments);return e.isZero()?[]:R.getTimesWithTangent(this.getValues(),e)},getOffsetAtTime:function(e){return this.getPartLength(0,e)},getLocationOf:function(){return this.getLocationAtTime(this.getTimeOf(y.read(arguments)))},getOffsetOf:function(){var e=this.getLocationOf.apply(this,arguments);return e?e.getOffset():null},getTimeOf:function(){return R.getTimeOf(this.getValues(),y.read(arguments))},getParameterOf:"#getTimeOf",getNearestLocation:function(){var e=y.read(arguments),t=this.getValues(),n=R.getNearestTime(t,e),r=R.getPoint(t,n);return new z(this,n,r,null,e.getDistance(r))},getNearestPoint:function(){var e=this.getNearestLocation.apply(this,arguments);return e?e.getPoint():e}},new function(){var e=["getPoint","getTangent","getNormal","getWeightedTangent","getWeightedNormal","getCurvature"];return u.each(e,(function(e){this[e+"At"]=function(t,n){var r=this.getValues();return R[e](r,n?t:R.getTimeAt(r,t))},this[e+"AtTime"]=function(t){return R[e](this.getValues(),t)}}),{statics:{_evaluateMethods:e}})},new function(){function e(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],l=e[7],c=9*(r-i)+3*(s-t),u=6*(t+i)-12*r,d=3*(r-t),h=9*(o-a)+3*(l-n),p=6*(n+a)-12*o,f=3*(o-n);return function(e){var t=(c*e+u)*e+d,n=(h*e+p)*e+f;return Math.sqrt(t*t+n*n)}}function t(e,t){return Math.max(2,Math.min(16,Math.ceil(32*Math.abs(t-e))))}function n(e,t,n,r){if(null==t||t<0||t>1)return null;var o=e[0],i=e[1],a=e[2],s=e[3],l=e[4],c=e[5],u=e[6],d=e[7],h=g.isZero;h(a-o)&&h(s-i)&&(a=o,s=i),h(l-u)&&h(c-d)&&(l=u,c=d);var p,f,m=3*(a-o),v=3*(l-a)-m,b=u-o-m-v,w=3*(s-i),C=3*(c-s)-w,_=d-i-w-C;if(0===n)p=0===t?o:1===t?u:((b*t+v)*t+m)*t+o,f=0===t?i:1===t?d:((_*t+C)*t+w)*t+i;else{if(t<1e-8?(p=m,f=w):t>1-1e-8?(p=3*(u-l),f=3*(d-c)):(p=(3*b*t+2*v)*t+m,f=(3*_*t+2*C)*t+w),r){0===p&&0===f&&(t<1e-8||t>1-1e-8)&&(p=l-a,f=c-s);var x=Math.sqrt(p*p+f*f);x&&(p/=x,f/=x)}if(3===n){l=6*b*t+2*v,c=6*_*t+2*C;var S=Math.pow(p*p+f*f,1.5);p=0!==S?(p*c-f*l)/S:0,f=0}}return 2===n?new y(f,-p):new y(p,f)}return{statics:{classify:function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],l=e[6],c=e[7],u=r*(n-c)+o*(l-t)+t*c-n*l,d=3*(i*(o-n)+a*(t-r)+r*n-o*t),h=d-u,p=h-u+(t*(c-a)+n*(i-l)+l*a-c*i),f=Math.sqrt(p*p+h*h+d*d),m=0!==f?1/f:0,v=g.isZero;function y(e,t,n){var r=t!==s,o=r&&t>0&&t<1,i=r&&n>0&&n<1;return!r||(o||i)&&("loop"!==e||o&&i)||(e="arch",o=i=!1),{type:e,roots:o||i?o&&i?t<n?[t,n]:[n,t]:[o?t:n]:null}}if(h*=m,d*=m,v(p*=m))return v(h)?y(v(d)?"line":"quadratic"):y("serpentine",d/(3*h));var b=3*h*h-4*p*d;if(v(b))return y("cusp",h/(2*p));var w=b>0?Math.sqrt(b/3):Math.sqrt(-b),C=2*p;return y(b>0?"serpentine":"loop",(h+w)/C,(h-w)/C)},getLength:function(n,r,o,i){if(r===s&&(r=0),o===s&&(o=1),R.isStraight(n)){var a=n;o<1&&(a=R.subdivide(a,o)[0],r/=o),r>0&&(a=R.subdivide(a,r)[1]);var l=a[6]-a[0],c=a[7]-a[1];return Math.sqrt(l*l+c*c)}return g.integrate(i||e(n),r,o,t(r,o))},getTimeAt:function(n,r,o){if(o===s&&(o=r<0?1:0),0===r)return o;var i=Math.abs,a=r>0,l=a?o:0,c=a?1:o,u=e(n),d=R.getLength(n,l,c,u),h=i(r)-d;if(i(h)<1e-12)return a?c:l;if(h>1e-12)return null;var p=r/d,f=0;return g.findRoot((function(e){return f+=g.integrate(u,o,e,t(o,e)),o=e,f-r}),u,o+p,l,c,32,1e-12)},getPoint:function(e,t){return n(e,t,0,!1)},getTangent:function(e,t){return n(e,t,1,!0)},getWeightedTangent:function(e,t){return n(e,t,1,!1)},getNormal:function(e,t){return n(e,t,2,!0)},getWeightedNormal:function(e,t){return n(e,t,2,!1)},getCurvature:function(e,t){return n(e,t,3,!1).x},getPeaks:function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=3*r-t-3*i+e[6],l=3*t-6*r+3*i,c=-3*t+3*r,u=3*o-n-3*a+e[7],d=3*n-6*o+3*a,h=-3*n+3*o,p=[];return g.solveCubic(9*(s*s+u*u),9*(s*l+d*u),2*(l*l+d*d)+3*(c*s+h*u),c*l+d*h,p,1e-8,1-1e-8),p.sort()}}}},new function(){function e(e,t,n,r,o,i,a){var s=!a&&n.getPrevious()===o,l=!a&&n!==o&&n.getNext()===o;if(null!==r&&r>=(s?1e-8:0)&&r<=(l?1-1e-8:1)&&null!==i&&i>=(l?1e-8:0)&&i<=(s?1-1e-8:1)){var c=new z(n,r,null,a),u=new z(o,i,null,a);c._intersection=u,u._intersection=c,t&&!t(c)||z.insert(e,c,!0)}}function t(r,o,i,a,s,l,c,u,d,h,p,f,m){if(++d>=4096||++u>=40)return d;var g,v,y=o[0],b=o[1],w=o[6],C=o[7],_=k.getSignedDistance,x=_(y,b,w,C,o[2],o[3]),S=_(y,b,w,C,o[4],o[5]),P=x*S>0?3/4:4/9,T=P*Math.min(0,x,S),E=P*Math.max(0,x,S),O=_(y,b,w,C,r[0],r[1]),M=_(y,b,w,C,r[2],r[3]),A=_(y,b,w,C,r[4],r[5]),D=_(y,b,w,C,r[6],r[7]),I=function(e,t,n,r){var o,i=[0,e],a=[1/3,t],s=[2/3,n],l=[1,r],c=t-(2*e+r)/3,u=n-(e+2*r)/3;if(c*u<0)o=[[i,a,l],[i,s,l]];else{var d=c/u;o=[d>=2?[i,a,l]:d<=.5?[i,s,l]:[i,a,s,l],[i,l]]}return(c||u)<0?o.reverse():o}(O,M,A,D),L=I[0],N=I[1];if(0===x&&0===S&&0===O&&0===M&&0===A&&0===D||null==(g=n(L,N,T,E))||null==(v=n(L.reverse(),N.reverse(),T,E)))return d;var j=h+(p-h)*g,z=h+(p-h)*v;if(Math.max(m-f,z-j)<1e-9){var F=(j+z)/2,B=(f+m)/2;e(s,l,c?a:i,c?B:F,c?i:a,c?F:B)}else{r=R.getPart(r,g,v);var H=m-f;if(v-g>.8)if(z-j>H){F=(j+z)/2;d=t(o,(V=R.subdivide(r,.5))[0],a,i,s,l,!c,u,d,f,m,j,F),d=t(o,V[1],a,i,s,l,!c,u,d,f,m,F,z)}else{var V;B=(f+m)/2;d=t((V=R.subdivide(o,.5))[0],r,a,i,s,l,!c,u,d,f,B,j,z),d=t(V[1],r,a,i,s,l,!c,u,d,B,m,j,z)}else d=0===H||H>=1e-9?t(o,r,a,i,s,l,!c,u,d,f,m,j,z):t(r,o,i,a,s,l,c,u,d,j,z,f,m)}return d}function n(e,t,n,o){return e[0][1]<n?r(e,!0,n):t[0][1]>o?r(t,!1,o):e[0][0]}function r(e,t,n){for(var r=e[0][0],o=e[0][1],i=1,a=e.length;i<a;i++){var s=e[i][0],l=e[i][1];if(t?l>=n:l<=n)return l===n?s:r+(n-o)*(s-r)/(l-o);r=s,o=l}return null}function o(e,t,n,r,o){var i=g.isZero;if(i(r)&&i(o)){var a=R.getTimeOf(e,new y(t,n));return null===a?[]:[a]}for(var s=Math.atan2(-o,r),l=Math.sin(s),c=Math.cos(s),u=[],d=[],h=0;h<8;h+=2){var p=e[h]-t,f=e[h+1]-n;u.push(p*c-f*l,p*l+f*c)}return R.solveCubic(u,1,0,d,0,1),d}function i(t,n,r,i,a,s,l){for(var c=n[0],u=n[1],d=o(t,c,u,n[6]-c,n[7]-u),h=0,p=d.length;h<p;h++){var f=d[h],m=R.getPoint(t,f),g=R.getTimeOf(n,m);null!==g&&e(a,s,l?i:r,l?g:f,l?r:i,l?f:g)}}function a(t,n,r,o,i,a){var s=k.intersect(t[0],t[1],t[6],t[7],n[0],n[1],n[6],n[7]);s&&e(i,a,r,R.getTimeOf(t,s),o,R.getTimeOf(n,s))}function s(n,r,o,s,l,u){var d=Math.min,h=Math.max;if(h(n[0],n[2],n[4],n[6])+1e-12>d(r[0],r[2],r[4],r[6])&&d(n[0],n[2],n[4],n[6])-1e-12<h(r[0],r[2],r[4],r[6])&&h(n[1],n[3],n[5],n[7])+1e-12>d(r[1],r[3],r[5],r[7])&&d(n[1],n[3],n[5],n[7])-1e-12<h(r[1],r[3],r[5],r[7])){var p=c(n,r);if(p)for(var f=0;f<2;f++){var m=p[f];e(l,u,o,m[0],s,m[1],!0)}else{var g=R.isStraight(n),v=R.isStraight(r),b=g&&v,w=g&&!v,C=l.length;if((b?a:g||v?i:t)(w?r:n,w?n:r,w?s:o,w?o:s,l,u,w,0,0,0,1,0,1),!b||l.length===C)for(f=0;f<4;f++){var _=f>>1,x=1&f,S=6*_,k=6*x,P=new y(n[S],n[S+1]),T=new y(r[k],r[k+1]);P.isClose(T,1e-12)&&e(l,u,o,_,s,x)}}}return l}function l(t,n,r,o){var i=R.classify(t);if("loop"===i.type){var a=i.roots;e(r,o,n,a[0],n,a[1])}return r}function c(e,t){function n(e){var t=e[6]-e[0],n=e[7]-e[1];return t*t+n*n}var r=Math.abs,o=k.getDistance,i=R.isStraight(e),a=R.isStraight(t),s=i&&a,l=n(e)<n(t),c=l?t:e,u=l?e:t,d=c[0],h=c[1],p=c[6]-d,f=c[7]-h;if(o(d,h,p,f,u[0],u[1],!0)<1e-7&&o(d,h,p,f,u[6],u[7],!0)<1e-7)!s&&o(d,h,p,f,c[2],c[3],!0)<1e-7&&o(d,h,p,f,c[4],c[5],!0)<1e-7&&o(d,h,p,f,u[2],u[3],!0)<1e-7&&o(d,h,p,f,u[4],u[5],!0)<1e-7&&(i=a=s=!0);else if(s)return null;if(i^a)return null;for(var m=[e,t],g=[],v=0;v<4&&g.length<2;v++){var b=1&v,w=1^b,C=v>>1,_=R.getTimeOf(m[b],new y(m[w][C?6:0],m[w][C?7:1]));if(null!=_){var x=b?[C,_]:[_,C];(!g.length||r(x[0]-g[0][0])>1e-8&&r(x[1]-g[0][1])>1e-8)&&g.push(x)}if(v>2&&!g.length)break}if(2!==g.length)g=null;else if(!s){var S=R.getPart(e,g[0][0],g[1][0]),P=R.getPart(t,g[0][1],g[1][1]);(r(P[2]-S[2])>1e-7||r(P[3]-S[3])>1e-7||r(P[4]-S[4])>1e-7||r(P[5]-S[5])>1e-7)&&(g=null)}return g}return{getIntersections:function(e){var t=this.getValues(),n=e&&e!==this&&e.getValues();return n?s(t,n,this,e,[]):l(t,this,[])},statics:{getOverlaps:c,getIntersections:function(e,t,n,r,o,i){var a=!t;a&&(t=e);for(var c=e.length,u=t.length,d=new Array(c),h=a?d:new Array(u),p=[],m=0;m<c;m++)d[m]=e[m].getValues(r);if(!a)for(m=0;m<u;m++)h[m]=t[m].getValues(o);for(var g=f.findCurveBoundsCollisions(d,h,1e-7),v=0;v<c;v++){var y=e[v],b=d[v];a&&l(b,y,p,n);var w=g[v];if(w)for(var C=0;C<w.length;C++){if(i&&p.length)return p;var _=w[C];if(!a||_>v){var x=t[_];s(b,h[_],y,x,p,n)}}}return p},getCurveLineIntersections:o,getTimesWithTangent:function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=t.normalize(),d=u.x,h=u.y,p=3*l-9*a+9*o-3*n,f=3*c-9*s+9*i-3*r,m=6*a-12*o+6*n,v=6*s-12*i+6*r,y=3*o-3*n,b=3*i-3*r,w=2*p*h-2*f*d,C=[];if(Math.abs(w)<g.CURVETIME_EPSILON){if(0!=(w=p*v-f*m)){var _=-(p*b-f*y)/w;_>=0&&_<=1&&C.push(_)}}else{var x=(m*m-4*p*y)*h*h+(-2*m*v+4*f*y+4*p*b)*d*h+(v*v-4*f*b)*d*d,S=m*h-v*d;if(x>=0&&0!=w){var k=Math.sqrt(x),P=-(S+k)/w,T=(-S+k)/w;P>=0&&P<=1&&C.push(P),T>=0&&T<=1&&C.push(T)}}return C}}}}),z=u.extend({_class:"CurveLocation",initialize:function(e,t,n,r,o){if(t>=.99999999){var i=e.getNext();i&&(t=0,e=i)}this._setCurve(e),this._time=t,this._point=n||e.getPointAtTime(t),this._overlap=r,this._distance=o,this._intersection=this._next=this._previous=null},_setPath:function(e){this._path=e,this._version=e?e._version:0},_setCurve:function(e){this._setPath(e._path),this._curve=e,this._segment=null,this._segment1=e._segment1,this._segment2=e._segment2},_setSegment:function(e){var t=e.getCurve();t?this._setCurve(t):(this._setPath(e._path),this._segment1=e,this._segment2=null),this._segment=e,this._time=e===this._segment1?0:1,this._point=e._point.clone()},getSegment:function(){var e=this._segment;if(!e){var t=this.getCurve(),n=this.getTime();0===n?e=t._segment1:1===n?e=t._segment2:null!=n&&(e=t.getPartLength(0,n)<t.getPartLength(n,1)?t._segment1:t._segment2),this._segment=e}return e},getCurve:function(){var e=this._path,t=this;function n(e){var n=e&&e.getCurve();if(n&&null!=(t._time=n.getTimeOf(t._point)))return t._setCurve(n),n}return e&&e._version!==this._version&&(this._time=this._offset=this._curveOffset=this._curve=null),this._curve||n(this._segment)||n(this._segment1)||n(this._segment2.getPrevious())},getPath:function(){var e=this.getCurve();return e&&e._path},getIndex:function(){var e=this.getCurve();return e&&e.getIndex()},getTime:function(){var e=this.getCurve(),t=this._time;return e&&null==t?this._time=e.getTimeOf(this._point):t},getParameter:"#getTime",getPoint:function(){return this._point},getOffset:function(){var e=this._offset;if(null==e){e=0;var t=this.getPath(),n=this.getIndex();if(t&&null!=n)for(var r=t.getCurves(),o=0;o<n;o++)e+=r[o].getLength();this._offset=e+=this.getCurveOffset()}return e},getCurveOffset:function(){var e=this._curveOffset;if(null==e){var t=this.getCurve(),n=this.getTime();this._curveOffset=e=null!=n&&t&&t.getPartLength(0,n)}return e},getIntersection:function(){return this._intersection},getDistance:function(){return this._distance},divide:function(){var e=this.getCurve(),t=e&&e.divideAtTime(this.getTime());return t&&this._setSegment(t._segment1),t},split:function(){var e=this.getCurve(),t=e._path,n=e&&e.splitAtTime(this.getTime());return n&&this._setSegment(t.getLastSegment()),n},equals:function(e,t){var n=this===e;if(!n&&e instanceof z){var r=this.getCurve(),o=e.getCurve(),i=r._path;if(i===o._path){var a=Math.abs,s=a(this.getOffset()-e.getOffset()),l=!t&&this._intersection,c=!t&&e._intersection;n=(s<1e-7||i&&a(i.getLength()-s)<1e-7)&&(!l&&!c||l&&c&&l.equals(c,!0))}}return n},toString:function(){var e=[],t=this.getPoint(),n=m.instance;t&&e.push("point: "+t);var r=this.getIndex();null!=r&&e.push("index: "+r);var o=this.getTime();return null!=o&&e.push("time: "+n.number(o)),null!=this._distance&&e.push("distance: "+n.number(this._distance)),"{ "+e.join(", ")+" }"},isTouching:function(){var e=this._intersection;if(e&&this.getTangent().isCollinear(e.getTangent())){var t=this.getCurve(),n=e.getCurve();return!(t.isStraight()&&n.isStraight()&&t.getLine().intersect(n.getLine()))}return!1},isCrossing:function(){var e=this._intersection;if(!e)return!1;var t=this.getTime(),n=e.getTime(),r=t>=1e-8&&t<=1-1e-8,o=n>=1e-8&&n<=1-1e-8;if(r&&o)return!this.isTouching();var i=this.getCurve(),a=i&&t<1e-8?i.getPrevious():i,s=e.getCurve(),l=s&&n<1e-8?s.getPrevious():s;if(t>1-1e-8&&(i=i.getNext()),n>1-1e-8&&(s=s.getNext()),!(a&&i&&l&&s))return!1;var c=[];function u(e,t){var n=e.getValues(),r=R.classify(n).roots||R.getPeaks(n),o=r.length,i=R.getLength(n,t&&o?r[o-1]:0,!t&&o?r[0]:1);c.push(o?i:i/32)}function d(e,t,n){return t<n?e>t&&e<n:e>t||e<n}r||(u(a,!0),u(i,!1)),o||(u(l,!0),u(s,!1));var h=this.getPoint(),p=Math.min.apply(Math,c),f=r?i.getTangentAtTime(t):i.getPointAt(p).subtract(h),m=r?f.negate():a.getPointAt(-p).subtract(h),g=o?s.getTangentAtTime(n):s.getPointAt(p).subtract(h),v=o?g.negate():l.getPointAt(-p).subtract(h),y=m.getAngle(),b=f.getAngle(),w=v.getAngle(),C=g.getAngle();return!!(r?d(y,w,C)^d(b,w,C)&&d(y,C,w)^d(b,C,w):d(w,y,b)^d(C,y,b)&&d(w,b,y)^d(C,b,y))},hasOverlap:function(){return!!this._overlap}},u.each(R._evaluateMethods,(function(e){var t=e+"At";this[e]=function(){var e=this.getCurve(),n=this.getTime();return null!=n&&e&&e[t](n,!0)}}),{preserve:!0}),new function(){function e(e,t,n){var r=e.length,o=0,i=r-1;function a(n,o){for(var i=n+o;i>=-1&&i<=r;i+=o){var a=e[(i%r+r)%r];if(!t.getPoint().isClose(a.getPoint(),1e-7))break;if(t.equals(a))return a}return null}for(;o<=i;){var s,l=o+i>>>1,c=e[l];if(n&&(s=t.equals(c)?c:a(l,-1)||a(l,1)))return t._overlap&&(s._overlap=s._intersection._overlap=!0),s;var u=t.getPath(),d=c.getPath();(u!==d?u._id-d._id:t.getIndex()+t.getTime()-(c.getIndex()+c.getTime()))<0?i=l-1:o=l+1}return e.splice(o,0,t),t}return{statics:{insert:e,expand:function(t){for(var n=t.slice(),r=t.length-1;r>=0;r--)e(n,t[r]._intersection,!1);return n}}}}),F=T.extend({_class:"PathItem",_selectBounds:!1,_canScaleStroke:!0,beans:!0,initialize:function(){},statics:{create:function(e){var t,n,r;if(u.isPlainObject(e)?(n=e.segments,t=e.pathData):Array.isArray(e)?n=e:"string"==typeof e&&(t=e),n){var o=n[0];r=o&&Array.isArray(o[0])}else t&&(r=(t.match(/m/gi)||[]).length>1||/z\s*\S+/i.test(t));return new(r?H:B)(e)}},_asPathItem:function(){return this},isClockwise:function(){return this.getArea()>=0},setClockwise:function(e){this.isClockwise()!=(e=!!e)&&this.reverse()},setPathData:function(e){var t,n,r,o=e&&e.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/gi),i=!1,a=new y,s=new y;function l(e,n){var r=+t[e];return i&&(r+=a[n]),r}function c(e){return new y(l(e,"x"),l(e+1,"y"))}this.clear();for(var u=0,d=o&&o.length;u<d;u++){var h=o[u],p=h[0],f=p.toLowerCase(),m=(t=h.match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g))&&t.length;switch(i=p===f,"z"!==n||/[mz]/.test(f)||this.moveTo(a),f){case"m":case"l":for(var g="m"===f,v=0;v<m;v+=2)this[g?"moveTo":"lineTo"](a=c(v)),g&&(s=a,g=!1);r=a;break;case"h":case"v":var b="h"===f?"x":"y";a=a.clone();for(v=0;v<m;v++)a[b]=l(v,b),this.lineTo(a);r=a;break;case"c":for(v=0;v<m;v+=6)this.cubicCurveTo(c(v),r=c(v+2),a=c(v+4));break;case"s":for(v=0;v<m;v+=4)this.cubicCurveTo(/[cs]/.test(n)?a.multiply(2).subtract(r):a,r=c(v),a=c(v+2)),n=f;break;case"q":for(v=0;v<m;v+=4)this.quadraticCurveTo(r=c(v),a=c(v+2));break;case"t":for(v=0;v<m;v+=2)this.quadraticCurveTo(r=/[qt]/.test(n)?a.multiply(2).subtract(r):a,a=c(v)),n=f;break;case"a":for(v=0;v<m;v+=7)this.arcTo(a=c(v+5),new w(+t[v],+t[v+1]),+t[v+2],+t[v+4],+t[v+3]);break;case"z":this.closePath(1e-12),a=s}n=f}},_canComposite:function(){return!(this.hasFill()&&this.hasStroke())},_contains:function(e){var t=e.isInside(this.getBounds({internal:!0,handle:!0}))?this._getWinding(e):{};return t.onPath||!!("evenodd"===this.getFillRule()?1&t.windingL||1&t.windingR:t.winding)},getIntersections:function(e,t,n,r){var o=this===e||!e,i=this._matrix._orNullIfIdentity(),a=o?i:(n||e._matrix)._orNullIfIdentity();return o||this.getBounds(i).intersects(e.getBounds(a),1e-12)?R.getIntersections(this.getCurves(),!o&&e.getCurves(),t,i,a,r):[]},getCrossings:function(e){return this.getIntersections(e,(function(e){return e.isCrossing()}))},getNearestLocation:function(){for(var e=y.read(arguments),t=this.getCurves(),n=1/0,r=null,o=0,i=t.length;o<i;o++){var a=t[o].getNearestLocation(e);a._distance<n&&(n=a._distance,r=a)}return r},getNearestPoint:function(){var e=this.getNearestLocation.apply(this,arguments);return e?e.getPoint():e},interpolate:function(e,t,n){var r=!this._children,o=r?"_segments":"_children",i=e[o],a=t[o],s=this[o];if(!i||!a||i.length!==a.length)throw new Error("Invalid operands in interpolate() call: "+e+", "+t);var l=s.length,c=a.length;if(l<c)for(var u=r?N:B,d=l;d<c;d++)this.add(new u);else l>c&&this[r?"removeSegments":"removeChildren"](c,l);for(d=0;d<c;d++)s[d].interpolate(i[d],a[d],n);r&&(this.setClosed(e._closed),this._changed(9))},compare:function(e){var t=!1;if(e){var n=this._children||[this],r=e._children?e._children.slice():[e],o=n.length,i=r.length,a=[],s=0;t=!0;for(var l=f.findItemBoundsCollisions(n,r,g.GEOMETRIC_EPSILON),c=o-1;c>=0&&t;c--){var u=n[c];t=!1;var d=l[c];if(d)for(var h=d.length-1;h>=0&&!t;h--)u.compare(r[d[h]])&&(a[d[h]]||(a[d[h]]=!0,s++),t=!0)}t=t&&s===i}return t}}),B=F.extend({_class:"Path",_serializeFields:{segments:[],closed:!1},initialize:function(e){this._closed=!1,this._segments=[],this._version=0;var t=arguments,n=Array.isArray(e)?"object"==typeof e[0]?e:t:!e||e.size!==s||e.x===s&&e.point===s?null:t;n&&n.length>0?this.setSegments(n):(this._curves=s,this._segmentSelection=0,n||"string"!=typeof e||(this.setPathData(e),e=null)),this._initialize(!n&&e)},_equals:function(e){return this._closed===e._closed&&u.equals(this._segments,e._segments)},copyContent:function(e){this.setSegments(e._segments),this._closed=e._closed},_changed:function e(t){if(e.base.call(this,t),8&t){if(this._length=this._area=s,32&t)this._version++;else if(this._curves)for(var n=0,r=this._curves.length;n<r;n++)this._curves[n]._changed()}else 64&t&&(this._bounds=s)},getStyle:function(){var e=this._parent;return(e instanceof H?e:this)._style},getSegments:function(){return this._segments},setSegments:function(e){var t=this.isFullySelected(),n=e&&e.length;if(this._segments.length=0,this._segmentSelection=0,this._curves=s,n){var r=e[n-1];"boolean"==typeof r&&(this.setClosed(r),n--),this._add(N.readList(e,0,{},n))}t&&this.setFullySelected(!0)},getFirstSegment:function(){return this._segments[0]},getLastSegment:function(){return this._segments[this._segments.length-1]},getCurves:function(){var e=this._curves,t=this._segments;if(!e){var n=this._countCurves();e=this._curves=new Array(n);for(var r=0;r<n;r++)e[r]=new R(this,t[r],t[r+1]||t[0])}return e},getFirstCurve:function(){return this.getCurves()[0]},getLastCurve:function(){var e=this.getCurves();return e[e.length-1]},isClosed:function(){return this._closed},setClosed:function(e){if(this._closed!=(e=!!e)){if(this._closed=e,this._curves){var t=this._curves.length=this._countCurves();e&&(this._curves[t-1]=new R(this,this._segments[t-1],this._segments[0]))}this._changed(41)}}},{beans:!0,getPathData:function(e,t){var n,r,o,i,a,s,l,c,u=this._segments,d=u.length,h=new m(t),p=new Array(6),f=!0,g=[];function v(t,u){if(t._transformCoordinates(e,p),n=p[0],r=p[1],f)g.push("M"+h.pair(n,r)),f=!1;else if(a=p[2],s=p[3],a===n&&s===r&&l===o&&c===i){if(!u){var d=n-o,m=r-i;g.push(0===d?"v"+h.number(m):0===m?"h"+h.number(d):"l"+h.pair(d,m))}}else g.push("c"+h.pair(l-o,c-i)+" "+h.pair(a-o,s-i)+" "+h.pair(n-o,r-i));o=n,i=r,l=p[4],c=p[5]}if(!d)return"";for(var y=0;y<d;y++)v(u[y]);return this._closed&&d>0&&(v(u[0],!0),g.push("z")),g.join("")},isEmpty:function(){return!this._segments.length},_transformContent:function(e){for(var t=this._segments,n=new Array(6),r=0,o=t.length;r<o;r++)t[r]._transformCoordinates(e,n,!0);return!0},_add:function(e,t){for(var n=this._segments,r=this._curves,o=e.length,i=null==t,a=(t=i?n.length:t,0);a<o;a++){var s=e[a];s._path&&(s=e[a]=s.clone()),s._path=this,s._index=t+a,s._selection&&this._updateSelection(s,0,s._selection)}if(i)u.push(n,e);else{n.splice.apply(n,[t,0].concat(e));a=t+o;for(var l=n.length;a<l;a++)n[a]._index=a}if(r){var c=this._countCurves(),d=t>0&&t+o-1===c?t-1:t,h=d,p=Math.min(d+o,c);e._curves&&(r.splice.apply(r,[d,0].concat(e._curves)),h+=e._curves.length);for(a=h;a<p;a++)r.splice(a,0,new R(this,null,null));this._adjustCurves(d,p)}return this._changed(41),e},_adjustCurves:function(e,t){for(var n,r=this._segments,o=this._curves,i=e;i<t;i++)(n=o[i])._path=this,n._segment1=r[i],n._segment2=r[i+1]||r[0],n._changed();(n=o[this._closed&&!e?r.length-1:e-1])&&(n._segment2=r[e]||r[0],n._changed()),(n=o[t])&&(n._segment1=r[t],n._changed())},_countCurves:function(){var e=this._segments.length;return!this._closed&&e>0?e-1:e},add:function(e){var t=arguments;return t.length>1&&"number"!=typeof e?this._add(N.readList(t)):this._add([N.read(t)])[0]},insert:function(e,t){var n=arguments;return n.length>2&&"number"!=typeof t?this._add(N.readList(n,1),e):this._add([N.read(n,1)],e)[0]},addSegment:function(){return this._add([N.read(arguments)])[0]},insertSegment:function(e){return this._add([N.read(arguments,1)],e)[0]},addSegments:function(e){return this._add(N.readList(e))},insertSegments:function(e,t){return this._add(N.readList(t),e)},removeSegment:function(e){return this.removeSegments(e,e+1)[0]||null},removeSegments:function(e,t,n){e=e||0,t=u.pick(t,this._segments.length);var r=this._segments,o=this._curves,i=r.length,a=r.splice(e,t-e),s=a.length;if(!s)return a;for(var l=0;l<s;l++){var c=a[l];c._selection&&this._updateSelection(c,c._selection,0),c._index=c._path=null}l=e;for(var d=r.length;l<d;l++)r[l]._index=l;if(o){var h=e>0&&t===i+(this._closed?1:0)?e-1:e;for(l=(o=o.splice(h,s)).length-1;l>=0;l--)o[l]._path=null;n&&(a._curves=o.slice(1)),this._adjustCurves(h,h)}return this._changed(41),a},clear:"#removeSegments",hasHandles:function(){for(var e=this._segments,t=0,n=e.length;t<n;t++)if(e[t].hasHandles())return!0;return!1},clearHandles:function(){for(var e=this._segments,t=0,n=e.length;t<n;t++)e[t].clearHandles()},getLength:function(){if(null==this._length){for(var e=this.getCurves(),t=0,n=0,r=e.length;n<r;n++)t+=e[n].getLength();this._length=t}return this._length},getArea:function(){var e=this._area;if(null==e){var t=this._segments,n=this._closed;e=0;for(var r=0,o=t.length;r<o;r++){var i=r+1===o;e+=R.getArea(R.getValues(t[r],t[i?0:r+1],null,i&&!n))}this._area=e}return e},isFullySelected:function(){var e=this._segments.length;return this.isSelected()&&e>0&&this._segmentSelection===7*e},setFullySelected:function(e){e&&this._selectSegments(!0),this.setSelected(e)},setSelection:function e(t){1&t||this._selectSegments(!1),e.base.call(this,t)},_selectSegments:function(e){var t=this._segments,n=t.length,r=e?7:0;this._segmentSelection=r*n;for(var o=0;o<n;o++)t[o]._selection=r},_updateSelection:function(e,t,n){e._selection=n,(this._segmentSelection+=n-t)>0&&this.setSelected(!0)},divideAt:function(e){var t,n=this.getLocationAt(e);return n&&(t=n.getCurve().divideAt(n.getCurveOffset()))?t._segment1:null},splitAt:function(e){var t=this.getLocationAt(e),n=t&&t.index,r=t&&t.time;r>1-1e-8&&(n++,r=0);var o=this.getCurves();if(n>=0&&n<o.length){r>=1e-8&&o[n++].divideAtTime(r);var i,a=this.removeSegments(n,this._segments.length,!0);return this._closed?(this.setClosed(!1),i=this):((i=new B(T.NO_INSERT)).insertAbove(this),i.copyAttributes(this)),i._add(a,0),this.addSegment(a[0]),i}return null},split:function(e,t){var n,r=t===s?e:(n=this.getCurves()[e])&&n.getLocationAtTime(t);return null!=r?this.splitAt(r):null},join:function(e,t){var n=t||0;if(e&&e!==this){var r=e._segments,o=this.getLastSegment(),i=e.getLastSegment();if(!i)return this;o&&o._point.isClose(i._point,n)&&e.reverse();var a=e.getFirstSegment();if(o&&o._point.isClose(a._point,n))o.setHandleOut(a._handleOut),this._add(r.slice(1));else{var s=this.getFirstSegment();s&&s._point.isClose(a._point,n)&&e.reverse(),i=e.getLastSegment(),s&&s._point.isClose(i._point,n)?(s.setHandleIn(i._handleIn),this._add(r.slice(0,r.length-1),0)):this._add(r.slice())}e._closed&&this._add([r[0]]),e.remove()}var l=this.getFirstSegment(),c=this.getLastSegment();return l!==c&&l._point.isClose(c._point,n)&&(l.setHandleIn(c._handleIn),c.remove(),this.setClosed(!0)),this},reduce:function(e){for(var t=this.getCurves(),n=e&&e.simplify,r=n?1e-7:0,o=t.length-1;o>=0;o--){var i=t[o];!i.hasHandles()&&(!i.hasLength(r)||n&&i.isCollinear(i.getNext()))&&i.remove()}return this},reverse:function(){this._segments.reverse();for(var e=0,t=this._segments.length;e<t;e++){var n=this._segments[e],r=n._handleIn;n._handleIn=n._handleOut,n._handleOut=r,n._index=e}this._curves=null,this._changed(9)},flatten:function(e){for(var t=new V(this,e||.25,256,!0).parts,n=t.length,r=[],o=0;o<n;o++)r.push(new N(t[o].curve.slice(0,2)));!this._closed&&n>0&&r.push(new N(t[n-1].curve.slice(6))),this.setSegments(r)},simplify:function(e){var t=new Y(this).fit(e||2.5);return t&&this.setSegments(t),!!t},smooth:function(e){var t=this,n=e||{},r=n.type||"asymmetric",o=this._segments,i=o.length,a=this._closed;function l(e,n){var r=e&&e.index;if(null!=r){var o=e.path;if(o&&o!==t)throw new Error(e._class+" "+r+" of "+o+" is not part of "+t);n&&e instanceof R&&r++}else r="number"==typeof e?e:n;return Math.min(r<0&&a?r%i:r<0?r+i:r,i-1)}var c=a&&n.from===s&&n.to===s,u=l(n.from,0),d=l(n.to,i-1);if(u>d)if(a)u-=i;else{var h=u;u=d,d=h}if(/^(?:asymmetric|continuous)$/.test(r)){var p="asymmetric"===r,f=Math.min,m=d-u+1,g=m-1,v=c?f(m,4):1,y=v,b=v,w=[];if(a||(y=f(1,u),b=f(1,i-d-1)),(g+=y+b)<=1)return;for(var C=0,_=u-y;C<=g;C++,_++)w[C]=o[(_<0?_+i:_)%i]._point;var x=w[0]._x+2*w[1]._x,S=w[0]._y+2*w[1]._y,k=2,P=g-1,T=[x],E=[S],O=[k],M=[],A=[];for(C=1;C<g;C++){var D=C<P,I=D?4:p?2:7,L=D?4:p?3:8,N=D?2:p?0:1,j=(D||p?1:2)/k;k=O[C]=I-j,x=T[C]=L*w[C]._x+N*w[C+1]._x-j*x,S=E[C]=L*w[C]._y+N*w[C+1]._y-j*S}M[P]=T[P]/O[P],A[P]=E[P]/O[P];for(C=g-2;C>=0;C--)M[C]=(T[C]-M[C+1])/O[C],A[C]=(E[C]-A[C+1])/O[C];M[g]=(3*w[g]._x-M[P])/2,A[g]=(3*w[g]._y-A[P])/2;C=y;var z=g-b;for(_=u;C<=z;C++,_++){var F=o[_<0?_+i:_],B=F._point,H=M[C]-B._x,V=A[C]-B._y;(c||C<z)&&F.setHandleOut(H,V),(c||C>y)&&F.setHandleIn(-H,-V)}}else for(C=u;C<=d;C++)o[C<0?C+i:C].smooth(n,!c&&C===u,!c&&C===d)},toShape:function(e){if(!this._closed)return null;var t,n,r,o,i,a,l,c=this._segments;function u(e,t){var n=c[e],r=n.getNext(),o=c[t],i=o.getNext();return n._handleOut.isZero()&&r._handleIn.isZero()&&o._handleOut.isZero()&&i._handleIn.isZero()&&r._point.subtract(n._point).isCollinear(i._point.subtract(o._point))}function d(e){var t=c[e],n=t.getNext(),r=t._handleOut,o=n._handleIn,i=.5522847498307936;if(r.isOrthogonal(o)){var a=t._point,s=n._point,l=new k(a,r,!0).intersect(new k(s,o,!0),!0);return l&&g.isZero(r.getLength()/l.subtract(a).getLength()-i)&&g.isZero(o.getLength()/l.subtract(s).getLength()-i)}return!1}function h(e,t){return c[e]._point.getDistance(c[t]._point)}if(!this.hasHandles()&&4===c.length&&u(0,2)&&u(1,3)&&(i=c[1],a=i.getPrevious(),l=i.getNext(),a._handleOut.isZero()&&i._handleIn.isZero()&&i._handleOut.isZero()&&l._handleIn.isZero()&&i._point.subtract(a._point).isOrthogonal(l._point.subtract(i._point)))?(t=M.Rectangle,n=new w(h(0,3),h(0,1)),o=c[1]._point.add(c[2]._point).divide(2)):8===c.length&&d(0)&&d(2)&&d(4)&&d(6)&&u(1,5)&&u(3,7)?(t=M.Rectangle,r=(n=new w(h(1,6),h(0,3))).subtract(new w(h(0,7),h(1,2))).divide(2),o=c[3]._point.add(c[4]._point).divide(2)):4===c.length&&d(0)&&d(1)&&d(2)&&d(3)&&(g.isZero(h(0,2)-h(1,3))?(t=M.Circle,r=h(0,2)/2):(t=M.Ellipse,r=new w(h(2,0)/2,h(3,1)/2)),o=c[1]._point),t){var p=this.getPosition(!0),f=new t({center:p,size:n,radius:r,insert:!1});return f.copyAttributes(this,!0),f._matrix.prepend(this._matrix),f.rotate(o.subtract(p).getAngle()+90),(e===s||e)&&f.insertAbove(this),f}return null},toPath:"#clone",compare:function e(t){if(!t||t instanceof H)return e.base.call(this,t);var n=this.getCurves(),r=t.getCurves(),o=n.length,i=r.length;if(!o||!i)return o==i;for(var a,s,l=n[0].getValues(),c=[],u=0,d=0,h=0;h<i;h++){var p=r[h].getValues();if(c.push(p),g=R.getOverlaps(l,p)){a=!h&&g[0][0]>0?i-1:h,s=g[0][1];break}}var f,m=Math.abs;for(p=c[a];l&&p;){var g;if(g=R.getOverlaps(l,p))if(m(g[0][0]-d)<1e-8){1===(d=g[1][0])&&(l=++u<o?n[u].getValues():null,d=0);var v=g[0][1];if(m(v-s)<1e-8){if(f||(f=[a,v]),1===(s=g[1][1])&&(++a>=i&&(a=0),p=c[a]||r[a].getValues(),s=0),!l)return f[0]===a&&f[1]===s;continue}}break}return!1},_hitTestSelf:function(e,t,n,r){var o,i,a,s,l,c,u=this,d=this.getStyle(),h=this._segments,p=h.length,f=this._closed,m=t._tolerancePadding,g=m,v=t.stroke&&d.hasStroke(),y=t.fill&&d.hasFill(),b=t.curves,w=v?d.getStrokeWidth()/2:y&&t.tolerance>0||b?0:null;function C(t,n){return e.subtract(t).divide(n).length<=1}function _(e,n,r){if(!t.selected||n.isSelected()){var o=e._point;if(n!==o&&(n=n.add(o)),C(n,g))return new L(r,u,{segment:e,point:n})}}function x(e,n){return(n||t.segments)&&_(e,e._point,"segment")||!n&&t.handles&&(_(e,e._handleIn,"handle-in")||_(e,e._handleOut,"handle-out"))}function S(e){s.add(e)}function k(t){var n,l=f||t._index>0&&t._index<p-1;return"round"===(l?o:i)?C(t._point,g):(s=new B({internal:!0,closed:!0}),l?t.isSmooth()||B._addBevelJoin(t,o,w,a,null,r,S,!0):"square"===i&&B._addSquareCap(t,i,w,null,r,S,!0),s.isEmpty()?void 0:s.contains(e)||(n=s.getNearestLocation(e))&&C(n.getPoint(),m))}if(null!==w&&(w>0?(o=d.getStrokeJoin(),i=d.getStrokeCap(),a=d.getMiterLimit(),g=g.add(B._getStrokePadding(w,r))):o=i="round"),!t.ends||t.segments||f){if(t.segments||t.handles)for(var P=0;P<p;P++)if(c=x(h[P]))return c}else if(c=x(h[0],!0)||x(h[p-1],!0))return c;if(null!==w){if(l=this.getNearestLocation(e)){var T=l.getTime();0===T||1===T&&p>1?k(l.getSegment())||(l=null):C(l.getPoint(),g)||(l=null)}if(!l&&"miter"===o&&p>1)for(P=0;P<p;P++){var E=h[P];if(e.getDistance(E._point)<=a*w&&k(E)){l=E.getLocation();break}}}return!l&&y&&this._contains(e)||l&&!v&&!b?new L("fill",this):l?new L(v?"stroke":"curve",this,{location:l,point:l.getPoint()}):null}},u.each(R._evaluateMethods,(function(e){this[e+"At"]=function(t){var n=this.getLocationAt(t);return n&&n[e]()}}),{beans:!1,getLocationOf:function(){for(var e=y.read(arguments),t=this.getCurves(),n=0,r=t.length;n<r;n++){var o=t[n].getLocationOf(e);if(o)return o}return null},getOffsetOf:function(){var e=this.getLocationOf.apply(this,arguments);return e?e.getOffset():null},getLocationAt:function(e){if("number"==typeof e){for(var t=this.getCurves(),n=0,r=0,o=t.length;r<o;r++){var i=n,a=t[r];if((n+=a.getLength())>e)return a.getLocationAt(e-i)}if(t.length>0&&e<=this.getLength())return new z(t[t.length-1],1)}else if(e&&e.getPath&&e.getPath()===this)return e;return null},getOffsetsWithTangent:function(){var e=y.read(arguments);if(e.isZero())return[];for(var t=[],n=0,r=this.getCurves(),o=0,i=r.length;o<i;o++){for(var a=r[o],s=a.getTimesWithTangent(e),l=0,c=s.length;l<c;l++){var u=n+a.getOffsetAtTime(s[l]);t.indexOf(u)<0&&t.push(u)}n+=a.length}return t}}),new function(){function e(e,t,n){var r,o,i,a,s,l,c,u,d=t._segments,h=d.length,p=new Array(6),f=!0;function m(t){if(n)t._transformCoordinates(n,p),r=p[0],o=p[1];else{var d=t._point;r=d._x,o=d._y}if(f)e.moveTo(r,o),f=!1;else{if(n)s=p[2],l=p[3];else{var h=t._handleIn;s=r+h._x,l=o+h._y}s===r&&l===o&&c===i&&u===a?e.lineTo(r,o):e.bezierCurveTo(c,u,s,l,r,o)}if(i=r,a=o,n)c=p[4],u=p[5];else{h=t._handleOut;c=i+h._x,u=a+h._y}}for(var g=0;g<h;g++)m(d[g]);t._closed&&h>0&&m(d[0])}return{_draw:function(t,n,r,o){var i=n.dontStart,a=n.dontFinish||n.clip,s=this.getStyle(),l=s.hasFill(),c=s.hasStroke(),u=s.getDashArray(),d=!he.support.nativeDash&&c&&u&&u.length;function h(e){return u[(e%d+d)%d]}if(i||t.beginPath(),(l||c&&!d||a)&&(e(t,this,o),this._closed&&t.closePath()),!a&&(l||c)&&(this._setStyles(t,n,r),l&&(t.fill(s.getFillRule()),t.shadowColor="rgba(0,0,0,0)"),c)){if(d){i||t.beginPath();for(var p,f=new V(this,.25,32,!1,o),m=f.length,g=-s.getDashOffset(),v=0;g>0;)g-=h(v--)+h(v--);for(;g<m;)p=g+h(v++),(g>0||p>0)&&f.drawPart(t,Math.max(g,0),Math.max(p,0)),g=p+h(v++)}t.stroke()}},_drawSelected:function(t,n){t.beginPath(),e(t,this,n),t.stroke(),function(e,t,n,r){if(!(r<=0))for(var o,i,a=r/2,s=r-2,l=a-1,c=new Array(6),u=0,d=t.length;u<d;u++){var h=t[u],p=h._selection;if(h._transformCoordinates(n,c),o=c[0],i=c[1],2&p&&m(2),4&p&&m(4),e.fillRect(o-a,i-a,r,r),s>0&&!(1&p)){var f=e.fillStyle;e.fillStyle="#ffffff",e.fillRect(o-l,i-l,s,s),e.fillStyle=f}}function m(t){var n=c[t],r=c[t+1];o==n&&i==r||(e.beginPath(),e.moveTo(o,i),e.lineTo(n,r),e.stroke(),e.beginPath(),e.arc(n,r,a,0,2*Math.PI,!0),e.fill())}}(t,this._segments,n,he.settings.handleSize)}}},new function(){function e(e){var t=e._segments;if(!t.length)throw new Error("Use a moveTo() command first");return t[t.length-1]}return{moveTo:function(){var e=this._segments;1===e.length&&this.removeSegment(0),e.length||this._add([new N(y.read(arguments))])},moveBy:function(){throw new Error("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([new N(y.read(arguments))])},cubicCurveTo:function(){var t=arguments,n=y.read(t),r=y.read(t),o=y.read(t),i=e(this);i.setHandleOut(n.subtract(i._point)),this._add([new N(o,r.subtract(o))])},quadraticCurveTo:function(){var t=arguments,n=y.read(t),r=y.read(t),o=e(this)._point;this.cubicCurveTo(n.add(o.subtract(n).multiply(1/3)),n.add(r.subtract(n).multiply(1/3)),r)},curveTo:function(){var t=arguments,n=y.read(t),r=y.read(t),o=u.pick(u.read(t),.5),i=1-o,a=e(this)._point,s=n.subtract(a.multiply(i*i)).subtract(r.multiply(o*o)).divide(2*o*i);if(s.isNaN())throw new Error("Cannot put a curve through points with parameter = "+o);this.quadraticCurveTo(s,r)},arcTo:function(){var t,n,r,o,i=arguments,a=Math.abs,s=Math.sqrt,l=e(this),c=l._point,d=y.read(i),h=u.peek(i);if("boolean"==typeof(b=u.pick(h,!0)))var p=(_=c.add(d).divide(2)).add(_.subtract(c).rotate(b?-90:90));else if(u.remain(i)<=2)p=d,d=y.read(i);else if(!c.equals(d)){var f=w.read(i),m=g.isZero;if(m(f.width)||m(f.height))return this.lineTo(d);var v=u.read(i),b=!!u.read(i),C=!!u.read(i),_=c.add(d).divide(2),x=(q=c.subtract(_).rotate(-v)).x,P=q.y,T=a(f.width),E=a(f.height),O=T*T,M=E*E,A=x*x,D=P*P,I=s(A/O+D/M);if(I>1&&(O=(T*=I)*T,M=(E*=I)*E),a(I=(O*M-O*D-M*A)/(O*D+M*A))<1e-12&&(I=0),I<0)throw new Error("Cannot create an arc with the given arguments");t=new y(T*P/E,-E*x/T).multiply((C===b?-1:1)*s(I)).rotate(v).add(_),n=(r=(o=(new S).translate(t).rotate(v).scale(T,E))._inverseTransform(c)).getDirectedAngle(o._inverseTransform(d)),!b&&n>0?n-=360:b&&n<0&&(n+=360)}if(p){var L=new k(c.add(p).divide(2),p.subtract(c).rotate(90),!0),j=new k(p.add(d).divide(2),d.subtract(p).rotate(90),!0),R=new k(c,d),z=R.getSide(p);if(!(t=L.intersect(j,!0))){if(!z)return this.lineTo(d);throw new Error("Cannot create an arc with the given arguments")}n=(r=c.subtract(t)).getDirectedAngle(d.subtract(t));var F=R.getSide(t,!0);0===F?n=z*a(n):z===F&&(n+=n<0?360:-360)}if(n){for(var B=1e-7,H=a(n),V=H>=360?4:Math.ceil((H-B)/90),Y=n/V,W=Y*Math.PI/360,U=4/3*Math.sin(W)/(1+Math.cos(W)),K=[],G=0;G<=V;G++){var q=d,$=null;if(G<V&&($=r.rotate(90).multiply(U),o?(q=o._transformPoint(r),$=o._transformPoint(r.add($)).subtract(q)):q=t.add(r)),G){var X=r.rotate(-90).multiply(U);o&&(X=o._transformPoint(r.add(X)).subtract(q)),K.push(new N(q,X,$))}else l.setHandleOut($);r=r.rotate(Y)}this._add(K)}},lineBy:function(){var t=y.read(arguments),n=e(this)._point;this.lineTo(n.add(t))},curveBy:function(){var t=arguments,n=y.read(t),r=y.read(t),o=u.read(t),i=e(this)._point;this.curveTo(i.add(n),i.add(r),o)},cubicCurveBy:function(){var t=arguments,n=y.read(t),r=y.read(t),o=y.read(t),i=e(this)._point;this.cubicCurveTo(i.add(n),i.add(r),i.add(o))},quadraticCurveBy:function(){var t=arguments,n=y.read(t),r=y.read(t),o=e(this)._point;this.quadraticCurveTo(o.add(n),o.add(r))},arcBy:function(){var t=arguments,n=e(this)._point,r=n.add(y.read(t)),o=u.pick(u.peek(t),!0);"boolean"==typeof o?this.arcTo(r,o):this.arcTo(r,n.add(y.read(t)))},closePath:function(e){this.setClosed(!0),this.join(this,e)}}},{_getBounds:function(e,t){var n=t.handle?"getHandleBounds":t.stroke?"getStrokeBounds":"getBounds";return B[n](this._segments,this._closed,this,e,t)},statics:{getBounds:function(e,t,n,r,o,i){var a=e[0];if(!a)return new _;var s=new Array(6),l=a._transformCoordinates(r,new Array(6)),c=l.slice(0,2),u=c.slice(),d=new Array(2);function h(e){e._transformCoordinates(r,s);for(var t=0;t<2;t++)R._addBounds(l[t],l[t+4],s[t+2],s[t],t,i?i[t]:0,c,u,d);var n=l;l=s,s=n}for(var p=1,f=e.length;p<f;p++)h(e[p]);return t&&h(a),new _(c[0],c[1],u[0]-c[0],u[1]-c[1])},getStrokeBounds:function(e,t,n,r,o){var i=n.getStyle(),a=i.hasStroke(),s=i.getStrokeWidth(),l=a&&n._getStrokeMatrix(r,o),c=a&&B._getStrokePadding(s,l),u=B.getBounds(e,t,n,r,o,c);if(!a)return u;var d=s/2,h=i.getStrokeJoin(),p=i.getStrokeCap(),f=i.getMiterLimit(),m=new _(new w(c));function g(e){u=u.include(e)}function v(e){u=u.unite(m.setCenter(e._point.transform(r)))}function y(e,t){"round"===t||e.isSmooth()?v(e):B._addBevelJoin(e,t,d,f,r,l,g)}function b(e,t){"round"===t?v(e):B._addSquareCap(e,t,d,r,l,g)}var C=e.length-(t?0:1);if(C>0){for(var x=1;x<C;x++)y(e[x],h);t?y(e[0],h):(b(e[0],p),b(e[e.length-1],p))}return u},_getStrokePadding:function(e,t){if(!t)return[e,e];var n=new y(e,0).transform(t),r=new y(0,e).transform(t),o=n.getAngleInRadians(),i=n.getLength(),a=r.getLength(),s=Math.sin(o),l=Math.cos(o),c=Math.tan(o),u=Math.atan2(a*c,i),d=Math.atan2(a,c*i);return[Math.abs(i*Math.cos(u)*l+a*Math.sin(u)*s),Math.abs(a*Math.sin(d)*l+i*Math.cos(d)*s)]},_addBevelJoin:function(e,t,n,r,o,i,a,s){var l=e.getCurve(),c=l.getPrevious(),u=l.getPoint1().transform(o),d=c.getNormalAtTime(1).multiply(n).transform(i),h=l.getNormalAtTime(0).multiply(n).transform(i),p=d.getDirectedAngle(h);if((p<0||p>=180)&&(d=d.negate(),h=h.negate()),s&&a(u),a(u.add(d)),"miter"===t){var f=new k(u.add(d),new y(-d.y,d.x),!0).intersect(new k(u.add(h),new y(-h.y,h.x),!0),!0);f&&u.getDistance(f)<=r*n&&a(f)}a(u.add(h))},_addSquareCap:function(e,t,n,r,o,i,a){var s=e._point.transform(r),l=e.getLocation(),c=l.getNormal().multiply(0===l.getTime()?n:-n).transform(o);"square"===t&&(a&&(i(s.subtract(c)),i(s.add(c))),s=s.add(c.rotate(-90))),i(s.add(c)),i(s.subtract(c))},getHandleBounds:function(e,t,n,r,o){var i,a,s=n.getStyle();if(o.stroke&&s.hasStroke()){var l=n._getStrokeMatrix(r,o),c=s.getStrokeWidth()/2,u=c;"miter"===s.getStrokeJoin()&&(u=c*s.getMiterLimit()),"square"===s.getStrokeCap()&&(u=Math.max(u,c*Math.SQRT2)),i=B._getStrokePadding(c,l),a=B._getStrokePadding(u,l)}for(var d=new Array(6),h=1/0,p=-h,f=h,m=p,g=0,v=e.length;g<v;g++){e[g]._transformCoordinates(r,d);for(var y=0;y<6;y+=2){var b=y?i:a,w=b?b[0]:0,C=b?b[1]:0,x=d[y],S=d[y+1],k=x-w,P=x+w,T=S-C,E=S+C;k<h&&(h=k),P>p&&(p=P),T<f&&(f=T),E>m&&(m=E)}}return new _(h,f,p-h,m-f)}}});B.inject({statics:new function(){var e=.5522847498307936,t=[new N([-1,0],[0,e],[0,-e]),new N([0,-1],[-e,0],[e,0]),new N([1,0],[0,-e],[0,e]),new N([0,1],[e,0],[-e,0])];function n(e,t,n){var r=u.getNamed(n),o=new B(r&&0==r.insert&&T.NO_INSERT);return o._add(e),o._closed=t,o.set(r,{insert:!0})}function r(e,r,o){for(var i=new Array(4),a=0;a<4;a++){var s=t[a];i[a]=new N(s._point.multiply(r).add(e),s._handleIn.multiply(r),s._handleOut.multiply(r))}return n(i,!0,o)}return{Line:function(){var e=arguments;return n([new N(y.readNamed(e,"from")),new N(y.readNamed(e,"to"))],!1,e)},Circle:function(){var e=arguments,t=y.readNamed(e,"center"),n=u.readNamed(e,"radius");return r(t,new w(n),e)},Rectangle:function(){var t,r=arguments,o=_.readNamed(r,"rectangle"),i=w.readNamed(r,"radius",0,{readNull:!0}),a=o.getBottomLeft(!0),s=o.getTopLeft(!0),l=o.getTopRight(!0),c=o.getBottomRight(!0);if(!i||i.isZero())t=[new N(a),new N(s),new N(l),new N(c)];else{var u=(i=w.min(i,o.getSize(!0).divide(2))).width,d=i.height,h=u*e,p=d*e;t=[new N(a.add(u,0),null,[-h,0]),new N(a.subtract(0,d),[0,p]),new N(s.add(0,d),null,[0,-p]),new N(s.add(u,0),[-h,0],null),new N(l.subtract(u,0),null,[h,0]),new N(l.add(0,d),[0,-p],null),new N(c.subtract(0,d),null,[0,p]),new N(c.subtract(u,0),[h,0])]}return n(t,!0,r)},RoundRectangle:"#Rectangle",Ellipse:function(){var e=arguments,t=M._readEllipse(e);return r(t.center,t.radius,e)},Oval:"#Ellipse",Arc:function(){var e=arguments,t=y.readNamed(e,"from"),n=y.readNamed(e,"through"),r=y.readNamed(e,"to"),o=u.getNamed(e),i=new B(o&&0==o.insert&&T.NO_INSERT);return i.moveTo(t),i.arcTo(n,r),i.set(o)},RegularPolygon:function(){for(var e=arguments,t=y.readNamed(e,"center"),r=u.readNamed(e,"sides"),o=u.readNamed(e,"radius"),i=360/r,a=r%3==0,s=new y(0,a?-o:o),l=a?-1:.5,c=new Array(r),d=0;d<r;d++)c[d]=new N(t.add(s.rotate((d+l)*i)));return n(c,!0,e)},Star:function(){for(var e=arguments,t=y.readNamed(e,"center"),r=2*u.readNamed(e,"points"),o=u.readNamed(e,"radius1"),i=u.readNamed(e,"radius2"),a=360/r,s=new y(0,-1),l=new Array(r),c=0;c<r;c++)l[c]=new N(t.add(s.rotate(a*c).multiply(c%2?i:o)));return n(l,!0,e)}}}});var H=F.extend({_class:"CompoundPath",_serializeFields:{children:[]},beans:!0,initialize:function(e){this._children=[],this._namedChildren={},this._initialize(e)||("string"==typeof e?this.setPathData(e):this.addChildren(Array.isArray(e)?e:arguments))},insertChildren:function e(t,n){var r=n,o=r[0];o&&"number"==typeof o[0]&&(r=[r]);for(var i=n.length-1;i>=0;i--){var a=r[i];r!==n||a instanceof B||(r=u.slice(r)),Array.isArray(a)?r[i]=new B({segments:a,insert:!1}):a instanceof H&&(r.splice.apply(r,[i,1].concat(a.removeChildren())),a.remove())}return e.base.call(this,t,r)},reduce:function e(t){for(var n=this._children,r=n.length-1;r>=0;r--){var o;(o=n[r].reduce(t)).isEmpty()&&o.remove()}return n.length?e.base.call(this):((o=new B(T.NO_INSERT)).copyAttributes(this),o.insertAbove(this),this.remove(),o)},isClosed:function(){for(var e=this._children,t=0,n=e.length;t<n;t++)if(!e[t]._closed)return!1;return!0},setClosed:function(e){for(var t=this._children,n=0,r=t.length;n<r;n++)t[n].setClosed(e)},getFirstSegment:function(){var e=this.getFirstChild();return e&&e.getFirstSegment()},getLastSegment:function(){var e=this.getLastChild();return e&&e.getLastSegment()},getCurves:function(){for(var e=this._children,t=[],n=0,r=e.length;n<r;n++)u.push(t,e[n].getCurves());return t},getFirstCurve:function(){var e=this.getFirstChild();return e&&e.getFirstCurve()},getLastCurve:function(){var e=this.getLastChild();return e&&e.getLastCurve()},getArea:function(){for(var e=this._children,t=0,n=0,r=e.length;n<r;n++)t+=e[n].getArea();return t},getLength:function(){for(var e=this._children,t=0,n=0,r=e.length;n<r;n++)t+=e[n].getLength();return t},getPathData:function(e,t){for(var n=this._children,r=[],o=0,i=n.length;o<i;o++){var a=n[o],s=a._matrix;r.push(a.getPathData(e&&!s.isIdentity()?e.appended(s):e,t))}return r.join("")},_hitTestChildren:function e(t,n,r){return e.base.call(this,t,n.class===B||"path"===n.type?n:u.set({},n,{fill:!1}),r)},_draw:function(e,t,n,r){var o=this._children;if(o.length){t=t.extend({dontStart:!0,dontFinish:!0}),e.beginPath();for(var i=0,a=o.length;i<a;i++)o[i].draw(e,t,r);if(!t.clip){this._setStyles(e,t,n);var s=this._style;s.hasFill()&&(e.fill(s.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),s.hasStroke()&&e.stroke()}}},_drawSelected:function(e,t,n){for(var r=this._children,o=0,i=r.length;o<i;o++){var a=r[o],s=a._matrix;n[a._id]||a._drawSelected(e,s.isIdentity()?t:t.appended(s))}}},new function(){function e(e,t){var n=e._children;if(t&&!n.length)throw new Error("Use a moveTo() command first");return n[n.length-1]}return u.each(["lineTo","cubicCurveTo","quadraticCurveTo","curveTo","arcTo","lineBy","cubicCurveBy","quadraticCurveBy","curveBy","arcBy"],(function(t){this[t]=function(){var n=e(this,!0);n[t].apply(n,arguments)}}),{moveTo:function(){var t=e(this),n=t&&t.isEmpty()?t:new B(T.NO_INSERT);n!==t&&this.addChild(n),n.moveTo.apply(n,arguments)},moveBy:function(){var t=e(this,!0),n=t&&t.getLastSegment(),r=y.read(arguments);this.moveTo(n?r.add(n._point):r)},closePath:function(t){e(this,!0).closePath(t)}})},u.each(["reverse","flatten","simplify","smooth"],(function(e){this[e]=function(t){for(var n,r=this._children,o=0,i=r.length;o<i;o++)n=r[o][e](t)||n;return n}}),{}));F.inject(new function(){var e=Math.min,t=Math.max,n=Math.abs,r={unite:{1:!0,2:!0},intersect:{2:!0},subtract:{1:!0},exclude:{1:!0,"-1":!0}};function o(e){return e._children||[e]}function i(e,t){var n=e.clone(!1).reduce({simplify:!0}).transform(null,!0,!0);if(t){for(var r=o(n),i=0,a=r.length;i<a;i++){(e=r[i])._closed||e.isEmpty()||(e.closePath(1e-12),e.getFirstSegment().setHandleIn(0,0),e.getLastSegment().setHandleOut(0,0))}n=n.resolveCrossings().reorient("nonzero"===n.getFillRule(),!0)}return n}function a(e,t,n,r,o){var i=new H(T.NO_INSERT);return i.addChildren(e,!0),i=i.reduce({simplify:t}),o&&0==o.insert||i.insertAbove(r&&n.isSibling(r)&&n.getIndex()<r.getIndex()?r:n),i.copyAttributes(n,!0),i}function l(e){return e.hasOverlap()||e.isCrossing()}function c(e,t,n,s){if(s&&(0==s.trace||s.stroke)&&/^(subtract|intersect)$/.test(n))return d(e,t,n);var c=i(e,!0),h=t&&e!==t&&i(t,!0),p=r[n];p[n]=!0,h&&(p.subtract||p.exclude)^h.isClockwise()^c.isClockwise()&&h.reverse();var g,y=v(z.expand(c.getIntersections(h,l))),C=o(c),_=h&&o(h),x=[],S=[];function k(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];u.push(x,r._segments),u.push(S,r.getCurves()),r._overlapsOnly=!0}}function P(e){for(var t=[],n=0,r=e&&e.length;n<r;n++)t.push(S[e[n]]);return t}if(y.length){k(C),_&&k(_);for(var T=new Array(S.length),E=0,O=S.length;E<O;E++)T[E]=S[E].getValues();var M=f.findCurveBoundsCollisions(T,T,0,!0),A={};for(E=0;E<S.length;E++){var D=S[E],I=D._path._id;(A[I]=A[I]||{})[D.getIndex()]={hor:P(M[E].hor),ver:P(M[E].ver)}}for(E=0,O=y.length;E<O;E++)b(y[E]._segment,c,h,A,p);for(E=0,O=x.length;E<O;E++){var L=x[E],N=L._intersection;L._winding||b(L,c,h,A,p),N&&N._overlap||(L._path._overlapsOnly=!1)}g=w(x,p)}else g=m(_?C.concat(_):C.slice(),(function(e){return!!p[e]}));return a(g,!0,e,t,s)}function d(e,t,n){var r=i(e),o=i(t),s=r.getIntersections(o,l),c="subtract"===n,u="divide"===n,d={},h=[];function p(e){if(!d[e._id]&&(u||o.contains(e.getPointAt(e.getLength()/2))^c))return h.unshift(e),d[e._id]=!0}for(var f=s.length-1;f>=0;f--){var m=s[f].split();m&&(p(m)&&m.getFirstSegment().setHandleIn(0,0),r.getLastSegment().setHandleOut(0,0))}return p(r),a(h,!1,e,t)}function h(e,t){for(var n=e;n;){if(n===t)return;n=n._previous}for(;e._next&&e._next!==t;)e=e._next;if(!e._next){for(;t._previous;)t=t._previous;e._next=t,t._previous=e}}function p(e){for(var t=e.length-1;t>=0;t--)e[t].clearHandles()}function m(e,t,r){var o=e&&e.length;if(o){var i=u.each(e,(function(e,t){this[e._id]={container:null,winding:e.isClockwise()?1:-1,index:t}}),{}),a=e.slice().sort((function(e,t){return n(t.getArea())-n(e.getArea())})),s=a[0],l=f.findItemBoundsCollisions(a,null,g.GEOMETRIC_EPSILON);null==r&&(r=s.isClockwise());for(var c=0;c<o;c++){var d=a[c],h=i[d._id],p=0,m=l[c];if(m)for(var v=null,y=m.length-1;y>=0;y--)if(m[y]<c){v=v||d.getInteriorPoint();var b=a[m[y]];if(b.contains(v)){var w=i[b._id];p=w.winding,h.winding+=p,h.container=w.exclude?w.container:b;break}}if(t(h.winding)===t(p))h.exclude=!0,e[h.index]=null;else{var C=h.container;d.setClockwise(C?!C.isClockwise():r)}}}return e}function v(e,t,n){var r,o,i,a=t&&[],s=!1,l=n||[],c=n&&{};function u(e){return e._path._id+"."+e._segment1._index}for(var d=(n&&n.length)-1;d>=0;d--){(f=n[d])._path&&(c[u(f)]=!0)}for(d=e.length-1;d>=0;d--){var f,m,g=e[d],v=g._time,y=v,b=t&&!t(g);if((f=g._curve)&&(f!==o?(s=!f.hasHandles()||c&&c[u(f)],r=[],i=null,o=f):i>=1e-8&&(v/=i)),b)r&&r.push(g);else{if(t&&a.unshift(g),i=y,v<1e-8)m=f._segment1;else if(v>1-1e-8)m=f._segment2;else{var w=f.divideAtTime(v,!0);s&&l.push(f,w),m=w._segment1;for(var C=r.length-1;C>=0;C--){var _=r[C];_._time=(_._time-v)/(1-v)}}g._setSegment(m);var x=m._intersection,S=g._intersection;if(x){h(x,S);for(var k=x;k;)h(k._intersection,x),k=k._next}else m._intersection=S}}return n||p(l),a||e}function y(r,o,i,a,s){var l,c,u=Array.isArray(o)?o:o[i?"hor":"ver"],d=i?1:0,h=1^d,p=[r.x,r.y],f=p[d],m=p[h],g=f-1e-9,v=f+1e-9,b=0,w=0,C=0,_=0,x=!1,S=!1,k=1,P=[];function T(n){var c=n[h+0],u=n[h+6];if(!(m<e(c,u)||m>t(c,u))){var p=n[d+0],b=n[d+2],w=n[d+4],S=n[d+6];if(c!==u){var T=m===c?0:m===u||g>t(p,b,w,S)||v<e(p,b,w,S)?1:R.solveCubic(n,h,m,P,0,1)>0?P[0]:1,E=0===T?p:1===T?S:R.getPoint(n,T)[i?"y":"x"],O=c>u?1:-1,M=l[h]>l[h+6]?1:-1,A=l[d+6];return m!==c?(E<g?C+=O:E>v?_+=O:x=!0,E>f-1e-6&&E<f+1e-6&&(k/=2)):(O!==M?p<g?C+=O:p>v&&(_+=O):p!=A&&(A<v&&E>v?(_+=O,x=!0):A>g&&E<g&&(C+=O,x=!0)),k/=4),l=n,!s&&E>g&&E<v&&0===R.getTangent(n,T)[i?"x":"y"]&&y(r,o,!i,a,!0)}(p<v&&S>g||S<v&&p>g)&&(x=!0)}}function E(n){var r=n[h+0],o=n[h+2],a=n[h+4],s=n[h+6];if(m<=t(r,o,a,s)&&m>=e(r,o,a,s))for(var l,c=n[d+0],u=n[d+2],p=n[d+4],f=n[d+6],y=g>t(c,u,p,f)||v<e(c,u,p,f)?[n]:R.getMonoCurves(n,i),b=0,w=y.length;b<w;b++)if(l=T(y[b]))return l}for(var O=0,M=u.length;O<M;O++){var A,D=u[O],I=D._path,L=D.getValues();if(!(O&&u[O-1]._path===I||(l=null,I._closed||(c=R.getValues(I.getLastCurve().getSegment2(),D.getSegment1(),null,!a))[h]!==c[h+6]&&(l=c),l))){l=L;for(var N=I.getLastCurve();N&&N!==D;){var j=N.getValues();if(j[h]!==j[h+6]){l=j;break}N=N.getPrevious()}}if(A=E(L))return A;if(O+1===M||u[O+1]._path!==I){if(c&&(A=E(c)))return A;!x||C||_||(C=_=I.isClockwise(a)^i?1:-1),b+=C,w+=_,C=_=0,x&&(S=!0,x=!1),c=null}}return b=n(b),w=n(w),{winding:t(b,w),windingL:b,windingR:w,quality:k,onPath:S}}function b(e,t,r,o,i){var a=[],s=e,l=0;do{if(b=e.getCurve()){var c=b.getLength();a.push({segment:e,curve:b,length:c}),l+=c}e=e.getNext()}while(e&&!e._intersection&&e!==s);for(var u=[.5,.25,.75],d={winding:0,quality:-1},h=0;h<u.length&&d.quality<.5;h++){c=l*u[h];for(var p=0,f=a.length;p<f;p++){var m=a[p],v=m.length;if(c<=v){var b,w=(b=m.curve)._path,C=w._parent,_=C instanceof H?C:w,x=g.clamp(b.getTimeAt(c),.001,.999),S=b.getPointAtTime(x),k=n(b.getTangentAtTime(x).y)<Math.SQRT1_2,P=null;if(i.subtract&&r){var T=(_===t?r:t)._getWinding(S,k,!0);if(_===t&&T.winding||_===r&&!T.winding){if(T.quality<1)continue;P={winding:0,quality:1}}}(P=P||y(S,o[w._id][b.getIndex()],k,!0)).quality>d.quality&&(d=P);break}c-=v}}for(p=a.length-1;p>=0;p--)a[p].segment._winding=d}function w(e,t){var n,r=[];function o(e){var n;return!(!e||e._visited||t&&(!t[(n=e._winding||{}).winding]||t.unite&&2===n.winding&&n.windingL&&n.windingR))}function i(e){if(e)for(var t=0,r=n.length;t<r;t++)if(e===n[t])return!0;return!1}function a(e){for(var t=e._segments,n=0,r=t.length;n<r;n++)t[n]._visited=!0}function s(e,t){var r=e._intersection,a=r,s=[];function l(r,a){for(;r&&r!==a;){var l=r._segment,c=l&&l._path;if(c){var u=l.getNext()||c.getFirstSegment(),d=u._intersection;l!==e&&(i(l)||i(u)||u&&o(l)&&(o(u)||d&&o(d._segment)))&&s.push(l),t&&n.push(l)}r=r._next}}if(t&&(n=[e]),r){for(l(r);r&&r._previous;)r=r._previous;l(r,a)}return s}e.sort((function(e,t){var n=e._intersection,r=t._intersection,o=!(!n||!n._overlap),i=!(!r||!r._overlap),a=e._path,s=t._path;return o^i?o?1:-1:!n^!r?n?1:-1:a!==s?a._id-s._id:e._index-t._index}));for(var l=0,c=e.length;l<c;l++){var u,d,h,p=e[l],f=o(p),m=null,g=!1,v=!0,y=[];if(f&&p._path._overlapsOnly){var b=p._path,w=p._intersection._segment._path;b.compare(w)&&(b.getArea()&&r.push(b.clone(!1)),a(b),a(w),f=!1)}for(;f;){var C=!m,_=s(p,C),x=_.shift(),S=!(g=!C&&(i(p)||i(x)))&&x;if(C&&(m=new B(T.NO_INSERT),u=null),g){(p.isFirst()||p.isLast())&&(v=p._path._closed),p._visited=!0;break}if(S&&u&&(y.push(u),u=null),u||(S&&_.push(p),u={start:m._segments.length,crossings:_,visited:d=[],handleIn:h}),S&&(p=x),!o(p)){m.removeSegments(u.start);for(var k=0,P=d.length;k<P;k++)d[k]._visited=!1;d.length=0;do{(p=u&&u.crossings.shift())&&p._path||(p=null,(u=y.pop())&&(d=u.visited,h=u.handleIn))}while(u&&!o(p));if(!p)break}var E=p.getNext();m.add(new N(p._point,h,E&&p._handleOut)),p._visited=!0,d.push(p),p=E||p._path.getFirstSegment(),h=E&&E._handleIn}g&&(v&&(m.getFirstSegment().setHandleIn(h),m.setClosed(v)),0!==m.getArea()&&r.push(m))}return r}return{_getWinding:function(e,t,n){return y(e,this.getCurves(),t,n)},unite:function(e,t){return c(this,e,"unite",t)},intersect:function(e,t){return c(this,e,"intersect",t)},subtract:function(e,t){return c(this,e,"subtract",t)},exclude:function(e,t){return c(this,e,"exclude",t)},divide:function(e,t){return t&&(0==t.trace||t.stroke)?d(this,e,"divide"):a([this.subtract(e,t),this.intersect(e,t)],!0,this,e,t)},resolveCrossings:function(){var e=this._children,t=e||[this];function n(e,t){var n=e&&e._intersection;return n&&n._overlap&&n._path===t}var r=!1,o=!1,i=this.getIntersections(null,(function(e){return e.hasOverlap()&&(r=!0)||e.isCrossing()&&(o=!0)})),a=r&&o&&[];if(i=z.expand(i),r)for(var s=v(i,(function(e){return e.hasOverlap()}),a),l=s.length-1;l>=0;l--){var c=s[l],d=c._path,h=c._segment,f=h.getPrevious(),m=h.getNext();n(f,d)&&n(m,d)&&(h.remove(),f._handleOut._set(0,0),m._handleIn._set(0,0),f===h||f.getCurve().hasLength()||(m._handleIn.set(f._handleIn),f.remove()))}o&&(v(i,r&&function(e){var t=e.getCurve(),n=e.getSegment(),r=e._intersection,o=r._curve,i=r._segment;if(t&&o&&t._path&&o._path)return!0;n&&(n._intersection=null),i&&(i._intersection=null)},a),a&&p(a),t=w(u.each(t,(function(e){u.push(this,e._segments)}),[])));var g,y=t.length;return y>1&&e?(t!==e&&this.setChildren(t),g=this):1!==y||e||(t[0]!==this&&this.setSegments(t[0].removeSegments()),g=this),g||((g=new H(T.NO_INSERT)).addChildren(t),(g=g.reduce()).copyAttributes(this),this.replaceWith(g)),g},reorient:function(e,t){var n=this._children;return n&&n.length?this.setChildren(m(this.removeChildren(),(function(t){return!!(e?t:1&t)}),t)):t!==s&&this.setClockwise(t),this},getInteriorPoint:function(){var n=this.getBounds().getCenter(!0);if(!this.contains(n)){for(var r=this.getCurves(),o=n.y,i=[],a=[],s=0,l=r.length;s<l;s++){var c=r[s].getValues(),u=c[1],d=c[3],h=c[5],p=c[7];if(o>=e(u,d,h,p)&&o<=t(u,d,h,p))for(var f=R.getMonoCurves(c),m=0,g=f.length;m<g;m++){var v=f[m],y=v[1],b=v[7];if(y!==b&&(o>=y&&o<=b||o>=b&&o<=y)){var w=o===y?v[0]:o===b?v[6]:1===R.solveCubic(v,1,o,a,0,1)?R.getPoint(v,a[0]).x:(v[0]+v[6])/2;i.push(w)}}}i.length>1&&(i.sort((function(e,t){return e-t})),n.x=(i[0]+i[1])/2)}return n}}});var V=u.extend({_class:"PathFlattener",initialize:function(e,t,n,r,o){var i,a=[],s=[],l=0,c=1/(n||32),u=e._segments,d=u[0];function h(e,n){var i=R.getValues(e,n,o);a.push(i),function e(n,o,i,a){if(!(a-i>c)||r&&R.isStraight(n)||R.isFlatEnough(n,t||.25)){var u=n[6]-n[0],d=n[7]-n[1],h=Math.sqrt(u*u+d*d);h>0&&(l+=h,s.push({offset:l,curve:n,index:o,time:a}))}else{var p=R.subdivide(n,.5),f=(i+a)/2;e(p[0],o,i,f),e(p[1],o,f,a)}}(i,e._index,0,1)}for(var p=1,f=u.length;p<f;p++)h(d,i=u[p]),d=i;e._closed&&h(i||d,u[0]),this.curves=a,this.parts=s,this.length=l,this.index=0},_get:function(e){for(var t,n=this.parts,r=n.length,o=this.index;t=o,o&&!(n[--o].offset<e););for(;t<r;t++){var i=n[t];if(i.offset>=e){this.index=t;var a=n[t-1],s=a&&a.index===i.index?a.time:0,l=a?a.offset:0;return{index:i.index,time:s+(i.time-s)*(e-l)/(i.offset-l)}}}return{index:n[r-1].index,time:1}},drawPart:function(e,t,n){for(var r=this._get(t),o=this._get(n),i=r.index,a=o.index;i<=a;i++){var s=R.getPart(this.curves[i],i===r.index?r.time:0,i===o.index?o.time:1);i===r.index&&e.moveTo(s[0],s[1]),e.bezierCurveTo.apply(e,s.slice(2))}}},u.each(R._evaluateMethods,(function(e){this[e+"At"]=function(t){var n=this._get(t);return R[e](this.curves[n.index],n.time)}}),{})),Y=u.extend({initialize:function(e){for(var t,n=this.points=[],r=e._segments,o=e._closed,i=0,a=r.length;i<a;i++){var s=r[i].point;t&&t.equals(s)||n.push(t=s.clone())}o&&(n.unshift(n[n.length-1]),n.push(n[1])),this.closed=o},fit:function(e){var t=this.points,n=t.length,r=null;return n>0&&(r=[new N(t[0])],n>1&&(this.fitCubic(r,e,0,n-1,t[1].subtract(t[0]),t[n-2].subtract(t[n-1])),this.closed&&(r.shift(),r.pop()))),r},fitCubic:function(e,t,n,r,o,i){var a=this.points;if(r-n!=1){for(var s,l=this.chordLengthParameterize(n,r),c=Math.max(t,t*t),u=!0,d=0;d<=4;d++){var h=this.generateBezier(n,r,l,o,i),p=this.findMaxError(n,r,h,l);if(p.error<t&&u)return void this.addCurve(e,h);if(s=p.index,p.error>=c)break;u=this.reparameterize(n,r,l,h),c=p.error}var f=a[s-1].subtract(a[s+1]);this.fitCubic(e,t,n,s,o,f),this.fitCubic(e,t,s,r,f.negate(),i)}else{var m=a[n],g=a[r],v=m.getDistance(g)/3;this.addCurve(e,[m,m.add(o.normalize(v)),g.add(i.normalize(v)),g])}},addCurve:function(e,t){e[e.length-1].setHandleOut(t[1].subtract(t[0])),e.push(new N(t[3],t[2].subtract(t[3])))},generateBezier:function(e,t,n,r,o){for(var i=Math.abs,a=this.points,s=a[e],l=a[t],c=[[0,0],[0,0]],u=[0,0],d=0,h=t-e+1;d<h;d++){var p=n[d],f=1-p,m=3*p*f,g=f*f*f,v=m*f,y=m*p,b=p*p*p,w=r.normalize(v),C=o.normalize(y),_=a[e+d].subtract(s.multiply(g+v)).subtract(l.multiply(y+b));c[0][0]+=w.dot(w),c[0][1]+=w.dot(C),c[1][0]=c[0][1],c[1][1]+=C.dot(C),u[0]+=w.dot(_),u[1]+=C.dot(_)}var x,S,k=c[0][0]*c[1][1]-c[1][0]*c[0][1];if(i(k)>1e-12){var P=c[0][0]*u[1]-c[1][0]*u[0];x=(u[0]*c[1][1]-u[1]*c[0][1])/k,S=P/k}else{var T=c[0][0]+c[0][1],E=c[1][0]+c[1][1];x=S=i(T)>1e-12?u[0]/T:i(E)>1e-12?u[1]/E:0}var O,M,A=l.getDistance(s),D=1e-12*A;if(x<D||S<D)x=S=A/3;else{var I=l.subtract(s);O=r.normalize(x),M=o.normalize(S),O.dot(I)-M.dot(I)>A*A&&(x=S=A/3,O=M=null)}return[s,s.add(O||r.normalize(x)),l.add(M||o.normalize(S)),l]},reparameterize:function(e,t,n,r){for(var o=e;o<=t;o++)n[o-e]=this.findRoot(r,this.points[o],n[o-e]);o=1;for(var i=n.length;o<i;o++)if(n[o]<=n[o-1])return!1;return!0},findRoot:function(e,t,n){for(var r=[],o=[],i=0;i<=2;i++)r[i]=e[i+1].subtract(e[i]).multiply(3);for(i=0;i<=1;i++)o[i]=r[i+1].subtract(r[i]).multiply(2);var a=this.evaluate(3,e,n),s=this.evaluate(2,r,n),l=this.evaluate(1,o,n),c=a.subtract(t),u=s.dot(s)+c.dot(l);return g.isMachineZero(u)?n:n-c.dot(s)/u},evaluate:function(e,t,n){for(var r=t.slice(),o=1;o<=e;o++)for(var i=0;i<=e-o;i++)r[i]=r[i].multiply(1-n).add(r[i+1].multiply(n));return r[0]},chordLengthParameterize:function(e,t){for(var n=[0],r=e+1;r<=t;r++)n[r-e]=n[r-e-1]+this.points[r].getDistance(this.points[r-1]);r=1;for(var o=t-e;r<=o;r++)n[r]/=n[o];return n},findMaxError:function(e,t,n,r){for(var o=Math.floor((t-e+1)/2),i=0,a=e+1;a<t;a++){var s=this.evaluate(3,n,r[a-e]).subtract(this.points[a]),l=s.x*s.x+s.y*s.y;l>=i&&(i=l,o=a)}return{error:i,index:o}}}),W=T.extend({_class:"TextItem",_applyMatrix:!1,_canApplyMatrix:!1,_serializeFields:{content:null},_boundsOptions:{stroke:!1,handle:!1},initialize:function(e){this._content="",this._lines=[];var t=e&&u.isPlainObject(e)&&e.x===s&&e.y===s;this._initialize(t&&e,!t&&y.read(arguments))},_equals:function(e){return this._content===e._content},copyContent:function(e){this.setContent(e._content)},getContent:function(){return this._content},setContent:function(e){this._content=""+e,this._lines=this._content.split(/\r\n|\n|\r/gm),this._changed(521)},isEmpty:function(){return!this._content},getCharacterStyle:"#getStyle",setCharacterStyle:"#setStyle",getParagraphStyle:"#getStyle",setParagraphStyle:"#setStyle"}),U=W.extend({_class:"PointText",initialize:function(){W.apply(this,arguments)},getPoint:function(){var e=this._matrix.getTranslation();return new b(e.x,e.y,this,"setPoint")},setPoint:function(){var e=y.read(arguments);this.translate(e.subtract(this._matrix.getTranslation()))},_draw:function(e,t,n){if(this._content){this._setStyles(e,t,n);var r=this._lines,o=this._style,i=o.hasFill(),a=o.hasStroke(),s=o.getLeading(),l=e.shadowColor;e.font=o.getFontStyle(),e.textAlign=o.getJustification();for(var c=0,u=r.length;c<u;c++){e.shadowColor=l;var d=r[c];i&&(e.fillText(d,0,0),e.shadowColor="rgba(0,0,0,0)"),a&&e.strokeText(d,0,0),e.translate(0,s)}}},_getBounds:function(e,t){var n=this._style,r=this._lines,o=r.length,i=n.getJustification(),a=n.getLeading(),s=this.getView().getTextWidth(n.getFontStyle(),r),l=0;"left"!==i&&(l-=s/("center"===i?2:1));var c=new _(l,o?-.75*a:0,s,o*a);return e?e._transformBounds(c,c):c}}),K=u.extend(new function(){var e,t={gray:["gray"],rgb:["red","green","blue"],hsb:["hue","saturation","brightness"],hsl:["hue","saturation","lightness"],gradient:["gradient","origin","destination","highlight"]},n={},r={transparent:[0,0,0,0]};function o(t){var n,o=t.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})?$/i)||t.match(/^#([\da-f])([\da-f])([\da-f])([\da-f])?$/i),i="rgb";if(o){var a=o[4]?4:3;n=new Array(a);for(var s=0;s<a;s++){var c=o[s+1];n[s]=parseInt(1==c.length?c+c:c,16)/255}}else if(o=t.match(/^(rgb|hsl)a?\((.*)\)$/)){i=o[1],n=o[2].trim().split(/[,\s]+/g);for(var u="hsl"===i,d=(s=0,Math.min(n.length,4));s<d;s++){var h=n[s];c=parseFloat(h);if(u)if(0===s){var p=h.match(/([a-z]*)$/)[1];c*={turn:360,rad:180/Math.PI,grad:.9}[p]||1}else s<3&&(c/=100);else s<3&&(c/=/%$/.test(h)?100:255);n[s]=c}}else{var f=r[t];if(!f)if(l){e||((e=le.getContext(1,1)).globalCompositeOperation="copy"),e.fillStyle="rgba(0,0,0,0)",e.fillStyle=t,e.fillRect(0,0,1,1);var m=e.getImageData(0,0,1,1).data;f=r[t]=[m[0]/255,m[1]/255,m[2]/255]}else f=[0,0,0];n=f.slice()}return[i,n]}var i=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]],a={"rgb-hsb":function(e,t,n){var r=Math.max(e,t,n),o=r-Math.min(e,t,n);return[0===o?0:60*(r==e?(t-n)/o+(t<n?6:0):r==t?(n-e)/o+2:(e-t)/o+4),0===r?0:o/r,r]},"hsb-rgb":function(e,t,n){var r,o=(e=(e/60%6+6)%6)-(r=Math.floor(e)),a=[n,n*(1-t),n*(1-t*o),n*(1-t*(1-o))];return[a[(r=i[r])[0]],a[r[1]],a[r[2]]]},"rgb-hsl":function(e,t,n){var r=Math.max(e,t,n),o=Math.min(e,t,n),i=r-o,a=0===i,s=(r+o)/2;return[a?0:60*(r==e?(t-n)/i+(t<n?6:0):r==t?(n-e)/i+2:(e-t)/i+4),a?0:s<.5?i/(r+o):i/(2-r-o),s]},"hsl-rgb":function(e,t,n){if(0===t)return[n,n,n];for(var r=[(e=(e/360%1+1)%1)+1/3,e,e-1/3],o=n<.5?n*(1+t):n+t-n*t,i=2*n-o,a=[],s=0;s<3;s++){var l=r[s];l<0&&(l+=1),l>1&&(l-=1),a[s]=6*l<1?i+6*(o-i)*l:2*l<1?o:3*l<2?i+(o-i)*(2/3-l)*6:i}return a},"rgb-gray":function(e,t,n){return[.2989*e+.587*t+.114*n]},"gray-rgb":function(e){return[e,e,e]},"gray-hsb":function(e){return[0,0,e]},"gray-hsl":function(e){return[0,0,e]},"gradient-rgb":function(){return[]},"rgb-gradient":function(){return[]}};return u.each(t,(function(e,r){n[r]=[],u.each(e,(function(e,o){var i=u.capitalize(e),a=/^(hue|saturation)$/.test(e),s=n[r][o]="gradient"===r?"gradient"===e?function(e){var t=this._components[0];return t!==(e=G.read(Array.isArray(e)?e:arguments,0,{readNull:!0}))&&(t&&t._removeOwner(this),e&&e._addOwner(this)),e}:function(){return y.read(arguments,0,{readNull:"highlight"===e,clone:!0})}:function(e){return null==e||isNaN(e)?0:+e};this["get"+i]=function(){return this._type===r||a&&/^hs[bl]$/.test(this._type)?this._components[o]:this._convert(r)[o]},this["set"+i]=function(e){this._type===r||a&&/^hs[bl]$/.test(this._type)||(this._components=this._convert(r),this._properties=t[r],this._type=r),this._components[o]=s.call(this,e),this._changed()}}),this)}),{_class:"Color",_readIndex:!0,initialize:function e(r){var i,a,s,l,c=arguments,d=this.__read,h=0;Array.isArray(r)&&(r=(c=r)[0]);var p=null!=r&&typeof r;if("string"===p&&r in t&&(i=r,r=c[1],Array.isArray(r)?(a=r,s=c[2]):(d&&(h=1),c=u.slice(c,1),p=typeof r)),!a){if(l="number"===p?c:"object"===p&&null!=r.length?r:null){i||(i=l.length>=3?"rgb":"gray");var f=t[i].length;s=l[f],d&&(h+=l===arguments?f+(null!=s?1:0):1),l.length>f&&(l=u.slice(l,0,f))}else if("string"===p){var m=o(r);i=m[0],4===(a=m[1]).length&&(s=a[3],a.length--)}else if("object"===p)if(r.constructor===e){if(i=r._type,a=r._components.slice(),s=r._alpha,"gradient"===i)for(var g=1,v=a.length;g<v;g++){var y=a[g];y&&(a[g]=y.clone())}}else if(r.constructor===G)i="gradient",l=c;else{var b=t[i="hue"in r?"lightness"in r?"hsl":"hsb":"gradient"in r||"stops"in r||"radial"in r?"gradient":"gray"in r?"gray":"rgb"],w=n[i];this._components=a=[];for(g=0,v=b.length;g<v;g++){null==(C=r[b[g]])&&!g&&"gradient"===i&&"stops"in r&&(C={stops:r.stops,radial:r.radial}),null!=(C=w[g].call(this,C))&&(a[g]=C)}s=r.alpha}d&&i&&(h=1)}if(this._type=i||"rgb",!a){this._components=a=[];for(g=0,v=(w=n[this._type]).length;g<v;g++){var C;null!=(C=w[g].call(this,l&&l[g]))&&(a[g]=C)}}return this._components=a,this._properties=t[this._type],this._alpha=s,d&&(this.__read=h),this},set:"#initialize",_serialize:function(e,t){var n=this.getComponents();return u.serialize(/^(gray|rgb)$/.test(this._type)?n:[this._type].concat(n),e,!0,t)},_changed:function(){this._canvasStyle=null,this._owner&&(this._setter?this._owner[this._setter](this):this._owner._changed(129))},_convert:function(e){var t;return this._type===e?this._components.slice():(t=a[this._type+"-"+e])?t.apply(this,this._components):a["rgb-"+e].apply(this,a[this._type+"-rgb"].apply(this,this._components))},convert:function(e){return new K(e,this._convert(e),this._alpha)},getType:function(){return this._type},setType:function(e){this._components=this._convert(e),this._properties=t[e],this._type=e},getComponents:function(){var e=this._components.slice();return null!=this._alpha&&e.push(this._alpha),e},getAlpha:function(){return null!=this._alpha?this._alpha:1},setAlpha:function(e){this._alpha=null==e?null:Math.min(Math.max(e,0),1),this._changed()},hasAlpha:function(){return null!=this._alpha},equals:function(e){var t=u.isPlainValue(e,!0)?K.read(arguments):e;return t===this||t&&this._class===t._class&&this._type===t._type&&this.getAlpha()===t.getAlpha()&&u.equals(this._components,t._components)||!1},toString:function(){for(var e=this._properties,t=[],n="gradient"===this._type,r=m.instance,o=0,i=e.length;o<i;o++){var a=this._components[o];null!=a&&t.push(e[o]+": "+(n?a:r.number(a)))}return null!=this._alpha&&t.push("alpha: "+r.number(this._alpha)),"{ "+t.join(", ")+" }"},toCSS:function(e){var t=this._convert("rgb"),n=e||null==this._alpha?1:this._alpha;function r(e){return Math.round(255*(e<0?0:e>1?1:e))}return t=[r(t[0]),r(t[1]),r(t[2])],n<1&&t.push(n<0?0:n),e?"#"+((1<<24)+(t[0]<<16)+(t[1]<<8)+t[2]).toString(16).slice(1):(4==t.length?"rgba(":"rgb(")+t.join(",")+")"},toCanvasStyle:function(e,t){if(this._canvasStyle)return this._canvasStyle;if("gradient"!==this._type)return this._canvasStyle=this.toCSS();var n,r=this._components,o=r[0],i=o._stops,a=r[1],s=r[2],l=r[3],c=t&&t.inverted();if(c&&(a=c._transformPoint(a),s=c._transformPoint(s),l&&(l=c._transformPoint(l))),o._radial){var u=s.getDistance(a);if(l){var d=l.subtract(a);d.getLength()>u&&(l=a.add(d.normalize(u-.1)))}var h=l||a;n=e.createRadialGradient(h.x,h.y,0,a.x,a.y,u)}else n=e.createLinearGradient(a.x,a.y,s.x,s.y);for(var p=0,f=i.length;p<f;p++){var m=i[p],g=m._offset;n.addColorStop(null==g?p/(f-1):g,m._color.toCanvasStyle())}return this._canvasStyle=n},transform:function(e){if("gradient"===this._type){for(var t=this._components,n=1,r=t.length;n<r;n++){var o=t[n];e._transformPoint(o,o,!0)}this._changed()}},statics:{_types:t,random:function(){var e=Math.random;return new K(e(),e(),e())},_setOwner:function(e,t,n){return e&&(e._owner&&t&&e._owner!==t&&(e=e.clone()),!e._owner^!t&&(e._owner=t||null,e._setter=n||null)),e}}})},new function(){return u.each({add:function(e,t){return e+t},subtract:function(e,t){return e-t},multiply:function(e,t){return e*t},divide:function(e,t){return e/t}},(function(e,t){this[t]=function(t){t=K.read(arguments);for(var n=this._type,r=this._components,o=t._convert(n),i=0,a=r.length;i<a;i++)o[i]=e(r[i],o[i]);return new K(n,o,null!=this._alpha?e(this._alpha,t.getAlpha()):null)}}),{})}),G=u.extend({_class:"Gradient",initialize:function(e,t){this._id=v.get(),e&&u.isPlainObject(e)&&(this.set(e),e=t=null),null==this._stops&&this.setStops(e||["white","black"]),null==this._radial&&this.setRadial("string"==typeof t&&"radial"===t||t||!1)},_serialize:function(e,t){return t.add(this,(function(){return u.serialize([this._stops,this._radial],e,!0,t)}))},_changed:function(){for(var e=0,t=this._owners&&this._owners.length;e<t;e++)this._owners[e]._changed()},_addOwner:function(e){this._owners||(this._owners=[]),this._owners.push(e)},_removeOwner:function(e){var t=this._owners?this._owners.indexOf(e):-1;-1!=t&&(this._owners.splice(t,1),this._owners.length||(this._owners=s))},clone:function(){for(var e=[],t=0,n=this._stops.length;t<n;t++)e[t]=this._stops[t].clone();return new G(e,this._radial)},getStops:function(){return this._stops},setStops:function(e){if(e.length<2)throw new Error("Gradient stop list needs to contain at least two stops.");var t=this._stops;if(t)for(var n=0,r=t.length;n<r;n++)t[n]._owner=s;for(n=0,r=(t=this._stops=q.readList(e,0,{clone:!0})).length;n<r;n++)t[n]._owner=this;this._changed()},getRadial:function(){return this._radial},setRadial:function(e){this._radial=e,this._changed()},equals:function(e){if(e===this)return!0;if(e&&this._class===e._class){var t=this._stops,n=e._stops,r=t.length;if(r===n.length){for(var o=0;o<r;o++)if(!t[o].equals(n[o]))return!1;return!0}}return!1}}),q=u.extend({_class:"GradientStop",initialize:function(e,t){var n=e,r=t;"object"==typeof e&&t===s&&(Array.isArray(e)&&"number"!=typeof e[0]?(n=e[0],r=e[1]):("color"in e||"offset"in e||"rampPoint"in e)&&(n=e.color,r=e.offset||e.rampPoint||0)),this.setColor(n),this.setOffset(r)},clone:function(){return new q(this._color.clone(),this._offset)},_serialize:function(e,t){var n=this._color,r=this._offset;return u.serialize(null==r?[n]:[n,r],e,!0,t)},_changed:function(){this._owner&&this._owner._changed(129)},getOffset:function(){return this._offset},setOffset:function(e){this._offset=e,this._changed()},getRampPoint:"#getOffset",setRampPoint:"#setOffset",getColor:function(){return this._color},setColor:function(){K._setOwner(this._color,null),this._color=K._setOwner(K.read(arguments,0),this,"setColor"),this._changed()},equals:function(e){return e===this||e&&this._class===e._class&&this._color.equals(e._color)&&this._offset==e._offset||!1}}),$=u.extend(new function(){var e={fillColor:null,fillRule:"nonzero",strokeColor:null,strokeWidth:1,strokeCap:"butt",strokeJoin:"miter",strokeScaling:!0,miterLimit:10,dashOffset:0,dashArray:[],shadowColor:null,shadowBlur:0,shadowOffset:new y,selectedColor:null},t=u.set({},e,{fontFamily:"sans-serif",fontWeight:"normal",fontSize:12,leading:null,justification:"left"}),n=u.set({},t,{fillColor:new K}),r={strokeWidth:193,strokeCap:193,strokeJoin:193,strokeScaling:201,miterLimit:193,fontFamily:9,fontWeight:9,fontSize:9,font:9,leading:9,justification:9},o={beans:!0},i={_class:"Style",beans:!0,initialize:function(r,o,i){this._values={},this._owner=o,this._project=o&&o._project||i||he.project,this._defaults=!o||o instanceof E?t:o instanceof W?n:e,r&&this.set(r)}};return u.each(t,(function(e,t){var n=/Color$/.test(t),a="shadowOffset"===t,l=u.capitalize(t),c=r[t],d="set"+l,h="get"+l;i[d]=function(e){var r=this._owner,o=r&&r._children,i=o&&o.length>0&&!(r instanceof H);if(i)for(var a=0,s=o.length;a<s;a++)o[a]._style[d](e);if(("selectedColor"===t||!i)&&t in this._defaults){var l=this._values[t];l!==e&&(n&&(l&&(K._setOwner(l,null),l._canvasStyle=null),e&&e.constructor===K&&(e=K._setOwner(e,r,i&&d))),this._values[t]=e,r&&r._changed(c||129))}},i[h]=function(e){var r=this._owner,o=r&&r._children,i=o&&o.length>0&&!(r instanceof H);if(i&&!e)for(var l=0,c=o.length;l<c;l++){var p=o[l]._style[h]();if(l){if(!u.equals(f,p))return s}else f=p}else if(t in this._defaults){var f;if((f=this._values[t])===s)(f=this._defaults[t])&&f.clone&&(f=f.clone());else{var m=n?K:a?y:null;!m||f&&f.constructor===m||(this._values[t]=f=m.read([f],0,{readNull:!0,clone:!0}))}}return f&&n&&(f=K._setOwner(f,r,i&&d)),f},o[h]=function(e){return this._style[h](e)},o[d]=function(e){this._style[d](e)}})),u.each({Font:"FontFamily",WindingRule:"FillRule"},(function(e,t){var n="get"+t,r="set"+t;i[n]=o[n]="#get"+e,i[r]=o[r]="#set"+e})),T.inject(o),i},{set:function(e){var t=e instanceof $,n=t?e._values:e;if(n)for(var r in n)if(r in this._defaults){var o=n[r];this[r]=o&&t&&o.clone?o.clone():o}},equals:function(e){function t(e,t,n){var r=e._values,o=t._values,i=t._defaults;for(var a in r){var l=r[a],c=o[a];if(!(n&&a in o||u.equals(l,c===s?i[a]:c)))return!1}return!0}return e===this||e&&this._class===e._class&&t(this,e)&&t(e,this,!0)||!1},_dispose:function(){var e;(e=this.getFillColor())&&(e._canvasStyle=null),(e=this.getStrokeColor())&&(e._canvasStyle=null),(e=this.getShadowColor())&&(e._canvasStyle=null)},hasFill:function(){var e=this.getFillColor();return!!e&&e.alpha>0},hasStroke:function(){var e=this.getStrokeColor();return!!e&&e.alpha>0&&this.getStrokeWidth()>0},hasShadow:function(){var e=this.getShadowColor();return!!e&&e.alpha>0&&(this.getShadowBlur()>0||!this.getShadowOffset().isZero())},getView:function(){return this._project._view},getFontStyle:function(){var e=this.getFontSize();return this.getFontWeight()+" "+e+(/[a-z]/i.test(e+"")?" ":"px ")+this.getFontFamily()},getFont:"#getFontFamily",setFont:"#setFontFamily",getLeading:function e(){var t=e.base.call(this),n=this.getFontSize();return/pt|em|%|px/.test(n)&&(n=this.getView().getPixelSize(n)),null!=t?t:1.2*n}}),X=new function(){function e(e,t,n,r){for(var o=["","webkit","moz","Moz","ms","o"],i=t[0].toUpperCase()+t.substring(1),a=0;a<6;a++){var s=o[a],l=s?s+i:t;if(l in e){if(!n)return e[l];e[l]=r;break}}}return{getStyles:function(e){var t=e&&9!==e.nodeType?e.ownerDocument:e,n=t&&t.defaultView;return n&&n.getComputedStyle(e,"")},getBounds:function(e,t){var n,r=e.ownerDocument,o=r.body,i=r.documentElement;try{n=e.getBoundingClientRect()}catch(e){n={left:0,top:0,width:0,height:0}}var a=n.left-(i.clientLeft||o.clientLeft||0),s=n.top-(i.clientTop||o.clientTop||0);if(!t){var l=r.defaultView;a+=l.pageXOffset||i.scrollLeft||o.scrollLeft,s+=l.pageYOffset||i.scrollTop||o.scrollTop}return new _(a,s,n.width,n.height)},getViewportBounds:function(e){var t=e.ownerDocument,n=t.defaultView,r=t.documentElement;return new _(0,0,n.innerWidth||r.clientWidth,n.innerHeight||r.clientHeight)},getOffset:function(e,t){return X.getBounds(e,t).getPoint()},getSize:function(e){return X.getBounds(e,!0).getSize()},isInvisible:function(e){return X.getSize(e).equals(new w(0,0))},isInView:function(e){return!X.isInvisible(e)&&X.getViewportBounds(e).intersects(X.getBounds(e,!0))},isInserted:function(e){return c.body.contains(e)},getPrefixed:function(t,n){return t&&e(t,n)},setPrefixed:function(t,n,r){if("object"==typeof n)for(var o in n)e(t,o,!0,n[o]);else e(t,n,!0,r)}}},J={add:function(e,t){if(e)for(var n in t)for(var r=t[n],o=n.split(/[\s,]+/g),i=0,a=o.length;i<a;i++){var s=o[i],l=e===c&&("touchstart"===s||"touchmove"===s)&&{passive:!1};e.addEventListener(s,r,l)}},remove:function(e,t){if(e)for(var n in t)for(var r=t[n],o=n.split(/[\s,]+/g),i=0,a=o.length;i<a;i++)e.removeEventListener(o[i],r,!1)},getPoint:function(e){var t=e.targetTouches?e.targetTouches.length?e.targetTouches[0]:e.changedTouches[0]:e;return new y(t.pageX||t.clientX+c.documentElement.scrollLeft,t.pageY||t.clientY+c.documentElement.scrollTop)},getTarget:function(e){return e.target||e.srcElement},getRelatedTarget:function(e){return e.relatedTarget||e.toElement},getOffset:function(e,t){return J.getPoint(e).subtract(X.getOffset(t||J.getTarget(e)))}};J.requestAnimationFrame=new function(){var e,t=X.getPrefixed(l,"requestAnimationFrame"),n=!1,r=[];function o(){var e=r;r=[];for(var i=0,a=e.length;i<a;i++)e[i]();(n=t&&r.length)&&t(o)}return function(i){r.push(i),t?n||(t(o),n=!0):e||(e=setInterval(o,1e3/60))}};var Z=u.extend(d,{_class:"View",initialize:function e(t,n){function r(e){return n[e]||parseInt(n.getAttribute(e),10)}function o(){var e=X.getSize(n);return e.isNaN()||e.isZero()?new w(r("width"),r("height")):e}var i;if(l&&n){this._id=n.getAttribute("id"),null==this._id&&n.setAttribute("id",this._id="paper-view-"+e._id++),J.add(n,this._viewEvents);if(X.setPrefixed(n.style,{userDrag:"none",userSelect:"none",touchCallout:"none",contentZooming:"none",tapHighlightColor:"rgba(0,0,0,0)"}),h.hasAttribute(n,"resize")){var a=this;J.add(l,this._windowEvents={resize:function(){a.setViewSize(o())}})}if(i=o(),h.hasAttribute(n,"stats")&&"undefined"!=typeof Stats){this._stats=new Stats;var s=this._stats.domElement,u=s.style,d=X.getOffset(n);u.position="absolute",u.left=d.x+"px",u.top=d.y+"px",c.body.appendChild(s)}}else i=new w(n),n=null;this._project=t,this._scope=t._scope,this._element=n,this._pixelRatio||(this._pixelRatio=l&&l.devicePixelRatio||1),this._setElementSize(i.width,i.height),this._viewSize=i,e._views.push(this),e._viewsById[this._id]=this,(this._matrix=new S)._owner=this,e._focused||(e._focused=this),this._frameItems={},this._frameItemCount=0,this._itemEvents={native:{},virtual:{}},this._autoUpdate=!he.agent.node,this._needsUpdate=!1},remove:function(){if(!this._project)return!1;Z._focused===this&&(Z._focused=null),Z._views.splice(Z._views.indexOf(this),1),delete Z._viewsById[this._id];var e=this._project;return e._view===this&&(e._view=null),J.remove(this._element,this._viewEvents),J.remove(l,this._windowEvents),this._element=this._project=null,this.off("frame"),this._animate=!1,this._frameItems={},!0},_events:u.each(T._itemHandlers.concat(["onResize","onKeyDown","onKeyUp"]),(function(e){this[e]={}}),{onFrame:{install:function(){this.play()},uninstall:function(){this.pause()}}}),_animate:!1,_time:0,_count:0,getAutoUpdate:function(){return this._autoUpdate},setAutoUpdate:function(e){this._autoUpdate=e,e&&this.requestUpdate()},update:function(){},draw:function(){this.update()},requestUpdate:function(){if(!this._requested){var e=this;J.requestAnimationFrame((function(){if(e._requested=!1,e._animate){e.requestUpdate();var t=e._element;X.getPrefixed(c,"hidden")&&"true"!==h.getAttribute(t,"keepalive")||!X.isInView(t)||e._handleFrame()}e._autoUpdate&&e.update()})),this._requested=!0}},play:function(){this._animate=!0,this.requestUpdate()},pause:function(){this._animate=!1},_handleFrame:function(){he=this._scope;var e=Date.now()/1e3,t=this._last?e-this._last:0;this._last=e,this.emit("frame",new u({delta:t,time:this._time+=t,count:this._count++})),this._stats&&this._stats.update()},_animateItem:function(e,t){var n=this._frameItems;t?(n[e._id]={item:e,time:0,count:0},1==++this._frameItemCount&&this.on("frame",this._handleFrameItems)):(delete n[e._id],0==--this._frameItemCount&&this.off("frame",this._handleFrameItems))},_handleFrameItems:function(e){for(var t in this._frameItems){var n=this._frameItems[t];n.item.emit("frame",new u(e,{time:n.time+=e.delta,count:n.count++}))}},_changed:function(){this._project._changed(4097),this._bounds=this._decomposed=s},getElement:function(){return this._element},getPixelRatio:function(){return this._pixelRatio},getResolution:function(){return 72*this._pixelRatio},getViewSize:function(){var e=this._viewSize;return new C(e.width,e.height,this,"setViewSize")},setViewSize:function(){var e=w.read(arguments),t=e.subtract(this._viewSize);t.isZero()||(this._setElementSize(e.width,e.height),this._viewSize.set(e),this._changed(),this.emit("resize",{size:e,delta:t}),this._autoUpdate&&this.update())},_setElementSize:function(e,t){var n=this._element;n&&(n.width!==e&&(n.width=e),n.height!==t&&(n.height=t))},getBounds:function(){return this._bounds||(this._bounds=this._matrix.inverted()._transformBounds(new _(new y,this._viewSize))),this._bounds},getSize:function(){return this.getBounds().getSize()},isVisible:function(){return X.isInView(this._element)},isInserted:function(){return X.isInserted(this._element)},getPixelSize:function(e){var t,n=this._element;if(n){var r=n.parentNode,o=c.createElement("div");o.style.fontSize=e,r.appendChild(o),t=parseFloat(X.getStyles(o).fontSize),r.removeChild(o)}else t=parseFloat(t);return t},getTextWidth:function(e,t){return 0}},u.each(["rotate","scale","shear","skew"],(function(e){var t="rotate"===e;this[e]=function(){var n=arguments,r=(t?u:y).read(n),o=y.read(n,0,{readNull:!0});return this.transform((new S)[e](r,o||this.getCenter(!0)))}}),{_decompose:function(){return this._decomposed||(this._decomposed=this._matrix.decompose())},translate:function(){var e=new S;return this.transform(e.translate.apply(e,arguments))},getCenter:function(){return this.getBounds().getCenter()},setCenter:function(){var e=y.read(arguments);this.translate(this.getCenter().subtract(e))},getZoom:function(){var e=this._decompose().scaling;return(e.x+e.y)/2},setZoom:function(e){this.transform((new S).scale(e/this.getZoom(),this.getCenter()))},getRotation:function(){return this._decompose().rotation},setRotation:function(e){var t=this.getRotation();null!=t&&null!=e&&this.rotate(e-t)},getScaling:function(){var e=this._decompose().scaling;return new b(e.x,e.y,this,"setScaling")},setScaling:function(){var e=this.getScaling(),t=y.read(arguments,0,{clone:!0,readNull:!0});e&&t&&this.scale(t.x/e.x,t.y/e.y)},getMatrix:function(){return this._matrix},setMatrix:function(){var e=this._matrix;e.set.apply(e,arguments)},transform:function(e){this._matrix.append(e)},scrollBy:function(){this.translate(y.read(arguments).negate())}}),{projectToView:function(){return this._matrix._transformPoint(y.read(arguments))},viewToProject:function(){return this._matrix._inverseTransform(y.read(arguments))},getEventPoint:function(e){return this.viewToProject(J.getOffset(e,this._element))}},{statics:{_views:[],_viewsById:{},_id:0,create:function(e,t){return c&&"string"==typeof t&&(t=c.getElementById(t)),new(l?Q:Z)(e,t)}}},new function(){if(l){var e,t,n,r,o,i=!1,a=!1,s=l.navigator;s.pointerEnabled||s.msPointerEnabled?(n="pointerdown MSPointerDown",r="pointermove MSPointerMove",o="pointerup pointercancel MSPointerUp MSPointerCancel"):(n="touchstart",r="touchmove",o="touchend touchcancel","ontouchstart"in l&&s.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android|silk/i)||(n+=" mousedown",r+=" mousemove",o+=" mouseup"));var u={},d={mouseout:function(e){var t=Z._focused,n=J.getRelatedTarget(e);if(t&&(!n||"HTML"===n.nodeName)){var r=J.getOffset(e,t._element),o=r.x,i=Math.abs,a=i(o),s=a-(1<<25);r.x=i(s)<a?s*(o<0?-1:1):o,T(t,e,t.viewToProject(r))}},scroll:P};u[n]=function(e){var t=Z._focused=k(e);i||(i=!0,t._handleMouseEvent("mousedown",e))},d[r]=function(n){var r=Z._focused;if(!a){var o=k(n);o?r!==o&&(r&&T(r,n),e||(e=r),r=Z._focused=t=o):t&&t===r&&(e&&!e.isInserted()&&(e=null),r=Z._focused=e,e=null,P())}r&&T(r,n)},d[n]=function(){a=!0},d[o]=function(e){var t=Z._focused;t&&i&&t._handleMouseEvent("mouseup",e),a=i=!1},J.add(c,d),J.add(l,{load:P});var h,p,f,m,g,v,y,b,w=!1,C=!1,_={doubleclick:"click",mousedrag:"mousemove"},x=!1,S={mousedown:{mousedown:1,mousedrag:1,click:1,doubleclick:1},mouseup:{mouseup:1,mousedrag:1,click:1,doubleclick:1},mousemove:{mousedrag:1,mousemove:1,mouseenter:1,mouseleave:1}};return{_viewEvents:u,_handleMouseEvent:function(e,t,n){var r=this._itemEvents,o=r.native[e],a="mousemove"===e,s=this._scope.tool,l=this;function c(e){return r.virtual[e]||l.responds(e)||s&&s.responds(e)}a&&i&&c("mousedrag")&&(e="mousedrag"),n||(n=this.getEventPoint(t));var u=this.getBounds().contains(n),d=o&&u&&l._project.hitTest(n,{tolerance:0,fill:!0,stroke:!0}),_=d&&d.item||null,S=!1,k={};if(k[e.substr(5)]=!0,o&&_!==m&&(m&&E(m,null,"mouseleave",t,n),_&&E(_,null,"mouseenter",t,n),m=_),x^u&&(E(this,null,u?"mouseenter":"mouseleave",t,n),u?this:null,S=!0),!u&&!k.drag||n.equals(p)||(O(this,_,a?e:"mousemove",t,n,p),S=!0),x=u,k.down&&u||k.up&&h){if(O(this,_,e,t,n,h),k.down){if(b=_===v&&Date.now()-y<300,f=v=_,!C&&_){for(var P=_;P&&!P.responds("mousedrag");)P=P._parent;P&&(g=_)}h=n}else k.up&&(C||_!==f||(y=Date.now(),O(this,_,b?"doubleclick":"click",t,n,h),b=!1),f=g=null);x=!1,S=!0}p=n,S&&s&&(w=s._handleMouseEvent(e,t,n,k)||w),!1!==t.cancelable&&(w&&!k.move||k.down&&c("mouseup"))&&t.preventDefault()},_handleKeyEvent:function(e,t,n,r){var o,i=this._scope,a=i.tool;function s(a){a.responds(e)&&(he=i,a.emit(e,o=o||new te(e,t,n,r)))}this.isVisible()&&(s(this),a&&a.responds(e)&&s(a))},_countItemEvent:function(e,t){var n=this._itemEvents,r=n.native,o=n.virtual;for(var i in S)r[i]=(r[i]||0)+(S[i][e]||0)*t;o[e]=(o[e]||0)+t},statics:{updateFocus:P,_resetState:function(){i=a=w=x=!1,e=t=h=p=f=m=g=v=y=b=null}}}}function k(e){var t=J.getTarget(e);return t.getAttribute&&Z._viewsById[t.getAttribute("id")]}function P(){var e=Z._focused;if(!e||!e.isVisible())for(var n=0,r=Z._views.length;n<r;n++)if((e=Z._views[n]).isVisible()){Z._focused=t=e;break}}function T(e,t,n){e._handleMouseEvent("mousemove",t,n)}function E(e,t,n,r,o,i,a){var s,l=!1;function c(e,n){if(e.responds(n)){if(s||(s=new re(n,r,o,t||e,i?o.subtract(i):null)),e.emit(n,s)&&(w=!0,s.prevented&&(C=!0),s.stopped))return l=!0}else{var a=_[n];if(a)return c(e,a)}}for(;e&&e!==a&&!c(e,n);)e=e._parent;return l}function O(e,t,n,r,o,i){return e._project.removeOn(n),C=w=!1,g&&E(g,null,n,r,o,i)||t&&t!==g&&!t.isDescendant(g)&&E(t,null,"mousedrag"===n?"mousemove":n,r,o,i,g)||E(e,g||t||e,n,r,o,i)}}),Q=Z.extend({_class:"CanvasView",initialize:function(e,t){if(!(t instanceof l.HTMLCanvasElement)){var n=w.read(arguments,1);if(n.isZero())throw new Error("Cannot create CanvasView with the provided argument: "+u.slice(arguments,1));t=le.getCanvas(n)}var r=this._context=t.getContext("2d");if(r.save(),this._pixelRatio=1,!/^off|false$/.test(h.getAttribute(t,"hidpi"))){var o=l.devicePixelRatio||1,i=X.getPrefixed(r,"backingStorePixelRatio")||1;this._pixelRatio=o/i}Z.call(this,e,t),this._needsUpdate=!0},remove:function e(){return this._context.restore(),e.base.call(this)},_setElementSize:function e(t,n){var r=this._pixelRatio;if(e.base.call(this,t*r,n*r),1!==r){var o=this._element,i=this._context;if(!h.hasAttribute(o,"resize")){var a=o.style;a.width=t+"px",a.height=n+"px"}i.restore(),i.save(),i.scale(r,r)}},getContext:function(){return this._context},getPixelSize:function e(t){var n,r=he.agent;if(r&&r.firefox)n=e.base.call(this,t);else{var o=this._context,i=o.font;o.font=t+" serif",n=parseFloat(o.font),o.font=i}return n},getTextWidth:function(e,t){var n=this._context,r=n.font,o=0;n.font=e;for(var i=0,a=t.length;i<a;i++)o=Math.max(o,n.measureText(t[i]).width);return n.font=r,o},update:function(){if(!this._needsUpdate)return!1;var e=this._project,t=this._context,n=this._viewSize;return t.clearRect(0,0,n.width+1,n.height+1),e&&e.draw(t,this._matrix,this._pixelRatio),this._needsUpdate=!1,!0}}),ee=u.extend({_class:"Event",initialize:function(e){this.event=e,this.type=e&&e.type},prevented:!1,stopped:!1,preventDefault:function(){this.prevented=!0,this.event.preventDefault()},stopPropagation:function(){this.stopped=!0,this.event.stopPropagation()},stop:function(){this.stopPropagation(),this.preventDefault()},getTimeStamp:function(){return this.event.timeStamp},getModifiers:function(){return ne.modifiers}}),te=ee.extend({_class:"KeyEvent",initialize:function(e,t,n,r){this.type=e,this.event=t,this.key=n,this.character=r},toString:function(){return"{ type: '"+this.type+"', key: '"+this.key+"', character: '"+this.character+"', modifiers: "+this.getModifiers()+" }"}}),ne=new function(){var e,t,n={"\t":"tab"," ":"space","\b":"backspace","":"delete",Spacebar:"space",Del:"delete",Win:"meta",Esc:"escape"},r={tab:"\t",space:" ",enter:"\r"},o={},i={},a=new u({shift:!1,control:!1,alt:!1,meta:!1,capsLock:!1,space:!1}).inject({option:{get:function(){return this.alt}},command:{get:function(){var e=he&&he.agent;return e&&e.mac?this.meta:this.control}}});function d(e){var t=e.key||e.keyIdentifier;return t=/^U\+/.test(t)?String.fromCharCode(parseInt(t.substr(2),16)):/^Arrow[A-Z]/.test(t)?t.substr(5):"Unidentified"===t||t===s?String.fromCharCode(e.keyCode):t,n[t]||(t.length>1?u.hyphenate(t):t.toLowerCase())}function h(t,n,r,s){var l,c=Z._focused;if(o[n]=t,t?i[n]=r:delete i[n],n.length>1&&(l=u.camelize(n))in a){a[l]=t;var d=he&&he.agent;if("meta"===l&&d&&d.mac)if(t)e={};else{for(var p in e)p in i&&h(!1,p,e[p],s);e=null}}else t&&e&&(e[n]=r);c&&c._handleKeyEvent(t?"keydown":"keyup",s,n,r)}return J.add(c,{keydown:function(e){var n=d(e),o=he&&he.agent;n.length>1||o&&o.chrome&&(e.altKey||o.mac&&e.metaKey||!o.mac&&e.ctrlKey)?h(!0,n,r[n]||(n.length>1?"":n),e):t=n},keypress:function(e){if(t){var n=d(e),r=e.charCode,o=r>=32?String.fromCharCode(r):n.length>1?"":n;n!==t&&(n=o.toLowerCase()),h(!0,n,o,e),t=null}},keyup:function(e){var t=d(e);t in i&&h(!1,t,i[t],e)}}),J.add(l,{blur:function(e){for(var t in i)h(!1,t,i[t],e)}}),{modifiers:a,isDown:function(e){return!!o[e]}}},re=ee.extend({_class:"MouseEvent",initialize:function(e,t,n,r,o){this.type=e,this.event=t,this.point=n,this.target=r,this.delta=o},toString:function(){return"{ type: '"+this.type+"', point: "+this.point+", target: "+this.target+(this.delta?", delta: "+this.delta:"")+", modifiers: "+this.getModifiers()+" }"}}),oe=ee.extend({_class:"ToolEvent",_item:null,initialize:function(e,t,n){this.tool=e,this.type=t,this.event=n},_choosePoint:function(e,t){return e||(t?t.clone():null)},getPoint:function(){return this._choosePoint(this._point,this.tool._point)},setPoint:function(e){this._point=e},getLastPoint:function(){return this._choosePoint(this._lastPoint,this.tool._lastPoint)},setLastPoint:function(e){this._lastPoint=e},getDownPoint:function(){return this._choosePoint(this._downPoint,this.tool._downPoint)},setDownPoint:function(e){this._downPoint=e},getMiddlePoint:function(){return!this._middlePoint&&this.tool._lastPoint?this.tool._point.add(this.tool._lastPoint).divide(2):this._middlePoint},setMiddlePoint:function(e){this._middlePoint=e},getDelta:function(){return!this._delta&&this.tool._lastPoint?this.tool._point.subtract(this.tool._lastPoint):this._delta},setDelta:function(e){this._delta=e},getCount:function(){return this.tool[/^mouse(down|up)$/.test(this.type)?"_downCount":"_moveCount"]},setCount:function(e){this.tool[/^mouse(down|up)$/.test(this.type)?"downCount":"count"]=e},getItem:function(){if(!this._item){var e=this.tool._scope.project.hitTest(this.getPoint());if(e){for(var t=e.item,n=t._parent;/^(Group|CompoundPath)$/.test(n._class);)t=n,n=n._parent;this._item=t}}return this._item},setItem:function(e){this._item=e},toString:function(){return"{ type: "+this.type+", point: "+this.getPoint()+", count: "+this.getCount()+", modifiers: "+this.getModifiers()+" }"}}),ie=p.extend({_class:"Tool",_list:"tools",_reference:"tool",_events:["onMouseDown","onMouseUp","onMouseDrag","onMouseMove","onActivate","onDeactivate","onEditOptions","onKeyDown","onKeyUp"],initialize:function(e){p.call(this),this._moveCount=-1,this._downCount=-1,this.set(e)},getMinDistance:function(){return this._minDistance},setMinDistance:function(e){this._minDistance=e,null!=e&&null!=this._maxDistance&&e>this._maxDistance&&(this._maxDistance=e)},getMaxDistance:function(){return this._maxDistance},setMaxDistance:function(e){this._maxDistance=e,null!=this._minDistance&&null!=e&&e<this._minDistance&&(this._minDistance=e)},getFixedDistance:function(){return this._minDistance==this._maxDistance?this._minDistance:null},setFixedDistance:function(e){this._minDistance=this._maxDistance=e},_handleMouseEvent:function(e,t,n,r){he=this._scope,r.drag&&!this.responds(e)&&(e="mousemove");var o=r.move||r.drag,i=this.responds(e),a=this.minDistance,s=this.maxDistance,l=!1,c=this;function u(e,t){var i=n,a=o?c._point:c._downPoint||i;if(o){if(c._moveCount>=0&&i.equals(a))return!1;if(a&&(null!=e||null!=t)){var s=i.subtract(a),l=s.getLength();if(l<(e||0))return!1;t&&(i=a.add(s.normalize(Math.min(l,t))))}c._moveCount++}return c._point=i,c._lastPoint=a||i,r.down&&(c._moveCount=-1,c._downPoint=i,c._downCount++),!0}function d(){i&&(l=c.emit(e,new oe(c,e,t))||l)}if(r.down)u(),d();else if(r.up)u(null,s),d();else if(i)for(;u(a,s);)d();return l}}),ae=u.extend(d,{_class:"Tween",statics:{easings:new u({linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:2*(2-e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}})},initialize:function e(t,n,r,o,i,a){this.object=t;var s=typeof i,l="function"===s;this.type=l?s:"string"===s?i:"linear",this.easing=l?i:e.easings[this.type],this.duration=o,this.running=!1,this._then=null,this._startTime=null;var c=n||r;this._keys=c?Object.keys(c):[],this._parsedKeys=this._parseKeys(this._keys),this._from=c&&this._getState(n),this._to=c&&this._getState(r),!1!==a&&this.start()},then:function(e){return this._then=e,this},start:function(){return this._startTime=null,this.running=!0,this},stop:function(){return this.running=!1,this},update:function(e){if(this.running){e>=1&&(e=1,this.running=!1);for(var t=this.easing(e),n=this._keys,r=function(n){return"function"==typeof n?n(t,e):n},o=0,i=n&&n.length;o<i;o++){var a=n[o],s=r(this._from[a]),l=r(this._to[a]),c=s&&l&&s.__add&&l.__add?l.__subtract(s).__multiply(t).__add(s):(l-s)*t+s;this._setProperty(this._parsedKeys[a],c)}this.responds("update")&&this.emit("update",new u({progress:e,factor:t})),!this.running&&this._then&&this._then(this.object)}return this},_events:{onUpdate:{}},_handleFrame:function(e){var t=this._startTime,n=t?(e-t)/this.duration:0;t||(this._startTime=e),this.update(n)},_getState:function(e){for(var t=this._keys,n={},r=0,o=t.length;r<o;r++){var i,a=t[r],s=this._parsedKeys[a],l=this._getProperty(s);if(e){var c=this._resolveValue(l,e[a]);this._setProperty(s,c),i=(i=this._getProperty(s))&&i.clone?i.clone():i,this._setProperty(s,l)}else i=l&&l.clone?l.clone():l;n[a]=i}return n},_resolveValue:function(e,t){if(t){if(Array.isArray(t)&&2===t.length){var n=t[0];return n&&n.match&&n.match(/^[+\-\*\/]=/)?this._calculate(e,n[0],t[1]):t}if("string"==typeof t){var r=t.match(/^[+\-*/]=(.*)/);if(r){var o=JSON.parse(r[1].replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": '));return this._calculate(e,t[0],o)}}}return t},_calculate:function(e,t,n){return he.PaperScript.calculateBinary(e,t,n)},_parseKeys:function(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n],i=o.replace(/\.([^.]*)/g,"/$1").replace(/\[['"]?([^'"\]]*)['"]?\]/g,"/$1");t[o]=i.split("/")}return t},_getProperty:function(e,t){for(var n=this.object,r=0,o=e.length-(t||0);r<o&&n;r++)n=n[e[r]];return n},_setProperty:function(e,t){var n=this._getProperty(e,1);n&&(n[e[e.length-1]]=t)}}),se=function(e){var t=new a.XMLHttpRequest;return t.open((e.method||"get").toUpperCase(),e.url,u.pick(e.async,!0)),e.mimeType&&t.overrideMimeType(e.mimeType),t.onload=function(){var n=t.status;0===n||200===n?e.onLoad&&e.onLoad.call(t,t.responseText):t.onerror()},t.onerror=function(){var n=t.status,r='Could not load "'+e.url+'" (Status: '+n+")";if(!e.onError)throw new Error(r);e.onError(r,n)},t.send(null)},le=u.exports.CanvasProvider={canvases:[],getCanvas:function(e,t){if(!l)return null;var n,r=!0;"object"==typeof e&&(t=e.height,e=e.width),this.canvases.length?n=this.canvases.pop():(n=c.createElement("canvas"),r=!1);var o=n.getContext("2d");if(!o)throw new Error("Canvas "+n+" is unable to provide a 2D context.");return n.width===e&&n.height===t?r&&o.clearRect(0,0,e+1,t+1):(n.width=e,n.height=t),o.save(),n},getContext:function(e,t){var n=this.getCanvas(e,t);return n?n.getContext("2d"):null},release:function(e){var t=e&&e.canvas?e.canvas:e;t&&t.getContext&&(t.getContext("2d").restore(),this.canvases.push(t))}},ce=new function(){var e,t,n,r,o,i,a,s,l,c,d,h=Math.min,p=Math.max,f=Math.abs;function m(e,t,n){return.2989*e+.587*t+.114*n}function g(e,t,n,r){var o=r-m(e,t,n),i=(r=m(l=e+o,c=t+o,d=n+o),h(l,c,d)),a=p(l,c,d);if(i<0){var s=r-i;l=r+(l-r)*r/s,c=r+(c-r)*r/s,d=r+(d-r)*r/s}if(a>255){var u=255-r,f=a-r;l=r+(l-r)*u/f,c=r+(c-r)*u/f,d=r+(d-r)*u/f}}function v(e,t,n){return p(e,t,n)-h(e,t,n)}function y(e,t,n,r){var o,i=[e,t,n],a=p(e,t,n),s=h(e,t,n);o=0===h(s=s===e?0:s===t?1:2,a=a===e?0:a===t?1:2)?1===p(s,a)?2:1:0,i[a]>i[s]?(i[o]=(i[o]-i[s])*r/(i[a]-i[s]),i[a]=r):i[o]=i[a]=0,i[s]=0,l=i[0],c=i[1],d=i[2]}var b={multiply:function(){l=o*e/255,c=i*t/255,d=a*n/255},screen:function(){l=o+e-o*e/255,c=i+t-i*t/255,d=a+n-a*n/255},overlay:function(){l=o<128?2*o*e/255:255-2*(255-o)*(255-e)/255,c=i<128?2*i*t/255:255-2*(255-i)*(255-t)/255,d=a<128?2*a*n/255:255-2*(255-a)*(255-n)/255},"soft-light":function(){var r=e*o/255;l=r+o*(255-(255-o)*(255-e)/255-r)/255,c=(r=t*i/255)+i*(255-(255-i)*(255-t)/255-r)/255,d=(r=n*a/255)+a*(255-(255-a)*(255-n)/255-r)/255},"hard-light":function(){l=e<128?2*e*o/255:255-2*(255-e)*(255-o)/255,c=t<128?2*t*i/255:255-2*(255-t)*(255-i)/255,d=n<128?2*n*a/255:255-2*(255-n)*(255-a)/255},"color-dodge":function(){l=0===o?0:255===e?255:h(255,255*o/(255-e)),c=0===i?0:255===t?255:h(255,255*i/(255-t)),d=0===a?0:255===n?255:h(255,255*a/(255-n))},"color-burn":function(){l=255===o?255:0===e?0:p(0,255-255*(255-o)/e),c=255===i?255:0===t?0:p(0,255-255*(255-i)/t),d=255===a?255:0===n?0:p(0,255-255*(255-a)/n)},darken:function(){l=o<e?o:e,c=i<t?i:t,d=a<n?a:n},lighten:function(){l=o>e?o:e,c=i>t?i:t,d=a>n?a:n},difference:function(){(l=o-e)<0&&(l=-l),(c=i-t)<0&&(c=-c),(d=a-n)<0&&(d=-d)},exclusion:function(){l=o+e*(255-o-o)/255,c=i+t*(255-i-i)/255,d=a+n*(255-a-a)/255},hue:function(){y(e,t,n,v(o,i,a)),g(l,c,d,m(o,i,a))},saturation:function(){y(o,i,a,v(e,t,n)),g(l,c,d,m(o,i,a))},luminosity:function(){g(o,i,a,m(e,t,n))},color:function(){g(e,t,n,m(o,i,a))},add:function(){l=h(o+e,255),c=h(i+t,255),d=h(a+n,255)},subtract:function(){l=p(o-e,0),c=p(i-t,0),d=p(a-n,0)},average:function(){l=(o+e)/2,c=(i+t)/2,d=(a+n)/2},negation:function(){l=255-f(255-e-o),c=255-f(255-t-i),d=255-f(255-n-a)}},w=this.nativeModes=u.each(["source-over","source-in","source-out","source-atop","destination-over","destination-in","destination-out","destination-atop","lighter","darker","copy","xor"],(function(e){this[e]=!0}),{}),C=le.getContext(1,1);C&&(u.each(b,(function(e,t){var n="darken"===t,r=!1;C.save();try{C.fillStyle=n?"#300":"#a00",C.fillRect(0,0,1,1),C.globalCompositeOperation=t,C.globalCompositeOperation===t&&(C.fillStyle=n?"#a00":"#300",C.fillRect(0,0,1,1),r=C.getImageData(0,0,1,1).data[0]!==n?170:51)}catch(e){}C.restore(),w[t]=r})),le.release(C)),this.process=function(u,h,p,f,m){var g=h.canvas,v="normal"===u;if(v||w[u])p.save(),p.setTransform(1,0,0,1,0,0),p.globalAlpha=f,v||(p.globalCompositeOperation=u),p.drawImage(g,m.x,m.y),p.restore();else{var y=b[u];if(!y)return;for(var C=p.getImageData(m.x,m.y,g.width,g.height),_=C.data,x=h.getImageData(0,0,g.width,g.height).data,S=0,k=_.length;S<k;S+=4){e=x[S],o=_[S],t=x[S+1],i=_[S+1],n=x[S+2],a=_[S+2],r=x[S+3],s=_[S+3],y();var P=r*f/255,T=1-P;_[S]=P*l+T*o,_[S+1]=P*c+T*i,_[S+2]=P*d+T*a,_[S+3]=r*f+T*s}p.putImageData(C,m.x,m.y)}}},ue=new function(){var e="http://www.w3.org/2000/svg",t="http://www.w3.org/2000/xmlns",n="http://www.w3.org/1999/xlink",r={href:n,xlink:t,xmlns:t+"/","xmlns:xlink":t+"/"};function o(e,t,n){for(var o in t){var i=t[o],a=r[o];"number"==typeof i&&n&&(i=n.number(i)),a?e.setAttributeNS(a,o,i):e.setAttribute(o,i)}return e}return{svg:e,xmlns:t,xlink:n,create:function(t,n,r){return o(c.createElementNS(e,t),n,r)},get:function(e,t){var n=r[t],o=n?e.getAttributeNS(n,t):e.getAttribute(t);return"null"===o?null:o},set:o}},de=u.each({fillColor:["fill","color"],fillRule:["fill-rule","string"],strokeColor:["stroke","color"],strokeWidth:["stroke-width","number"],strokeCap:["stroke-linecap","string"],strokeJoin:["stroke-linejoin","string"],strokeScaling:["vector-effect","lookup",{true:"none",false:"non-scaling-stroke"},function(e,t){return!t&&(e instanceof F||e instanceof M||e instanceof W)}],miterLimit:["stroke-miterlimit","number"],dashArray:["stroke-dasharray","array"],dashOffset:["stroke-dashoffset","number"],fontFamily:["font-family","string"],fontWeight:["font-weight","string"],fontSize:["font-size","number"],justification:["text-anchor","lookup",{left:"start",center:"middle",right:"end"}],opacity:["opacity","number"],blendMode:["mix-blend-mode","style"]},(function(e,t){var n=u.capitalize(t),r=e[2];this[t]={type:e[1],property:t,attribute:e[0],toSVG:r,fromSVG:r&&u.each(r,(function(e,t){this[e]=t}),{}),exportFilter:e[3],get:"get"+n,set:"set"+n}}),{});new function(){var e;function t(t,n,r){var o,i=new u,a=t.getTranslation();n&&(t.isInvertible()?(o=(t=t._shiftless())._inverseTransform(a),a=null):o=new y,i[r?"cx":"x"]=o.x,i[r?"cy":"y"]=o.y);if(!t.isIdentity()){var s=t.decompose();if(s){var l=[],c=s.rotation,d=s.scaling,h=s.skewing;a&&!a.isZero()&&l.push("translate("+e.point(a)+")"),c&&l.push("rotate("+e.number(c)+")"),g.isZero(d.x-1)&&g.isZero(d.y-1)||l.push("scale("+e.point(d)+")"),h.x&&l.push("skewX("+e.number(h.x)+")"),h.y&&l.push("skewY("+e.number(h.y)+")"),i.transform=l.join(" ")}else i.transform="matrix("+t.getValues().join(",")+")"}return i}function n(n,r){for(var o=t(n._matrix),i=n._children,a=ue.create("g",o,e),s=0,l=i.length;s<l;s++){var u=i[s],d=h(u,r);if(d)if(u.isClipMask()){var p=ue.create("clipPath");p.appendChild(d),c(u,p,"clip"),ue.set(a,{"clip-path":"url(#"+p.id+")"})}else a.appendChild(d)}return a}function r(n){var r=n._type,o=n._radius,i=t(n._matrix,!0,"rectangle"!==r);if("rectangle"===r){r="rect";var a=n._size,s=a.width,l=a.height;i.x-=s/2,i.y-=l/2,i.width=s,i.height=l,o.isZero()&&(o=null)}return o&&("circle"===r?i.r=o:(i.rx=o.width,i.ry=o.height)),ue.create(r,i,e)}var o,i={Group:n,Layer:n,Raster:function(n,r){var o=t(n._matrix,!0),i=n.getSize(),a=n.getImage();return o.x-=i.width/2,o.y-=i.height/2,o.width=i.width,o.height=i.height,o.href=0==r.embedImages&&a&&a.src||n.toDataURL(),ue.create("image",o,e)},Path:function(n,o){var i=o.matchShapes;if(i){var a=n.toShape(!1);if(a)return r(a)}var s,l=n._segments,c=l.length,u=t(n._matrix);if(i&&c>=2&&!n.hasHandles())if(c>2){s=n._closed?"polygon":"polyline";for(var d=[],h=0;h<c;h++)d.push(e.point(l[h]._point));u.points=d.join(" ")}else{s="line";var p=l[0]._point,f=l[1]._point;u.set({x1:p.x,y1:p.y,x2:f.x,y2:f.y})}else s="path",u.d=n.getPathData(null,o.precision);return ue.create(s,u,e)},Shape:r,CompoundPath:function(n,r){var o=t(n._matrix),i=n.getPathData(null,r.precision);return i&&(o.d=i),ue.create("path",o,e)},SymbolItem:function(n,r){var o=t(n._matrix,!0),i=n._definition,a=l(i,"symbol"),s=i._item,u=s.getStrokeBounds();return a||((a=ue.create("symbol",{viewBox:e.rectangle(u)})).appendChild(h(s,r)),c(i,a,"symbol")),o.href="#"+a.id,o.x+=u.x,o.y+=u.y,o.width=u.width,o.height=u.height,o.overflow="visible",ue.create("use",o,e)},PointText:function(n){var r=ue.create("text",t(n._matrix,!0),e);return r.textContent=n._content,r}};function s(t,n,r){var o={},i=!r&&t.getParent(),a=[];return null!=t._name&&(o.id=t._name),u.each(de,(function(n){var r=n.get,s=n.type,d=t[r]();if(n.exportFilter?n.exportFilter(t,d):!i||!u.equals(i[r](),d)){if("color"===s&&null!=d){var h=d.getAlpha();h<1&&(o[n.attribute+"-opacity"]=h)}"style"===s?a.push(n.attribute+": "+d):o[n.attribute]=null==d?"none":"color"===s?d.gradient?function(t){var n=l(t,"color");if(!n){var r,o=t.getGradient(),i=o._radial,a=t.getOrigin(),s=t.getDestination();if(i){r={cx:a.x,cy:a.y,r:a.getDistance(s)};var u=t.getHighlight();u&&(r.fx=u.x,r.fy=u.y)}else r={x1:a.x,y1:a.y,x2:s.x,y2:s.y};r.gradientUnits="userSpaceOnUse",n=ue.create((i?"radial":"linear")+"Gradient",r,e);for(var d=o._stops,h=0,p=d.length;h<p;h++){var f=d[h],m=f._color,g=m.getAlpha(),v=f._offset;r={offset:null==v?h/(p-1):v},m&&(r["stop-color"]=m.toCSS(!0)),g<1&&(r["stop-opacity"]=g),n.appendChild(ue.create("stop",r,e))}c(t,n,"color")}return"url(#"+n.id+")"}(d):d.toCSS(!0):"array"===s?d.join(","):"lookup"===s?n.toSVG[d]:d}})),a.length&&(o.style=a.join(";")),1===o.opacity&&delete o.opacity,t._visible||(o.visibility="hidden"),ue.set(n,o,e)}function l(e,t){return o||(o={ids:{},svgs:{}}),e&&o.svgs[t+"-"+(e._id||e.__id||(e.__id=v.get("svg")))]}function c(e,t,n){o||l();var r=o.ids[n]=(o.ids[n]||0)+1;t.id=n+"-"+r,o.svgs[n+"-"+(e._id||e.__id)]=t}function d(e,t){var n=e,r=null;if(o){for(var i in n="svg"===e.nodeName.toLowerCase()&&e,o.svgs)r||(n||(n=ue.create("svg")).appendChild(e),r=n.insertBefore(ue.create("defs"),n.firstChild)),r.appendChild(o.svgs[i]);o=null}return t.asString?(new a.XMLSerializer).serializeToString(n):n}function h(e,t,n){var r=i[e._class],o=r&&r(e,t);if(o){var a=t.onExport;a&&(o=a(e,o,t)||o);var l=JSON.stringify(e._data);l&&"{}"!==l&&"null"!==l&&o.setAttribute("data-paper-data",l)}return o&&s(e,o,n)}function p(t){return t||(t={}),e=new m(t.precision),t}T.inject({exportSVG:function(e){return d(h(this,e=p(e),!0),e)}}),P.inject({exportSVG:function(n){n=p(n);var r=this._children,o=this.getView(),i=u.pick(n.bounds,"view"),a=n.matrix||"view"===i&&o._matrix,s=a&&S.read([a]),l="view"===i?new _([0,0],o.getViewSize()):"content"===i?T._getBounds(r,s,{stroke:!0}).rect:_.read([i],0,{readNull:!0}),c={version:"1.1",xmlns:ue.svg,"xmlns:xlink":ue.xlink};l&&(c.width=l.width,c.height=l.height,(l.x||0===l.x||l.y||0===l.y)&&(c.viewBox=e.rectangle(l)));var f=ue.create("svg",c,e),m=f;s&&!s.isIdentity()&&(m=f.appendChild(ue.create("g",t(s),e)));for(var g=0,v=r.length;g<v;g++)m.appendChild(h(r[g],n,!0));return d(f,n)}})},new function(){var e,t={};function n(t,n,r,o,i,a){var s=ue.get(t,n)||a,l=null==s?o?null:r?"":0:r?s:parseFloat(s);return/%\s*$/.test(s)?l/100*(i?1:e[/x|^width/.test(n)?"width":"height"]):l}function r(e,t,r,o,i,a,s){return t=n(e,t||"x",!1,o,i,a),r=n(e,r||"y",!1,o,i,s),!o||null!=t&&null!=r?new y(t,r):null}function o(e,t,r,o,i){return t=n(e,t||"width",!1,o,i),r=n(e,r||"height",!1,o,i),!o||null!=t&&null!=r?new w(t,r):null}function i(e,t,n){return"none"===e?null:"number"===t?parseFloat(e):"array"===t?e?e.split(/[\s,]+/g).map(parseFloat):[]:"color"===t?x(e)||e:"lookup"===t?n[e]:e}function d(e,t,n,r){var o=e.childNodes,i="clippath"===t,a="defs"===t,s=new E,l=s._project,c=l._currentStyle,u=[];if(i||a||(s=C(s,e,r),l._currentStyle=s._style.clone()),r)for(var d=e.querySelectorAll("defs"),h=0,p=d.length;h<p;h++)k(d[h],n,!1);for(h=0,p=o.length;h<p;h++){var f,m=o[h];1!==m.nodeType||/^defs$/i.test(m.nodeName)||!(f=k(m,n,!1))||f instanceof I||u.push(f)}return s.addChildren(u),i&&(s=C(s.reduce(),e,r)),l._currentStyle=c,(i||a)&&(s.remove(),s=null),s}function h(e,t){for(var n=e.getAttribute("points").match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g),r=[],o=0,i=n.length;o<i;o+=2)r.push(new y(parseFloat(n[o]),parseFloat(n[o+1])));var a=new B(r);return"polygon"===t&&a.closePath(),a}function p(e,o){var i,a=(n(e,"href",!0)||"").substring(1),s="radialgradient"===o;if(a)(i=t[a].getGradient())._radial^s&&((i=i.clone())._radial=s);else{for(var l=e.childNodes,c=[],u=0,d=l.length;u<d;u++){var h=l[u];1===h.nodeType&&c.push(C(new q,h))}i=new G(c,s)}var p,f,m,g="userSpaceOnUse"!==n(e,"gradientUnits",!0);return s?(f=(p=r(e,"cx","cy",!1,g,"50%","50%")).add(n(e,"r",!1,!1,g,"50%"),0),m=r(e,"fx","fy",!0,g)):(p=r(e,"x1","y1",!1,g,"0%","0%"),f=r(e,"x2","y2",!1,g,"100%","0%")),C(new K(i,p,f,m),e)._scaleToBounds=g,null}var f={"#document":function(e,t,n,r){for(var o=e.childNodes,i=0,a=o.length;i<a;i++){var s=o[i];if(1===s.nodeType)return k(s,n,r)}},g:d,svg:d,clippath:d,polygon:h,polyline:h,path:function(e){return F.create(e.getAttribute("d"))},lineargradient:p,radialgradient:p,image:function(e){var t=new A(n(e,"href",!0));return t.on("load",(function(){var t=o(e);this.setSize(t);var n=r(e).add(t.divide(2));this._matrix.append((new S).translate(n))})),t},symbol:function(e,t,n,r){return new I(d(e,t,n,r),!0)},defs:d,use:function(e){var o=(n(e,"href",!0)||"").substring(1),i=t[o],a=r(e);return i?i instanceof I?i.place(a):i.clone().translate(a):null},circle:function(e){return new M.Circle(r(e,"cx","cy"),n(e,"r"))},ellipse:function(e){return new M.Ellipse({center:r(e,"cx","cy"),radius:o(e,"rx","ry")})},rect:function(e){return new M.Rectangle(new _(r(e),o(e)),o(e,"rx","ry"))},line:function(e){return new B.Line(r(e,"x1","y1"),r(e,"x2","y2"))},text:function(e){var t=new U(r(e).add(r(e,"dx","dy")));return t.setContent(e.textContent.trim()||""),t},switch:d};function m(e,t,n,r){if(e.transform){for(var o=(r.getAttribute(n)||"").split(/\)\s*/g),i=new S,a=0,s=o.length;a<s;a++){var l=o[a];if(!l)break;for(var c=l.split(/\(\s*/),u=c[0],d=c[1].split(/[\s,]+/g),h=0,p=d.length;h<p;h++)d[h]=parseFloat(d[h]);switch(u){case"matrix":i.append(new S(d[0],d[1],d[2],d[3],d[4],d[5]));break;case"rotate":i.rotate(d[0],d[1]||0,d[2]||0);break;case"translate":i.translate(d[0],d[1]||0);break;case"scale":i.scale(d);break;case"skewX":i.skew(d[0],0);break;case"skewY":i.skew(0,d[0])}}e.transform(i)}}function g(e,t,n){var r="fill-opacity"===n?"getFillColor":"getStrokeColor",o=e[r]&&e[r]();o&&o.setAlpha(parseFloat(t))}var v=u.set(u.each(de,(function(e){this[e.attribute]=function(t,n){if(t[e.set]&&(t[e.set](i(n,e.type,e.fromSVG)),"color"===e.type)){var r=t[e.get]();if(r&&r._scaleToBounds){var o=t.getBounds();r.transform((new S).translate(o.getPoint()).scale(o.getSize()))}}}}),{}),{id:function(e,n){t[n]=e,e.setName&&e.setName(n)},"clip-path":function(e,t){var n=x(t);if(n){if((n=n.clone()).setClipMask(!0),!(e instanceof E))return new E(n,e);e.insertChild(0,n)}},gradientTransform:m,transform:m,"fill-opacity":g,"stroke-opacity":g,visibility:function(e,t){e.setVisible&&e.setVisible("visible"===t)},display:function(e,t){e.setVisible&&e.setVisible(null!==t)},"stop-color":function(e,t){e.setColor&&e.setColor(t)},"stop-opacity":function(e,t){e._color&&e._color.setAlpha(parseFloat(t))},offset:function(e,t){if(e.setOffset){var n=t.match(/(.*)%$/);e.setOffset(n?n[1]/100:parseFloat(t))}},viewBox:function(e,t,n,r,a){var s,l=new _(i(t,"array")),c=o(r,null,null,!0);if(e instanceof E){var u=c?c.divide(l.getSize()):1,d=(new S).scale(u).translate(l.getPoint().negate());s=e}else e instanceof I&&(c&&l.setSize(c),s=e._item);if(s){if("visible"!==b(r,"overflow",a)){var h=new M.Rectangle(l);h.setClipMask(!0),s.addChild(h)}d&&s.transform(d)}}});function b(e,t,n){var r=e.attributes[t],o=r&&r.value;if(!o&&e.style){var i=u.camelize(t);(o=e.style[i])||n.node[i]===n.parent[i]||(o=n.node[i])}return o?"none"===o?null:o:s}function C(e,t,n){var r=t.parentNode,o={node:X.getStyles(t)||{},parent:!n&&!/^defs$/i.test(r.tagName)&&X.getStyles(r)||{}};return u.each(v,(function(n,r){var i=b(t,r,o);e=i!==s&&n(e,i,r,t,o)||e})),e}function x(e){var n=e&&e.match(/\((?:["'#]*)([^"')]+)/),r=n&&n[1],o=r&&t[l?r.replace(l.location.href.split("#")[0]+"#",""):r];return o&&o._scaleToBounds&&((o=o.clone())._scaleToBounds=!0),o}function k(n,r,i){var a,s,l,d=n.nodeName.toLowerCase(),h="#document"!==d,p=c.body;i&&h&&(e=he.getView().getSize(),e=o(n,null,null,!0)||e,a=ue.create("svg",{style:"stroke-width: 1px; stroke-miterlimit: 10"}),s=n.parentNode,l=n.nextSibling,a.appendChild(n),p.appendChild(a));var m=he.settings,g=m.applyMatrix,v=m.insertItems;m.applyMatrix=!1,m.insertItems=!1;var y=f[d],b=y&&y(n,d,r,i)||null;if(m.insertItems=v,m.applyMatrix=g,b){!h||b instanceof E||(b=C(b,n,i));var w=r.onImport,_=h&&n.getAttribute("data-paper-data");w&&(b=w(n,b,r)||b),r.expandShapes&&b instanceof M&&(b.remove(),b=b.toPath()),_&&(b._data=JSON.parse(_))}return a&&(p.removeChild(a),s&&(l?s.insertBefore(n,l):s.appendChild(n))),i&&(t={},b&&u.pick(r.applyMatrix,g)&&b.matrix.apply(!0,!0)),b}function O(e,t,n){if(!e)return null;t="function"==typeof t?{onLoad:t}:t||{};var r=he,o=null;function i(i){try{var c="object"==typeof i?i:(new a.DOMParser).parseFromString(i.trim(),"image/svg+xml");if(!c.nodeName)throw c=null,new Error("Unsupported SVG source: "+e);he=r,o=k(c,t,!0),t&&!1===t.insert||n._insertItem(s,o);var u=t.onLoad;u&&u(o,i)}catch(e){l(e)}}function l(e,n){var r=t.onError;if(!r)throw new Error(e);r(e,n)}if("string"!=typeof e||/^[\s\S]*</.test(e)){if("undefined"!=typeof File&&e instanceof File){var u=new FileReader;return u.onload=function(){i(u.result)},u.onerror=function(){l(u.error)},u.readAsText(e)}i(e)}else{var d=c.getElementById(e);d?i(d):se({url:e,async:!0,onLoad:i,onError:l})}return o}T.inject({importSVG:function(e,t){return O(e,t,this)}}),P.inject({importSVG:function(e,t){return this.activate(),O(e,t,this)}})},u.exports.PaperScript=function(){var e,t,d,p=this,f=p.acorn;if(!f)try{f=n(1331)}catch(e){}f||(f=e=t={},d=function(e){"use strict";var t,n,r,o;e.version="0.5.0",e.parse=function(e,o){return n=String(e),r=n.length,a(o),Ke(),function(e){v=y=s,t.locations&&(b=new Ue),w=_=null,C=[],Ze();var n=e||ut(),r=!0;for(e||(n.body=[]);h!==M;){var o=_t();n.body.push(o),r&&pt(o)&&st(!0),r=!1}return ht(n,"Program")}(t.program)};var i=e.defaultOptions={ecmaVersion:5,strictSemicolons:!1,allowTrailingCommas:!0,forbidReserved:!1,allowReturnOutsideFunction:!1,locations:!1,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null};function a(e){for(var n in t=e||{},i)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=i[n]);o=t.sourceFile||null}var s,l,c,u,d,h,p,f,m,g,v,y,b,w,C,_,x=e.getLineInfo=function(e,t){for(var n=1,r=0;;){Ve.lastIndex=r;var o=Ve.exec(e);if(!(o&&o.index<t))break;++n,r=o.index+o[0].length}return{line:n,column:t-r}};function S(e,t){var r=x(n,e);t+=" ("+r.line+":"+r.column+")";var o=new SyntaxError(t);throw o.pos=e,o.loc=r,o.raisedAt=s,o}e.tokenize=function(e,o){n=String(e),r=n.length,a(o),Ke();var i={};function v(e){return y=c,Ze(e),i.start=l,i.end=c,i.startLoc=u,i.endLoc=d,i.type=h,i.value=p,i}return v.jumpTo=function(e,r){var o;if(s=e,t.locations)for(m=1,g=Ve.lastIndex=0;(o=Ve.exec(n))&&o.index<e;)++m,g=o.index+o[0].length;f=r,Xe()},v};var k=[],P={type:"num"},T={type:"regexp"},E={type:"string"},O={type:"name"},M={type:"eof"},A={keyword:"break"},D={keyword:"case",beforeExpr:!0},I={keyword:"catch"},L={keyword:"continue"},N={keyword:"debugger"},j={keyword:"default"},R={keyword:"do",isLoop:!0},z={keyword:"else",beforeExpr:!0},F={keyword:"finally"},B={keyword:"for",isLoop:!0},H={keyword:"function"},V={keyword:"if"},Y={keyword:"return",beforeExpr:!0},W={keyword:"switch"},U={keyword:"throw",beforeExpr:!0},K={keyword:"try"},G={keyword:"var"},q={keyword:"while",isLoop:!0},$={keyword:"with"},X={keyword:"new",beforeExpr:!0},J={keyword:"this"},Z={keyword:"null",atomValue:null},Q={keyword:"true",atomValue:!0},ee={keyword:"false",atomValue:!1},te={keyword:"in",binop:7,beforeExpr:!0},ne={break:A,case:D,catch:I,continue:L,debugger:N,default:j,do:R,else:z,finally:F,for:B,function:H,if:V,return:Y,switch:W,throw:U,try:K,var:G,while:q,with:$,null:Z,true:Q,false:ee,new:X,in:te,instanceof:{keyword:"instanceof",binop:7,beforeExpr:!0},this:J,typeof:{keyword:"typeof",prefix:!0,beforeExpr:!0},void:{keyword:"void",prefix:!0,beforeExpr:!0},delete:{keyword:"delete",prefix:!0,beforeExpr:!0}},re={type:"[",beforeExpr:!0},oe={type:"]"},ie={type:"{",beforeExpr:!0},ae={type:"}"},se={type:"(",beforeExpr:!0},le={type:")"},ce={type:",",beforeExpr:!0},ue={type:";",beforeExpr:!0},de={type:":",beforeExpr:!0},he={type:"."},pe={type:"?",beforeExpr:!0},fe={binop:10,beforeExpr:!0},me={isAssign:!0,beforeExpr:!0},ge={isAssign:!0,beforeExpr:!0},ve={postfix:!0,prefix:!0,isUpdate:!0},ye={prefix:!0,beforeExpr:!0},be={binop:1,beforeExpr:!0},we={binop:2,beforeExpr:!0},Ce={binop:3,beforeExpr:!0},_e={binop:4,beforeExpr:!0},xe={binop:5,beforeExpr:!0},Se={binop:6,beforeExpr:!0},ke={binop:7,beforeExpr:!0},Pe={binop:8,beforeExpr:!0},Te={binop:9,prefix:!0,beforeExpr:!0},Ee={binop:10,beforeExpr:!0};for(var Oe in e.tokTypes={bracketL:re,bracketR:oe,braceL:ie,braceR:ae,parenL:se,parenR:le,comma:ce,semi:ue,colon:de,dot:he,question:pe,slash:fe,eq:me,name:O,eof:M,num:P,regexp:T,string:E},ne)e.tokTypes["_"+Oe]=ne[Oe];function Me(e){e=e.split(" ");var t="",n=[];e:for(var r=0;r<e.length;++r){for(var o=0;o<n.length;++o)if(n[o][0].length==e[r].length){n[o].push(e[r]);continue e}n.push([e[r]])}function i(e){if(1==e.length)return t+="return str === "+JSON.stringify(e[0])+";";t+="switch(str){";for(var n=0;n<e.length;++n)t+="case "+JSON.stringify(e[n])+":";t+="return true}return false;"}if(n.length>3){for(n.sort((function(e,t){return t.length-e.length})),t+="switch(str.length){",r=0;r<n.length;++r){var a=n[r];t+="case "+a[0].length+":",i(a)}t+="}"}else i(e);return new Function("str",t)}var Ae,De=Me("abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"),Ie=Me("class enum extends super const export import"),Le=Me("implements interface let package private protected public static yield"),Ne=Me("eval arguments"),je=Me("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Re=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ze="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Fe=new RegExp("["+ze+"]"),Be=new RegExp("["+ze+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),He=/[\n\r\u2028\u2029]/,Ve=/\r\n|[\n\r\u2028\u2029]/g,Ye=e.isIdentifierStart=function(e){return e<65?36===e:e<91||(e<97?95===e:e<123||e>=170&&Fe.test(String.fromCharCode(e)))},We=e.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||e>=170&&Be.test(String.fromCharCode(e))))};function Ue(){this.line=m,this.column=s-g}function Ke(){m=1,s=g=0,f=!0,Xe()}function Ge(e,n){c=s,t.locations&&(d=new Ue),h=e,Xe(),p=n,f=e.beforeExpr}function qe(){var e,r=t.onComment&&t.locations&&new Ue,o=s,i=n.indexOf("*/",s+=2);if(-1===i&&S(s-2,"Unterminated comment"),s=i+2,t.locations)for(Ve.lastIndex=o;(e=Ve.exec(n))&&e.index<s;)++m,g=e.index+e[0].length;t.onComment&&t.onComment(!0,n.slice(o+2,i),o,s,r,t.locations&&new Ue)}function $e(){for(var e=s,o=t.onComment&&t.locations&&new Ue,i=n.charCodeAt(s+=2);s<r&&10!==i&&13!==i&&8232!==i&&8233!==i;)++s,i=n.charCodeAt(s);t.onComment&&t.onComment(!1,n.slice(e+2,s),e,s,o,t.locations&&new Ue)}function Xe(){for(;s<r;){var e=n.charCodeAt(s);if(32===e)++s;else if(13===e)++s,10===(o=n.charCodeAt(s))&&++s,t.locations&&(++m,g=s);else if(10===e||8232===e||8233===e)++s,t.locations&&(++m,g=s);else if(e>8&&e<14)++s;else if(47===e){var o;if(42===(o=n.charCodeAt(s+1)))qe();else{if(47!==o)break;$e()}}else if(160===e)++s;else{if(!(e>=5760&&Re.test(String.fromCharCode(e))))break;++s}}}function Je(e){switch(e){case 46:return function(){var e=n.charCodeAt(s+1);return e>=48&&e<=57?nt(!0):(++s,Ge(he))}();case 40:return++s,Ge(se);case 41:return++s,Ge(le);case 59:return++s,Ge(ue);case 44:return++s,Ge(ce);case 91:return++s,Ge(re);case 93:return++s,Ge(oe);case 123:return++s,Ge(ie);case 125:return++s,Ge(ae);case 58:return++s,Ge(de);case 63:return++s,Ge(pe);case 48:var o=n.charCodeAt(s+1);if(120===o||88===o)return function(){s+=2;var e=tt(16);return null==e&&S(l+2,"Expected hexadecimal number"),Ye(n.charCodeAt(s))&&S(s,"Identifier directly after number"),Ge(P,e)}();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return nt(!1);case 34:case 39:return function(e){s++;for(var o="";;){s>=r&&S(l,"Unterminated string constant");var i=n.charCodeAt(s);if(i===e)return++s,Ge(E,o);if(92===i){i=n.charCodeAt(++s);var a=/^[0-7]+/.exec(n.slice(s,s+3));for(a&&(a=a[0]);a&&parseInt(a,8)>255;)a=a.slice(0,-1);if("0"===a&&(a=null),++s,a)_&&S(s-2,"Octal literal in strict mode"),o+=String.fromCharCode(parseInt(a,8)),s+=a.length-1;else switch(i){case 110:o+="\n";break;case 114:o+="\r";break;case 120:o+=String.fromCharCode(rt(2));break;case 117:o+=String.fromCharCode(rt(4));break;case 85:o+=String.fromCharCode(rt(8));break;case 116:o+="\t";break;case 98:o+="\b";break;case 118:o+="\v";break;case 102:o+="\f";break;case 48:o+="\0";break;case 13:10===n.charCodeAt(s)&&++s;case 10:t.locations&&(g=s,++m);break;default:o+=String.fromCharCode(i)}}else 13!==i&&10!==i&&8232!==i&&8233!==i||S(l,"Unterminated string constant"),o+=String.fromCharCode(i),++s}}(e);case 47:return function(){var e=n.charCodeAt(s+1);return f?(++s,et()):61===e?Qe(ge,2):Qe(fe,1)}();case 37:case 42:return 61===n.charCodeAt(s+1)?Qe(ge,2):Qe(Ee,1);case 124:case 38:return function(e){var t=n.charCodeAt(s+1);return t===e?Qe(124===e?be:we,2):61===t?Qe(ge,2):Qe(124===e?Ce:xe,1)}(e);case 94:return 61===n.charCodeAt(s+1)?Qe(ge,2):Qe(_e,1);case 43:case 45:return function(e){var t=n.charCodeAt(s+1);return t===e?45==t&&62==n.charCodeAt(s+2)&&He.test(n.slice(y,s))?(s+=3,$e(),Xe(),Ze()):Qe(ve,2):61===t?Qe(ge,2):Qe(Te,1)}(e);case 60:case 62:return function(e){var t=n.charCodeAt(s+1),r=1;return t===e?(r=62===e&&62===n.charCodeAt(s+2)?3:2,61===n.charCodeAt(s+r)?Qe(ge,r+1):Qe(Pe,r)):33==t&&60==e&&45==n.charCodeAt(s+2)&&45==n.charCodeAt(s+3)?(s+=4,$e(),Xe(),Ze()):(61===t&&(r=61===n.charCodeAt(s+2)?3:2),Qe(ke,r))}(e);case 61:case 33:return function(e){return 61===n.charCodeAt(s+1)?Qe(Se,61===n.charCodeAt(s+2)?3:2):Qe(61===e?me:ye,1)}(e);case 126:return Qe(ye,1)}return!1}function Ze(e){if(e?s=l+1:l=s,t.locations&&(u=new Ue),e)return et();if(s>=r)return Ge(M);var o=n.charCodeAt(s);if(Ye(o)||92===o)return it();var i=Je(o);if(!1===i){var a=String.fromCharCode(o);if("\\"===a||Fe.test(a))return it();S(s,"Unexpected character '"+a+"'")}return i}function Qe(e,t){var r=n.slice(s,s+t);s+=t,Ge(e,r)}function et(){for(var e,t,o=s;;){s>=r&&S(o,"Unterminated regular expression");var i=n.charAt(s);if(He.test(i)&&S(o,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++s}var a=n.slice(o,s);++s;var l=ot();l&&!/^[gmsiy]*$/.test(l)&&S(o,"Invalid regexp flag");try{var c=new RegExp(a,l)}catch(e){e instanceof SyntaxError&&S(o,e.message),S(e)}return Ge(T,c)}function tt(e,t){for(var r=s,o=0,i=0,a=null==t?1/0:t;i<a;++i){var l,c=n.charCodeAt(s);if((l=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;++s,o=o*e+l}return s===r||null!=t&&s-r!==t?null:o}function nt(e){var t=s,r=!1,o=48===n.charCodeAt(s);e||null!==tt(10)||S(t,"Invalid number"),46===n.charCodeAt(s)&&(++s,tt(10),r=!0);var i=n.charCodeAt(s);69!==i&&101!==i||(43!==(i=n.charCodeAt(++s))&&45!==i||++s,null===tt(10)&&S(t,"Invalid number"),r=!0),Ye(n.charCodeAt(s))&&S(s,"Identifier directly after number");var a,l=n.slice(t,s);return r?a=parseFloat(l):o&&1!==l.length?/[89]/.test(l)||_?S(t,"Invalid number"):a=parseInt(l,8):a=parseInt(l,10),Ge(P,a)}function rt(e){var t=tt(16,e);return null===t&&S(l,"Bad character escape sequence"),t}function ot(){Ae=!1;for(var e,t=!0,r=s;;){var o=n.charCodeAt(s);if(We(o))Ae&&(e+=n.charAt(s)),++s;else{if(92!==o)break;Ae||(e=n.slice(r,s)),Ae=!0,117!=n.charCodeAt(++s)&&S(s,"Expecting Unicode escape sequence \\uXXXX"),++s;var i=rt(4),a=String.fromCharCode(i);a||S(s-1,"Invalid Unicode escape"),(t?Ye(i):We(i))||S(s-4,"Invalid Unicode escape"),e+=a}t=!1}return Ae?e:n.slice(r,s)}function it(){var e=ot(),t=O;return!Ae&&je(e)&&(t=ne[e]),Ge(t,e)}function at(){v=l,y=c,b=d,Ze()}function st(e){if(_=e,s=l,t.locations)for(;s<g;)g=n.lastIndexOf("\n",g-2)+1,--m;Xe(),Ze()}function lt(){this.type=null,this.start=l,this.end=null}function ct(){this.start=u,this.end=null,null!==o&&(this.source=o)}function ut(){var e=new lt;return t.locations&&(e.loc=new ct),t.directSourceFile&&(e.sourceFile=t.directSourceFile),t.ranges&&(e.range=[l,0]),e}function dt(e){var n=new lt;return n.start=e.start,t.locations&&(n.loc=new ct,n.loc.start=e.loc.start),t.ranges&&(n.range=[e.range[0],0]),n}function ht(e,n){return e.type=n,e.end=y,t.locations&&(e.loc.end=b),t.ranges&&(e.range[1]=y),e}function pt(e){return t.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"use strict"===e.expression.value}function ft(e){if(h===e)return at(),!0}function mt(){return!t.strictSemicolons&&(h===M||h===ae||He.test(n.slice(y,l)))}function gt(){ft(ue)||mt()||yt()}function vt(e){h===e?at():yt()}function yt(){S(l,"Unexpected token")}function bt(e){"Identifier"!==e.type&&"MemberExpression"!==e.type&&S(e.start,"Assigning to rvalue"),_&&"Identifier"===e.type&&Ne(e.name)&&S(e.start,"Assigning to "+e.name+" in strict mode")}var wt={kind:"loop"},Ct={kind:"switch"};function _t(){(h===fe||h===ge&&"/="==p)&&Ze(!0);var e=h,r=ut();switch(e){case A:case L:at();var o=e===A;ft(ue)||mt()?r.label=null:h!==O?yt():(r.label=jt(),gt());for(var i=0;i<C.length;++i){var a=C[i];if(null==r.label||a.name===r.label.name){if(null!=a.kind&&(o||"loop"===a.kind))break;if(r.label&&o)break}}return i===C.length&&S(r.start,"Unsyntactic "+e.keyword),ht(r,o?"BreakStatement":"ContinueStatement");case N:return at(),gt(),ht(r,"DebuggerStatement");case R:return at(),C.push(wt),r.body=_t(),C.pop(),vt(q),r.test=xt(),gt(),ht(r,"DoWhileStatement");case B:if(at(),C.push(wt),vt(se),h===ue)return kt(r,null);if(h===G){var s=ut();return at(),Tt(s,!0),ht(s,"VariableDeclaration"),1===s.declarations.length&&ft(te)?Pt(r,s):kt(r,s)}return s=Et(!1,!0),ft(te)?(bt(s),Pt(r,s)):kt(r,s);case H:return at(),Lt(r,!0);case V:return at(),r.test=xt(),r.consequent=_t(),r.alternate=ft(z)?_t():null,ht(r,"IfStatement");case Y:return w||t.allowReturnOutsideFunction||S(l,"'return' outside of function"),at(),ft(ue)||mt()?r.argument=null:(r.argument=Et(),gt()),ht(r,"ReturnStatement");case W:at(),r.discriminant=xt(),r.cases=[],vt(ie),C.push(Ct);for(var c,u;h!=ae;)if(h===D||h===j){var d=h===D;c&&ht(c,"SwitchCase"),r.cases.push(c=ut()),c.consequent=[],at(),d?c.test=Et():(u&&S(v,"Multiple default clauses"),u=!0,c.test=null),vt(de)}else c||yt(),c.consequent.push(_t());return c&&ht(c,"SwitchCase"),at(),C.pop(),ht(r,"SwitchStatement");case U:return at(),He.test(n.slice(y,l))&&S(y,"Illegal newline after throw"),r.argument=Et(),gt(),ht(r,"ThrowStatement");case K:if(at(),r.block=St(),r.handler=null,h===I){var f=ut();at(),vt(se),f.param=jt(),_&&Ne(f.param.name)&&S(f.param.start,"Binding "+f.param.name+" in strict mode"),vt(le),f.guard=null,f.body=St(),r.handler=ht(f,"CatchClause")}return r.guardedHandlers=k,r.finalizer=ft(F)?St():null,r.handler||r.finalizer||S(r.start,"Missing catch or finally clause"),ht(r,"TryStatement");case G:return at(),Tt(r),gt(),ht(r,"VariableDeclaration");case q:return at(),r.test=xt(),C.push(wt),r.body=_t(),C.pop(),ht(r,"WhileStatement");case $:return _&&S(l,"'with' in strict mode"),at(),r.object=xt(),r.body=_t(),ht(r,"WithStatement");case ie:return St();case ue:return at(),ht(r,"EmptyStatement");default:var m=p,g=Et();if(e===O&&"Identifier"===g.type&&ft(de)){for(i=0;i<C.length;++i)C[i].name===m&&S(g.start,"Label '"+m+"' is already declared");var b=h.isLoop?"loop":h===W?"switch":null;return C.push({name:m,kind:b}),r.body=_t(),C.pop(),r.label=g,ht(r,"LabeledStatement")}return r.expression=g,gt(),ht(r,"ExpressionStatement")}}function xt(){vt(se);var e=Et();return vt(le),e}function St(e){var t,n=ut(),r=!0,o=!1;for(n.body=[],vt(ie);!ft(ae);){var i=_t();n.body.push(i),r&&e&&pt(i)&&(t=o,st(o=!0)),r=!1}return o&&!t&&st(!1),ht(n,"BlockStatement")}function kt(e,t){return e.init=t,vt(ue),e.test=h===ue?null:Et(),vt(ue),e.update=h===le?null:Et(),vt(le),e.body=_t(),C.pop(),ht(e,"ForStatement")}function Pt(e,t){return e.left=t,e.right=Et(),vt(le),e.body=_t(),C.pop(),ht(e,"ForInStatement")}function Tt(e,t){for(e.declarations=[],e.kind="var";;){var n=ut();if(n.id=jt(),_&&Ne(n.id.name)&&S(n.id.start,"Binding "+n.id.name+" in strict mode"),n.init=ft(me)?Et(!0,t):null,e.declarations.push(ht(n,"VariableDeclarator")),!ft(ce))break}return e}function Et(e,t){var n=Ot(t);if(!e&&h===ce){var r=dt(n);for(r.expressions=[n];ft(ce);)r.expressions.push(Ot(t));return ht(r,"SequenceExpression")}return n}function Ot(e){var t=function(e){var t=function(e){return function e(t,n,r){var o=h.binop;if(null!=o&&(!r||h!==te)&&o>n){var i=dt(t);i.left=t,i.operator=p;var a=h;at(),i.right=e(Mt(),o,r);var s=ht(i,a===be||a===we?"LogicalExpression":"BinaryExpression");return e(s,n,r)}return t}(Mt(),-1,e)}(e);if(ft(pe)){var n=dt(t);return n.test=t,n.consequent=Et(!0),vt(de),n.alternate=Et(!0,e),ht(n,"ConditionalExpression")}return t}(e);if(h.isAssign){var n=dt(t);return n.operator=p,n.left=t,at(),n.right=Ot(e),bt(t),ht(n,"AssignmentExpression")}return t}function Mt(){if(h.prefix){var e=ut(),t=h.isUpdate;return e.operator=p,e.prefix=!0,f=!0,at(),e.argument=Mt(),t?bt(e.argument):_&&"delete"===e.operator&&"Identifier"===e.argument.type&&S(e.start,"Deleting local variable in strict mode"),ht(e,t?"UpdateExpression":"UnaryExpression")}for(var n=At(Dt());h.postfix&&!mt();)(e=dt(n)).operator=p,e.prefix=!1,e.argument=n,bt(n),at(),n=ht(e,"UpdateExpression");return n}function At(e,t){var n;return ft(he)?((n=dt(e)).object=e,n.property=jt(!0),n.computed=!1,At(ht(n,"MemberExpression"),t)):ft(re)?((n=dt(e)).object=e,n.property=Et(),n.computed=!0,vt(oe),At(ht(n,"MemberExpression"),t)):!t&&ft(se)?((n=dt(e)).callee=e,n.arguments=Nt(le,!1),At(ht(n,"CallExpression"),t)):e}function Dt(){switch(h){case J:var e=ut();return at(),ht(e,"ThisExpression");case O:return jt();case P:case E:case T:return(e=ut()).value=p,e.raw=n.slice(l,c),at(),ht(e,"Literal");case Z:case Q:case ee:return(e=ut()).value=h.atomValue,e.raw=h.keyword,at(),ht(e,"Literal");case se:var r=u,o=l;at();var i=Et();return i.start=o,i.end=c,t.locations&&(i.loc.start=r,i.loc.end=d),t.ranges&&(i.range=[o,c]),vt(le),i;case re:return e=ut(),at(),e.elements=Nt(oe,!0,!0),ht(e,"ArrayExpression");case ie:return function(){var e=ut(),n=!0,r=!1;for(e.properties=[],at();!ft(ae);){if(n)n=!1;else if(vt(ce),t.allowTrailingCommas&&ft(ae))break;var o,i={key:It()},a=!1;if(ft(de)?(i.value=Et(!0),o=i.kind="init"):t.ecmaVersion>=5&&"Identifier"===i.key.type&&("get"===i.key.name||"set"===i.key.name)?(a=r=!0,o=i.kind=i.key.name,i.key=It(),h!==se&&yt(),i.value=Lt(ut(),!1)):yt(),"Identifier"===i.key.type&&(_||r))for(var s=0;s<e.properties.length;++s){var l=e.properties[s];if(l.key.name===i.key.name){var c=o==l.kind||a&&"init"===l.kind||"init"===o&&("get"===l.kind||"set"===l.kind);c&&!_&&"init"===o&&"init"===l.kind&&(c=!1),c&&S(i.key.start,"Redefinition of property")}}e.properties.push(i)}return ht(e,"ObjectExpression")}();case H:return e=ut(),at(),Lt(e,!1);case X:return function(){var e=ut();return at(),e.callee=At(Dt(),!0),ft(se)?e.arguments=Nt(le,!1):e.arguments=k,ht(e,"NewExpression")}();default:yt()}}function It(){return h===P||h===E?Dt():jt(!0)}function Lt(e,t){h===O?e.id=jt():t?yt():e.id=null,e.params=[];var n=!0;for(vt(se);!ft(le);)n?n=!1:vt(ce),e.params.push(jt());var r=w,o=C;if(w=!0,C=[],e.body=St(!0),w=r,C=o,_||e.body.body.length&&pt(e.body.body[0]))for(var i=e.id?-1:0;i<e.params.length;++i){var a=i<0?e.id:e.params[i];if((Le(a.name)||Ne(a.name))&&S(a.start,"Defining '"+a.name+"' in strict mode"),i>=0)for(var s=0;s<i;++s)a.name===e.params[s].name&&S(a.start,"Argument name clash in strict mode")}return ht(e,t?"FunctionDeclaration":"FunctionExpression")}function Nt(e,n,r){for(var o=[],i=!0;!ft(e);){if(i)i=!1;else if(vt(ce),n&&t.allowTrailingCommas&&ft(e))break;r&&h===ce?o.push(null):o.push(Et(!0))}return o}function jt(e){var r=ut();return e&&"everywhere"==t.forbidReserved&&(e=!1),h===O?(!e&&(t.forbidReserved&&(3===t.ecmaVersion?De:Ie)(p)||_&&Le(p))&&-1==n.slice(l,c).indexOf("\\")&&S(l,"The keyword '"+p+"' is reserved"),r.name=p):e&&h.keyword?r.name=h.keyword:yt(),f=!1,at(),ht(r,"Identifier")}},"object"==typeof e&&"object"==typeof t?d(e):(r=[e],(i="function"==typeof(o=d)?o.apply(e,r):o)===s||(t.exports=i)),f.version||(f=null));function m(e,t){return(p.acorn||f).parse(e,t)}var g={"+":"__add","-":"__subtract","*":"__multiply","/":"__divide","%":"__modulo","==":"__equals","!=":"__equals"},v={"-":"__negate","+":"__self"},b=u.each(["add","subtract","multiply","divide","modulo","equals","negate"],(function(e){this["__"+e]="#"+e}),{__self:function(){return this}});function C(e,t,n){var r=g[t];if(e&&e[r]){var o=e[r](n);return"!="===t?!o:o}switch(t){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"==":return e==n;case"!=":return e!=n}}function _(e,t){var n=v[e];if(t&&t[n])return t[n]();switch(e){case"+":return+t;case"-":return-t}}function x(e,t){if(!e)return"";var n=[];function r(e){for(var t=0,r=n.length;t<r;t++){var o=n[t];if(o[0]>=e)break;e+=o[1]}return e}function o(t){return e.substring(r(t.range[0]),r(t.range[1]))}function i(t,o){for(var i=r(t.range[0]),a=r(t.range[1]),s=0,l=n.length-1;l>=0;l--)if(i>n[l][0]){s=l+1;break}n.splice(s,0,[i,o.length-a+i]),e=e.substring(0,i)+o+e.substring(a)}function s(t,n){switch(t.type){case"UnaryExpression":if(t.operator in v&&"Literal"!==t.argument.type){var a=o(t.argument);i(t,'$__("'+t.operator+'", '+a+")")}break;case"BinaryExpression":if(t.operator in g&&"Literal"!==t.left.type){var s=o(t.left),l=o(t.right),c=function(t,n){return e.substring(r(t.range[1]),r(n.range[0]))}(t.left,t.right),u=t.operator;i(t,"__$__("+s+","+c.replace(new RegExp("\\"+u),'"'+u+'"')+", "+l+")")}break;case"UpdateExpression":case"AssignmentExpression":var d=n&&n.type;if(!("ForStatement"===d||"BinaryExpression"===d&&/^[=!<>]/.test(n.operator)||"MemberExpression"===d&&n.computed))if("UpdateExpression"===t.type){var h=(a=o(t.argument))+" = "+(p="__$__("+a+', "'+t.operator[0]+'", 1)');t.prefix?h="("+h+")":"AssignmentExpression"!==d&&"VariableDeclarator"!==d&&"BinaryExpression"!==d||(o(n.left||n.id)===a&&(h=p),h=a+"; "+h),i(t,h)}else if(/^.=$/.test(t.operator)&&"Literal"!==t.left.type){s=o(t.left),l=o(t.right);var p=s+" = __$__("+s+', "'+t.operator[0]+'", '+l+")";i(t,/^\(.*\)$/.test(o(t))?"("+p+")":p)}}}var u,d=(t=t||{}).url||"",h=t.sourceMaps,p=t.paperFeatures||{},f=t.source||e,y=t.offset||0,b=he.agent,w=b.versionNumber,C=!1,_=/\r\n|\n|\r/gm;if(h&&(b.chrome&&w>=30||b.webkit&&w>=537.76||b.firefox&&w>=23||b.node)){if(b.node)y-=2;else if(l&&d&&!l.location.href.indexOf(d)){var x=c.getElementsByTagName("html")[0].innerHTML;y=x.substr(0,x.indexOf(e)+1).match(_).length+1}var S=["AA"+function(e){var t="";for(e=(Math.abs(e)<<1)+(e<0?1:0);e||!t;){var n=31&e;(e>>=5)&&(n|=32),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}return t}((C=y>0&&!(b.chrome&&w>=36||b.safari&&w>=600||b.firefox&&w>=40||b.node))?0:y)+"A"];S.length=(e.match(_)||[]).length+1+(C?y:0),u={version:3,file:d,names:[],mappings:S.join(";AACA"),sourceRoot:"",sources:[d],sourcesContent:[f]}}return!1===p.operatorOverloading&&!1===p.moduleExports||function e(t,n,r){if(t){for(var a in t)if("range"!==a&&"loc"!==a){var l=t[a];if(Array.isArray(l))for(var c=0,u=l.length;c<u;c++)e(l[c],t,r);else l&&"object"==typeof l&&e(l,t,r)}!1!==r.operatorOverloading&&s(t,n),!1!==r.moduleExports&&function(e){switch(e.type){case"ExportDefaultDeclaration":i({range:[e.start,e.declaration.start]},"module.exports = ");break;case"ExportNamedDeclaration":var t=e.declaration,n=e.specifiers;if(t){var r=t.declarations;r&&(r.forEach((function(e){i(e,"module.exports."+o(e))})),i({range:[e.start,t.start+t.kind.length]},""))}else if(n){var a=n.map((function(e){var t=o(e);return"module.exports."+t+" = "+t+"; "})).join("");a&&i(e,a)}}}(t)}}(m(e,{ranges:!0,preserveParens:!0,sourceType:"module"}),null,p),u&&(C&&(e=new Array(y+1).join("\n")+e),/^(inline|both)$/.test(h)&&(e+="\n//# sourceMappingURL=data:application/json;base64,"+a.btoa(unescape(encodeURIComponent(JSON.stringify(u))))),e+="\n//# sourceURL="+(d||"paperscript")),{url:d,source:f,code:e,map:u}}function S(e,t,n){he=t;var r,o=t.getView(),i=/\btool\.\w+|\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\b/.test(e)&&!/\bnew\s+Tool\b/.test(e)?new ie:null,a=i?i._events:[],s=["onFrame","onResize"].concat(a),l=[],d=[],h="object"==typeof e?e:x(e,n);function p(t,n){for(var r in t)!n&&/^_/.test(r)||!new RegExp("([\\b\\s\\W]|^)"+r.replace(/\$/g,"\\$")+"\\b").test(e)||(l.push(r),d.push(t[r]))}e=h.code,p({__$__:C,$__:_,paper:t,tool:i},!0),p(t),e="var module = { exports: {} }; "+e,(v=u.each(s,(function(t){new RegExp("\\s+"+t+"\\b").test(e)&&(l.push(t),this.push("module.exports."+t+" = "+t+";"))}),[]).join("\n"))&&(e+="\n"+v),e+="\nreturn module.exports;";var f=he.agent;if(c&&(f.chrome||f.firefox&&f.versionNumber<40)){var m=c.createElement("script"),g=c.head||c.getElementsByTagName("head")[0];f.firefox&&(e="\n"+e),m.appendChild(c.createTextNode("document.__paperscript__ = function("+l+") {"+e+"\n}")),g.appendChild(m),r=c.__paperscript__,delete c.__paperscript__,g.removeChild(m)}else r=Function(l,e);var v,b=(v=r&&r.apply(t,d))||{};return u.each(a,(function(e){var t=b[e];t&&(i[e]=t)})),o&&(b.onResize&&o.setOnResize(b.onResize),o.emit("resize",{size:o.size,delta:new y}),b.onFrame&&o.setOnFrame(b.onFrame),o.requestUpdate()),v}function k(e){if(/^text\/(?:x-|)paperscript$/.test(e.type)&&"true"!==h.getAttribute(e,"ignore")){var t=h.getAttribute(e,"canvas"),n=c.getElementById(t),r=e.src||e.getAttribute("data-src"),o=h.hasAttribute(e,"async");if(!n)throw new Error('Unable to find canvas with id "'+t+'"');var i=h.get(n.getAttribute("data-paper-scope"))||(new h).setup(n);return n.setAttribute("data-paper-scope",i._id),r?se({url:r,async:o,mimeType:"text/plain",onLoad:function(e){S(e,i,r)}}):S(e.innerHTML,i,e.baseURI),e.setAttribute("data-paper-ignore","true"),i}}function P(){u.each(c&&c.getElementsByTagName("script"),k)}return y.inject(b),w.inject(b),K.inject(b),l&&("complete"===c.readyState?setTimeout(P):J.add(l,{load:P})),{compile:x,execute:S,load:function(e){return e?k(e):P()},parse:m,calculateBinary:C,calculateUnary:_}}.call(this);var he=new(h.inject(u.exports,{Base:u,Numerical:g,Key:ne,DomEvent:J,DomElement:X,document:c,window:l,Symbol:I,PlacedSymbol:D}));return he.agent.node&&n(1332)(he),(i="function"==typeof(o=he)?o.call(t,n,t,e):o)===s||(e.exports=i),he}).call(this,"object"==typeof self?self:null)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26);n(1454);const a={border:"dsm-c-button-border",greyBorder:"dsm-c-button-grey-border",blueBorder:"dsm-c-button-blue-border",icon:"dsm-c-button-icon",small:"dsm-c-button-small"},s=({theme:e,icon:t,disabled:n,onClick:s,children:l,width:c,minWidth:u,background:d,solid:h,classname:p,content:f,classList:m})=>{const g=e?a[e]:"";return r.createElement("button",{className:p||o.default("dsm-c-button",g,d,m&&m.length>0?[...m]:[]),disabled:n,onClick:s,style:{width:c,minWidth:u}},"icon"===e&&r.createElement(i.default,{solid:h,cls:t})," ",f||"",l)};s.defaultProps={theme:"basic",icon:"",disabled:!1,width:100,solid:!1,classname:"",content:""},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1489);class i extends r.Component{constructor(e){super(e),this.isWaitingCompositionEnd=!1,this.delayTimer=null,this.onFocus=()=>{this.props.autoSelect&&this.props.onFocus?this.props.onFocus():this.props.onDefaultFocus&&this.props.onDefaultFocus()},this.onCompositionStart=()=>{this.isWaitingCompositionEnd||(this.isWaitingCompositionEnd=!0)},this.onCompositionUpdate=()=>{this.isWaitingCompositionEnd||(this.isWaitingCompositionEnd=!0)},this.onCompositionEnd=()=>{this.isWaitingCompositionEnd=!1},this.onInputChange=this.onInputChange.bind(this),this.onInputKeyDown=this.onInputKeyDown.bind(this),this.onInput=this.onInput.bind(this),this.inputRef=r.createRef()}componentDidMount(){setTimeout(()=>{if(this.inputRef.current&&this.props.autoSelect){this.inputRef.current.focus(),this.inputRef.current.select();const e=this.inputRef.current.value.length;this.inputRef.current.selectionStart=0,this.inputRef.current.selectionEnd=e}},100)}onInputChange(e){const{onChange:t}=this.props;t&&t(e.target.value)}onInput(e){const{onInput:t}=this.props;t&&t(e.target.value)}onInputKeyDown(e){"Escape"!==e.key&&e.stopPropagation();const{onDelaySearch:t}=this.props;if(t){let n=0;return this.delayTimer&&clearInterval(this.delayTimer),void(this.delayTimer=setInterval(()=>{n++,n>=10&&(clearInterval(this.delayTimer),t&&t(e.target.value))},30))}const{onSubmit:n}=this.props;if(n&&!this.isWaitingCompositionEnd&&"Enter"===e.key){if(e.stopPropagation(),!e.target.value.trim())return;n(e.target.value,e)}}render(){const{value:e,width:t,height:n,placeholder:i,type:a,error:s,disabled:l,autoFocus:c,fullBorder:u}=this.props,d={};return t&&(d.width=t),n&&(d.height=n),r.createElement("div",{className:o.default("dsm-c-input",{"dsm-c-input-error":""!==s,"dsm-c-input-full-border":u}),style:d},r.createElement("input",{type:a,value:e,onFocus:this.onFocus,autoFocus:c,placeholder:i,onChange:this.onInputChange,onKeyDown:this.onInputKeyDown,onInput:this.onInput,disabled:l,ref:this.props.setInputRef||this.inputRef,onBlur:this.props.onBlur,maxLength:this.props.maxLength,onCompositionStart:this.onCompositionStart,onCompositionUpdate:this.onCompositionUpdate,onCompositionEnd:this.onCompositionEnd}),r.createElement("span",{className:"ds-c-input-error-msg",hidden:!s},s))}}i.defaultProps={value:"",maxLength:void 0,type:"text",placeholder:"",error:"",disabled:!1,autoFocus:!1,fullBorder:!1},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(163),s=n(87),l=n(314),c=n(26),u=n(315);n(1495);class d extends r.Component{constructor(){super(...arguments),this.onClickItem=(e,t,n)=>{this.props.onSelect&&this.props.onSelect(e,t),n&&n.stopPropagation()},this.onMouseOver=(e,t)=>{this.props.onMouseHover&&this.props.onMouseHover(e),t&&t.stopPropagation()},this.renderBadge=(e,t)=>"dot"===e?r.createElement("span",{className:"badge-dot"},r.createElement("span",{className:"dot"})):t?r.createElement("span",{className:"badge-count",style:{padding:t<10?0:"0 6px",borderRadius:t<10?"50%":10}},t):null}render(){let{options:e,className:t,disabled:n,selectIdx:l,width:d,maxWidth:h,minWidth:p,autoHeightMax:f,emptyMenuText:m,onClickLink:g}=this.props;const v=e&&!e.length&&m,y=e?e.map(({id:e,text:t,description:s,linkTo:d,href:h,target:p,disable:f,icon:m,tips:v,tipText:y,showUpgradeTip:b,upgradeTipText:w,upgradeLinkText:C,badgeType:_,badgeCount:x},S)=>(e=>i.isString(e)&&e.match(/^-+$/))(t)?r.createElement("li",{className:"split-line",key:S}):r.createElement("li",{key:S,className:o.default("",{"has-icon":!!m}),onClick:t=>{!n&&!f&&this.onClickItem(null!=e?e:"",S,t)},onMouseOver:t=>{this.onMouseOver(e||"",t)}},m&&r.createElement(c.default,{cls:m,disabled:n||f}),d&&r.createElement(a.Link,{className:o.default("menu-item",{"dsm-c-disabled":n||f,"select-item":l===S}),to:d},t),h&&r.createElement("a",{className:o.default("menu-item",{"dsm-c-disabled":n||f,"select-item":l===S}),href:h,target:p||"_self"},t),!d&&!h&&r.createElement("span",{className:o.default("menu-item",{"dsm-c-disabled":n||f,"select-item":l===S})},r.createElement("span",{className:o.default("menu-item-title",{"menu-item-title-badge":!!_&&x})},t,!!_&&this.renderBadge(_,Number(x))),v&&r.createElement("i",{className:"tips"},v),y&&r.createElement("i",{className:"tipText"},y),b&&w&&r.createElement(u.default,{tooltip:w,linkText:C,onClickLink:g}),s&&r.createElement("p",null,s)))):[];return r.createElement("ul",{className:o.default("dsm-c-drop",t),style:{width:d,maxWidth:h,minWidth:p},ref:this.props.forwardedRef},f?r.createElement(s.default,{autoHeight:!0,autoHeightMax:f},y):y,v&&r.createElement("li",null,r.createElement("span",{className:"menu-item"},m)))}}d.defaultProps={options:[],disabled:!1,autoHeightMax:0},t.default=l.default(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(139),a=n(180);class s extends r.Component{constructor(e){super(e),this.state={value:e.value||""},this.onInputChange=this.onInputChange.bind(this),this.onSubmit=this.onSubmit.bind(this),this.inputRef=r.createRef()}componentDidMount(){setTimeout(()=>{if(!this.inputRef.current)return;this.inputRef.current.focus(),this.inputRef.current.select();const e=this.inputRef.current.value;let t=e.length;if(this.props.focusSuffix){const n=e.lastIndexOf(".");-1!==n&&(t=n)}this.inputRef.current.selectionStart=0,this.inputRef.current.selectionEnd=t},100)}onInputChange(e){const{onChange:t}=this.props;this.setState({value:e}),t(e)}onSubmit(){const{onOk:e,errorMsg:t}=this.props,{value:n}=this.state;t||e(n)}render(){const{width:e,showCancel:t,onCancel:n,placeholder:s,errorMsg:l,title:c,showClose:u,maxLength:d,theme:h}=this.props,{value:p}=this.state;return o.createPortal(r.createElement("div",{onMouseDown:e=>{e.stopPropagation()}},r.createElement(i.default,{title:c,showCancel:t,theme:h,onOk:this.onSubmit,onCancel:n,showClose:u,disableOk:!p.trim()||!!l},r.createElement("div",null,r.createElement(a.default,{setInputRef:this.inputRef,width:e,placeholder:s,onChange:this.onInputChange,onSubmit:this.onSubmit,value:p,error:l,maxLength:d})))),document.body)}}s.defaultProps={width:"100%",showCancel:!0,placeholder:"",showClose:!1,focusSuffix:!1},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerServiceQRList=t.rpFreeDeadline=t.rpFreeProgressInviteCount=t.rpFreeProgressList=void 0;const r=n(317),o=n(25);t.rpFreeProgressList=[{id:r.RPFreeProgramProgressNode.Initial,text:o.default("rpActivity.oneYear"),active:!0,count:0},{id:r.RPFreeProgramProgressNode.First,text:o.default("rpActivity.addThreeMonth"),active:!1,count:1},{id:r.RPFreeProgramProgressNode.Second,text:o.default("rpActivity.addThreeMonth"),active:!1,count:2},{id:r.RPFreeProgramProgressNode.Third,text:o.default("rpActivity.addThreeMonth"),active:!1,count:3},{id:r.RPFreeProgramProgressNode.Fourth,text:o.default("rpActivity.addThreeMonth"),active:!1,count:4},{id:r.RPFreeProgramProgressNode.Last,text:o.default("rpActivity.forever"),active:!1,count:5}],t.rpFreeProgressInviteCount=5,t.rpFreeDeadline=new Date("2021-12-31");t.CustomerServiceQRList=["https://img02.mockplus.cn/image/2021-03-4/e45236a4-6fc9-0d76-2dd5-52b3911e3d26.png","https://img02.mockplus.cn/image/2021-03-4/0d8eb54b-c3a1-96c8-cc0f-8d6b4b52f317.png","https://img02.mockplus.cn/image/2021-03-4/8b570d76-8362-25a9-4761-866dc82003b5.png"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);n(1606);const o=({str:e,targetStr:t,targetClassName:n,theme:o,targetStrArr:i,onClickTarget:a})=>r.createElement("span",{className:"match-str-wrapper",onClick:e=>{e.target.className.includes("target-str")&&a&&a()},dangerouslySetInnerHTML:{__html:(()=>{if(i&&i.length>0){let t=e;return i.forEach(e=>{const r=new RegExp(e||"","g");t=t.replace(r,`<span class="target-str ${n||""} ${o||""}">`+e+"</span>")}),t}if(t){const r=new RegExp(t||"","g");return e.replace(r,`<span class="target-str ${n||""} ${o||""}">`+t+"</span>")}return e})()}});o.defaultProps={targetStr:""},t.default=o},function(e,t,n){var r=n(232),o=n(1646),i=n(1647),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return u})),n.d(t,"connectAdvanced",(function(){return b})),n.d(t,"ReactReduxContext",(function(){return l})),n.d(t,"connect",(function(){return q}));var r=n(51),o=n(0),i=n.n(o),a=n(59),s=n.n(a),l=i.a.createContext(null),c=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var n=t.getState();e._isMounted&&e.setState((function(e){return e.storeState===n?null:{storeState:n}}))}));var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||l;return i.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(o.Component);c.propTypes={store:s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired}),context:s.a.object,children:s.a.any};var u=c,d=n(9),h=n(1),p=n(60),f=n(78),m=n.n(f),g=n(165),v=n.n(g),y=n(117);function b(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,u=void 0===c?"connectAdvanced":c,f=n.renderCountProp,g=void 0===f?void 0:f,b=n.shouldHandleStateChanges,w=void 0===b||b,C=n.storeKey,_=void 0===C?"store":C,x=n.withRef,S=void 0!==x&&x,k=n.forwardRef,P=void 0!==k&&k,T=n.context,E=void 0===T?l:T,O=Object(p.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);v()(void 0===g,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),v()(!S,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var M="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";v()("store"===_,"storeKey has been removed and does not do anything. "+M);var A=E;return function(t){var n=t.displayName||t.name||"Component",a=s(n),l=Object(h.a)({},O,{getDisplayName:s,methodName:u,renderCountProp:g,shouldHandleStateChanges:w,storeKey:_,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=O.pure,p=o.Component;c&&(p=o.PureComponent);var f=function(n){function o(t){var r,o,a,s,l,u,p,f,m,g,y;return r=n.call(this,t)||this,v()(P?!t.wrapperProps[_]:!t[_],"Passing redux store in props has been removed and does not do anything. "+M),r.selectDerivedProps=function(t,n,r,i){if(c&&o===n&&a===t)return s;r===l&&u===i||(l=r,u=i,p=e(r.dispatch,i)),o=n,a=t;var d=p(t,n);return s=d},r.selectChildElement=function(e,t,n){return t===f&&n===m&&y===e||(f=t,m=n,y=e,g=i.a.createElement(e,Object(h.a)({},t,{ref:n}))),g},r.indirectRenderWrappedComponent=r.indirectRenderWrappedComponent.bind(Object(d.a)(r)),r}Object(r.a)(o,n);var s=o.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){v()(e,'Could not find "store" in the context of "'+a+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+a+" in connect options.");var n,r=e.storeState,o=e.store,i=this.props;P&&(i=this.props.wrapperProps,n=this.props.forwardedRef);var s=this.selectDerivedProps(r,i,o,l);return this.selectChildElement(t,s,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(y.isContextConsumer)(i.a.createElement(this.props.context.Consumer,null))?this.props.context:A;return i.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},o}(p);if(f.WrappedComponent=t,f.displayName=a,P){var b=i.a.forwardRef((function(e,t){return i.a.createElement(f,{wrapperProps:e,forwardedRef:t})}));return b.displayName=a,b.WrappedComponent=t,m()(b,t)}return m()(f,t)}}var w=Object.prototype.hasOwnProperty;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!w.call(t,n[o])||!C(e[n[o]],t[n[o]]))return!1;return!0}var x=n(141);function S(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function k(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=k(o),o=r(t,n)),o},r}}var T=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:S((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?S((function(t){return Object(x.bindActionCreators)(e,t)})):void 0}];var E=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:S((function(){return{}}))}];function O(e,t,n){return Object(h.a)({},n,e,t)}var M=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return O}}];function A(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function D(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,h=o.areStatePropsEqual,p=!1;function f(o,p){var f,m,g=!d(p,a),v=!u(o,i);return i=o,a=p,g&&v?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):v?(f=e(i,a),m=!h(f,s),s=f,m&&(c=n(s,l,a)),c):c}return function(o,u){return p?f(o,u):(s=e(i=o,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function I(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(p.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?D:A)(a,s,l,e,i)}function L(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function N(e,t){return e===t}var j,R,z,F,B,H,V,Y,W,U,K,G,q=(z=(R=void 0===j?{}:j).connectHOC,F=void 0===z?b:z,B=R.mapStateToPropsFactories,H=void 0===B?E:B,V=R.mapDispatchToPropsFactories,Y=void 0===V?T:V,W=R.mergePropsFactories,U=void 0===W?M:W,K=R.selectorFactory,G=void 0===K?I:K,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,s=o.areStatesEqual,l=void 0===s?N:s,c=o.areOwnPropsEqual,u=void 0===c?_:c,d=o.areStatePropsEqual,f=void 0===d?_:d,m=o.areMergedPropsEqual,g=void 0===m?_:m,v=Object(p.a)(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=L(e,H,"mapStateToProps"),b=L(t,Y,"mapDispatchToProps"),w=L(n,U,"mergeProps");return F(G,Object(h.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:b,initMergeProps:w,pure:a,areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:f,areMergedPropsEqual:g},v))})},function(e,t,n){var r=n(72),o=n(38),i=n(121);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(81);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(82),o=n(89);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){var r=n(31),o=n(81),i=n(37)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(37)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(145),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(348);var r=n(66),o=n(65),i=n(27),a=n(89),s=n(37),l=n(265),c=s("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),p=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),f=p?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!p||!f||"replace"===e&&!u||"split"===e&&!d){var m=/./[h],g=n(a,h,""[e],(function(e,t,n,r,o){return t.exec===l?p&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),o(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){var r=n(21).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(21),o=n(5),i=n(66),a=n(127),s=n(111),l=n(126),c=n(125),u=n(31),d=n(27),h=n(193),p=n(144),f=n(251);e.exports=function(e,t,n,m,g,v){var y=r[e],b=y,w=g?"set":"add",C=b&&b.prototype,_={},x=function(e){var t=C[e];i(C,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||C.forEach&&!d((function(){(new b).entries().next()})))){var S=new b,k=S[w](v?{}:-0,1)!=S,P=d((function(){S.has(1)})),T=h((function(e){new b(e)})),E=!v&&d((function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((b=t((function(t,n){c(t,b,e);var r=f(new y,t,b);return null!=n&&l(n,g,r[w],r),r}))).prototype=C,C.constructor=b),(P||E)&&(x("delete"),x("has"),g&&x("get")),(E||k)&&x(w),v&&C.clear&&delete C.clear}else b=m.getConstructor(t,e,g,w),a(b.prototype,n),s.NEED=!0;return p(b,e),_[e]=b,o(o.G+o.W+o.F*(b!=y),_),v||m.setStrong(b,e,g),b}},function(e,t,n){for(var r,o=n(21),i=n(65),a=n(119),s=a("typed_array"),l=a("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[h[d++]])?(i(r.prototype,s,!0),i(r.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(e,t,n){"use strict";e.exports=n(110)||!n(27)((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n(21)[e]}))},function(e,t,n){"use strict";var r=n(5);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";var r=n(5),o=n(54),i=n(80),a=n(126);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,l=arguments[1];return o(this),(t=void 0!==l)&&o(l),null==e?new this:(n=[],t?(r=0,s=i(l,arguments[2],2),a(e,!1,(function(e){n.push(s(e,r++))}))):a(e,!1,n.push,n),new this(n))}})}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r,o,i,a=n(861),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){i=!1}function c(e){if(e){if(e!==r){if(e.length!==s.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. These characters were not unique: "+t.join(", "));r=e,l()}}else r!==s&&(r=s,l())}function u(){return i||(i=function(){r||c(s);for(var e,t=r.split(""),n=[],o=a.nextValue();t.length>0;)o=a.nextValue(),e=Math.floor(o*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return r||s},characters:function(e){return c(e),r},seed:function(e){a.seed(e),o!==e&&(l(),o=e)},lookup:function(e){return u()[e]},shuffled:u}},function(e,t){
|
|
|
/*!
|
|
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
|
* (c) 2017 Joachim Wester
|
|
|
* MIT license
|
|
|
*/
|
|
|
var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=Object.prototype.hasOwnProperty;function i(e,t){return o.call(e,t)}function a(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);t=[];for(var r in e)i(e,r)&&t.push(r);return t}function s(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e,t){var n;for(var r in e)if(i(e,r)){if(e[r]===t)return s(r)+"/";if("object"==typeof e[r]&&""!=(n=l(e[r],t)))return s(r)+"/"+n}return""}function c(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}t.hasOwnProperty=i,t._objectKeys=a,t._deepClone=function(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}},t.isInteger=function(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0},t.escapePathComponent=s,t.unescapePathComponent=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t._getPathRecursive=l,t.getPath=function(e,t){if(e===t)return"/";var n=l(e,t);if(""===n)throw new Error("Object not found in root");return"/"+n},t.hasUndefined=function e(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return!0}else if("object"==typeof t){var o=a(t),i=o.length;for(n=0;n<i;n++)if(e(t[o[n]]))return!0}return!1};var u=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,c(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=c(t,{name:n,index:r,operation:o,tree:i}),s}return r(t,e),t}(Error);t.PatchError=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(884),o=n(204);t.JsonPatchError=o.PatchError,t.deepClone=o._deepClone;var i={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=s(n,this.path);r&&(r=o._deepClone(r));var i=l(n,{op:"remove",path:this.from}).removed;return l(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=s(n,this.from);return l(n,{op:"add",path:this.path,value:o._deepClone(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:r(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},a={add:function(e,t,n){return o.isInteger(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:i.move,copy:i.copy,test:i.test,_get:i._get};function s(e,t){if(""==t)return e;var n={op:"_get",path:t};return l(e,n),n.value}function l(e,n,l,c,u,h){if(void 0===l&&(l=!1),void 0===c&&(c=!0),void 0===u&&(u=!0),void 0===h&&(h=0),l&&("function"==typeof l?l(n,0,e,n.path):d(n,0)),""===n.path){var p={newDocument:e};if("add"===n.op)return p.newDocument=n.value,p;if("replace"===n.op)return p.newDocument=n.value,p.removed=e,p;if("move"===n.op||"copy"===n.op)return p.newDocument=s(e,n.from),"move"===n.op&&(p.removed=e),p;if("test"===n.op){if(p.test=r(e,n.value),!1===p.test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",h,n,e);return p.newDocument=e,p}if("remove"===n.op)return p.removed=e,p.newDocument=null,p;if("_get"===n.op)return n.value=e,p;if(l)throw new t.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",h,n,e);return p}c||(e=o._deepClone(e));var f=(n.path||"").split("/"),m=e,g=1,v=f.length,y=void 0,b=void 0,w=void 0;for(w="function"==typeof l?l:d;;){if(b=f[g],u&&"__proto__"==b)throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(l&&void 0===y&&(void 0===m[b]?y=f.slice(0,g).join("/"):g==v-1&&(y=n.path),void 0!==y&&w(n,0,e,y)),g++,Array.isArray(m)){if("-"===b)b=m.length;else{if(l&&!o.isInteger(b))throw new t.JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",h,n,e);o.isInteger(b)&&(b=~~b)}if(g>=v){if(l&&"add"===n.op&&b>m.length)throw new t.JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",h,n,e);if(!1===(p=a[n.op].call(n,m,b,e)).test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",h,n,e);return p}}else if(b&&-1!=b.indexOf("~")&&(b=o.unescapePathComponent(b)),g>=v){if(!1===(p=i[n.op].call(n,m,b,e)).test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",h,n,e);return p}m=m[b]}}function c(e,n,r,i,a){if(void 0===i&&(i=!0),void 0===a&&(a=!0),r&&!Array.isArray(n))throw new t.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");i||(e=o._deepClone(e));for(var s=new Array(n.length),c=0,u=n.length;c<u;c++)s[c]=l(e,n[c],r,!0,a,c),e=s[c].newDocument;return s.newDocument=e,s}function u(e,n,r){var o=l(e,n);if(!1===o.test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",r,n,e);return o.newDocument}function d(e,n,r,a){if("object"!=typeof e||null===e||Array.isArray(e))throw new t.JsonPatchError("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,e,r);if(!i[e.op])throw new t.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,e,r);if("string"!=typeof e.path)throw new t.JsonPatchError("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new t.JsonPatchError('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",n,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new t.JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new t.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&o.hasUndefined(e.value))throw new t.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,e,r);if(r)if("add"==e.op){var s=e.path.split("/").length,l=a.split("/").length;if(s!==l+1&&s!==l)throw new t.JsonPatchError("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==a)throw new t.JsonPatchError("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,e,r)}else if("move"===e.op||"copy"===e.op){var c=h([{op:"_get",path:e.from,value:void 0}],r);if(c&&"OPERATION_PATH_UNRESOLVABLE"===c.name)throw new t.JsonPatchError("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,e,r)}}function h(e,n,r){try{if(!Array.isArray(e))throw new t.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(n)c(o._deepClone(n),o._deepClone(e),r||!0);else{r=r||d;for(var i=0;i<e.length;i++)r(e[i],i,n,void 0)}}catch(e){if(e instanceof t.JsonPatchError)return e;throw e}}t.getValueByPointer=s,t.applyOperation=l,t.applyPatch=c,t.applyReducer=u,t.validator=d,t.validate=h,t.default={JsonPatchError:t.JsonPatchError,deepClone:t.deepClone,getValueByPointer:s,applyOperation:l,applyPatch:c,applyReducer:u,validator:d,validate:h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadiusPropertyName=void 0,t.RadiusPropertyName="radius"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canEditResource=t.canUseSymbol=t.getComponentByID=t.getCSSAttributeValue=t.getCSSAttributeName=t.getExecuteCommandName=t.getDefaultResourceName=t.getProperty=t.hasProperty=t.getDifferentColors=t.getAllComponentResource=t.hasResource=t.getComponentDataFromComponent=t.getTypographyFromComponent=t.getColorListFromComponent=void 0;const r=n(7),o=n(148),i=n(8),a=n(16),s=n(208),l=n(55),c=n(20),u=n(43),d=n(6);function h(e,t){return e.some(e=>a.isSameColor(e,t))}function p(e){let t,n;if(!e)return null;const r=`<root>${e.replace(/( )/g,"")}</root>`;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}function f(e){const t=p(e.value);if(t&&t.childNodes){const e=t.childNodes[0];if(1===e.childNodes.length&&"#text"!==e.childNodes[0].nodeName)return function(e){const t=e.getAttribute("style"),n={fontStyle:{}};if(t){t.split(";").forEach(e=>{if(e&&e.trim()){const t=e.split(":"),r=t[0].trim(),o=t[1].trim();switch(r){case"color":n.color=a.transColorToRGBA(o);break;case"font-size":n.fontSize=parseInt(o.replace(/\s/g,""),10);break;case"font-family":n.fontFamily=o;break;case"font-style":n.fontStyle.italic="italic"===o;break;case"font-weight":n.fontStyle.bold="bold"===o;break;case"text-align":break;case"text-decoration-line":n.fontStyle.underline=-1!==o.indexOf("underline"),n.fontStyle.strike=-1!==o.indexOf("line-through")}}})}return n}(e.firstChild)}return null}function m(e){const t=Object.assign(Object.assign({},e),{_id:"",interaction:{},connectors:[],name:"",v:0,hidden:void 0,rotate:e.rotate||0,position:{x:0,y:0},symbol:void 0}),n=e=>{var t;e.allowReplace=void 0,null===(t=e.components)||void 0===t||t.forEach(n)};return n(t),t}function g(e,t){return t.reduce((t,n)=>t||n.children.find(t=>t._id===e),void 0)}t.getColorListFromComponent=function(e){const t=[];d.isRichText(e.type)&&t.push(...function(e){const t=d.isTextType(e.type)?e.value:e.text;if(!t||"string"!=typeof t)return[];const n=t?p(t):void 0;if(!n)return[];const r=n.getRootNode().firstChild,o=[],i=e=>{e.childNodes&&(o.push(...Array.from(e.childNodes)),e.childNodes.forEach(i))};i(r);const{textFormat:s,textStyle:l}=e.properties,c=(null==s?void 0:s.color)||(null==l?void 0:l.color),u=[];if(o.forEach(e=>{if("#text"!==e.nodeName){const t=e.getAttribute("style");if(t){const e=t.split(";").find(e=>-1!==e.indexOf("color"));if(e){const t=a.transColorToRGBA(e.split(":")[1].trim());h(u,t)||u.push(t)}}}}),c){const e=a.transColorToRGBA(c);h(u,e)||u.push(e)}return u}(e));const n=e.properties,r=Object.keys(n);for(let e=0,o=r.length;e<o;e++){const o=r[e],i=n[r[e]];if(!i)continue;const s=i.prop||o;if(!i.disabled&&!i.hidden){let e;if("fill"===s){const n=i;if("solid"===n.type)e=a.transColorToRGBA(i.color||c.DefaultWhiteFillColor);else{n.color.colorStops.forEach(e=>{const n=a.transColorToRGBA(e.color);h(t,n)||t.push(n)})}}else"stroke"===s?e=a.transColorToRGBA(i.color||c.DefaultStrokeColor):"textStyle"===s||"textFormat"===s?e=a.transColorToRGBA(i.color||c.DefaultTextColor):"icon"===s?e=a.transColorToRGBA(i.color||c.DefaultIconColor):"color"===s?e=i.value:"shadow"===s&&(e=a.transColorToRGBA(i.color||c.ShadowColor));e&&!h(t,e)&&t.push(e)}}return t},t.getTypographyFromComponent=function(e){var t;let n=null;const{type:i,value:s,text:u,properties:{textFormat:h,textStyle:p}}=e;if((d.isTextType(i)||d.isShapeText(i))&&!(null===(t=h||p)||void 0===t?void 0:t.disabled)){let e=u;e||"string"!=typeof s||(e=s);if(!o(e,{allowedTags:[],allowedAttributes:{}}))return}e.type!==d.CText&&e.type!==d.CParagraph||(n=f(e));let m={};const{properties:g}=e,v=Object.keys(g);for(let e=0;e<v.length;e++){const t=v[e],n=g[t];n&&(n.hidden||n.disabled||!["textStyle","textFormat"].includes(n.prop||t)||(m=n))}const y=m.fontStyle||{};if(n){const e=n.fontStyle||{};return{family:n.fontFamily||m.fontFamily||"",size:n.fontSize||m.fontSize||l.DefaultFontSize,bold:r.isUndefined(e.bold)?y.bold||!1:e.bold,italic:r.isUndefined(e.italic)?y.italic||!1:e.italic,strike:r.isUndefined(e.strike)?y.strike||!1:e.strike,underline:r.isUndefined(e.underline)?y.underline||!1:e.underline,color:n.color?a.parseColorToString(n.color):a.parseColorToString(m.color||c.DefaultTextColor)}}return{family:m.fontFamily||"",size:m.fontSize||l.DefaultFontSize,bold:!!y.bold,italic:!!y.italic,underline:!!y.underline,strike:!!y.strike,color:a.parseColorToString(m.color||c.DefaultTextColor)}},t.getComponentDataFromComponent=function(e){const t=i.depthClone(e.toJSON());return delete t.position,delete t.v,delete t._currentState,delete t.locked,delete t.interaction,delete t.alias,delete t.name,delete t._animation,delete t._scale,delete t.connectors,t},t.hasResource=function(e,t,n){if(t===s.ResourceType.color){const t=n.map(e=>e.value);return e.every(e=>h(t,e))}return n.some(n=>{var r;if(t===s.ResourceType.component){if({DEV_MODE:!1,isPrivateDeployment:!1,isOfflineDemo:!0}.isHuaWei)return!1;let t=n.value;t.type===d.CSymbol&&(t=1===(null===(r=t.components)||void 0===r?void 0:r.length)?t.components[0]:Object.assign(Object.assign({},t),{type:d.CGroup}));const o=m(t),a=m(e);return i.isEqualDate(a,o)}return i.isEqualDate(e,n.value)})},t.getAllComponentResource=function(e){return e.components.reduce((e,t)=>(e.push(...t.children||[]),e),[])},t.getDifferentColors=function(e,t){const n=t.map(e=>e.value);return e.filter(e=>!h(n,e))},t.hasProperty=function(e,t){return e.some(e=>(e=>{const{properties:n}=e,r=Object.keys(n);if(r.includes(t))return!0;for(let e=0,o=r.length;e<o;e++){if(n[r[e]].prop===t)return!0}return!1})(e))},t.getProperty=function(e,t){let n=null,r=null,o=t;for(let i=0;i<e.length;i++){const{properties:a}=e[i],s=Object.keys(a);for(let e=0;e<s.length;e++){const i=s[e],l=a[i];if(i===t){n=l;break}l.prop===t&&(r||(r=l,o=i))}if(n)break}return{propertyName:n?t:o,value:n||r}},t.getDefaultResourceName=function(e,t){switch(t){case s.ResourceType.component:{const t=e;return t.name||u.getDefaultComponentName(t.type,t.lib)}case s.ResourceType.typography:return l.DefaultFontFamilys.find(t=>t.id===e.family).text;case s.ResourceType.color:return a.RGBA2HEX(e);default:return""}},t.getExecuteCommandName=function(e){let t=e;return"size"===e?t="fontSize":"color"===e?t="foreColor":"strike"===e?t="strikeThrough":"family"===e&&(t="fontName"),t},t.getCSSAttributeName=function(e){switch(e){case"italic":return"font-style";case"bold":return"font-weight";case"underline":case"strike":return"text-decoration-line"}},t.getCSSAttributeValue=function(e){switch(e){case"italic":return"italic";case"bold":return"bold";case"underline":return"underline";case"strike":return"line-through"}return""},t.getComponentByID=function(e,t){var n;const{groups:r,library:o,libraries:i,libID:a,components:s}=t;if(r)return g(e,r);if(o)return g(e,o.components);if(s)return s.find(t=>t._id===e);if(i){if(a){const t=null===(n=i.find(e=>e._id===a))||void 0===n?void 0:n.components;return t?g(e,t):void 0}return i.reduce((t,n)=>t||g(e,n.components),void 0)}},t.canUseSymbol=function(){return!0},t.canEditResource=function(e,t){var n;return(null===(n=e.app)||void 0===n?void 0:n._id)===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceType=t.VisibilityType=void 0,function(e){e.unShare="",e.team="team",e.system="system"}(t.VisibilityType||(t.VisibilityType={})),function(e){e.color="color",e.typography="typography",e.component="component"}(t.ResourceType||(t.ResourceType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rectToSvgValue=t.formRectPathValue=t.ellipseToSvgValue=t.componentToSvgValue=void 0;const r=n(7),o=n(6),i=n(8),a=n(47),s=n(23),l=n(925),c=n(926),u=n(14),d=n(16);t.componentToSvgValue=e=>{const n={[o.CRect]:t.rectToSvgValue,[o.CEllipse]:t.ellipseToSvgValue,[o.CLine]:g,[o.CPolygon]:m,[o.CPath]:p,[o.CCompoundPath]:f}[e.type];if(!n)return;const{size:r,properties:i,value:a}=e;return n(r,i,a)};const h={closed:!0,data:[{point:{x:0,y:.5},handleIn:{x:0,y:.2761423749153968},handleOut:{x:0,y:-.2761423749153968}},{point:{x:.5,y:0},handleIn:{x:-.2761423749153968,y:0},handleOut:{x:.2761423749153968,y:0}},{point:{x:1,y:.5},handleIn:{x:0,y:-.2761423749153968},handleOut:{x:0,y:.2761423749153968}},{point:{x:.5,y:1},handleIn:{x:.2761423749153968,y:0},handleOut:{x:-.2761423749153968,y:0}}]},p=(e,t,n)=>{const{shadow:r,stroke:o,fill:i}=t;return{data:[n],size:e,shadow:r,stroke:o,fill:i}},f=(e,t,n)=>{const{shadow:r,stroke:o,fill:i}=t;return{data:n,size:e,shadow:r,stroke:o,fill:i}};t.ellipseToSvgValue=(e,t)=>{const n=a.scalePath(h,{x:e.width,y:e.height}),r=i.depthClone(t.stroke);return r&&(r.position=r.position||s.StrokePosition.inner),{data:[n],size:i.depthClone(e),shadow:i.depthClone(t.shadow),stroke:r,fill:i.depthClone(t.fill)}},t.formRectPathValue=(e,t=l.DefaultBorder,n=c.DefaultRadius)=>{const{width:o,height:i}=e,a=u.StyleHelper.calculateRadius({width:e.width,height:e.height},n),s={point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:a.topLeft},d={point:{x:o,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:a.topRight},h={point:{x:o,y:i},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:a.bottomRight},p={point:{x:0,y:i},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:a.bottomLeft},f=[{start:s,end:d,visible:!!t.top},{start:d,end:h,visible:!!t.right},{start:h,end:p,visible:!!t.bottom},{start:p,end:s,visible:!!t.left}],m=[[]];f.forEach((e,t)=>{e.visible?(m[m.length-1].push(e.start),t===f.length-1&&m[m.length-1].push(e.end)):(m[m.length-1].push(e.start),m[m.length-1].length&&m.push([]))});const g=m.filter(e=>e.length>1);if(g.length>1){const e=g[0],t=e[0],n=g[g.length-1],o=n[n.length-1];r.isEqual(t,o)&&(n.pop(),g[0]=n.concat(e),g.pop())}let v=!1;return g.forEach((e,t)=>{if(e.length>1){const n=e[0],o=e[e.length-1];r.isEqual(n,o)&&(e.pop(),0===t&&(v=!0))}}),g.map(e=>({data:e,closed:v}))},t.rectToSvgValue=(e,n)=>{const r=t.formRectPathValue(e,n.border,n.radius),o=i.depthClone(n.stroke);return o&&(o.position=o.position||s.StrokePosition.inner),{data:r,size:i.depthClone(e),shadow:i.depthClone(n.shadow),stroke:o,fill:i.depthClone(n.fill)}};const m=(e,t)=>{var n;const r=new d.PolygonData(e,null===(n=t.polygon)||void 0===n?void 0:n.sideCount).toPolygonPoints(0).map(e=>({point:e,handleIn:{x:0,y:0},handleOut:{x:0,y:0}})),o=i.depthClone(t.stroke);return o&&(o.position=o.position||s.StrokePosition.inner),{data:[{data:r,closed:!0}],size:i.depthClone(e),shadow:i.depthClone(t.shadow),stroke:o,fill:i.depthClone(t.fill)}},g=(e,t,n)=>{const r=n,o=[{data:[{point:r.startPoint,handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:r.endPoint,handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1}],a=i.depthClone(t.stroke);return a&&(a.position=s.StrokePosition.center),{data:o,size:i.depthClone(e),shadow:i.depthClone(t.shadow),stroke:a,fill:i.depthClone(t.fill)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeImage=t.updateImageValue=void 0;const r=n(0),o=n(7),i=n(2),a=n(16),s=n(23),l=n(14),c=n(20),u=n(50),d=n(281),h=n(12),p=n(42),f=n(8),m=n(33),g=n(6);n(930);const v=-1!==window.location.href.indexOf("localhost")&&-1!==window.location.href.indexOf("/rp/standalone-preview");t.updateImageValue=function(e,t){const{value:n,id:r,properties:o}=e;if(t&&n!==t&&o.image){const t=Object.assign(Object.assign({},o.image),{clipBounds:void 0}),n=e.getCurrentPath("properties/image");return{do:{[r]:[h.Ops.replace(n,t)]},undo:{[r]:[h.Ops.replace(n,o.image)]}}}return null},t.makeImage=function(e,t="",n="",r={width:100,height:100}){const o={name:n,properties:{radius:{topRight:0,topLeft:0,bottomLeft:0,bottomRight:0,isPercent:!1,disabled:!1},image:{fitMode:"fit",showModel:p.default.defaultNoneImageModel},blur:{disabled:!0,type:d.BlurType.gaussian,blurValue:{aMount:0}},colorFilter:{disabled:!0},shadow:u.getDefaultShadow(),stroke:{disabled:!0,thickness:1,color:c.DefaultStrokeColor,cap:s.StrokeLineCap.Round,join:s.StrokeLineJoin.Round}},states:{disabled:{enabled:!1,opacity:30}},size:r,value:t};return m.makeCommonComponent(e,g.CImage,o)};class y extends r.Component{constructor(e){super(e),this.imgRealWidth=0,this.imgRealHeight=0,this.needMeasureImageSize=!1,this.doParsePropertiesToStyle=e=>{const{size:{width:t,height:n},properties:r,opacity:i}=e.comp,a=l.StyleHelper.initCSSStyleParser(r),s=Object.assign(Object.assign(Object.assign({},a.getRadiusStyle({width:t,height:n})),a.getStrokeStyle()),{filter:l.StyleHelper.parserDropShadow(r.shadow),overflow:"hidden",opacity:o.isUndefined(i)?1:i/100});return e.isPreview&&(s.width=t,s.height=n),s},this.doParserBorder=e=>{var t;const{properties:n,size:r}=e.comp,o=Object.assign({},n);e.comp.value||o.stroke&&(o.stroke=Object.assign(Object.assign({},o.stroke),{thickness:1,disabled:!1}));const i=(null===(t=o.stroke)||void 0===t?void 0:t.thickness)||1,a=l.StyleHelper.initSVGStyleParser(o),{stroke:s,strokeDasharray:c,strokePathData:u,strokeWidth:d,strokeLinejoin:h,strokeLinecap:p,position:f}=a.getStrokeEx({width:r.width-i,height:r.height-i});return{stroke:{stroke:s,strokeDasharray:c,strokeLinecap:p,strokeLinejoin:h,strokeWidth:d,position:f},strokePathData:u}},this.state=Object.assign(Object.assign({style:this.doParsePropertiesToStyle(this.props)},this.doParserBorder(this.props)),{cropDisplayWidth:0,cropDisplayHeight:0,cropDisplayOffsetX:0,cropDisplayOffsetY:0});const{comp:{size:t,properties:n,value:r,opacity:i,version:a},isPreview:s,globalScale:c}=e,u=e.comp.getTransition();this.param={size:o.cloneDeep(t),properties:o.cloneDeep(n),value:o.cloneDeep(r),opacity:i,isPreview:s,globalScale:c,transition:u,version:a}}shouldComponentUpdate(e){const{comp:{size:t,properties:n,value:r,opacity:i,version:a},isPreview:s,globalScale:l}=e,c={size:t,properties:n,value:r,opacity:i,isPreview:s,globalScale:l,transition:e.comp.getTransition(),version:a};let u=!1;return Object.keys(this.param).forEach(e=>{o.isEqual(c[e],this.param[e])||(u=!0,this.param[e]=o.cloneDeep(c[e]))}),u}componentDidMount(){this.doRefresh(this.props)}doRefresh(e){const{comp:t}=e,{value:n}=t;n?(this.url!==n&&(this.url=n,this.needMeasureImageSize=!0),this.needMeasureImageSize?this.getImgDimensions(n,({width:t,height:n})=>{this.imgRealWidth=t,this.imgRealHeight=n,this.needMeasureImageSize=!1,this.doParserClipBounds(e)}):this.doParserClipBounds(e)):this.doParserClipBounds(e)}doParserClipBounds(e){const{comp:t}=e,{size:n,properties:r}=t,{image:o}=r,{clipBounds:i}=o||{};if(i){const e=n.width*this.imgRealWidth/i.width,t=n.height*this.imgRealHeight/i.height,r=n.width*i.left/i.width,o=n.height*i.top/i.height;this.setState({cropDisplayWidth:f.round(e),cropDisplayHeight:f.round(t),cropDisplayOffsetX:f.round(r),cropDisplayOffsetY:f.round(o)})}this.setState(Object.assign({style:this.doParsePropertiesToStyle(e)},this.doParserBorder(e)))}UNSAFE_componentWillReceiveProps(e){this.doRefresh(e)}renderPlaceHolder(){const{strokePathData:e}=this.state,{properties:t,size:n}=this.props.comp,{topLeft:o,topRight:i,bottomLeft:s,bottomRight:u}=l.StyleHelper.calculateRadius(n,t.radius),{width:d,height:h}=n,{stroke:p}=t,f=(null==p?void 0:p.thickness)||1,m=!!(null==p?void 0:p.disabled);return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:n.width,height:n.height,style:{position:"absolute",left:0,top:0},className:"empty-image"},m&&r.createElement("path",{height:"100%",width:"100%",d:e,fill:"white",stroke:a.parseColorToString(c.DefaultStrokeColor),strokeWidth:1,transform:"translate(0.5 0.5)"}),r.createElement("line",{x1:o/2,y1:o/2,x2:d-(m?0:2*f)-i/2,y2:h-(m?0:2*f)-u/2,stroke:a.parseColorToString(c.DefaultStrokeColor),strokeWidth:1}),r.createElement("line",{x1:d-(m?0:2*f)-i/2,y1:i/2,x2:s/2,y2:h-(m?0:2*f)-s/2,stroke:a.parseColorToString(c.DefaultStrokeColor),strokeWidth:1}))}renderEmptyImage(){const{size:{width:e,height:t}}=this.props.comp,n=Math.max(1,Math.round(.08*Math.min(e,t))),o=Math.min(20,n),i=Math.round(o/2),a=e-2*o,s=t-2*o,l=o,c=o,u=t-o,d=`M${l+i} ${u-i} \n L${l+.4*a} ${c+.45*s} \n L${l+.65*a} ${c+.7*s}\n L${l+.75*a} ${c+.55*s} \n L${e-o-i} ${u-i}\n Z`;return r.createElement("svg",{width:"100%",height:"100%",viewBox:`0 0 ${e} ${t}`,className:"image-place-holder"},r.createElement("rect",{width:e,height:t,x:0,y:0,fill:"#cbcbcc"}),r.createElement("rect",{width:e-2*Math.max(o,1),height:t-2*Math.max(o,1),x:Math.max(o,1),y:Math.max(o,1),strokeWidth:2,stroke:"none",fill:"#fff"}),r.createElement("path",{d:d,stroke:"none"}),r.createElement("circle",{cx:l+.8*a,cy:c+.2*s,r:n}))}renderNoneImage(){const{comp:{properties:{image:e}}}=this.props;return"empty"===(null==e?void 0:e.showModel)?this.renderEmptyImage():this.renderPlaceHolder()}getImgDimensions(e,t){const n=new Image;n.src=e,n.complete?t({width:n.width,height:n.height}):n.onload=function(){t({width:n.width,height:n.height})}}renderImg(){const{comp:e}=this.props,{value:t,properties:n}=e,{image:o,blur:a,colorFilter:s,stroke:l}=n,{fitMode:c,clipBounds:d}=o||{},h=i.default("img-box",{["fit-mode-"+c]:!!c}),p=u.getImageColorFilter(s,a);let f;var m;f=d&&d.width>0&&d.height>0?{background:`url(${t}) no-repeat ${-this.state.cropDisplayOffsetX}px ${-this.state.cropDisplayOffsetY}px / ${this.state.cropDisplayWidth}px ${this.state.cropDisplayHeight}px`}:{backgroundImage:`url(${v?(m=t,m&&m.startsWith("https://img02.mockplus.cn")?m.replace("https://img02.mockplus.cn","http://mockplus-static.oss-cn-hangzhou-internal.aliyuncs.com"):m):t})`};const g=l&&!l.disabled?l.thickness||1:0;return r.createElement("div",{className:h,style:Object.assign(Object.assign({transition:e.getTransition(),filter:p},f),{left:-g,top:-g,right:-g,bottom:-g})})}render(){const{comp:e}=this.props;return r.createElement("div",{style:Object.assign(Object.assign({},this.state.style),{transition:e.getTransition()}),className:"lib-comp-image"},e.value&&this.renderImg(),!e.value&&this.renderNoneImage())}}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2);n(931);class a extends r.PureComponent{constructor(e){super(e),this.selfRef=r.createRef(),this.popup=r.createRef(),this.triggerTimeID=0,this.pagePoint={x:0,y:0},this.doAdjustPopupPosition=()=>{const{popupPosition:e}=this.state;if(this.popup.current&&this.selfRef.current){let{left:t,top:n,right:r,bottom:o,width:i,height:a}=this.popup.current.getBoundingClientRect();const s=this.selfRef.current.getBoundingClientRect(),{innerWidth:l,innerHeight:c}=window;r>l&&(t=s.right-i),o>c&&(n=s.top-a-6),t=Math.round(t),n=Math.round(n),t===e.left&&n===e.top||this.setState({popupPosition:{left:t,top:n}}),i>=500&&this.setState({autoWrap:!0})}},this.onWindowMoving=e=>{this.pagePoint.x=e.pageX,this.pagePoint.y=e.pageY},this.onMouseEnter=e=>{this.pagePoint.x=e.pageX,this.pagePoint.y=e.pageY,this.selfRef.current&&(window.addEventListener("mousemove",this.onWindowMoving),this.triggerTimeID=window.setTimeout(()=>{this.triggerTimeID&&window.clearTimeout(this.triggerTimeID),this.doShow()},500))},this.doShow=()=>{this.setState({show:!0,popupPosition:{left:this.pagePoint.x,top:this.pagePoint.y+22}},()=>{if(this.props.autoHide){const{text:e}=this.props;this.triggerTimeID=window.setTimeout(this.doHide,2e3+50*(e||"").length)}})},this.doHide=()=>{this.state.show&&this.setState({show:!1})},this.onMouseLeave=()=>{window.removeEventListener("mousemove",this.onWindowMoving),this.triggerTimeID&&clearTimeout(this.triggerTimeID),this.doHide()},this.renderTips=()=>{const{text:e,ownerIsDialog:t,popupClassName:n}=this.props,{popupPosition:a,autoWrap:s}=this.state;return e?o.createPortal(r.createElement("div",{ref:this.popup,style:a,className:i.default("dsm-c-rp-tool-tips",n,{"in-dialog":t,"auto-wrap":s})},e),document.body):null},this.state={show:!1,popupPosition:{left:0,top:0}}}componentWillUnmount(){window.clearTimeout(this.triggerTimeID),window.removeEventListener("mousemove",this.onWindowMoving)}componentDidUpdate(){this.doAdjustPopupPosition()}render(){const{children:e,className:t,style:n}=this.props,{show:o}=this.state;return r.createElement(r.Fragment,null,r.createElement("div",{style:n,className:t,ref:this.selfRef,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},e),o&&this.renderTips())}}a.defaultProps={autoHide:!0},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_FAVORITE_COLOR_COUNT=void 0,t.MAX_FAVORITE_COLOR_COUNT=23;const r=new class{};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeText=t.measureTextCompInitialSize=t.defaultTextValue=void 0;const r=n(0),o=n(2),i=n(7),a=n(18),s=n(104),l=n(23),c=n(32),u=n(14),d=n(20),h=n(50),p=n(4),f=n(55),m=n(33),g=n(6),v=n(282),y=n(115);function b(e,t,n){const{width:r,height:o}=a.measureTextSize(e,t,{isMultiText:!0,wrap:!1,isRich:!0}),{width:i,height:s}=a.measureTextSize(Object.assign({},e),t,{isMultiText:!0,wrap:!0,defaultWidth:n?void 0:300,isRich:!0});return{width:Math.min(i,r),height:Math.max(o,s),wrap:i<r}}n(1061),t.defaultTextValue=p.default("resource.components.textContent"),t.measureTextCompInitialSize=b,t.makeText=function(e,n){const r={fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},fontSize:14,color:d.DefaultTextColor,textAlign:s.TextAlign.left,wrap:!1,isMulti:!0,listType:void 0},o={width:300,height:220},i=n||t.defaultTextValue;if(i){const{width:e,height:t,wrap:a}=b(r,i);n&&a&&(r.wrap=!0),o.width=e,o.height=t}const a={size:o,value:i,autoSize:!0,properties:{textFormat:Object.assign({},r),radius:{topRight:0,topLeft:0,bottomLeft:0,bottomRight:0,isPercent:!1,disabled:!1},fill:{type:c.FillType.solid,color:d.DefaultWhiteFillColor,disabled:!0},stroke:{disabled:!0,thickness:1,color:d.DefaultStrokeColor,cap:l.StrokeLineCap.Round,join:l.StrokeLineJoin.Round},shadow:h.getDefaultShadow(!0)},states:{disabled:{enabled:!1,opacity:30}}};return m.makeCommonComponent(e,g.CText,a)};class w extends r.Component{constructor(e){super(e),this.dom=r.createRef(),this.getParams=e=>{const{comp:{size:t,properties:n,value:r,opacity:o,autoSize:a,version:s},isPreview:l,globalScale:c,valueEditing:u}=e,d=e.comp.getTransition();return{size:i.cloneDeep(t),properties:i.cloneDeep(n),value:i.cloneDeep(r),opacity:o,isPreview:l,globalScale:c,transition:d,valueEditing:u,autoSize:a,version:s}},this.editorBounds=(e,t)=>{const n={},{autoSize:r}=this.props.comp,{textStyle:o,multiText:i,textFormat:a}=e,{width:l,height:c}=t;let u=s.TextAlign.left;a?u=a.textAlign||s.TextAlign.left:o&&(u=o.textAlign||s.TextAlign.left);const d={[s.TextAlign.left]:"0",[s.TextAlign.center]:"50%",[s.TextAlign.right]:"0",[s.TextAlign.justify]:"0"};let h=!1,p=!1;if(a?(h=!r||a.wrap,p=!!a.vertical):i&&(h=i.wrap,p=!!i.vertical),h)n.top=0,p?(n.right=0,n.minHeight=c/f.FontBoxScale):(n.height="auto",n.width=r?"auto":l/f.FontBoxScale,n.left=0);else{p?(n.height="auto",n.minHeight=c,n.right=0,u!==s.TextAlign.right?(n.top=d[u],n.transform=`translateY(-${d[u]})`):n.bottom=0):(n.width="auto",n.top=0,u!==s.TextAlign.right?(n.left=d[u],n.transform=`translateX(-${d[u]})`):n.right=0);const e=[(null==a?void 0:a.textAlign)||"","top"];["left","center","right"].includes(e[0])||(e[0]="left"),p&&(e[1]=["top","center","bottom"][["left","center","right"].indexOf(e[0])],e[0]="right"),n.transformOrigin=e.join(" ")}return n.transform=(n.transform||"")+" scale("+f.FontBoxScale+")",n},this.doParsePropertiesToStyle=e=>{var t;const{properties:n,size:r,opacity:o,value:s}=e.comp,l=u.StyleHelper.initCSSStyleParser(n),c=e.valueEditing?{}:l.getRadiusStyle(r);let d=Object.assign(Object.assign({},c),{opacity:i.isUndefined(o)?1:o/100});const{fill:h,stroke:p,multiText:m,textFormat:g}=n,v=g?g.vertical:null==m?void 0:m.vertical,y=null===(t=g||m)||void 0===t?void 0:t.wrap,b=Object.assign(Object.assign(Object.assign({},l.getTextStyle()),l.getRadiusStyle(r)),e.valueEditing?{}:l.getTextShadow(1/f.FontBoxScale)),{width:w,height:C}=r,_="string"==typeof s?s:"";return a.isMultiLine(_)||y||(b.lineHeight=v?w+"px":C+"px"),v&&(b.right=0,delete b.left),(h&&!h.disabled||p&&!p.disabled)&&(d=Object.assign(Object.assign({},d),e.valueEditing?{}:l.getShadowStyle(!0))),u.StyleHelper.clearComponentStyleWithRichTextValue(b,s),{style:d,textStyle:b}},this.doSubmit=(e,n,r)=>{this.focused=!1;const{onValueEdited:o,comp:i}=this.props;if(!r){const e=document.getSelection();e&&e.empty()}const a=document.createElement("div");a.innerHTML=e,""===a.innerText&&(e=t.defaultTextValue),o&&o(i,e,n,r)},this.doValueEditing=()=>{const{onValueEditing:e,comp:t}=this.props;e&&e(t)},this.getCSSWrapAttr=()=>{var e;const{comp:t}=this.props,{properties:n,autoSize:r}=t,{multiText:o,textFormat:i}=n;return!!t.nearestSealedComponent||!r&&(null===(e=i||o)||void 0===e?void 0:e.wrap)},this.state=Object.assign(Object.assign({},this.doParsePropertiesToStyle(e)),{value:e.comp.value}),this.param=this.getParams(e)}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{i.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=i.cloneDeep(t[e]))}),n}UNSAFE_componentWillReceiveProps(e){const t=this.doParsePropertiesToStyle(e);this.setState(Object.assign(Object.assign({},t),{value:e.comp.value}))}render(){var e,t,n,i,s;const{valueEditing:l,isPreview:c,comp:d}=this.props,{size:h,properties:p,lineHeight:m,opacity:g}=d,b=this.props.comp.value;let{width:w,height:C}=h;const{multiText:_,textFormat:x,padding:S}=p,k=this.getCSSWrapAttr(),P=!!(null===(e=x||_)||void 0===e?void 0:e.vertical),{style:T,textStyle:E}=this.state,O=(null===(t=x||p.textStyle)||void 0===t?void 0:t.fontSize)||14,M=(null==x?void 0:x.lineHeightEx)||m,A=(null===(n=x||p.textStyle)||void 0===n?void 0:n.letterSpace)||0;E.transformOrigin=P?"right top":"left top",w/=f.FontBoxScale,C/=f.FontBoxScale,E.fontSize=O/f.FontBoxScale,E.lineHeight=M/f.FontBoxScale+"px",E.letterSpacing=A/f.FontBoxScale+"px",E.transform="scale("+f.FontBoxScale+")",S&&!S.disabled&&(P?(E.paddingTop=(S.left||0)/f.FontBoxScale,E.paddingBottom=(S.right||0)/f.FontBoxScale,E.paddingLeft=(S.bottom||0)/f.FontBoxScale,E.paddingRight=(S.top||0)/f.FontBoxScale):(E.paddingTop=(S.top||0)/f.FontBoxScale,E.paddingBottom=(S.bottom||0)/f.FontBoxScale,E.paddingLeft=(S.left||0)/f.FontBoxScale,E.paddingRight=(S.right||0)/f.FontBoxScale));let D=Object.assign(Object.assign(Object.assign(Object.assign({},E),{position:"absolute"}),this.editorBounds(p,h)),{boxSizing:"border-box"});l&&(D=Object.assign(Object.assign({},D),u.StyleHelper.initCSSStyleParser(p).getFillStyle()));const I="string"==typeof b?b:"",L=0===g;return r.createElement("div",{className:"lib-comp-text",style:Object.assign({overflow:d.autoSize||l?"visible":"hidden"},T)},!(null===(i=p.fill)||void 0===i?void 0:i.disabled)&&!L&&r.createElement(y.default,{size:h,properties:{fill:p.fill},transition:d.getTransition()}),!c&&l&&r.createElement(v.default,{className:o.default("atom-comp-text",{editing:l,wrap:k}),style:D,value:I,wrap:!d.autoSize,autoSize:d.autoSize,autoSave:!0,onValueChanged:this.doSubmit,onSelectChanged:this.doValueEditing,multi:!0,ownerComp:d,onlyText:!0,vertical:P}),(c||!l)&&I&&r.createElement("div",{ref:this.dom,className:o.default("atom-comp-text normal",{wrap:k,"no-wrap":!k,vertical:P,preview:c,interaction:c&&Object.keys(d.interactions).length}),style:Object.assign(Object.assign({},E),{transition:this.props.comp.getTransition(),position:"absolute",top:0,left:P?void 0:0,right:P?0:void 0,width:w,minWidth:P?void 0:w,minHeight:P?C:void 0}),dangerouslySetInnerHTML:{__html:a.replaceOldFontSize(I,"out")}}),!(null===(s=p.stroke)||void 0===s?void 0:s.disabled)&&!L&&r.createElement(y.default,{size:h,properties:{stroke:p.stroke,radius:p.radius},transition:d.getTransition()}))}}t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newRelationData=t.getDefaultTreeData=t.defaultExpandIcon=t.defaultSelectIcon=t.MaxInsertLevel=t.defaultIndent=t.defaultLineHeight=void 0;const r=n(30),o=n(407),i=n(4);t.defaultLineHeight=30,t.defaultIndent=16,t.MaxInsertLevel=5,t.defaultSelectIcon=[{id:o.DefaultCollapseIconType.Arrow,text:i.default("property.component.tree.arrow"),value:[{iconCode:60570,fontName:"boldIconFont"},{iconCode:60571,fontName:"boldIconFont"}]},{id:o.DefaultCollapseIconType.Plus,text:i.default("property.component.tree.plus"),value:[{iconCode:60567,fontName:"boldIconFont"},{iconCode:60568,fontName:"boldIconFont"}]},{id:o.DefaultCollapseIconType.Triangle,text:i.default("property.component.tree.triangle"),value:[{iconCode:60569,fontName:"boldIconFont"},{iconCode:60566,fontName:"boldIconFont"}]}],t.defaultExpandIcon={iconMode:"font",expand:{icon:{iconCode:60570,fontName:"boldIconFont"}},collapse:{icon:{iconCode:60571,fontName:"boldIconFont"}}},t.getDefaultTreeData=()=>[{id:r.getNewID(),index:0,expand:!0,nodeIcon:{iconMode:"font",expand:{icon:{iconCode:60433,fontName:"lightIconFont"}},collapse:{icon:{iconCode:60472,fontName:"lightIconFont"}}},children:[{id:r.getNewID(),index:0,expand:!0,nodeIcon:{iconMode:"font",expand:{icon:{iconCode:60433,fontName:"lightIconFont"}},collapse:{icon:{iconCode:60472,fontName:"lightIconFont"}}}},{id:r.getNewID(),index:1,expand:!0,nodeIcon:{iconMode:"font",expand:{icon:{iconCode:60433,fontName:"lightIconFont"}},collapse:{icon:{iconCode:60472,fontName:"lightIconFont"}}}},{id:r.getNewID(),index:2,expand:!0,nodeIcon:{iconMode:"font",expand:{icon:{iconCode:60433,fontName:"lightIconFont"}},collapse:{icon:{iconCode:60472,fontName:"lightIconFont"}}}}]},{id:r.getNewID(),index:1,expand:!0,nodeIcon:{iconMode:"font",expand:{icon:{iconCode:60433,fontName:"lightIconFont"}},collapse:{icon:{iconCode:60472,fontName:"lightIconFont"}}},children:[{id:r.getNewID(),index:0,expand:!0,nodeIcon:{iconMode:"font",expand:{icon:{iconCode:60433,fontName:"lightIconFont"}},collapse:{icon:{iconCode:60472,fontName:"lightIconFont"}}}}]}],t.newRelationData={id:"",index:0,expand:!0,nodeIcon:{iconMode:"font",expand:{icon:{iconCode:60433,fontName:"lightIconFont"}},collapse:{icon:{iconCode:60472,fontName:"lightIconFont"}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShellInfo=t.adapterPhoneShell=t.MobileTypeList=void 0;const r=n(8),o=n(1088),i=n(1089),a=n(1090),s=n(1091),l=n(1092),c=n(1093),u=n(1094),d=n(1095),h=n(1096),p=n(1097),f=n(1098),m=n(1099),g=n(1100),v=n(1101),y=n(1102),b=n(1103),w=n(1104),C=n(1105),_=n(1106),x=n(1107),S=n(1108),k=n(1109),P=n(1110),T=n(1111),E=n(4),O=n(171);t.MobileTypeList=[{id:O.MobileType.IphoneX,text:"iPhoneX"},{id:O.MobileType.Iphone,text:"iPhone"},{id:O.MobileType.Android,text:"Android"},{id:O.MobileType.Pad,text:"Pad"},{id:O.MobileType.None,text:E.default("general.none")}];const M={iphoneX:{defaultScreenSize:{width:375,height:812},shellImage:{landscape:[u,d,h],portrait:[p,f,m]},shellSize:{width:1295,height:2590},screenBounds:{left:85,top:77,width:1125,height:2436},otherScale:149/1296+118/1037},iphone:{defaultScreenSize:{width:375,height:667},shellImage:{landscape:[o,i,a],portrait:[s,l,c]},shellSize:{width:871,height:1776},screenBounds:{left:61,top:219,width:750,height:1334},otherScale:0},android:{defaultScreenSize:{width:360,height:640},shellImage:{landscape:[g,v,y],portrait:[b,w,C]},shellSize:{width:1204,height:2458},screenBounds:{left:62,top:252,width:1080,height:1920},otherScale:0},pad:{defaultScreenSize:{width:768,height:1024},shellImage:{landscape:[_,x,S],portrait:[k,P,T]},shellSize:{width:1750,height:2484},screenBounds:{left:106,top:219,width:1537,height:2049},otherScale:0},none:null},A=e=>e.height/e.width;t.adapterPhoneShell=e=>[{type:"android",ratiodiff:Math.abs(A(M.android.defaultScreenSize)-e)},{type:"iphone",ratiodiff:Math.abs(A(M.iphone.defaultScreenSize)-e)},{type:"iphoneX",ratiodiff:Math.abs(A(M.iphoneX.defaultScreenSize)-e)}].sort((e,t)=>e.ratiodiff-t.ratiodiff)[0].type;const D=e=>{const{width:t,height:n}=e;return{width:n,height:t}};t.getShellInfo=function(e,t=!1){if(!e||"none"==e)return null;const n=M[e];if(n){let e=r.depthClone(n);const{shellImage:o}=e;return t&&(e=(e=>{const{defaultScreenSize:t,shellImage:n,shellSize:r,screenBounds:o}=e,{left:i,top:a,width:s,height:l}=o;return{defaultScreenSize:D(t),shellImage:n,shellSize:D(r),screenBounds:{left:a,width:l,height:s,top:r.width-i-s},otherScale:e.otherScale}})(e)),Object.assign(Object.assign({},e),{shellImage:t?o.landscape:o.portrait})}return null}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Term=t.isSuperAdmin=t.isAdminOrSuperAdmin=t.isGuest=t.isMember=t.Role=void 0,function(e){e.ROLE_SUPER_ADMIN="super-admin",e.ROLE_ADMIN="admin",e.ROLE_MEMBER="member",e.ROLE_GUEST="guest"}(r=t.Role||(t.Role={})),t.isMember=e=>e===r.ROLE_MEMBER,t.isGuest=e=>e===r.ROLE_GUEST,t.isAdminOrSuperAdmin=e=>e===r.ROLE_ADMIN||t.isSuperAdmin(e),t.isSuperAdmin=e=>e===r.ROLE_SUPER_ADMIN,function(e){e.seven="seven",e.fifteen="fifteen",e.forever=""}(t.Term||(t.Term={}))},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.svgStr2ImgBase64=t.getFileType=t.FileType=t.getUrlBase64=t.blobToFile=t.base64ToBlob=t.fileToBase64=t.uploadFile=t.selectVideo=t.selectImage=t.AllowedImageTypes=t.getLocalImageFileSize=t.validateFileType=t.VIDEO_EXTENSIONS=t.IMGAGE_EXTENSION=void 0;const o=n(420),i=n(56),a=n(108),s=n(4);let l;function c(){return l||(l=document.createElement("input"),l.type="file",l.style.position="absolute",l.style.zIndex="0",l.style.left="-1000px",l.style.top="-1000px",l.style.width="10px",l.style.height="10px"),l.onchange=null,l.value="",l}const u=["jpg","jpeg","png","gif","bmp","svg"];var d;function h(e,n){const r=e.name.lastIndexOf("."),o=e.name.substring(r+1).toLowerCase();if(n===d.Image){if(-1===u.indexOf(o))return{success:!1,msg:s.default("alert.errorSelectingFileType",u.join(", "))}}else if(n===d.Video&&-1===t.VIDEO_EXTENSIONS.indexOf(o))return{success:!1,msg:s.default("alert.errorSelectingFileType",t.VIDEO_EXTENSIONS.join(", "))};return{success:!0}}!function(e){e.JPG="jpg",e.JPEG="jpeg",e.PNG="png",e.GIF="gif",e.BMP="bmp",e.SVG="svg"}(t.IMGAGE_EXTENSION||(t.IMGAGE_EXTENSION={})),t.VIDEO_EXTENSIONS=["ogg","mp4"],t.validateFileType=h,t.getLocalImageFileSize=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{const r=new Image,o=URL.createObjectURL(e);r.src=o,r.onload=()=>{const e={width:r.width,height:r.height};t({size:e}),URL.revokeObjectURL(o),r.remove()},r.onerror=()=>{n(),r.remove()}})}))},t.AllowedImageTypes=["image/jpg","image/jpeg","image/png","image/gif","image/bmp","image/svg+xml"],t.selectImage=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{const r=c();r.accept=e.join(","),r.multiple=!1,r.onchange=e=>{const r=e.target;if(r.files&&r.files.length){const e=r.files[0],{success:o,msg:i}=h(e,d.Image);o?t(e):n(i)}},r.click()})}))},t.selectVideo=function(){return r(this,void 0,void 0,(function*(){return new Promise((e,n)=>{const r=c();r.accept=t.VIDEO_EXTENSIONS.map(e=>"video/"+e).join(","),r.multiple=!1,r.onchange=t=>{const r=t.target;if(r.files&&r.files.length){const t=r.files[0],{success:o,msg:i}=h(t,d.Video);o?e(t):n(i)}},r.click()})}))},t.uploadFile=function(e,t,n){return r(this,void 0,void 0,(function*(){return t===i.default.Image?a.default.file.uploadImg(e,n):t===i.default.Video?a.default.file.uploadVideo(e,n):a.default.file.uploadSvg(e,n)}))},t.fileToBase64=function(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=function(e){var r;const o=null===(r=e.target)||void 0===r?void 0:r.result;o?t(o):n()},r.onerror=e=>{n(e)},r.readAsDataURL(e)})},t.base64ToBlob=function(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let o=r.length;const i=new Uint8Array(o);for(;o--;)i[o]=r.charCodeAt(o);return new Blob([i],{type:n})},t.blobToFile=function(e,t,n="image/png"){return new File([e],t,{type:n})},t.getUrlBase64=function(e,t,n,r){const o=document.createElement("canvas"),i=o.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.src=e,a.onload=function(){const{width:e,height:s,naturalHeight:l,naturalWidth:c}=a,u=l?{width:c,height:l}:{width:e,height:s};if(o.height=u.height,o.width=u.width,!i)return;i.drawImage(a,0,0,e,s);const d=o.toDataURL("image/"+t);n.call(this,d,r,u)},a.onerror=function(t){console.log(t,e),n("",r,{width:0,height:0})}},function(e){e[e.Unknown=0]="Unknown",e[e.Image=1]="Image",e[e.Video=2]="Video",e[e.Audio=3]="Audio",e[e.SVG=4]="SVG"}(d=t.FileType||(t.FileType={})),t.getFileType=function(e){if(!e)return d.Unknown;const t=o.extname(e).toLowerCase();return t?[".jpeg",".jpg",".png",".gif"].includes(t)?d.Image:".mp4"===t?d.Video:".svg"===t?d.SVG:".mp3"===t?d.Audio:d.Unknown:d.Unknown},t.svgStr2ImgBase64=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,o)=>{(function(e){return r(this,void 0,void 0,(function*(){return function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{let r=new Image;r.src=e,r.crossOrigin="*",r.onload=()=>{const e=document.createElement("canvas");e.height=r.height,e.width=r.width;const o=e.getContext("2d");o?(o.drawImage(r,0,0),t(e)):n(),r.remove()},r.onerror=()=>{n(),r.remove()}})}))}("data:image/svg+xml;base64,"+window.btoa(unescape(encodeURIComponent(e))))}))})(e).then(e=>{const r="image/"+t,o=e.toDataURL(r);n(o)}).catch(e=>o(e))})}))}},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.appDataManager=void 0;const o=n(272),i=n(273),a=n(298),s=n(85);t.appDataManager=new class{constructor(){this._isExample=!1,this.getOperationCacheKey=e=>"offline-operations-"+e,this.ioFuncs=null,this._artboards=[],this.nodes=[],this.appID="",this.operations=[],this._socketOffline=!1,this.savingOperations=[],this._isSync=!1,this._isExample=!1,this._appPageNum=0,this._isManualSaving=!1}get socketOffline(){return this._socketOffline}set socketOffline(e){e?console.log("%cOFFLINE","color: red;"):console.log("%cONLINE","color: green;"),this._socketOffline=e}get isSync(){return this._isSync}set isSync(e){this._isSync=e}get isExample(){return this._isExample}set isExample(e){this._isExample=e,e&&(this._socketOffline=!1)}get allOperations(){return this.operations}get appPageNum(){return this._appPageNum}set appPageNum(e){this._appPageNum=e}get isManualSaving(){return this._isManualSaving}set isManualSaving(e){this._isManualSaving=e}init(e,t,n){if(this.appID&&this.appID!==e)throw new Error(`Has been set app id to ${this.appID}.`);this.appID=e,this.ioFuncs=n,this._appPageNum=t;try{const e=this.getOperationCacheKey(this.appID),t=window.localStorage.getItem(e);if(t){const e=JSON.parse(t);Array.isArray(e)&&(this.operations=e)}}catch(e){console.error(e)}}ensureInitd(){if(!this.appID)throw new Error("No App ID is initd.")}saveOperations(){const e=this.getOperationCacheKey(this.appID);window.localStorage.setItem(e,JSON.stringify(this.operations))}sendAddNodeOperation(e){if(this.ensureInitd(),e.type===o.NodeType.Page){const t={id:e.artboardID,appID:e.appID,nodeID:e._id,name:e.artboardName,position:{x:0,y:0},size:e.size||{width:100,height:100},userID:e.userID,type:"main"},n=s.createArtboard(t);this.pushArtboard([n])}return{appID:e.appID,name:e.name,type:e.type,artboardID:e.artboardID,path:e.path||"ROOT",index:e.index,state:0,userID:e.userID,updatedBy:e.userID,position:{x:0,y:0},size:e.size,color:"",createdAt:new Date,hidden:!1,icon:"",imageURL:"",links:[],updatedAt:new Date,_id:e._id}}getAllArtboardsByNodeID(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{const r=this._artboards.filter(t=>t.nodeID===e);if(r.length>0)return void t(r);const o=new Error;o.code="offline-error",n(o)})}))}sendAddArtboardOperation(e){const t={id:e._id,appID:e.appID,nodeID:e.nodeID,name:e.name,position:e.position,size:e.size,userID:-1,type:"fragment"},n=s.createArtboard(t);return this.pushArtboard([n]),n}pushArtboard(e){e.forEach(e=>{const t=this._artboards.findIndex(t=>t._id===e._id&&t.nodeID===e.nodeID);-1!==t?this._artboards.splice(t,1,e):this._artboards.push(e)})}updateArtboardWithNodeID(e,t){this._artboards.filter(t=>t.nodeID===e).forEach(e=>{const{nodeID:t,_id:n}=e;this.removeArtboard(t,n)}),this.pushArtboard(t)}removeArtboard(e,t){const n=this._artboards.findIndex(n=>n._id===t&&n.nodeID===e);-1!==n&&this._artboards.splice(n,1)}getArtboardByID(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{const r=this._artboards.find(t=>t._id===e);r?t(r):n(new Error)})}))}hasOperationToHandle(){return 0!==this.operations.length}handleOperation(e){return this.ensureInitd(),this.operations.push(e),this.saveOperations(),new Promise((t,n)=>{try{switch(this.silentHandleOperations(),e.type){case i.OperationType.AddArtboard:return void t(this.sendAddArtboardOperation(e.data));case i.OperationType.AddNode:return++this._appPageNum,void t(this.sendAddNodeOperation(e.data));case i.OperationType.PushArtboardPatches:return void t();default:return console.warn("invalid operation: "+e),void t()}}catch(e){n(e)}})}handleFirstOperation(){return r(this,void 0,void 0,(function*(){return this.ensureInitd(),new Promise((e,t)=>{if(this.socketOffline||this.isExample)return void e();const n=this.operations[0];if(n)switch(n.type){case i.OperationType.AddArtboard:this.ioFuncs.addArtboard(n.data).then(()=>{this.operations.shift(),this.saveOperations(),e()}).catch(n=>{if(n.message.startsWith("E11000"))return this.operations.shift(),this.saveOperations(),e(),void console.warn(n.message);t(n)});break;case i.OperationType.AddNode:this.ioFuncs.pushNodeAddPatch(n.data).then(()=>{this.operations.shift(),this.saveOperations(),e()}).catch(n=>{if(n.message.startsWith("E11000"))return this.operations.shift(),this.saveOperations(),e(),void console.warn(n.message);t(n)});break;case i.OperationType.PushArtboardPatches:this.ioFuncs.pushPagePatch(n.data).then(()=>{this.operations.shift(),this.saveOperations(),e()}).catch(e=>{console.error(e),t(e)});break;default:console.warn(`Invalid offline operation: ${n}.`),e()}else e()})}))}clearTimer(){!this.timer&&clearTimeout(this.timer)}setTimer(){this.timer=setTimeout(()=>{this.isSync=!1},1e3)}silentHandleOperations(){this.socketOffline||this.isSync||this.isExample||0!==this.operations.length&&(this.isSync=!0,this.handleFirstOperation().then(()=>{this.isSync=!1,this.clearTimer(),this.silentHandleOperations()}).catch(e=>{console.error(e),this.isSync=!1,this.clearTimer()}),this.setTimer())}waitForSyncOperations(){return r(this,void 0,void 0,(function*(){for(;0!==this.operations.length&&!this.isManualSaving;)yield this.handleFirstOperation()}))}clearOperation(){this.operations=[],this.saveOperations()}saveAppPatches(e){return a.saveAppPatches(e,this.operations)}}},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.getGridChildrenPosition=t.getAcumulatePositionY=t.getAcumulatePositionX=t.getCellInfo=t.reArrangeGridPanel=t.reArrangeSelectPanel=t.getRowOrColumnSize=t.getCellComps=t.reArrangeComponentOfWrapPanel=t.reArrangeComponentsOfStackPanel=t.isContainer=void 0;const o=n(7),i=n(8),a=n(17);function s(e){return new a.UIComponent(e)}function l(e){var t;let{width:n,height:r}=e.size,o=0,a=0;const l=[[]];return null===(t=e.components)||void 0===t||t.forEach((t,c)=>{const u=s(t),{width:d,height:h}=u.getViewBoundsInParent(),p={size:{width:d,height:h},component:u};let f=e.properties;const{direction:m,horizontalGap:g,verticalGap:v}=f.layout||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0};if("vertical"===m)a+h>r&&c>0&&(a=0,l.push([])),l[l.length-1].push(p),a+=h+(v||0);else{const e=l[l.length-1].length;let t=d;for(let n=0;n<l.length;n++){const r=l[n][e];r&&(t=i.max(t,r.size.width))}o+t>n&&c>0&&(o=0,l.push([])),l[l.length-1].push(p),o+=t+(g||0)}}),l}function c(e,t){let n=0,r=0,o=[];const a=e.reduce((e,t)=>i.max(e,t.length),0);for(let t=0;t<a;t++){let n=0;for(let r=0;r<e.length;r++){const o=e[r][t];o&&(n=i.max(n,o.size.width))}o.push(n)}const s=[];let l=t.properties;const{direction:c,horizontalGap:u,verticalGap:d}=l.layout||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0},h=e.length;return e.forEach((e,t)=>{let o=0,i=0;e.forEach(e=>{const{size:t}=e;"vertical"===c?i=Math.max(i,t.width):o=Math.max(o,t.height)}),"vertical"===c?(s.push(i),n+=i,t<h-1&&(n+=u||0)):(s.push(o),r+=o,t<h-1&&(r+=d||0))}),{rowOrColumnSize:s,maxHeight:r,maxWidth:n,maxColumnWidth:o}}function u(e,t){var n,r;const a={cells:[],lineWidth:{},rowHeight:{},containerSize:i.depthClone(e.size)},s=null===(n=e.properties.cell)||void 0===n?void 0:n.columnCount,l=(t?null===(r=e.components)||void 0===r?void 0:r.concat(t):e.components)||[];if(s&&e.components){a.cells=l.reduce((e,t,n)=>{const r=Math.floor(n/s),o=n%s;return e.push({id:t._id,rowIndex:r,columnIndex:o,comp:t}),e},[]);const t=o.groupBy(a.cells,"columnIndex");a.lineWidth=o.mapValues(t,e=>{var t;return null===(t=o.maxBy(e,"comp.size.width"))||void 0===t?void 0:t.comp.size.width});const n=o.groupBy(a.cells,"rowIndex");a.rowHeight=o.mapValues(n,e=>{var t;return null===(t=o.maxBy(e,"comp.size.height"))||void 0===t?void 0:t.comp.size.height}),a.containerSize.height=Object.entries(a.rowHeight).reduce((t,[n,r],o)=>{var i;return t+=r+(0===o?0:(null===(i=e.properties.layout)||void 0===i?void 0:i.verticalGap)||0)},0),a.containerSize.width=Object.entries(a.lineWidth).reduce((t,[n,r],o)=>{var i;return t+=r+(0===o?0:(null===(i=e.properties.layout)||void 0===i?void 0:i.horizontalGap)||0)},0)}return a}function d(e,t){return Object.entries(e).reduce((n,[r],o)=>(n[o]=n.accumulate,n.accumulate+=e[r]+t,n),{accumulate:0})}function h(e,t){return Object.entries(e).reduce((n,[r],o)=>(n[o]=n.accumulate,n.accumulate+=e[r]+t,n),{accumulate:0})}function p(e){var t,n,r,i;const{cells:a,lineWidth:s,rowHeight:l}=u(e),c={},p=(null===(t=e.properties.layout)||void 0===t?void 0:t.verticalGap)||0,f=(null===(n=e.properties.layout)||void 0===n?void 0:n.horizontalGap)||0;if(null===(r=e.properties.cell)||void 0===r?void 0:r.ratioWidth)console.log("暂未实现");else{const e=d(s,f);a.forEach(t=>{const{rowIndex:n,columnIndex:r}=t;o.isEmpty(c[`${n}-${r}`])&&(c[`${n}-${r}`]={x:0,y:0}),c[`${n}-${r}`].x=e[r]})}if(null===(i=e.properties.cell)||void 0===i?void 0:i.rowHeight)console.log("暂未实现");else{const e=h(l,p);a.forEach(t=>{const{rowIndex:n,columnIndex:r}=t;o.isEmpty(c[`${n}-${r}`])&&(c[`${n}-${r}`]={x:0,y:0});const i=(l[t.rowIndex]-t.comp.size.height)/2;c[`${n}-${r}`].y=e[n]+i})}return c}t.isContainer=function(e){return-1!==["artboard","group","panel","stack-panel","wrap-panel"].indexOf(e.type)||e.sealed||!1},t.reArrangeComponentsOfStackPanel=function(e,t){if(!e.components||0===e.components.length)return{width:0,height:0};const n=function(e){let t=e,n=e._currentState;if(n||(e.disabled?n="disabled":e.selected&&(n="checked")),n&&e.states&&e.states[n]){t=e.states[n];const{size:o,opacity:i,hidden:a,properties:s,value:l}=e,c=r(e,["size","opacity","hidden","properties","value"]);return Object.assign(Object.assign({},c),{size:o||t.size,opacity:i||t.opacity,hidden:a||t.hidden,value:l||t.value,properties:Object.assign(Object.assign({},s),t.properties)})}return t}(e),o=Object.assign(Object.assign({},e.properties),n.properties),{direction:a,verticalAlign:l,horizontalAlign:c,horizontalGap:u,verticalGap:d}=t||o.layout||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0};let h=0;const p=e.components.reduce((e,t)=>{const n=s(t),{width:r,height:o}=n.getViewBoundsInParent();return h="vertical"===a?Math.max(h,r):Math.max(h,o),{width:"vertical"===a?Math.max(e.width,r):e.width+r,height:"vertical"===a?e.height+o:Math.max(e.height,o),lockedRatio:e.lockedRatio}},{width:0,height:0,lockedRatio:e.size.lockedRatio});let f=0,m=0,g=0,v=0;return e.components.forEach((e,t)=>{const n=s(e);let{width:r,height:o}=n.getViewBoundsInParent(),h=e._currentState&&e.states[e._currentState]&&e.states[e._currentState].size||e.size;"vertical"===a?(v=f,v+=(d||0)*t,"center"===c?g=(p.width-h.width)/2:"right"===c&&(g=p.width-h.width)):(g=m,g+=(u||0)*t,"middle"===l?v=(p.height-h.height)/2:"bottom"===l&&(v=p.height-h.height)),e.position={x:i.round(g),y:i.round(v)},"vertical"===a?f+=o:m+=r}),"vertical"===a?p.height=(f||p.height)+(d||0)*(e.components.length-1):"horizontal"===a&&(p.width=(m||p.width)+(u||0)*(e.components.length-1)),e.size=p,p},t.reArrangeComponentOfWrapPanel=function(e){if(!e.components||!e.components.length)return{width:0,height:0,lockedRatio:e.size.lockedRatio};let t=e.properties,n=e._currentState;n||(e.disabled?n="disabled":e.selected&&(n="checked")),n&&e.states&&e.states[n]&&(t=Object.assign(Object.assign({},t),e.states[n].properties));const{direction:r,verticalAlign:o,horizontalAlign:i,horizontalGap:a,verticalGap:s}=t.layout||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0};let{width:u,height:d,lockedRatio:h}=e.size;const p=l(e),{rowOrColumnSize:f,maxHeight:m,maxWidth:g,maxColumnWidth:v}=c(p,e);let y=0,b=0,w=0,C=0;p.forEach((e,t)=>{const n=f[t];e.forEach((e,t)=>{const l=v[t],{component:c,size:u}=e;"vertical"===r?y="center"===i?w+(n-u.width)/2:"right"===i?w+n-u.width:w:b="middle"===o?C+(n-u.height)/2:"bottom"===o?C+n-u.height:C;const d=c.toJSON(),{width:h,height:p}=d.size,f=(u.width-h)/2,m=(u.height-p)/2;d.position={x:y+f,y:b+m},"vertical"===r?(b+=u.height,b+=s||0):(y+=l,y+=a||0)}),"vertical"===r?(w+=n+(a||0),b=0):(C+=n+(s||0),y=0)});let _=0,x=0;return"vertical"===r?(x=Math.max(d,e.components.reduce((e,t)=>Math.max(e,t.size.height),0)),e.size={height:x,width:g}):(_=Math.max(u,e.components.reduce((e,t)=>Math.max(e,t.size.width),0)),e.size={width:_,height:m,lockedRatio:h}),{width:_,height:m,lockedRatio:h}},t.getCellComps=l,t.getRowOrColumnSize=c,t.reArrangeSelectPanel=function(e){},t.reArrangeGridPanel=function(e){var t;const{cells:n,containerSize:r}=u(e),o=p(e);null===(t=e.components)||void 0===t||t.forEach(e=>{const t=e._id,r=n.find(e=>e.id===t);if(r){const{rowIndex:t,columnIndex:n}=r,i=`${t}-${n}`;e.position=o[i]}}),e.size=r},t.getCellInfo=u,t.getAcumulatePositionX=d,t.getAcumulatePositionY=h,t.getGridChildrenPosition=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initValidate=void 0;const r=n(7),o=n(8),i=n(17),a=n(34),s=n(43),l=n(6),c=n(6);const u=new class{constructor(){this.hasLockedComps=e=>e.some(e=>e.locked),this.getCompSustainInfo=e=>{const t=e.parent;if(!t.isGroup)return[];const{width:n,height:r}=t.size,{minX:i,minY:s,maxX:l,maxY:c}=a.getMinMaxXY(e.getBoxPointsInParent()),u=[];return o.sameNumber(i,0)&&u.push("left"),o.sameNumber(s,0)&&u.push("top"),o.sameNumber(l,n)&&u.push("right"),o.sameNumber(c,r)&&u.push("bottom"),u}}set editor(e){this._editor=e}allowRemark(e){var t;if((null===(t=this._editor)||void 0===t?void 0:t.isAdvancedEditor)||1!==e.length)return!1;const n=e[0];return!!n.isSealed||![l.CConnector,l.CCompoundPath].includes(n.type)}allowThemeEditor(e){var t;if(null===(t=this._editor)||void 0===t?void 0:t.isAdvancedEditor)return!1;if(!e.isSealed)return!1;const{lib:n,type:r}=e;return r===l.CSelectPanel||!!n&&![l.CContentPanel,c.CSelect,l.CTree,l.CTable].includes(r)}allowRotate(e){var t;if(e.length>1)return!1;if(e.some(e=>{var t;return(null===(t=e.parent)||void 0===t?void 0:t.type)===l.CTable}))return!1;if((null===(t=e[0])||void 0===t?void 0:t.type)===l.CSnapshot)return!1;const n=e.filter(e=>e.canRotate),r=n.filter(e=>e.isContainer&&e.hasConnector());return!!n.length&&!r.length}allowWidthChange(e){return!(!this.hasLockedComps(e)&&1===e.length)||e[0].canChangeWidth}allowHeightChange(e){return!(!this.hasLockedComps(e)&&1===e.length)||e[0].canChangeHeight}allowFlip(e){return!this.hasLockedComps(e)&&e.every(e=>e.canFlip)}allowMove(e){return-1===[l.CStackPanel,l.CWrapPanel,l.CListLayoutPanel,l.CGridPanel,l.CTable].indexOf(e.type)}allowAnchorsChange(e){return-1===[l.CStackPanel,l.CWrapPanel,l.CGroup,l.CGridPanel].indexOf(e.type)}allowHidden(e){var t;if((null===(t=e[0].parent)||void 0===t?void 0:t.type)===l.CCompoundPath)return!1;if(this.hasLockedComps(e)){const t=e[0].nearestSealedComponent;if(null==t?void 0:t.lib){const e=s.getComponent(t.lib);if(e&&e.isList)return!1}return!0}return!0}allowSameGap(e){const t=e[0].parent;return![l.CWrapPanel,l.CStackPanel,l.CListLayoutPanel,l.CGridPanel,l.CTable].includes(t.type)&&(!e.some(e=>e.type===l.CConnector)&&e.length>2)}allowSameSize(e){return!e.some(e=>{var t;return(null===(t=e.parent)||void 0===t?void 0:t.type)===l.CTable})&&(e.length>1&&!this.hasLockedComps(e))}allowAlign(e){const t=e[0].parent,n=t.rotate;if([l.CWrapPanel,l.CStackPanel,l.CListLayoutPanel,l.CGridPanel,l.CTable].includes(t.type)||n)return!1;const r=this.hasLockedComps(e);if(e.some(e=>e.type===l.CConnector))return!1;if(!r&&1===e.length){const t=e[0];return!!t.parent&&(!(t&&t.isLayoutCenterAtHorizontal||t&&t.isLayoutMiddleAtVertical)&&(!t||!t.parent.isGroup||this.allowCenterAlignInGroup(t)))}return e.length>1}allowAutoFit(e){return!(e.length>1)&&(!this.hasLockedComps(e)&&(!e.some(e=>{var t;return(null===(t=e.parent)||void 0===t?void 0:t.type)===l.CTable})&&e.every(e=>{var t;const n=c.isRichText(e.type)||e.type===l.CTextArea;if(n){const n=null===(t=e.libData)||void 0===t?void 0:t.isTextComp;if(!r.isUndefined(n)&&!n)return!1}return n})))}allowTextEditor(e){var t;if(null===(t=this._editor)||void 0===t?void 0:t.isAdvancedEditor)return!1;const{type:n,libData:o}=e;if(o){const{isTextComp:e,isList:t}=o;if(!r.isUndefined(e)&&!t)return e}return[l.CPureText,l.CText,l.CParagraph,l.CInput,l.CTextArea,l.CRect,l.CEllipse,l.CPolygon,l.CLine,l.CPath,l.CCompoundPath].includes(n)}allowPathEditor(e){return e.type===l.CPath}allowCenterAlignInGroup(e){const t={left:[],right:[],top:[],bottom:[]},n=e.parent,r=this.getCompSustainInfo(e);n.components.forEach(e=>{this.getCompSustainInfo(e).forEach(n=>{n&&t[n].push(e)})});let o=!0;return 0===r.length||(r.forEach(e=>{e&&(o=o&&t[e].length>1)}),o)}allowChildrenAnchorsChange(e){return![l.CGridPanel,l.CStackPanel,l.CWrapPanel,l.CListLayoutPanel,l.CCompoundPath,l.CTable].includes(e.type)}allowChildrenStructureChange(e,t){const n=e.isSealed?e:e.nearestSealedComponent;if(n){if(!n.lib){if(n.type===c.CSlider&&e!==n)return!0;const r=n.nearestSealedComponent;if(r&&"select"===r.type){if(e.parent===r&&("addFromLib"===t||"paste"===t))return!1;if(e.parent===n&&"remove"===t)return!0}return!1}{const r=s.getComponent(n.lib);if(r){if(!r.isList)return!1;if(e!==n)return!1;if("addFromLib"===t||"paste"===t)return!1}}}return!0}allowCreateSymbol(e){if(e.some(e=>{var t;return(null===(t=e.parent)||void 0===t?void 0:t.type)===l.CTable||[l.CSymbol,l.CConnector].includes(e.type)}))return!1;const t=e=>{let n=!1;if(e.length)for(let r=0,o=e.length;r<o;r++){const o=e[r];if(o instanceof i.UISymbolComponent){n=!0;break}if(o instanceof i.UIContainerComponent&&(n=t(o.components),n))break}return n},n=e=>e instanceof i.UISymbolComponent||!!e.parent&&n(e.parent);return!(!e||!e.length)&&(!e[0].nearestSealedComponent&&(e.length>0&&!n(e[0])&&!t(e)))}};t.initValidate=function(e){u.editor=e},t.default=u},function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(1363)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(102))},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(1381)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(102))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sessionOptions=t.getSessionByUserInfo=t.getDefaultSession=t.getCoopers=t.setCoopers=t.getSessionInfo=t.setSessionID=void 0;const r=n(30);let o="",i="",a=[];t.setSessionID=function(e,t){o=e,i=t},t.getSessionInfo=function(){return{appID:o,sessionID:i}},t.setCoopers=function(e){a=e},t.getCoopers=function(){return a},t.getDefaultSession=function(){return{id:r.getRandomSeed(),avatar:"",createdAt:new Date,name:"Me",userID:-1,IP:"",UA:window.navigator.userAgent}},t.getSessionByUserInfo=function(e){const{name:t,avatar:n,addTime:o,id:i}=e;return{id:r.getRandomSeed(),avatar:n,createdAt:o,name:t,userID:i,IP:"",UA:window.navigator.userAgent}};class s{constructor(){this.state=JSON.parse(window.sessionStorage.getItem("mockSession")||"{}")}getValue(e,t){return this.state[e]||t}saveValue(e,t){this.state[e]=t,window.sessionStorage.setItem("mockSession",JSON.stringify(this.state))}get convertCanvasPanelCount(){return this.getValue("convertCanvasPanelCount",1)}set convertCanvasPanelCount(e){this.saveValue("convertCanvasPanelCount",e)}}t.sessionOptions=new s,t.default=s},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.ThunkActions=t.CoreEditors=t.Actions=void 0;const o=n(274),i=n(436),a=n(129),s=n(272),l=n(92),c=n(108),u=n(1403),d=n(4),h=n(225),p=n(311),f=n(218),m=n(304),g=n(291),v=n(49),y=n(161);t.Actions={getApp:(e,t,n,r,o)=>v.createAction(v.ActionType.App_GetApp,{realNodes:e,tempDeleteNodes:t,app:n,selectedID:r,createTime:o}),getUserInfo:e=>v.createAction(v.ActionType.User_GetUserInfo,e),getSession:e=>v.createAction(v.ActionType.User_GetSession,e),getTeamInfo:e=>v.createAction(v.ActionType.Team_GetTeamInfo,e),patchTeamInfo:e=>v.createAction(v.ActionType.Team_Patch,e),updateUserInfo:e=>v.createAction(v.ActionType.User_GetUserInfo,e),addNode:e=>v.createAction(v.ActionType.App_AddNode,e),insertNode:e=>v.createAction(v.ActionType.App_InsertNode,e),updateNodes:e=>v.createAction(v.ActionType.App_UpdateNodes,e),patchNode:e=>v.createAction(v.ActionType.App_PatchNode,e),recoverNode:e=>v.createAction(v.ActionType.App_UpdateNodes,e),selectNode:(e,t=!1)=>v.createAction(v.ActionType.App_SelectNode,{nodeID:e,isTrashPage:t}),loadArtboards:(e,t,n)=>v.createAction(v.ActionType.App_LoadArtboards,{pageID:e,artboards:t,forceUpdate:n}),ioUpdate:e=>v.createAction(v.ActionType.IO_UPDATE,e),updateCoopers:e=>v.createAction(v.ActionType.App_UpdateCoopers,e),killCoopers:e=>v.createAction(v.ActionType.App_KillCoopers,e),updateArtboardSelect:e=>v.createAction(v.ActionType.App_ArtboardSelectSync,e),treeUpdateSelectedIDs:(e,t)=>v.createAction(v.ActionType.App_Tree_UpdateSelectedIDs,{ids:e,isTrashPage:t}),treeUpdateExpandedIDs:e=>v.createAction(v.ActionType.App_Tree_UpdateExpandedIDs,e),treeHidePage:e=>v.createAction(v.ActionType.App_Tree_HidePage,e),updateTreeTrashSelectedIDs:(e,t)=>v.createAction(v.ActionType.App_Tree_UpdateTrashSelectedIDs,{ids:e,isTrashPage:t}),updateDownloadResult:e=>v.createAction(v.ActionType.App_DownloadArtboard,e),revertRevisions:(e,t)=>v.createAction(v.ActionType.Page_Revisions_revert,{pageID:e,artboards:t}),refresh:()=>v.createAction(v.ActionType.APP_RefreshPage),changeProjectSize:(e,t,n,r)=>v.createAction(v.ActionType.App_ChangeProjectSize,{appID:e,appType:t,name:n,size:r}),patchAppInfo:e=>v.createAction(v.ActionType.App_Patch_Info,e),loadDepartments:e=>v.createAction(v.ActionType.Department_Load_List,e)};const b=[];let w=0;t.CoreEditors=new i.LRUMap(10);const C=e=>{const{realNodes:t}=l.parseNodeToTreeByState(e);return l.getAllPageCount(t)};t.ThunkActions={thunkGetApp:(e,n,o)=>(i,s)=>r(void 0,void 0,void 0,(function*(){s().app.userInfo||t.ThunkActions.thunkGetUserInfo()(i);const u=yield c.default.app.getAppByID(e,!!o),{realNodes:d,tempDeleteNodes:p}=l.parseNodeToTreeByState(u.children);f.appDataManager.init(u._id,C(u.children),m.ioHandlers),f.appDataManager.isExample=!!o,o||(c.default.app.accessApp(e,u.teamID),yield((e,n)=>r(void 0,void 0,void 0,(function*(){let r=h.getDefaultSession();try{r=yield m.joinAppCooper(e)}catch(e){console.log(e)}n(t.Actions.getSession(r))})))(e,i),yield t.ThunkActions.thunkGetTeamInfo(u.teamID)(i)),o&&f.appDataManager.clearOperation();const g=u.createdAt;i(t.Actions.getApp(d,p,u,n,g));const v=a.loadFromCache("lastOpenPage");let y;const b=n||v;b&&(y=l.findNodeByID(d,b)),y&&"folder"!==y.type||(y=l.getFirstPageNodeOfTree(d)),y&&t.ThunkActions.thunkLoadPage(y.appID,y._id,y.state===l.NodeState.Deleted,o)(i)})),thunkGetUserInfo:()=>e=>r(void 0,void 0,void 0,(function*(){const n=yield c.default.user.getUserInfo();e(t.Actions.getUserInfo(n))})),thunkAddNode:e=>n=>r(void 0,void 0,void 0,(function*(){m.pushNodeAddPatch(e).then(r=>{-1===e.index?n(t.Actions.addNode(r)):n(t.Actions.insertNode(r))}).catch(e=>{y.ThunkActions.thunkToast(e.message)(n)})})),thunkMoveNode:(e,n,o,i)=>a=>r(void 0,void 0,void 0,(function*(){try{const r=yield m.pushNodeMovePatch({appID:e,nodeIDs:n,toPath:o,index:i});a(t.Actions.updateNodes(r))}catch(e){y.ThunkActions.thunkToast(e.message)(a)}})),thunkCopyNode:(e,n,o,i)=>a=>r(void 0,void 0,void 0,(function*(){try{const r=yield m.pushNodeCopyPatch({appID:e,nodeIDs:n,toPath:o,index:i});f.appDataManager.appPageNum+=n.length,a(t.Actions.updateNodes(r))}catch(e){y.ThunkActions.thunkToast(e.message)(a)}})),thunkRemoveNode:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){const{size:r,userID:a,nodeIDs:l,nextNodeId:c}=n;i(y.Actions.waiting(!0));try{const u=yield m.pushNodeRemovePatch({appID:e,nodeIDs:l});if(i(t.Actions.updateNodes(u)),i(y.Actions.waiting(!1)),u.length&&c)f.appDataManager.appPageNum=C(u),t.ThunkActions.thunkLoadPage(e,c,!1)(i);else{const l={_id:o.generate(),artboardID:o.generate(),artboardName:d.default("project.mainName"),appID:e,name:d.default("project.defaultPageName"),size:r,userID:a,type:s.NodeType.Page,parentID:"",index:-1,path:p.getNewNodePath(n.nodes,"")};t.ThunkActions.thunkAddNode(l)(i)}}catch(e){y.ThunkActions.thunkToast(e.message)(i),i(y.Actions.waiting(!1))}})),thunkPatchNode:(e,n,o)=>i=>r(void 0,void 0,void 0,(function*(){try{const r=yield m.pushNodePatchPatch({appID:e,nodeID:n,name:o});i(t.Actions.patchNode(r))}catch(e){y.ThunkActions.thunkToast(e.message)(i)}})),thunkRecoverNode:(e,n,o,i,a,s)=>l=>r(void 0,void 0,void 0,(function*(){try{l(y.Actions.waiting(!0));const r=yield m.pushRecoverNodePatch({appID:e,nodeIDs:n,targetParent:o,targetIndex:i});l(t.Actions.recoverNode(r)),l(y.Actions.waiting(!1)),a&&l(t.Actions.treeUpdateSelectedIDs([n[0]],s))}catch(e){y.ThunkActions.thunkToast(e.message)(l),l(y.Actions.waiting(!1))}})),thunkRemoveNodePermanently:(e,n,o,i)=>a=>r(void 0,void 0,void 0,(function*(){try{const r=yield m.pushNodeRemovePermanentlyPatch({appID:e,nodeIDs:n});a(t.Actions.updateNodes(r)),r.length&&o&&t.ThunkActions.thunkLoadPage(e,o,!!i)(a)}catch(e){y.ThunkActions.thunkToast(e.message)(a)}})),thunkLoadPage:(e,n,o,i)=>s=>r(void 0,void 0,void 0,(function*(){try{const r=t.CoreEditors.has(n);if(s(y.Actions.waiting(!0)),s(t.Actions.selectNode(n,o)),a.saveToCahche("lastOpenPage",{[e]:n}),!r){const e=yield c.default.artboard.getAllArtboardsByNodeID(n,i);s(t.Actions.loadArtboards(n,e,!1))}s(y.Actions.waiting(!1)),!i&&t.ThunkActions.thunkUpdateSelectedNode(e,n)}catch(e){i||"offline-error"===e.code||y.ThunkActions.thunkToast(e.message)(s)}})),thunkUpdateSelectedNode:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){const r=yield m.syncComponentsSelectOfNode(e,n);m.editNode(n),0===r.code&&r.payload&&o(t.Actions.updateArtboardSelect({appID:e,nodeID:n,selected:r.payload}))})),thunkHiddenPage:(e,n,o)=>i=>r(void 0,void 0,void 0,(function*(){try{const r=yield m.pushHidePageNode({appID:e,nodeIDs:n,hidden:o});i(t.Actions.treeHidePage(r))}catch(e){y.ThunkActions.thunkToast(e.message)(i)}})),thunkReloadPage:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){try{const r=yield c.default.artboard.getAllArtboardsByNodeID(n);o(t.Actions.loadArtboards(n,r,!0));const i=yield m.syncComponentsSelectOfNode(e,n);m.editNode(n),0===i.code&&i.payload&&o(t.Actions.updateArtboardSelect({appID:e,nodeID:n,selected:i.payload}))}catch(e){"offline-error"!==e.code&&y.ThunkActions.thunkToast(e.message)(o)}})),thunkDownloadArtboard:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){const r=w++;o(t.Actions.updateDownloadResult({status:"request",message:d.default("workspace.artboard.downloadingMessage"),taskID:r})),c.default.artboard.download(e,n).then(e=>{b.includes(r)||o(t.Actions.updateDownloadResult({status:"done",message:d.default("workspace.artboard.downloadedMessage"),URL:e.URL,taskID:r}))}).catch(e=>{b.includes(r)||o(t.Actions.updateDownloadResult({status:"error",message:d.default("workspace.artboard.downloadErrorMessage")+e.message,taskID:r}))})})),thunkCancelDownload:e=>n=>r(void 0,void 0,void 0,(function*(){b.push(e),n(t.Actions.updateDownloadResult({status:"init",message:"",taskID:-1}))})),thunkLoadRevisionPageData:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){try{const r=yield c.default.artboard.getAllArtboardsByNodeID(n);o(t.Actions.revertRevisions(n,r));const i=yield m.syncComponentsSelectOfNode(e,n);m.editNode(n),0===i.code&&i.payload&&o(t.Actions.updateArtboardSelect({appID:e,nodeID:n,selected:i.payload}))}catch(e){"offline-error"!==e.code&&y.ThunkActions.thunkToast(e.message)(o)}})),thunkChangeProjectSizeData:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){try{yield m.changeProjectSize(e,n),o(t.Actions.changeProjectSize(e,n.appType,n.name,n.size))}catch(e){y.ThunkActions.thunkToast(e.message)(o)}})),patchTeamInfo:e=>n=>{n(t.Actions.patchTeamInfo(e))},patchAppInfo:e=>n=>{n(t.Actions.patchAppInfo(e))},loadDepartments:e=>n=>{c.default.team.getTeamGroups(e).then(e=>{n(t.Actions.loadDepartments(e))}).catch(e=>y.ThunkActions.thunkToast(e.message)(n))},createApp:(e,t,n)=>r=>{u.addApp({teamID:e,name:t.name,appType:t.appType,size:t.size,appSetID:t.appSetID,visibility:"internal",tagID:"all",type:"sub-rp-app"}).then(e=>{n&&n(e)}).catch(e=>y.ThunkActions.thunkToast(e.message)(r))},editAppName:(e,n)=>r=>{c.default.app.editAppName(e,{name:n}).then(e=>{r(t.Actions.patchAppInfo({name:e.name}))}).catch(e=>{window.debug&&console.log(e)})},importRPAppFile:(e,t)=>r(void 0,void 0,void 0,(function*(){return yield c.default.app.importRPAppFile(e,t)})),getSnapshotAllPages:e=>{c.default.team.getSnapshotAllPages(e).then(e=>{g.default.pages=e}).catch(e=>{window.debug&&console.log(e)})},thunkGetTeamInfo:e=>n=>r(void 0,void 0,void 0,(function*(){let r=null;try{r=yield c.default.team.getTeamInfo(e)}catch(e){console.error(e)}n(t.Actions.getTeamInfo(r))}))}},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.ThunkActions=t.Actions=t.artboardList=void 0;const o=n(8),i=n(92),a=n(108),s=n(1420),l=n(53),c=n(49),u=n(161),d=n(453);function h(e){return r(this,void 0,void 0,(function*(){let n=t.artboardList[e];return n||(n=yield a.default.artboard.getAllPreviewArtboardsByNodeID(e),t.artboardList[e]=o.depthClone(n)),n}))}t.artboardList={},t.Actions={getApp:e=>c.createAction(c.ActionType.Preview_GetApp,{app:e}),getTeamInfo:e=>c.createAction(c.ActionType.Share_GetTeamInfo,e),loadArtBoard:(e,t)=>c.createAction(c.ActionType.Preview_LoadArtBoard,{pageID:e,artboards:t}),loadPageAfter:()=>c.createAction(c.ActionType.Preview_AfterSkipToPage),selectNode:(e,t)=>c.createAction(c.ActionType.Preview_SelectNode,{nodeID:e,artBoards:t}),exit:()=>c.createAction(c.ActionType.Preview_Exit),beforeSkipToPage:e=>c.createAction(c.ActionType.Preview_beforeSkipToPage,{pageActionParam:e}),goBackward:(e,t)=>c.createAction(c.ActionType.Preview_goBackward,{actionEffect:e,callback:t}),goForward:e=>c.createAction(c.ActionType.Preview_goForward,{callback:e}),goHome:(e,t)=>c.createAction(c.ActionType.Preview_returnHome,{homeID:e,homeArtBoards:t}),showFragment:e=>c.createAction(c.ActionType.Preview_showFragment,{action:e}),showMessage:e=>c.createAction(c.ActionType.Preview_showMessage,{message:e}),hideMessage:()=>c.createAction(c.ActionType.Preview_hideMessage),toLogIn:(e,t)=>c.createAction(c.ActionType.Preview_toLogIn,{shareID:e,openPage:t}),pwdEnabled:e=>c.createAction(c.ActionType.Preview_PwdEnabled,e),isProjectExist:e=>c.createAction(c.ActionType.Preview_ProjectExist,e),setCurrLinkID:e=>c.createAction(c.ActionType.Preview_setCurrLinkID,{linkID:e})},t.ThunkActions={getApp:(e,n)=>o=>{a.default.app.getAppByShareID(e).then(e=>r(void 0,void 0,void 0,(function*(){let r;Object.keys(t.artboardList).forEach(e=>{delete t.artboardList[e]});try{r=yield a.default.team.getTeamInfo(e.teamID)}catch(e){console.log(e)}r&&o(t.Actions.getTeamInfo(r));const s=null==r?void 0:r.roleInTeam;let c;try{c=yield a.default.user.getUserInfo()}catch(e){console.log(e)}c&&o(d.Actions.getUserInfo(c)),o(t.Actions.getApp(e));let u=null;const p=i.parseNodesToTree(e.children);n&&(u=i.findNodeByID(p,n)),l.couldPagePreview(u,s)||(u=i.getFirstPageNodeOfTree(p,e=>{let t=e;for(;t;){if(t.state===i.NodeState.Deleted)return!1;t=t.parent}return l.couldPagePreview(e,s)})),u&&h(u._id).then(()=>{u&&t.ThunkActions.loadPage(u)(o)})}))).catch(r=>{s.hasNoSign(r.code)&&o(t.Actions.toLogIn(e,n)),r.code&&o(t.Actions.isProjectExist(!1))})},loadPage:e=>n=>r(void 0,void 0,void 0,(function*(){n(u.Actions.waiting(!0));const r=yield h(e._id);n(t.Actions.loadArtBoard(e._id,r)),n(t.Actions.selectNode(e._id,r)),n(u.Actions.waiting(!1))})),selectPageNode:e=>n=>r(void 0,void 0,void 0,(function*(){n(u.Actions.waiting(!0));const r=yield h(e);n(t.Actions.selectNode(e,r)),n(u.Actions.waiting(!1))})),afterPageSkip:()=>e=>{e(t.Actions.loadPageAfter())},exit:()=>e=>{Object.keys(t.artboardList).forEach(e=>{delete t.artboardList[e]}),e(t.Actions.exit())},beforeSkipToPage:(e,n,o)=>i=>r(void 0,void 0,void 0,(function*(){const r=yield h(e._id);if(n&&r){const a=yield h(n._id),s={nextPageID:e._id,nextArtBoards:r,currentPageID:n._id,currentArtBoards:a,actionEffect:o};i(t.Actions.beforeSkipToPage(s))}})),goBackward:(e,n)=>r=>{r(t.Actions.goBackward(e,n))},goForward:e=>n=>{n(t.Actions.goForward(e))},goHome:e=>n=>r(void 0,void 0,void 0,(function*(){const r=yield h(e);n(t.Actions.goHome(e,r)),n(u.Actions.waiting(!1))})),showFragment:e=>n=>{n(t.Actions.showFragment(e))},showMessage:(e,n)=>r=>{r(t.Actions.showMessage(e)),setTimeout(()=>{r(t.Actions.hideMessage())},n)},setCurrLinkID:e=>n=>{n(t.Actions.setCurrLinkID(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(226);Object.defineProperty(t,"App",{enumerable:!0,get:function(){return r.Actions}}),Object.defineProperty(t,"AppThunkActions",{enumerable:!0,get:function(){return r.ThunkActions}});var o=n(227);Object.defineProperty(t,"Preview",{enumerable:!0,get:function(){return o.Actions}}),Object.defineProperty(t,"PreviewThunkActions",{enumerable:!0,get:function(){return o.ThunkActions}});var i=n(453);Object.defineProperty(t,"Share",{enumerable:!0,get:function(){return i.Actions}}),Object.defineProperty(t,"ShareThunkActions",{enumerable:!0,get:function(){return i.ThunkActions}});var a=n(161);Object.defineProperty(t,"Global",{enumerable:!0,get:function(){return a.Actions}}),Object.defineProperty(t,"GlobalThunkActions",{enumerable:!0,get:function(){return a.ThunkActions}});var s=n(1439);Object.defineProperty(t,"Resource",{enumerable:!0,get:function(){return s.Actions}}),Object.defineProperty(t,"ResourceThunkActions",{enumerable:!0,get:function(){return s.ThunkActions}});var l=n(1440);Object.defineProperty(t,"UserPreference",{enumerable:!0,get:function(){return l.Actions}}),Object.defineProperty(t,"UserPreferenceActions",{enumerable:!0,get:function(){return l.ThunkActions}});var c=n(1441);Object.defineProperty(t,"Revisions",{enumerable:!0,get:function(){return c.Actions}}),Object.defineProperty(t,"RevisionsAction",{enumerable:!0,get:function(){return c.ThunkActions}});var u=n(1442);Object.defineProperty(t,"MemberActions",{enumerable:!0,get:function(){return u.ThunkActions}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(230);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return r.default}});var o=n(179);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return o.default}});var i=n(26);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"IconProps",{enumerable:!0,get:function(){return i.IconProps}});var a=n(1455);Object.defineProperty(t,"ColorfulIcon",{enumerable:!0,get:function(){return a.default}});var s=n(180);Object.defineProperty(t,"Input",{enumerable:!0,get:function(){return s.default}});var l=n(1490);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return l.default}});var c=n(316);Object.defineProperty(t,"SearchInput",{enumerable:!0,get:function(){return c.default}});var u=n(70);Object.defineProperty(t,"Checkbox",{enumerable:!0,get:function(){return u.default}});var d=n(1504);Object.defineProperty(t,"CheckboxGroup",{enumerable:!0,get:function(){return d.default}});var h=n(458);Object.defineProperty(t,"Radio",{enumerable:!0,get:function(){return h.default}});var p=n(1507);Object.defineProperty(t,"RadioButton",{enumerable:!0,get:function(){return p.default}});var f=n(139);Object.defineProperty(t,"Dialog",{enumerable:!0,get:function(){return f.default}});var m=n(459);Object.defineProperty(t,"EmptyDialog",{enumerable:!0,get:function(){return m.default}});var g=n(1511);Object.defineProperty(t,"TagButtonGroup",{enumerable:!0,get:function(){return g.default}});var v=n(1515);Object.defineProperty(t,"TagsManager",{enumerable:!0,get:function(){return v.default}});var y=n(1520);Object.defineProperty(t,"Color",{enumerable:!0,get:function(){return y.default}});var b=n(1530);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return b.default}});var w=n(181);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return w.default}});var C=n(1532);Object.defineProperty(t,"Progress",{enumerable:!0,get:function(){return C.default}});var _=n(138);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return _.default}});var x=n(462);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return x.default}});var S=n(460);Object.defineProperty(t,"Panel",{enumerable:!0,get:function(){return S.default}});var k=n(1535);Object.defineProperty(t,"Zoomer",{enumerable:!0,get:function(){return k.default}});var P=n(87);Object.defineProperty(t,"ScrollView",{enumerable:!0,get:function(){return P.default}});var T=n(1537);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return T.default}});var E=n(1539);Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return E.default}});var O=n(182);Object.defineProperty(t,"DialogWithInput",{enumerable:!0,get:function(){return O.default}});var M=n(1541);Object.defineProperty(t,"DialogWithTextArea",{enumerable:!0,get:function(){return M.default}});var A=n(314);Object.defineProperty(t,"withAutoClose",{enumerable:!0,get:function(){return A.default}});var D=n(463);Object.defineProperty(t,"Shortcut",{enumerable:!0,get:function(){return D.default}});var I=n(1544);Object.defineProperty(t,"Stepper",{enumerable:!0,get:function(){return I.default}});var L=n(464);Object.defineProperty(t,"DialogWithFullScreen",{enumerable:!0,get:function(){return L.default}});var N=n(1547);Object.defineProperty(t,"PanelWithDialog",{enumerable:!0,get:function(){return N.default}});var j=n(1549);Object.defineProperty(t,"ArrowPointTip",{enumerable:!0,get:function(){return j.default}});var R=n(1551);Object.defineProperty(t,"GroupManage",{enumerable:!0,get:function(){return R.default}});var z=n(1556);Object.defineProperty(t,"Tree",{enumerable:!0,get:function(){return z.default}});var F=n(1562);Object.defineProperty(t,"IconPlugin",{enumerable:!0,get:function(){return F.default}});var B=n(1569);Object.defineProperty(t,"LayerStyle",{enumerable:!0,get:function(){return B.default}});var H=n(1571);Object.defineProperty(t,"TextArea",{enumerable:!0,get:function(){return H.default}});var V=n(1573);Object.defineProperty(t,"TopMessageTips",{enumerable:!0,get:function(){return V.default}});var Y=n(1575);Object.defineProperty(t,"ShortcutsDialog",{enumerable:!0,get:function(){return Y.default}});var W=n(315);Object.defineProperty(t,"UpgradeTip",{enumerable:!0,get:function(){return W.default}});var U=n(1577);Object.defineProperty(t,"MobileDialog",{enumerable:!0,get:function(){return U.default}});var K=n(1582);Object.defineProperty(t,"CheckSelect",{enumerable:!0,get:function(){return K.default}});var G=n(1595);Object.defineProperty(t,"TooltipEx",{enumerable:!0,get:function(){return G.default}});var q=n(1597);Object.defineProperty(t,"LarkRefresh",{enumerable:!0,get:function(){return q.default}});var $=n(1599);Object.defineProperty(t,"RPFreeProgram",{enumerable:!0,get:function(){return $.default}});var X=n(1620);Object.defineProperty(t,"TreeTransfer",{enumerable:!0,get:function(){return X.default}});var J=n(184);Object.defineProperty(t,"MatchStrSpan",{enumerable:!0,get:function(){return J.default}});var Z=n(604);Object.defineProperty(t,"Loading",{enumerable:!0,get:function(){return Z.default}});var Q=n(1635);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return Q.default}});var ee=n(605);Object.defineProperty(t,"Pager",{enumerable:!0,get:function(){return ee.default}});var te=n(627);Object.defineProperty(t,"EmptyTip",{enumerable:!0,get:function(){return te.default}});var ne=n(631);Object.defineProperty(t,"LoadingPoints",{enumerable:!0,get:function(){return ne.default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1446);const i=e=>{const{href:t,className:n,onClick:i,theme:a,target:s,children:l,disabled:c,stopPropagation:u}=e,d={"link-a":"basic"===a,"link-b":"red"===a,"link-c":"blue"===a,"link-d":"hover-blue"===a,"link-disabled":c||!1};return n&&(d[n]=!0),t?r.createElement("a",{className:o.default("dsm-c-link",n,{"dsm-c-link-basic":"basic"===a,"dsm-c-link-red":"red"===a,"dsm-c-link-blue":"blue"===a,"dsm-c-link-hover-blue":"hover-blue"===a,"link-disabled":c}),href:t,target:s,onClick:e=>u&&e.stopPropagation()},l):r.createElement("span",{className:o.default(d),onClick:i},l)};i.defaultProps={theme:"red",href:"",target:"_self",stopPropagation:!0},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1639);Object.defineProperty(t,"MenuPaddingTB",{enumerable:!0,get:function(){return r.MenuPaddingTB}}),Object.defineProperty(t,"MenuOptionLineHeight",{enumerable:!0,get:function(){return r.MenuOptionLineHeight}}),Object.defineProperty(t,"MenuOptionDefaultLength",{enumerable:!0,get:function(){return r.MenuOptionDefaultLength}}),Object.defineProperty(t,"MenuOptionTextSize",{enumerable:!0,get:function(){return r.MenuOptionTextSize}}),Object.defineProperty(t,"MenuDefaultWidth",{enumerable:!0,get:function(){return r.MenuDefaultWidth}}),Object.defineProperty(t,"MenuPaddingLR",{enumerable:!0,get:function(){return r.MenuPaddingLR}}),Object.defineProperty(t,"moreIconHeight",{enumerable:!0,get:function(){return r.moreIconHeight}}),Object.defineProperty(t,"TableRowLineHeight",{enumerable:!0,get:function(){return r.TableRowLineHeight}}),Object.defineProperty(t,"TableSortOrder",{enumerable:!0,get:function(){return r.TableSortOrder}});var o=n(1640);Object.defineProperty(t,"TimeFormatType",{enumerable:!0,get:function(){return o.TimeFormatType}});var i=n(1641);Object.defineProperty(t,"styleColor",{enumerable:!0,get:function(){return i.styleColor}}),Object.defineProperty(t,"styleSpace",{enumerable:!0,get:function(){return i.styleSpace}}),Object.defineProperty(t,"styleFont",{enumerable:!0,get:function(){return i.styleFont}});var a=n(1642);Object.defineProperty(t,"Role",{enumerable:!0,get:function(){return a.Role}}),Object.defineProperty(t,"RoleList",{enumerable:!0,get:function(){return a.RoleList}})},function(e,t,n){var r=n(98).Symbol;e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(1664),o=n(1665),i=n(1666),a=n(1667),s=n(1668);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(613);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(162)(Object,"create");e.exports=r},function(e,t,n){var r=n(1686);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(606),o=n(321),i=n(610),a=n(612);e.exports=function(e,t,n){e=a(e);var s=(t=i(t))?o(e):0;return t&&s<t?r(t-s,n)+e:e}},function(e,t,n){var r=n(1661);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(1660),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=o(n),r<e.length-1&&(t+=", ")})),t):o(e)}},,function(e,t,n){var r=n(31),o=n(21).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(21),o=n(79),i=n(110),a=n(330),s=n(41).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(166)("keys"),o=n(119);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(21).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(31),o=n(19),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(80)(Function.call,n(73).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r=n(31),o=n(249).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(82),o=n(89);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){"use strict";var r=n(110),o=n(5),i=n(66),a=n(65),s=n(147),l=n(256),c=n(144),u=n(74),d=n(37)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,m,g,v){l(n,t,f);var y,b,w,C=function(e){if(!h&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",x="values"==m,S=!1,k=e.prototype,P=k[d]||k["@@iterator"]||m&&k[m],T=P||C(m),E=m?x?C("entries"):T:void 0,O="Array"==t&&k.entries||P;if(O&&(w=u(O.call(new e)))!==Object.prototype&&w.next&&(c(w,_,!0),r||"function"==typeof w[d]||a(w,d,p)),x&&P&&"values"!==P.name&&(S=!0,T=function(){return P.call(this)}),r&&!v||!h&&!S&&k[d]||a(k,d,T),s[t]=T,s[_]=p,m)if(y={values:x?T:C("values"),keys:g?T:C("keys"),entries:E},v)for(b in y)b in k||i(k,b,y[b]);else o(o.P+o.F*(h||S),t,y);return y}},function(e,t,n){"use strict";var r=n(122),o=n(118),i=n(144),a={};n(65)(a,n(37)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(192),o=n(89);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(37)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(147),o=n(37)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(41),o=n(118);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(145),o=n(37)("iterator"),i=n(147);e.exports=n(79).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(735);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(45),o=n(121),i=n(38);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(112),o=n(347),i=n(147),a=n(72);e.exports=n(255)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r,o,i=n(169),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l.lastIndex),r=a.call(l,e),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=l},function(e,t,n){"use strict";var r=n(191)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r,o,i,a=n(80),s=n(337),l=n(248),c=n(244),u=n(21),d=u.process,h=u.setImmediate,p=u.clearImmediate,f=u.MessageChannel,m=u.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};h&&p||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete v[e]},"process"==n(81)(d)?r=function(e){d.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:f?(i=(o=new f).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:p}},function(e,t,n){var r=n(21),o=n(267).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n(81)(a);e.exports=function(){var e,t,n,c=function(){var r,o;for(l&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,h=document.createTextNode("");new i(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){"use strict";var r=n(54);function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(21),o=n(39),i=n(110),a=n(198),s=n(65),l=n(127),c=n(27),u=n(125),d=n(82),h=n(38),p=n(357),f=n(123).f,m=n(41).f,g=n(263),v=n(144),y=r.ArrayBuffer,b=r.DataView,w=r.Math,C=r.RangeError,_=r.Infinity,x=y,S=w.abs,k=w.pow,P=w.floor,T=w.log,E=w.LN2,O=o?"_b":"buffer",M=o?"_l":"byteLength",A=o?"_o":"byteOffset";function D(e,t,n){var r,o,i,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?k(2,-24)-k(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for((e=S(e))!=e||e===_?(o=e!=e?1:0,r=l):(r=P(T(e)/E),e*(i=k(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?u/i:u*k(2,1-c))*i>=2&&(r++,i/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(e*i-1)*k(2,t),r+=c):(o=e*k(2,c-1)*k(2,t),r=0));t>=8;a[d++]=255&o,o/=256,t-=8);for(r=r<<t|o,s+=t;s>0;a[d++]=255&r,r/=256,s-=8);return a[--d]|=128*h,a}function I(e,t,n){var r,o=8*n-t-1,i=(1<<o)-1,a=i>>1,s=o-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===i)return r?NaN:c?-_:_;r+=k(2,t),u-=a}return(c?-1:1)*r*k(2,u-t)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function N(e){return[255&e]}function j(e){return[255&e,e>>8&255]}function R(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function z(e){return D(e,52,8)}function F(e){return D(e,23,4)}function B(e,t,n){m(e.prototype,t,{get:function(){return this[n]}})}function H(e,t,n,r){var o=p(+n);if(o+t>e[M])throw C("Wrong index!");var i=e[O]._b,a=o+e[A],s=i.slice(a,a+t);return r?s:s.reverse()}function V(e,t,n,r,o,i){var a=p(+n);if(a+t>e[M])throw C("Wrong index!");for(var s=e[O]._b,l=a+e[A],c=r(+o),u=0;u<t;u++)s[l+u]=c[i?u:t-u-1]}if(a.ABV){if(!c((function(){y(1)}))||!c((function(){new y(-1)}))||c((function(){return new y,new y(1.5),new y(NaN),"ArrayBuffer"!=y.name}))){for(var Y,W=(y=function(e){return u(this,y),new x(p(e))}).prototype=x.prototype,U=f(x),K=0;U.length>K;)(Y=U[K++])in y||s(y,Y,x[Y]);i||(W.constructor=y)}var G=new b(new y(2)),q=b.prototype.setInt8;G.setInt8(0,2147483648),G.setInt8(1,2147483649),!G.getInt8(0)&&G.getInt8(1)||l(b.prototype,{setInt8:function(e,t){q.call(this,e,t<<24>>24)},setUint8:function(e,t){q.call(this,e,t<<24>>24)}},!0)}else y=function(e){u(this,y,"ArrayBuffer");var t=p(e);this._b=g.call(new Array(t),0),this[M]=t},b=function(e,t,n){u(this,b,"DataView"),u(e,y,"DataView");var r=e[M],o=d(t);if(o<0||o>r)throw C("Wrong offset!");if(o+(n=void 0===n?r-o:h(n))>r)throw C("Wrong length!");this[O]=e,this[A]=o,this[M]=n},o&&(B(y,"byteLength","_l"),B(b,"buffer","_b"),B(b,"byteLength","_l"),B(b,"byteOffset","_o")),l(b.prototype,{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return L(H(this,4,e,arguments[1]))},getUint32:function(e){return L(H(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return I(H(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return I(H(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){V(this,1,e,N,t)},setUint8:function(e,t){V(this,1,e,N,t)},setInt16:function(e,t){V(this,2,e,j,t,arguments[2])},setUint16:function(e,t){V(this,2,e,j,t,arguments[2])},setInt32:function(e,t){V(this,4,e,R,t,arguments[2])},setUint32:function(e,t){V(this,4,e,R,t,arguments[2])},setFloat32:function(e,t){V(this,4,e,F,t,arguments[2])},setFloat64:function(e,t){V(this,8,e,z,t,arguments[2])}});v(y,"ArrayBuffer"),v(b,"DataView"),s(b.prototype,a.VIEW,!0),t.ArrayBuffer=y,t.DataView=b},function(e,t,n){"use strict";
|
|
|
/*
|
|
|
object-assign
|
|
|
(c) Sindre Sorhus
|
|
|
@license MIT
|
|
|
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var d=0;d<s.length;d++)i.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0,function(e){e.Page="page",e.Folder="folder"}(t.NodeType||(t.NodeType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationType=t.IOEvent=t.IOType=void 0,function(e){e[e.PagePatches=0]="PagePatches",e[e.PageSelect=1]="PageSelect",e[e.PageRollback=2]="PageRollback",e[e.NodeUpdate=3]="NodeUpdate",e[e.NodeRemove=4]="NodeRemove",e[e.CoopersUpdate=5]="CoopersUpdate",e[e.CoopersObituary=6]="CoopersObituary",e[e.Message=7]="Message",e[e.OfflineSync=8]="OfflineSync",e[e.SocketStatus=9]="SocketStatus",e[e.NetworkStatus=10]="NetworkStatus",e[e.AppPatch=11]="AppPatch",e[e.RPOfflineDemo=12]="RPOfflineDemo"}(t.IOType||(t.IOType={})),function(e){e.Heartbeat="heartbeat",e.JoinAppCooper="join-app-cooper",e.ExitAppCooper="exit-app-cooper",e.AppPatch="app-patch",e.CoopersUpdate="coopers-update",e.PagePatch="page-patch",e.PageSelect="page-select",e.PageSelectSync="page-select-sync",e.PageRollback="page-rollback",e.ArtboardAdd="artboard-add",e.NodeEdit="node-edit",e.NodeAdd="node-add",e.NodeMove="node-move",e.NodeCopy="node-copy",e.NodePatch="node-patch",e.NodeUpdate="node-update",e.NodeRemove="node-remove",e.NodeRecover="node-recover",e.NodeRemovePermanently="node-remove-permanently",e.NodeHidden="node-hidden",e.DetectNodeCanDelete="detect-node-can-delete",e.Obituary="session-obituary",e.RPOfflineDemo="downloadRPOfflinePreviewDemoZip"}(t.IOEvent||(t.IOEvent={})),function(e){e.PushArtboardPatches="PushArtboardPatches",e.AddNode="AddNode",e.AddArtboard="AddArtboard"}(t.OperationType||(t.OperationType={}))},function(e,t,n){"use strict";e.exports=n(860)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return l.default}});var r=c(n(873)),o=c(n(874)),i=c(n(875)),a=c(n(876)),s=c(n(878)),l=c(n(879));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrlSearch=void 0,t.parseUrlSearch=function(e=window.location.search){const t=e.substring(1).split("&"),n={};return t.forEach(e=>{const t=e.split("=");if(t.length<2)return;const r=t[0];t.shift(),n[r]=t.join("")}),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompTextStyleNameConfig=void 0,t.CompTextStyleNameConfig={"checkbox-group":{entireTextStyleName:"textStyle1",checkedTextStyleName:"textStyle2"},"radio-button-group":{entireTextStyleName:"textStyle1",checkedTextStyleName:"textStyle2"},"segments-control":{entireTextStyleName:"textStyle",checkedTextStyleName:"textStyle2"},selectTab:{entireTextStyleName:"textStyle",checkedTextStyleName:"textStyleChecked"},list:{entireTextStyleName:"textStyle",checkedTextStyleName:"selectTextStyle"},breadCrumbs:{entireTextStyleName:"textStyle",hoverTextStyleName:"hoverTextStyle"},tree:{entireTextStyleName:"textStyle",checkedTextStyleName:"itemCheckedTextStyle"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTextPropertyName=void 0,t.MultiTextPropertyName="multiText"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowPropertyName=void 0,t.ShadowPropertyName="shadow"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PolygonPropertyName=void 0,t.PolygonPropertyName="polygon"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlurPropertyName=t.BlurType=void 0,function(e){e.gaussian="gaussian",e.motion="motion",e.scale="scale",e.background="background"}(t.BlurType||(t.BlurType={})),t.BlurPropertyName="blur"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(18),s=n(28),l=n(68),c=n(84),u=n(16),d=n(48),h=n(104),p=n(36),f=n(172),m=n(76),g=n(207),v=n(50),y=n(55),b=n(380),w=n(106),C=n(75),_=n(920);n(922);class x extends r.Component{constructor(e){super(e),this.dom=r.createRef(),this._focused=!1,this.selRange={focusNode:null,anchorNode:null},this.isDisabledEnter=!1,this.handleUnload=()=>{this.autoSubmit()},this.autoSubmit=()=>{this.props.value!==this.dom.current.innerHTML&&this.doSubmit(!0)},this.execRichTextCommand=(e,t,n,r)=>{a.applyFontStyleToLI(e,t),this.focus();const o=this.getFormat(),i=g.getExecuteCommandName(e);if(["fontSize","foreColor"].includes(i))"foreColor"===i?document.execCommand("foreColor",!1,t):"fontSize"===i&&this.setFontSize(t,n);else{let n,r=!0,a=!1;if(["italic","bold","underline","strike"].includes(e)&&o){n=(o.fontStyle||{})[e],a=!0,t===n&&(r=!1)}r&&document.execCommand(i,!1,t)}document.execCommand("styleWithCSS",!1,"i.e."),n&&this.blur(),r&&r()},this.handlePaste=e=>{e.preventDefault();const{vertical:t}=this.props,{types:n}=e.clipboardData;let r,o=!1;const i=r=e.clipboardData.getData("text/plain");if(n.includes("text/html")&&(r=a.filterHTMLText(e.clipboardData.getData("text/html"),!0,(e,t)=>{delete t["font-size"],delete t["line-height"],delete t["letter-spacing"]},{transformTags:{h1:"p",h2:"p",h3:"p",h4:"p",h5:"p",h6:"p"}}),r=f.clearTextFormatFromClipboard(r,this.props.multi).trim(),document.execCommand("styleWithCSS"),document.execCommand("insertHTML",!0,r)))return o=!0,this.defaultWrap=o,void this.setState({style:Object.assign(Object.assign({},this.state.style),{whiteSpace:"pre-wrap",wordWrap:"break-word"})});n.includes("text/plain")&&(r=i,o=i.length>200,document.execCommand("insertText",!1,r)),o&&(this.defaultWrap=!0,this.lockedSize=!0,t?this.defaultSize.height=Math.max(this.defaultSize.height,300):this.defaultSize.width=Math.max(this.defaultSize.width,300))},this.doCalculateSizeWithOnlyOneLineText=()=>{const e=this.dom.current.innerHTML,{autoSize:t,vertical:n}=this.props,r=Object.assign(Object.assign({},this.state.style),{whiteSpace:this.defaultWrap?"pre-wrap":"nowrap"});if(t){delete r.width,delete r.height;const{width:t,height:o}=a.measureTextSize(r,e,{isMultiText:!0,wrap:this.defaultWrap,isRich:!0,editing:!0,defaultWidth:!n&&this.lockedSize?this.defaultSize.width:void 0,defaultHeight:n&&this.lockedSize?this.defaultSize.height:void 0});this.defaultWrap?(n?(r.width="auto",r.height=Math.max(o,this.originalSize.height),r.minHeight=Math.max(o,this.originalSize.height)/y.FontBoxScale):(r.width="auto",r.minWidth=Math.max(t,this.originalSize.width)/y.FontBoxScale,r.height="auto"),r.whiteSpace="nowrap",r.wordWrap="break-word"):(r.whiteSpace="nowrap",r.wordWrap="normal"),n&&(r.right=0,delete r.left,r.position="absolute"),this.defaultSize={width:Math.max(t,this.originalSize.width),height:Math.max(o,this.originalSize.height)},this.setState({style:r})}else r.whiteSpace="pre-wrap"},this.handleValueChange=()=>{this.isComposition||(this.isDisabledEnter||this.doRecordSelection(),this.timeID&&clearTimeout(this.timeID),this.timeID=window.setTimeout(()=>{this.doCalculateSizeWithOnlyOneLineText()}))},this.isComposition=!1,this.handleCompositionStart=()=>{this.isComposition=!0},this.handleCompositionEnd=()=>{this.isComposition=!1,this.doCalculateSizeWithOnlyOneLineText()},this.doSubmit=e=>{var t,n,r,o;this._focused=e||!1;const s=a.replaceOldFontSize(this.dom.current.innerHTML,"in"),{onValueChanged:l}=this.props;l&&l(s,{},e),!e&&(null===(t=document.getSelection())||void 0===t||t.empty());const c=this.props.ownerComp.textFormat;if(!c)return;const d=v.upgradeTextFormatForApply(Object.assign({},c),s);i.isEqual(c,d)||(d.color&&(d.color=u.transColorToRGBA(d.color)),null===(r=null===(n=this.context)||void 0===n?void 0:n.coreEditor)||void 0===r||r.setProperty(h.TextFormatExPropertyName,d)),null===(o=this.context)||void 0===o||o.uiManager.updateTextFormat()},this.handleMouseUp=e=>{this.doRevertEditable(),e.stopPropagation(),this.doSelectedChanged()},this.handleWindowMouseUp=()=>{this.dom.current&&(this.dom.current.isContentEditable||(this.doRecordSelection(),this.doSelectedChanged()))},this.handleWindowMouseDown=e=>{var t,n;const r=this.dom.current;if(r){if(r.contains(e.target))return;const o=s.create(r.getBoundingClientRect()),{pageX:i,pageY:a}=e;if(s.isContainerPoint(o,{left:i,top:a}))return void e.stopPropagation();const l=null===(t=this.context)||void 0===t?void 0:t.coreEditor;if(l&&"line"!==(null===(n=l.firstSelectedComponent)||void 0===n?void 0:n.type)){const t=r.parentElement,n=s.create(t.getBoundingClientRect());if(s.isContainerPoint(n,{left:i,top:a}))return void e.stopPropagation()}let c=document.querySelector(".right-panel");if(c){const t=c.getBoundingClientRect();if(s.isContainerPoint(t,{left:e.pageX,top:e.pageY}))return}if(c=document.querySelector(".resource-libraries-group-list"),c){const t=c.getBoundingClientRect();if(s.isContainerPoint(t,{left:e.pageX,top:e.pageY}))return}if(c=document.querySelector(".popup-with-body"),c&&c.contains(e.target))return;if(c=document.querySelector(".dsm-c-rp-color-collector"),c&&c.contains(e.target))return;this.doSubmit()}},this.doClearCommand=()=>{const e=document.getSelection();e&&0===e.focusOffset&&0===e.anchorOffset&&(document.execCommand("outdent",!1),"true"===document.queryCommandValue("insertOrderedList")&&document.execCommand("insertOrderedList",!1),"true"===document.queryCommandValue("insertUnorderedList")&&document.execCommand("insertUnorderedList",!1))},this.handleKeyUp=e=>{e.keyCode===p.default.VK_TAB&&e.preventDefault()},this.lastEnterKeyTime=0,this.handleKeyDown=e=>{e.keyCode===p.default.VK_TAB&&(e.preventDefault(),e.shiftKey?this.doOutdent():this.doIndent()),window.clearTimeout(this.timeout);const t=this.isSelected;if(this.timeout=window.setTimeout(()=>{t!==this.isSelected&&this.doSelectedChanged()},10),e.stopPropagation(),m.stopBubbleWhenSortCut(e),this.isDisabledEnter)return;const n=c.isControlKeyPressed(e),r=e.altKey,o=c.convertEventToHotKey(e);if(this.changeFormatWithHotKey(o),this.props.wrap||n||r||e.keyCode!==p.default.VK_ENTER||(this.defaultWrap=!0,this.lockedSize=!0),(e.keyCode===p.default.VK_ESCAPE||!r&&n&&e.keyCode===p.default.VK_ENTER)&&this.doSubmit(),!n&&!r&&e.keyCode===p.default.VK_ENTER){const e=Date.now();e-this.lastEnterKeyTime>5e3&&(this.doSubmit(!0),this.lastEnterKeyTime=e,this.interval||this.doStartAutoSave())}this.props.useInTable&&"alt+enter"===o&&document.execCommand("InsertParagraph"),e.keyCode===p.default.VK_BACKSPACE&&this.doClearCommand(),e.shiftKey&&e.keyCode===p.default.VK_TAB&&document.execCommand("outdent",!1)},this.handleFontSizeKeyUp=()=>{this.isDisabledEnter=!1,this.setContentEditable("true"),this.focus()},this.handleFocus=()=>{this._focused=!0,this.doShowCustomCaret()},this.handleBlur=e=>{this.doCheckSelection(),e.preventDefault(),this._focused=!1,this.doHideCustomCaret()},this.handleSelect=()=>{var e;this.doRecordSelection(),null===(e=this.context)||void 0===e||e.uiManager.updatePropertiesPanel()},this.doRecordSelection=()=>{const e=document.getSelection();e.isCollapsed||(this.selRange.anchorNode=e.anchorNode,this.selRange.focusNode=e.focusNode,this.selRange.anchorOffset=e.anchorOffset,this.selRange.focusOffset=e.focusOffset)},this.handleMouseDown=e=>{e.button===C.MouseButton.Right&&e.stopPropagation(),document.getSelection().removeAllRanges(),l.dragDelegate(()=>{},()=>{this.doRevertEditable()})},this.handleContextMenu=e=>{e.preventDefault(),e.stopPropagation()},this.defaultWrap=e.wrap,this.lockedSize=!0===this.defaultWrap;const{size:t}=e.ownerComp;this.defaultSize=Object.assign({},t),this.originalSize=Object.assign({},t);let n=t.height;e.onlyText||(n=void 0),this.state={style:e.style,value:e.value,height:n}}componentDidMount(){var e;window.addEventListener("mousedown",this.handleWindowMouseDown,!0),window.addEventListener("mouseup",this.handleWindowMouseUp),window.addEventListener("beforeunload",this.handleUnload),this.doFocusWhenCreated(),this.doStartAutoSave(),this.context.uiManager.textEditor=this,null===(e=this.context)||void 0===e||e.uiManager.showRichTextProperties(!0)}componentWillUnmount(){var e;window.removeEventListener("mousedown",this.handleWindowMouseDown,!0),window.removeEventListener("mouseup",this.handleWindowMouseUp),window.removeEventListener("beforeunload",this.handleUnload),this.timeID&&clearTimeout(this.timeID),this.interval&&(clearInterval(this.interval),this.interval=void 0),this.context.uiManager.textEditor=void 0,null===(e=this.context)||void 0===e||e.uiManager.showRichTextProperties(!1)}UNSAFE_componentWillReceiveProps(e){const{style:t}=e;let n=t;this.defaultWrap&&(n=this.state.style),this.setState({style:n})}doStartAutoSave(){this.props.useInTable||this.props.autoSave&&(this.interval=window.setInterval(()=>{this.autoSubmit()},3e4))}doFocusWhenCreated(){setTimeout(()=>{var e;if(!this.dom.current)return;null===(e=this.dom.current)||void 0===e||e.focus(),this._focused=!0;const t=document.getSelection();null==t||t.selectAllChildren(this.dom.current)},100)}focus(){var e,t;this.setContentEditable("true"),this._focused=!0;const n=document.getSelection(),{anchorOffset:r,anchorNode:o,focusOffset:i,focusNode:a}=this.selRange;if(n&&o&&a){null===(e=this.dom.current)||void 0===e||e.focus();const t=r||0,s=i||0;if(s<=a.textContent.length&&t<=o.textContent.length)if("function"==typeof n.setBaseAndExtent)n.setBaseAndExtent(o,t,a,s);else if("function"==typeof n.addRange){const e=document.createRange();e.setStart(o,t),e.setEnd(a,s),n.removeAllRanges(),n.addRange(e)}}else null===(t=this.dom.current)||void 0===t||t.focus()}blur(){var e;this._focused=!1,null===(e=this.dom.current)||void 0===e||e.blur()}doHideCustomCaret(){this.setState({customCaret:!1})}doShowCustomCaret(){this.setState({customCaret:!0})}get focused(){return this._focused}get isSelected(){const e=document.getSelection();if(e){if(e.isCollapsed)return!1;let t=e.focusNode;if(t){t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);let e=t;if(this.dom.current.contains(e)||e===this.dom.current)return!0}}return!1}getFormat(){document.execCommand("styleWithCSS");let e=28;const t=document.getSelection();if(t){let n=t.focusNode;if(n){n===this.dom.current&&this.dom.current.childElementCount>0&&(n=this.dom.current.firstChild),n.nodeType===Node.TEXT_NODE&&(n=n.parentNode);let t=n;for(;!t.style.getPropertyValue("font-size")&&!t.hasAttribute("contenteditable");){if(!(null==t?void 0:t.parentElement)){t=void 0;break}t=t.parentElement}const r=null==t?void 0:t.style.getPropertyValue("font-size");r&&(e=parseInt(r.replace("px",""),10))}}let n=d.TextAlign.left;return document.queryCommandState("justifyRight")?n=d.TextAlign.right:document.queryCommandState("justifyCenter")?n=d.TextAlign.center:document.queryCommandState("justifyFull")&&(n=d.TextAlign.justify),{fontStyle:{italic:document.queryCommandState("italic"),bold:document.queryCommandState("bold"),underline:document.queryCommandState("underline"),strike:document.queryCommandState("strikeThrough")},orderList:document.queryCommandState("insertOrderedList"),unOrderList:document.queryCommandState("insertUnorderedList"),color:document.queryCommandValue("foreColor"),fontSize:e,textAlign:n,fontFamily:document.queryCommandValue("fontName").replace(/"/g,"")}}resetFontSize(e){var t,n;this.focus();const r=this.getFormat(),{fontSize:o}=r,{textFormat:i}=null===(n=null===(t=this.context)||void 0===t?void 0:t.coreEditor)||void 0===n?void 0:n.firstSelectedComponent,s=null==i?void 0:i.lineHeightEx;let l=o;l="increase"===e?Math.min(300,o+1/y.FontBoxScale):Math.max(y.MinRichTextSize/y.FontBoxScale,o-1/y.FontBoxScale),a.execCommandFontSize(".rich-text-editor",l,s)}changeFormatWithHotKey(e){"ctrl+["===e?this.resetFontSize("decrease"):"ctrl+]"===e&&this.resetFontSize("increase"),["ctrl+b","ctrl+u","ctrl+i","ctrl+[","ctrl+]"].includes(e)&&setTimeout(()=>{this.doSelectedChanged()},10)}setFontSize(e,t){var n,r;window.addEventListener("keyup",this.handleFontSizeKeyUp,{once:!0});const o=null===(r=null===(n=this.context)||void 0===n?void 0:n.coreEditor)||void 0===r?void 0:r.firstSelectedComponent;if(o){const{textFormat:t}=o;a.execCommandFontSize(".rich-text-editor",e,null==t?void 0:t.lineHeightEx),this.doRecordSelection()}t&&this.setContentEditable("false"),this.isDisabledEnter=!!t,this.focus()}setContentEditable(e){this.dom.current&&(this.dom.current.contentEditable=e)}getNewStyle(e,t,n){let r=g.getCSSAttributeName(e),o=g.getCSSAttributeValue(e);return["underline","strike"].includes(e)?a.getNewCSSStyle(r,o,n,e=>this.getTextDecoration(e,o,t)):a.getNewCSSStyle(r,t?o:"",n)}getTextDecoration(e,t,n){const r=e.includes(t);return n?r?t:`${e} ${t}`:r?e.replace(t,""):""}removeFontStyle(e){var t;const n=document.getSelection();if(!(null==n?void 0:n.rangeCount))return;const r=n.getRangeAt(0),o=r.extractContents(),a=[];o.childNodes.forEach(e=>{a.push(e)});let s=r.commonAncestorContainer,l=null;1!==s.nodeType&&(l=s,s=s.parentElement);let c=0;const u=g.getCSSAttributeValue(e);for(;s;){const n=((null===(t=s.getAttribute("style"))||void 0===t?void 0:t.replace("transform",""))||"").includes(u);if(1===(null==l?void 0:l.nodeType)){const t=l,r=t.getAttribute("style"),o=this.getNewStyle(e,n,r);t.setAttribute("style",o)}let r=0;for(;r<s.childNodes.length;){const t=s.childNodes.item(r);if(r++,!i.isEqual(t,l))if(1===t.nodeType){const n=t;if(""===n.innerText)null==s||s.replaceChild(document.createTextNode(""),n);else{const t=n.getAttribute("style"),r=this.getNewStyle(e,!0,t);n.setAttribute("style",r)}}else if(t.nodeValue){const n=document.createElement("span"),r=this.getNewStyle(e,!0,"");n.setAttribute("style",r),n.innerText=t.nodeValue,r&&(null==s||s.replaceChild(n,t))}}if(this.isRichEditor(s)||c>50)break;c++,l=s,s=l.parentElement}a.forEach(t=>{var n;if(1===t.nodeType){const r=t,o=r.getAttribute("style"),i=this.getNewStyle(e,!1,o);if(i)r.setAttribute("style",i);else{const e=document.createTextNode(r.innerText);null===(n=t.parentElement)||void 0===n||n.replaceChild(e,t)}}})}isRichEditor(e){var t;return 1===e.nodeType&&(null===(t=e.className)||void 0===t?void 0:t.includes("rich-text-editor"))}cancel(){this.doSubmit()}doSelectedChanged(){const{onSelectChanged:e}=this.props;e()}doRevertEditable(){this.dom.current&&!this.dom.current.isContentEditable&&(this.doRecordSelection(),this.setContentEditable("true"),setTimeout(()=>{this.focus()}))}doIndent(){const e=document.getSelection();if(!(null==e?void 0:e.rangeCount))return;const t=e.getRangeAt(0);t.collapsed?document.execCommand("insertHTML",!1," "):t.collapse()}doOutdent(){const e=document.getSelection();if(!(null==e?void 0:e.rangeCount))return;const t=e.getRangeAt(0),n=t.commonAncestorContainer;if(t.collapsed){a.execCommandOutdent(n);const{nodeType:e,innerText:t,nodeName:r,nodeValue:o}=n;(1===e&&!t&&"SPAN"===r||3===e&&!o)&&n.remove()}else t.collapse()}doCheckSelection(){const e=document.getSelection();e&&this.selRange.anchorNode&&0===e.rangeCount&&this.focus()}renderCustomCaret(){const{style:{textAlign:e,color:t},customCaret:n}=this.state;if(!n)return null;const{vertical:o,ownerComp:{rotateRelativeToArtboard:i}}=this.props;return this.canCustomCaret()?r.createElement(_.default,{rotate:i,color:t,vertical:o,textAlign:e}):null}canCustomCaret(){return!1}render(){const{className:e,onlyText:t,vertical:n}=this.props,i=Object.assign({},this.state.style),s=a.replaceOldFontSize(this.state.value,"out");return r.createElement(r.Fragment,null,r.createElement("div",{ref:this.dom,className:o.default(e,"rich-text-editor",{"only-text":t,vertical:n,"no-wrap":!this.defaultWrap,"custom-caret":this.canCustomCaret()}),style:Object.assign(Object.assign({},i),{cursor:`url(${b.Cursors.DrawText}) 12 12, text`}),contentEditable:!0,onInput:this.handleValueChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onPaste:this.handlePaste,onSelect:this.handleSelect,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onContextMenu:this.handleContextMenu,dangerouslySetInnerHTML:{__html:s}}),this.renderCustomCaret())}}t.default=x,x.contextType=w.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeIcon=void 0;const r=n(0),o=n(7),i=n(16),a=n(20),s=n(14),l=n(50),c=n(42),u=n(33),d=n(6);var h=s.StyleHelper.initCSSStyleParser;t.makeIcon=function(e,t){return u.makeCommonComponent(e,d.CIcon,Object.assign({size:{width:c.default.lastIconSize,height:c.default.lastIconSize,lockedRatio:!0},properties:{shadow:Object.assign(Object.assign({},l.getDefaultShadow()),{disabled:!0}),icon:{color:a.DefaultIconColor}},states:{disabled:{enabled:!1,opacity:30}}},t))};class p extends r.Component{constructor(e){super(e),this.doParsePropertiesToStyle=e=>{const{size:t,properties:n,value:r,opacity:a}=e.comp,{width:s,height:l}=t,c=Math.min(s,l),u=Math.max(12,c),d=h(n),p=Object.assign(Object.assign({fontFamily:r&&r.fontName||"",fontSize:u,lineHeight:u+"px",textAlign:"center",color:n.icon?i.parseColorToString(n.icon.color):"#000",transition:e.comp.getTransition()},d.getTextShadow()),{width:s,height:l});let f=1;return c<12&&(f=c/12,p.width=p.height=12,p.transform=`scale(${f})`,p.transformOrigin="0 0"),o.isUndefined(a)?p.opacity=1:p.opacity=a/100,p};const{value:t}=e.comp;this.state={style:this.doParsePropertiesToStyle(e),value:t?String.fromCharCode(t.iconCode):""},this.param=this.getParams(e)}getParams(e){const{size:t,properties:n,value:r,opacity:i,version:a}=e.comp,s=e.comp.getTransition();return{size:o.cloneDeep(t),properties:o.cloneDeep(n),value:o.cloneDeep(r),transition:s,opacity:i,version:a}}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{o.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=o.cloneDeep(t[e]))}),n}UNSAFE_componentWillReceiveProps(e){this.setState({style:this.doParsePropertiesToStyle(e),value:e.comp.value?String.fromCharCode(e.comp.value.iconCode):""})}render(){const{comp:e}=this.props;return 0===e.opacity?null:r.createElement("div",{className:"lib-comp-icon",style:Object.assign(Object.assign({},this.state.style),{transition:e.getTransition()})},this.state.value)}}t.default=p},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=s.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,u=0,d=[],h=n(937);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(b(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(b(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function m(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=l(e.insertAt.before,n);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=c||(c=v(t)),r=_.bind(null,n,a,!1),o=_.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),m(e,t),t}(t),r=S.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=x.bind(null,n),o=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return p(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}e&&p(f(e,t),t);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var w,C=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=C(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function S(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=h(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(941);class i extends r.PureComponent{constructor(e){super(e)}getBadgeTranslate(e){if(!e)return;let[t,n]=e;return t=t||0,n=n||0,"number"==typeof t&&(t+="px"),"number"==typeof n&&(n+="px"),`translate(${t}, ${n})`}renderBadgeItem(){const{dot:e,dotSize:t,position:n,dotPosition:i,size:a,count:s,offset:l,dotOffset:c,onClick:u}=this.props,d={};return s?(d.minWidth=a,d.height=a,d.borderRadius=a,d.transform=this.getBadgeTranslate(l),r.createElement("span",{className:o.default("dsm-c-rp-badge-item count",n),style:d,onClick:u},s)):e?(d.transform=this.getBadgeTranslate(c),r.createElement("span",{className:o.default("dsm-c-rp-badge-item dot",t,i),style:d,onClick:u})):null}render(){const{className:e,children:t}=this.props;return r.createElement("div",{className:o.default(e,"dsm-c-rp-badge")},t,this.renderBadgeItem())}}i.defaultProps={dotSize:"default",dotPosition:"right-top",position:"right-top"},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(76),s=n(36);n(943);class l extends r.PureComponent{constructor(e){super(e),this.dom=r.createRef(),this.isEscKey=!1,this._focused=!1,this.isComposition=!1,this.isCreated=!1,this.validateData=e=>{const{value:t,onCheck:n}=this.props;let r=e;return n&&!n(r)?t||"":r},this.doApplyValueToState=e=>{const{onCheck:t}=this.props,n=this.doFilterValue(e);this.setState({inputValue:n,currentLength:n.length},()=>{this.isComposition||t&&!t(e)||this.doNeedChange()})},this.handleInputChanged=e=>{const{value:t}=e.target,{onValidate:n}=this.props,r=n?n(t):t;this.doApplyValueToState(r)},this.doNeedChange=e=>{const{onChange:t,value:n}=this.props;let r=e||this.state.inputValue;t&&void 0!==r&&n!==r&&t(r)},this.handleKeyDown=e=>{9!==e.keyCode&&e.stopPropagation(),a.stopBubbleWhenSortCut(e);const t=e.keyCode,{onKeyDown:n,onEnter:r,submitWithBlur:o}=this.props;if(this.isEscKey=!1,t===s.default.VK_ENTER)r&&r(this.state.inputValue),this.dom.current&&this.blur();else if(t===s.default.VK_ESCAPE&&(this.isEscKey=!0,this.dom.current&&(this.blur(),o)))return;n&&n(e)},this.handleKeyUp=e=>{e.stopPropagation(),this.props.onKeyUp&&this.props.onKeyUp(e)},this.handlePaste=e=>{var t,n;const r=e.clipboardData.getData("text");if(r&&this.props.filterChar&&(e.preventDefault(),e.clipboardData)){const{maxlength:e}=this.props;let o=r;const a=this.domValue;if(a){const e=null===(t=this.dom.current)||void 0===t?void 0:t.selectionStart,r=null===(n=this.dom.current)||void 0===n?void 0:n.selectionEnd;i.isNumber(e)&&i.isNumber(r)&&(o=a.substring(0,e)+o+a.substring(r))}o=this.doFilterValue(o),e&&(o=o.substring(0,6)),o&&this.setState({inputValue:o})}},this.handleFocus=e=>{this._focused=!0;const{onFocus:t}=this.props,n=Object.assign({},e);this.setState({isFocus:!0},()=>{t&&t(n),this.props.autoSelectWhenFocus&&this.select()})},this.handleBlur=e=>{if(!this.isCreated)return;this._focused=!1;let{value:t}=e.target;t=this.doFilterValue(t);const{value:n,onBlur:r,submitWithBlur:o,canEmpty:i,allowAutoFixMinValue:a}=this.props;if(this.setState({isFocus:!1}),!i&&!a&&!t.trim())return this.setState({inputValue:n||"",currentLength:(n||"").length}),void(r&&r(n||""));!this.isEscKey||o?(t=this.validateData(t),this.setState({inputValue:t,currentLength:t.length}),this.doNeedChange(t),r&&r(t,this.isEscKey)):(this.setState({inputValue:n||"",currentLength:(n||"").length}),r&&r(n||"",!0))},this.handleCompositionStart=()=>{this.isComposition=!0},this.handleCompositionEnd=()=>{if(this.isComposition){const e=this.domValue||"";this.doApplyValueToState(e)}this.isComposition=!1},this.handleMouseDown=e=>{const{onMouseDown:t}=this.props;t&&t(e)},this.handleContextMenu=e=>{const{onContextMenu:t}=this.props;t&&t(e)},this.focus=()=>{var e;this.isEscKey||null===(e=this.dom.current)||void 0===e||e.focus()},this.blur=()=>{var e;null===(e=this.dom.current)||void 0===e||e.blur(),this.timeID=window.setTimeout(()=>{this.isEscKey=!1},15)},this.select=()=>{var e;null===(e=this.dom.current)||void 0===e||e.select()};let t=this.doFilterValue(e.value||"");this.state={inputValue:t||"",currentLength:(t||"").length,isFocus:!1}}get domValue(){var e;return null===(e=this.dom.current)||void 0===e?void 0:e.value}set domValue(e){this.dom.current&&(this.dom.current.value=e||"")}getBoundingClientRect(){return this.dom.current.getBoundingClientRect()}componentDidMount(){this.resetFocus()}UNSAFE_componentWillReceiveProps(e){if(e.value!==this.props.value){let t=this.doFilterValue(e.value||"");this.setState({inputValue:t||"",currentLength:(t||"").length})}}componentWillUnmount(){if(this.state.isFocus){const e=this.domValue||"",{value:t,onChange:n,onBlur:r}=this.props,o=this.validateData(e);n&&void 0!==o&&t!==o&&n(o),r&&void 0!==o&&r(o,this.isEscKey)}window.clearTimeout(this.timeID)}resetFocus(){const{autoFocus:e,autoSelectWhenFocus:t}=this.props;e?(this.focus(),setTimeout(()=>{t&&this.select(),this.isCreated=!0},30)):setTimeout(()=>{this.isCreated=!0},30)}doFilterValue(e){const{filterChar:t}=this.props;return e&&t?e.split("").filter(e=>-1!==t.indexOf(e)).join(""):e}get value(){return this.state.inputValue||""}get focused(){return this._focused}render(){const{inputValue:e,currentLength:t,isFocus:n}=this.state,{width:i,disabled:a,readOnly:s,className:l,style:c,textAlign:u,fontSize:d,placeHolder:h,them:p,maxlength:f,isShowLengthTips:m,prefix:g,suffix:v,colorTheme:y,type:b,name:w,onDoubleClick:C}=this.props,_=Object.assign({},c||{});return i&&(_.width=i),r.createElement("div",{className:o.default("dsm-c-rp-input",l,y,{"no-border":"no-border"===p,"no-border-padding":"no-border-padding"===p,"has-border":"has-border"===p,readOnly:s,disabled:a,focus:n}),style:_,onDoubleClick:C,onClick:e=>{e.stopPropagation(),this.focus()}},g&&r.createElement("span",{className:"input-prefix"},g),r.createElement("input",{className:o.default({"no-border":"no-border"===p,"no-border-padding":"no-border-padding"===p}),name:w,ref:this.dom,defaultValue:this.props.defaultValue,readOnly:s,disabled:a,placeholder:h||"",type:b||"text",draggable:!1,maxLength:f,value:e,onPaste:this.handlePaste,onChange:this.handleInputChanged,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu,style:{textAlign:u,fontSize:d},onClick:e=>{e.stopPropagation()}}),v&&r.createElement("span",{className:"input-suffix"},v),f&&n&&m&&r.createElement("span",{className:"input-lenth"},t,"/",f))}}l.defaultProps={readOnly:!1,disabled:!1,them:"normal",autoFocus:!1,autoSelectWhenFocus:!1,isShowLengthTips:!1,canEmpty:!0},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.larkAppLink=t.larkPC=void 0,t.larkPC=-1!==window.navigator.userAgent.indexOf("LarkLocale"),t.larkAppLink="https://applink.feishu.cn"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleTypeArray=t.ModuleType=void 0,function(e){e.Design="design"}(t.ModuleType||(t.ModuleType={})),t.ModuleTypeArray=["design"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=new class{constructor(){this.snapshotPages=null,this._fromConfirm=!1}get pages(){return this.snapshotPages}set pages(e){this.snapshotPages=e}get isFromConfirm(){return this._fromConfirm}set isFromConfirm(e){this._fromConfirm=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeVideo=t.VideoConfig=void 0;const r=n(0),o=n(2),i=n(7),a=n(33),s=n(6),l=n(4),c=n(6);n(1052);const u=n(10);t.VideoConfig={type:c.CVideo,name:l.default("resource.components.video"),thumb:{spriteIconClass:u.SpriteThumb.Video.className,dragPosition:u.SpriteThumb.Video.position}},t.makeVideo=function(e,t="",n="",r={width:300,height:300}){return a.makeCommonComponent(e,s.CVideo,{name:n,properties:{controls:{name:l.default("property.propertyNames.controls"),prop:"boolean",value:!0},autoPlay:{name:l.default("property.propertyNames.autoPlay"),prop:"boolean",value:!1}},size:{width:r.width,height:r.height,lockedRatio:!0},value:t})};class d extends r.Component{constructor(e){super(e),this.videoDom=r.createRef(),this.state={value:e.comp.value},this.param=this.getParams(e)}getParams(e){const{comp:{size:t,properties:n,value:r,opacity:o,version:a},isPreview:s}=e,l=e.comp.getTransition();return{size:i.cloneDeep(t),properties:i.cloneDeep(n),value:i.cloneDeep(r),opacity:o,isPreview:s,transition:l,version:a}}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{i.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=i.cloneDeep(t[e]))}),n}componentDidUpdate(e){var t;this.state.value!==e.comp.value&&(null===(t=this.videoDom.current)||void 0===t||t.load(),this.setState({value:e.comp.value}))}render(){const{comp:e,isPreview:t}=this.props,{properties:n,disabled:a,size:s}=e,c=!(!n.controls||!n.controls.value),u=!(!n.autoPlay||!n.autoPlay.value),d=Object.assign({},s);return d.transition=e.getTransition(),d.opacity=i.isUndefined(e.opacity)?1:e.opacity/100,r.createElement("div",{className:o.default("lib-comp-video",{empty:!e.value}),style:d},!e.value&&!t&&r.createElement("div",{className:"default-view"},r.createElement("p",{className:"lib-comp-video-nothing"},l.default("tips.doubleClickUploadVideo"))),e.value&&r.createElement("video",{className:"compatible",autoPlay:t&&u&&!a,controls:t&&c,playsInline:!0,"x5-video-player-type":"h5-page",ref:this.videoDom},r.createElement("source",{src:e.value,type:"video/mp4"})))}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderMarker=void 0;const r=n(0),o=n(105),i=n(23);t.renderMarker=e=>{const{line:t,strokeInfo:n,compID:o,scale:i}=e;if(!t||0===n.strokeWidth)return null;const{startPointType:s,startArrow:l,endArrow:c,endPointType:u}=t;if(!c&&!l)return null;const d=l?a(s,n,i,!1):void 0,h=c?a(u,n,i,!0):void 0;return r.createElement("defs",null,!!d&&r.createElement("marker",{id:o+"-start-marker",markerWidth:d.markW,markerHeight:d.markH,refX:d.refX,refY:d.refY,orient:"auto",markerUnits:"strokeWidth",style:{overflow:"visible"}},d.el),!!h&&r.createElement("marker",{id:o+"-end-marker",markerWidth:h.markW,markerHeight:h.markH,refX:h.refX,refY:h.refY,orient:"auto",markerUnits:"strokeWidth",style:{overflow:"visible"}},h.el))};const a=(e,t,n,a)=>{if(!e||0===t.strokeWidth)return;const{stroke:s}=t;switch(e||o.LinePointType.solidArrow){case o.LinePointType.solidArrow:{const e=a?"M8 4 L0 0 L2 4 L0 8z":"M0 4 L8 0 L6 4 L8 8z",n=a?2:6,o=4;return{el:r.createElement("path",{d:e,stroke:s,fill:s,strokeWidth:0,strokeLinejoin:t.strokeLinejoin===i.StrokeLineJoin.Round?"round":"miter"}),refX:n,refY:o,markW:8,markH:8}}case o.LinePointType.hollowArrow:{const e=a?"M0 0 L8 4 L0 8":"M8 0 L0 4 L8 8",n=a?7:1,o=4;return{el:r.createElement("path",{d:e,stroke:s,fill:"none",strokeWidth:1,strokeLinecap:t.strokeLinecap,strokeLinejoin:t.strokeLinejoin}),refX:n,refY:o,markW:8,markH:8}}case o.LinePointType.solidDot:{const e=a?0:8,t=4;return{el:r.createElement("circle",{r:4,cx:4,cy:4,stroke:"none",fill:s}),refX:e,refY:t,markW:8,markH:8}}case o.LinePointType.hollowDot:{const e=a?0:8,t=4;return{el:r.createElement("circle",{r:3.5,cx:4,cy:4,stroke:s,strokeWidth:1,fill:"none"}),refX:e,refY:t,markW:8,markH:8}}case o.LinePointType.solidCube:{const e=a?0:8,n=4;return{el:r.createElement("rect",{x:0,y:0,width:8,height:8,fill:s,stroke:"none",strokeLinejoin:t.strokeLinejoin}),refX:e,refY:n,markW:8,markH:8}}case o.LinePointType.hollowCube:{const e=a?0:8,n=4;return{el:r.createElement("rect",{x:.5,y:.5,width:7,height:7,stroke:s,strokeWidth:1,fill:"none",strokeLinejoin:t.strokeLinejoin}),refX:e,refY:n,markW:8,markH:8}}case o.LinePointType.perpendicular:{const e=4,n=4;return{el:r.createElement("line",{x1:4,x2:4,y1:0,y2:8,stroke:s,strokeWidth:1,strokeLinecap:t.strokeLinecap}),refX:e,refY:n,markW:8,markH:8}}default:return}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeKeyboard=t.initialKeyboardSize=t.KeyboardConfig=void 0;const r=n(32),o=n(4),i=n(50),a=n(10),s=n(33),l=n(6);t.KeyboardConfig={type:l.CKeyboard,thumb:{spriteIconClass:a.SpriteThumb.Keyboard.className,dragPosition:a.SpriteThumb.Keyboard.position},name:o.default("resource.components.keyboard"),property:{getValueNames:function(e){if("keyboard"===e)return[{value:"letter",name:o.default("property.component.keyboard.letter")},{value:"numeric",name:o.default("property.component.keyboard.numeric")},{value:"symbol",name:o.default("property.component.keyboard.symbol")}]}},initialization:(e,t,n)=>{if((null==n?void 0:n.isArtboard)&&("phone"===e||"pad"===e)){const{height:e}=t.size,{height:r,width:o}=n.size;t.position.y=r-e,t.position.x=0,t.size.width=o}}},t.initialKeyboardSize={width:375,height:200},t.makeKeyboard=function(e){return s.makeCommonComponent(e,l.CKeyboard,{size:t.initialKeyboardSize,properties:{keyboard:{prop:"enum",name:o.default("property.propertyNames.keyboard"),value:"letter",disabled:!1},fill:{name:o.default("property.propertyNames.bgcolor"),type:r.FillType.solid,color:{r:221,g:221,b:221,a:1},disabled:!0},buttonColor:{prop:"fill",name:o.default("property.propertyNames.buttonColor"),type:r.FillType.solid,color:{r:255,g:255,b:255,a:1},disabled:!1},featureButtonColor:{prop:"fill",name:o.default("property.propertyNames.featureButtonColor"),type:r.FillType.solid,color:{r:250,g:250,b:250,a:1},disabled:!1},forgetColor:{prop:"color",name:o.default("property.propertyNames.fontColor"),value:{r:0,g:0,b:0,a:1},disabled:!1},shadow:i.getDefaultShadow()}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(7),s=n(8),l=n(46),c=n(53),u=n(42),d=n(86),h=n(85),p=n(24),f=n(106),m=n(379),g=n(6),v=n(1184),y=n(1185);n(1219);const b=n(29);class w extends r.Component{constructor(e){var t;super(e),this.focused=!1,this.isList=!1,this.updateUI=e=>{if(e){const{comp:e,scale:t,offsetX:n,offsetY:r}=this.props,o=e.getWrapperStyle({x:n||0,y:r||0},{x:t||1,y:t||1},t||1,!0),i=Object.assign(Object.assign({},this.state.style),o);this.setState({style:i})}else this.forceUpdate()},this.handleWindowScroll=()=>{this.calculateGlobalPoint()},this.parserStyle=e=>{var t,n;const{comp:r,isPreview:o,index:i,isParentActivated:s,scale:l,valueEditing:c}=e,{_scale:d,_animation:h,properties:{outline:p}}=r;let f=l?{x:l,y:l}:{x:1,y:1};o&&!a.isUndefined(d)&&(f={x:f.x*d.x,y:f.y*d.y});const m=r.getWrapperStyle({x:e.offsetX||0,y:e.offsetY||0},f,l||1);if(!o&&!s){const t=e.isCMDPressed&&!this.props.comp.isInSuchParent(e=>e.isSealed||e.isSymbol);m.pointerEvents=t?"unset":"none"}return m.transition=r.getTransition(),h&&(m.animationIterationCount=h.animationIterationCount,m.animationTimingFunction=h.timing,m.animationDuration=(h.duration||1)+"ms",m.animationFillMode=""+(h.name?"forwards":"")),o&&r.hidden&&(m.opacity=0),m.zIndex=null!==(n=null===(t=r.dynamicInfo)||void 0===t?void 0:t.zIndex)&&void 0!==n?n:i,r.type===g.CTable&&c&&!o&&(m.zIndex=r.parent.components.length+1),r.isConnector&&(m.width=0,m.height=0),p&&(m.outline=2/(u.default.scaleValue||1)+"px solid rgba(0,157,255,1)"),m},this.handleClick=e=>{this.doExecuteEventHandle(e,l.EventTypes.click,this.props.onClick)},this.handleDoubleClick=e=>{this.doExecuteEventHandle(e,l.EventTypes.doubleClick,this.props.onDoubleClick)},this.handleMouseDown=e=>{if(c.isMobileDevice())return;const{onMouseDown:t,comp:n,isPreview:r,targetHovered:o}=this.props;!r&&o&&e.stopPropagation(),r&&n.disabled||t&&t(e,n)},this.handleMouseUp=e=>{if(c.isMobileDevice())return;const{isPreview:t,comp:n,onMouseUp:r,targetHovered:o}=this.props;if(this.stopPropagation(e,l.EventTypes.mouseUp),r){if(!t&&o&&e.stopPropagation(),t&&n.disabled)return;r(e,n)}},this.handleTouchStart=e=>{c.isMobileDevice()&&this.doExecuteEventHandle(e,l.EventTypes.mouseDown,this.props.onTouchStart)},this.handleTouchEnd=e=>{c.isMobileDevice()&&this.doExecuteEventHandle(e,l.EventTypes.mouseUp,this.props.onTouchEnd)},this.handleMouseEnter=e=>{const{onMouseEnter:t,comp:n,isPreview:r,targetHovered:o,canConnect:i,valueEditing:a,isParentActivated:s}=this.props;if(!this.needShow)return;if(t){!r&&o&&e.stopPropagation();(!r||r&&!n.disabled)&&t(e,n)}const{mode:l}=this.context;"flow"!==l&&!i||n.isConnector||this.setState({showConnector:!0}),a||n.locked||n.hidden||r||0!==e.buttons||this.setState({hover:s})},this.handleMouseLeave=e=>{if(this.state.hover&&this.setState({hover:!1}),this.focused)return void this.setState({showConnector:!1});const{onMouseLeave:t,comp:n,isPreview:r}=this.props,o=!r||r&&!n.disabled;t&&o&&t(e,n),n.isConnector||n.locked||this.setState({showConnector:!1})},this.handleContextMenu=e=>{const{isPreview:t,comp:n,targetHovered:r,onContextMenu:o}=this.props;if(t){if(n.disabled)return}else e.preventDefault();o&&(this.stopPropagation(e,l.EventTypes.contextMenu),!t&&r&&e.stopPropagation(),o(e,n))},this.handleMouseOver=e=>{e.stopPropagation()},this.handleFocus=e=>{this.focused=!0;const{comp:t,onFocus:n}=this.props;n&&n(e,t)},this.handleBlur=e=>{this.focused=!1;const{comp:t,onBlur:n}=this.props;n&&n(e,t)},this.handleItemMouseEvent=(e,t)=>{const{type:n}=e,{onClick:r,onMouseEnter:o,onMouseLeave:i,onMouseDown:a,onMouseUp:s,onDoubleClick:l,onContextMenu:c,comp:u}=this.props;if(t.disabled||u.disabled||t.hidden||u.hidden)return;let d=void 0;switch(n){case"click":d=r;break;case"mousedown":d=a;break;case"mouseup":d=s;break;case"mouseenter":d=o;break;case"dblclick":d=l;break;case"mouseleave":d=i;break;case"contextmenu":d=c}d&&d(e,t)},this.stopPropagation=(e,t)=>{const{comp:{interactions:n},isPreview:r}=this.props;n[t]&&n[t].actions.length>0&&r&&e.stopPropagation()},this.dom=r.createRef(),this.renderAdditionFlag=e=>r.createElement("i",{className:i.default("flag-item",e+"-flag")}),this.state={hasError:!1,isDragging:!1,style:this.parserStyle(e),showConnector:!1},e.comp.updateComponentView=this.updateUI,this.isList=!!(null===(t=e.comp.libData)||void 0===t?void 0:t.isList),this.isList&&e.isPreview&&(this.itemEvents={onItemContextMenu:this.handleItemMouseEvent,onItemClick:this.handleItemMouseEvent,onItemDoubleClick:this.handleItemMouseEvent,onItemEnter:this.handleItemMouseEvent,onItemLeave:this.handleItemMouseEvent,onItemMouseDown:this.handleItemMouseEvent,onItemMouseUp:this.handleItemMouseEvent,onItemMouseOver:this.handleItemMouseEvent})}UNSAFE_componentWillReceiveProps(e){if(e.comp.updateComponentView=this.updateUI,!this.props.isArtboardChoosingRect){const t=this.parserStyle(e);s.isEqualDate(this.state.style,t)||this.setState({style:t})}}componentDidMount(){const{comp:e,isPreview:t}=this.props;e.updateComponentView=this.updateUI,this.calculateGlobalPoint(),t&&window.addEventListener("scroll",this.handleWindowScroll,{capture:!0})}componentDidUpdate(){this.calculateGlobalPoint()}componentWillUnmount(){this.props.comp.updateComponentView=void 0,window.removeEventListener("scroll",this.handleWindowScroll,{capture:!0})}calculateGlobalPoint(){if(this.props.isPreview){const{comp:e,globalScale:t}=this.props;if(!e.hidden&&e.toJSON()._bringFront){const{left:n,top:r,right:o,bottom:i}=this.dom.current.getBoundingClientRect(),a=(n+o)/2,l=(r+i)/2,{width:c,height:u}=e.size,d=t||1,h=s.round(a-c*d/2),p=s.round(l-u*d/2),{globalPoint:f}=this.state;f&&f.left===h&&f.top===p||this.setState({globalPoint:{left:h,top:p}})}}}shouldComponentUpdate(e,t){return this.isNeedRender(e,t)}isNeedRender(e,t){if(this.props.customValueEditing)return!0;if(this.props.index!==e.index)return!0;if(this.props.isCMDPressed!==e.isCMDPressed)return!0;if(this.props.hidden!==e.hidden)return!0;if(this.props.locked!==e.locked)return!0;if(this.props.revision!==e.revision)return!0;if(this.props.isCMDPressed!==e.isCMDPressed)return!0;const n=e.comp.version;return this.version!==n?(this.version=n,!0):a.isEqual(e.comp.dynamicInfo,this.oldDynamicInfo)?this.props.selectedByOtherWho!==e.selectedByOtherWho||(this.props.isActivated!==e.isActivated||(this.props.isParentActivated!==e.isParentActivated||(!s.sameNumber(this.props.offsetX||0,e.offsetX||0)||(!s.sameNumber(this.props.offsetY||0,e.offsetY||0)||(this.props.targetHovered!==e.targetHovered||(this.props.selected!==e.selected||(this.props.valueEditing!==e.valueEditing||(this.props.selecting!==e.selecting||(this.state.showConnector!==t.showConnector||(!s.sameNumber(this.props.globalScale||1,e.globalScale||1)||(this.state.hover!==t.hover||(this.props.hoverWithSelected!==e.hoverWithSelected||(this.props.forceHover!==e.forceHover||(!(this.props.forceUpdate===e.forceUpdate&&!e.forceUpdate)||(!(!this.props.isPreview||this.state.globalPoint===t.globalPoint)||this.state.style.transform!==t.style.transform))))))))))))))):(this.oldDynamicInfo=a.cloneDeep(e.comp.dynamicInfo),!0)}componentDidCatch(e){console.error(e),this.setState({hasError:!0})}doExecuteEventHandle(e,t,n){const{comp:r,isPreview:o}=this.props;o&&r.disabled||(this.stopPropagation(e,t),n&&(e.nativeEvent,MouseEvent,n(e,r)))}get needShow(){var e,t;const{comp:n}=this.props;return this.props.isPreview?!this.props.comp.hidden:!n.hidden||(null===(t=null===(e=this.context.userPreference)||void 0===e?void 0:e.generalSettings.showHiddenArea)||void 0===t||t)}renderContent(){var e;const{comp:t,isPreview:n,globalScale:a}=this.props;if(!n)return this.renderComp();if(!t.visibleInPreview)return this.renderComp();if(t.toJSON()._bringFront){const{globalPoint:n}=this.state;let s=!1;const l=null===(e=t.document)||void 0===e?void 0:e.appID;if(l&&!{DEV_MODE:!1,isPrivateDeployment:!1,isOfflineDemo:!0}.isHuaWei){const e=u.default.previewOption.find(e=>e.appID===l);s="none"!==(null==e?void 0:e.option.mobileType)&&!(null==e?void 0:e.option.noBoundary)}const c=b.getCompAbsoluteMatrix(t).rotation;return o.createPortal(r.createElement("div",{className:i.default("bring-front-layer",{mobile:s}),style:Object.assign(Object.assign({},n),{transform:`scale(${a}) rotate(${c}deg)`})},this.renderComp()),document.body)}return this.renderComp()}renderComp(){var e,t;if(this.state.hasError)return"Error to render this component "+this.props.comp.type;const{comp:n,isPreview:o,isContainerActiveContainer:a}=this.props;if(!o&&n.hidden&&!n.isConnector&&(!n.isContainer||!a))return r.createElement("div",{className:i.default({"hidden-layer":null===(t=null===(e=this.context.userPreference)||void 0===e?void 0:e.generalSettings.showHiddenArea)||void 0===t||t})});const{valueEditing:s,onValueEdited:l,scale:c,onTableValueChanged:u,onSnapshotValueChanged:d,globalScale:h,onValueEditing:p,isParentActivated:f,isRevision:v,onInnerAction:y,onForceUpdate:b,onClick:w,onDoubleClick:C,onContextMenu:_,onMouseDown:x,onMouseUp:S,onTouchEnd:k,onTouchStart:P,onMouseEnter:T,onMouseLeave:E,onFocus:O,onBlur:M}=this.props;return m.default.render(n,{isPreview:o,onInnerAction:y,scale:c,globalScale:h,onForceUpdate:b,valueEditing:s,onValueEdited:l,onValueEditing:p,onTableValueChanged:u,onSnapshotValueChanged:d,isParentActivated:f,isContainerActiveContainer:a,isRevision:v,hover:this.state.hover||this.props.selecting,selectAndHovered:this.props.hoverWithSelected,selected:this.props.selected,itemEvents:this.itemEvents,event:[g.CTable,g.CTree,g.CSelect].includes(n.type)&&{onClick:w,onDoubleClick:C,onContextMenu:_,onMouseDown:x,onMouseUp:S,onTouchEnd:k,onTouchStart:P,onMouseEnter:T,onMouseLeave:E,onFocus:O,onBlur:M,onInnerAction:y,onForceUpdate:b}},this.props.children)}renderState(){const{comp:e,selected:t,isPreview:n,isParentActivated:o,isActivated:i,valueEditing:a}=this.props;if(!t||n||!o||i)return null;const{position:l,currentStateID:c}=e;if(!c||p.isPredefinedState(c)||a)return null;const u=Object.assign(Object.assign({},s.depthClone(e.toJSON())),{states:{},_currentState:void 0,opacity:50,_id:e.id+"-state "}),d=h.makeUIComponent(u,e.parent,e.isPreview),{position:f,size:g}=d,v=Object.assign(Object.assign({transform:`translate(${f.x-l.x}px,${f.y-l.y}px)`},g),{overflow:"hidden"});return r.createElement("div",{style:v,className:"component-state"},m.default.render(d,{scale:this.props.scale},this.props.children))}render(){var e;const{hover:t,hasError:n,style:o,showConnector:a}=this.state;if(n)return r.createElement("div",{style:o,onMouseDown:this.handleMouseDown},"Error to render this component "+this.props.comp.type);const{comp:s,isPreview:l,selectedByOtherWho:c,valueEditing:u,selecting:h,scale:p,forceHover:f,isActivated:m}=this.props,v=m&&s.type===g.CCompoundPath&&(null===(e=s.parent)||void 0===e?void 0:e.type)!==g.CCompoundPath&&!l;if(m&&!v)return null;const{_animation:b,selected:w,type:C,size:_,remark:x}=s,S=d.hasInteraction(s),k=!!(null==x?void 0:x.length),P=!l&&(t||this.props.selected||f)||!1;let T=i.default("component",{"container-component":s.isContainer},"component-"+C,{"next-comp":w&&!(b&&b.name)},{"selected-by-others":""!==c,hidden:s.hidden,preview:l,hovered:P,disabled:l&&s.disabled,"hover-by-find-target":this.props.targetHovered,"has-interaction":l&&S,selecting:h,"richtext-editing":u,cube:l&&b});b&&b.name&&(T=i.default(""+T,w?"next-comp":"current-comp",{[""+(b&&b.name)]:b})),l&&s.isGroup&&(T=i.default(T,{group:!0}));const E={};return s.isConnector&&l&&(E.pointerEvents="none"),r.createElement("div",{ref:this.dom,"data-alias":s.alias,id:s.id,title:l?s.remark:void 0,className:T,style:o,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,onMouseLeave:this.handleMouseLeave,onMouseEnter:this.handleMouseEnter,onContextMenu:this.handleContextMenu,onMouseOver:this.handleMouseOver,onFocus:this.handleFocus,onBlur:this.handleBlur},this.renderState(),this.renderContent(),c&&r.createElement("span",{className:"selected-by-who"},c),this.renderFlag(s,k,S),l&&S&&!s.disabled&&r.createElement("div",{className:"hot-area"}),!l&&!s.isConnector&&!this.props.targetHovered&&this.renderSelecting(_,P),!l&&!u&&s.canConnect&&"flow"===this.context.mode&&r.createElement(y.default,{id:s.id,size:_,scale:p,isShowConnector:a,isActiveParent:this.props.isActiveParent,onMouseDownStartConnect:this.props.onMouseDownStartConnect,onMouseUpEndConnect:this.props.onMouseUpEndConnect,onControlMouseEnter:this.props.onControlMouseEnter,onControlMouseLeave:this.props.onControlMouseLeave}))}renderFlag(e,t,n){var o,a;const{isPreview:s,noBoundary:l}=this.props,c=this.needShow;if(s||!c)return null;const u=(null===(o=e.parent)||void 0===o?void 0:o.type)===g.CCompoundPath,d=(!s||s&&l)&&t&&!u,h=!s&&e.locked,p=!s&&n&&!u&&!(null===(a=e.libData)||void 0===a?void 0:a.isList);return h||d||p?r.createElement("div",{className:i.default("flags")},h&&this.renderAdditionFlag("lock"),p&&this.renderAdditionFlag("interaction"),d&&this.renderAdditionFlag("remark")):null}renderSelecting(e,t){var n,o,i;const{comp:a,isPreview:s,valueEditing:l,forceHover:c,selected:d}=this.props,{selecting:h}=a.dynamicInfo||{},p=void 0!==(null===(n=a.dynamicInfo)||void 0===n?void 0:n.rotate),f=d||h;if((!f||p)&&!c&&!t)return null;const m=(null===(o=a.dynamicInfo)||void 0===o?void 0:o.size)&&Object.keys(a.dynamicInfo).length>0;if(g.CLine===a.type||m||l||s)return null;const{userPreference:y}=this.context,{showHiddenArea:b=!0}=null!==(i=null==y?void 0:y.generalSettings)&&void 0!==i?i:{},w=!!b||!a.hidden;if(!a.locked&&w){const t=u.default.scale||1;return r.createElement(v.CompSelecting,{size:e,isConnector:a.isConnector,selecting:!!f,isRotate:p,forceHover:!!c,scale:t,isSymbol:a.isSymbol})}return null}}t.default=w,w.contextType=f.default},function(e,t,n){e.exports=n(1188)},function(e,t,n){"use strict";(function(t){var r=n(77),o=n(1191),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t)&&(s=n(422)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(102))},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.importRPAppFile=t.saveAppPatches=t.accessApp=t.saveExample=t.reversionPageRevision=t.getArtboardDataByRevision=t.getPageRevisions=t.deleteAppByID=t.editAppName=t.getAppByShareID=t.getAppByID=t.addApp=void 0;const o=n(58);t.addApp=function(e){return r(this,void 0,void 0,(function*(){return yield o.put("/app",e)}))},t.getAppByID=function(e,t=!1){return r(this,void 0,void 0,(function*(){return yield o.get(`/app/${e}?includeRemoved=true&isExample=${t}&rnd=${(new Date).getTime()}`)}))},t.getAppByShareID=function(e){return r(this,void 0,void 0,(function*(){return yield o.get(`/app/preview/${e}?rnd=${(new Date).getTime()}`)}))},t.editAppName=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch("/app/"+e,t)}))},t.deleteAppByID=function(e){return r(this,void 0,void 0,(function*(){return yield o.axDelete("/app/"+e)}))},t.getPageRevisions=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.get(`/time-machine/${e}/node-revisions/${t}`)}))},t.getArtboardDataByRevision=function({appID:e,pageID:t,snapShortID:n,artboardID:i}){return r(this,void 0,void 0,(function*(){return yield o.get(`/time-machine/${e}/node-artboard/${t}/${n}/${i}`)}))},t.reversionPageRevision=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.put(`/time-machine/${e}/node-roolback/${t}/${n}`)}))},t.saveExample=function(e,t,n,i){return r(this,void 0,void 0,(function*(){return yield o.put("/app/cloneExampleAppToUser",{appID:e,pageID:t,operations:n,teamID:i})}))},t.accessApp=function(e,t){return o.post("/app/access/"+e,{teamID:t})},t.saveAppPatches=function(e,t){return o.post("/io/saveAppPatches/"+e,{appPatches:t})},t.importRPAppFile=function(e,t){const n=new FormData;return n.append("zip",t),o.post("/app/importRPAppZip/"+e,n)}},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.getSnapshotAllPages=t.addNewSnapshotPage=t.getSnapshotPage=t.getSnapshotProjects=t.getSnapshotTeams=t.getTeamGroups=t.createTeam=t.changeTeam=t.getRecycle=t.getAllTeams=t.getTeamInfo=t.getAllApps=void 0;const o=n(290),i=n(58);t.getAllApps=function(e){return r(this,void 0,void 0,(function*(){return yield i.get(`/team/apps/${e}?rnd=${(new Date).getTime()}`)}))},t.getTeamInfo=function(e){return r(this,void 0,void 0,(function*(){return i.get(`/team/${e}?rnd=${(new Date).getTime()}`)}))},t.getAllTeams=function(){return r(this,void 0,void 0,(function*(){return i.get(`${i.rpBaseUrl}/team/rp/teamsInfo?rnd=${(new Date).getTime()}`)}))},t.getRecycle=function(e){return r(this,void 0,void 0,(function*(){return i.get("/team/recycle/"+e)}))},t.changeTeam=function(e){return r(this,void 0,void 0,(function*(){return i.patch("/user/patch",{defaultIDocTeamID:e})}))},t.createTeam=function(e){return r(this,void 0,void 0,(function*(){return i.put("/team",{name:e})}))},t.getTeamGroups=function(e){return i.get(`${i.idocBaseUrl}/teamGroup/${e}`)},t.getSnapshotTeams=function(){return i.get("/designDraftEmbed/teams")},t.getSnapshotProjects=function(e){return i.get("/designDraftEmbed/apps/"+e)},t.getSnapshotPage=function(e,t=o.ModuleType.Design){return i.get(`/designDraftEmbed/pages/${e}/${t}`)},t.addNewSnapshotPage=function(e,t,n=o.ModuleType.Design){return i.put(`/designDraftEmbed/page/${e}/${n}/${t}`)},t.getSnapshotAllPages=function(e){return i.get("/designDraftEmbed/allPages/"+e)}},function(e,t,n){"use strict";var r,o,i,a;function s(e){return[r.RP,r.SubRP].includes(e)}function l(e){return[r.Axure,r.SubAxure].includes(e)}function c(e){return[r.Mockplus,r.SubMockPlus].includes(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getModuleID=t.getAppModule=t.AppStyle=t.getAppMobileType=t.AppMobileType=t.Device=t.AppType=t.IAppType=t.visibility=t.isSubApp=t.isRegularApp=t.isAppSet=t.isAxureOrMockplus=t.isMockplusApp=t.isAxureApp=t.isRpApp=t.needDecorateApp=t.isSpecialApp=t.isNormalApp=t.AppTypes=void 0,function(e){e.App="app",e.AppSet="app-set",e.RP="rp-app",e.Mockplus="mockplus-app",e.Axure="axure-app",e.SubDesign="sub-design-app",e.SubRP="sub-rp-app",e.SubMockPlus="sub-mockplus-app",e.SubAxure="sub-axure-app"}(r=t.AppTypes||(t.AppTypes={})),t.isNormalApp=function(e){return[r.App,r.SubDesign].includes(e)},t.isSpecialApp=function(e){return[r.RP,r.Axure,r.SubAxure,r.Mockplus,r.SubMockPlus].includes(e)},t.needDecorateApp=function(e){return[r.App,r.RP,r.Mockplus,r.Axure].includes(e)},t.isRpApp=s,t.isAxureApp=l,t.isMockplusApp=c,t.isAxureOrMockplus=function(e){return[r.Mockplus,r.SubMockPlus,r.Axure,r.SubAxure].includes(e)},t.isAppSet=function(e){return[r.AppSet].includes(e)},t.isRegularApp=function(e){return[r.App,r.Mockplus,r.Axure,r.RP].includes(e)},t.isSubApp=function(e){return[r.SubMockPlus,r.SubAxure].includes(e)},function(e){e.Private="private",e.Internal="internal",e.Public="public"}(t.visibility||(t.visibility={})),function(e){e.Phone="phone",e.Web="web",e.Pad="pad",e.Custom="custom"}(t.IAppType||(t.IAppType={})),function(e){e.Phone="phone",e.Web="web"}(t.AppType||(t.AppType={})),function(e){e.ios1x="ios1x",e.ios2x="ios2x",e.ios3x="ios3x",e.mdpi="mdpi",e.hdpi="hdpi",e.xhdpi="xhdpi",e.xxhdpi="xxhdpi",e.xxxhdpi="xxxhdpi",e.Web1x="Web1x",e.Web2x="Web2x"}(o=t.Device||(t.Device={})),function(e){e.Pad="Pad",e.IPhoneX="iPhoneX",e.IPhone="iPhone",e.Android="Android",e.Null="无"}(i=t.AppMobileType||(t.AppMobileType={})),t.getAppMobileType=e=>{const t={[o.ios1x]:i.IPhone,[o.ios2x]:i.IPhone,[o.ios3x]:i.IPhone,[o.mdpi]:i.Android,[o.hdpi]:i.Android,[o.xhdpi]:i.Android,[o.xxhdpi]:i.Android,[o.xxxhdpi]:i.Android,[o.Web1x]:i.Null,[o.Web2x]:i.Null};return t[e]?t[e]:""},function(e){e.Design="design",e.RP="rp",e.Prototype="prototype",e.AppSet="app-set"}(a=t.AppStyle||(t.AppStyle={})),t.getAppModule=e=>({[r.App]:a.Design,[r.RP]:a.RP,[r.Mockplus]:a.Prototype,[r.Axure]:a.Prototype,[r.SubDesign]:a.Design,[r.SubRP]:a.RP,[r.SubMockPlus]:a.Prototype,[r.SubAxure]:a.Prototype,[r.AppSet]:a.AppSet}[e]),t.getModuleID=e=>e?l(e.type)||c(e.type)?e._id:s(e.type)?a.RP:a.Design:a.Design},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeFocus=t.getOffsetScrollToTarget=t.getParentDomByFilter=t.getDomByAlias=void 0;const r=n(8),o=n(53);t.getDomByAlias=function e(t,n){let r;for(let e=0,o=t.childElementCount;e<o;e++){const o=t.children[e];if(o.dataset.alias===n){r=o;break}}if(!r)for(let o=0,i=t.childElementCount;o<i;o++){if(r=e(t.children[o],n),r)break}return r},t.getParentDomByFilter=function e(t,n){const r=t.parentElement;return r?n(r)?r:e(r,n):r},t.getOffsetScrollToTarget=function(e,t,n){const{scrollHeight:i,scrollWidth:a,scrollLeft:s,scrollTop:l}=n,c=t.top+l-e.top,u=o.isMobileDevice(),d=i-e.height+(u?0:17),h=r.min(d,c),p=t.left+s-e.left,f=a-e.width+(u?0:17);return{x:r.min(f,p)-s,y:h-l}},t.changeFocus=function(){const e=document.getElementById("focus-input");if(e)e.focus();else{const e=document.createElement("input");e.id="focus-input",e.style.position="fixed",e.style.top="-10000px",e.style.left="-10000px",document.body.append(e),e.focus()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(8),i=n(208),a=n(40),s=n(30),l=n(207),c=n(29),u=n(24),d=n(95),h=n(6);const p=new class{constructor(){this.symbolTasks={},this.supportEditor=!1,this.resetAllowReplace=e=>{e.forEach(e=>{const{type:t,components:n}=e;[h.CRect,h.CEllipse,h.CPolygon,h.CIcon,h.CText,h.CInput,h.CTextArea,h.CImage].includes(t)&&(e.allowReplace=!0),n&&this.resetAllowReplace(n)})},this.initSymbolData=(e,t,n)=>({type:e,size:n,position:{x:0,y:0},layout:{responsive:!0,auto:!0,fixedHeight:!1,fixedWidth:!1,horizontal:a.HorizontalAlign.Auto,vertical:a.VerticalAlign.Auto},properties:{},states:{},interaction:{},_id:"",v:0,connectors:[],components:t,sizeVersion:0})}init(e,t){this.dispatch=e,this.editor=t,this.supportEditor=!0}setLibs(e){this.libs=e}setCurrentLib(e){this._currentLib=e}get currentLib(){return this._currentLib}relatedComponents(e,t,n){if(e&&!this.isPrivateDeployment){const r=this.symbolTasks[e];if(delete this.symbolTasks[e],r&&t&&this.editor){const e=this.currentLib;this.editor.relatedSymbolToSelectedComps(e._id,n._id,r,null==n?void 0:n.name)}}}get isPrivateDeployment(){return!l.canUseSymbol()}createComponentSymbol(e,t,n){if(!this.editor)return;const r=this.editor.selectedComponentList;let c="";if(this.isPrivateDeployment||(c=s.getNewID(),this.symbolTasks[c]=r),!r||0===r.length)return void console.error("无选中组件");const p=d.getViewBoundsOfComponents(r),{left:f,top:m,width:g,height:v}=p,y=r.map(e=>{const t=o.depthClone(e.toJSON());return t.position.x-=f,t.position.y-=m,t.locked=t._animation=t._currentState=t._scale=void 0,t.layout.auto=!0,t.layout.responsive=!0,delete t.connectors,t.v=0,t});this.resetAllowReplace(y);let b={};if(this.isPrivateDeployment)y.length>1?b={type:h.CGroup,size:{width:g,height:v},position:{x:0,y:0},layout:{responsive:!0,auto:!0,fixedHeight:!1,fixedWidth:!1,horizontal:a.HorizontalAlign.Auto,vertical:a.VerticalAlign.Auto},properties:{},states:{},interaction:{},_id:"",v:0,connectors:[],components:y,sizeVersion:0}:1===y.length&&(b=Object.assign(Object.assign({},y[0]),{sizeVersion:0}));else if(n)b=this.initSymbolData(h.CSymbol,y,{width:g,height:v});else if(r.length>1)b=this.initSymbolData(h.CGroup,y,{width:g,height:v});else{const e={},t=r[0].toJSON(),n=Object.keys(t.states).filter(e=>u.isPredefinedState(e)).reduce((e,n)=>(e[n]=t.states[n],e),e);b=Object.assign(Object.assign({},t),{position:{x:0,y:0},interaction:{},states:n,_id:"",v:0,connectors:[],sizeVersion:0})}const w=l.getAllComponentResource(this.currentLib);b&&!l.hasResource(b,i.ResourceType.component,w)&&this.dispatch.addComponent(this.currentLib._id,c,{thumb:"",component:b,name:e,groupID:t})}addColors(e){if(e.length&&!l.hasResource(e,i.ResourceType.color,this.currentLib.colors)){const t=l.getDifferentColors(e,this.currentLib.colors);this.dispatch.addColor(this.currentLib._id,t)}}addTypography(e){this.dispatch.addTypography(this.currentLib._id,e)}get componentSymbols(){return this.currentLib?l.getAllComponentResource(this.currentLib):[]}getSymbolData(e,t){var n;const r=this.getLib(e);if(r){const e=[...l.getAllComponentResource(r),...r.componentsRecycle||[]].find(e=>e._id===t);if(e){const t=o.depthClone(e),r=c.resetID([t.value]);return c.resetInteractionTargetID([t.value],r),(null===(n=t.value.components)||void 0===n?void 0:n.length)&&c.resetValueMap(t.value.components,r),t}}}removeResource(e,t){this.dispatch.removeResource(e,t)}afterResourceRemoved(e,t,n){this.editor&&n===i.ResourceType.component&&this.editor.reload()}updateResource(){}updateComponent(e,t,n){var o,a;const s=this.getLib(e);if(!s)return;const l=s._id;if(!r.isEqual(null===(o=this.getSymbolData(l,t))||void 0===o?void 0:o.value.size,null===(a=n.value)||void 0===a?void 0:a.size)&&n.value){const e=(n.value.sizeVersion||0)+1;n.value.sizeVersion=e}this.dispatch.patchResourceItem(l,t,n,i.ResourceType.component)}getLib(e){var t;if(this.libs&&(this.supportEditor&&this.editor||!this.supportEditor))return null===(t=this.libs)||void 0===t?void 0:t.find(t=>t._id===e)}changeGroupIndex(e,t){this.currentLib&&this.dispatch.moveGroup(this.currentLib._id,e,t)}removeComponents(e){this.currentLib&&this.dispatch.removeComponents(this.currentLib._id,e)}addComponentRelations(e,t,n){var r;null===(r=this.dispatch)||void 0===r||r.addRelations(e,t,n)}patchComponentRelation(e,t,n){var r;null===(r=this.dispatch)||void 0===r||r.patchRelations(e,t,n)}removeComponentRelation(e,t,n){var r;null===(r=this.dispatch)||void 0===r||r.removeRelations(e,t,n)}};t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCompMoveInfo=t.cloneComponents=void 0;const r=n(8),o=n(4),i=n(29),a=n(6);t.cloneComponents=function(e,t,n){const a=r.depthClone(e),s=t.components;a.sort((e,t)=>s.findIndex(t=>t.id===e._id)-s.findIndex(e=>e.id===t._id));const l=i.resetID(a);return i.resetInteractionTargetID(a,l),i.resetValueMap(a,l),a.forEach(e=>{if(e._currentState=void 0,!e.name)return;let n=e.name,r=0;const i=e.name.match(/^([^\-]+) - (副本|copy) (\d+)$/);i&&(n=i[1],r=parseInt(i[3],10)),t.components.forEach(e=>{if(e.name){const t=new RegExp(`${n} - ${o.default("workspace.artboard.copy")} (\\d)`),i=e.name.match(t);if(i){const e=parseInt(i[1],10);e>r&&(r=e)}}}),e.name=`${n} - ${o.default("workspace.artboard.copy")} ${r+1}`}),a.forEach(e=>{e.position.x+=n.x,e.position.y+=n.y}),a},t.getCompMoveInfo=function(e,t){const n=e.filter(e=>e.type!==a.CConnector);if(0===n.length)return{horizontal:!1,vertical:!1};if(n[0]){const e=n[0].isInSuchParent(e=>e.isSealed),r=n.map(e=>{const n=e.alias||"",r=t&&t.constraint&&t.constraint[n];return(null==r?void 0:r.move)||e.moveConstrainInSealedComp});if((t||e)&&r[0]){return r.reduce((e,t)=>(t===a.MoveMode.horizontal&&(e.vertical=!1),t===a.MoveMode.vertical&&(e.horizontal=!1),t===a.MoveMode.neither&&(e.horizontal=!1,e.vertical=!1),e),{horizontal:!0,vertical:!0})}}const r=n[0].parent;return["wrap-panel","list-layout-panel"].includes(r.type)?{horizontal:!1,vertical:!1}:1===n.length?{horizontal:!n[0].isLayoutCenterAtHorizontal,vertical:!n[0].isLayoutMiddleAtVertical}:{horizontal:!0,vertical:!0}}},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.checkHeartbeat=t.changeProjectSize=t.canDeleteNode=t.editNode=t.addArtboard=t.ioHandlers=t.pushHidePageNode=t.pushNodeRemovePermanentlyPatch=t.pushRecoverNodePatch=t.pushNodePatchPatch=t.pushNodeRemovePatch=t.pushNodeCopyPatch=t.pushNodeMovePatch=t.pushNodeAddPatch=t.pushArtboardSelect=t.pushArtboardPatches=t.syncComponentsSelectOfNode=t.exitCurrentAppCooper=t.joinAppCooper=t.listenPatches=t.isExampleMode=void 0;n(1361);const o=n(273),i=n(4),a=n(53),s=n(218),l=n(1387),c=n(1388),u=n(1389);window.location.href.indexOf("debug=1");t.isExampleMode=-1!==window.location.href.indexOf("/rp/example");const d=(a.isStartFromPreview||t.isExampleMode,c.fakeSocket);let h=!1,p="",f="",m=null,g=!1;d.on("reconnect_attempt",()=>{-1===window.location.href.indexOf("app.mockplus.cn")&&-1===window.location.href.indexOf("app.mockplus.com")&&(d.io.opts.transports=["polling","websocket"])}),d.on("connect",()=>{console.log("io connected"),h=!0;const e=setInterval(()=>{if(!p||!f)return;if(l.isAfk())return g=!0,d.disconnect(),void clearInterval(e);const t=Date.now();d.emit(o.IOEvent.Heartbeat,{appID:p,sessionID:f,time:t})},6e4)}),d.on(o.IOEvent.RPOfflineDemo,e=>{const{code:t,url:n,v:r,message:o}=e;r&&(0===t&&n?u.offlineDemoManager.resolve(r,n):u.offlineDemoManager.reject(r,o))});let v=0;function y(e,t=!0,n=!1){m&&m({type:o.IOType.Message,payload:{id:v++,message:e,time:new Date,autoClear:t,fatal:n}})}function b(e){m&&m({type:o.IOType.OfflineSync,payload:{isSync:e}})}function w(e){m&&(e?m({type:o.IOType.SocketStatus,payload:{type:"socket-state-change",value:e}}):setTimeout(()=>{if(!m)return null;h||(b(!1),x=!1,m({type:o.IOType.SocketStatus,payload:{type:"socket-state-change",value:e}}))},5e3))}let C=0;function _(e){m&&(e?(window.clearTimeout(C),m({type:o.IOType.NetworkStatus,payload:{type:"network-state-change",value:e}})):C=window.setTimeout(()=>{m&&m({type:o.IOType.NetworkStatus,payload:{type:"network-state-change",value:e}})},5e3))}d.on("connect_error",e=>{console.error(e),h=!1,w(!1)}),d.on("error",e=>{console.error(e),w(!1)}),d.on("disconnect",e=>{console.log("disconnect because of "+e),h=!1,s.appDataManager.socketOffline=!0,g||w(!1)}),d.on("reconnect",e=>{h||(console.log("reconnect after "+e),h=!0,s.appDataManager.socketOffline=!1,S(p,!0).then(()=>{y(i.default("alert.networkReconnectionSuccessful")),w(!0)}).catch(e=>{console.error(e)}))});let x=!1;function S(e,t=!1){return r(this,void 0,void 0,(function*(){p=e;const n=e===f?f:"";return k(),new Promise((a,c)=>{let u=!1;const p=setTimeout(()=>{u=!0,h=!1,c(new Error(i.default("alert.failedToJoinProjectCollaboration"))),w(!1)},15e3);l.heartbeat(),d.emit(o.IOEvent.JoinAppCooper,{appID:e,sessionID:n},e=>{if(clearTimeout(p),0===e.code&&e.payload)return f=e.payload.id,a(e.payload),y(i.default("alert.multiplayerCollaborativeSuccess")),u&&(u=!1,h=!0,w(!0)),void function(e,t){r(this,void 0,void 0,(function*(){if(!x&&!s.appDataManager.isExample){if(x=!0,s.appDataManager.hasOperationToHandle()){if(console.log("----------- saving -----------"),b(!0),yield s.appDataManager.waitForSyncOperations(),console.log("----------- done -----------"),!t)return x=!1,setTimeout(()=>{window.location.reload()},1e3),void b(!1);b(!1)}x=!1}}))}(0,t);c(new Error(e.message))})})}))}function k(){p&&(l.heartbeat(),d.emit(o.IOEvent.ExitAppCooper,{appID:p,sessionID:f},()=>{console.log("leave "+p)}))}t.listenPatches=function(e){m=e,d.on(o.IOEvent.PagePatch,t=>{e({type:o.IOType.PagePatches,payload:t})}),d.on(o.IOEvent.PageSelect,t=>{e({type:o.IOType.PageSelect,payload:t})}),d.on(o.IOEvent.NodeUpdate,t=>{e({type:o.IOType.NodeUpdate,payload:t})}),d.on(o.IOEvent.CoopersUpdate,t=>{e({type:o.IOType.CoopersUpdate,payload:t})}),d.on(o.IOEvent.Obituary,t=>{e({type:o.IOType.CoopersObituary,payload:t})}),d.on(o.IOEvent.PageRollback,t=>{e({type:o.IOType.PageRollback,payload:{nodeID:t}})}),d.on(o.IOEvent.AppPatch,t=>{e({type:o.IOType.AppPatch,payload:t})})},t.joinAppCooper=S,t.exitCurrentAppCooper=k,t.syncComponentsSelectOfNode=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise(n=>{l.heartbeat(),d.emit(o.IOEvent.PageSelectSync,{appID:e,nodeID:t},e=>{n(e)})})}))},t.pushArtboardPatches=function(e){return s.appDataManager.handleOperation({type:o.OperationType.PushArtboardPatches,data:e})},t.pushArtboardSelect=function(e){l.heartbeat(),d.emit(o.IOEvent.PageSelect,e,()=>{})},t.pushNodeAddPatch=function(e){return r(this,void 0,void 0,(function*(){return s.appDataManager.handleOperation({type:o.OperationType.AddNode,data:e})}))},t.pushNodeMovePatch=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{h?(l.heartbeat(),d.emit(o.IOEvent.NodeMove,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})):n(new Error(i.default("alert.unableToMoveNode")))})}))},t.pushNodeCopyPatch=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{h?(l.heartbeat(),d.emit(o.IOEvent.NodeCopy,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})):n(new Error(i.default("alert.unableToCopyNode")))})}))},t.pushNodeRemovePatch=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{h?(l.heartbeat(),d.emit(o.IOEvent.NodeRemove,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})):n(new Error(i.default("alert.unableToRemoveNode")))})}))},t.pushNodePatchPatch=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{h?(l.heartbeat(),d.emit(o.IOEvent.NodePatch,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})):n(new Error(i.default("alert.unableToEditNode")))})}))},t.pushRecoverNodePatch=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{h?(l.heartbeat(),d.emit(o.IOEvent.NodeRecover,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})):n(new Error(i.default("alert.unableToEditNode")))})}))},t.pushNodeRemovePermanentlyPatch=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{h?(l.heartbeat(),d.emit(o.IOEvent.NodeRemovePermanently,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})):n(new Error(i.default("alert.unableToRemoveNode")))})}))},t.pushHidePageNode=function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{h?(l.heartbeat(),d.emit(o.IOEvent.NodeHidden,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})):n(new Error(i.default("alert.unableToHideNode")))})}))},t.ioHandlers={addArtboard:e=>new Promise((t,n)=>{l.heartbeat(),d.emit(o.IOEvent.ArtboardAdd,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})}),pushNodeAddPatch:e=>new Promise((t,n)=>{l.heartbeat(),d.emit(o.IOEvent.NodeAdd,e,e=>{0!==e.code?n(new Error(e.message)):t(e.payload)})}),pushPagePatch:e=>new Promise(t=>{l.heartbeat(),d.emit(o.IOEvent.PagePatch,e,e=>{t(e)})})},t.addArtboard=function(e){return s.appDataManager.handleOperation({type:o.OperationType.AddArtboard,data:e})},t.editNode=function(e){l.heartbeat(),d.emit(o.IOEvent.NodeEdit,{appID:p,sessionID:f,nodeID:e})},t.canDeleteNode=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,r)=>{h?(l.heartbeat(),d.emit(o.IOEvent.DetectNodeCanDelete,{appID:e,sessionID:f,nodeID:t},e=>{0!==e.code?r(new Error(e.message)):n(e.payload)})):r(new Error(i.default("alert.unableToRemoveNode")))})}))},t.changeProjectSize=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,r)=>{h?(l.heartbeat(),d.emit(o.IOEvent.AppPatch,{appID:e,sessionID:f,device:t},e=>{0!==e.code?r(new Error(e.message)):n(e.payload)})):r(new Error(i.default("alert.unableToEditNode")))})}))},t.checkHeartbeat=function(){const e=Date.now();d.emit(o.IOEvent.Heartbeat,{appID:p,sessionID:f,time:e})},window.addEventListener("offline",(function(){s.appDataManager.socketOffline=!0,g||(h=!1,_(!1),w(!1))})),window.addEventListener("online",(function(){s.appDataManager.socketOffline=!1,g||(h=!0,S(p,!0).then(()=>{y(i.default("alert.networkReconnectionSuccessful")),_(!0),w(!0)}).catch(e=>{console.error(e)}))}))},function(e,t){var n=1e3,r=6e4,o=60*r,i=24*o;function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var s,l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?a(s=e,i,"day")||a(s,o,"hour")||a(s,r,"minute")||a(s,n,"second")||s+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var r=n(1364)("socket.io-parser"),o=n(159),i=n(1366),a=n(438),s=n(439);function l(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=l,t.Decoder=d;var c=t.ERROR+'"encode error"';function u(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var o=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===o)return c;n+=o}return r("encoded %j as %s",e,n),n}function d(){this.reconstructor=null}function h(e){this.reconPack=e,this.buffers=[]}function p(e){return{type:t.ERROR,data:"parser error: "+e}}l.prototype.encode=function(e,n){(r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){i.removeBlobs(e,(function(e){var n=i.deconstructPacket(e),r=u(n.packet),o=n.buffers;o.unshift(r),t(o)}))}(e,n):n([u(e)])},o(d.prototype),d.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,o={type:Number(e.charAt(0))};if(null==t.types[o.type])return p("unknown packet type "+o.type);if(t.BINARY_EVENT===o.type||t.BINARY_ACK===o.type){for(var i=n+1;"-"!==e.charAt(++n)&&n!=e.length;);var s=e.substring(i,n);if(s!=Number(s)||"-"!==e.charAt(n))throw new Error("Illegal attachments");o.attachments=Number(s)}if("/"===e.charAt(n+1)){for(i=n+1;++n;){if(","===(c=e.charAt(n)))break;if(n===e.length)break}o.nsp=e.substring(i,n)}else o.nsp="/";var l=e.charAt(n+1);if(""!==l&&Number(l)==l){for(i=n+1;++n;){var c;if(null==(c=e.charAt(n))||Number(c)!=c){--n;break}if(n===e.length)break}o.id=Number(e.substring(i,n+1))}if(e.charAt(++n)){var u=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!(!1!==u&&(o.type===t.ERROR||a(u))))return p("invalid payload");o.data=u}return r("decoded %s as %j",e,o),o}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new h(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},h.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=i.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},h.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){"use strict";(function(e){
|
|
|
/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/
|
|
|
var r=n(1367),o=n(1368),i=n(1369);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,h=0;h<l;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function C(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return C(e,t,n,r)}function x(e,t,n,r){return V(H(t),e,n,r)}function S(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=F(e[i]);return o}function M(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function N(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,i){return i||N(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,i){return i||N(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:B(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(64))},function(e,t,n){var r=n(1372),o=n(309);e.exports=function(e){var t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(e){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t,n){var r=n(160),o=n(159);function i(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=i,o(i.prototype),i.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},i.prototype.onPacket=function(e){this.emit("packet",e)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.searchNameOfApp=t.transAppListOfTree=t.transAppTreeOfList=t.getNewNodePath=t.addNodeToTree=t.isPageExisting=void 0;const r=n(92),o=n(216);function i(e,t){const{module:n,userID:r,superAdminViewAllApp:i,roleInTeam:a}=t,{usedModule:s,defaultModule:l,isAppSet:c}=e,u="all"===n||(null==s?void 0:s.rp)||"rp"===l||c,d=o.isSuperAdmin(a)&&i||function e(t,n,r=0){if(r>200)return console.log("[can read app] timeout"),!1;r++;const{members:o,userID:i,children:a,visibility:s}=t;return!(!o.includes(n)&&n!==i&&"private"===s)||!!(null==a?void 0:a.some(t=>e(t,n,r)))}(e,r);return u&&d}t.isPageExisting=function(e,t){return-1!==e.findIndex(e=>e._id===t)},t.addNodeToTree=function e(t,n,r){const o=t.path.split(",");if(1===o.length&&"ROOT"===o[0]){if("add"===n)return[...r,t];{const e=r;return e.map(e=>{if(e.index>t.index-1)return e.index++}),e.splice(t.index,0,t),e}}return r.map(r=>{const i=o.findIndex(e=>e===r._id);if(i===o.length-1)t.parent=r,(null==r?void 0:r.hidden)&&(t.hidden=!0),"add"===n?(t.index=r.children.length,r.children.push(t)):(r.children.map(e=>{if(e.index>t.index-1)return e.index++}),r.children.splice(t.index,0,t)),r._collapse=!1;else{if(-1===i)return r;e(t,n,r.children)}return r})},t.getNewNodePath=function(e,t){if(!t)return"ROOT";const n=[];r.changeTreeToArray(e,n);const o=n.find(e=>e._id===t);return o?`${o.path},${t}`:"ROOT"},t.transAppTreeOfList=function(e,t){var n;let r=[...e];const o=[];for(;r.length;){const e=Object.assign({},r[0]);r.shift(),i(e,t)&&((null===(n=e.children)||void 0===n?void 0:n.length)&&(r=[...r,...e.children]),o.push(Object.assign({},e)))}return o},t.transAppListOfTree=function e(t,n){const r=[...t.map(e=>Object.assign(Object.assign({},e),{children:[]}))],o=(null==n?void 0:n._id)||"";return r.reduce((r,i)=>(i.appSetID===o&&i.isAppSet&&(i.children=[...e(t,i)],i.parent=n,r=[...r,i]),r),[])},t.searchNameOfApp=function e(t,n){const{name:r,children:o}=t;return!!r.includes(n)||!!(null==o?void 0:o.some(t=>e(t,n)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.revertActionType=t.getRevertAction=void 0;const r=n(8),o=n(46),i=n(24);function a(e,t){const n=r.depthClone(e);return t?(n.fromCurrent?(n.x=-n.x,n.y=-n.y):(n.x=t.position.x||0,n.y=t.position.y||0),n):n}function s(e,t){const n=r.depthClone(e);return t?(e.fromCurrent?(n.width=-n.width,n.height=-n.height):(n.width=t.size.width,n.height=t.size.height),n):n}function l(e,t){const n=r.depthClone(e);return t?(e.fromCurrent?n.rotate=-e.rotate:n.rotate=t.rotate,n):n}function c(e,t){const n=r.depthClone(e);return t?(e.fromCurrent?(n.x=e.x?1/e.x:t._scale.x||1,n.y=e.y?1/e.y:t._scale.y||1):(n.x=t._scale.x||1,n.y=t._scale.y||1),n):n}function u(e){const t=r.depthClone(e);return"hidden"==t.state?t.state="show":"show"==t.state?t.state="hidden":"toggle"==t.state&&(t.state="toggle"),t}function d(e,t){const n=r.depthClone(e);return t?(t.currentStateID?n.stateID=t.currentStateID:n.stateID=i.PredefinedStates.normal,n):n}t.getRevertAction=function(e,t){if("component"===e.type){let n=r.depthClone(e);switch(n.command){case o.CommandTypes.move:return Object.assign(Object.assign({},n),{params:a(n.params,t)});case o.CommandTypes.resize:return Object.assign(Object.assign({},n),{params:s(n.params,t)});case o.CommandTypes.zoom:return Object.assign(Object.assign({},n),{params:c(n.params,t)});case o.CommandTypes.rotation:return Object.assign(Object.assign({},n),{params:l(n.params,t)});case o.CommandTypes.toggleVisible:return Object.assign(Object.assign({},n),{params:u(n.params)});case o.CommandTypes.toggleState:return Object.assign(Object.assign({},n),{params:d(n.params,t)});default:return n}}else if("fragment"===e.type){let t=r.depthClone(e);return t.isExit=!t.isExit,t}},t.revertActionType=function(e){switch(e){case"none":return"none";case"pushToLeft":return"pushToRight";case"pushToRight":return"pushToLeft";case"pushToTop":return"pushToBottom";case"pushToBottom":return"pushToTop";case"slideToLeft":return"slideToRight";case"slideToRight":return"slideToLeft";case"slideToTop":return"slideToBottom";case"slideToBottom":return"slideToTop";case"flipInLeft":return"flipInRight";case"flipInRight":return"flipInLeft";case"flipInTop":return"flipInBottom";case"flipInBottom":return"flipInTop";case"fadeIn":return"fadeIn";case"zoomIn":return"zoomIn";default:return"none"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewCache=void 0;const r=n(7),o=n(176),i=n(8),a=n(103),s=n(12),l=n(46),c=n(24),u=n(449),d=n(17),h=n(53),p=n(312),f=n(311),m=n(450),g=n(6),v=n(1405);class y{constructor(e,t,n,a){this.allNodes=a,this.componentTree=new o.AvlTree((e,t)=>e.localeCompare(t)),this.updateWorkerManagerExtensionFeature=e=>{this.workerManager&&this.workerManager.initExtensionFeature(e)},this.multiFragments=!1,this.doCreateTreeNode=e=>{e.toJSON().v=Math.round(100*Math.random());const t=e.toJSON()._id;this.componentTree.contains(t)||(this.componentTree.insert(t,e),e.isContainer&&(e instanceof d.UIContentPanelComponent&&this.contentPanels.push(e),e.components.forEach(this.doCreateTreeNode)))},this.refreshSymbolTreeNode=e=>{var t;this.doCreateTreeNode(e),null===(t=this.workerManager)||void 0===t||t.refreshDocTree(this.componentTree)},this.refreshTree=()=>{var e;this.componentTree.isEmpty||(this.componentTree=new o.AvlTree((e,t)=>e.localeCompare(t))),this.doCreateTreeNode(this.doc.mainArtboard),this.doc.fragments.forEach(e=>{this.doCreateTreeNode(e)}),null===(e=this.workerManager)||void 0===e||e.refreshDocTree(this.componentTree)},this.afterLoaded=()=>{this.doLoaded=!1},this.findComponent=e=>this.componentTree.get(e),this.getPath=(e,t)=>{const n=this.compLastStateIDs[e.id];return!n||c.isPredefinedState(n)?t:`./states/${n}${t}`},this.getHiddenPath=e=>{const t=this.compLastStateIDs[e.id];return t&&t!==c.PredefinedStates.normal?`./states/${t}/hidden`:"/hidden"},this.runMoveCommand=({target:e,params:t,animate:n,fn:r})=>{const o=h.parserMoveCommand(e,t),i={[e.id]:[s.Ops.replace(this.getPath(e,"/position"),o),y.replaceAnimation(n)]},a=e.interactions[l.EventTypes.afterMove];a&&a.active&&this.actionsStack.push({trigger:e,event:l.EventTypes.afterMove}),this.doDelay(n.delay,()=>{this.patch({[e.ownerArtboardID]:i}),this.doDelay(n.duration,()=>{this.cleanCompAnimation(e),r()})})},this.runResizeCommand=({target:e,params:t,animate:n,fn:r})=>{var o;const{size:i,position:a}=h.parserResizeCommand(e,t),c=Object.assign(Object.assign({},e.size),i),u={[e.id]:[s.Ops.replace(this.getPath(e,"/position"),a),s.Ops.replace(this.getPath(e,"/size"),c),y.replaceAnimation(n)]};if([g.CPath,g.CLine,g.CCompoundPath].includes(e.type)){const t=Object.assign(Object.assign({},c),{left:a.x,right:a.x+c.width,top:a.y,bottom:a.y+c.height}),n=(null===(o=e.updateValueOrPropertiesWithBoundsChanged(t))||void 0===o?void 0:o.do)||{};u[e.id].push(...n[e.id])}const d=e.interactions[l.EventTypes.afterResize];d&&d.active&&this.actionsStack.push({trigger:e,event:l.EventTypes.afterResize}),this.doDelay(n.delay,()=>{this.patch({[e.ownerArtboardID]:u}),this.doDelay(n.duration,()=>{this.cleanCompAnimation(e),r()})})},this.runRotateCommand=({target:e,params:t,animate:n,fn:r})=>{const o=h.parserRotateCommand(e,t),i={[e.id]:[s.Ops.replace(this.getPath(e,"/rotate"),o),y.replaceAnimation(n)]},a=e.interactions[l.EventTypes.afterRotate];a&&a.active&&this.actionsStack.push({trigger:e,event:l.EventTypes.afterRotate}),this.doDelay(n.delay,()=>{this.patch({[e.ownerArtboardID]:i}),this.doDelay(n.duration,()=>{this.cleanCompAnimation(e),r()})})},this.runVisibleCommand=({target:e,params:t,animate:n,fn:o})=>{const i=h.parserVisibleCommand(e,t),a={[e.id]:[s.Ops.replace(this.getHiddenPath(e),i),y.replaceAnimation(n)]};if(t.forceFront){const t=e.parent,n=t.components.findIndex(t=>t.id===e.id);if(i){const o=Object.assign({_originalIndex:void 0},e.toJSON());r.isUndefined(o._originalIndex)||o._originalIndex===n||(a[t.id]=[s.Ops.move("./components/"+o._originalIndex,"./components/"+n)],a[e.id].push(s.Ops.replace("./_bringFront",!1)))}else a[t.id]=[s.Ops.move("./components/"+(t.components.length-1),"./components/"+n)],a[e.id].push(s.Ops.replace("./_originalIndex",n),s.Ops.replace("./_bringFront",!0))}const c=i?l.EventTypes.afterHide:l.EventTypes.afterVisible,u=e.interactions[c];u&&u.active&&this.actionsStack.push({trigger:e,event:c}),this.doDelay(n.delay,()=>{this.patch({[e.ownerArtboardID]:a}),this.doDelay(n.duration,()=>{this.cleanCompAnimation(e),o()})})},this.runScaleCommand=({target:e,params:t,animate:n,fn:r})=>{const{scale:o,position:i}=h.parserScaleCommand(e,t),a={[e.id]:[s.Ops.replace(this.getPath(e,"/_scale"),o),s.Ops.replace(this.getPath(e,"/position"),i),y.replaceAnimation(n)]},c=e.interactions[l.EventTypes.afterZoom];c&&c.active&&this.actionsStack.push({trigger:e,event:l.EventTypes.afterZoom}),this.doDelay(n.delay,()=>{this.patch({[e.ownerArtboardID]:a}),this.doDelay(n.duration,()=>{this.cleanCompAnimation(e),r()})})},this.runStateCommand=({target:e,params:t,animate:n,fn:r})=>{const o=t.stateID,i={[e.id]:[...y.replaceState(o),y.replaceAnimation(n)]};this.doDelay(n.delay,()=>{e.hasActiveState(o)&&this.patch({[e.ownerArtboardID]:i}),this.doDelay(n.duration,()=>{this.cleanCompAnimation(e),r()})})},this.runScrollCommand=({target:e,params:t,animate:n,fn:r})=>{const{duration:o,delay:i}=n;this.doDelay(i,()=>{this.onScrollToComp&&this.onScrollToComp(e.id,t,o),this.doDelay(o,()=>{r()})})},this.runContentCommand=({target:e,params:t,animate:n,fn:r})=>{let o=t.target;const i=e.$data.components,a=e.$data.value;let c,u,d,h;if(i&&(d=0,c=i.find((e,t)=>(!0===e.selected&&(d=t),!0===e.selected)),"@next"===t.target?(h=d===i.length-1?0:d+1,o=a[h]):"@prev"===t.target?(h=d?d-1:i.length-1,o=a[h]):h=a.findIndex(e=>e===o),-1!==h&&(u=i[h])),c&&u&&d!==h){const i=this.doc.fragments.findIndex(e=>e.artboardID===o),a={[c._id]:[s.Ops.replace("./selected",!1),s.Ops.replace("./_animation",{timing:n.effect,duration:n.duration,animationIterationCount:n.loop?"infinite":1,name:"current-comp-"+t.effect})],[u._id]:[s.Ops.replace("./selected",!0),s.Ops.replace("./_animation",{timing:n.effect,duration:n.duration,animationIterationCount:n.loop?"infinite":1,name:"next-comp-"+t.effect})]};setTimeout(()=>{this.patch({[e.ownerArtboardID]:a}),-1!==i&&this.actionsStack.push({trigger:this.doc.fragments[i],event:l.EventTypes.loaded}),this.doDelay(n.duration,()=>{if(c&&u&&d!==h){const t={[c._id]:[s.Ops.replace("./_animation",void 0)],[u._id]:[s.Ops.replace("./_animation",void 0)]};this.patch({[e.ownerArtboardID]:t})}r()})},n.delay)}else this.doDelay(n.duration+n.delay,r)},this.runComponentCommand=(e,t,n)=>{const{command:o,target:a,animation:s,params:c}=e,u=this.findComponent(a);if(!u)return void n();if(this.cleanCompAnimation(u),e.command===l.CommandTypes.switchContent){const n=i.depthClone(e),r=n.params,o=u.$data.components,a=u.$data.value;let s=r.target;o&&o.forEach((e,t)=>{!0===e.selected&&(s=a[t])}),n.params.target=s,n.params.effect=p.revertActionType(r.effect),t&&t(n,u)}else t&&t(e,u);r.isUndefined(this.compLastStateIDs[u.id])&&(this.compLastStateIDs[u.id]=u.getCurrentStateIDByPreview());const d={target:u,params:c,animate:s,fn:n};this.commandConfig[o](d),o===l.CommandTypes.toggleState&&u.hasActiveState(c.stateID)&&(this.compLastStateIDs[u.id]=c.stateID)},this.removeFragmentAction=()=>{this.activeFragmentAction=void 0},this.removeFragmentRevertAction=()=>{Object.values(this.revertActions).forEach(e=>{e&&e.forEach(t=>{if("fragment"===t.type){const n=e.indexOf(t);-1!=n&&e.splice(n,1)}})})},this.doNextAction=()=>{if(!this.nextActions.length||!this.compTargetFlag)return;const{trigger:e,event:t}=this.nextActions.shift();this.start(e,t)},this.doChangeSiblingSelect=(e,t)=>{var n,r;const o=e.isSealed?e:e.nearestSealedComponent;if(o){const i=null===(r=null===(n=o.libData)||void 0===n?void 0:n.preview)||void 0===r?void 0:r.onTriggerState;if(i){const n=e===o?-1:e.parent.components.indexOf(e);return i(o,e,t,n)}}return null},this.doc=new u.default(e,n,i.depthClone(t),!0),this.contentPanels=[],this.refreshTree(),this.updateContentPanel(),this.revertActions={},this.compLastStateIDs={},this.nextActions=[],this.actionsStack=[],this.compTargetFlag=!0,this.workerManager=new v.default(this.doc,this.componentTree),this.updateWorkerManagerExtensionFeature({patch:this.patch.bind(this)})}resetWorkerManager(){var e;null===(e=this.workerManager)||void 0===e||e.reset()}get fragmentCommandMap(){var e;return null===(e=this.workerManager)||void 0===e?void 0:e.fragmentCommandMap}get pageID(){return this.doc.pageID}closeFragmentByAction(e,t){const{target:n,params:{showBackground:o,closeWithOutClick:i}}=e;if(!o||!i||!this.fragmentCommandMap)return;const a=r.cloneDeep(this.fragmentCommandMap.get(n));if(!a)return;a.isExit=!0,this.fragmentCommandMap.set(n,a),t();const{animation:{delay:s,duration:l}}=a;setTimeout(()=>{var e;null===(e=this.fragmentCommandMap)||void 0===e||e.delete(n),t()},s+l+50)}terminationAll(){}skipToPage(e,t){const n=()=>{this.onSkipToPage&&(this.removeFragmentRevertAction(),this.nextActions=[],this.onSkipToPage(e,t))},{delay:r}=e.animation,o=window.setTimeout(()=>{n(),clearTimeout(o)},r)}doDelay(e,t){window.setTimeout(()=>{t()},e)}static replaceAnimation(e){return s.Ops.replace("./_animation",{timing:e.effect,delay:e.delay,duration:e.duration,animationIterationCount:e.loop?"infinite":1})}static replaceState(e){const t=[s.Ops.replace("./_currentState",e)];if(c.isPredefinedState(e))switch(e){case c.PredefinedStates.normal:t.push(s.Ops.replace("./selected",!1),s.Ops.replace("./disabled",!1));break;case c.PredefinedStates.checked:t.push(s.Ops.replace("./selected",!0),s.Ops.replace("./disabled",!1));break;case c.PredefinedStates.disabled:t.push(s.Ops.replace("./disabled",!0),s.Ops.replace("./selected",!1))}else t.push(s.Ops.replace("./selected",!1),s.Ops.replace("./disabled",!1));return t}cleanCompAnimation(e){const t={[e.id]:[s.Ops.replace("./_animation",void 0)]};this.patch({[e.ownerArtboardID]:t})}get commandConfig(){return{[l.CommandTypes.move]:this.runMoveCommand,[l.CommandTypes.resize]:this.runResizeCommand,[l.CommandTypes.rotation]:this.runRotateCommand,[l.CommandTypes.switchContent]:this.runContentCommand,[l.CommandTypes.toggleState]:this.runStateCommand,[l.CommandTypes.toggleVisible]:this.runVisibleCommand,[l.CommandTypes.zoom]:this.runScaleCommand,[l.CommandTypes.scroll]:this.runScrollCommand}}workerOne(e,t,n,r){const{type:o}=e;switch(o){case"page":if("@back"===e.target&&!this.hasBack){n(),this.compTargetFlag=!0;break}(r&&f.isPageExisting(this.allNodes,e.target)||"@home"===e.target||"@back"===e.target)&&this.skipToPage(e,r),n();break;case"component":this.runComponentCommand(e,t,n);break;case"fragment":this.beginFragmentAction(e,t,n);break;case"variable":break;case"link":{const{url:t,openWithSelf:r}=e.params,o=r?"_self":"_blank";new m.Link(t).open(o),r||n();break}}}parallelWorker(e,t,n,r){let o=e.length;e.forEach(e=>{this.workerOne(e,t,()=>{o--,0===o&&(this.compTargetFlag=!0,this.nextActions.push(...this.actionsStack),this.actionsStack=[],this.terminationAll(),n(),this.doNextAction())},r)})}sequenceWorker(e,t,n,r){let o=0,i=e.length;const a=s=>{this.workerOne(s,t,()=>{if("page"===s.type&&(f.isPageExisting(this.allNodes,s.target)||"@home"===s.target||"@back"===s.target))return this.actionsStack=[],this.terminationAll(),void n();o++,o<i?a(e[o]):(this.compTargetFlag=!0,this.nextActions.push(...this.actionsStack),this.actionsStack=[],this.terminationAll(),this.doNextAction(),n())},r)};a(e[o])}pageAnimationEnd(){this.onAfterSkipPage&&(this.compTargetFlag=!0,this.onAfterSkipPage())}goBackward(){this.onBackward&&(this.removeFragmentRevertAction(),this.nextActions=[],this.onBackward())}goForward(){this.onForward&&(this.removeFragmentRevertAction(),this.nextActions=[],this.onForward())}goHome(e,t){this.onHome&&(this.removeFragmentRevertAction(),this.nextActions=[],this.onHome(e,t))}beginFragmentAction(e,t,n){t&&t(e);const r=e.animation,o=this.doc.fragments.findIndex(t=>t.artboardID===e.target);if(-1===o||i.isEqualDate(e,this.activeFragmentAction))return void n();const a=()=>{this.onBeginFragmentAction&&this.onBeginFragmentAction(e)},s=r.delay,c=window.setTimeout(()=>{clearTimeout(c),a()},s);this.doDelay(r.delay+r.duration,n),this.actionsStack.push({trigger:this.doc.fragments[o],event:l.EventTypes.loaded})}start(e,t){var n;this.compLastStateIDs={};const r=e.interactions[t];return!(!r||!r.active)&&(!!this.compTargetFlag&&(!!a.enumToArray(l.EventTypes).includes(t)&&(null===(n=this.workerManager)||void 0===n||n.startWorker(e,t),!0)))}start1(e,t){this.compLastStateIDs={};const n=e.interactions[t];if(!n||!n.active)return!1;if(!this.compTargetFlag)return this.nextActions.push({trigger:e,event:t}),!1;this.compTargetFlag=!1;const r=this.doc.pageID;n.actions.forEach(t=>{"component"===t.type&&"@self"===t.target&&(t.target=e.id)});const{autoRevert:o,actions:i,parallel:a}=n,s=`${e.isArtboard?e.artboardID:e.id}-${t}`,l=this.revertActions[s];let c=void 0,u=i;l&&l.length?(u=l,delete this.revertActions[s]):o&&(n.actions.some(e=>"fragment"===e.type)&&this.removeFragmentRevertAction(),c=(e,t)=>{if("component"===e.type&&"scroll"===e.command)return;const n=p.getRevertAction(e,t);n&&(this.revertActions[s]||(this.revertActions[s]=[]),this.revertActions[s].unshift(n))});const d=()=>{this.compTargetFlag=!0};return a?this.parallelWorker(u,c,d,r):this.sequenceWorker(u,c,d,r),!0}addUpdateListener(e){this.updateListener=e}removeUpdateListener(){this.updateListener=void 0}notifyUpdateListener(){this.updateListener&&this.updateListener()}updateContentPanel(){this.contentPanels.forEach(e=>{e.loadContentByPreview([])})}updatetSymbol(e){const t=[];Object.values(e).forEach(e=>{Object.keys(e).forEach(n=>{const r=this.componentTree.get(n),o=e[n],i=r?(e=>{let t=e;for(;t&&t.type!==g.CSymbol;)t=t.parent;return t instanceof d.UISymbolComponent?t:null})(r):null;r&&i&&t.push({symbol:i,comp:r,operations:o})})}),t.forEach(e=>{e.symbol.patchSymbolData(e.comp.id,e.operations)})}patch(e){this.doc.patchArtboard(e,()=>{this.doc.updateAppDataManagerArtboardsByOperations(),this.updateContentPanel(),this.updatetSymbol(e),this.refreshTree(),this.notifyUpdateListener()})}triggerInnerAction(e){const t=e.reduce((e,t)=>{const n=t.comp.ownerArtboardID;return e[n]?e[n][t.comp.id]=t.actions:e[n]={[t.comp.id]:t.actions},e},{});this.patch(t)}static doUnselectSiblingComps(e){const t=e.parent,n=t.select,r={};if(n&&"child"===n.target){const{maxCount:e,autoUnselect:o}=n;if(-1!==e){const n=t.components.filter(e=>e.selected);if(0!==n.length&&n.length>=e&&o)for(;n.length>=e;){const e=n[0];n.shift(),r[e.id]=[s.Ops.replace("./selected",!1),s.Ops.replace("./_currentState",c.PredefinedStates.normal)]}}}return r}static doUpdateSpecialComponent(e){var t,n;const r=y.getSelectBoxChild(e);if(r){const o=null===(n=null===(t=r.libData)||void 0===t?void 0:t.preview)||void 0===n?void 0:n.onTriggerState;if(o)return o(r,e,c.PredefinedStates.checked,e.value)}return null}static getSelectBoxChild(e){let t=e.parent,n=!1;for(;t;){if(t.type===g.CSelect){n=!0;break}t=t.parent}return n?t:null}static mergeOperation(e,t){t&&Object.keys(t).forEach(n=>{e[n]?e[n].push(...t[n]):e[n]=t[n]})}doSelectedState(e){if(e.selectable){const t={[e.id]:[s.Ops.replace("./selected",!0),s.Ops.replace("./_currentState",c.PredefinedStates.checked)]},n=y.doUnselectSiblingComps(e),r=y.doUpdateSpecialComponent(e),o=this.doChangeSiblingSelect(e,c.PredefinedStates.checked);y.mergeOperation(t,n),y.mergeOperation(t,r),y.mergeOperation(t,o),this.patch({[e.ownerArtboardID]:t})}}doUnSelectState(e){if(e.unselectable){const t={[e.ownerArtboardID]:{[e.id]:[s.Ops.replace("./selected",!1),s.Ops.replace("./_currentState",c.PredefinedStates.normal)]}},n=this.doChangeSiblingSelect(e,c.PredefinedStates.unchecked);y.mergeOperation(t[e.ownerArtboardID],n),this.patch(t)}}doChangePredefinedState(e,t){const{states:n,_currentState:r}=e.toJSON();let o=r;if(t===c.PredefinedStates.normal?(o=void 0,r&&c.isPredefinedState(r)||(o=r)):n[t]&&(o=t),o!==r){const t={[e.id]:[s.Ops.replace("./_currentState",o)]};this.patch({[e.ownerArtboardID]:t})}}doTriggerEventByPredefinedState(e,t){let n;switch(t){case c.PredefinedStates.checked:n=l.EventTypes.checked;break;case c.PredefinedStates.unchecked:n=l.EventTypes.unChecked;break;case c.PredefinedStates.toggleCheck:n=l.EventTypes.toggleCheck}n&&setTimeout(()=>{n&&[l.EventTypes.checked,l.EventTypes.unChecked,l.EventTypes.toggleCheck].includes(n)&&this.start(e,n)},10)}triggerPredefinedState(e,t){switch(t){case c.PredefinedStates.checked:this.doSelectedState(e);break;case c.PredefinedStates.unchecked:this.doUnSelectState(e);break;default:this.doChangePredefinedState(e,t)}this.doTriggerEventByPredefinedState(e,t)}}t.default=y,t.PreviewCache={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);t.default=function(e){var t;const n=e.displayName||e.name||"Component";return(t=class extends r.Component{constructor(){super(...arguments),this.domRef=r.createRef(),this.onWindowKeyDown=e=>{"Escape"===e.key&&this.props.onClose()},this.onWindowClick=t=>{const{closeOnContext:n}=this.props;try{this.domRef.current&&!this.domRef.current.contains(t.target)&&(!n&&2!==t.button||n)&&setTimeout(()=>{this.props.onClose&&this.props.onClose(t)},1)}catch(t){console.error(t),console.log(e)}}}componentDidMount(){const{closeOnContext:e}=this.props;setTimeout(()=>{window.addEventListener("click",this.onWindowClick,!0),e&&window.addEventListener("contextmenu",this.onWindowClick,!0),window.addEventListener("keydown",this.onWindowKeyDown,!0)},1)}componentWillUnmount(){const{closeOnContext:e}=this.props;window.removeEventListener("click",this.onWindowClick,!0),e&&window.removeEventListener("contextmenu",this.onWindowClick,!0),window.removeEventListener("keydown",this.onWindowKeyDown,!0)}render(){return r.createElement(e,Object.assign({forwardedRef:this.domRef},this.props))}}).displayName=`withAutoClose(${n})`,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1492),i=n(26);n(1494);const a=e=>{const{tooltip:t,linkText:n,onClickLink:a,align:s}=e;return r.createElement(o.default,{text:t,linkText:n,onClickLink:a,align:s},r.createElement(i.default,{cls:"cover_help dsm-help-icon",color:"#ffb300"}))};a.defaultProps={tooltip:"",linkText:""},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(1500);n(1502);class s extends r.Component{constructor(e){super(e),this.isWaitingCompositionEnd=!1,this.getHistory=()=>{const{historyKey:e}=this.props;if(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}return[]},this.onClearHistory=()=>{const{historyKey:e,onClearHistory:t}=this.props;t&&t(),this.setState({historyOptions:[]},()=>{e&&localStorage.removeItem(e)})},this.onInputChange=e=>{const{onChange:t}=this.props;t&&t(e.target.value.trim())},this.onInput=e=>{const{onInput:t}=this.props;t&&(e.persist(),t(e.target.value))},this.onFocus=e=>{const{focused:t}=this.state;this.setState({focused:!0})},this.onBlur=e=>{const{onBlur:t}=this.props;this.timer=setTimeout(()=>{this.setState({focused:!1}),t&&t()},200)},this.onInputKeyDown=e=>{const{onSubmit:t}=this.props;if("Escape"!==e.key&&e.stopPropagation(),t&&!this.isWaitingCompositionEnd&&"Enter"===e.key){e.stopPropagation();const t=e.target.value.trim();this.handleOnSearch(t)}},this.handleOnSearch=(e,t)=>{const{historyKey:n,onSubmit:r,onInput:o,onChange:i}=this.props,{historyOptions:a}=this.state;t&&(o&&o(e),i&&i(e)),n&&e.trim()&&(a.includes(e)&&a.splice(a.indexOf(e),1),a.unshift(e),this.setState({historyOptions:a},()=>{localStorage.setItem(n,JSON.stringify(a))})),r&&r(e)},this.onCompositionStart=()=>{this.isWaitingCompositionEnd||(this.isWaitingCompositionEnd=!0)},this.onCompositionUpdate=()=>{this.isWaitingCompositionEnd||(this.isWaitingCompositionEnd=!0)},this.onCompositionEnd=()=>{this.isWaitingCompositionEnd=!1},this.inputRef=r.createRef(),this.timer=null,this.state={focused:!1,historyOptions:this.getHistory()}}componentDidMount(){setTimeout(()=>{if(this.inputRef.current&&this.props.autoSelect){this.inputRef.current.focus(),this.inputRef.current.select();const e=this.inputRef.current.value.length;this.inputRef.current.selectionStart=0,this.inputRef.current.selectionEnd=e}},100)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){const{placeholder:e,value:t,autoFocus:n,showClose:s,alwaysShowClose:l,width:c,setInputRef:u,iconSize:d,fullBorder:h,historyKey:p,inlineBox:f,fontSize:m,theme:g,onStopSearch:v}=this.props,{focused:y,historyOptions:b}=this.state;return r.createElement("div",{className:o("dsm-c-search-input",{"dsm-c-search-input-focus":y,"dsm-c-search-input-full-border":h,"dsm-c-search-input-inline-box":f}),style:{width:c}},r.createElement("input",{type:"text",placeholder:e,value:t,autoFocus:n,ref:u||this.inputRef,style:{width:c,fontSize:m},onChange:this.onInputChange,onKeyDown:this.onInputKeyDown,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur,onCompositionStart:this.onCompositionStart,onCompositionUpdate:this.onCompositionUpdate,onCompositionEnd:this.onCompositionEnd}),r.createElement(i.default,{cls:"search",disableHover:!0,size:d}),(s&&t||l)&&r.createElement(i.default,{cls:"close",theme:g,onClick:v}),p&&b.length>0&&y&&r.createElement(a.default,{options:b,onClearHistory:this.onClearHistory,onClickItem:this.handleOnSearch}))}}s.defaultProps={placeholder:"",value:"",width:"140",fontSize:14,autoFocus:!1,showClose:!1,fullBorder:!1,inlineBox:!1,alwaysShowClose:!1,historyKey:"",theme:void 0,onStopSearch:()=>{},onBlur:()=>{}},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPFreeProgramPageType=t.RPFreeProgramProgressNode=void 0,function(e){e.Initial="one-year",e.First="one",e.Second="two",e.Third="three",e.Fourth="four",e.Last="forever"}(t.RPFreeProgramProgressNode||(t.RPFreeProgramProgressNode={})),function(e){e.Basic="basic",e.Invitation="invitation",e.InvitationRecord="invitation-record",e.ReceiveForever="receive-forever"}(t.RPFreeProgramPageType||(t.RPFreeProgramPageType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(26),i=n(70);n(1623);t.default=e=>{const{data:t,checked:n,showEmail:a,onCheck:s,onCheckDisable:l}=e,{id:c,name:u,imageURL:d,disabled:h}=t;return r.createElement("div",{className:"check-item",onClick:()=>{h?l&&l(c):s&&s(c)}},r.createElement(i.default,{checked:n,disabled:h}),d?r.createElement("div",{className:"avatar",style:{backgroundImage:`url(${d})`}}):r.createElement(o.default,{size:20}),a?r.createElement("span",{className:"item-email-wrapper"},r.createElement("span",{className:"item-email-name"},u),r.createElement("span",{className:"item-email"},` (${t.email||""})`)):r.createElement("span",{className:"item-name"},u))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckType=t.TreeTransferKeys=void 0,function(e){e.AppMembersManage="last-app-member-manage"}(t.TreeTransferKeys||(t.TreeTransferKeys={})),function(e){e.All="all",e.None="none",e.Indeterminate="indeterminate"}(t.CheckType||(t.CheckType={}))},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(1650),o=n(320),i=n(1652);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(162)(n(98),"Map");e.exports=r},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";(function(e,r){var o,i=n(635);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(64),n(852)(e))},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),i=n(51),a=n(59),s=n.n(a),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=o.a.createContext||function(e,t){var n,o,a,u="__create-react-context-"+((l[a="__global_unique_id__"]=(l[a]||0)+1)+"__"),d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=c(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[u]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[u]=s.a.object.isRequired,n);var h=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[u]&&this.context[u].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[u]&&this.context[u].off(this.onUpdate)},r.getValue=function(){return this.context[u]?this.context[u].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return h.contextTypes=((o={})[u]=s.a.object,o),{Provider:d,Consumer:h}};t.a=u}).call(this,n(64))},function(e,t,n){var r=n(1007);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],h=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,h)s+=h[1];else{var f=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var C=null!=m&&null!=f&&f!==m,_="+"===b||"*"===b,x="?"===b||"*"===b,S=n[2]||u,k=v||y;r.push({name:g||i++,prefix:m||"",delimiter:S,optional:x,repeat:_,partial:C,asterisk:!!w,pattern:k?c(k):w?".*":"[^"+l(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,h=s[u.name];if(null==h){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<h.length;p++){if(d=l(h[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(h),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=l(c);else{var h=l(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+h+p+")*"),a+=p=c.optional?c.partial?h+"("+p+")?":"(?:"+h+"("+p+"))?":h+"("+p+")"}}var f=l(n.delimiter||"/"),m=a.slice(-f.length)===f;return o||(a=(m?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+f+"|$)",u(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return h(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";(function(e){function r(e){i.length||(o(),!0),i[i.length]=e}n.d(t,"a",(function(){return r}));var o,i=[],a=0;function s(){for(;a<i.length;){var e=a;if(a+=1,i[e].call(),a>1024){for(var t=0,n=i.length-a;t<n;t++)i[t]=i[t+a];i.length-=a,a=0}}i.length=0,a=0,!1}var l,c,u,d=void 0!==e?e:self,h=d.MutationObserver||d.WebKitMutationObserver;function p(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof h?(l=1,c=new h(s),u=document.createTextNode(""),c.observe(u,{characterData:!0}),o=function(){l=-l,u.data=l}):o=p(s),r.requestFlush=o,r.makeRequestCallFromTimer=p}).call(this,n(64))},function(e,t,n){"use strict";(function(e){if(n(644),n(841),n(842),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;function t(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&t(Array,e,Function.call.bind([][e]))}))}).call(this,n(64))},function(e,t,n){e.exports=!n(39)&&!n(27)((function(){return 7!=Object.defineProperty(n(244)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){t.f=n(37)},function(e,t,n){var r=n(71),o=n(72),i=n(188)(!1),a=n(246)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(41),o=n(19),i=n(120);e.exports=n(39)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var r=n(72),o=n(123).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(39),o=n(120),i=n(189),a=n(168),s=n(45),l=n(167),c=Object.assign;e.exports=!c||n(27)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=i.f,h=a.f;c>u;)for(var p,f=l(arguments[u++]),m=d?o(f).concat(d(f)):o(f),g=m.length,v=0;g>v;)p=m[v++],r&&!h.call(f,p)||(n[p]=f[p]);return n}:c},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(54),o=n(31),i=n(337),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?l(t,r.length,r):i(t,r,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(21).parseInt,o=n(146).trim,i=n(250),a=/^[-+]?0[xX]/;e.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(21).parseFloat,o=n(146).trim;e.exports=1/r(n(250)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(81);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(31),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(253),o=Math.pow,i=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),l=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),c=r(e);return o<l?c*(o/l/a+1/i-1/i)*l*a:(n=(t=(1+a/i)*o)-(t-o))>s||n!=n?c*(1/0):c*n}},function(e,t,n){var r=n(19);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(54),o=n(45),i=n(167),a=n(38);e.exports=function(e,t,n,s,l){r(t);var c=o(e),u=i(c),d=a(c.length),h=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(h in u){s=u[h],h+=p;break}if(h+=p,l?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;l?h>=0:d>h;h+=p)h in u&&(s=t(s,u[h],h,c));return s}},function(e,t,n){"use strict";var r=n(45),o=n(121),i=n(38);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),s=o(e,a),l=o(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:o(c,a))-l,a-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(265);n(5)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(39)&&"g"!=/./g.flags&&n(41).f(RegExp.prototype,"flags",{configurable:!0,get:n(169)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(19),o=n(31),i=n(269);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(353),o=n(128);e.exports=n(197)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(41).f,o=n(122),i=n(127),a=n(80),s=n(125),l=n(126),c=n(255),u=n(347),d=n(124),h=n(39),p=n(111).fastKey,f=n(128),m=h?"_s":"size",g=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){s(e,u,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&l(r,n,e[c],e)}));return i(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[m]--}return!!r},forEach:function(e){f(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(f(this,t),e)}}),h&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=f(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(353),o=n(128);e.exports=n(197)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(21),i=n(91)(0),a=n(66),s=n(111),l=n(334),c=n(356),u=n(31),d=n(128),h=n(128),p=!o.ActiveXObject&&"ActiveXObject"in o,f=s.getWeak,m=Object.isExtensible,g=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(u(e)){var t=f(e);return!0===t?g(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},b=e.exports=n(197)("WeakMap",v,y,c,!0,!0);h&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,i(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];a(t,e,(function(t,o){if(u(t)&&!m(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)}))})))},function(e,t,n){"use strict";var r=n(127),o=n(111).getWeak,i=n(19),a=n(31),s=n(125),l=n(126),c=n(91),u=n(71),d=n(128),h=c(5),p=c(6),f=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return h(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=f++,e._l=void 0,null!=r&&l(r,n,e[i],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?m(d(this,t)).has(e):n&&u(n,this._i)}}),c},def:function(e,t,n){var r=o(i(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},function(e,t,n){var r=n(82),o=n(38);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(123),o=n(189),i=n(19),a=n(21).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";var r=n(190),o=n(31),i=n(38),a=n(80),s=n(37)("isConcatSpreadable");e.exports=function e(t,n,l,c,u,d,h,p){for(var f,m,g=u,v=0,y=!!h&&a(h,p,3);v<c;){if(v in l){if(f=y?y(l[v],v,n):l[v],m=!1,o(f)&&(m=void 0!==(m=f[s])?!!m:r(f)),m&&d>0)g=e(t,n,f,i(f.length),g,d-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=f}g++}v++}return g}},function(e,t,n){var r=n(38),o=n(252),i=n(89);e.exports=function(e,t,n,a){var s=String(i(e)),l=s.length,c=void 0===n?" ":String(n),u=r(t);if(u<=l||""==c)return s;var d=u-l,h=o.call(c,Math.ceil(d/c.length));return h.length>d&&(h=h.slice(0,d)),a?h+s:s+h}},function(e,t,n){var r=n(39),o=n(120),i=n(72),a=n(168).f;e.exports=function(e){return function(t){for(var n,s=i(t),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},function(e,t,n){var r=n(145),o=n(363);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},function(e,t,n){var r=n(126);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t){e.exports=Math.scale||function(e,t,n,r,o){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||o!=o?NaN:e===1/0||e===-1/0?e:(e-t)*(o-r)/(n-t)+r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorageItem=t.clearLocalStorageItem=t.saveToLocalStorage=t.free=void 0,t.free=function(){if(!window||!window.localStorage)return;console.log("storage item count",window.localStorage.length);const e=[];for(let t=0;t<window.localStorage.length;t++){const n=window.localStorage.key(t);n&&(n.startsWith("cache_")||n.startsWith("rp_app_cache"))&&e.push(n)}e.forEach(e=>window.localStorage.removeItem(e))},t.saveToLocalStorage=function(e,t){window&&window.localStorage&&window.localStorage.setItem(e,t)},t.clearLocalStorageItem=function(e){var t;null===(t=null===window||void 0===window?void 0:window.localStorage)||void 0===t||t.removeItem(e)},t.getLocalStorageItem=function(e){var t;return null===(t=null===window||void 0===window?void 0:window.localStorage)||void 0===t?void 0:t.getItem(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorModel=t.getCommandByHotKey=t.EditorCommand=void 0;const r=n(7),o=n(274),i=n(8),a=n(28),s=n(18),l=n(12),c=n(369),u=n(370),d=n(371),h=n(56),p=n(55),f=n(172),m=n(29),g=n(1360),v=n(52),y=n(220),b=n(30),w=n(50),C=n(217),_=n(96),x=n(108),S=n(4),k=n(43),P=n(6),T=n(210),E=n(213),O=n(304),M=n(449),A=n(303),D=n(1391),I=n(17),L={h1:"p",h2:"p",h3:"p",h4:"p",h5:"p",h6:"p"},N=(e,t)=>{delete t["font-size"],delete t["line-height"],delete t["letter-spacing"]};var j;!function(e){e[e.SelectAll=0]="SelectAll",e[e.UnSelect=1]="UnSelect",e[e.Delete=2]="Delete",e[e.Undo=3]="Undo",e[e.Redo=4]="Redo",e[e.Copy=5]="Copy",e[e.Artboard_Copy=6]="Artboard_Copy",e[e.Artboard_Paste=7]="Artboard_Paste",e[e.SubArtboard_Cut=8]="SubArtboard_Cut",e[e.SubArtboard_Clone=9]="SubArtboard_Clone",e[e.PasteFromClipboard=10]="PasteFromClipboard",e[e.Cut=11]="Cut",e[e.Group=12]="Group",e[e.UnGroup=13]="UnGroup",e[e.UnGroupMore=14]="UnGroupMore",e[e.Clone=15]="Clone",e[e.Lock=16]="Lock",e[e.Save=17]="Save",e[e.SendToBack=18]="SendToBack",e[e.SendToFront=19]="SendToFront",e[e.Backward=20]="Backward",e[e.Forward=21]="Forward",e[e.AutoSize=22]="AutoSize",e[e.AlignLeft=23]="AlignLeft",e[e.AlignRight=24]="AlignRight",e[e.AlignCenter=25]="AlignCenter",e[e.AlignTop=26]="AlignTop",e[e.AlignBottom=27]="AlignBottom",e[e.AlignMiddle=28]="AlignMiddle",e[e.SpaceVertical=29]="SpaceVertical",e[e.SpaceHorizontal=30]="SpaceHorizontal",e[e.QuickPlusFontSize=31]="QuickPlusFontSize",e[e.QuickLessFontSize=32]="QuickLessFontSize",e[e.QuickSetBold=33]="QuickSetBold",e[e.QuckSetItalic=34]="QuckSetItalic",e[e.QuckSetUnderline=35]="QuckSetUnderline",e[e.Hidden=36]="Hidden"}(j=t.EditorCommand||(t.EditorCommand={})),t.getCommandByHotKey=function(e){switch(e){case"delete":case"backspace":return j.Delete;case"ctrl+a":return j.SelectAll;case"ctrl+shift+a":return j.UnSelect;case"ctrl+z":return j.Undo;case"ctrl+y":case"ctrl+shift+z":return j.Redo;case"ctrl+c":return j.Copy;case"ctrl+x":return j.Cut;case"ctrl+g":return j.Group;case"ctrl+shift+g":return j.UnGroupMore;case"ctrl+d":return j.Clone;case"ctrl+l":return j.Lock;case"ctrl+s":return j.Save;case"ctrl+arrowup":return j.Forward;case"ctrl+shift+arrowup":return j.SendToFront;case"ctrl+arrowdown":return j.Backward;case"ctrl+shift+arrowdown":return j.SendToBack;case"ctrl+alt+l":case"ctrl+alt+¬":return j.AlignLeft;case"ctrl+alt+r":case"ctrl+alt+®":return j.AlignRight;case"ctrl+alt+c":case"ctrl+alt+ç":return j.AlignCenter;case"ctrl+alt+t":case"ctrl+alt+†":return j.AlignTop;case"ctrl+alt+b":case"ctrl+alt+∫":return j.AlignBottom;case"ctrl+alt+m":case"ctrl+alt+µ":return j.AlignMiddle;case"ctrl+shift+h":return j.SpaceHorizontal;case"ctrl+shift+u":return j.SpaceVertical;case"ctrl+u":return j.QuckSetUnderline;case"ctrl+i":return j.QuckSetItalic;case"ctrl+b":return j.QuickSetBold;case"ctrl+[":return j.QuickLessFontSize;case"ctrl+]":return j.QuickPlusFontSize;case"ctrl+enter":return j.AutoSize;case"ctrl+h":return j.Hidden}return null},function(e){e[e.normal=0]="normal",e[e.symbol=1]="symbol",e[e.theme=2]="theme",e[e.component=3]="component"}(t.EditorModel||(t.EditorModel={}));class R extends D.default{constructor(e,t,n,r){super(new M.default(t,n,e),t,n,r)}reload(){const e=this.selectedComponentList.map(e=>e.id),t=[...this.doc.fragments,this.doc.mainArtboard];t.forEach(e=>e.forceRefreshComponents());const n=t.find(e=>e.artboardID===this.activeArtboard.artboardID),r=m.findChildrenByFiltering(this.activeArtboard,e=>e.id===this.activeContainer.id);this.setActiveArtboard(n),(null==r?void 0:r.length)&&r[0]!==n?this.setActiveContainer(r[0]):this.setActiveContainer(n),e&&this.selectByIDs(e,!1)}get canDelete(){return this.selectedComponents.size>0}get isResizingSingleLine(){if(this.hasOnlyOneSelectedComponents){const{type:e}=this.firstSelectedComponent;if(e===P.CLine)return!0}return!1}get isResizingSingleLineInSymbol(){const e=this.selectedComponentList,t=e[0];if(1===e.length&&t.type===P.CSymbol){const e=t.components;if(1===e.length&&e[0].type===P.CLine)return!0}return!1}get canNotResizing(){return!(!this.isResizingSingleLineInSymbol||!i.sameNumber(this.selectedComponentList[0].components[0].size.width,0))||this.hasSelectLockedComps}canCutOrCloneOrDelete(){const e=this.selectedComponentList;if(e.length){const t=e[0],n=t.nearestSealedComponent;if(n){let e=!1;if(n.lib){const t=k.getComponent(n.lib);t&&(e=!!t.isList)}return!!e&&t.parent===n}}return!0}getCompData(e){const t=i.depthClone(e.toJSON()),n=e.nearestSealedComponent;if(n){e.isRefValue()&&(t.value=n.value);const r=n.properties,{properties:o,states:i}=t,a=[o];Object.values(i).forEach(e=>{"@value"===e.value&&(e.value=n.value),e.properties&&a.push(e.properties)}),a.forEach(e=>{Object.keys(e).forEach(t=>{const n=t,o=e[n];if(o.ref){const t=o.ref.replace("@properties.","");e[n]=r[t]}})})}return t}validateCommand(e){return!(this.isAdvancedEditor&&e&&[j.Clone,j.Cut,j.Artboard_Paste,j.PasteFromClipboard,j.Forward,j.SendToFront,j.Backward,j.SendToBack,j.Delete,j.Group].includes(e))&&(!this.socketOffline&&!this.isExample||![j.Artboard_Copy,j.Artboard_Paste,j.SubArtboard_Clone,j.SubArtboard_Cut].includes(e))}isOriginPositionHide(e,t){const n=this.workSpaceBoundsOfActiveContainer&&this.workSpaceBoundsOfActiveContainer(),r=a.initBoundsWithPositionAndSize(e,t);return!n||!a.isIntersect(n,r)}getInitPositionContainer(e,t){let n={x:0,y:0};const o=this.workSpaceBoundsOfActiveContainer&&this.workSpaceBoundsOfActiveContainer();if(r.isUndefined(o))n={x:Math.round(.5*t.width-.5*e.width),y:Math.round(.5*t.height-.5*e.height)};else if(n={x:Math.round(.5*o.width-.5*e.width+o.left),y:Math.round(.5*o.height-.5*e.height+o.top)},0===o.width||0===o.height){let t={x:0,y:0};this.activeContainerOffsetWorkSpace&&(t=this.activeContainerOffsetWorkSpace()||t),n={x:Math.round(-t.x-.5*e.width),y:Math.round(-t.y-.5*e.width)}}return n}execCommand(e,...t){var n;if(this.validateCommand(e))switch(e){case j.Delete:if(!this.canCutOrCloneOrDelete())return;return void(this.activeContainer.isSealed?this.removeSealedChildComponents(this.selectedComponentList,this.activeContainer):this.removeSelectedComponent());case j.SelectAll:return void this.selectAll(!!t.length&&t[0]);case j.UnSelect:return void this.clearSelected();case j.Undo:return void this.undo();case j.Redo:return void this.redo();case j.Copy:{f.clearCopyData("MOCKPLUS-ARTBOARD-DATA");const e=this.doGetCanCopyComponentsFromSelected();if(e){const t=[],n=this.activeContainer;let o;o=n instanceof I.UIArtboard?n.artboardID:n.id,e.forEach(e=>{const n=r.cloneDeep(this.getCompData(e)),o=e.rotateRelativeToArtboard;n.position=e.positionRelativeToArtboard,n.rotate=o,e.isConnector&&(n.size=e.size),t.push(n)}),f.copyComponentData(t,f.ClipboardType.Component_Copy,o)}return}case j.Cut:if(0!==this.selectedComponentList.length||this.activeArtboard.isMain){if(f.clearCopyData("MOCKPLUS-ARTBOARD-DATA"),!this.canCutOrCloneOrDelete())return;const e=this.doGetCanCopyComponentsFromSelected();if(e){const t=[],n=this.activeContainer;let o;o=n instanceof I.UIArtboard?n.artboardID:n.id,e.forEach(e=>{const n=r.cloneDeep(this.getCompData(e)),o=e.rotateRelativeToArtboard;n.position=e.positionRelativeToArtboard,n.rotate=o,e.isConnector&&(n.size=e.size),t.push(n)}),f.copyComponentData(t,f.ClipboardType.Component_Cut,o),this.removeSelectedComponent()}return}this.execCommand(j.SubArtboard_Cut);break;case j.Artboard_Copy:return f.clearCopyData("MOCKPLUS-COMPONENT-DATA"),void this.doCopyArtboard();case j.Artboard_Paste:{const e=f.getCopiedArtboardData();if(!e)return;return void this.doPasteArtboard(e.data)}case j.SubArtboard_Cut:{const e=this.activeArtboard;f.clearCopyData("MOCKPLUS-COMPONENT-DATA"),f.copyArtboardData(e.$data,f.ClipboardType.Artboard_Copy),e.isMain||this.removeFragment(e.artboardID);break}case j.SubArtboard_Clone:{if(!this.isNormalEditor)return;const e=this.activeArtboard;f.clearCopyData("MOCKPLUS-COMPONENT-DATA"),f.copyArtboardData(e.$data,f.ClipboardType.Artboard_Copy);const t=f.getCopiedArtboardData();if(!t)return;this.doPasteArtboard(t.data);break}case j.PasteFromClipboard:{const[e,n,r,o,i]=t;this.doPasteFromClipboard(e,n,r,o,i);break}case j.Group:{const[e]=t,r=null===(n=e)||void 0===n?void 0:n.generalSettings.enableCmdShiftGToUnGrouping;return void(this.canGroup?this.group():!r&&this.canUnGroup&&this.unGroup())}case j.UnGroup:return void(this.canUnGroup&&this.unGroup());case j.UnGroupMore:return void this.unGroupMore();case j.Clone:if(!this.canCutOrCloneOrDelete())return;return void(0!==this.selectedComponentList.length||this.activeArtboard.isMain?this.clone(this.cloneOffset,(null==t?void 0:t.length)?t[0]:void 0):this.execCommand(j.SubArtboard_Clone));case j.Lock:return void this.changeLocked(!this.hasSelectLockedComps);case j.SendToBack:return void this.changeZOrder(c.default.sendToBack);case j.Backward:return void this.changeZOrder(c.default.backForward);case j.SendToFront:this.changeZOrder(c.default.bringToFront);break;case j.Forward:return void this.changeZOrder(c.default.frontForward);case j.AlignLeft:return void this.align(u.default.left);case j.AlignRight:return void this.align(u.default.right);case j.AlignCenter:return void this.align(u.default.center);case j.AlignTop:return void this.align(u.default.top);case j.AlignBottom:return void this.align(u.default.bottom);case j.AlignMiddle:return void this.align(u.default.middle);case j.SpaceHorizontal:return void this.sameGap("horizontal");case j.SpaceVertical:return void this.sameGap("vertical");case j.Save:return;case j.QuickPlusFontSize:return void this.quickSetFontSize("plus");case j.QuickLessFontSize:return void this.quickSetFontSize("less");case j.QuckSetItalic:return void this.quickSetFontStyle("italic");case j.QuckSetUnderline:return this.quickSetFontStyle("underline");case j.QuickSetBold:return this.quickSetFontStyle("bold");case j.AutoSize:return void this.selectedTextCompAutoSize();case j.Hidden:return void this.switchComponentVisible()}}switchComponentVisible(){const e=this.firstSelectedComponent;e&&!this.activeContainer.isCompoundPath&&this.setGeneralProperties("hidden",!!e&&!e.hidden)}doCloneSelectedComponentData(e){const t=this.doGetCanCopyComponentsFromSelected();if(t){const n=[];t.forEach(t=>{const r=i.depthClone(t.toJSON());if("connector"===r.type){let{path:t}=r.value;(null==t?void 0:t.length)&&(r.value.path=_.offsetPointArray(t,{offsetX:e.x,offsetY:e.y}))}r._currentState=void 0,n.push(r)});const r=e||{x:0,y:0};return A.cloneComponents(n,this.activeContainer,r)}return null}doGetCanCopyComponentsFromSelected(){const e=this.selectedComponentList.filter(e=>!e.locked);if(0===e.length||1==e.length&&e[0].isConnector)return null;const t=e[0].parent;return e.sort((e,n)=>t.components.indexOf(e)-t.components.indexOf(n)),e}doCopyArtboard(){if(this.socketOffline||this.isExample)return;const e=i.depthClone(this.activeArtboard.$data);f.copyArtboardData(e,f.ClipboardType.Artboard_Copy)}doPasteArtboard(e){var t;if(this.socketOffline||this.isExample)return;if(!this.isNormalEditor)return;e.components&&(e.components=A.cloneComponents(e.components,this.activeArtboard,{x:0,y:0}));const n=(null===(t=e.name)||void 0===t?void 0:t.split("-")[0])||"",r=this.doc.artboardsFragments.filter(e=>{var t;return-1!==(null===(t=e.$data.name)||void 0===t?void 0:t.indexOf(n))}).map(e=>e.$data.name||"");let o=0;r.forEach(e=>{const t=e.split("-"),n=parseInt(t[t.length-1]);!isNaN(n)&&(o=i.max(o,n))}),e.name=`${n}-${S.default("workspace.artboard.copy")}-${o+1}`;const s=this.appType&&["phone","pad"].includes(this.appType)?3e3:1e4,l=this.doc.artboardsFragments;let c;if(1===l.length){const t=l[0];c=t.size.width+e.size.width+30>s?{x:t.position.x,y:t.position.y+t.size.height+60}:{x:l[0].position.x+l[0].size.width+30,y:l[0].position.y}}else{const{mainArtboard:t,fragments:n}=this.doc,r=t.position.y+t.size.height+60,o=t.position.x;let i=o+t.size.width+30;c={x:t.position.x+t.size.width+30,y:t.position.y};const l=[...n],u=l.shift();let d=u.position.y,h=u;l.forEach(e=>{const t=e.position.y;t>=d&&(h=e,d=t)}),c.y=d,c.x=h.position.x+h.size.width+30,c.x+e.size.width-o>s?(c.x=i,c.y=h.position.y+h.size.height+60,c.y>=r&&(c.x=o)):(l.forEach(t=>{const n=a.initBoundsWithPositionAndSize(t.position,t.size),r=a.initBoundsWithPositionAndSize(c,e.size);a.isIntersect(n,r)&&(c.x=n.right+30)}),c.x+e.size.width-o>s&&(c.x=i,c.y=d+h.size.height+60))}this.cloneArtboard(e,c)}doPasteFromClipboard(e,t,n,o,i){const l=window.event;if(!l)return;if(!(l instanceof ClipboardEvent))return;if("paste"!==l.type)return;if(this.isAdvancedEditor)return;if(!y.default.allowChildrenStructureChange(this.activeContainer,"paste"))return;const{clipboardData:c}=l,{tagName:u,isContentEditable:x}=l.target;if(!c||"INPUT"===u||"TEXTAREA"===u||x)return;const{items:k,types:P}=c;if(P.includes("text/plain")){const e=P.indexOf("text/plain");if(-1===e)return;let t=k[e];const n=P.includes("text/html");let o;n&&(o=c.getData("text/html"),o&&(o=s.filterHTMLText(o,!0,N,{transformTags:L})),o&&(t=k[P.indexOf("text/html")])),t.getAsString(e=>{var t,o;const l=n?s.filterHTMLText(e,!0,N,{transformTags:L}).trim():e.trim();if(!l)return;const c=f.copiedDataType(l);if(c===f.ClipboardType.Component_Copy||c===f.ClipboardType.Component_Cut){const e=f.getCopiedComponentData();if(!e)return;const{componentData:n}=e,{x:r,y:o}=null!==(t=null==i?void 0:i.generalSettings.pasteOffset)&&void 0!==t?t:{x:0,y:0},s=A.cloneComponents(n,this.activeContainer,{x:r,y:o}),l=this.activeContainer,c=l.getViewBoundsInArtboard(),u=s.map(e=>{const t=v.getCenter(e.position,e.size,0),n=m.tansPointInArtBoardToGroup([t],l)[0];e.position=v.getNWPoint(n,e.size,0);const r=l.rotateRelativeToArtboard;return e.rotate=(e.rotate||0)-r,m.getBoundsInParent({size:e.size,position:e.position,rotate:e.rotate||0})}),d=a.union(...u),h={height:d.height,width:d.width},p=g.getCompDataIntegratedPosition(s),y=this.getInitPositionContainer(h,c);s.forEach(e=>{if(this.isOriginPositionHide(p,h)){const t=0-p.x+y.x,n=0-p.y+y.y;"connector"===e.type&&_.modifyPathWithOffset(e,{x:t,y:n}),e.position={x:e.position.x+t,y:e.position.y+n}}});const b=this.getAddCompsIndexOptions(null==i?void 0:i.generalSettings.pasteAtTop);this.addComponents(s,Object.assign(Object.assign({},b),{autoSelect:!0}))}else if(c===f.ClipboardType.Artboard_Copy){const e=f.getCopiedArtboardData();if(!e)return;if(!this.isNormalEditor)return;this.doPasteArtboard(e.data)}else if(c===f.ClipboardType.Normal){const e=s.adjustHTMLLineHeight(l).replace(/\n/gi,"<br/>").replace(/\t/gi,""),t=E.makeText(b.getNewID(),e);t.autoSize=!1;const n=s.getTextFormatFromHTML(e),{textFormat:i,textStyle:a,multiText:c}=t.properties,u=null===(o=i||c)||void 0===o?void 0:o.wrap;w.mergePropertyCacheToComp(t),i?i.wrap=!!u:c&&(c.wrap=!!u);const d=i||c,h=null==d?void 0:d.lineHeight,f=null==d?void 0:d.lineHeightEx;if(n){const o=a||i;o.fontSize=n.fontSize||o.fontSize,o.fontFamily=n.fontFamily||o.fontFamily,o.fontStyle=n.fontStyle||o.fontStyle,o.color=n.color||o.color,o.letterSpace=n.letterSpacing||o.letterSpace||0;const s=r.isUndefined(f)?(o.fontSize||p.DefaultFontSize)+(h||6):f,l=Object.assign(Object.assign({},a),{lineHeight:s+"px"}),{width:c,height:u}=E.measureTextCompInitialSize(l,e,!0);t.size=Object.assign(Object.assign({},t.size),{width:c,height:u}),t.properties.textFormat=w.upgradeTextFormatForApply(i,e)}const m=this.activeContainer.getViewBoundsInArtboard();t.position=this.getInitPositionContainer(t.size,m),this.addComponents([t],{artboardID:this.activeArtboard.artboardID,autoSelect:!0})}})}else if(P.includes("Files")){const r=P.indexOf("Files");if(-1===r)return;const i=k[r].getAsFile();if(!i)return;if(i.size>d.MaxImageSize)throw new Error(d.ImageSizeExceedTips);const a=i.name.toLowerCase().includes(".svg")?h.default.Svg:h.default.Image;C.getLocalImageFileSize(i).then(r=>{if(r.size.width>d.MaxImageDimention||r.size.height>d.MaxImageDimention)throw new Error(d.ImageDimensionExceedTips);e(()=>{C.uploadFile(i,a,t).then(e=>{const{URL:t}=e,r={width:e.size.width||200,height:e.size.height||200},o=T.makeImage(b.getNewID(),t,i.name,{width:r.width,height:r.height,lockedRatio:!0}),a=this.activeContainer.getViewBoundsInArtboard();o.position=this.getInitPositionContainer(o.size,a),this.addComponents([o],{artboardID:this.activeArtboard.artboardID,autoSelect:!0}),n&&n()}).catch(e=>{throw console.log(e),o(S.default("alert.unableToUpload")),new Error(S.default("alert.failToUpload"))})})}).catch(()=>{})}}getAddCompsIndexOptions(e){let t={};if(!(null==e||e)){const e=this.selectedComponentList;t={index:e.length?m.getMaxIndexOfComponents(e,this.activeContainer.components)+1:-1}}return t}clone(e,t){const n=this.doCloneSelectedComponentData(e);if(n){const e=this.getAddCompsIndexOptions(t).index;this.restoreToOriginalState();const{patches:r}=this.activeContainer.addComponents(n,void 0!==e?e:-1);this.update(r);const o=n.map(e=>e._id);this.selectByIDs(o,!1)}}cloneToOther(e,t){const n=this.doCloneSelectedComponentData(t);if(n){const t=this.activeContainer===this.doc.mainArtboard?"ROOT":this.activeContainer.id,r={do:{[t]:[l.Ops.addChildren("-1",n)]},undo:{[t]:[l.Ops.removeChildren(n.map(e=>e._id))]}};this.restoreToOriginalState(),this.setActiveArtboard(e),this.updateSingleArtboard(e.artboardID,r);const o=n.map(e=>e._id);this.selectByIDs(o,!1)}}getArtboardMetaChangePatches(e,t,n){const o={do:{self:[]},undo:{self:[]}},i=this.activeArtboard;if(r.isUndefined(e.name)||(o.do.self.push(l.Ops.replace("/name",e.name)),o.undo.self.push(l.Ops.replace("/name",i.name))),!r.isUndefined(e.size)){o.do.self.push(l.Ops.replace("/size",e.size)),o.undo.self.push(l.Ops.replace("/size",i.size));if((void 0===n||n)&&i.layout.responsive){const n=this.activeArtboard.updateSize(i.size,e.size,t);Object.keys(n.do).forEach(e=>{o.do[e]=n.do[e]}),Object.keys(n.undo).forEach(e=>{o.undo[e]=n.undo[e]})}}return r.isUndefined(e.position)||(o.do.self.push(l.Ops.replace("/position",e.position)),o.undo.self.push(l.Ops.replace("/position",i.position))),r.isUndefined(e.interaction)||(o.do.self.push(l.Ops.replace("/interaction",e.interaction)),o.undo.self.push(l.Ops.replace("/interaction",i.interactions))),r.isUndefined(e.responsive)||(o.do.self.push(l.Ops.replace("/responsive",e.responsive)),o.undo.self.push(l.Ops.replace("/responsive",i.layout.responsive))),r.isUndefined(e.background)||(o.do.self.push(l.Ops.replace("/background",e.background)),o.undo.self.push(l.Ops.replace("/background",i.background))),r.isUndefined(e.guides)||(o.do.self.push(l.Ops.replace("/guides",e.guides)),o.undo.self.push(l.Ops.replace("/guides",i.guides))),o}patchArtboardMeta(e,t){this.updateSingleArtboard(t||this.activeArtboard.artboardID,this.getArtboardMetaChangePatches(e))}removeFragment(e){this.deletingArtboard=this.doc.artboardsFragments.find(t=>t.artboardID===e),this.update(this.removeArtboardPatches(e));this.doc.getComponentsByFilter(t=>t.type===P.CContentPanel&&!r.isUndefined(t.value)&&t.value.includes(e)&&t.ownerArtboardID!==e).forEach(e=>{e.toJSON().v+=1}),this.activeArtboard.realID===e&&(this.setActiveArtboard(this.doc.mainArtboard),this.clearSelected())}addFragment(e,t){var n;const r=this.doc.artboards;O.addArtboard({_id:o.generate(),appID:(null===(n=r[0])||void 0===n?void 0:n.appID)||this.appID,nodeID:this.nodeID,position:e,size:t,name:S.default("project.subArtboard"," "+r.length)}).then(e=>{this.update(this.addArtboardPatches(e._id))}).catch(e=>{console.error(e),alert(e)})}addArtboardPatches(e){return{ROOT:{do:{self:[l.Ops.add(e,"")]},undo:{self:[l.Ops.remove(e)]}}}}removeArtboardPatches(e){return{ROOT:{do:{self:[l.Ops.remove(e)]},undo:{self:[l.Ops.add(e,"")]}}}}cloneArtboard(e,t){x.default.artboard.cloneArtboard(this.nodeID,e,t).then(e=>{this.update(this.addArtboardPatches(e))}).catch(()=>{})}autoReselectActiveArtboard(e){if(e.ROOT&&e.ROOT.self&&e.ROOT.self.length>0){const t=e.ROOT.self[0];if("remove"===t.op){const e=t.path;this.activeArtboard.realID===e&&(this.setActiveArtboard(this.doc.mainArtboard),this.clearSelected())}}}}t.default=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WORDS=void 0;t.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},function(e,t,n){"use strict";function r(e,t){t&&(e.insert(t._id,t),t.components&&t.components.length>0&&t.components.forEach(t=>r(e,t)))}function o(e,t){e.delete(t._id),t.components&&t.components.length>0&&t.components.forEach(t=>o(e,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.removeComponentNodeByID=t.removeComponentNode=t.addComponentNode=t.updateNodeAVLTree=void 0,t.updateNodeAVLTree=function(e,t){t.forEach(t=>{r(e,t)})},t.addComponentNode=r,t.removeComponentNode=o,t.removeComponentNodeByID=function(e,t){if(!e.contains(t))return;const n=e.get(t);n&&o(e,n)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.sendToBack=0]="sendToBack",e[e.backForward=1]="backForward",e[e.bringToFront=2]="bringToFront",e[e.frontForward=3]="frontForward"}(r||(r={})),t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.left=0]="left",e[e.center=1]="center",e[e.right=2]="right",e[e.top=3]="top",e[e.middle=4]="middle",e[e.bottom=5]="bottom"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSizeExceedTips=t.MaxVideoSize=t.ImageDimensionExceedTips=t.MaxImageDimention=t.ImageSizeExceedTips=t.MaxImageSize=void 0;const r=n(4);t.MaxImageSize=10485760,t.ImageSizeExceedTips=r.default("alert.imageSizeExceed"),t.MaxImageDimention=1e4,t.ImageDimensionExceedTips=r.default("alert.imageDimensionExceed"),t.MaxVideoSize=10485760,t.VideoSizeExceedTips=r.default("alert.videoSizeExceed")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IconPropertyName=void 0,t.IconPropertyName="icon"},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Directions=t.Direction=void 0,function(e){e.nw="nw",e.n="n",e.ne="ne",e.e="e",e.se="se",e.s="s",e.sw="sw",e.w="w"}(r=t.Direction||(t.Direction={})),t.Directions=[r.nw,r.n,r.ne,r.e,r.s,r.sw,r.w,r.se]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point=t.RPPoint=void 0;const r=n(8);class o{constructor(e,t){this._x=e,this._y=t}static getVector(e,t){return{x:t.x-e.x,y:t.y-e.y}}static scaleVector(e,t){return{x:r.round(e.x*t),y:r.round(e.y*t)}}get x(){return this._x}get y(){return this._y}round(){return i({x:r.round(this._x),y:r.round(this._y)})}}function i(e){return new o(e.x,e.y)}t.RPPoint=o,t.Point=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontStyleHelper=void 0;t.FontStyleHelper=class{constructor(){this.changeTextFontStyle=(e,t)=>{this.textDom.innerHTML=e;const n={value:e,strike:!0,underline:!0,bold:!0,italic:!0};this.textDom.focus();const r=document.getSelection();return null==r||r.selectAllChildren(this.textDom),t.forEach(e=>{const t=this.getCommand(e.type);document.queryCommandState(t)!==e.boolean?(document.execCommand(t,!1),document.execCommand("styleWithCSS",!1,"i.e."),n[e.type]=e.boolean):n[e.type]=!e.boolean}),null==r||r.empty(),Object.assign(Object.assign({},n),{value:this.textDom.innerHTML})},this.getTextFontStyle=e=>{this.textDom.innerHTML=e;const t=document.getSelection(),n=document.createRange();n.selectNodeContents(this.textDom),t.removeAllRanges(),t.addRange(n);const r={strike:document.queryCommandState(this.getCommand("strike")),underline:document.queryCommandState(this.getCommand("underline")),italic:document.queryCommandState(this.getCommand("italic")),bold:document.queryCommandState(this.getCommand("bold"))};return t.empty(),r}}getCommand(e){switch(e){case"strike":return"strikeThrough";case"underline":return"underline";case"italic":return"italic";case"bold":return"bold"}}get textDom(){let e=document.getElementById("text-decoration-line-editor");if(e)return e;{const e=document.createElement("div");return e.id="text-decoration-line-editor",e.contentEditable="true",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="fixed",e.style.top="-100000px",e.style.left="-100000px",e.style.background="#ccc",e.style.border="1px solid red",e.style.padding="10px 10px",e.style.userSelect="all",e.style["-webkit-user-select"]="all",document.body.appendChild(e),e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompoundPathPropertyName=t.CompoundOperation=void 0,function(e){e.Unite="unite",e.Subtract="subtract",e.Intersect="intersect",e.Exclude="exclude"}(t.CompoundOperation||(t.CompoundOperation={})),t.CompoundPathPropertyName="compoundPath"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutPropertyName=void 0,t.LayoutPropertyName="layout"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaddingPropertyName=void 0,t.PaddingPropertyName="padding"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBasicComponentsSize=void 0;const r=n(0),o=n(4),i=n(30),a=n(10),s=n(897),l=n(928),c=n(283),u=n(210),d=n(381),h=n(292),p=n(1053),f=n(1056),m=n(1058),g=n(1059),v=n(213),y=n(1062),b=n(1065),w=n(1068),C=n(397),_=n(107),x=n(1073),S=n(1075),k=n(1077),P=n(1078),T=n(398),E=n(399),O=n(400),M=n(401),A=n(402),D=n(6),I=n(403),L=n(404),N=n(294),j=n(405),R=n(406),z=n(1087),F=n(1112),B=n(1134),H=n(6),V=n(1136),Y=n(411);t.DefaultBasicComponentsSize={[D.CInput]:y.defaultInputSize};const W={[D.CRect]:V.default,[D.CEllipse]:V.default,[D.CIcon]:c.default,[D.CImage]:u.default,[D.CSnapshot]:d.default,[D.CVideo]:h.default,[D.CLine]:p.default,[D.CPath]:f.default,[D.CCompoundPath]:m.default,[D.CPolygon]:g.default,[D.CText]:v.default,[D.CTextArea]:b.default,[D.CParagraph]:v.default,[D.CInput]:y.default,[D.CCanvasPanel]:_.default,[D.CStackPanel]:x.default,[D.CListLayoutPanel]:S.default,[D.CWrapPanel]:k.default,[D.CGridPanel]:P.default,[D.CContentPanel]:T.default,[D.CSelectPanel]:O.default,[D.CGroup]:E.default,[D.CVideo]:h.default,[D.CConnector]:F.default,[D.CArc]:B.Arc,[D.CPureText]:w.default,[D.CSymbol]:C.default,[D.CTreeItem]:_.default};const U={[D.CRect]:s.makeRect,[D.CEllipse]:l.makeEllipse,[D.CIcon]:c.makeIcon,[D.CImage]:u.makeImage,[D.CSnapshot]:d.makeSnapshot,[D.CVideo]:h.makeVideo,[D.CLine]:p.makeLine,[D.CPolygon]:g.makePolygon,[D.CText]:v.makeText,[D.CParagraph]:v.makeText,triangle:g.makeTriangle,[D.CInput]:y.makeInput,[D.CTextArea]:b.makeTextArea,[D.CPath]:f.makePathItem,[D.CCanvasPanel]:_.makeCanvas,[D.CStackPanel]:x.makeStackPanel,[D.CWrapPanel]:k.makeWrapPanel,[D.CContentPanel]:T.makeContentPanel,[D.CGridPanel]:P.makeGridPanel,[D.CListLayoutPanel]:S.makeListLayoutPanel,[D.CSelectPanel]:O.makeSelectPanel,[D.CSlider]:A.makeSlider,[D.CSelect]:M.makeSelect,[D.CNumericStep]:L.makeNumericStep,[D.CTable]:j.makeTable,[D.CTree]:R.makeTree,[D.CQRCode]:I.makeQRCode,[D.CKeyboard]:N.makeKeyboard},K={id:"basic",name:o.default("resource.components.basic"),components:[{type:D.CRect,name:o.default("resource.components.rect"),shortCut:"R",thumb:{spriteIconClass:a.SpriteThumb.Rect.className,dragPosition:a.SpriteThumb.Rect.position}},{type:D.CEllipse,name:o.default("resource.components.ellipse"),shortCut:"O",thumb:{spriteIconClass:a.SpriteThumb.Ellipse.className,dragPosition:a.SpriteThumb.Ellipse.position}},{type:D.CPolygon,name:o.default("resource.components.polygon"),shortCut:"Y",thumb:{spriteIconClass:a.SpriteThumb.Polygon.className,dragPosition:a.SpriteThumb.Polygon.position}},{type:D.CLine,name:o.default("resource.components.line"),shortCut:"L",thumb:{spriteIconClass:a.SpriteThumb.Line.className,dragPosition:a.SpriteThumb.Line.position}},{type:D.CText,name:o.default("resource.components.text"),shortCut:"T",thumb:{spriteIconClass:a.SpriteThumb.Text.className,dragPosition:a.SpriteThumb.Text.position}},{type:D.CImage,name:o.default("resource.components.image"),shortCut:"I",thumb:{spriteIconClass:a.SpriteThumb.Image.className,dragPosition:a.SpriteThumb.Image.position},editor:{onValueUpdate:u.updateImageValue}},z.default,{type:D.CInput,name:o.default("resource.components.input"),thumb:{spriteIconClass:a.SpriteThumb.TextInput.className,dragPosition:a.SpriteThumb.TextInput.position}},{type:D.CTextArea,name:o.default("resource.components.textarea"),thumb:{spriteIconClass:a.SpriteThumb.Textarea.className,dragPosition:a.SpriteThumb.Textarea.position}},{type:D.CPath,name:o.default("resource.components.path"),hidden:!0,thumb:{},editor:{onValidateAllowEditor:f.selectPathEditorType,onPropertyUpdate:f.onPropertyChange}},{type:D.CIcon,name:o.default("resource.components.icon"),hidden:!0,thumb:{},sizeMode:H.SizeMode.ratio}],make(e,t){const n=i.getNewID(),r=U[e];if(r){return 1===r.length?r(n):r(n,t)}return v.makeText(n,e+" is not supported.")},render(e,t,n){const{type:o,lib:i,id:a}=e;let s;if((null==i?void 0:i.type)&&(s=Y.CompoundComponentClass[i.type]||Y.CompoundComponentClass[o]),s||(s=W[o]),s||(s=Y.CompoundComponentClass[o]),!s)return window.debug&&console.error(o+" is missed"),o+" is missed.";const l=function(e){let t=!0;if([H.CRect,H.CParagraph,H.CText,H.CPureText].includes(e.type)||e.isSealed){t=!e.isMoving}return e.isConnector&&(t=!0),t}(e);return r.createElement(G,{needReRender:l},r.createElement(s,Object.assign({key:a,comp:e},t),n))}};class G extends r.Component{shouldComponentUpdate(e){const{needReRender:t}=e;return t}render(){return r.createElement(r.Fragment,null,this.props.children)}}t.default=K},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cursors=void 0;const r=n(900),o=n(901),i=n(902),a=n(903),s=n(904),l=n(905),c=n(906),u=n(907),d=n(908),h=n(909),p=n(910),f=n(911),m=n(912),g=n(913),v=n(914),y=n(915),b=n(916),w=n(917),C=n(918),_=n(919);t.Cursors={WestAEast:r,NorthASouth:o,NorthEastOrWestSouth:i,SouthEastOrNorthWest:a,Rotate:s,AddArtboard:l,DrawRect:c,DrawCircle:u,DrawLine:d,DrawText:h,DrawImg:p,DrawBtn:f,DrawDefault:m,Pen:g,PenAdd:v,PenMove:y,PenClose:b,Pencil:w,Shears1:C,Shears2:_}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSnapshot=t.updateSnapshotValue=void 0;const r=n(0),o=n(7),i=n(2),a=n(22),s=n(4),l=n(23),c=n(290),u=n(281),d=n(12),h=n(20),p=n(8),f=n(14),m=n(50),g=n(42),v=n(291),y=n(33),b=n(6),w=n(1049);n(1051);const C=-1!==window.location.href.indexOf("localhost")&&-1!==window.location.href.indexOf("/rp/standalone-preview");t.updateSnapshotValue=function(e,t){const{id:n,properties:r}=e,o=e.value.url;if(t&&o!==t&&r.image){const t=Object.assign(Object.assign({},r.image),{clipBounds:void 0}),o=e.getCurrentPath("properties/image");return{do:{[n]:[d.Ops.replace(o,t)]},undo:{[n]:[d.Ops.replace(o,r.image)]}}}return null},t.makeSnapshot=function(e,t="",n="",r={width:300,height:200}){const o={name:n,properties:{radius:{topRight:0,topLeft:0,bottomLeft:0,bottomRight:0,isPercent:!1,disabled:!1},image:{fitMode:"fit",showModel:g.default.defaultNoneImageModel},blur:{disabled:!0,type:u.BlurType.gaussian,blurValue:{aMount:0}},colorFilter:{disabled:!0},shadow:m.getDefaultShadow(),stroke:{disabled:!0,thickness:1,color:h.DefaultStrokeColor,cap:l.StrokeLineCap.Round,join:l.StrokeLineJoin.Round}},states:{disabled:{enabled:!1,opacity:30}},size:r,value:t};return y.makeCommonComponent(e,b.CSnapshot,o)};class _ extends r.Component{constructor(e){super(e),this.imgRealWidth=0,this.imgRealHeight=0,this.needMeasureImageSize=!1,this.doRefresh=e=>{var t;const{comp:n,onSnapshotValueChanged:r}=e,{url:o,sourceID:i}=n.value,a=null===(t=v.default.pages)||void 0===t?void 0:t.design,s=null==a?void 0:a.find(e=>e.pageID===i),l=!s;if(s){const e=s.imageURL;o!==e&&(v.default.isFromConfirm=!1,r({url:e,compID:n.id,sourceID:s.pageID,moduleType:c.ModuleType.Design})),this.setState({url:e,pageInvalid:!1,isEmptyImage:!1})}else{if(o&&!v.default.isFromConfirm)return void this.setState({pageInvalid:!0},()=>{v.default.isFromConfirm=!1});this.setState({url:o,isEmptyImage:!o})}this.needMeasureImageSize=this.state.url!==(l?o:null==s?void 0:s.imageURL),(o||(null==s?void 0:s.imageURL))&&this.needMeasureImageSize?this.getImgDimensions(this.state.url,e):this.doParserClipBounds(e)},this.doParsePropertiesToStyle=e=>{const{size:t,properties:n,opacity:r}=e.comp,o=f.StyleHelper.initCSSStyleParser(n);return Object.assign(Object.assign(Object.assign(Object.assign({},e.isPreview?t:{}),o.getRadiusStyle(t)),o.getStrokeStyle()),{filter:f.StyleHelper.parserDropShadow(n.shadow),overflow:"hidden",opacity:f.StyleHelper.getOpacity(r)})},this.doParserBorder=e=>{var t;const{properties:n,size:r}=e.comp,o=Object.assign({},n);e.comp.value.url||o.stroke&&(o.stroke=Object.assign(Object.assign({},o.stroke),{thickness:1,disabled:!1}));const i=(null===(t=o.stroke)||void 0===t?void 0:t.thickness)||1,a=f.StyleHelper.initSVGStyleParser(o),{stroke:s,strokeDasharray:l,strokePathData:c,strokeWidth:u,strokeLinejoin:d,strokeLinecap:h,position:p}=a.getStrokeEx({width:r.width-i,height:r.height-i});return{stroke:{stroke:s,strokeDasharray:l,strokeLinecap:h,strokeLinejoin:d,strokeWidth:u,position:p},strokePathData:c}},this.handleSnapshotPreviewVisible=e=>{e.stopPropagation(),this.setState({showPreview:!this.state.showPreview})},this.renderPageInvalid=()=>r.createElement("div",{className:"snapshot-placeholder"},r.createElement("div",null,r.createElement("p",{className:"page-invalid"},s.default("resource.componentsText.snapshotInvalid")),r.createElement("p",null,s.default("resource.componentsText.snapshotCanNotFound"))),r.createElement(a.Icon,{cls:"icon_snapshot",theme:"tag"})),this.renderEmptyImage=()=>r.createElement("div",{className:"snapshot-placeholder"},r.createElement("p",null,s.default("resource.componentsText.snapshotText")),r.createElement(a.Icon,{cls:"icon_snapshot",theme:"tag"})),this.renderImg=()=>{const{comp:e}=this.props,{cropDisplayOffsetX:t,cropDisplayOffsetY:n,cropDisplayWidth:o,cropDisplayHeight:a,url:l}=this.state,{properties:c}=e,{image:u,blur:d,colorFilter:h}=c,{fitMode:p,clipBounds:f}=u||{},g=i.default("img-box",{["fit-mode-"+p]:!!p}),v=m.getImageColorFilter(h,d);let y;var b;return y=f&&f.width>0&&f.height>0?{background:`url(${l}) no-repeat ${-t}px ${-n}px / ${o}px ${a}px`}:{backgroundImage:`url(${C?(b=l,b&&b.startsWith(s.default("resource.componentsText.VPCImageURL"))?b.replace(s.default("resource.componentsText.VPCImageURL"),s.default("resource.componentsText.replaceVPCImageURL")):b):l})`},r.createElement("div",{className:g,style:Object.assign({transition:e.getTransition(),filter:v},y)})},this.state=Object.assign(Object.assign({style:this.doParsePropertiesToStyle(this.props)},this.doParserBorder(this.props)),{cropDisplayWidth:0,cropDisplayHeight:0,cropDisplayOffsetX:0,cropDisplayOffsetY:0,showPreview:!1,url:"",pageInvalid:!1,isEmptyImage:!1});const{comp:{size:t,properties:n,value:l,opacity:u,version:d},isPreview:h,globalScale:p}=e,g=e.comp.getTransition();this.param={size:o.cloneDeep(t),properties:o.cloneDeep(n),value:o.cloneDeep(l),opacity:u,isPreview:h,globalScale:p,transition:g,version:d}}componentDidMount(){this.doRefresh(this.props)}doParserClipBounds(e){const{comp:t}=e,{size:n,properties:r}=t,{image:o}=r,{clipBounds:i}=o||{};if(i){const e=n.width*this.imgRealWidth/i.width,t=n.height*this.imgRealHeight/i.height,r=n.width*i.left/i.width,o=n.height*i.top/i.height;this.setState({cropDisplayWidth:p.round(e),cropDisplayHeight:p.round(t),cropDisplayOffsetX:p.round(r),cropDisplayOffsetY:p.round(o)})}this.setState(Object.assign({style:this.doParsePropertiesToStyle(e)},this.doParserBorder(e)))}UNSAFE_componentWillReceiveProps(e){this.doRefresh(e)}getImgDimensions(e,t){const n=new Image;n.src=e;const r=(e,n)=>{this.imgRealWidth=e,this.imgRealHeight=n,this.doParserClipBounds(t)};n.complete?r(n.width,n.height):n.onload=function(){r(n.width,n.height)}}render(){const{comp:e}=this.props,{showPreview:t,url:n,pageInvalid:o,isEmptyImage:i}=this.state;return r.createElement("div",{style:Object.assign(Object.assign({},this.state.style),{transition:e.getTransition()}),className:"lib-comp-snapshot",onDoubleClick:this.handleSnapshotPreviewVisible},!o&&!i&&this.renderImg(),o&&!i&&this.renderPageInvalid(),i&&this.renderEmptyImage(),t&&!o&&n&&r.createElement(w.default,{url:n,onClosePreview:this.handleSnapshotPreviewVisible}))}}t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(61);n(938);const a={border:"dsm-c-rp-button-border",greyBorder:"dsm-c-rp-button-grey-border",icon:"dsm-c-rp-button-icon",onlyText:"dsm-c-rp-button-only-text",dialog:"dsm-c-rp-button-dialog"},s=e=>{const{theme:t,icon:n,disabled:s,onClick:l,children:c,width:u,height:d,className:h,activated:p,size:f}=e,m=t&&a[t]||"";return r.createElement("button",{className:o.default("dsm-c-rp-button",m,h,{activated:p,"font-bold":"onlyText"===t}),disabled:s,onClick:l,style:{width:u,height:d}},"icon"===t&&r.createElement(i.default,{cls:n,size:f||16}),c)};s.defaultProps={theme:"basic",icon:"",disabled:!1,width:60,height:36},t.default=s},function(e,t,n){var r=n(933);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(286)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(946);class i extends r.PureComponent{constructor(e){super(e),this.handleClick=()=>{const{data:e,index:t,onClick:n}=this.props;n&&n(e,t)},this.state={}}render(){const{className:e,data:t,width:n,height:i,changed:a}=this.props,{text:s,img:l}=t;return r.createElement("div",{className:o.default(e,"dsm-c-rp-carousel-item",{changed:a}),style:{width:n,height:i},onClick:this.handleClick},r.createElement("img",{src:l,className:"dsm-c-rp-carousel-item-img",alt:"carouse item"}),r.createElement("p",{className:"dsm-c-rp-carousel-item-text"},s))}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(173),a=n(93);n(950);class s extends r.PureComponent{constructor(e){super(e),this.check=this.check.bind(this)}check(){const{onChange:e,disabled:t}=this.props,n=!this.props.checked;t||e&&e(n)}render(){const{disabled:e,checked:t,text:n,className:s,theme:l,showChoseIconWhenUnChecked:c}=this.props;return r.createElement("div",{className:o.default("dsm-c-rp-checkbox "+(s||""),{"disabled-checkbox":e},{light:"light"===l}),onClick:this.check},r.createElement("span",{className:o.default("dsm-c-rp-checkbox-viewer",{"checkbox-checked":t,"checkbox-undefined":i.isUndefined(t)&&!c,showChoseIconWhenUnChecked:!t&&c})}),n&&r.createElement("span",{className:o.default("dsm-c-rp-checkbox-text",{win:!a.isMac})},n))}}s.defaultProps={text:""},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(68),s=n(36),l=n(93),c=n(135),u=n(61);n(962);class d extends r.Component{constructor(e){super(e),this.focusedEl=null,this.preventDefaultZoom=e=>{e.ctrlKey&&e.preventDefault()},this.handleWindowMouseUp=()=>{window.removeEventListener("mouseup",this.handleWindowMouseUp),this.focusedEl&&(this.timeOut=window.setTimeout(()=>{const e=document.activeElement;if((!e||e!==this.focusedEl)&&(this.focusedEl.focus(),this.focusedEl instanceof HTMLTextAreaElement||this.focusedEl instanceof HTMLInputElement&&this.selection)){const{start:e,end:t}=this.selection;this.focusedEl.setSelectionRange(e,t),this.selection=void 0}},100))},this.handleWindowKeyDown=e=>{const{onClose:t,onSubmit:n}=this.props;e.keyCode===s.default.VK_ESCAPE?c.PopupManager.manager.getLastModal()===this&&t&&t():e.keyCode===s.default.VK_ENTER&&n&&n()},this.handleTitleMouseDown=()=>{if(!this.props.allowDrag)return;const e=this.selfRef.current.children[0],t=e.getBoundingClientRect(),{offsetTop:n,offsetLeft:r}=e,o=window.innerWidth,i=window.innerHeight,{left:s,top:c}=this.state,u=50-t.width-r,d=o-50-r,h=-n+l.minWindowTop,p=i-50-n;a.dragDelegate((e,t)=>{const n=Math.max(u,Math.min(d,s+t.x)),r=Math.max(h,Math.min(p,c+t.y));this.setState({left:n,top:r})},()=>{this.setState({dragIng:!1})})},this.handleMouseWheel=e=>{this.props.backFade&&e.stopPropagation()},this.renderTitle=()=>{const{title:e,titleClassName:t,showTitleSeparator:n}=this.props,o=!e;return r.createElement("div",{className:i.default("title",t,{hidden:o},!o&&(n?"title-with-separator":"title-without-separator")),onMouseDown:this.handleTitleMouseDown},e&&r.createElement("div",{className:"title-value"},r.createElement("span",null,e)),r.createElement("div",{className:i.default("separator",{hidden:o})}))},this.state={left:0,top:0},this.selfRef=r.createRef()}get isModal(){return!0}UNSAFE_componentWillMount(){document.activeElement&&document.activeElement.blur()}componentDidMount(){this.selfRef.current.focus(),window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("mouseup",this.handleWindowMouseUp),c.PopupManager.manager.addPopup(this),document.addEventListener("wheel",this.preventDefaultZoom,{passive:!1}),this.focusedEl=document.activeElement,(this.focusedEl instanceof HTMLInputElement||this.focusedEl instanceof HTMLTextAreaElement)&&(this.timeOut=window.setTimeout(()=>{if(this.focusedEl){const{selectionStart:e,selectionEnd:t}=this.focusedEl;this.selection={start:e,end:t}}},50))}componentWillUnmount(){window.removeEventListener("keydown",this.handleWindowKeyDown),c.PopupManager.manager.remove(this),document.removeEventListener("wheel",this.preventDefaultZoom),window.removeEventListener("mouseup",this.handleWindowMouseUp),window.clearTimeout(this.timeOut)}handleDialogEventHandle(){}render(){const{children:e,title:t,width:n,height:a,onClose:s,backFade:l,closable:c,contentClassName:d,topDisplay:h,style:p}=this.props,{left:f,top:m}=this.state;return o.createPortal(r.createElement("div",{ref:this.selfRef,className:i.default("dsm-c-rp-dialog popup-with-body",{fade:l,top:h}),onMouseDown:this.handleDialogEventHandle,onClick:this.handleDialogEventHandle,onContextMenu:this.handleDialogEventHandle,onWheel:this.handleMouseWheel},r.createElement("div",{style:Object.assign({width:n,height:a,transform:`translate(${f}px,${m}px) translateZ(0)`},p),className:"dsm-c-rp-dialog-content"},r.createElement("div",{className:i.default("dialog-panel-content")},c&&r.createElement(u.default,{className:"close-button",onClick:s,cls:"close"}),this.renderTitle(),r.createElement("div",{className:i.default("content",d,{fit:!t})},e)))),document.body)}}d.defaultProps={width:500,allowDrag:!0,closable:!0,showTitleSeparator:!1},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(8),a=n(36),s=n(22),l=n(968),c=n(154);n(391);class u extends r.PureComponent{constructor(e){super(e),this.selfRef=r.createRef(),this.inputDom=r.createRef(),this.buttonDom=r.createRef(),this.doPopup=e=>{this.released||this.setState({popup:e,editing:!1})},this.handleWindowMouseDown=e=>{const{editing:t}=this.state;if(t&&this.inputDom.current){const{left:t,top:n,right:r,bottom:o}=this.inputDom.current.getBoundingClientRect(),{pageY:i,pageX:a}=e;if(a>t&&a<r&&i>n&&i<o)return;this.setState({editing:!1})}},this.handleWindowKeyDown=e=>{(this.state.editing&&e.keyCode===a.default.VK_ESCAPE||e.keyCode===a.default.VK_TAB)&&this.setState({editing:!1})},this.handleSelect=e=>{const{onSelect:t}=this.props;this.doPopup(!1),s.PopupManager.manager.locked(),t&&t(e)},this.handleKeyDown=e=>{[a.default.VK_ESCAPE,a.default.VK_TAB,a.default.VK_ENTER].includes(e.keyCode)&&this.doPopup(!1)},this.handleClose=()=>{this.doPopup(!1)},this.handleMouseDown=e=>{var t;const{editOption:n}=this.props;if(n&&n.enabled&&this.buttonDom.current){const{left:t,top:n,right:r,bottom:o}=this.buttonDom.current.getBoundingClientRect(),{pageX:i,pageY:a}=e;if(!(i>t&&i<r&&a>n&&a<o))return void this.setState({editing:!0,popup:!1})}s.PopupManager.manager.locked(),(null===(t=this.props.data)||void 0===t?void 0:t.length)&&this.doPopup(!this.state.popup)},this.handleDropMouseDown=e=>{e.stopPropagation();const{onDropMouseDown:t}=this.props;t&&t(e)},this.handleInputEnter=()=>{},this.handleInputBlur=e=>{this.setState({editing:!1},()=>{const{onInputComplete:t}=this.props;if(t){const{editOption:n}=this.props;let r=e;if("number"===n.editModel){let{min:e,max:t}=n;e&&t&&(e=Math.min(e,t),t=Math.max(n.max,n.min)),e&&(r=Math.max(e,r)),t&&(r=Math.min(t,r))}t(r)}})},this.renderDropDown=()=>{const{popup:e,selectedIndex:t,dropDownWidth:n}=this.state,{data:i,itemRender:a,maxRowCount:s,dropDownClassName:u,itemHeight:d,isInPopup:h,placement:p,theme:f,dropDownAllowHover:m}=this.props;return i&&i.length&&e?r.createElement(l.default,{className:o.default("select-drop",u,{"in-dialog":h,"light-drop":"light"===f}),listClassName:"drop-down-list",selectedIndex:t,selectDom:this.selfRef,data:i,theme:"light"===f?c.ComponentTheme.light:c.ComponentTheme.dark,placement:p,maxWidth:n,maxRowCount:s,itemHeight:d,itemRender:a,allowHover:m,onSelect:this.handleSelect,onClose:this.handleClose,onMouseDown:this.handleDropMouseDown}):null},this.renderSelected=e=>{const{render:t,value:n,placeholder:i,multiple:a}=this.props;if(a)return"—";if(t)return t(e,n);const s=a?"—":(null==e?void 0:e.text)||n,l=s||i;return r.createElement("label",{className:o.default({placeholder:!s})},l)},this.state={popup:!1,selectedIndex:this.doCalculateSelectedIndex(e),dropDownWidth:e.dropDownMaxWidth}}UNSAFE_componentWillReceiveProps(e){this.setState({selectedIndex:this.doCalculateSelectedIndex(e)}),i.sameObject(this.props.data,e.data)||this.setState({popup:!1})}componentWillUnmount(){this.released=!0,window.removeEventListener("mousedown",this.handleWindowMouseDown),window.removeEventListener("keydown",this.handleWindowKeyDown)}componentDidMount(){window.addEventListener("mousedown",this.handleWindowMouseDown),window.addEventListener("keydown",this.handleWindowKeyDown);const{dropDownMaxWidth:e}=this.props,t=this.selfRef.current;if(t&&e){const n=Math.round(t.getBoundingClientRect().width);n>e&&this.setState({dropDownWidth:n})}}doCalculateSelectedIndex(e){const{selected:t,selectedIndex:n,data:r}=e;if(r){if(void 0!==n&&-1!==n)return n;if(void 0!==t)return r.findIndex(e=>e.id===t)}return-1}renderNumberInput(e){const{editOption:t,onInputKeyUp:n}=this.props;return r.createElement(s.InputNumber,{autoFocus:!0,autoSelectWhenFocus:!0,value:e,className:"input",min:t.min,max:t.max,onEnter:this.handleInputEnter,onBlur:this.handleInputBlur,onKeyUp:n})}renderStringInput(e){const{onInputKeyUp:t}=this.props;return r.createElement(s.Input,{autoFocus:!0,autoSelectWhenFocus:!0,value:e,className:"input",onEnter:this.handleInputEnter,onBlur:this.handleInputBlur,onKeyUp:t})}renderInput(e){const{editOption:t,value:n}=this.props;if(t&&t.enabled){const{editModel:r}=t;return"number"===r?this.renderNumberInput(e?parseFloat(e.text):n?parseFloat(n):void 0):this.renderStringInput(e?e.text:n)}return this.renderSelected(e)}render(){const{data:e,width:t,disabled:n,className:i,buttonRender:a,theme:l,hiddenArrow:c}=this.props,{selectedIndex:u,editing:d}=this.state,h=void 0!==u?u:-1,p=e&&h>-1&&h<e.length?e[h]:null;return r.createElement(r.Fragment,null,r.createElement("div",{style:{width:t},className:o.default("dsm-c-rp-select "+(i||""),{disabled:n,"no-border":"no-border"===l,light:"light"===l,"hidden-button":c}),onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,ref:this.selfRef,tabIndex:-1},r.createElement("div",{className:"select-value"},d?this.renderInput(p):this.renderSelected(p)),!c&&r.createElement("div",{className:"button",ref:this.buttonDom},a&&a(),!a&&r.createElement(s.Icon,{cls:"tag_downarrow"}))),this.renderDropDown())}}u.defaultProps={maxRowCount:6,theme:"no-border",dropDownMaxWidth:200,placement:"left",placeholder:"—"},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(175);n(985);class a extends r.Component{constructor(e){super(e),this.scrollNode=r.createRef(),this.contentNode=r.createRef(),this.doAutoScrollToSelected=e=>{if(this.scrollNode.current&&this.contentNode.current){const t=this.scrollNode.current.getScrollTop(),{itemHeight:n}=this.state,r=n||24,o=r*e,i=this.scrollNode.current.getClientHeight();(t>o||t+i<o+r)&&this.scrollNode.current.scrollTop(o)}},this.doCalculateItemHeight=()=>{let{itemHeight:e}=this.props;if(!e&&this.contentNode.current)if(this.contentNode.current.childElementCount){const t=this.contentNode.current.firstChild,{offsetHeight:n}=t;e=Math.round(n)}else e=0;this.state.itemHeight!==e&&this.setState({itemHeight:e})},this.defaultItemRender=(e,t)=>{const n=this.props.maxWidth,{id:i,text:a}=e;return r.createElement("div",{className:o.default("default-list-item",{selected:t})},r.createElement("label",{style:{maxWidth:n-40}},a||i))},this.handleDragStart=(e,t)=>{this.props.allowDrag&&(t.stopPropagation(),this.dragSource=e,t.dataTransfer.setData("custom-list-item-format",JSON.stringify(e)),t.dataTransfer.dropEffect="move",t.dataTransfer.effectAllowed="move",this.setState({dragItem:e}))},this.handleDragEnd=e=>{e.stopPropagation(),this.dragSource=void 0,this.setState({dragItem:void 0,dragOverItem:void 0,dragOverDirection:void 0})},this.handleDragOver=(e,t)=>{t.stopPropagation(),t.preventDefault();const{offsetY:n}=t.nativeEvent;let r="after";n<t.target.offsetHeight/2&&(r="before"),this.setState({dragOverItem:e,dragOverDirection:r})},this.handleDrop=(e,t)=>{t.stopPropagation();const{data:n,onAfterDrop:r}=this.props,{dragOverDirection:o}=this.state,i=n.indexOf(this.dragSource);let a=n.indexOf(e);"after"===o&&(a+=1),a>i&&(a-=1),a!==i&&r&&r(i,a)},this.handleItemClick=(e,t)=>{const{onSelect:n}=this.props;n&&n(e,t)},this.state={itemHeight:e.itemHeight,data:e.data.length<=25?e.data:e.data.slice(0,25)}}componentDidMount(){this.state.data!==this.props.data?this.setState({data:this.props.data},()=>{this.afterMount()}):this.afterMount()}afterMount(){this.doCalculateItemHeight(),this.doAutoScrollToSelected(this.props.selectedIndex||0)}componentDidUpdate(){this.doCalculateItemHeight()}UNSAFE_componentWillReceiveProps(e){e.selectedIndex!==this.props.selectedIndex&&this.doAutoScrollToSelected(e.selectedIndex||0)}get contentWidth(){if(this.contentNode.current){let e=0;const t=this.contentNode.current.children;for(let n=0,r=t.length;n<r;n++){const r=t[n],o=t[n].firstChild;e=(null==o?void 0:o.nodeType)===Node.ELEMENT_NODE?Math.max(e,o.offsetWidth):Math.max(e,r.offsetWidth),e=Math.min(e,this.props.maxWidth||e)}return e}return 0}renderItem(){const{data:e,selectedIndex:t,itemRender:n,allowDrag:i}=this.props,{itemHeight:a,dragOverDirection:s,dragOverItem:l,dragItem:c}=this.state,u=n||this.defaultItemRender,d={};return a&&(d.height=a,d.lineHeight=a+"px"),r.createElement("div",{ref:this.contentNode,className:"list-content"},e&&e.map((e,n)=>r.createElement(r.Fragment,{key:`${e.id}-${n}`},r.createElement("div",{draggable:i,className:o.default("list-item",{selected:n===t,disabled:e.disabled,"drag-start":e===c,"drag-over":e===l},s),style:d,onClick:this.handleItemClick.bind(this,e,n),onDragStart:this.handleDragStart.bind(this,e),onDragOver:this.handleDragOver.bind(this,e),onDrop:this.handleDrop.bind(this,e),onDragEnd:this.handleDragEnd},u(e,t===n)),e.showSeparator&&r.createElement("div",{className:"separator"}))))}render(){const{maxRowCount:e,data:t,autoHeight:n,className:a,allowHover:s}=this.props,{itemHeight:l}=this.state;let c;return c=n&&t?l||24*t.length:e?Math.min(e,t?t.length:0)*(l||24):"auto",r.createElement("div",{className:o.default("dsm-c-rp-list",a,{"allow-hover":s}),style:{height:c}},r.createElement(i.default,{hiddenHorizontalScrollBar:!0,className:"list-scroll",ref:this.scrollNode},this.renderItem()))}}a.defaultProps={selectedIndex:-1,itemHeight:30,maxWidth:200},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbars=void 0;var r,o=n(969),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,t.Scrollbars=i.default},function(e,t,n){var r=n(972),o=n(973),i={float:"cssFloat"},a=n(976);function s(e,t,n){var s=i[t];if(void 0===s&&(s=function(e){var t=o(e),n=r(t);return i[t]=i[e]=i[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=a(s,n)}}function l(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}function c(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:l(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=c,e.exports.set=c,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=s(e,n||""),t}),{}):s(e,t||"")}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(152),i=n(7),a=n(22),s=n(16),l=n(36);var c;n(992),function(e){e.RGB="rgb",e.Hex="hex",e.HSV="hsv",e.HSL="hsl"}(c||(c={}));const u=[{id:c.RGB,text:"RGB"},{id:c.Hex,text:"Hex"},{id:c.HSV,text:"HSV"},{id:c.HSL,text:"HSL"}];class d extends r.Component{constructor(e){super(e),this.self=r.createRef(),this.handleHexChange=e=>{const{onChanged:t}=this.props,{stateColor:n,hex:r}=this.state;if(s.hexChipPattern.test(e)){const o=s.autoCompleHex(e);if(r!==o){const e=s.hex2Rgb(o);this.setState({hex:o},()=>{t&&t(Object.assign(Object.assign({},e),{a:this.dividedBy100("a",n.alpha)}))})}}},this.handleRgbaChange=(e,t)=>{const{onChanged:n}=this.props;this.updateStateColor(e,t,n)},this.rgbaChangeMap=e=>i.partial(this.handleRgbaChange,e),this.handleCheckHex=e=>s.hexChipPattern.test(e),this.inputDoms=[],this.setInputRef=(e,t)=>{t&&(this.inputDoms[e]=t)},this.inputRefMap=e=>i.partial(this.setInputRef,e),this.handleInputKeyDown=(e,t)=>{var n;e.keyCode===l.default.VK_TAB?(e.preventDefault(),null===(n=this.inputDoms[t])||void 0===n||n.blur(),this.timeout?window.clearTimeout(this.timeout):this.timeout=window.setTimeout(()=>{var e;const n=t===this.inputDoms.length-1?0:t+1;null===(e=this.inputDoms[n])||void 0===e||e.focus(),this.timeout=void 0},150)):e.keyCode===l.default.VK_ESCAPE&&this.props.onEsc&&this.props.onEsc()},this.handleSubmit=(e,t)=>{const{type:n}=this.state;n!==c.Hex&&this.updateStateColor(e,t,this.props.onSubmit)},this.getNewRGBA=(e,t,n)=>{const{stateColor:r,type:a}=this.state;if(a===c.Hex)return;const s=i.cloneDeep(n);if("a"===e)s.a=this.dividedBy100("a",t);else{const n=r[a],i=Object.assign({},n,{[e]:this.dividedBy100(e,t)});Object.assign(s,o(i).toRgb(),{a:s.a})}return s},this.colorSubmitMap=e=>i.partial(this.handleSubmit,e),this.handleHexSubmit=e=>{const t=Object.assign(Object.assign({},s.hex2Rgb(e)),{a:this.dividedBy100("a",this.state.stateColor.alpha)});this.props.onSubmit(t)},this.handleColorFormatChange=e=>{const{id:t}=e;this.state.type!==t&&this.setState({type:t})},this.handleHexInputKeyDown=e=>{this.handleInputKeyDown(e,0)},this.handleAlphaInputKeyDown=e=>{this.handleInputKeyDown(e,4)},this.renderTypeSelect=()=>{const{type:e}=this.state;return r.createElement("div",{className:"color-select"},r.createElement("div",{className:"inner-block"},r.createElement(a.Select,{width:50,selectedIndex:u.findIndex(t=>t.id===e),onSelect:this.handleColorFormatChange,data:u})))},this.renderHexInput=()=>{const{hex:e}=this.state;return r.createElement("div",{className:"color-hex"},r.createElement("div",{className:"inner-block"},r.createElement(a.Input,{ref:this.inputRefMap(0),prefix:"#",filterChar:"abcdefABCDEF1234567890",value:e,width:70,maxlength:6,autoSelectWhenFocus:!0,disabled:this.props.disabled,autoFocus:this.props.autoFocusToColorValue,onCheck:this.handleCheckHex,onBlur:this.handleHexChange,onKeyDown:this.handleHexInputKeyDown,onEnter:this.handleHexSubmit}),r.createElement("label",null,"HEX")))},this.renderAlphaInput=()=>{const{stateColor:e}=this.state;return r.createElement("div",{className:"color-alpha"},r.createElement("div",{className:"inner-block"},r.createElement(a.InputNumber,{ref:this.inputRefMap(4),value:e.alpha,width:40,suffix:"%",autoSelectWhenFocus:!0,disabled:this.props.disabled,onBlur:this.rgbaChangeMap("a"),onKeyDown:this.handleAlphaInputKeyDown,onEnter:this.colorSubmitMap("a"),min:0,max:100,step:1}),r.createElement("label",null,"Alpha")))},this.multiplyBy100=(e,t)=>["a","s","v","l"].includes(e)?Math.round(100*t):t,this.dividedBy100=(e,t)=>["a","s","v","l"].includes(e)?t/100:t,this.getMaxByKey=e=>"h"===e?360:["r","g","b"].includes(e)?255:100,this.renderRGBInput=()=>{const{stateColor:e,type:t}=this.state;if(t===c.Hex)return;let n=[];switch(t){case c.HSL:n=["h","s","l"];break;case c.HSV:n=["h","s","v"];break;case c.RGB:default:n=["r","g","b"]}const o=e[t];return r.createElement("div",{className:"color-rgb"},n.map((e,t)=>r.createElement("div",{key:e,className:"inner-block"},r.createElement(a.InputNumber,{ref:this.inputRefMap(t+1),value:this.multiplyBy100(e,o[e]),width:30,autoSelectWhenFocus:!0,disabled:this.props.disabled,onBlur:this.rgbaChangeMap(e),onKeyDown:e=>{this.handleInputKeyDown(e,t+1)},onEnter:this.colorSubmitMap(e),min:0,max:this.getMaxByKey(e),step:1}),r.createElement("label",null,e.toLocaleUpperCase()))))},this.state={stateColor:e.color,hex:s.rgb2Hex(e.color.rgb),type:c.RGB}}componentDidMount(){this.setTabIndex()}UNSAFE_componentWillReceiveProps(e){if(!i.isEqual(e.color,this.props.color)){const t=s.rgb2Hex(e.color.rgb),n=this.mergeStateFromProps(e.color);this.setState({stateColor:n,hex:s.compareHex(t,this.state.hex)?this.state.hex:t})}}mergeStateFromProps(e){const{stateColor:t}=this.state,n=i.cloneDeep(e);return["rgb","hsv","hsl"].forEach(e=>{const r=e;o(n[r]).toHex()===o(t[r]).toHex()&&(n[r]=t[r])}),n}setTabIndex(){var e;const t=null===(e=this.self.current)||void 0===e?void 0:e.querySelectorAll("input");t&&t.forEach((e,t)=>{e.tabIndex=t+1e4})}updateStateColor(e,t,n){const{stateColor:r,type:o}=this.state,a=Object.assign(Object.assign({},r.rgb),{a:this.dividedBy100("a",r.alpha)}),s=this.getNewRGBA(e,t,a);if(!s)return;if(i.isEqual(a,s))return;if(o===c.Hex)return void(n&&n(s));const l=i.cloneDeep(r);l[o][e]=this.dividedBy100(e,t),this.setState({stateColor:l},()=>{n&&n(s)})}render(){return r.createElement("div",{className:"dsm-c-rp-color-input",ref:this.self},this.renderHexInput(),this.renderRGBInput(),this.renderAlphaInput())}}d.defaultProps={autoFocusToColorValue:!0},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(2),a=n(173),s=n(7),l=n(36),c=n(76);n(1009);const u=/^-?\d*\.?\d+$/;class d extends r.PureComponent{constructor(e){super(e),this.dom=r.createRef(),this.isEscKey=!1,this.submitWheBlur=!1,this.reformZero=e=>0===parseFloat(e)?"0":e,this.isNumberKey=e=>{if(e>=48&&e<=57)return!0;if(e>=96&&e<=105)return!0;return new Set([8,9,12,13,37,38,39,40,46,108,109,110,189,190]).has(e)},this.validateNumber=e=>{const{max:t,min:n,decimalCount:r}=this.props;let o=e;return a.isNumber(o)&&(o=this.keepDecimal(o,r||0),a.isNumber(t)&&(o=Math.min(t,o)),a.isNumber(n)&&(o=Math.max(n,o))),o},this.doApplyValueToState=e=>{const{decimalCount:t,max:n,min:r}=this.props;if(u.test(e)){const o=parseFloat(e);if((s.isUndefined(n)||o<=n)&&(s.isUndefined(r)||o>=r)){const n=this.validateNumber(parseFloat(e));this.setState({inputValue:""+this.keepDecimal(n,t||0)},()=>{this.doNeedChange()})}else this.setState({inputValue:e})}else this.setState({inputValue:e})},this.optimizeToFixed=e=>"-0"===e?"0":e,this.handleInputChanged=e=>{const{value:t}=e.target;this.doApplyValueToState(t)},this.doNeedChange=e=>{const{onChange:t,value:n}=this.props,r=a.isNumber(e)?e:parseFloat(this.state.inputValue);t&&void 0!==r&&n!==r&&t(r)},this.handleKeyDown=e=>{e.keyCode!==l.default.VK_TAB&&e.stopPropagation(),c.stopBubbleWhenSortCut(e);const{inputValue:t}=this.state,{value:n,decimalCount:r,min:o,allowAutoFixMinValue:i}=this.props,s=e.keyCode;this.isNumberKey(s)||e.ctrlKey||e.preventDefault(),0!==r||s!==l.default.VK_DOT&&s!==l.default.VK_NUM_DOT||e.preventDefault();const{onKeyDown:d,onEnter:h}=this.props;this.isEscKey=!1;const p=s===l.default.VK_ENTER,f=u.test(t);if(i&&""===t)this.setState({inputValue:""+(a.isNumber(o)&&o>0?o:0)},()=>{h&&h(parseInt(this.state.inputValue))});else{if(p){if(f){const e=this.validateNumber(parseFloat(t));h&&h(e)}else"number"==typeof n&&h&&h(n);this.dom.current&&this.blur()}else if(s===l.default.VK_ESCAPE&&(this.isEscKey=!0,this.dom.current))return void this.blur();d&&d(e)}},this.handleKeyUp=e=>{e.stopPropagation(),this.props.onKeyUp&&this.props.onKeyUp(e)},this.handleFocus=e=>{const{onFocus:t,autoSelectWhenFocus:n}=this.props,r=Object.assign({},e);t&&t(r),this.setState({isFocus:!0},()=>{n&&this.select()})},this.handleBlur=e=>{const{value:t}=e.target,{value:n,decimalCount:r,min:o,allowAutoFixMinValue:i,onBlur:s}=this.props;if(this.setState({isFocus:!1}),this.isEscKey)"number"==typeof n&&(this.setState({inputValue:""+this.keepDecimal(n,r||0)}),s&&s(n));else{if(i&&""===this.state.inputValue)return void this.setState({inputValue:""+(a.isNumber(o)&&o>0?o:0)},()=>{s&&s(parseInt(this.state.inputValue))});if(u.test(t)){const e=this.validateNumber(parseFloat(t));this.setState({inputValue:this.reformZero(e.toString(10))}),this.submitWheBlur=!0,this.doNeedChange(e),s&&s(e)}else"number"==typeof n&&(this.setState({inputValue:""+this.keepDecimal(n,r||0)}),s&&s(n))}},this.focus=()=>{this.dom.current.focus()},this.blur=()=>{this.dom.current.blur()},this.select=()=>{this.dom.current.select()};let t=e.value;this.state={inputValue:s.isUndefined(t)?"":""+o.round(t,e.decimalCount||0),isFocus:!1,maxLength:this.calcMaxLen(e.max)}}getBoundingClientRect(){return this.dom.current.getBoundingClientRect()}calcMaxLen(e){if(!s.isUndefined(e))return(""+e).length}UNSAFE_componentWillReceiveProps(e){let t="";s.isUndefined(e.value)||(t=""+o.round(e.value,e.decimalCount||0)),e.value!==this.props.value?this.setState({inputValue:t}):this.state.isFocus&&!this.submitWheBlur||this.setState({inputValue:t}),e.max!==this.props.max&&this.setState({maxLength:this.calcMaxLen(e.max)}),this.submitWheBlur=!1}keepDecimal(e,t){return e>0?Math.floor(e*Math.pow(10,t))/Math.pow(10,t):Math.ceil(e*Math.pow(10,t))/Math.pow(10,t)}componentDidMount(){this.resetFocus()}resetFocus(){const{autoFocus:e,autoSelectWhenFocus:t}=this.props;e&&setTimeout(()=>{var e,n;null===(e=this.dom.current)||void 0===e||e.focus(),t&&(null===(n=this.dom.current)||void 0===n||n.select())},30)}componentWillUnmount(){if(this.state.isFocus){const e=this.dom.current.value,{value:t,onChange:n,onBlur:r}=this.props;if(u.test(e)){const o=this.validateNumber(parseFloat(e));n&&void 0!==o&&t!==o&&n(o),r&&void 0!==o&&r(o)}}}render(){const{inputValue:e,isFocus:t,maxLength:n}=this.state,{width:o,disabled:a,readOnly:s,className:l,style:c,placeHolder:u,step:d,them:h,min:p,max:f,prefix:m,suffix:g,colorTheme:v}=this.props;return r.createElement("div",{className:i.default("dsm-c-rp-number-input",l,v,{readOnly:s,disabled:a,focus:t}),style:Object.assign(Object.assign({},c||{}),{width:o}),onClick:this.focus},m&&r.createElement("span",{className:"input-prefix"},m),r.createElement("input",{className:i.default({"no-border":"no-border"===h}),ref:this.dom,readOnly:s,disabled:a,placeholder:u||"",type:"number",min:p,max:f,maxLength:n,step:d,value:e,onChange:this.handleInputChanged,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp}),g&&r.createElement("span",{className:"input-suffix"},g))}}d.defaultProps={readOnly:!1,disabled:!1,decimalCount:0,them:"normal",step:1,autoFocus:!1,autoSelectWhenFocus:!1,allowAutoFixMinValue:!1},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(57),s=n(135),l=n(61),c=n(75),u=n(93),d=n(287);n(1020),n(383);class h extends r.Component{constructor(e){super(e),this.handleItemMouseEnter=e=>{const t=e.currentTarget,n=t.querySelector(".children-menu"),{childItemTop:r}=this.state;if(n){const{height:e,bottom:o}=n.getBoundingClientRect(),{innerHeight:i}=window;if(o>i){const n=10-e+t.offsetHeight,o=t.dataset.id;n!==r[o]&&this.setState({childItemTop:Object.assign(Object.assign({},r),{[o]:Math.round(n)})})}}},this.handleItemMouseLeave=e=>{const t=e.target.dataset.id;if(t){const e=Object.assign({},this.state.childItemTop);void 0!==e[t]&&(delete e[t],this.setState({childItemTop:e}))}},this.renderItem=this.renderItem.bind(this),this.handleItemClick=this.handleItemClick.bind(this),this.doAdjustPosition=this.doAdjustPosition.bind(this),this.doApplyPosition=this.doApplyPosition.bind(this),this.oldPosition=e.position,this.self=e.forwardedRef,this.state={opacity:0,position:e.position||{x:0,y:0},direction:"right",childItemTop:{}}}UNSAFE_componentWillMount(){s.PopupManager.manager.closeAllUnModal()}componentDidMount(){this.doAdjustPosition(),this.setState({opacity:1})}componentDidUpdate(){this.doAdjustPosition()}UNSAFE_componentWillReceiveProps(e){const{position:t}=e,{x:n,y:r}=t||{x:0,y:0};this.oldPosition&&n===this.oldPosition.x&&r===this.oldPosition.y||this.setState({opacity:0},()=>{this.doApplyPosition({x:n,y:r}),this.setState({opacity:1})})}doApplyPosition(e){this.oldPosition=e,this.setState({position:e})}doAdjustPosition(){if(!this.self.current)return;const e=this.self.current.getBoundingClientRect(),{width:t,height:n,right:r,bottom:o}=e,{position:i,direction:a}=this.state;let{x:s,y:l}=i,c=a;const d=window.innerWidth;r>d&&(s-=t),c=r+t>d?"left":"right",o>window.innerHeight&&(l-=n);const h=u.minWindowTop;l<h&&(l=h),l=Math.round(l),s=Math.round(s),i.x===s&&i.y===l&&c===a||this.setState({position:{x:s,y:l},direction:c})}handleItemClick(e,t){if(!t.disabled&&e.button===c.MouseButton.Left){if(t.children)return;this.props.onItemClick&&this.props.onItemClick(t,e)}}doBuilderItems(e){const t=e.filter(e=>!e.hidden);for(;t&&t.length&&"-"===t[0].text;)t.shift();let n=t?t.length-1:-1;for(;t&&t.length&&"-"===t[n].text&&(t.pop(),n=t.length-1,-1!==n););for(n=1;n<t.length;)"-"===t[n].text&&"-"===t[n-1].text&&(t.splice(n,1),n-=1),n++;return t}renderItem(e){const{useCheck:t,iconPosition:n,customItemClassName:o}=this.props;return e.map((e,s)=>{var c;if("-"===e.text)return r.createElement("div",{key:"separator_"+s.toString(),className:"separator"});const u=e.children?this.doBuilderItems(e.children):void 0;if((null===(c=e.children)||void 0===c?void 0:c.length)&&!(null==u?void 0:u.length))return null;const h=o?o(e):void 0;return r.createElement("div",{key:e.id,"data-id":e.id,className:i.default("item",h,{disabled:e.disabled,enabled:!e.disabled,hidden:e.hidden,selected:e.selected}),onMouseDown:t=>{this.handleItemClick(t,e)},onClick:e=>{e.stopPropagation()},onContextMenu:e=>{e.preventDefault()},onMouseEnter:this.handleItemMouseEnter,onMouseLeave:this.handleItemMouseLeave},r.createElement("div",{className:i.default("title",{reverse:"right"===n})},t&&r.createElement(l.default,{size:12,cls:this.props.checkIcon,theme:"tag",className:"checker"+(e.checked?"":" checker-no")}),e.icon&&r.createElement(l.default,{cls:e.icon,theme:"tag",className:"menu-item-icon"}),r.createElement("div",{className:"text"},r.createElement(d.default,{dot:e.dot,count:e.count,dotOffset:["50%",10],position:"right"},r.createElement("span",null,e.text))),e.shortCut&&r.createElement("kbd",{className:i.default("shortcut",{mac:a.isMacOS})},e.shortCut),(null==u?void 0:u.length)?r.createElement("i",{className:"children-arrow mockplus_rp mockplus_rp_Right"}):null,(null==u?void 0:u.length)?r.createElement("div",{className:i.default("children-menu",this.state.direction),style:{top:this.state.childItemTop[e.id]}},this.renderItem(u)):null),e.content&&r.createElement("p",{className:"content"},e.content))})}render(){const e=this.doBuilderItems(this.props.items);return e.length>0&&this.state.position?o.createPortal(r.createElement("div",{ref:this.self,className:i.default("dsm-c-rp-popup-menu popup-with-body",this.props.className,this.props.theme,{"in-popup":this.props.isInPopup},{animation:0!==this.state.opacity}),style:{left:this.state.position.x,top:this.state.position.y,minWidth:this.props.width,opacity:this.state.opacity}},this.renderItem(e)),document.body):null}}h.defaultProps={position:{x:0,y:0},useCheck:!1,checkIcon:"icon_confirm",iconPosition:"left"},t.default=s.default(h)},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSymbol=void 0;const r=n(0),o=n(7),i=n(30),a=n(33),s=n(6);t.makeSymbol=function(e,t){const{left:n,top:r,width:o,height:l}=e;return a.makeCommonComponent(i.getNewID(),s.CSymbol,{position:{x:n,y:r},size:{width:o,height:l},components:t})};class l extends r.Component{render(){const{opacity:e}=this.props.comp,t=o.isUndefined(e)?1:e/100;return r.createElement("div",{style:{opacity:t},className:"lib-comp-symbol"},this.props.children)}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPanelConfig=t.makeContentPanel=void 0;const r=n(0),o=n(2),i=n(7),a=n(4),s=n(12),l=n(33),c=n(14),u=n(10),d=n(32),h=n(20),p=n(6),f=n(6),m=n(115);n(1079),n(1080),t.makeContentPanel=function(e){return l.makeCommonComponent(e,f.CContentPanel,{size:{width:300,height:200},sealed:!0,properties:{fill:{type:d.FillType.solid,color:"#fff",disabled:!0},stroke:{thickness:1,color:h.DefaultStrokeColor,disabled:!0}},value:[]})},t.ContentPanelConfig={type:p.CContentPanel,name:a.default("resource.components.contentPanel"),thumb:{spriteIconClass:u.SpriteThumb.ContentPanel.className,dragPosition:u.SpriteThumb.ContentPanel.position},editor:{onChildSelectedChange:function(e,t,n){let r={do:{},undo:{}};const o=e.components.find(e=>e.selected);return n&&(null==o?void 0:o.id)!==t.id?(e.components.forEach(e=>{e.selected&&(r.do[e.id]=[s.Ops.replace("/selected",!1)],r.undo[e.id]=[s.Ops.replace("/selected",!0)]),e.id===t.id&&(r.do[e.id]=[s.Ops.replace("/selected",!0)],r.undo[e.id]=[s.Ops.replace("/selected",!1)])}),r):null}}};class g extends r.Component{constructor(e){super(e)}render(){var e,t,n;const{comp:s,isPreview:l}=this.props,{size:u,properties:d}=s,h=c.StyleHelper.initCSSStyleParser(d),p=i.isUndefined(s.opacity)?1:s.opacity/100,f=0===p,g=s.getTransition();let v;v=d.stroke&&d.stroke.disabled?{}:h.getStrokeStyle();const y=!l&&(null===(e=d.fill)||void 0===e?void 0:e.disabled)&&(null===(t=d.stroke)||void 0===t?void 0:t.disabled);return r.createElement("div",{className:o.default("lib-comp-content-panel",{preview:l,editing:!l,"place-border":y}),style:Object.assign(Object.assign(Object.assign({opacity:p,transition:g},h.getRadiusStyle(u)),v),u)},!(null===(n=d.fill)||void 0===n?void 0:n.disabled)&&!f&&r.createElement(m.default,{size:u,properties:d,transition:g}),l&&this.props.children,!l&&s.document&&s.components.map(e=>{let t=!1,n=s.document.getFragmentNameByID(e.value);return""===n&&(n=a.default("property.interaction.invalidFragment"),t=!0),r.createElement("div",{key:e.id,className:"content-panel-item-name"},r.createElement("label",{className:o.default({invalid:t})},n))}),!l&&!s.components.length&&r.createElement("div",{className:"content-panel-operation-tips"},a.default("tips.contentPanelTips")))}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeGroup=void 0;const r=n(0),o=n(7),i=n(2),a=n(30),s=n(40),l=n(43),c=n(33),u=n(6);n(1081),t.makeGroup=function(e,t){return c.makeCommonComponent(a.getNewID(),u.CGroup,{name:l.getDefaultComponentName(u.CGroup),position:{x:e.left,y:e.top},size:{width:e.width,height:e.height},layout:{responsive:!1,auto:!0,fixedWidth:!1,fixedHeight:!1,horizontal:s.HorizontalAlign.Auto,vertical:s.VerticalAlign.Auto},components:t})};class d extends r.Component{render(){const{comp:e,isPreview:t}=this.props,{opacity:n,size:a}=e,s=o.isUndefined(n)?1:n/100;let l=Object.assign({opacity:s},a);return r.createElement("div",{className:i.default("lib-comp-group",{preview:t}),style:l},this.props.children)}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSelectPanel=void 0;const r=n(0),o=n(2),i=n(7),a=n(30),s=n(33),l=n(107),c=n(6);function u(e,t=!1){const n=Math.round(93.75);return l.makeCanvas(a.getNewID(),{position:{x:n*e,y:0},size:{width:n,height:30},properties:{container:{scroll:!0,showScroll:!0,hidden:!0},layout:{direction:"horizontal"}},selected:t})}n(1082),t.makeSelectPanel=function(e,t){return t?s.makeCommonComponent(e,c.CSelectPanel,t):s.makeCommonComponent(e,c.CSelectPanel,{size:{width:375,height:30},properties:{layout:{direction:"horizontal",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0,hidden:!0}},components:[u(0,!0),u(1),u(2),u(3)],select:{enabled:!0,target:"child",minCount:0,maxCount:1,reversible:!0,autoUnselect:!0}})};class d extends r.Component{render(){const{comp:e}=this.props,{properties:t,size:n}=e,{layout:a}=t,{direction:s,verticalAlign:l,horizontalAlign:c}=a||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center"},u=Object.assign({opacity:i.isUndefined(e.opacity)?1:e.opacity/100,transition:e.getTransition()},n);return r.createElement("div",{style:u,className:o.default(`lib-comp-select-panel ${l||""} ${c||""}`,{vertical:"vertical"===s,horizontal:"horizontal"===s})},this.props.children)}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectBoxConfig=t.makeSelect=void 0;const r=n(40),o=n(48),i=n(23),a=n(12),s=n(32),l=n(20),c=n(4),u=n(30),d=n(20),h=n(10),p=n(24),f=n(33),m=n(6);function g(){return f.makeCommonComponent(u.getNewID(),m.CCanvasPanel,{alias:"drop-down",name:"dropDown",hidden:!0,sealed:!0,position:{x:0,y:31},size:{width:150,height:142},layout:{auto:!1,responsive:!0,fixedWidth:!1,fixedHeight:!0,vertical:r.VerticalAlign.Bottom,horizontal:r.HorizontalAlign.LeftAndRight},properties:{shadow:{x:0,y:3,blur:6,color:l.ShadowColor,disabled:!1},fill:{type:s.FillType.solid,color:l.WhiteColor,disabled:!1},stroke:{thickness:1,color:l.LightGrayColor,disabled:!1},itemHoverFill:{prop:"fill",name:c.default("property.propertyNames.hoverFill"),type:s.FillType.solid,color:l.SilverWhiteColor,disabled:!1},itemSelectFill:{prop:"fill",name:c.default("property.propertyNames.checkedBgcolor"),type:s.FillType.solid,color:l.LightGrayColor,disabled:!1},textStyle:{textAlign:o.TextAlign.left,color:d.DefaultTextColor,fontSize:14,fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1}},itemSelectTextStyle:{prop:"textStyle",name:c.default("property.propertyNames.checkedText"),textAlign:o.TextAlign.left,color:d.DefaultTextColor,fontSize:14,fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1}}},components:[f.makeCommonComponent(u.getNewID(),m.CListLayoutPanel,{alias:"list",name:"list",position:{x:1,y:10},size:{width:148,height:122},layout:{auto:!0,responsive:!0,fixedWidth:!1,fixedHeight:!1,vertical:r.VerticalAlign.Top,horizontal:r.HorizontalAlign.LeftAndRight},properties:{layout:{hidden:!0,direction:"vertical",horizontalAlign:"left"},cell:{disabled:!0,name:c.default("property.propertyNames.lineHeight"),rowHeight:30,ratioHeight:!1,ratioWidth:!1},container:{scroll:!0,showScroll:!0,disabled:!1}},select:{minCount:0,maxCount:1,target:"child",reversible:!1,autoUnselect:!0,enabled:!0},components:[1,2,3,4].map(e=>function(e,t,n=!1){return f.makeCommonComponent(u.getNewID(),m.CCanvasPanel,{name:"listItem",size:{width:148,height:30},position:{x:1,y:t},layout:{auto:!0,responsive:!0,fixedWidth:!1,fixedHeight:!0,vertical:r.VerticalAlign.Top,horizontal:r.HorizontalAlign.LeftAndRight},selected:n,properties:{border:{disabled:!0,hidden:!0},fill:{ref:"@properties.fill"}},states:{[p.PredefinedStates.hover]:{enabled:!0,properties:{fill:{ref:"@properties.itemHoverFill"}}},[p.PredefinedStates.checked]:{enabled:!0,properties:{fill:{ref:"@properties.itemSelectFill"}}}},components:[f.makeCommonComponent(u.getNewID(),m.CPureText,{position:{x:8,y:5},size:{height:20,width:130},autoSize:!1,layout:{auto:!1,responsive:!0,fixedWidth:!1,fixedHeight:!0,vertical:r.VerticalAlign.Middle,horizontal:r.HorizontalAlign.LeftAndRight},properties:{textStyle:{ref:"@properties.textStyle"}},states:{[p.PredefinedStates.checked]:{enabled:!0,properties:{textStyle:{ref:"@properties.itemSelectTextStyle"}}}},value:e})]})}(`${c.default("resource.componentsText.optionText")} ${e}`,30*(e-1),1===e))})]})}t.makeSelect=function(e){return f.makeCommonComponent(e,m.CSelect,{_id:e,alias:"select",size:{width:150,height:30},properties:{layout:{direction:"vertical",hidden:!0},textStyle:{color:d.DefaultTextColor,fontSize:14,fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},textAlign:o.TextAlign.left},border:{bottom:!0,top:!0,left:!0,right:!0},stroke:{cap:i.StrokeLineCap.Butt,color:d.DefaultStrokeColor1,disabled:!1,join:i.StrokeLineJoin.Miter,mode:"custom",thickness:1,position:i.StrokePosition.inner},fill:{type:s.FillType.solid,color:l.DefaultWhiteFillColor,disabled:!1},radius:{topLeft:2,topRight:2,bottomLeft:2,bottomRight:2,isPercent:!1,disabled:!1},iconColor:{name:c.default("property.propertyNames.icon"),prop:"fill",type:s.FillType.solid,color:d.DefaultIconColor,disabled:!1},placeholder:{prop:"string",name:c.default("property.propertyNames.placeholder"),value:""}},value:c.default("resource.componentsText.optionText")+" 1",states:{[p.PredefinedStates.disabled]:{enabled:!0,properties:{textStyle:{color:d.DisabledTextColor},fill:{type:s.FillType.solid,color:l.DisabledWhiteFillColor}}}},sealed:!0,components:[f.makeCommonComponent(u.getNewID(),m.CCanvasPanel,{alias:"main",name:"combo",position:{x:0,y:0},size:{width:150,height:30},layout:{auto:!0,responsive:!0,fixedWidth:!1,fixedHeight:!1,vertical:r.VerticalAlign.TopAndBottom,horizontal:r.HorizontalAlign.LeftAndRight},properties:{textStyle:{ref:"@properties.textStyle"},fill:{ref:"@properties.fill"},radius:{ref:"@properties.radius"},border:{ref:"@properties.border"}},value:"@value",components:[f.makeCommonComponent(u.getNewID(),m.CPath,{position:{x:136,y:13},value:{closed:!0,data:[{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:0,y:0}},{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:8,y:0}},{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:4,y:4}}]},size:{width:8,height:4,lockedRatio:!0},layout:{auto:!1,responsive:!0,fixedWidth:!0,fixedHeight:!0,vertical:r.VerticalAlign.Middle,horizontal:r.HorizontalAlign.Right},rotate:0,properties:{fill:{ref:"@properties.iconColor"},stroke:{color:{a:1,b:119,g:119,r:119},disabled:!0}}}),f.makeCommonComponent(u.getNewID(),m.CPureText,{autoSize:!1,position:{x:8,y:5},size:{height:20,width:120},layout:{auto:!1,responsive:!0,fixedWidth:!1,fixedHeight:!1,vertical:r.VerticalAlign.Middle,horizontal:r.HorizontalAlign.LeftAndRight},properties:{textStyle:{ref:"@properties.textStyle"}},value:"@value"})]}),g()]})},t.SelectBoxConfig={type:m.CSelect,thumb:{spriteIconClass:h.SpriteThumb.Select.className,dragPosition:h.SpriteThumb.Select.position},isList:!0,isTextComp:!0,name:c.default("resource.components.select"),editor:{onChildSelectedChange:function(e,t,n){const r=e,o=r.getComponentByAlias("list",!0),i=r.getComponentByAlias("main",!0);let s=null;if(o){s={do:{},undo:{}};const r=o.components.find(e=>e.selected);if(r){const e=r.changeStateEnabled(p.PredefinedStates.checked,!1);e&&(e.do.push(a.Ops.replace("./selected",!1)),e.undo.push(a.Ops.replace("./selected",!0)),s.do[r.id]=e.do,s.undo[r.id]=e.undo)}if(i){const r=i.components.find(e=>e.type===m.CPureText),o=t.components.find(e=>e.type===m.CPureText);let l={do:{},undo:{}};if(r.isRefValue())i.isRefValue()||(l.do[i.id]=[a.Ops.replace("./value","@value")]),l.do[e.id]=[a.Ops.replace("./value",n?o.value:"")],l.undo[e.id]=[a.Ops.replace("./value",e.value)];else{const e="/value";l.do[r.id]=[a.Ops.replace(e,o.value)],l.undo[r.id]=[a.Ops.replace(e,r.value)]}Object.keys(l.do).forEach(e=>{s.do[e]=[...s.do[e]||[],...l.do[e]],s.undo[e]=[...s.undo[e]||[],...l.undo[e]||[]]})}}return s},onChildValueChange:function(e,t){if(!t)return null;const n=t.nearestSealedComponent,r={do:{},undo:{}};"drop-down"===(null==n?void 0:n.alias)&&(null==n?void 0:n.selected)&&n.value&&(r.do[n.id]=[a.Ops.replace("./value",void 0)]);const o=null==n?void 0:n.nearestSealedComponent;return o&&(null==n?void 0:n.selected)&&(r.do[o.id]=[a.Ops.replace("./value",e)],r.undo[o.id]=[a.Ops.replace("./value",o.value)]),r},onPropertyUpdate:function(e,t,n){if("placeholder"===t){const t=n.value;if(!t)return null;const r=e,o=r.getComponentByAlias("list");if(!o)return null;const i=o.components.find(e=>e.selected);if(!i)return null;const s=r.getComponentByAlias("main"),{id:l}=i,c="/selected",u="/value",d=null==s?void 0:s.isRefValue(),h=d?"":s.id,p=d?"":s.value,f=d?{}:{[h]:[a.Ops.replace(u,t)]},m=d?{}:{[h]:[a.Ops.replace(u,p)]};return{do:Object.assign({[l]:[a.Ops.replace(c,!1)],[e.id]:[a.Ops.replace(u,"")]},f),undo:Object.assign({[l]:[a.Ops.replace(c,!0)],[e.id]:[a.Ops.replace(u,e.value)]},m)}}return null}},preview:{onTriggerState:function(e,t,n){if(n!==p.PredefinedStates.checked)return null;let r=void 0;if(t.isContainer&&(r=t.getFirstChildComponentByType(m.CPureText)),!r)return null;let o=void 0;const i=e.getComponentByAlias("main");return i&&(o=i.getFirstChildComponentByType(m.CPureText)),o?{[o.id]:[a.Ops.replace("./value",r.value)]}:null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderConfig=t.makeSlider=void 0;const r=n(16),o=n(12),i=n(40),a=n(32),s=n(4),l=n(30),c=n(35),u=n(34),d=n(24),h=n(20),p=n(10),f=n(6),m=n(33),g=n(107);const v={getMinSize:e=>{const{alias:t,parent:n}=e;if("tracker"===t||"progress"===t||"progress"===(null==n?void 0:n.alias))return{height:3}}};t.makeSlider=function(e){return m.makeCommonComponent(e,f.CSlider,{size:{width:200,height:15},properties:{fill:{name:s.default("property.propertyNames.trackFill"),type:a.FillType.solid,color:h.SilverWhiteColor,disabled:!1},indicatorColor:{prop:"fill",name:s.default("property.propertyNames.indicatorColor"),type:a.FillType.solid,color:{r:0,g:157,b:255,a:1},disabled:!1},progressColor:{name:s.default("property.propertyNames.progressColor"),prop:"fill",type:a.FillType.solid,color:h.DeepBlueColor,disabled:!1},progress:{prop:"number",name:s.default("property.propertyNames.progress"),value:{max:100,min:0,value:70,unit:"%"}}},states:{[d.PredefinedStates.disabled]:{enabled:!1,properties:{indicatorColor:{type:a.FillType.radial,color:{colorStops:[{color:h.DeepBlueColor},{color:r.mergeColor(h.DeepBlueColor,.6)}]}},progressColor:{name:s.default("property.propertyNames.progressColor"),prop:"fill",type:a.FillType.solid,color:h.HalfTransparentDarkGreenColor}}}},sealed:!0,components:[m.makeCommonComponent(l.getNewID(),f.CRect,{alias:"tracker",layout:{fixedWidth:!1,fixedHeight:!0,vertical:i.VerticalAlign.Middle,horizontal:i.HorizontalAlign.LeftAndRight,responsive:!0,auto:!1},position:{x:7,y:6},size:{width:186,height:3},properties:{radius:{topLeft:5,topRight:5,bottomRight:5,bottomLeft:5,isPercent:!1,disabled:!1},fill:{ref:"@properties.fill"}}}),g.makeCanvas(l.getNewID(),{alias:"progress",position:{x:7,y:6},layout:{horizontal:i.HorizontalAlign.Left,vertical:i.VerticalAlign.Middle,fixedHeight:!0,fixedWidth:!1,auto:!1,responsive:!0},size:{width:Math.round(129.5),height:3},components:[m.makeCommonComponent(l.getNewID(),f.CRect,{alias:"progressRect",position:{x:0,y:0},size:{width:Math.round(129.5),height:3},layout:{horizontal:i.HorizontalAlign.LeftAndRight,vertical:i.VerticalAlign.TopAndBottom,fixedHeight:!1,fixedWidth:!1,auto:!1,responsive:!0},properties:{fill:{ref:"@properties.progressColor"},radius:{topLeft:5,topRight:5,bottomRight:5,bottomLeft:5,isPercent:!1,disabled:!1}}})]}),g.makeCanvas(l.getNewID(),{alias:"indicator",position:{x:Math.round(129.5),y:0},size:{width:15,height:15,lockedRatio:!0},layout:{horizontal:i.HorizontalAlign.Left,vertical:i.VerticalAlign.Middle,fixedHeight:!0,fixedWidth:!0,auto:!1,responsive:!0},components:[m.makeCommonComponent(l.getNewID(),f.CEllipse,{opacity:100,alias:"ellipse",position:{x:0,y:0},size:{width:15,height:15},layout:{horizontal:i.HorizontalAlign.Center,vertical:i.VerticalAlign.Middle,fixedHeight:!0,fixedWidth:!0,auto:!1,responsive:!0},properties:{fill:{ref:"@properties.indicatorColor"}}})]})]})},t.SliderConfig={type:f.CSlider,thumb:{spriteIconClass:p.SpriteThumb.Slider.className,dragPosition:p.SpriteThumb.Slider.position},name:s.default("resource.components.slider"),configInfo:v,editor:{onResize:function(e,{width:t,height:n}){const r=e,{properties:i}=e,a=i.progress.value.value,s=r.getComponentByAlias("indicator",!0),l=r.getComponentByAlias("progress",!0);if(s&&l){const e=l.components[0],{position:r,size:i}=s,c=e.size,u=Math.round((t-i.width)*(a/100)),d=(n-i.height)/2;return{do:{[s.id]:[o.Ops.replace("/position",{y:d,x:u})],[e.id]:[o.Ops.replace("/size",Object.assign(Object.assign({},c),{width:u}))]},undo:{[s.id]:[o.Ops.replace("/position",r)],[e.id]:[o.Ops.replace("/size",c)]}}}return null},onPropertyUpdate:function(e,t,n){if("progress"===t){const t=n.value,r=e,{width:o}=e.size,i=r.getComponentByAlias("progress",!0),a=r.getComponentByAlias("indicator",!0);if(i&&a){const{position:e}=i,n=o-2*e.x,r=Math.round(n*t.value/100),s=r,l={top:0,left:0,right:r-i.size.width,bottom:0},d={do:{},undo:{}},{size:h,position:p,rotate:f,patches:m}=i.resizeMySelf(l,!1);m&&c.coverPatches(d,m);const{patches:g}=i.parent.getPositionPatchesOfChildrenChanged([{id:i.id,type:u.ComponentChangeType.Edit,position:p,size:Object.assign(Object.assign({},h),{height:i.size.height}),rotate:f},{type:u.ComponentChangeType.Edit,id:a.id,position:Object.assign(Object.assign({},a.position),{x:s}),size:a.size,rotate:0}],!0);return c.coverPatches(d,g),d}}return null}},constraint:{progress:{move:f.MoveMode.neither,resize:f.SizeMode.none},progressRect:{move:f.MoveMode.neither,resize:f.SizeMode.none},tracker:{move:f.MoveMode.neither,resize:f.SizeMode.none},indicator:{move:f.MoveMode.horizontal},ellipse:{move:f.MoveMode.neither}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeQRCode=t.QRCodeConfig=void 0;const r=n(4),o=n(10),i=n(20),a=n(33),s=n(6);t.QRCodeConfig={type:s.CQRCode,thumb:{spriteIconClass:o.SpriteThumb.QRCode.className,dragPosition:o.SpriteThumb.QRCode.position},name:r.default("resource.components.qrcode"),sizeMode:s.SizeMode.ratio},t.makeQRCode=function(e){return a.makeCommonComponent(e,s.CQRCode,{size:{width:100,height:100,lockedRatio:!0},properties:{background:{prop:"color",name:r.default("property.propertyNames.bgcolor"),value:i.DefaultWhiteFillColor},forgetColor:{prop:"color",name:r.default("property.propertyNames.forgetColor"),value:i.BlackColor}},value:r.default("resource.componentsText.qrCode")})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumericStepConfig=t.makeNumericStep=void 0;const r=n(16),o=n(40),i=n(32),a=n(48),s=n(132),l=n(30),c=n(20),u=n(10),d=n(4),h=n(33),p=n(6);t.makeNumericStep=function(e){return h.makeCommonComponent(e,p.CNumericStep,{position:{x:0,y:0},size:{width:150,height:30},sealed:!0,layout:{vertical:o.VerticalAlign.TopAndBottom,horizontal:o.HorizontalAlign.Right,fixedWidth:!0,fixedHeight:!1,auto:!0,responsive:!1},properties:{fill:{type:i.FillType.solid,color:c.DefaultWhiteFillColor,disabled:!1},stroke:{thickness:1,color:c.DefaultStrokeColor1,disabled:!1},radius:{topLeft:2,topRight:2,bottomLeft:2,bottomRight:2,isPercent:!1,disabled:!1},textStyle:{color:c.DefaultTextColor,fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},fontSize:12,textAlign:a.TextAlign.left},iconColor:{name:d.default("property.propertyNames.icon"),prop:"fill",type:i.FillType.solid,color:"#777777",disabled:!1}},value:"1",states:{},components:[h.makeCommonComponent(l.getNewID(),p.CCanvasPanel,{alias:"arrowTotalWrapper",position:{x:130,y:0},size:{width:20,height:30},layout:{vertical:o.VerticalAlign.TopAndBottom,horizontal:o.HorizontalAlign.Right,fixedWidth:!0,fixedHeight:!1,auto:!1,responsive:!1},components:[h.makeCommonComponent(l.getNewID(),p.CCanvasPanel,{position:{x:0,y:0},alias:"upArrow",size:{width:20,height:15},layout:{horizontal:o.HorizontalAlign.LeftAndRight,vertical:o.VerticalAlign.Top,fixedHeight:!1,fixedWidth:!1,auto:!1,responsive:!1},properties:{fill:{type:i.FillType.solid,color:{r:255,g:255,b:255,a:1},disabled:!0},stroke:{color:{r:119,g:119,b:119,a:1},thickness:1,disabled:!0}},components:[h.makeCommonComponent(l.getNewID(),p.CPath,{position:{x:6,y:7},value:{closed:!0,data:[{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:0,y:0}},{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:8,y:0}},{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:4,y:4}}]},size:{width:8,height:4,lockedRatio:!0},layout:{auto:!1,responsive:!0,fixedWidth:!0,fixedHeight:!0,vertical:o.VerticalAlign.Middle,horizontal:o.HorizontalAlign.Center},rotate:180,properties:{fill:{ref:"@properties.iconColor"},stroke:{color:r.rgba2hex({a:1,b:119,g:119,r:119}),disabled:!0}}})]}),h.makeCommonComponent(l.getNewID(),p.CCanvasPanel,{alias:"downArrow",position:{x:0,y:15},size:{width:20,height:15},layout:{horizontal:o.HorizontalAlign.LeftAndRight,vertical:o.VerticalAlign.Bottom,fixedHeight:!1,fixedWidth:!1,auto:!1,responsive:!1},properties:{fill:{type:i.FillType.solid,color:{r:255,g:255,b:255,a:1},disabled:!0},stroke:{color:{r:119,g:119,b:119,a:1},thickness:1,disabled:!0}},components:[h.makeCommonComponent(l.getNewID(),p.CPath,{position:{x:6,y:4},value:{closed:!0,data:[{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:0,y:0}},{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:8,y:0}},{handleIn:{x:0,y:0},handleOut:{x:0,y:0},point:{x:4,y:4}}]},size:{width:8,height:4,lockedRatio:!0},layout:{auto:!1,responsive:!0,fixedWidth:!0,fixedHeight:!0,vertical:o.VerticalAlign.Middle,horizontal:o.HorizontalAlign.Center},rotate:0,properties:{fill:{ref:"@properties.iconColor"},stroke:{color:r.rgba2hex({a:1,b:119,g:119,r:119}),disabled:!0}}})]})]}),h.makeCommonComponent(l.getNewID(),p.CInput,{alias:"value",position:{x:0,y:0},size:{width:130,height:30},layout:{horizontal:o.HorizontalAlign.LeftAndRight,vertical:o.VerticalAlign.TopAndBottom,auto:!1,fixedWidth:!1,fixedHeight:!1,responsive:!0},properties:{stroke:{hidden:!0,disabled:!0},fill:{hidden:!0,disabled:!0},textStyle:{ref:"@properties.textStyle"},inputModel:{hidden:!0,value:s.InputModel.numeric},padding:{left:8,top:0,right:8,bottom:0,disabled:!1}},value:"@value"})]})},t.NumericStepConfig={type:p.CNumericStep,isTextComp:!0,thumb:{spriteIconClass:u.SpriteThumb.Numeric.className,dragPosition:u.SpriteThumb.Numeric.position},editor:{},name:d.default("resource.components.numericStep"),constraint:{value:{resize:p.SizeMode.none},arrowTotalWrapper:{resize:p.SizeMode.none}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableConfig=t.makeTable=void 0;const r=n(8),o=n(50),i=n(10),a=n(130),s=n(4),l=n(1085),c=n(6),u=n(33);t.makeTable=function(e){return u.makeCommonComponent(e,c.CTable,{size:{width:320,height:120},properties:{shadow:o.getDefaultShadow(),stroke:a.DefalutTableOuterStroke,tableLine:{rowLine:!0,columnLine:!0}},components:[],value:r.jsonClone(l.DefalutTableValue),sealed:!0})},t.TableConfig={type:c.CTable,name:s.default("resource.components.table"),thumb:{spriteIconClass:i.SpriteThumb.Table.className,dragPosition:i.SpriteThumb.Table.position}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeTreeItem=t.makeTree=t.TreeConfig=void 0;const r=n(40),o=n(48),i=n(407),a=n(12),s=n(32),l=n(4),c=n(214),u=n(10),d=n(20),h=n(155),p=n(30),f=n(33),m=n(283),g=n(6);function v(e,t,n){return f.makeCommonComponent(e.id,g.CTreeItem,{size:{width:200,height:c.defaultLineHeight},position:{x:0,y:0},selected:1===t&&n,components:[m.makeIcon(p.getNewID(),{alias:h.TreeItemAlias.ExpandIcon,column:h.TreeItemColumn.Expand,size:{width:12,height:12},value:c.defaultExpandIcon.collapse.icon,selected:!0,properties:{icon:{color:d.DefaultTextColor}},states:{checked:{enabled:!0,properties:{},value:c.defaultExpandIcon.expand.icon}},select:{target:"self",enabled:!0,reversible:!0}}),f.makeCommonComponent(p.getNewID(),g.CCanvasPanel,{alias:h.TreeItemAlias.CheckBox,column:h.TreeItemColumn.CheckBox,size:{width:12,height:12,lockedRatio:!0},layout:{responsive:!0,auto:!0,fixedWidth:!1,fixedHeight:!1,horizontal:r.HorizontalAlign.Auto,vertical:r.VerticalAlign.Auto},properties:{stroke:{color:d.DefaultStrokeColor,thickness:1,disabled:!1},icon:{color:d.DefaultTextColor}},selected:!0,components:[m.makeIcon(p.getNewID(),{alias:h.TreeItemAlias.CheckBoxIcon,size:{width:12,height:12,lockedRatio:!0},layout:{responsive:!0,auto:!1,fixedWidth:!1,fixedHeight:!1,horizontal:r.HorizontalAlign.Center,vertical:r.VerticalAlign.Middle},properties:{icon:{ref:"@properties.icon"}},hidden:!0,value:{iconCode:60040,fontName:"lightIconFont"},states:{checked:{enabled:!0,properties:{},hidden:!1}}})],select:{target:"self",enabled:!0,reversible:!0}}),m.makeIcon(p.getNewID(),{alias:h.TreeItemAlias.NodeIcon,column:h.TreeItemColumn.Node,size:{width:12,height:12},value:e.isParent?e.nodeIcon.expand.icon:e.nodeIcon.collapse.icon}),f.makeCommonComponent(p.getNewID(),g.CPureText,{alias:h.TreeItemAlias.NodeText,size:{width:100,height:30},column:h.TreeItemColumn.Text,value:`${l.default("property.component.tree.itemText")} ${e.index+1}`,properties:{textStyle:{ref:"@properties.textStyle"}},states:{checked:{enabled:!0,properties:{textStyle:{ref:"@properties.itemCheckedTextStyle"}}}}})]})}t.TreeConfig={type:g.CTree,isList:!0,thumb:{spriteIconClass:u.SpriteThumb.Tree.className,dragPosition:u.SpriteThumb.Tree.position},name:l.default("resource.components.tree"),editor:{onPropertyUpdate:function(e,t,n){return e.modifyValueWhenPropertyChange(t,n)},onClone:function(e,t){const{expandACollapseIcon:n,relation:r}=e.value,o=h.mapChildsIDByCompID(r,t);e.value={expandACollapseIcon:n,relation:o}},specials:{makeTreeItem:v}},preview:{onTriggerState:(e,t,n,r)=>{var o;const i={},s=e,{relation:l}=s.value,c=h.treeToArr(l),u=(null===(o=t.parent)||void 0===o?void 0:o.id)||"";if(r===h.TreeItemColumn.Expand){const t="checked"===n,r=c.map(e=>(e.id===u&&(e.expand=t),e)),o=h.arrToTree(r);i[e.id]=[a.Ops.replace("/value",{relation:o})]}else if(r===h.TreeItemColumn.CheckBox){const e=s.components.map(e=>e.$data),{tree:t}=h.createAvlTreeWithTreeComp(l,e),n=t.get(u);if(n){const e=h.getAdjustCompInfo(n);s.components.forEach(t=>{if(void 0!==e[t.id]){const n=e[t.id]===h.TreeCheckboxState.Checked,r=t.getComponentByAlias(h.TreeItemAlias.CheckBoxIcon),o=t.getComponentByAlias(h.TreeItemAlias.CheckBox);i[o.id]=[a.Ops.replace("/selected",n),a.Ops.replace("/_currentState",n?"checked":"unchecked")],i[r.id]=[a.Ops.replace("/selected",n),a.Ops.replace("/_currentState",n?"checked":"unchecked")]}})}}return i}}},t.makeTree=function(e){const t=c.getDefaultTreeData();return f.makeCommonComponent(e,g.CTree,{size:{width:200,height:280},sealed:!0,layout:{vertical:r.VerticalAlign.TopAndBottom,horizontal:r.HorizontalAlign.Right,fixedWidth:!0,fixedHeight:!1,auto:!0,responsive:!1},properties:{container:{scroll:!0,showScroll:!0,hidden:!0},fill:{disabled:!1,type:s.FillType.solid,color:{r:255,g:255,b:255,a:1}},stroke:{thickness:1,color:{r:119,g:119,b:119,a:1},disabled:!1},textStyle:{color:d.DefaultTextColor,fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},fontSize:14,textAlign:o.TextAlign.left},padding:{left:10,right:10,top:5,bottom:5,disabled:!1},itemLineHeight:{name:l.default("property.propertyNames.lineHeight"),prop:"number",value:{value:c.defaultLineHeight}},levelIndent:{name:l.default("property.component.tree.levelIndent"),prop:"number",value:{value:c.defaultIndent}},itemCheckedFill:{name:l.default("property.propertyNames.checkedBgcolor"),prop:"fill",type:s.FillType.solid,color:d.LightGrayColor,disabled:!1},itemCheckedTextStyle:{name:l.default("property.propertyNames.checkedText"),prop:"textStyle",color:d.DefaultSelectColor,fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},fontSize:14,textAlign:o.TextAlign.left},treeExpand:{name:l.default("property.component.tree.treeExpand"),prop:"tree",isShow:!0,chooseExpandType:i.DefaultCollapseIconType.Arrow,iconColor:d.DefaultSelectColor,iconSize:12},treeCheckbox:{name:l.default("property.component.tree.treeCheckbox"),prop:"tree",isShow:!1,iconColor:d.DefaultSelectColor,iconSize:12},treeNode:{name:l.default("property.component.tree.treeNode"),prop:"tree",isShow:!0,iconColor:d.DefaultSelectColor,iconSize:12}},value:{expandACollapseIcon:c.defaultExpandIcon,relation:t},components:[...h.treeToArr(t).map((e,t)=>v(e,t))],select:{target:"child",minCount:1,maxCount:1,autoUnselect:!0,reversible:!0,enabled:!0}})},t.makeTreeItem=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreePropertyName=t.DefaultCollapseIconType=void 0,function(e){e[e.Arrow=0]="Arrow",e[e.Plus=1]="Plus",e[e.Triangle=2]="Triangle"}(t.DefaultCollapseIconType||(t.DefaultCollapseIconType={})),t.TreePropertyName="tree"},function(e,t,n){var r=n(1114),o=n(1115),i="undefined"!=typeof Float64Array;function a(e,t){return e[0]-t[0]}function s(){var e,t=this.stride,n=new Array(t.length);for(e=0;e<n.length;++e)n[e]=[Math.abs(t[e]),e];n.sort(a);var r=new Array(n.length);for(e=0;e<r.length;++e)r[e]=n[e][1];return r}function l(e,t){var n=["View",t,"d",e].join("");t<0&&(n="View_Nil"+e);var o="generic"===e;if(-1===t){var i="function "+n+"(a){this.data=a;};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new "+n+"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_"+n+"(a){return new "+n+"(a);}";return new Function(i)()}if(0===t){i="function "+n+"(a,d) {this.data = a;this.offset = d};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function "+n+"_copy() {return new "+n+"(this.data,this.offset)};proto.pick=function "+n+"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function "+n+"_get(){return "+(o?"this.data.get(this.offset)":"this.data[this.offset]")+"};proto.set=function "+n+"_set(v){return "+(o?"this.data.set(this.offset,v)":"this.data[this.offset]=v")+"};return function construct_"+n+"(a,b,c,d){return new "+n+"(a,d)}";return new Function("TrivialArray",i)(c[e][0])}i=["'use strict'"];var a=r(t),l=a.map((function(e){return"i"+e})),u="this.offset+"+a.map((function(e){return"this.stride["+e+"]*i"+e})).join("+"),d=a.map((function(e){return"b"+e})).join(","),h=a.map((function(e){return"c"+e})).join(",");i.push("function "+n+"(a,"+d+","+h+",d){this.data=a","this.shape=["+d+"]","this.stride=["+h+"]","this.offset=d|0}","var proto="+n+".prototype","proto.dtype='"+e+"'","proto.dimension="+t),i.push("Object.defineProperty(proto,'size',{get:function "+n+"_size(){return "+a.map((function(e){return"this.shape["+e+"]"})).join("*"),"}})"),1===t?i.push("proto.order=[0]"):(i.push("Object.defineProperty(proto,'order',{get:"),t<4?(i.push("function "+n+"_order(){"),2===t?i.push("return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&i.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):i.push("ORDER})")),i.push("proto.set=function "+n+"_set("+l.join(",")+",v){"),o?i.push("return this.data.set("+u+",v)}"):i.push("return this.data["+u+"]=v}"),i.push("proto.get=function "+n+"_get("+l.join(",")+"){"),o?i.push("return this.data.get("+u+")}"):i.push("return this.data["+u+"]}"),i.push("proto.index=function "+n+"_index(",l.join(),"){return "+u+"}"),i.push("proto.hi=function "+n+"_hi("+l.join(",")+"){return new "+n+"(this.data,"+a.map((function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")})).join(",")+","+a.map((function(e){return"this.stride["+e+"]"})).join(",")+",this.offset)}");var p=a.map((function(e){return"a"+e+"=this.shape["+e+"]"})),f=a.map((function(e){return"c"+e+"=this.stride["+e+"]"}));i.push("proto.lo=function "+n+"_lo("+l.join(",")+"){var b=this.offset,d=0,"+p.join(",")+","+f.join(","));for(var m=0;m<t;++m)i.push("if(typeof i"+m+"==='number'&&i"+m+">=0){d=i"+m+"|0;b+=c"+m+"*d;a"+m+"-=d}");i.push("return new "+n+"(this.data,"+a.map((function(e){return"a"+e})).join(",")+","+a.map((function(e){return"c"+e})).join(",")+",b)}"),i.push("proto.step=function "+n+"_step("+l.join(",")+"){var "+a.map((function(e){return"a"+e+"=this.shape["+e+"]"})).join(",")+","+a.map((function(e){return"b"+e+"=this.stride["+e+"]"})).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(m=0;m<t;++m)i.push("if(typeof i"+m+"==='number'){d=i"+m+"|0;if(d<0){c+=b"+m+"*(a"+m+"-1);a"+m+"=ceil(-a"+m+"/d)}else{a"+m+"=ceil(a"+m+"/d)}b"+m+"*=d}");i.push("return new "+n+"(this.data,"+a.map((function(e){return"a"+e})).join(",")+","+a.map((function(e){return"b"+e})).join(",")+",c)}");var g=new Array(t),v=new Array(t);for(m=0;m<t;++m)g[m]="a[i"+m+"]",v[m]="b[i"+m+"]";i.push("proto.transpose=function "+n+"_transpose("+l+"){"+l.map((function(e,t){return e+"=("+e+"===undefined?"+t+":"+e+"|0)"})).join(";"),"var a=this.shape,b=this.stride;return new "+n+"(this.data,"+g.join(",")+","+v.join(",")+",this.offset)}"),i.push("proto.pick=function "+n+"_pick("+l+"){var a=[],b=[],c=this.offset");for(m=0;m<t;++m)i.push("if(typeof i"+m+"==='number'&&i"+m+">=0){c=(c+this.stride["+m+"]*i"+m+")|0}else{a.push(this.shape["+m+"]);b.push(this.stride["+m+"])}");return i.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),i.push("return function construct_"+n+"(data,shape,stride,offset){return new "+n+"(data,"+a.map((function(e){return"shape["+e+"]"})).join(",")+","+a.map((function(e){return"stride["+e+"]"})).join(",")+",offset)}"),new Function("CTOR_LIST","ORDER",i.join("\n"))(c[e],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(e,t,n,r){if(void 0===e)return(0,c.array[0])([]);"number"==typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var a=t.length;if(void 0===n){n=new Array(a);for(var s=a-1,u=1;s>=0;--s)n[s]=u,u*=t[s]}if(void 0===r){r=0;for(s=0;s<a;++s)n[s]<0&&(r-=(t[s]-1)*n[s])}for(var d=function(e){if(o(e))return"buffer";if(i)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(e)?"array":"generic"}(e),h=c[d];h.length<=a+1;)h.push(l(d,h.length-1));return(0,h[a+1])(e,t,n,r)}},function(e,t,n){"use strict";e.exports=function(e,t,n){return 0===e.length?e:t?(n||e.sort(t),function(e,t){for(var n=1,r=e.length,o=e[0],i=e[0],a=1;a<r;++a)if(i=o,t(o=e[a],i)){if(a===n){n++;continue}e[n++]=o}return e.length=n,e}(e,t)):(n||e.sort(),function(e){for(var t=1,n=e.length,r=e[0],o=e[0],i=1;i<n;++i,o=r)if(o=r,(r=e[i])!==o){if(i===t){t++;continue}e[t++]=r}return e.length=t,e}(e))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var o=e*t,i=r*e,a=i-(i-e),s=e-a,l=r*t,c=l-(l-t),u=t-c,d=s*u-(o-a*c-s*c-a*u);if(n)return n[0]=d,n[1]=o,n;return[d,o]};var r=+(Math.pow(2,27)+1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompoundComponentClass=void 0;const r=n(1138),o=n(1140),i=n(1142),a=n(1144),s=n(1147),l=n(1149),c=n(1151),u=n(1153),d=n(1155),h=n(413),p=n(1158),f=n(1160),m=n(1162),g=n(1164),v=n(1166),y=n(1168),b=n(1170),w=n(1177),C=n(1179),_=n(1183),x=n(4),S=n(6),k=n(292),P=n(403),T=n(294),E=n(402),O=n(401),M=n(404),A=n(405),D=n(1250),I=n(434),L=n(1251),N=n(1252),j=n(1253),R=n(1254),z=n(1255),F=n(1256),B=n(1257),H=n(1258),V=n(1259),Y=n(1260),W=n(1261),U=n(406);t.CompoundComponentClass={breadCrumbs:m.default,button:r.default,checkbox:o.default,"checkbox-group":a.default,circleProgressBar:d.default,list:h.default,numericStep:g.default,progressBar:l.default,radio:i.default,"radio-button-group":s.default,score:c.default,"segments-control":p.default,select:y.default,slider:v.default,switch:u.default,selectTab:f.default,[S.CQRCode]:b.default,[S.CKeyboard]:w.default,[S.CTable]:_.default,[S.CTree]:C.default};const K={id:"common",name:x.default("resource.components.common"),components:[D.CheckBoxCfg,I.CheckBoxGroupCfg,O.SelectBoxConfig,L.RadioCfg,j.RadioGroupCfg,N.ListCfg,R.SwitchCfg,F.SegmentsCfg,H.TabsCfg,M.NumericStepConfig,B.ProgressBarCfg,E.SliderConfig,z.BreadCrumbsCfg,V.CircleProgressBarCfg,Y.ScoreCfg,k.VideoConfig,P.QRCodeConfig,T.KeyboardConfig,W.HotAreaCfg,A.TableConfig,U.TreeConfig]};t.default=K},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomStates=t.allowedToggleStateCmd=t.getSupportStates=void 0;const r=n(24),o=n(43),i=n(6),a=n(103);function s(e){return Object.keys(e.states).filter(t=>{var n;return!a.includeEnum(r.PredefinedStates,t)&&!1!==(null===(n=e.states[t])||void 0===n?void 0:n.enabled)})}t.getSupportStates=function(e){if(e.isSealed){if(e.lib){const t=o.getComponent(e.lib);if(t){const{predefinedStates:e}=t;if(e){const t=r.predefinedComponentStates.filter(t=>e.includes(t.type));return t.find(e=>e.type===r.PredefinedStates.disabled)||t.push(r.disabledState),t}}}else if(e.type===i.CSelect||e.type===i.CSlider||e.type===i.CNumericStep)return[r.disabledState];return[r.disabledState]}return e.isContainer?e.isSymbol?[r.disabledState]:r.containerPresetState:r.predefinedComponentStates},t.allowedToggleStateCmd=function(e){const t=function(e){return s(e).length>0}(e),n=Object.keys(e.states).some(e=>r.allTogglePredefinedStates.includes(e));return t||n},t.getCustomStates=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(2),a=n(18),s=n(22),l=n(14),c=n(86),u=n(137);n(1157),n(156);t.default=e=>{const{comp:t,isPreview:n,itemEvents:d}=e,h=t,{properties:p,size:{width:f,height:m},opacity:g,components:v}=h,{container:y,padding:b,separator:w,layout:C}=p,_=l.StyleHelper.createCSSStyleParser(p),x=_.getFillStyle({width:f,height:m}),S=null==y?void 0:y.scroll,k={left:(null==b?void 0:b.left)||0,top:(null==b?void 0:b.top)||0,width:f-((null==b?void 0:b.left)||0)-((null==b?void 0:b.right)||0),height:m-((null==b?void 0:b.top)||0)-((null==b?void 0:b.bottom)||0)},P=(null==C?void 0:C.verticalGap)||0,T=n?u.getListEvents(v,d):{};return r.createElement("div",{className:i.default("lib-comp-list",{preview:n}),style:Object.assign(Object.assign(Object.assign({width:f,height:m,opacity:l.StyleHelper.getOpacity(g)},x),_.getStrokeStyle()),_.getShadowStyle())},r.createElement(s.ScrollBars,{style:k,className:"lib-comp-list-content",disabled:!n,hiddenHorizontalScrollBar:!0,hiddenVerticalScrollBar:!n||!S},(e=>{const t=e.length;return e.map((e,s)=>{const{size:u,opacity:d}=e,h=e.getComponentByAlias("text")||e.components[0],{size:p,properties:f,position:m}=h,{size:g,style:v}=l.StyleHelper.createCSSStyleParser({}).getTextStyleData(p,f.textStyle),y=o.memoize(()=>Object.assign(Object.assign(Object.assign(Object.assign({},l.StyleHelper.initCSSStyleParser(e.properties).getFillStyle()),l.StyleHelper.parserSeparator("bottom",w)),v),{height:u.height,lineHeight:u.height+"px",marginBottom:s<t-1?P:0,paddingLeft:h.position.x,paddingRight:h.position.x,opacity:l.StyleHelper.getOpacity(d)}))(),b=c.hasInteraction(e);return r.createElement("div",Object.assign({key:e.id,className:i.default("lib-comp-list-item",{"item-interaction-flag":c.hasInteraction(e),"item-hot-area":n&&b}),style:y},T[e.id]||{}),r.createElement("label",{style:Object.assign(Object.assign(Object.assign({},g),v),{left:m.x,top:m.y,opacity:l.StyleHelper.getOpacity(h.opacity)}),className:"lib-comp-list-item-value"},a.transBlankChart(h.value)))})})(v)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(47),i=n(14),a=n(94),s=n(8),l=n(16),c=n(20);t.default=e=>{var t;const{comp:n,className:u}=e,{type:d,value:h,size:p,position:f,rotate:m,properties:g,id:v,opacity:y}=n,b=n.getTransition(),w={id:v,type:d,size:p,fill:g.fill,scale:1,transition:b},C="path"===d,_=C?o.transformPathDataToPath(h):String.fromCharCode(h.iconCode),x=Object.assign(Object.assign({},p),{top:f.y,left:f.x,transform:i.StyleHelper.getRotate(m),position:"absolute",overflow:"visible",opacity:i.StyleHelper.getOpacity(y)});if(!C)return x.fontSize=s.min(p.width,p.height),x.lineHeight=p.height+"px",x.fontFamily=h.fontName,x.color=l.parseColorToString((null===(t=g.icon)||void 0===t?void 0:t.color)||c.DefaultIconColor),p.height<12&&(x.transformOrigin="0 0",x.transform=`scale(${p.height/12}) ${x.transform||""}`),r.createElement("label",{className:u,style:x},_);const S=i.StyleHelper.initSVGStyleParser(g),{strokeDasharray:k,stroke:P,strokeWidth:T,strokeLinecap:E,strokeLinejoin:O}=i.StyleHelper.initSVGStyleParser(g).getStroke();return r.createElement("svg",{className:u,style:x},a.renderClipFill(w,r.createElement("path",{d:_,fill:S.getFill(`${d}-fill-${v}`),strokeWidth:T,stroke:P,strokeDasharray:k,strokeLinejoin:O,strokeLinecap:E,style:{transition:b}})),r.createElement("path",{d:_,fill:"none",strokeWidth:T,stroke:P,strokeDasharray:k,strokeLinejoin:O,strokeLinecap:E,style:{transition:b}}))}},function(e,t){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},function(e,t){e.exports={L:1,M:0,Q:3,H:2}},function(e,t,n){var r=n(418);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)t[n+i]^=r.gexp(r.glog(this.get(n))+r.glog(e.get(i)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=r.glog(this.get(0))-r.glog(e.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<e.getLength();i++)n[i]^=r.gexp(r.glog(e.get(i))+t);return new o(n,0).mod(e)}},e.exports=o},function(e,t){for(var n={glog:function(e){if(e<1)throw new Error("glog("+e+")");return n.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return n.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)n.EXP_TABLE[r]=1<<r;for(r=8;r<256;r++)n.EXP_TABLE[r]=n.EXP_TABLE[r-4]^n.EXP_TABLE[r-5]^n.EXP_TABLE[r-6]^n.EXP_TABLE[r-8];for(r=0;r<255;r++)n.LOG_TABLE[n.EXP_TABLE[r]]=r;e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLinePointsBySize=t.activeArtboardByMouse=t.computedMapRectScale=t.computedFootLengthOfLine=t.computedFootRatioInLine=t.makeVerctorProduct=t.makeVerctorNorm=t.makeVerctor=t.revisedPositionAfterDraw=t.computedLayoutColLine=t.computedSplitWidthAndOffset=t.computedWidthInfoOfLayout=t.parseLayoutSettingToSnaplines=t.parseAlignConfig=t.parseGridOrLayoutSetting=t.calcaulateSizeAndRealScaleWhenScale=t.quickAddComponentToPoint=t.changeDiffWhenRightOrBevel=t.getChooseBoundsByPagePoint=t.getChooseRangeBounds=t.getFramePosition=t.getFrameSize=t.conputedSizeAWithOffset=t.getCalcStrategySize=t.loopInComputed=t.getComponentDropInfo=t.isPositiveNum=t.isNegativeZero=t.getAllRange=t.getCursorStyle=t.getPagePosition=t.catchPagePosion=t.regionalRestrictions=t.judgePointOverAreaDeriction=t.defaultWorkspaceOutStatus=t.showPixelGridScaleValue=void 0;const r=n(7),o=n(129),i=n(8),a=n(133),s=n(28),l=n(380),c=n(1187),u=n(17),d=n(43),h=n(6),p=n(43),f=n(47),m=n(104),g=n(217),v=n(29),y=`url(${l.Cursors.DrawDefault}) 12 12, default`;t.showPixelGridScaleValue=6;const b=[{type:"nw-resize",url:l.Cursors.SouthEastOrNorthWest,position:{x:10,y:10},defaultType:"nw-resize"},{type:"ne-resize",url:l.Cursors.NorthEastOrWestSouth,position:{x:10,y:10},defaultType:"ne-resize"},{type:"se-resize",url:l.Cursors.SouthEastOrNorthWest,position:{x:10,y:10},defaultType:"nw-resize"},{type:"sw-resize",url:l.Cursors.NorthEastOrWestSouth,position:{x:10,y:10},defaultType:"sw-resize"},{type:"ns-resize",url:l.Cursors.NorthASouth,position:{x:10,y:10},defaultType:"ns-resize"},{type:"ew-resize",url:l.Cursors.WestAEast,position:{x:10,y:10},defaultType:"ew-resize"},{type:"move",url:l.Cursors.Rotate,position:{x:10,y:10},defaultType:"move"},{type:"add-R",url:l.Cursors.DrawRect,position:{x:8,y:17},defaultType:"crosshair"},{type:"add-O",url:l.Cursors.DrawCircle,position:{x:8,y:17},defaultType:"crosshair"},{type:"add-L",url:l.Cursors.DrawLine,position:{x:12,y:12},defaultType:"crosshair"},{type:"add-T",url:l.Cursors.DrawText,position:{x:12,y:12},defaultType:"text"},{type:"add-I",url:l.Cursors.DrawImg,position:{x:12,y:12},defaultType:"crosshair"},{type:"add-B",url:l.Cursors.DrawBtn,position:{x:12,y:12},defaultType:"crosshair"},{type:"add-W",url:l.Cursors.DrawLine,position:{x:12,y:12},defaultType:"crosshair"},{type:"add-Default",url:l.Cursors.DrawDefault,position:{x:12,y:12},defaultType:"crosshair"},{type:"Pen",url:l.Cursors.Pen,position:{x:7,y:3},defaultType:"default"},{type:"PenAdd",url:l.Cursors.PenAdd,position:{x:7,y:3},defaultType:"default"},{type:"PenMove",url:l.Cursors.PenMove,position:{x:6,y:6},defaultType:"default"},{type:"PenClose",url:l.Cursors.PenClose,position:{x:6,y:3},defaultType:"default"},{type:"Shears1",url:l.Cursors.Shears1,position:{x:18,y:12},defaultType:"default"},{type:"Shears2",url:l.Cursors.Shears2,position:{x:18,y:12},defaultType:"default"},{type:"Pencil",url:l.Cursors.Pencil,position:{x:5,y:20},defaultType:"default"}].map(e=>(g.getUrlBase64(e.url,g.IMGAGE_EXTENSION.PNG,(t,n)=>{const{position:r,defaultType:o}=n;e.url=`url(${t}) ${null==r?void 0:r.x} ${null==r?void 0:r.y}, ${o}`},e),e));function w(e){return 0===e&&1/e<0}function C(e,t,n){const[r,o,i,a,s,l,c,u]=[0,1,2,3,4,5,6,7];return{[r]:[-t,-n],[o]:[0,-n],[i]:[t,-n],[a]:[t,0],[s]:[t,n],[l]:[0,n],[c]:[-t,n],[u]:[-t,0]}[e]}function _(e,t){const n=i.abs(e.x),r=i.abs(e.y),o=e.x>0?t.x:t.x-n,a=e.y>0?t.y:t.y-r;return{width:n,height:r,left:o,top:a,right:o+n,bottom:a+r}}t.defaultWorkspaceOutStatus=function(){return{left:!1,top:!1,right:!1,bottom:!1}},t.judgePointOverAreaDeriction=function(e,t,n){let r=!1,o=!1,i=!1,a=!1;const s=n||5,l=t.top+s,c=t.bottom-s,u=t.left+s,d=t.right-s;return e.x<u&&(r=!0),e.y<l&&(o=!0),e.x>d&&(i=!0),e.y>c&&(a=!0),{left:r,right:i,bottom:a,top:o}},t.regionalRestrictions=function(e,t,n,r,o){const a=o.right- -5,s=r.width-o.left- -5,l=o.bottom- -5,c=r.height-o.top- -5;return e<0&&i.abs(e)>a&&(e=0-a),e>0&&e>s&&(e=s),t<0&&i.abs(t)>l&&(t=0-l),t>0&&t>c+30&&(t=c+30),{left:e,top:t}},t.catchPagePosion=function(e,t,n,r){const i=o.loadFromCache("WORKSPACE")||[],a={pageId:t,position:n,scaleFactor:r};if(i.length){const o=i.find(t=>t.appId===e);if(o){const e=o.pages.findIndex(e=>e.pageId===t);e>-1&&o.pages.splice(e,1);const i={pageId:t,position:n,scaleFactor:r};o.pages.push(i)}else{const t={appId:e,pages:[a]};i.push(t)}}else{const t={appId:e,pages:[a]};i.push(t)}i.length>2&&i.splice(0,1),o.saveToCahche("WORKSPACE",i)},t.getPagePosition=function(e,t,n,r,a){const s=o.loadFromCache("WORKSPACE")||[];if(s.length){const n=s.find(t=>t.appId===e);if(n){const e=n.pages.find(e=>e.pageId===t);if(e&&i.sameNumber(null==e?void 0:e.scaleFactor,a))return e.position}}const{width:l,height:c}=r.size,u=r.position,d=a/100;let h=0,p=0;const f=l*d,m=c*d;return h=n.width<f?30-u.x*d:i.round((n.width-f)/2-u.x*d),p=n.height<m?30-u.y*d:i.round((n.height-m)/2-u.y*d),{x:h,y:p}},t.getCursorStyle=function(e,t,n){let r="default";e&&(r="grab");const o=b.find(e=>e.type===t);return o?r=o.url:t.startsWith("add-")&&(r=y),n&&(r=`url(${l.Cursors.AddArtboard}) 8 8, copy`),{cursor:r}},t.getAllRange=function(e,t,n){const r={left:0,top:0,right:0,bottom:0,width:0,height:0},o=e.doc.artboardsFragments,a=[],s=[],l=[],c=[];if(o.forEach(t=>{const n=function(e,t){const n={left:0,top:0,right:0,bottom:0,width:0,height:0},{position:r,size:o}=e;r.x=r.x||0,r.y=r.y||0;const a=[...e.components];if(n.left=r.x,n.top=r.y,n.right=r.x+o.width,n.bottom=r.y+o.height,t!==e&&t.ownerArtboardID===e.artboardID){const{left:e,top:o,right:a,bottom:s}=v.getCompsBoundsInArtboard(t.components);n.left=i.min(n.left,e+r.x),n.right=i.max(n.right,a+r.x),n.top=i.min(n.top,o+r.y),n.bottom=i.max(n.bottom,s+r.y)}for(;a.length;){const e=a[0];a.shift();const t=e.getViewBoundsInArtboard();n.left=i.min(n.left,t.left+r.x),n.top=i.min(n.top,t.top+r.y),n.right=i.max(n.right,t.right+r.x),n.bottom=i.max(n.bottom,t.bottom+r.y)}return n.width=n.right-n.left,n.height=n.bottom-n.top,n}(t,e.activeContainer);a.push(n.left),s.push(n.top),l.push(n.right),c.push(n.bottom)}),r.left=i.min(...a),r.top=i.min(...s),r.right=i.max(...l),r.bottom=i.max(...c),r.width=r.right-r.left,r.height=r.bottom-r.top,!t&&n){const e=parseFloat((n/100).toFixed(2));for(let t in r){const n=t;r[n]=i.round((r[n]||1)*e)}}return r},t.isNegativeZero=w,t.isPositiveNum=function(e){return 0===e?!w(e):+e===e&&e>=0},t.getComponentDropInfo=function(e,t,n,r,o,i){const{pageX:l,pageY:c}=e,{left:d,top:h,width:p,height:f}=t,{activeContainer:m,activeArtboard:g,doc:v}=n;let y,b,w={x:0,y:0};if(m.isArtboard){const e={left:d,top:h,right:d+p,bottom:h+f,width:p,height:f},t=[v.mainArtboard,...v.fragments].reduce((e,t)=>Object.assign(Object.assign({},e),{[t.artboardID]:t}),{}),n=r.map(e=>{const n=e.getBoundingClientRect(),r=e.dataset.id;return{id:r,bounds:n,artboard:t[r],dom:e}});let o;const a=[],u=n.find(e=>e.id===g.artboardID),m=s.isContainerPoint(u.bounds,{left:l,top:c});for(let t=0,r=n.length;t<r;t++){const{bounds:r,dom:i}=n[t];if(s.isContainerPoint(r,{left:l,top:c})){o=m?u.dom:i;break}s.isIntersect(r,e)&&a.push(i)}if(o)y=o;else if(0===a.length){const e=n.find(e=>e.id===g.artboardID);e&&(y=e.dom)}else if(1===a.length)y=a[0];else{let t=0,r=0;a.forEach((o,i)=>{const a=o.dataset.id,l=n.find(e=>e.id===a);if(l){const n=l.bounds,o=s.intersect(n,e),a=s.size(o);a>t&&(t=a,r=i)}}),y=a[r]}if(y){const e=y.dataset.id;b=[v.mainArtboard,...v.fragments].find(t=>t.artboardID===e);const t=y.getBoundingClientRect();w.x=(l-t.left)/i,w.y=(c-t.top)/i}}else if(b=g,o){const e=o.getBoundingClientRect();let t=m,n=0;for(;t instanceof u.UIComponent&&!t.isArtboard;)n+=t.rotate,t=t.parent;const r=a.getRotateOffset(l-e.left-e.width/2,-(c-e.top-e.height/2),-n),s=m.size.width,d=m.size.height;w.x=(r.x+s/2*i)/i,w.y=(-r.y+d/2*i)/i}return{point:w,artboard:b||g}},t.loopInComputed=function(e,t,n,r,o){const i={x:0,y:0};return o.left&&(e+=n,i.x+=n*r),o.top&&(t+=n,i.y+=n*r),o.right&&(e-=n,i.x-=n*r),o.bottom&&(t-=n,i.y-=n*r),{offsetX:e,offsetY:t,posit:i}},t.getCalcStrategySize=C,t.conputedSizeAWithOffset=function(e,t,n,r){const[o,i]=C(e,t,n);let a=o,s=i;const[l,c,u,d,h,p,f,m]=[0,1,2,3,4,5,6,7];return e===m&&(a+=r.x),e===c&&(s+=r.y),e===d&&(a-=r.x),e===p&&(s-=r.y),e===l&&(a+=r.x)&&(s+=r.y),e===u&&(a-=r.x)&&(s+=r.y),e===h&&(a-=r.x)&&(s-=r.y),e===f&&(a+=r.x)&&(s-=r.y),[a,s]},t.getFrameSize=function(e,t,n,r,o){const[a,s]=e,l=t+a,u=n+s;return{width:i.min(i.max(o||c.minArtboardSize,i.round(l/r)),c.maxArtbaordSize),height:i.min(i.max(o||c.minArtboardSize,i.round(u/r)),c.maxArtbaordSize)}},t.getFramePosition=function(e,t,n){const[r,o,i,a,s]=[0,1,2,6,7];let[l,c]=[0,0];return e!==r&&e!==a&&e!==s||(l=t.width-n.width),e!==r&&e!==o&&e!==i||(c=t.height-n.height),{x:l,y:c}},t.getChooseRangeBounds=_,t.getChooseBoundsByPagePoint=function(e,t,n,r,o,i){const a=n.x+t.x/o+r.left,s=n.y+t.y/o+r.top,l={x:e.x-a,y:e.y-s};return i&&(l.x>l.y?l.y=l.x:l.x=l.y),_(l,{x:a-r.left,y:s-r.top})},t.changeDiffWhenRightOrBevel=function(e){const t=Math.hypot(e.x,e.y),n=0!==t?180/(Math.PI/Math.acos(Math.abs(e.x)/t)):0;if(n<30)e.y=0;else if(n>60)e.x=0;else{const t=Math.abs(e.x),n=Math.abs(e.y),r=Math.max(t,n);e.x=e.x*r/t,e.y=e.y*r/n}};function x(e,t){return e?2*i.floor(t/2):0}function S(e,t,n,r){const o=i.floor(e/t);return{innerWidth:o-n,extraWidth:e-o*t+x(!r,n),bigWidth:o}}function k(e,t,n,r){const{extraWidth:o,innerWidth:a,bigWidth:s}=S(e,t,n,r);let l=0,c=new Array(t).fill({bigWidth:s,innerWidth:a});if(r)l+=i.floor(o/2);else for(let e=0;e<o;e++){const n=e>=t?e%t:e,{bigWidth:r,innerWidth:o}=c[n];c[n]={bigWidth:r+1,innerWidth:o+1}}return{blockArr:c,afterSplitOffset:l}}function P(e,t,n,r){let o=[];let i=t+x(n,r)/2;for(let t=0,n=e.length;t<n;t++){const{bigWidth:n,innerWidth:r}=e[t];o.push(i,i+r),i+=n}return o}function T(e,t){return{x:t.x-e.x,y:t.y-e.y}}function E(e){return Math.hypot(e.x,e.y)}function O(e,t){return e.x*t.x+e.y*t.y}t.default=class{registerComputedWorkSpaceBoundsOfContainer(e){this.computedWorkSpaceBoundsOfContainer=e}registerComputedContainerInWorkSpace(e){this.computedOffsetOfContainerInWorkSpace=e}getWorkSpaceBoundsOfContainer(){return this.computedWorkSpaceBoundsOfContainer&&this.computedWorkSpaceBoundsOfContainer()}getOffsetOfContainerInWorkSpace(){return this.computedOffsetOfContainerInWorkSpace&&this.computedOffsetOfContainerInWorkSpace()}getInitPositionContainer(e,t){let n={x:0,y:0};const o=this.getWorkSpaceBoundsOfContainer();if(r.isUndefined(o))n={x:Math.round(.5*t.width-.5*e.width),y:Math.round(.5*t.height-.5*e.height)};else if(0===o.width||0===o.height){const t=this.getOffsetOfContainerInWorkSpace()||{x:0,y:0};n={x:Math.round(-t.x-.5*e.width),y:Math.round(-t.y-.5*e.width)}}else n={x:Math.round(.5*o.width-.5*e.width+o.left),y:Math.round(.5*o.height-.5*e.height+o.top)};return n}},t.quickAddComponentToPoint=function(e,t,n,r,o,a,s,l,c){if(!t)return;const u={width:i.round(a.width),height:i.round(a.height)},g=d.getLibByShortCutOrType(t);if(g){const t=d.makeComponent(g.type,g.data.type,r),a=Object.assign({},t.size);let v=Object.assign({},n);if(t){if(g.data.initialization&&g.data.initialization("",t,void 0,u),c&&t.type===h.CText&&(v=function(e,t,n){const{textFormat:r}=e.properties,o=Object.assign({},n);if(r){switch(r.textAlign){case m.TextAlign.right:o.x-=t.width;break;case m.TextAlign.center:o.x-=Math.round(t.width/2)}o.y-=8}return o}(t,u,v)),t.position={x:i.round(v.x),y:i.round(v.y)},t.type!==h.CText&&(t.size=Object.assign(Object.assign({},u),{lockedRatio:s&&t.type!==h.CLine})),t.type===h.CLine&&l&&(t.value=i.depthClone(l)),t.type===h.CPath&&!g.data.initialization){const e={x:u.width/a.width,y:u.height/a.height};t.value=f.onPathValueZoom(t.value,e)}t.type!==h.CText&&(t.name=p.getNameForNewComponent(e.activeContainer.components,{id:g.type,type:g.data.type})),e.addComponents([t],{artboardID:o,autoSelect:!0})}}},t.calcaulateSizeAndRealScaleWhenScale=function(e,t,n=1,r=1){const o={width:t.width*n,height:t.height*n},i=o.width>26,a=o.height>26;let s=c.maxControlSize,l=r;return i||"top"!==e&&"bottom"!==e||(s=o.width,l*=o.width/26),a||"left"!==e&&"right"!==e||(s=o.height,l*=o.height/26),{controlSize:s,scaleNum:l}},t.parseGridOrLayoutSetting=function(e,t,n){const{layoutAndGridColor:r,appLayoutAndGrid:o,artboardsLayoutAndGrid:a}=i.depthClone(e),s=a[t],l=Object.assign({},o[n],s&&s[n]);return Object.assign(Object.assign({},r),{realSetting:l})},t.parseAlignConfig=function(e){var t,n,r;return{normalAlign:null===(t=null==e?void 0:e.normalAlign)||void 0===t||t,testEquidistant:null===(n=null==e?void 0:e.testEquidistant)||void 0===n||n,markDistance:null===(r=null==e?void 0:e.markDistance)||void 0===r||r}},t.parseLayoutSettingToSnaplines=function(e,t){const n={x:[],y:[]},{totalWidth:r,offset:o,columns:i,rows:a}=e;if(i.visible){const{gutterOnOutside:e,gutterWidth:t,columnsCount:a}=i,{blockArr:s,afterSplitOffset:l}=k(r,a,t,e),c=P(s,o+l,e,t);n.x.push(...c)}if(a.visible){const{gutterHeight:e,rowHeight:r,drawAllLines:o}=a;let i=0;if(o)for(;i<=t.height;)n.y.push(i),i+=e;else{const o=!0;for(;i<=t.height;)n.y.push(i),i+=o?e*r:e}}return n},t.computedWidthInfoOfLayout=S,t.computedSplitWidthAndOffset=k,t.computedLayoutColLine=P,t.revisedPositionAfterDraw=function(e,t,n){const r=e.positionRelativeToArtboard;let o={x:0,y:0};return e.isArtboard||(o.x=t.position.x,o.y=t.position.y),s.offsetPoint(n,{x:i.round(0-r.x-o.x),y:i.round(0-r.y-o.y)})},t.makeVerctor=T,t.makeVerctorNorm=E,t.makeVerctorProduct=O,t.computedFootRatioInLine=function(e,t,n){const r=T(e,t),o=O(r,T(e,n)),i=E(r);let a=o/i/i;return a<0&&(a=0),a>1&&(a=1),Number((100*a).toFixed(2))},t.computedFootLengthOfLine=function(e,t,n){const r=T(e,t),o=T(e,n),i=O(r,o),a=E(r),s=E(o),l=i/a;return Math.sqrt(Math.pow(s,2)-Math.pow(l,2))},t.computedMapRectScale=function(e,t){let n;const{width:r,height:o}=e,{width:i,height:a}=t;return n=i/a<=r/o?i/r:a/o,n},t.activeArtboardByMouse=function(e,t){const{activeArtboard:{artboardID:n},doc:{artboardsFragments:r}}=t;if(!t.activeContainer.isArtboard)return;const o=r.find(t=>{const{id:r,position:o,size:i}=t;if(r===n)return!0;{const t=s.initBoundsWithPositionAndSize(o,i);if(s.isContainerPoint(t,{left:e.x,top:e.y}))return!0}});o&&t.setActiveArtboard(o)},t.getLinePointsBySize=function(e,t,n){const{width:r,height:o}=n,i=[[{x:0,y:0},{x:r,y:0}],[{x:0,y:0},{x:0,y:o}],[{x:0,y:0},{x:r,y:o}],[{x:0,y:o},{x:r,y:0}]];let a={x:0,y:0},s={x:0,y:0};return e.x===t.x?e.y<t.y?[a,s]=i[1]:[s,a]=i[1]:e.x<t.x?e.y===t.y?[a,s]=i[0]:e.y<t.y?[a,s]=i[2]:[a,s]=i[3]:e.y===t.y?[s,a]=i[0]:e.y<t.y?[s,a]=i[3]:[s,a]=i[2],{realStart:a,realEnd:s}}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l<a;l++)if(o[l]!==i[l]){s=l;break}var c=[];for(l=s;l<o.length;l++)c.push("..");return(c=c.concat(i.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(102))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(77),o=n(1192),i=n(1194),a=n(1195),s=n(1196),l=n(423);e.exports=function(e){return new Promise((function(t,c){var u=e.data,d=e.headers;r.isFormData(u)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",f=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+f)}if(h.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};o(t,c,r),h=null}},h.onerror=function(){c(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var m=n(1197),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===u&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),c(e),h=null)})),void 0===u&&(u=null),h.send(u)}))}},function(e,t,n){"use strict";var r=n(1193);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},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.download=t.cloneArtboard=t.getAllPreviewArtboardsByNodeID=t.getAllArtboardsByMainArtboardID=t.getAllArtboardsByNodeID=t.getArtboardByID=void 0;const o=n(58),i=n(218);t.getArtboardByID=function(e){return r(this,void 0,void 0,(function*(){const t=i.appDataManager.socketOffline;try{return t?yield i.appDataManager.getArtboardByID(e):yield function(e){return r(this,void 0,void 0,(function*(){const t=yield o.get(`/artboard/${e}?rnd=${(new Date).getTime()}`);return i.appDataManager.pushArtboard([t]),t}))}(e)}catch(n){if(!t)return yield i.appDataManager.getArtboardByID(e);throw n}}))},t.getAllArtboardsByNodeID=function(e,t=!1){return r(this,void 0,void 0,(function*(){const n=i.appDataManager.socketOffline;try{return n?yield i.appDataManager.getAllArtboardsByNodeID(e):yield function(e,t=!1){return r(this,void 0,void 0,(function*(){const n=yield o.get(`/artboard/all/${e}?isExample=${t}&rnd=${(new Date).getTime()}`);return n&&n.length?(i.appDataManager.updateArtboardWithNodeID(e,n),n):i.appDataManager.getAllArtboardsByNodeID(e)}))}(e,t)}catch(t){if(!n)return yield i.appDataManager.getAllArtboardsByNodeID(e);throw t}}))},t.getAllArtboardsByMainArtboardID=function(e){return r(this,void 0,void 0,(function*(){const t=yield o.get(`/artboard/all-by-main-artboard-id/${e}?rnd=${(new Date).getTime()}`);return i.appDataManager.updateArtboardWithNodeID(t[0]._id,t),t}))},t.getAllPreviewArtboardsByNodeID=function(e){return r(this,void 0,void 0,(function*(){const t=yield o.get(`/artboard/preview/all/${e}?rnd=${(new Date).getTime()}`);return i.appDataManager.pushArtboard(t),t}))},t.cloneArtboard=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.put("/artboard/clone/"+e,{artboard:Object.assign({},t,{position:n})})}))},t.download=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.get(`/artboard/download/${e}/${t}`)}))}},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.sigin=t.signWithLark=t.checkWXLoginState=t.getWXQRCode=t.register=t.logout=t.signWithUserAndPassword=t.registerUser=t.login=t.getUserInfo=void 0;const o=n(296),i=n(58);function a(e){const t=e.indexOf("@");return e.slice(0,t)}t.getUserInfo=function(){return r(this,void 0,void 0,(function*(){return i.get("/user/info?rnd="+(new Date).getTime())}))},t.login=function(e,t){return r(this,void 0,void 0,(function*(){return yield i.post("/user/signin",{email:e,password:t,source:"rp",name:a(e)})}))},t.registerUser=function(e,t){return r(this,void 0,void 0,(function*(){return yield i.post("/user/signup",{email:e,password:t,source:"rp",name:a(e)})}))},t.signWithUserAndPassword=function(e){return r(this,void 0,void 0,(function*(){return i.post("/user/signin",e)}))},t.logout=function(){return r(this,void 0,void 0,(function*(){return i.axDelete("/user/logout")}))},t.register=function(e){return r(this,void 0,void 0,(function*(){return i.post("/user/signUpDesktop",e)}))},t.getWXQRCode=function(){return r(this,void 0,void 0,(function*(){return i.get("/user/getWxQRCode")}))},t.checkWXLoginState=function(){return r(this,void 0,void 0,(function*(){return i.get("/user/wx-check")}))},t.signWithLark=function(){return r(this,void 0,void 0,(function*(){return i.post("/lark/signinfromweb")}))},t.sigin=function(e){if(window.debug){const t=window.apis;t.Token=e,window.apis=t,localStorage.setItem("apis",JSON.stringify(t))}o.default.defaults.headers.Authorization="Bearer "+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(429),o=n(1207),i=n(1208),a=n(1209),s=n(1210);t.default={lib:r,group:s,resourceItem:{color:{add:o.addColor,remove:o.removeColor,patch:o.patchColor,move:o.moveColor},typography:{add:i.addTypography,remove:i.removeTypography,patch:i.patchTypography,move:i.moveTypography},component:{add:a.addComponent,remove:a.removeComponent,patch:a.patchComponent,move:a.moveComponent,resetGroup:a.resetComponentsGroup,removeComponents:a.removeComponents,addRelations:a.addRelations,patchRelations:a.patchRelations,removeRelations:a.removeRelations}}}},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.updateLib=t.getLibs=t.getLibByLibID=t.getLib=t.addLib=void 0;const o=n(58);t.addLib=function(e){return r(this,void 0,void 0,(function*(){return yield o.put("/ds/lib/"+e)}))},t.getLib=function(e,t=!1){return r(this,void 0,void 0,(function*(){return yield o.get(`/ds/lib/${e}?isExample=${t}&rnd=${(new Date).getTime()}`)}))},t.getLibByLibID=function(e){return r(this,void 0,void 0,(function*(){return yield o.get("/ds/lib/single/"+e)}))},t.getLibs=function(e,t=!1){return r(this,void 0,void 0,(function*(){return yield o.get(`/ds/lib/libs/${e}?isExample=${t}&rnd=${Date.now()}`)}))},t.updateLib=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch("/ds/lib/"+e,t)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setListItemsValue=t.getListItemsValue=void 0;const r=n(12),o=n(43);t.getListItemsValue=function(e){return e.components.map(e=>e.components[1].value).join("\n")},t.setListItemsValue=function(e,t,n){const i={},a={},s=t.split("\n");if(e.components.forEach((e,t)=>{const n=e;if(!n.components)return;const o=n.components[1];if(o&&t<=s.length-1){if(o.value===s[t])return;a[o.id]=[r.Ops.replace("/value",o.value)],i[o.id]=[r.Ops.replace("/value",s[t])]}}),s.length>e.components.length){const t=[],l=[];s.forEach((r,i)=>{if(i<e.components.length)return;const a=o.makeComponentItem(n.id,n.type,"",[r]);t.push(a),l.push(a._id)}),i[e.id]=[r.Ops.addChildren("-1",t)],a[e.id]=[r.Ops.removeChildren(l)]}else if(s.length<e.components.length){const t=[];a[e.id]=[],e.components.forEach((n,o)=>{o<s.length||(t.push(n.id),a[e.id].push(r.Ops.addChildren(""+o,[n.toJSON()])))}),i[e.id]=[r.Ops.removeChildren(t)]}return{[e.ownerArtboardID]:{do:i,undo:a}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(22),i=n(217),a=n(56),s=n(1227),l=n(371),c=n(42),u=n(4);n(1229);class d extends r.Component{constructor(e){super(e),this.info={[a.default.Image.toString()]:u.default("resource.components.image"),[a.default.Video.toString()]:u.default("resource.components.video"),[a.default.Audio.toString()]:u.default("resource.components.audio")},this.changeHoldRatio=e=>{this.setState({holdRetio:e})},this.changeFitComp=e=>{this.setState({fitComp:!e})},this.getScaleSize=()=>{const{compSize:e}=this.props,{originSize:t}=this.state,n={width:e.width,height:e.height},r=Object.assign({},t||{width:100,height:100});let o={height:100,width:100};if(!n||!r)return;const i=r.height/r.width;if(i>n.height/n.width){if(r.height<n.height)return r;o.height=n.height,o.width=o.height/i}else{if(r.width<n.width)return r;o.width=n.width,o.height=n.width*i}return o},this.updataUpLoadRrogress=e=>{this.setState({uploadProgress:e})},this.handleLoadImg=()=>{i.selectImage(i.AllowedImageTypes).then(e=>{if(e.size>l.MaxImageSize)return void this.setState({popupTargetAlert:!0,alertContent:l.ImageSizeExceedTips});const t=e.name.toLowerCase().includes(".svg")?a.default.Svg:a.default.Image;i.getLocalImageFileSize(e).then(n=>{n.size.width>l.MaxImageDimention||n.size.height>l.MaxImageDimention?this.setState({popupTargetAlert:!0,alertContent:l.ImageDimensionExceedTips}):(this.setState({uploading:!0}),i.uploadFile(e,t,this.updataUpLoadRrogress).then(t=>{const{URL:n}=t,{compSize:r}=this.props,o={width:t.size.width||r.width,height:t.size.height||r.height};this.setState({url:n,originFile:e,currentSize:o,originSize:o,uploading:!1})}).catch(e=>{console.log(e),this.setState({popupTargetAlert:!0,alertContent:u.default("alert.failToUpload")})}))}).catch(()=>{})}).catch(e=>{this.setState({popupTargetAlert:!0,alertContent:e})})},this.handleLoadVideo=()=>{i.selectVideo().then(e=>{e.size>l.MaxVideoSize?this.setState({popupTargetAlert:!0,alertContent:l.VideoSizeExceedTips}):(this.setState({uploading:!0}),i.uploadFile(e,a.default.Video,this.updataUpLoadRrogress).then(t=>{const{URL:n}=t,{compSize:r}=this.props,o={width:t.size.width||r.width,height:t.size.height||r.height};this.setState({url:n,originFile:e,currentSize:o,originSize:o,uploading:!1})}).catch(()=>{this.setState({popupTargetAlert:!0,alertContent:u.default("alert.failToUpload")})}))}).catch(e=>{this.setState({popupTargetAlert:!0,alertContent:e})})},this.handleCancel=()=>{const{onCancel:e}=this.props,{holdRetio:t,fitComp:n}=this.state;c.default.fileUploadOption={holdRetio:t,fitComp:n},e&&e()},this.handleLoad=e=>{e.stopPropagation();const{type:t}=this.props;t===a.default.Image&&this.handleLoadImg(),t===a.default.Video&&this.handleLoadVideo()},this.handleOKBtnClick=e=>{e.stopPropagation(),this.doSubmit()},this.handleCloseAlert=()=>{this.setState({popupTargetAlert:!1,alertContent:"",uploading:!1})},this.handleSubmit=()=>{this.doSubmit()},this.doSubmit=()=>{const{url:e,originSize:t,fitComp:n}=this.state;if(e&&this.props.onSelect&&t&&this.props.onSelect){let r;r=n?{height:this.props.compSize.height,width:this.props.compSize.width}:t,this.props.onSelect(e,r),this.handleCancel()}},this.renderContentByType=()=>{const{type:e}=this.props,{url:t,originFile:n}=this.state;return t&&n?e===a.default.Image||e===a.default.Svg?r.createElement("div",{className:"preview-file",style:{backgroundImage:`url(${t})`}}):e===a.default.Video?r.createElement("div",{className:"preview-file"},r.createElement("video",{style:{pointerEvents:"none"}},r.createElement("source",{src:t,type:"video/mp4"}))):e===a.default.Audio?r.createElement("div",{className:"preview-file"},r.createElement("audio",{style:{pointerEvents:"none"},controls:!0},r.createElement("source",{src:t,type:"video/mp4"}))):r.createElement("div",{className:"preview-file"},"URL: "+t):r.createElement("div",{className:"load-file"},r.createElement("span",null,u.default("editor.clickAndUpload",this.info[e])))},this.renderByType=()=>{const{url:e,fitComp:t,uploading:n,uploadProgress:i}=this.state;return r.createElement("div",{className:"file-selector"},r.createElement("div",null,r.createElement("div",{className:"file-box",onClick:e=>n?void 0:this.handleLoad(e)},n?r.createElement(o.ProgressBar,{className:"upload-progressbar",progress:i}):this.renderContentByType())),r.createElement("div",{className:"checkbox-group"},r.createElement(o.CheckBox,{theme:"light",id:"value",checked:!t,text:u.default("editor.applyOriginalSize"),onChange:this.changeFitComp})),r.createElement("div",{className:"button-bar footer-without-separator"},r.createElement(o.Button,{theme:"dialog",width:60,activated:!!e,disabled:!e,onClick:this.handleOKBtnClick},u.default("general.ok")),r.createElement(o.Button,{theme:"dialog",onClick:this.handleCancel},u.default("general.cancel"))))},this.renderTargetAlert=()=>{const{popupTargetAlert:e,alertContent:t}=this.state;return e?r.createElement(s.default,{title:"",alertContent:t||"",onClose:this.handleCloseAlert}):null},this.state={currentSize:{height:0,width:0},fitComp:c.default.fileUploadOption.fitComp,holdRetio:c.default.fileUploadOption.holdRetio,uploadProgress:0,uploading:!1}}render(){return r.createElement(r.Fragment,null,r.createElement(o.Dialog,{width:500,onClose:this.handleCancel,onSubmit:this.handleSubmit,backFade:!0,allowDrag:!0},this.renderByType()),this.renderTargetAlert())}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updatePatchesBaseOnNewStateInTempState=t.isSameProperty=void 0;const r=n(7),o=n(8),i=n(116);t.isSameProperty=(e,t)=>{if(e&&t){const n=[];Object.keys(e).concat(...Object.keys(t)).forEach(e=>{-1===["ref","name","prop","hidden"].indexOf(e)&&n.push(e)});for(let i=0;i<n.length;i++){const a=n[i];if(r.isUndefined(e[a])||r.isUndefined(t[a]))return!1;if(!r.isUndefined(e[a])&&!r.isUndefined(t[a]))if("object"==typeof e[a]){if(!o.isEqualDate(e[a],t[a]))return!1}else if(e[a]!==t[a])return!1}}return!0},t.updatePatchesBaseOnNewStateInTempState=function(e,t,n){const a=o.depthClone(e);Object.values(a.properties).forEach(e=>{!e||e.ref&&1===Object.keys(e).length||(e.ref=void 0)}),r.set(a,"enabled",!0),i.doAddOperationByNewValue("./states/"+t,a,n)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(0),o=n(142);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=0,l=Object(r.memo)((function(e){var t=e.children,n=i(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[c]||(i[c]=Object(o.b)(e,t,n,r));return i[c]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(a(e,["children"])),2),l=n[0],d=n[1];return r.useEffect((function(){return d&&s++,function(){d&&(0===--s&&(u()[c]=null))}}),[]),r.createElement(o.a.Provider,{value:l},t)}));l.displayName="DndProvider";var c=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function u(){return void 0!==e?e:window}}).call(this,n(64))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckBoxGroupCfg=t.onChildMove=void 0;const r=n(18),o=n(8),i=n(12),a=n(46),s=n(4),l=n(62),c=n(116),u=n(157),d=n(24),h=n(56),p=n(10),f=n(6),m=[s.default("resource.componentsText.itemText")+" 1",s.default("resource.componentsText.itemText")+" 2",s.default("resource.componentsText.itemText")+" 3"],g=m.map(e=>r.measureTextSize({fontSize:14,fontFamily:"Microsoft YaHei"},e));function v(e,t,n){var r;const a=new l.ArtboardPatchesClass;if(n&&1===n.length&&"pureText"===n[0].alias){const t=n[0],s=t.position,l=t.parent,h=u.getFinalPositionWhenMove([t],e)[0].position,p=l.getCurrentPropertiesPath("properties/layout"),f=l.id,m=h.x-s.x,g=l.properties,v=Object.assign(Object.assign({},g.layout),{horizontalGap:o.max(0,(null===(r=g.layout)||void 0===r?void 0:r.horizontalGap)+m)}),y=(new c.ComponentPatchesClass).getAttrChangePatches(f,p,{oldVal:g,newVal:v}),b=a.getPatchesByCompChange(f,y),{id:w,currentStateID:C,states:_}=l;if(C&&C!==d.PredefinedStates.normal&&!_[C]){const e="./states/"+C;b.do[w].unshift(i.Ops.add(e,{enabled:!0,properties:{}})),b.undo[w].push(i.Ops.remove(e))}return b}return null}t.onChildMove=v,t.CheckBoxGroupCfg={type:"checkbox-group",name:s.default("resource.components.checkboxGroup"),thumb:{spriteIconClass:p.SpriteThumb.CheckBoxGroup.className,dragPosition:p.SpriteThumb.CheckBoxGroup.position},isList:!0,predefinedStates:[d.PredefinedStates.disabled],value:{type:h.default.ListItemPureTextValues},constraint:{firstLevelContainer:{move:f.MoveMode.neither},pureText:{move:f.MoveMode.horizontal},iconWrapper:{move:f.MoveMode.neither}},editor:{onChildMove:v},interactions:{defaultEvent:a.EventTypes.checked},item:`\n {\n type: @@C.StackPanel,\n alias: 'firstLevelContainer',\n size: {\n width: {3},\n height: ${Math.max(16,g[0].height)},\n },\n properties: {\n layout:{\n direction: 'horizontal',\n horizontalGap: 8,\n verticalAlign: 'middle',\n disabledSwitch: true,\n disabled: false,\n },\n },\n value: '',\n components: [\n {\n type: @@C.CanvasPanel,\n alias:'iconWrapper',\n size: {\n width: 13,\n height: 13,\n },\n position:{\n x: 0,\n y: 2,\n },\n layout:{\n vertical: 'auto',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n properties: {\n stroke: {\n color: "#AAAAAA",\n thickness: 1,\n disabled: false\n },\n fill:{\n type: 'solid',\n color: {r: 255, g: 255, b: 255, a: 1},\n disabled: false,\n },\n },\n states: {\n checked: {\n enabled: true,\n name: '${s.default("property.propertyNames.checked")}',\n properties:{\n fill:{\n type: @@FillType.solid,\n color: @@SystemColors.DefaultSelectColor,\n disabled: false,\n },\n stroke:{disabled:true}\n },\n },\n }, \n components: [\n \n {\n type: @@C.Path,\n position: {\n x: 3.5,\n y: 4.5,\n },\n size: {\n width: 6,\n height: 4,\n },\n layout:{\n vertical: 'auto',\n horizontal: 'left&right',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties: {\n stroke:{\n cap:"butt",\n color:{a:1,b:255,g:255,r:255},\n disabled:false,\n join:"miter",\n position:"center",\n thickness:2\n } \n },\n value: {\n closed: false,\n data: [\n { handleIn: { x: 0, y: 0 }, handleOut: { x: 0, y: 0 }, point: { x: 0, y: 1 } },\n { handleIn: { x: 0, y: 0 }, handleOut: { x: 0, y: 0 }, point: { x: 2.5, y: 3.5 } },\n { handleIn: { x: 0, y: 0 }, handleOut: { x: 0, y: 0 }, point: { x: 6, y: 0 } },\n ],\n },\n hidden: true,\n states: {\n checked: {\n enabled: true,\n name: '${s.default("property.propertyNames.checked")}',\n hidden: false,\n properties:{\n stroke:{\n cap:"butt",\n color:{a:1,b:255,g:255,r:255},\n disabled:false,\n join:"miter",\n position:"center",\n thickness:2\n } \n },\n },\n },\n },\n ],\n },\n {\n type: @@C.PureText,\n alias:'pureText',\n autoSize: true,\n size: {\n width: {2},\n height: ${g[0].height},\n },\n position:{\n x: 26,\n y: 2,\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left&right',\n fixedWidth: false,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n value: '{0}',\n properties: {\n textStyle: {\n ref: '@properties.textStyle1',\n },\n },\n states: {\n checked: {\n name: '${s.default("property.propertyNames.checked")}',\n enabled: true,\n properties: {\n textStyle: {\n ref: '@properties.textStyle2',\n },\n },\n },\n },\n },\n ],\n selected: {1},\n }\n `,template:`\n {\n type: @@C.GridPanel,\n size: { \n width: ${g.reduce((e,t)=>e+t.width+26,10*(g.length-1))},\n height: ${Math.max(g[0].height,16)}\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties: {\n cell:{\n columnCount:1\n },\n layout: {\n direction: 'horizontal',\n verticalAlign: 'middle',\n horizontalAlign: 'left',\n verticalGap: 10,\n horizontalGap: 10,\n disabledSwitch:true,\n },\n textStyle1: {\n prop: 'textStyle',\n name: '${s.default("property.propertyNames.defaultText")}',\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n color: @@SystemColors.DefaultTextColor,\n disabled: false,\n },\n textStyle2: {\n prop: 'textStyle',\n name: '${s.default("property.propertyNames.checkedText")}',\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n color: @@SystemColors.DefaultTextColor,\n disabled: false,\n },\n },\n states:{\n disabled:{\n enabled: false,\n properties:{\n textStyle1: {\n prop: 'textStyle',\n fontSize: 14,\n color: @@SystemColors.DisabledTextColor,\n },\n textStyle2: {\n prop: 'textStyle',\n fontSize: 14,\n color: @@SystemColors.DisabledTextColor,\n },\n },\n },\n },\n value: '',\n components: [\n ${m.map((e,t)=>`@@ITEM-${e}|${0===t}|${g[t].width}|${g[t].width+26},`).join("\n")}\n ],\n select: {\n target: 'child',\n enabled: true,\n maxCount: -1,\n minCount: 0,\n reversible: true,\n autoUnselect: false,\n },\n sealed: true,\n }\n `,itemArgs:[{type:"string",value:"Item"},{type:"boolean",value:!1}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegType=void 0;const r=n(0),o=n(178),i=n(7),a=n(2),s=n(178),l=n(22),c=n(36),u=n(8),d=n(84),h=n(16),p=n(103),f=n(23),m=n(32),g=n(20),v=n(1333),y=n(47),b=n(14),w=n(1334),C=n(106),_=n(94),x=n(153),S=n(293),k=n(1335);var P,T;n(1336),function(e){e.Straight="straight",e.Mirrored="mirrored",e.Disconnected="disconnected",e.Asymmetric="asymmetric"}(P=t.SegType||(t.SegType={})),function(e){e.Pen="Pen",e.PenAdd="PenAdd",e.PenMove="PenMove",e.PenClose="PenClose",e.Shears1="Shears1",e.Shears2="Shears2"}(T||(T={}));class E extends r.Component{constructor(e){var t,n,i;super(e),this.timeStamp=Date.now(),this.isCtrl=!1,this.isShift=!1,this.isAlt=!1,this.mouseDownTime=NaN,this.showAlign=!0,this.isDetectClose=!1,this.prevPosition=new s.Point(0,0),this.offsetEnd=new s.Point(0,0),this.dynamicSegment=new s.Segment(new s.Point(0,0)),this.canvas=r.createRef(),this.pixelScale=0,this.setCursor=e=>{if(this.state.cursor!==e){const t="default"===e?this.state.cursor:e;this.setState({cursor:t},()=>{this.props.onCursorChange(!1,e)})}},this.handleMouseDown=e=>{var t,n,r,o,i,a,l,c,u,d,h;if(e.preventDefault(),e.stopPropagation(),((null===(n=null===(t=this.path)||void 0===t?void 0:t.segments)||void 0===n?void 0:n.length)||0)<2&&this.props.onActiveArtboardChange(),(!e.event||0===e.event.button)&&e.point&&this.path)if(this.props.clipPath){this.setCursor(T.Shears2);const t=this.hitTestClipStroke(e.point);if(t){this.mousePoint=e.point;const{item:n,location:r}=t;if(!r)return;const{segment1:o,segment2:i}=r.curve;if(n&&"Path"===n.className){const t=n;if(t.closed){const n=t.removeSegments(0,i.index);n&&t.addSegments(n),t.closed=!1,this.immediateApplyPath();const r=this.hitTestClipStroke(e.point);this.markClipStroke(r),this.inMutateEnd()}else if(i===t.lastSegment){t.removeSegment(t.lastSegment.index),this.immediateApplyPath();const n=this.hitTestClipStroke(e.point);this.markClipStroke(n),this.inMutateEnd()}else if(o===t.firstSegment){t.removeSegment(t.firstSegment.index),this.immediateApplyPath();const n=this.hitTestClipStroke(e.point);this.markClipStroke(n),this.inMutateEnd()}else{const n=t.removeSegments(i.index);this.offcut=new s.Path(n),this.immediateApplyPath();const r=this.hitTestClipStroke(e.point);this.markClipStroke(r),this.inMutateEnd()}}else n&&n.className}}else{const t=this.isNewBuild(),n=this.alignTolerance.test,{pathEditorManager:p,path:f,revisePoint:m,dynamicSegment:g,isShift:v}=this,{segments:b,firstSegment:w,lastSegment:C}=f,_=f.clone({insert:!1});for(null===(r=_.segments)||void 0===r||r.forEach((e,t)=>{var n;const r=null===(n=null==f?void 0:f.segments[t])||void 0===n?void 0:n.radius;r&&(e.radius=r)}),(null==b?void 0:b.includes(this.dynamicSegment))&&(C===this.dynamicSegment?_.lastSegment.remove():w===this.dynamicSegment&&_.firstSegment.remove());null===(o=_.segments)||void 0===o?void 0:o.find(e=>y.isSegWithRadius(e));){const e=null===(i=_.segments)||void 0===i?void 0:i.find(e=>y.isSegWithRadius(e));this.setRadius(e,_)}const x=_.hitTest(e.point,{stroke:!0,tolerance:n,match:e=>{const{type:t,location:n}=e;if("stroke"===t){if(!n)return!1;const{curve:{segment1:e,segment2:t}}=n;return![e,t].some(e=>y.isSegWithRadius(e))&&![e,t].every(e=>e.hidden)}return!1}}),S=this.path.hitTest(e.point,{handles:!0,tolerance:n,match:e=>{var t;return null===(t=e.segment)||void 0===t?void 0:t.selected}});let k=void 0;const P=this.path.hitTest(e.point,{stroke:!0,segments:!0,tolerance:n,match:e=>{var n;const{type:r,segment:o}=e;return o===g&&this.state.insertPointAtStart&&C.point&&(null===(n=o.point)||void 0===n?void 0:n.equals(C.point))?(k=C,!0):!t||"segment"!==r||o!==g}});let T;if(k&&(P.segment=k),this.setState({moveAnchor:void 0}),T=S?"handle-in"===S.type&&"segment"===(null==P?void 0:P.type)&&(null===(l=null===(a=S.segment)||void 0===a?void 0:a.handleIn)||void 0===l?void 0:l.isZero())||"handle-out"===S.type&&"segment"===(null==P?void 0:P.type)&&(null===(u=null===(c=S.segment)||void 0===c?void 0:c.handleOut)||void 0===u?void 0:u.isZero())?P:S:"segment"===(null==P?void 0:P.type)||"stroke"===(null==P?void 0:P.type)&&"stroke"===(null==x?void 0:x.type)?P:void 0,!T)return t?((null==b?void 0:b.includes(g))&&(C===g&&C.remove(),w===g&&w.remove()),this.state.insertPointAtStart?this.addSegment(0,new s.Segment(m)):this.addSegment((null==b?void 0:b.length)||0,new s.Segment(m)),this.operate="addPoint"):(this.selectionStartPoint=e.point,this.setActiveSegment(void 0),this.operate="boxSelection"),void this.forceUpdate();const{type:E,segment:O,location:M}=T;switch(E){case"segment":if(!O)return;v||null===(d=f.segments)||void 0===d||d.forEach(e=>{e.selected=!1});this.canClose()&&(this.state.insertPointAtStart&&C===O||!this.state.insertPointAtStart&&w===O)?(this.state.insertPointAtStart?(this.path.reverse(),null==p||p.closePath(this.path),this.path.reverse()):null==p||p.closePath(this.path),this.isDetectClose=!1,this.setActiveSegment(this.path.firstSegment),this.operate="closePath",this.immediateApplyPath()):(new Date).getTime()-this.mouseDownTime<500&&this.mouseDownPosition&&e.point.getDistance(this.mouseDownPosition)<6&&f.activeSegment===O?(this.mouseDownTime=NaN,this.mouseDownPosition=void 0,this.setPointType(O),this.path.activeSegment&&(this.path.activeSegment.selected=!0)):(this.mouseDownTime=(new Date).getTime(),this.mouseDownPosition=e.point,this.setSelectedAndPrevSeg(O),this.dynamicSegment.remove());break;case"handle-in":if(!O)return;this.setActiveSegment(O),this.prevSeg=O.clone(),this.operate="handleIn";break;case"handle-out":if(!O)return;this.setActiveSegment(O),this.prevSeg=O.clone(),this.operate="handleOut";break;case"stroke":{if(!M)return;const e=M.curve.segment2,t=M.curve.segment1.clone(),n=M.curve.segment2.clone();let r=(null==b?void 0:b.indexOf(e))||0;if(e!==g){const e=null==M?void 0:M.curve.divideAtTime(M.time),o=null==e?void 0:e.segment1;null==o||o.remove(),null===(h=this.path.segments)||void 0===h||h.forEach(e=>{e.selected=!1}),this.insertSegment(r,o,t,n),this.operate="insertPoint"}break}}this.afterSegmentSlectedChanged(),this.forceUpdate()}},this.handleMouseDoubleClick=e=>{var t;const n=null===(t=this.path)||void 0===t?void 0:t.clone();if(!n)return;n.fillColor="#FFF";const r=this.alignTolerance.test;if(e.point){n.hitTest(e.point,{fill:!0,stroke:!0,segments:!0,handles:!0,tolerance:r})||this.stopPathEditor()}},this.handleMouseMove=e=>{var t;if(e.point&&this.path)if(this.props.clipPath){const t=this.hitTestClipStroke(e.point);this.markClipStroke(t)}else{const n=this.isNewBuild();if(this.mousePoint=e.point,n){const n=this.detectAlign(e.point),r=this.detectClose(n);this.revisePoint=null!==(t=r.point)&&void 0!==t?t:n.clone(),this.isShift||(this.dynamicSegment.point=r.point,this.dynamicSegment.handleIn=r.handleIn,this.dynamicSegment.handleOut=r.handleOut)}this.hitTestOnMove(e.point)}},this.handleMouseUp=e=>{var t;const{path:n,pathEditorManager:r,prevSeg:i,operate:a}=this;if(this.props.clipPath)this.setCursor(T.Shears1);else{if(n)switch(a){case"handleIn":case"handleOut":i&&(null==r||r.handlesMove(n,i),this.immediateApplyPath());break;case"activePoints":this.offsetEnd.isZero()?this.isShift||(null===(t=o.project)||void 0===t||t.deselectAll(),n.activeSegment&&(n.activeSegment.selected=!0)):(null==r||r.pointsMove(n,this.offsetEnd),this.immediateApplyPath()),this.offsetEnd.x=this.offsetEnd.y=0;break;case"addPoint":this.offsetEnd.x=this.offsetEnd.y=0,this.immediateApplyPath();break;case"insertPoint":this.immediateApplyPath();break;case"boxSelection":if(e.point){const t=n.hitTest(e.point,{fill:!0,tolerance:0});this.state.selectionBox||t||this.stopPathEditor()}}this.setState({selectionBox:void 0,moveAnchor:void 0,verticalAlignLinePoint:void 0,horizontalAlignLinePoint:void 0,verticalMidperpendicularPoint:void 0,horizontalMidperpendicularPoint:void 0},()=>{const e=this.context.uiManager.onUpdatePathInfo;e&&e()}),this.operate=null}},this.handleMouseDrag=e=>{var t;if(!(e.event&&0!==e.event.button||this.props.clipPath)){if(e.delta&&e.point&&this.path){const{path:n,operate:r}=this,{delta:o,point:i}=e;switch(this.setCursor("boxSelection"===r?T.Pen:T.PenMove),r){case"addPoint":if(this.offsetEnd=this.offsetEnd.add(o),n.activeSegment&&this.offsetEnd.getDistance(new s.Point(0,0))>8){const t=e.point.subtract(n.activeSegment.point);if(this.isShift){const{newPoint:e}=this.getFixedAngleHandle(t);n.activeSegment.handleOut=e,!this.isAlt&&(n.activeSegment.handleIn=new s.Point(-e.x,-e.y))}else{const e=n.activeSegment.point.add(t);if(this.props.showGrid){const t=this.detectGrid(e);e.x=t.x,e.y=t.y}const r=this.detectPixel(e);e.x=r.x,e.y=r.y;const o=e.subtract(n.activeSegment.point);n.activeSegment.handleOut=o,!this.isAlt&&(n.activeSegment.handleIn=new s.Point(-o.x,-o.y))}}break;case"insertPoint":if(!n.activeSegment)return;this.revisePoint=this.detectAlign(i),n.activeSegment.point=this.revisePoint;break;case"activePoints":{if(!n.activeSegment||!n.activeSegment.point)return;const e=(null===(t=n.segments)||void 0===t?void 0:t.filter(e=>e.selected))||[],r=e.map(e=>e.index);this.revisePoint=this.detectAlign(i,r);const o=n.activeSegment.point,a=this.revisePoint.subtract(o),l=!!this.state.verticalAlignLinePoint||!!this.state.horizontalAlignLinePoint;(a.getDistance(new s.Point(0,0))>4||l)&&(this.offsetEnd=this.offsetEnd.add(a),e.forEach(e=>{e.point&&(e.point=e.point.add(a))}));break}case"handleOut":case"handleIn":{if(!n.activeSegment)return;let t=y.getSegType(n.activeSegment);this.isAlt&&(t=P.Disconnected);const o=e.point.subtract(n.activeSegment.point);if(this.isShift){const{newPoint:e}=this.getFixedAngleHandle(o);if("handleIn"===r){n.activeSegment.handleIn=e;const r=y.getAnotherPointBySegType(t,e,n.activeSegment.handleOut);n.activeSegment.handleOut=r}else{n.activeSegment.handleOut=e;const r=y.getAnotherPointBySegType(t,e,n.activeSegment.handleIn);n.activeSegment.handleIn=r}}else{const e=n.activeSegment.point.add(o);if(this.props.showGrid){const t=this.detectGrid(e);e.x=t.x,e.y=t.y}const i=this.detectPixel(e);e.x=i.x,e.y=i.y;const a=e.subtract(n.activeSegment.point);if("handleIn"===r){n.activeSegment.handleIn=a;const e=y.getAnotherPointBySegType(t,a,n.activeSegment.handleOut);n.activeSegment.handleOut=e}else{n.activeSegment.handleOut=a;const e=y.getAnotherPointBySegType(t,a,n.activeSegment.handleIn);n.activeSegment.handleIn=e}}this.isCtrl&&[P.Disconnected,P.Asymmetric].includes(t)&&this.modifyHandleEquidistance(r,n.activeSegment);break}case"boxSelection":{if(!this.selectionStartPoint)return;const{x:t,y:n}=this.selectionStartPoint,{x:r,y:o}=e.point;this.boxSelectionSegment(this.selectionStartPoint,e.point),this.setState({selectionBox:{start:{x:t,y:n},end:{x:r,y:o}}});break}}}this.forceUpdate()}},this.handleKeyDown=e=>{var t,n;if(e.preventDefault(),e.stopPropagation(),!this.path)return;const r=this.isNewBuild(),{segments:o}=this.path,{keyCode:i,shiftKey:a,altKey:s}=e,l=o?o.filter(e=>e.selected):[];this.isCtrl=d.isControlKeyPressed(e),this.isShift=a,this.isAlt=s;const u=this.isShift?4:1,h=()=>{r&&this.path&&(!(null==o?void 0:o.includes(this.dynamicSegment))&&this.path.add(this.dynamicSegment),this.hitTestOnMove(this.dynamicSegment.point),this.detectAlign(this.dynamicSegment.point,[],!1))};switch(r&&this.isShift&&this.revisePoint&&!this.isFixedAngle&&(this.setRevisePointOnFixedAngleMixinAlign(),this.dynamicSegment.point=this.revisePoint,!this.showAlign&&this.clearAlign()),i){case c.default.VK_ESCAPE:this.stopPathEditor();break;case c.default.VK_BACKSPACE:case c.default.VK_DEL:this.removeSelectedSegments();break;case c.default.VK_Y:this.isCtrl&&(null===(t=this.pathEditorManager)||void 0===t||t.redo(),this.immediateApplyPath(),this.inMutateEnd());break;case c.default.VK_Z:this.isCtrl&&(null===(n=this.pathEditorManager)||void 0===n||n.undo(()=>{}),this.immediateApplyPath(),this.inMutateEnd());break;case c.default.VK_LEFT:this.offsetEnd.x-=u,l.forEach(e=>e.point.x-=u),h();break;case c.default.VK_UP:this.offsetEnd.y-=u,l.forEach(e=>e.point.y-=u),h();break;case c.default.VK_RIGHT:this.offsetEnd.x+=u,l.forEach(e=>e.point.x+=u),h();break;case c.default.VK_DOWN:this.offsetEnd.y+=u,l.forEach(e=>e.point.y+=u),h()}this.forceUpdate()},this.handleKeyUp=e=>{if(e.preventDefault(),e.stopPropagation(),!this.path)return;const{keyCode:t}=e,{pathEditorManager:n}=this;switch(t){case c.default.VK_CTRL:case v.KeyBoardCode.METAKEY:this.isCtrl=!1;break;case c.default.VK_ALT:this.isAlt=!1;break;case c.default.VK_SHIFT:this.isShift=!1,this.dynamicSegment&&this.mousePoint&&(this.dynamicSegment.point=this.mousePoint,this.clearAlign());break;case c.default.VK_LEFT:case c.default.VK_RIGHT:case c.default.VK_UP:case c.default.VK_DOWN:this.offsetEnd.isZero()||(null==n||n.keyDownMove(this.path,this.offsetEnd),this.offsetEnd.x=this.offsetEnd.y=0,this.immediateApplyPath())}},this.onResize=()=>{this.animateID&&window.cancelAnimationFrame(this.animateID),this.animateID=window.requestAnimationFrame(()=>{if(!this.canvas.current)return;const{width:e,height:t}=this.canvas.current.getBoundingClientRect();o.view.viewSize=new s.Size({width:e,height:t})})},this.handleContextMenu=e=>{e.preventDefault(),e.stopPropagation(),this.stopPathEditor()},this.findMinMax=e=>t=>{let n=t[0][e],r=t[0][e],o=t[0],i=t[0];for(let a=1,s=t.length;a<s;a++){let s=t[a][e];s<n&&(n=s,o=t[a]),s>r&&(r=s,i=t[a])}return[o,i]},this.scaleBy=e=>{this.matrix.scale(e),this.path.matrix.scale(e),this.path.strokeWidth*=e,this.setState({moveAnchor:void 0,verticalAlignLinePoint:void 0,horizontalAlignLinePoint:void 0,verticalMidperpendicularPoint:void 0,horizontalMidperpendicularPoint:void 0})},this.translateBy=(e,t)=>{this.matrix.translate(e,t),this.path.matrix.translate(e,t),this.setState({moveAnchor:void 0,verticalAlignLinePoint:void 0,horizontalAlignLinePoint:void 0,verticalMidperpendicularPoint:void 0,horizontalMidperpendicularPoint:void 0})},this.setSegmentsRadiusAndSubmit=e=>{var t,n;(null===(t=this.path)||void 0===t?void 0:t.segments)&&(null===(n=this.pathEditorManager)||void 0===n||n.setSelectedSegmentsRadius(this.path,e),this.immediateApplyPath(),this.forceUpdate())},this.setSegmentsRadius=(e,t=!0)=>{var n,r;(null===(n=this.path)||void 0===n?void 0:n.segments)&&(null===(r=this.pathEditorManager)||void 0===r||r.setSelectedSegmentsRadius(this.path,e),t&&this.immediateApplyPath(),this.forceUpdate())},this.setSegmentsTypes=e=>{var t,n;(null===(t=this.path)||void 0===t?void 0:t.segments)&&(null===(n=this.pathEditorManager)||void 0===n||n.setSelectedSegmentsType(this.path,e),this.immediateApplyPath(),this.forceUpdate())},this.getRemainder=(e,t)=>(e%t+t)%t,this.afterSegmentSlectedChanged=()=>{const{path:e,dynamicSegment:t}=this;let n=!1,r=!1;if(e){const{firstSegment:o,lastSegment:i,segments:a}=e,s=null==a?void 0:a.filter(e=>e.selected);1!==(null==s?void 0:s.length)?n=!0:o===t?1!==s[0].index?n=!0:r=!0:i===t?s[0].index!==i.index-1&&(n=!0):i.selected||o.selected?o.selected&&(r=!0):n=!0}this.setState({isModify:n,insertPointAtStart:r})},this.isMirrorSegment=e=>!e.handleIn&&!e.handleOut||!(!e.handleOut||!e.handleIn)&&e.handleIn.add(e.handleOut).isZero(),this.toFixed=e=>u.round(e),this.toFixedSubstract=(e,t=4.5)=>this.toFixed(e)-t,this.menuItem=[{id:"confirm",text:"confirm"}],this.handleMenuItemClick=e=>{const{id:t}=e;switch(t){case"confirm":this.stopPathEditor()}},this.handleMenuClose=()=>{this.setState({menuPosition:void 0})},this.renderMenu=()=>this.state.menuPosition?r.createElement(l.PopupMenu,{position:this.state.menuPosition,items:this.menuItem,width:80,onClose:this.handleMenuClose,onItemClick:this.handleMenuItemClick}):null;let a,h=!1,p=!1;const{data:f}=this.props;f.path&&(a=f.path,h=!!a.closed,p=h),this.state={pathData:a,isModify:p,closePath:h,matrix:this.props.matrix,fill:null===(t=this.props.data)||void 0===t?void 0:t.fill,stroke:null===(n=this.props.data)||void 0===n?void 0:n.stroke,line:null===(i=this.props.data)||void 0===i?void 0:i.line,insertPointAtStart:!1,cursor:e.clipPath?T.Shears1:T.Pen},this.revisePoint=new s.Point(e.point.x,e.point.y),e.onCursorChange(!1,e.clipPath?T.Shears1:T.Pen)}get revisePoint(){return this._revisePoint}set revisePoint(e){this._revisePoint=e}get alignTolerance(){return Object.assign(w.DimensionHelper.utils.adsorptionDistance,{normal:5,test:6})}componentDidMount(){if(!this.canvas.current)throw new Error("没有设置画布和窗口元素");o.install(this),o.setup(this.canvas.current);const{width:e,height:t}=this.canvas.current.getBoundingClientRect();o.view.viewSize=new s.Size(e,t),this.renderPath(),o.settings.handleSize=7,o.view.onMouseDown=this.handleMouseDown,o.view.onMouseMove=this.handleMouseMove,o.view.onMouseDrag=this.handleMouseDrag,o.view.onMouseUp=this.handleMouseUp,window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp),window.addEventListener("resize",this.onResize),this.context.uiManager.pathEditor=this;const n=this.context.uiManager.onUpdatePathInfo;n&&n()}componentWillUnmount(){window.removeEventListener("resize",this.onResize),window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),o.view.onMouseDown=o.view.onMouseMove=o.view.onMouseDrag=o.view.onMouseUp=null,window.clearTimeout(this.timeOut),this.animateID&&window.cancelAnimationFrame(this.animateID),this.props.onCursorChange(!1,"default")}UNSAFE_componentWillReceiveProps(e){var t,n,r;const{data:o,clipPath:i}=e;if(o&&this.setState({fill:o.fill,stroke:o.stroke,line:o.line}),o&&o.path&&this.path&&!!o.path.closed!=!!(null===(t=this.path)||void 0===t?void 0:t.closed)&&(this.dynamicSegment.remove(),this.path.closed=!!o.path.closed,i&&this.mousePoint)){const e=this.hitTestClipStroke(this.mousePoint);this.markClipStroke(e)}!this.props.clipPath&&i?(this.setCursor(T.Shears1),this.dynamicSegment.remove(),this.setActiveSegment(void 0),this.hoverSegIndex=void 0,this.clearAlign()):this.props.clipPath&&!i&&(this.setState({isModify:!!(null===(n=this.path)||void 0===n?void 0:n.closed)}),this.setActiveSegment(null===(r=this.path)||void 0===r?void 0:r.lastSegment))}get bounds(){var e;const t=null===(e=this.path)||void 0===e?void 0:e.bounds;return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}}doSmoothWithClose(){if(this.isCtrl)return;const e=this.dynamicSegment===this.path.lastSegment?this.path.firstSegment:this.path.lastSegment;this.isDetectClose?(this.dynamicSegment.handleOut=new s.Point(e.handleOut),this.dynamicSegment.handleIn=new s.Point(e.handleIn)):(this.dynamicSegment.handleIn=new s.Point(0,0),this.dynamicSegment.handleOut=new s.Point(0,0))}getFixedAngleHandle(e){const{path:t}=this,{segments:n}=t,r=new s.Point(e.x,e.y);if(t&&n){const e=r.angle%45;return e>=22.5?r.angle+=45-e:e<=22.5&&e>0||e>=-22.5&&e<0?r.angle-=e:e<-22.5&&e>-45&&(r.angle-=45+e),{newPoint:r,angle:r.angle}}return{newPoint:r,angle:r.angle||0}}modifyHandleEquidistance(e,t){var n,r,o,i;const{handleIn:a,handleOut:l}=t,c=new s.Point(0,0),u=Math.abs(null!==(n=null==a?void 0:a.getDistance(c))&&void 0!==n?n:0),d=Math.abs(null!==(r=null==l?void 0:l.getDistance(c))&&void 0!==r?r:0);let h=null!==(o=null==a?void 0:a.clone())&&void 0!==o?o:c.clone(),p=null!==(i=null==l?void 0:l.clone())&&void 0!==i?i:c.clone();"handleIn"===e?t.handleIn=new s.Point(h.x/u*d,h.y/u*d):t.handleOut=new s.Point(p.x/d*u,p.y/d*u)}insertSegment(e,t,n,r){var i,a;this.path&&(o.project&&(null===(i=o.project)||void 0===i||i.deselectAll()),null===(a=this.pathEditorManager)||void 0===a||a.insertSegment(t,e,this.path,n,r))}addSegment(e,t){var n,r,i;this.path&&(null===(n=o.project)||void 0===n||n.deselectAll(),null===(r=this.path.segments)||void 0===r||r.forEach(e=>{e.selected=!1}),null===(i=this.pathEditorManager)||void 0===i||i.addSegment(t,e,this.path,this.dynamicSegment))}removeSelectedSegments(){var e;this.path&&(null===(e=this.pathEditorManager)||void 0===e||e.removeSelectedSegments(this.path,this.dynamicSegment),this.immediateApplyPath(),this.inMutateEnd(!0))}setPointType(e){const{path:t,pathEditorManager:n}=this;e&&t&&(t.activeSegment=e,null==n||n.togglePointType(t),this.immediateApplyPath(),this.inMutateEnd())}hitTestClipStroke(e){if(!this.path||!e)return;const{path:t}=this,{lastSegment:n,segments:r,firstSegment:o}=t,i=this.alignTolerance.test;this.hoverSegIndex=void 0,(null==r?void 0:r.includes(this.dynamicSegment))&&(n===this.dynamicSegment?n.remove():o===this.dynamicSegment&&o.remove());return t.hitTest(e,{stroke:!0,tolerance:i})}markClipStroke(e){var t,n;if(e&&"stroke"===e.type){const{location:r,item:o}=e;if(!r)return;const{segment1:i,segment2:a}=r.curve;if(o&&"Path"===o.className){const e=o;if(!(null===(t=e.segments)||void 0===t?void 0:t.length)||(null===(n=e.segments)||void 0===n?void 0:n.length)<=1)return void this.setState({clipStroke:void 0})}const l=new s.Path;l.addSegments([i,a]),this.setState({clipStroke:l.clone({insert:!1})})}else this.setState({clipStroke:void 0})}hitTestOnMove(e){var t,n,r,o,i,a,s,l;if(!this.path||!e)return;const c=this.isNewBuild(),{path:u}=this,{lastSegment:d,segments:h,firstSegment:p}=u,f=this.alignTolerance.test,m=this.canClose();!this.isDetectClose&&(this.hoverSegIndex=void 0);const g=u.clone({insert:!1}),v=u.clone({insert:!1});for(null===(t=g.segments)||void 0===t||t.forEach((e,t)=>{var n;const r=null===(n=null==u?void 0:u.segments[t])||void 0===n?void 0:n.radius;r&&(e.radius=r)}),(null==h?void 0:h.includes(this.dynamicSegment))&&(d===this.dynamicSegment?(g.lastSegment.remove(),v.lastSegment.remove()):p===this.dynamicSegment&&(g.firstSegment.remove(),v.firstSegment.remove()));null===(n=g.segments)||void 0===n?void 0:n.find(e=>y.isSegWithRadius(e));){const e=null===(r=g.segments)||void 0===r?void 0:r.find(e=>y.isSegWithRadius(e));this.setRadius(e,g)}const b=v.hitTest(e,{handles:!0,tolerance:f,match:e=>{var t;return!!(null===(t=e.segment)||void 0===t?void 0:t.selected)}}),w=g.hitTest(e,{stroke:!0,tolerance:f,match:e=>{const{type:t,location:n}=e;if("stroke"===t){if(!n)return!1;const{curve:{segment1:e,segment2:t}}=n;return![e,t].some(e=>y.isSegWithRadius(e))&&![e,t].every(e=>e.hidden)}return!1}}),C=v.hitTest(e,{segments:!0,tolerance:f,match:e=>{const{type:t,segment:n}=e;return"segment"===t&&(m?this.state.insertPointAtStart||0!==(null==n?void 0:n.index)?!this.state.insertPointAtStart||(null==n?void 0:n.index)!==g.lastSegment.index||(this.hoverSegIndex=p.index,!1):(this.hoverSegIndex=d.index,!1):n!==this.dynamicSegment)}});let _;const x="segment"===(null==C?void 0:C.type);if(_=b?"handle-in"===b.type&&(null===(i=null===(o=b.segment)||void 0===o?void 0:o.handleIn)||void 0===i?void 0:i.isZero())||"handle-out"===b.type&&(null===(s=null===(a=b.segment)||void 0===a?void 0:a.handleOut)||void 0===s?void 0:s.isZero())?x?C:w:b:x?C:w,this.state.moveAnchor&&this.setState({moveAnchor:void 0}),!_)return c?(this.isShift&&(this.isFixedAngle=!1,this.setRevisePointOnFixedAngleMixinAlign()),this.setCursor(this.isDetectClose?T.PenClose:T.PenAdd),this.dynamicSegment.point=this.revisePoint,h.length>=1?d===this.dynamicSegment||this.state.insertPointAtStart?p!==this.dynamicSegment&&this.state.insertPointAtStart&&(u.insert(0,this.dynamicSegment),this.isDetectClose&&(this.hoverSegIndex=u.firstSegment.index)):(u.add(this.dynamicSegment),this.isDetectClose&&(this.hoverSegIndex=u.lastSegment.index)):h.length||u.add(this.dynamicSegment),this.showAlign=!0,void(this.hoverSegIndex=void 0)):(this.hoverSegIndex=void 0,this.showAlign=!0,this.setCursor(T.Pen),void this.clearAlign());const{type:S,segment:k,location:P}=_;let E;switch(S){case"stroke":if(!P)break;if(E=P.curve.segment2,E===this.dynamicSegment)u.lastSegment.point=this.revisePoint;else{const t=g.getNearestPoint(e);(null===(l=this.state.moveAnchor)||void 0===l?void 0:l.equals(t))||(this.setState({moveAnchor:t}),this.setCursor(T.PenAdd))}break;case"segment":if(!k)break;this.setCursor(this.isDetectClose?T.PenClose:T.PenMove),E=k,this.hoverSegIndex=k.index;break;case"handle-in":case"handle-out":if(!k)break;this.setCursor(T.PenMove),E=k}this.dynamicSegment!==E&&this.dynamicSegment.remove(),this.clearAlign(),this.showAlign=!1}setSelectedAndPrevSeg(e){if(!this.path)return;const t=e=>{this.path.activeSegment=e,this.prevSeg=e.clone()};this.isShift?(e.selected?this.path.activeSegment===e&&(this.path.activeSegment=void 0):t(e),e.selected=!e.selected):(t(e),!e.selected&&this.setActiveSegment(e)),this.operate="activePoints"}inMutateEnd(e){var t,n;this.isEnd()&&this.stopPathEditor(),this.props.clipPath&&((null===(n=null===(t=this.path)||void 0===t?void 0:t.segments)||void 0===n?void 0:n.length)||0)<2&&this.stopPathEditor(),!this.dynamicSegment||this.state.isModify||this.props.clipPath||e||this.hitTestOnMove(this.dynamicSegment.point),this.setState({moveAnchor:void 0}),this.clearAlign()}getFixedAnglePoint(e){const{path:t,dynamicSegment:n}=this,{segments:r,lastSegment:o}=t;if(t&&r&&r.length>=2&&r.includes(n)){const t=r[o.index-1].point,n=new s.Point(e.x-t.x,e.y-t.y),i=n.angle%45;return i>=22.5?n.angle+=45-i:i<=22.5&&i>0||i>=-22.5&&i<0?n.angle-=i:i<-22.5&&i>-45&&(n.angle-=45+i),{point:new s.Point(t.x+n.x,t.y+n.y),angle:n.angle}}return{point:e,angle:null}}setRadius(e,t){var n,r;const{previous:o,next:i}=e;if(o!==this.dynamicSegment&&i!==this.dynamicSegment){if(!y.isSegWithRadius(e))return!1;if((null===(n=e.previous)||void 0===n?void 0:n.point)&&(null===(r=e.next)||void 0===r?void 0:r.point)){const n=e.previous.point.subtract(e.point),r=e.next.point.subtract(e.point);let a=n.getDistance(new s.Point(0,0));!o.radius||o.handleOut&&!o.handleOut.equals(new s.Point(0,0))||(a/=2);let l=r.getDistance(new s.Point(0,0));!i.radius||i.handleIn&&!i.handleIn.equals(new s.Point(0,0))||(l/=2);const c=Math.PI-r.getAngleInRadians(n);if([0,Math.PI,-Math.PI].includes(c))return void(e.radius=void 0);const u=e.radius||0,d=Math.min(u*Math.tan(c/2),a,l),h=d/Math.tan(c/2),p=Math.tan(c/4)*(4/3)*h,f=e.point.add(new s.Point(d,0)),m=new s.Point(p,0),g=new s.Segment(f.clone().rotate(n.angle||0,e.point),void 0,m.clone().rotate((n.angle||0)-180,new s.Point(0,0)));g.hidden=!0;const v=new s.Segment(f.clone().rotate(r.angle||0,e.point),m.clone().rotate((r.angle||0)-180,new s.Point(0,0)),void 0);v.hidden=!0;const y=e.index;t.removeSegment(y),t.insertSegments(y,[g,v])}}}get selectedSegments(){var e;const t=[];return(null===(e=this.path)||void 0===e?void 0:e.segments)?(t.push(...this.path.segments.filter(e=>e.selected&&e!==this.dynamicSegment)),t):[]}setRevisePointOnFixedAngleMixinAlign(){if(!this.revisePoint)return;const{point:e}=this.getFixedAnglePoint(this.revisePoint);this.revisePoint=e,this.detectAlign(this.revisePoint,[],!1)}detectClose(e){var t,n;if(this.canClose()&&this.path){const{firstSegment:r,lastSegment:o}=this.path;if(r.point&&!this.state.insertPointAtStart){const n=r.point;if(e.isClose(n,6)){this.hoverSegIndex=o.index,this.isDetectClose=!0,this.clearAlign();const e=null===(t=r.handleIn)||void 0===t?void 0:t.clone();return new s.Segment(n.clone(),e)}}else if(o.point&&this.state.insertPointAtStart){const t=o.point;if(e.isClose(t,6)){this.hoverSegIndex=r.index,this.isDetectClose=!0,this.clearAlign();const e=null===(n=o.handleOut)||void 0===n?void 0:n.clone();return new s.Segment(t.clone(),void 0,e)}}}return this.isDetectClose=!1,new s.Segment(e)}detectAlign(e,t=[],n=!0){var r,o,i;const a=[],l=[],c=e.clone(),{showGrid:u,showLayout:d,snapline:h}=this.props;if(this.isCtrl)return this.setState({verticalAlignLinePoint:void 0,verticalMidperpendicularPoint:void 0,horizontalAlignLinePoint:void 0,horizontalMidperpendicularPoint:void 0}),c;const p=this.path?this.path.clone({insert:!1}):new s.Path;if(this.path&&(null===(r=p.segments)||void 0===r||r.forEach((e,t)=>{var n,r;const o=null===(r=null===(n=this.path)||void 0===n?void 0:n.segments[t])||void 0===r?void 0:r.radius;o&&(e.radius=o)})),!this.state.isModify&&this.path&&this.path.lastSegment===this.dynamicSegment&&(null===(o=p.lastSegment)||void 0===o||o.remove()),!this.state.isModify&&this.path&&this.path.firstSegment===this.dynamicSegment&&(null===(i=p.firstSegment)||void 0===i||i.remove()),t.length>0){t.sort((e,t)=>t-e).forEach(e=>p.removeSegment(e))}if(d&&n){const e=this.alignTolerance.pen,t=h.x.filter(t=>Math.abs(t-c.x)<e).sort((e,t)=>Math.abs(e-c.x)-Math.abs(t-c.x)),n=h.y.filter(t=>Math.abs(t-c.y)<e).sort((e,t)=>Math.abs(e-c.y)-Math.abs(t-c.y));t.length&&(c.x=t[0]),n.length&&(c.y=n[0])}if(u&&n){const e=this.detectGrid(c);c.x=e.x,c.y=e.y}const f=this.detectPixel(c);c.x=f.x,c.y=f.y;const m=this.alignTolerance.normal;p.segments.forEach(e=>{const t=e.point.x,n=e.point.y,r=c.x,o=c.y,i=Math.abs(t-r),u=Math.abs(n-o);i<=m&&u>=m&&(a.length||n===c.y?a.length&&a[0].x===t&&n!==c.y&&a.push(new s.Point(e.point)):(a.push(new s.Point(e.point)),c.x=t)),u<=m&&i>=m&&(l.length||t===c.x?l.length&&l[0].y===n&&t!==c.x&&l.push(new s.Point(e.point)):(l.push(new s.Point(e.point)),c.y=n))}),a.push(c),l.push(c);const g=a.length>=2?this.findMinMax("y")(a):null,v=l.length>=2?this.findMinMax("x")(l):null,y=[],b=[];return v?(l.forEach(e=>{if(e.getDistance(c)){const t=.5*(e.x+c.x),n=[];p.segments.forEach(r=>{r.point&&r.point.y!==c.y&&Math.abs(r.point.x-t)<=.5*m&&(n.length?r.point.x===n[0].x&&n.push(r.point):(c.x=2*r.point.x-e.x,n.push(r.point),n.push(new s.Point(r.point.x,c.y))))});const r=n.length>=2?this.findMinMax("y")(n):null;!r||y.length||y.length||y.push(...r)}}),2===y.length?this.setState({horizontalAlignLinePoint:{start:v[0],end:v[1]},horizontalMidperpendicularPoint:{start:y[0],end:y[1]}}):this.setState({horizontalAlignLinePoint:{start:v[0],end:v[1]},horizontalMidperpendicularPoint:void 0})):this.setState({horizontalAlignLinePoint:void 0,horizontalMidperpendicularPoint:void 0}),g&&!y.length?(v||a.forEach(e=>{if(e.getDistance(c)){const t=.5*(e.y+c.y),n=[];p.segments.forEach(r=>{r.point&&r.point.x!==c.x&&Math.abs(r.point.y-t)<=.5*m&&(n.length?r.point.y===n[0].y&&n.push(r.point):(c.y=2*r.point.y-e.y,n.push(r.point),n.push(new s.Point(c.x,r.point.y))))});const r=n.length>=2?this.findMinMax("x")(n):null;r&&b.push(...r)}}),2===b.length?this.setState({verticalAlignLinePoint:{start:g[0],end:g[1]},verticalMidperpendicularPoint:{start:b[0],end:b[1]}}):this.setState({verticalAlignLinePoint:{start:g[0],end:g[1]},verticalMidperpendicularPoint:void 0})):this.setState({verticalAlignLinePoint:void 0,verticalMidperpendicularPoint:void 0}),c}getNewPointAfterDetectGrid(e,t,n,r){let o=this.getRemainder(e-t,n);return n>2*r?o>n-r?o-=n:o>=r&&(o=0):o>.5*n&&(o-=n),e-o}detectGrid(e,t=this.alignTolerance.pen){const{showGrid:n,gridSize:r,offset:o}=this.props,i=e.clone();return n&&(i.x=this.getNewPointAfterDetectGrid(i.x,o.x,r,t),i.y=this.getNewPointAfterDetectGrid(i.y,o.y,r,t)),i}detectPixel(e){const{scale:t,artboardOffset:n}=this.props,r=e.clone(),o={x:Math.round((r.x-n.x)/t*2),y:Math.round((r.y-n.y)/t*2)};return r.x=i.add(i.multiply(i.divide(o.x,2),t),n.x),r.y=i.add(i.multiply(i.divide(o.y,2),t),n.y),r}canClose(){var e;const t=this.isNewBuild(),n=(null===(e=this.path)||void 0===e?void 0:e.segments)||[];return t&&n.length>2||t&&2===n.length&&!(null==n?void 0:n.includes(this.dynamicSegment))}isNewBuild(){var e;return!(null===(e=this.path)||void 0===e?void 0:e.closed)&&!this.state.isModify&&!this.props.clipPath}isEnd(){const{dynamicSegment:e,path:t}=this,{segments:n,lastSegment:r}=t;return n&&1===n.length&&(r===e||(null==t?void 0:t.closed))||!r}setActiveSegment(e){var t;null===(t=o.project)||void 0===t||t.deselectAll(),this.path&&(this.path.activeSegment=e),e&&(e.selected=!0)}clearAlign(){this.setState({verticalAlignLinePoint:void 0,horizontalAlignLinePoint:void 0,verticalMidperpendicularPoint:void 0,horizontalMidperpendicularPoint:void 0})}boxSelectionSegment(e,t){var n;if(null===(n=this.path)||void 0===n?void 0:n.segments){const{segments:n}=this.path,{x:r,y:o}=e,{x:i,y:a}=t,s=Math.min(r,i),l=Math.min(o,a),c=Math.max(r,i),u=Math.max(o,a);n.forEach(e=>{if(!e.point)return;const{x:t,y:n}=e.point;e.selected=t>=s&&t<=c&&n>=l&&n<=u})}}getFill(e){if(this.state.fill){const{type:t,color:n,disabled:r}=this.state.fill;if(!r)return t===m.FillType.solid?h.parseColorToString(n):`url(#${e})`}return"none"}pathToPathValue(e){return{closed:!!e.closed,data:e.segments.map(({point:e,handleOut:t,handleIn:n,radius:r})=>({point:{x:(null==e?void 0:e.x)||0,y:(null==e?void 0:e.y)||0},handleIn:{x:(null==n?void 0:n.x)||0,y:(null==n?void 0:n.y)||0},handleOut:{x:(null==t?void 0:t.x)||0,y:(null==t?void 0:t.y)||0},radius:r}))}}getUnRotatedBoundsOfPath(){var e,t;return this.path?{left:(null===(e=this.matrix)||void 0===e?void 0:e.tx)||0,top:(null===(t=this.matrix)||void 0===t?void 0:t.ty)||0}:{left:0,top:0}}doTransPathToPathValue(e=this.path){var t,n,r,o,i;if(e){const a=null===(t=e.segments)||void 0===t?void 0:t.indexOf(this.dynamicSegment),s=e.clone({insert:!1});null===(n=s.segments)||void 0===n||n.forEach((t,n)=>{var r;const o=null===(r=null==e?void 0:e.segments[n])||void 0===r?void 0:r.radius;o&&(t.radius=o)});const l=e.clone();a>=0&&(s.removeSegment(a),l.removeSegment(a));const{top:c,left:u}=null===(r=s.bounds)||void 0===r?void 0:r.clone(),d=l.bounds,h=d.center;l.rotate(-this.matrix.rotation,h);const p=l.bounds.center;l.rotate(this.matrix.rotation,p);const f=l.bounds,m={x:d.left-f.left,y:d.top-f.top},g={left:p.x+m.x,top:p.y+m.y},v=null===(o=this.matrix)||void 0===o?void 0:o.clone().invert();s.pivot=null===(i=s.bounds)||void 0===i?void 0:i.topCenter,v&&(s.matrix=v);const{bounds:y}=s;if(y){const e=y.width||0,t=y.height||0,n=Math.round(2*e)/2,r=Math.round(2*t)/2,o=Math.round(2*c)/2,i=Math.round(2*u)/2,a=i+n,s=o+r;y.top=o,y.left=i,y.right=a,y.bottom=s,y.width=n,y.height=r}return{bounds:y,pathValue:this.pathToPathValue(s),rotatedCompCenter:g}}}immediateApplyPath(){if(this.path&&this.path.segments){const{onImmediateApplyPath:e}=this.props,t=this.doTransPathToPathValue();if(t&&e){const{pathValue:n,bounds:r,rotatedCompCenter:o}=t,{left:i,top:a,right:l,bottom:c,width:u,height:d}=r,h=!!this.state.isModify,p={x:0,y:0};h&&(p.x=i-this.prevPosition.x,p.y=a-this.prevPosition.y,this.prevPosition=new s.Point(i,a));let f=void 0;if(this.offcut){const e=this.doTransPathToPathValue(this.offcut);if(e){const{left:t,top:n,right:r,bottom:o,width:i,height:a}=e.bounds,s={left:t,top:n,right:r,bottom:o,width:i,height:a};f={pathData:e.pathValue,bounds:s,center:e.rotatedCompCenter}}this.offcut=void 0}e(n,{left:i,top:a,right:l,bottom:c,width:u,height:d},o,f,h,p)}}}stopPathEditor(){var e;if(null===(e=this.path)||void 0===e?void 0:e.segments){const{onStopEditor:e}=this.props,t=this.doTransPathToPathValue();if(t&&e){const{pathValue:n}=t;this.timeOut=window.setTimeout(()=>{e(n)},0)}}}initPathStyle(){if(this.path){const{stroke:e}=this.state;let t=e&&!e.disabled?e.thickness:1;const n=e&&!e.disabled?e.cap:"butt";0==t&&(t=1),this.path.strokeWidth=t,this.path.strokeCap=n,this.path.strokeColor=new o.Color(1,1,1),this.path.opacity=0}}renderPath(){var e;null===(e=this.path)||void 0===e||e.remove(),this.path=new s.Path,this.pathEditorManager=new k.default(this.path),this.props.clipPath&&this.setCursor(T.Shears1);const{matrix:t,pathData:n,closePath:r,fill:o}=this.state;if(o&&!o.disabled){const e={};h.applyFillToStyle({type:p.getEnumValue(m.FillType,o.type),color:o.color},e),this.path.fillColor=e.background}if(t){const{m11:e,m12:n,m21:r,m22:o,m31:i,m32:a}=t;this.matrix=new s.Matrix(e,n,r,o,i,a)}else this.matrix=new s.Matrix;n&&(this.path.addSegments(n.data.map(e=>{const t=new s.Segment(new s.Point(e.point),new s.Point(e.handleIn),new s.Point(e.handleOut));return t.radius=e.radius,t})),this.setActiveSegment(r?this.path.firstSegment:this.path.lastSegment)),r&&this.path.closePath(),this.initPathStyle(),this.path.matrix=this.matrix.clone();const i=this.matrix.scaling.x;"number"==typeof this.path.strokeWidth&&(this.path.strokeWidth*=i),this.forceUpdate()}renderVerticalAlign(){if(this.state.verticalAlignLinePoint){const{start:e,end:t}=this.state.verticalAlignLinePoint,n=Math.min(e.y,t.y),o=Math.abs(e.y-t.y);return r.createElement("div",{className:"vertical-align-line",style:{left:e.x,top:n,height:o}})}return null}renderHorizontalAlign(){if(this.state.horizontalAlignLinePoint){const{start:e,end:t}=this.state.horizontalAlignLinePoint,n=Math.min(e.x,t.x),o=Math.abs(e.x-t.x);return r.createElement("div",{className:"horizontal-align-line",style:{top:e.y,left:n,width:o}})}return null}renderHorizontalMidperpendicular(){if(this.state.horizontalMidperpendicularPoint){const{start:e,end:t}=this.state.horizontalMidperpendicularPoint,n=Math.min(e.y,t.y),o=Math.abs(e.y-t.y);return r.createElement("div",{className:"vertical-align-line",style:{left:e.x,top:n,height:o}})}return null}renderVerticalMidperpendicular(){if(this.state.verticalMidperpendicularPoint){const{start:e,end:t}=this.state.verticalMidperpendicularPoint,n=Math.min(e.x,t.x),o=Math.abs(e.x-t.x);return r.createElement("div",{className:"horizontal-align-line",style:{top:e.y,left:n,width:o}})}return null}renderSelectionBox(){if(this.state.selectionBox){const{start:e,end:t}=this.state.selectionBox,n=Math.min(e.y,t.y),o=Math.min(e.x,t.x),i=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);return r.createElement("div",{className:"selection",style:{top:n,left:o,width:i,height:a}})}return null}renderClipStroke(){const{clipStroke:e}=this.state;if(!e)return;const{stroke:t}=this.state;let n={strokeWidth:t&&!t.disabled?(t.thickness||0)+4:4,stroke:h.parseColorToString(Object.assign(Object.assign({},g.HoverStrokeColor),{a:.4})),fill:"transparent"},o={strokeWidth:1,stroke:h.parseColorToString(g.RedColor),strokeDasharray:"4, 4",fill:"transparent"};return r.createElement("div",{className:"clip-stroke"},r.createElement("svg",{version:"1.2",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:e.pathData,style:n}),r.createElement("path",{d:e.pathData,style:o})))}renderSVG(){var e,t,n,o,i,a,l,c,d,p,m,v;if(!this.path)return;const{stroke:w,line:C}=this.state,k=b.StyleHelper.initSVGStyleParser({stroke:w}).getStroke(),{translation:P,scaling:T,rotation:E}=this.matrix,O={transform:`translate(${P.x}px, ${P.y}px) scale(${T.x}, ${T.y}) rotate(${E}deg)`,shapeRendering:""+(T.x>.7?"auto":"crispEdges")},M=this.path.clone({insert:!1}),A=this.path.clone({insert:!1});let D=void 0;for(this.dynamicSegment&&(null===(e=this.path.segments)||void 0===e?void 0:e.includes(this.dynamicSegment))&&(this.path.firstSegment===this.dynamicSegment&&(this.path.firstSegment&&this.path.firstSegment.next&&(D=new s.Path([this.path.firstSegment,this.path.firstSegment.next])),null===(t=M.firstSegment)||void 0===t||t.remove(),null===(n=A.firstSegment)||void 0===n||n.remove()),this.path.lastSegment===this.dynamicSegment&&(this.path.lastSegment&&this.path.lastSegment.previous&&(D=new s.Path([this.path.lastSegment.previous,this.path.lastSegment])),null===(o=M.lastSegment)||void 0===o||o.remove(),null===(i=A.lastSegment)||void 0===i||i.remove())),null===(a=M.segments)||void 0===a||a.forEach((e,t)=>{var n,r;const o=null===(r=null===(n=this.path)||void 0===n?void 0:n.segments[t])||void 0===r?void 0:r.radius;o&&(e.radius=o)}),this.matrix&&(M.matrix=this.matrix.clone().invert(),A.matrix=this.matrix.clone().invert(),D&&(D.matrix=this.matrix.clone().invert()));null===(l=M.segments)||void 0===l?void 0:l.find(e=>y.isSegWithRadius(e));){const e=null===(c=M.segments)||void 0===c?void 0:c.find(e=>y.isSegWithRadius(e));this.setRadius(e,M)}const I={x:0,y:0},L={width:0,height:0};if(A.pathData){const e=new s.Path(A.pathData);I.x=(null===(d=e.bounds)||void 0===d?void 0:d.left)||0,I.y=(null===(p=e.bounds)||void 0===p?void 0:p.top)||0,L.width=(null===(m=e.bounds)||void 0===m?void 0:m.width)||0,L.height=(null===(v=e.bounds)||void 0===v?void 0:v.height)||0}const N={id:this.timeStamp.toString(16),type:"path",size:L,fill:this.state.fill,scale:1,offset:I,transform:O.transform},j=u.sameNumber(M.area||0,0)||!M.closed,R={id:"path-editor",size:{width:L.width/T.x,height:L.height/T.y},scale:T.x,stroke:k,data:M.pathData,strokePosition:j?f.StrokePosition.center:(null==w?void 0:w.position)||f.StrokePosition.center,offset:I,showMark:!M.closed},z={line:C,strokeInfo:k,compID:"path-editor",scale:T.x};return r.createElement("div",{className:"svg-overlay"},r.createElement("svg",{version:"1.2",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},_.renderClipFill(N,r.createElement("path",{d:M.pathData,strokeWidth:0})),r.createElement("g",{style:O},x.renderMaskStroke(R),!M.closed&&S.renderMarker(z),D&&r.createElement("path",{d:D.pathData,fill:"transparent",style:{strokeWidth:1/T.x,stroke:h.parseColorToString(g.DefaultStrokeColor)}}))))}renderControls(){if(!this.path||!this.path.segments)return;const{segments:e,activeSegment:t}=this.path,{isModify:n,closePath:o}=this.state,i=1===e.filter(e=>e.selected).length,s=e.map((s,l)=>{const{handleIn:c,handleOut:u,point:d}=s;let{x:h,y:p}=c,{x:f,y:m}=u;h+=d.x,p+=d.y,f+=d.x,m+=d.y;const g=0===s.index,v=s.index===e.length-1,y=!o&&n&&g,b=!o&&n&&v;let w;w=y?`${this.toFixed(s.point.x)-.5},\n ${this.toFixed(s.point.y)-.5} ${this.toFixed(f)-.5},\n ${this.toFixed(m)-.5}`:b?`${this.toFixed(h)-.5},\n ${this.toFixed(p)-.5} ${this.toFixed(s.point.x)-.5},\n ${this.toFixed(s.point.y)-.5} `:`${this.toFixed(h)-.5},\n ${this.toFixed(p)-.5} ${this.toFixed(s.point.x)-.5},\n ${this.toFixed(s.point.y)-.5} ${this.toFixed(f)-.5},\n ${this.toFixed(m)-.5}`;const C=t===s,_=!!s.selected&&s.selected;let x=s.index===this.hoverSegIndex;const S={transform:`translate(${this.toFixedSubstract(s.point.x)}px, ${this.toFixedSubstract(s.point.y)}px)`},k={visibility:C&&!y&&i?"visible":"hidden",transform:`translate(${this.toFixedSubstract(h)}px, ${this.toFixedSubstract(p)}px)`},P={visibility:C&&!b&&i?"visible":"hidden",transform:`translate(${this.toFixedSubstract(f)}px, ${this.toFixedSubstract(m)}px)`},T={visibility:C&&i?"visible":"hidden"};return r.createElement("div",{className:_||x?"active svg-control":"svg-control",key:l},r.createElement("svg",{version:"1.2",className:"svg-control-line",style:T},r.createElement("polyline",{className:"svg-control-line-poly",points:w})),r.createElement("div",{className:"svg-control-handlein",style:k}),r.createElement("div",{className:"svg-control-handleout",style:P}),r.createElement("div",{className:a.default("svg-control-point",{active:_||x}),style:S}))});return r.createElement("div",{className:"controls-overlay"},s)}renderMoveAnchor(){const e=this.state.moveAnchor?this.state.moveAnchor.x:0,t=this.state.moveAnchor?this.state.moveAnchor.y:0,n={visibility:this.state.moveAnchor?"visible":"hidden",transform:`translate(${e-4}px, ${t-4}px)`};return r.createElement("div",{className:"move-anchor",style:n})}render(){return r.createElement("div",{className:"path-editor-layer",onContextMenu:this.handleContextMenu},r.createElement("canvas",{ref:this.canvas}),this.renderSelectionBox(),this.renderSVG(),this.renderHorizontalAlign(),this.renderVerticalAlign(),this.renderHorizontalMidperpendicular(),this.renderVerticalMidperpendicular(),this.renderClipStroke(),this.renderControls(),this.renderMoveAnchor())}}E.contextType=C.default,t.default=E},function(e,t,n){var r,o;!function(i,a){const s=t;!function(e){const t=Symbol("newer"),n=Symbol("older");function r(e,t){"number"!=typeof e&&(t=e,e=0),this.size=0,this.limit=e,this.oldest=this.newest=void 0,this._keymap=new Map,t&&(this.assign(t),e<1&&(this.limit=this.size))}function o(e,r){this.key=e,this.value=r,this[t]=void 0,this[n]=void 0}function i(e){this.entry=e}function a(e){this.entry=e}function s(e){this.entry=e}e.LRUMap=r,r.prototype._markEntryAsUsed=function(e){e!==this.newest&&(e[t]&&(e===this.oldest&&(this.oldest=e[t]),e[t][n]=e[n]),e[n]&&(e[n][t]=e[t]),e[t]=void 0,e[n]=this.newest,this.newest&&(this.newest[t]=e),this.newest=e)},r.prototype.assign=function(e){let r,i=this.limit||Number.MAX_VALUE;this._keymap.clear();let a=e[Symbol.iterator]();for(let e=a.next();!e.done;e=a.next()){let a=new o(e.value[0],e.value[1]);if(this._keymap.set(a.key,a),r?(r[t]=a,a[n]=r):this.oldest=a,r=a,0==i--)throw new Error("overflow")}this.newest=r,this.size=this._keymap.size},r.prototype.get=function(e){var t=this._keymap.get(e);if(t)return this._markEntryAsUsed(t),t.value},r.prototype.set=function(e,r){var i=this._keymap.get(e);return i?(i.value=r,this._markEntryAsUsed(i),this):(this._keymap.set(e,i=new o(e,r)),this.newest?(this.newest[t]=i,i[n]=this.newest):this.oldest=i,this.newest=i,++this.size,this.size>this.limit&&this.shift(),this)},r.prototype.shift=function(){var e=this.oldest;if(e)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),e[t]=e[n]=void 0,this._keymap.delete(e.key),--this.size,[e.key,e.value]},r.prototype.find=function(e){let t=this._keymap.get(e);return t?t.value:void 0},r.prototype.has=function(e){return this._keymap.has(e)},r.prototype.delete=function(e){var r=this._keymap.get(e);if(r)return this._keymap.delete(r.key),r[t]&&r[n]?(r[n][t]=r[t],r[t][n]=r[n]):r[t]?(r[t][n]=void 0,this.oldest=r[t]):r[n]?(r[n][t]=void 0,this.newest=r[n]):this.oldest=this.newest=void 0,this.size--,r.value},r.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},i.prototype[Symbol.iterator]=function(){return this},i.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}},a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.key}):{done:!0,value:void 0}},s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.value}):{done:!0,value:void 0}},r.prototype.keys=function(){return new a(this.oldest)},r.prototype.values=function(){return new s(this.oldest)},r.prototype.entries=function(){return this},r.prototype[Symbol.iterator]=function(){return new i(this.oldest)},r.prototype.forEach=function(e,n){"object"!=typeof n&&(n=this);let r=this.oldest;for(;r;)e.call(n,r.value,r.key,this),r=r[t]},r.prototype.toJSON=function(){for(var e=new Array(this.size),n=0,r=this.oldest;r;)e[n++]={key:r.key,value:r.value},r=r[t];return e},r.prototype.toString=function(){for(var e="",n=this.oldest;n;)e+=String(n.key)+":"+n.value,(n=n[t])&&(e+=" < ");return e}}(s),void 0===(o="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=o)}()},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,o=e.indexOf("["),i=e.indexOf("]");-1!=o&&-1!=i&&(e=e.substring(0,o)+e.substring(o,i).replace(/:/g,";")+e.substring(i,e.length));for(var a,s,l=n.exec(e||""),c={},u=14;u--;)c[r[u]]=l[u]||"";return-1!=o&&-1!=i&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1);"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1);return n}(0,c.path),c.queryKey=(a=c.query,s={},a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(s[t]=n)})),s),c}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){e.exports=function(e){return n&&t.isBuffer(e)||r&&(e instanceof ArrayBuffer||function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}(e))};var n="function"==typeof t&&"function"==typeof t.isBuffer,r="function"==typeof ArrayBuffer}).call(this,n(307).Buffer)},function(e,t,n){var r=n(1370),o=n(446),i=n(159),a=n(306),s=n(447),l=n(448),c=n(221)("socket.io-client:manager"),u=n(445),d=n(1386),h=Object.prototype.hasOwnProperty;function p(e,t){if(!(this instanceof p))return new p(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=p,p.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)h.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},p.prototype.updateSocketIds=function(){for(var e in this.nsps)h.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},p.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},i(p.prototype),p.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},p.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},p.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(e,t){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var i=s(n,"open",(function(){o.onopen(),e&&e()})),a=s(n,"error",(function(t){if(c("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var l=this._timeout;c("connect attempt will timeout after %d",l),0===l&&i.destroy();var u=setTimeout((function(){c("connect attempt timed out after %d",l),i.destroy(),n.close(),n.emit("error","timeout"),o.emitAll("connect_timeout",l)}),l);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(i),this.subs.push(a),this},p.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(s(e,"data",l(this,"ondata"))),this.subs.push(s(e,"ping",l(this,"onping"))),this.subs.push(s(e,"pong",l(this,"onpong"))),this.subs.push(s(e,"error",l(this,"onerror"))),this.subs.push(s(e,"close",l(this,"onclose"))),this.subs.push(s(this.decoder,"decoded",l(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(e){this.decoder.add(e)},p.prototype.ondecoded=function(e){this.emit("packet",e)},p.prototype.onerror=function(e){c("error",e),this.emitAll("error",e)},p.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",i),n.on("connect",(function(){n.id=r.generateId(e)})),this.autoConnect&&i()}function i(){~u(r.connecting,n)||r.connecting.push(n)}return n},p.prototype.destroy=function(e){var t=u(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},p.prototype.packet=function(e){c("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()})))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(e){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var r=n(308),o=n(1373),i=n(1382),a=n(1383);t.polling=function(e){var t=!1,n=!1,a=!1!==e.jsonp;if("undefined"!=typeof location){var s="https:"===location.protocol,l=location.port;l||(l=s?443:80),t=e.hostname!==location.hostname||l!==e.port,n=e.secure!==s}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!a)throw new Error("JSONP disabled");return new i(e)},t.websocket=a},function(e,t,n){var r=n(310),o=n(222),i=n(160),a=n(223),s=n(444),l=n(224)("engine.io-client:polling");e.exports=u;var c=null!=new(n(308))({xdomain:!1}).responseType;function u(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}a(u,r),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){l("pre-pause polling complete"),--r||n()}))),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){l("pre-pause writing complete"),--r||n()})))}else n()},u.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var t=this;l("polling got data %s",e);i.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};i.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){var r=n(1375),o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.exports=function e(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var o=0,s=n.length;o<s;o++)if(e(n[o]))return!0;return!1}if("function"==typeof t&&t.isBuffer&&t.isBuffer(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||i&&n instanceof Blob||a&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return e(n.toJSON(),!0);for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&e(n[l]))return!0;return!1}}).call(this,n(307).Buffer)},function(e,t,n){"use strict";var r,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i={},a=0,s=0;function l(e){var t="";do{t=o[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function c(){var e=l(+new Date);return e!==r?(a=0,r=e):e+"."+l(a++)}for(;s<64;s++)i[o[s]]=s;c.encode=l,c.decode=function(e){var t=0;for(s=0;s<e.length;s++)t=64*t+i[e.charAt(s)];return t},e.exports=c},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(306),o=n(159),i=n(1385),a=n(447),s=n(448),l=n(221)("socket.io-client:socket"),c=n(222),u=n(443);e.exports=p;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=o.prototype.emit;function p(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[a(e,"open",s(this,"onopen")),a(e,"packet",s(this,"onpacket")),a(e,"close",s(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},p.prototype.send=function(){var e=i(arguments);return e.unshift("message"),this.emit.apply(this,e),this},p.prototype.emit=function(e){if(d.hasOwnProperty(e))return h.apply(this,arguments),this;var t=i(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:u(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},p.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},p.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?c.encode(this.query):this.query;l("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},p.prototype.onclose=function(e){l("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},p.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},p.prototype.onevent=function(e){var t=e.data||[];l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?h.apply(this,t):this.receiveBuffer.push(t)},p.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=i(arguments);l("sending ack %j",o),t.packet({type:u(o)?r.BINARY_ACK:r.ACK,id:e,data:o})}}},p.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):l("bad ack %s",e.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)h.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(e){return this.flags.compress=e,this},p.prototype.binary=function(e){return this.flags.binary=e,this}},function(e,t){e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(131),o=n(176),i=n(7),a=n(12),s=n(368),l=n(1390),c=n(40),u=n(108),d=n(6),h=n(17),p=n(218);t.default=class{constructor(e,t,n,r){this.appID=e,this.pageID=t,this.isPreview=r,this.patchSingleArtboardMeta=(e,t,n)=>{i.isUndefined(n.name)||(t.name=n.name,e.$data.name=n.name),i.isUndefined(n.size)||(t.size=n.size,e.$data.size=n.size),i.isUndefined(n.position)||(t.position=n.position,e.$data.position=n.position),i.isUndefined(n.interaction)||(t.interaction=n.interaction,e.$data.interaction=n.interaction),i.isUndefined(n.responsive)||(t.layout.responsive=n.responsive,e.$data.layout.responsive=n.responsive),i.isUndefined(n.background)||(t.background=n.background,e.$data.background=n.background),i.isUndefined(n.guides)||(t.guides=n.guides,e.$data.guides=n.guides)};const a=n.find(e=>"main"===e.type);if(!a)throw new Error("Cannot find main artboard data of "+t);this.fixCurrentState(n),this.mainArtboardData=Object.assign({},a,{id:a._id,type:"artboard",size:a.size,layout:{responsive:a.responsive,auto:!0,horizontal:c.HorizontalAlign.Left,vertical:c.VerticalAlign.Top,fixedWidth:!0,fixedHeight:!0}}),this.mainArtboard=new h.UIArtboard(this.mainArtboardData,this,r),this.tree=new o.AvlTree((e,t)=>e.localeCompare(t)),this.uiComponentTree=new o.AvlTree((e,t)=>e.localeCompare(t)),a.components&&s.updateNodeAVLTree(this.tree,a.components),this.fragmentsData=n.filter(e=>"main"!==e.type).map(e=>Object.assign({},e,{id:e._id,type:"artboard",size:e.size,layout:{responsive:e.responsive,auto:!0,horizontal:c.HorizontalAlign.Left,vertical:c.VerticalAlign.Top,fixedWidth:!0,fixedHeight:!0}})),this.fragments=this.fragmentsData.map(e=>(e.components&&s.updateNodeAVLTree(this.tree,e.components),new h.UIFragment(e,this,r)))}get artboards(){return[Object.assign(Object.assign({},this.mainArtboardData),{type:"main"}),...this.fragmentsData]}get artboardsFragments(){return[...this.fragments,this.mainArtboard]}get realAppID(){return this.mainArtboardData?this.mainArtboardData.appID:""}fixCurrentState(e){const t=e=>{var n;e&&(e._currentState=void 0,null===(n=e.components)||void 0===n||n.forEach(t))};e.forEach(e=>{var n;null===(n=e.components)||void 0===n||n.forEach(t)})}addArtboard(e){const t=Object.assign({},e,{id:e._id,type:"artboard",size:e.size,layout:{responsive:e.responsive,auto:!0,horizontal:c.HorizontalAlign.Left,vertical:c.VerticalAlign.Top,fixedWidth:!0,fixedHeight:!0}});this.fragmentsData.push(t);const n=new h.UIFragment(t,this,this.isPreview);return e.components&&s.updateNodeAVLTree(this.tree,e.components),this.fragments.push(n),n}removeFragment(e){const t=this.fragments.findIndex(t=>t.artboardID===e),n=this.fragmentsData.findIndex(t=>t._id===e);-1!==n&&(this.fragments[t].components.forEach(e=>{s.removeComponentNodeByID(this.tree,e.id)}),this.fragments.splice(t,1),this.fragmentsData.splice(n,1))}updateAppDataManagerArtboardsByOperations(){const e=this.mainArtboardData.nodeID;p.appDataManager.updateArtboardWithNodeID(e,this.artboards)}patchArtboard(e,t){const n=[];let o=!1;for(let i in e){const s=e[i];if("ROOT"!==i)if(i&&i!==this.mainArtboard.artboardID){const e=this.fragmentsData.findIndex(e=>e._id===i);if(r.ok(-1!==e,"必须能找到 artboard."),-1!==e){if(s.self){const t=l.getArtboardMetaPatch(s.self);this.patchSingleArtboardMeta(this.fragments[e],this.fragmentsData[e],t)}const t=a.patchArtboardByAVLTree(this.fragmentsData[e],this.tree,s);n.push(...t),this.fragments[e].refreshComponents()}else console.warn(`Cannot find fragment ${i}.`)}else{if(s.self){const e=l.getArtboardMetaPatch(s.self);this.patchSingleArtboardMeta(this.mainArtboard,this.mainArtboardData,e)}const e=a.patchArtboardByAVLTree(this.mainArtboardData,this.tree,s);n.push(...e),this.mainArtboard.refreshComponents()}else{const e=s.self[0];"remove"===e.op?this.removeFragment(e.path):"add"===e.op&&(o=!0,this.loadArtboard(e.path,t))}}n.forEach(e=>{this.tree.contains(e._id)||this.tree.insert(e._id,e)}),o||t()}getComponentByID(e){const t=this.tree.get(e);return t||null}getComponentsByFilter(e){const t=[],n=r=>{r.forEach(r=>{e(r)&&t.push(r),r.isContainer&&r.type!==d.CContentPanel&&n(r.components)})};return n(this.mainArtboard.components),this.fragments.forEach(e=>{n(e.components)}),t}getFragmentByID(e){return this.fragments.find(t=>t.realID===e)}getFragmentNameByID(e){const t=this.getFragmentByID(e);return t?t.name||e:""}getFragmentData(e){const t=this.getFragmentByID(e);return t?t.toJSON():{}}loadArtboard(e,t){u.default.artboard.getArtboardByID(e).then(e=>{this.addArtboard(e),t()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.getQueryString=void 0;const r=n(113);t.getQueryString=function(e){return function(e){const t=e.split("?")[1];if(!t)return{};return t.split("&").reduce((e,t)=>{const[n,r]=t.split("=");return n&&(e[n]=r),e},{})}(window.location.search)[e]};t.Link=class{constructor(e){this.protocol={http:"http:",https:"https:",ftp:"ftp:",file:"file:"},this.urlRegExp=/^(file|https?|ftp):\/\//,this.masterURL=e,this.value=this.getURL(e)}get origin(){var e;return(null===(e=r.getOfflineDemoData())||void 0===e?void 0:e.config.origin)||window.location.origin}getURL(e){return e?(e=e.replace(/^\//,this.origin+"/"),this.urlRegExp.test(e)?e:"http://"+e):""}open(e,t,n){window.open(this.value,e,t,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerBase=void 0;const r=n(97),o=n(1408);t.WorkerBase=class{constructor(e,t,n){this.manager=e,this.trigger=t,this.event=n,this._isRunning=!1,this._runAgain=!1,this.currentRunCommandIndex=0,this.commands=[],this.needRevertWorker=!1,this.buildCommand=e=>{const{target:t,type:n,params:r}=e;if("component"===n){const n=e,{command:i,animation:a}=n,s=r,l=this.docTree.get(t);if(!l)return null;const c={target:l,animate:a,params:s};switch(i){case"move":return new o.MoveCommand(this,c);case"resize":return new o.ResizeCommand(this,c);case"scale":return new o.ScaleCommand(this,c);case"rotation":return new o.RotationCommand(this,c);case"toggleVisible":return new o.VisibleCommand(this,c);case"toggleState":return new o.StateCommand(this,c);case"scroll":return new o.ScrollCommand(this,c);case"switchContent":return new o.ContentSwitchCommand(this,c);default:return null}}if("page"===n){const t=new o.PageSkipCommand(this,e);return t.onSkip=this.manager.extensionFeature.onPageSkip,t}if("fragment"===n){const t=new o.FragmentCommand(this,e);return t.onBegin=this.manager.extensionFeature.onFragmentOverlay,t}return"link"===n?new o.LinkCommand(this,e):null},this._manager=e,this.handle=this.trigger.interactions[n],this.parserCommand()}get isRunning(){return this._isRunning}runAgainAfterFinished(){this._runAgain=!0}get doc(){return this._manager.doc}get docTree(){return this._manager.docTree}get nextCommand(){return this.commands[this.currentRunCommandIndex]}doSkipToNextIndex(){this.needRevertWorker?this.currentRunCommandIndex--:this.currentRunCommandIndex++}get isFinish(){return this.needRevertWorker?this.currentRunCommandIndex<0:this.currentRunCommandIndex>=this.commands.length}parserCommand(){this.handle&&this.handle.actions.forEach(e=>{const t=this.buildCommand(e);t&&(t.workManager=this.manager,t.onFinish=this.doFinishCommand.bind(this),this.commands.push(t))})}doFinishCommand(e){e instanceof r.default&&e.startSubWorker(),this.doSkipToNextIndex(),this.isFinish&&this.finish()}finish(){this.onFinish&&this.onFinish(),this.handle.autoRevert&&(this.needRevertWorker=!this.needRevertWorker),this.currentRunCommandIndex=this.needRevertWorker?this.commands.length-1:0,this._runAgain?(this._runAgain=!1,this.execute()):this._isRunning=!1}executeNext(e){e instanceof r.default||e instanceof o.FragmentCommand?e.execute(this.needRevertWorker):e.execute()}refreshCommands(){this.commands.forEach(e=>{e.refreshSelf&&e.refreshSelf()})}execute(){this.commands.length?(this._isRunning=!0,this.start()):this.finish()}init(){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t){this.doSkip=()=>{this.onSkip&&this.onSkip(this.action,this._worker.doc.pageID),this.onFinish&&this.onFinish(this)},this.execute=()=>{const{animation:e}=this.action,{delay:t}=e;t?window.setTimeout(this.doSkip,t):this.doSkip()},this._worker=e,this.action=t}}},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.ThunkActions=t.Actions=void 0;const o=n(300),i=n(4),a=n(108),s=n(49),l=n(227);t.Actions={getTeamInfo:e=>s.createAction(s.ActionType.Share_GetTeamInfo,e),getUserInfo:e=>s.createAction(s.ActionType.Share_GetUserInfo,e),getShareRunLink:e=>s.createAction(s.ActionType.Share_GetRunLink,e),getShareRunLinkDone:e=>s.createAction(s.ActionType.Share_GetRunLinkDone,e),getShareRunLinkError:e=>s.createAction(s.ActionType.Share_GetRunLinkError,e),setShareLinkPass:()=>s.createAction(s.ActionType.Share_SetLinkPass),setShareLinkPassDone:e=>s.createAction(s.ActionType.Share_SetLinkPassDone,e),setShareLinkPassError:e=>s.createAction(s.ActionType.Share_SetLinkPassError,e),getShareLinkPass:(e,t)=>s.createAction(s.ActionType.Share_GetLinkPass,{shareID:e,password:t}),getShareLinkPassDone:e=>s.createAction(s.ActionType.Share_GetLinkPassDone,e),validatePasswordError:()=>s.createAction(s.ActionType.Share_ValidatePasswordError),getPwEnableDone:e=>s.createAction(s.ActionType.Share_GetPwEnableDone,e),changePwEnable:()=>s.createAction(s.ActionType.Share_ChangePwEnable),changePwEnableDone:e=>s.createAction(s.ActionType.Share_ChangePwEnableDone,e),changePwEnableError:e=>s.createAction(s.ActionType.Share_ChangePwEnableError,e),changeValidatePassword:e=>s.createAction(s.ActionType.Share_ChangeValidatePassword,e),showMessage:e=>s.createAction(s.ActionType.Preview_showMessage,{message:e}),hideMessage:()=>s.createAction(s.ActionType.Preview_hideMessage),resetLink:e=>s.createAction(s.ActionType.Preview_resetLink,{linkID:e}),setCurrLinkID:e=>s.createAction(s.ActionType.Preview_setCurrLinkID,{linkID:e}),hasShareLinkReset:e=>s.createAction(s.ActionType.Preview_hasShareLinkReset,{hasShareLinkReset:e})},t.ThunkActions={getTeamInfo:e=>n=>r(void 0,void 0,void 0,(function*(){a.default.team.getTeamInfo(e).then(e=>{n(t.Actions.getTeamInfo(e))})})),getUserInfo:()=>e=>r(void 0,void 0,void 0,(function*(){a.default.user.getUserInfo().then(n=>{e(t.Actions.getUserInfo(n))})})),getShareRunLink:e=>n=>r(void 0,void 0,void 0,(function*(){n(t.Actions.getShareRunLink(e)),a.default.share.getShareRunLink(e,o.AppTypes.RP).then(e=>{n(t.Actions.getShareRunLinkDone(e)),n(t.Actions.setCurrLinkID(e.linkID))}).catch(e=>{n(t.Actions.getShareRunLinkError(e))})})),setShareLinkPass:(e,n)=>s=>r(void 0,void 0,void 0,(function*(){s(t.Actions.setShareLinkPass()),a.default.share.setShareLinkPass(e,o.AppTypes.RP,n).then(e=>{s(t.Actions.setShareLinkPassDone(e)),s(t.Actions.showMessage(i.default("preview.updateSuccess"))),setTimeout(()=>{s(t.Actions.hideMessage())},1e3)})})),getShareLinkPass:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){o(t.Actions.getShareLinkPass(e,n)),a.default.share.getShareLinkPass(e,n).then(e=>{o(t.Actions.getShareLinkPassDone(e))}).catch(e=>{e.message===i.default("preview.passwordErrorfromBackEnd")&&o(t.Actions.validatePasswordError())})})),changeValidatePassword:e=>n=>{n(t.Actions.changeValidatePassword(e))},getPwEnable:e=>n=>r(void 0,void 0,void 0,(function*(){a.default.app.getAppByShareID(e).then(e=>{n(t.Actions.getPwEnableDone(e))}).catch(e=>{console.log(e)})})),changePwEnable:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){o(t.Actions.changePwEnable()),a.default.share.changePwEnable(e,n).then(()=>{o(l.Actions.pwdEnabled(n)),o(t.Actions.changePwEnableDone(n))}).catch(e=>{o(t.Actions.changePwEnableError(e))})})),resetLink:e=>n=>r(void 0,void 0,void 0,(function*(){a.default.share.resetShareLink(e).then(e=>{n(t.Actions.resetLink(e.linkID))}).catch(e=>{console.error(e)})})),checkShareLinkReset:(e,n)=>o=>r(void 0,void 0,void 0,(function*(){a.default.share.checkShareLinkReset(e,n).then(e=>{o(t.Actions.hasShareLinkReset(!e.isValid))}).catch(e=>{console.error(e)})}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1435);const i=n(455),a=n(57);t.default=e=>{const{size:t,theme:n}=e;return location.pathname.includes("standalone/rp")&&(document.body.style.backgroundColor="#202735"),r.createElement("div",{className:o.default("global-loading",t||"default",n||"dark",{web:!a.isMockRPD})},r.createElement("img",{className:"global-loading-img",src:i}))}},function(e,t,n){e.exports=n.p+"assets/9df897f3ab12ea758d8d5bd33913a55e.gif"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RpPreviewOption=void 0,function(e){e.PAGE_DIDMOUNT="PAGE_DIDMOUNT",e.PAGE_CHANGED="PAGE_CHANGED",e.SCALE_CHANGED="SCALE_CHANGED",e.PAGE_OPTION="PAGE_OPTION",e.URL_CHANGED="URL_CHANGED"}(t.RpPreviewOption||(t.RpPreviewOption={}))},function(e,t,n){e.exports=n.p+"assets/16053849c0f015d373bccee33767a1b4.eot"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(25);n(1506);const a=({checked:e,text:t,disabled:n,darkMode:i,onClick:a})=>r.createElement("div",{className:o.default("dsm-c-radio",{"c-radio-disabled":n,"c-radio-dark":i}),onClick:n?void 0:a},r.createElement("span",{className:o.default("radio-viewer",{"radio-checked":e})}),r.createElement("span",{className:"radio-text"},t));a.defaultProps={checked:!1,text:i.default("RadioButton.text"),disabled:!1,darkMode:!1},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(69);n(1510);class s extends r.Component{constructor(e){super(e),this.dialogContent=r.createRef(),this.onWindowKeyDown=e=>{"Escape"===e.key&&this.props.onCancel&&this.handleClose(e)},this.handleAnimationEnd=e=>{const{onCancel:t}=this.props,n=this.dialogContent.current;t&&t(e),null==n||n.removeEventListener("animationend",this.handleAnimationEnd)},this.handleClose=e=>{const{onCancel:t}=this.props,n=this.dialogContent.current;null==n||n.addEventListener("animationend",this.handleAnimationEnd),this.setState({closing:!0},()=>{!n&&t&&t(e)})},this.state={closing:!1}}componentDidMount(){this.props.escToClose&&window.addEventListener("keydown",this.onWindowKeyDown)}componentWillUnmount(){this.props.escToClose&&window.removeEventListener("keydown",this.onWindowKeyDown)}render(){let{clickModalToDismiss:e,show:t,showClose:n,children:s,contentOverflow:l,width:c,height:u,contentMinHeight:d,contentMaxHeight:h}=this.props;const{closing:p}=this.state;return r.createElement("div",{className:o.default("",{"dsm-c-comp-empty-dialog":t,hide:!t,ie:a.isIE()})},r.createElement("div",{className:o.default("dsm-c-bg",{closing:p}),onClick:t=>e&&this.handleClose(t)}),r.createElement("div",{className:"dsm-c-pop-wrap"},r.createElement("div",{ref:this.dialogContent,className:o.default("dsm-c-pop",{closing:p}),style:{overflow:l,width:c,height:u,minHeight:d,maxHeight:h}},n&&r.createElement(i.default,{cls:"demo_close",onClick:this.handleClose}),r.createElement("div",{className:o.default("dsm-c-pop-content")},s))))}}s.defaultProps={show:!0,children:"",showClose:!0,clickModalToDismiss:!1,contentOverflow:"auto",escToClose:!0,contentMinHeight:0,height:200},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(163),i=n(26),a=n(180);n(1516);class s extends r.Component{constructor(e){super(e),this.state={editTitle:!1,title:e.title||""},this.onStartEditTitle=this.onStartEditTitle.bind(this),this.onTitleChange=this.onTitleChange.bind(this),this.onSubmitNewTitle=this.onSubmitNewTitle.bind(this),this.titleRef=r.createRef()}onStartEditTitle(){this.setState({editTitle:!0},()=>{var e;null===(e=this.titleRef.current)||void 0===e||e.focus()})}onTitleChange(e){this.setState({title:e})}onSubmitNewTitle(){this.setState({editTitle:!1},()=>{var e,t;null===(t=(e=this.props).onEditTitle)||void 0===t||t.call(e,this.state.title)})}render(){const{titleEditable:e,actions:t,onClickAction:n,children:s,backLink:l}=this.props,c=e=>n(e);return r.createElement("div",{className:"dsm-c-panel"},r.createElement("div",{className:"dsm-c-panel-title"},this.state.editTitle?r.createElement("div",{className:"edit-title"},r.createElement(a.default,{setInputRef:this.titleRef,value:this.state.title,onChange:this.onTitleChange,onBlur:this.onSubmitNewTitle,onSubmit:this.onSubmitNewTitle,width:300})):r.createElement("div",{className:"panel-title-left"},l&&r.createElement(o.Link,{to:l,className:"back-link"},r.createElement(i.default,{cls:"tree_leftback"})),r.createElement("h5",{className:this.props.backLink&&"back-title"},this.props.title,e&&r.createElement(i.default,{cls:"tree_edit",solid:!0,onClick:this.onStartEditTitle}))),r.createElement("div",{className:"actions"},t&&t.map((e,t)=>r.createElement("span",{className:"link-b",key:t,onClick:c.bind(null,t)},e)))),r.createElement("div",{className:"dsm-c-panel-content"},s))}}s.defaultProps={title:"",actions:[],titleEditable:!1},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkRange=void 0,t.checkRange=function(e,[t,n]){return t>n&&([n,t]=[t,n]),Math.max(Math.min(e,n),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26);n(1534);class a extends r.Component{constructor(e){super(e),this.timeoutID=null,this.dismissMessage=this.dismissMessage.bind(this)}componentDidMount(){this.dismissMessage()}componentDidUpdate(){this.dismissMessage()}shouldComponentUpdate(e){return e.message!==this.props.message}dismissMessage(){if(clearTimeout(this.timeoutID),!this.props.message)return;const e=Math.ceil(this.props.message.length/10);this.timeoutID=setTimeout(()=>{this.props.onClose()},e>5?5e3:1e3*e)}componentWillUnmount(){clearTimeout(this.timeoutID)}render(){const{message:e,theme:t}=this.props;let n="#65D505",a="tag_resolved";return"warning"===t&&(n="#fe4066",a="tag_exclamation"),r.createElement("div",{className:o.default("dsm-c-message",{hide:!e})},"information"===t?r.createElement("span",{className:"info-text"},"i"):r.createElement(i.default,{cls:a,size:24,color:n}),r.createElement("p",{className:"text"},e))}}a.defaultProps={theme:"message",message:""},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);n(1543);const o=n(69);t.default=({shortCut:e,macOSShortCut:t})=>{if(!e)return null;let n=e;o.isMacOS&&t&&(n=t);const i=n.split("+").join(" + ").split(" ").filter(e=>""!==e.trim()),a=i.map((e,t)=>"+"===e&&t!==i.length-1?e:r.createElement("kbd",{className:"key",key:`${e}-${t}`},e));return r.createElement("kbd",null,a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(25),s=n(69);n(1546);class l extends r.Component{constructor(){super(...arguments),this.onWindowKeyDown=e=>{"Escape"===e.key&&this.props.onCancel&&this.props.onCancel(e)}}componentDidMount(){this.props.escToClose&&window.addEventListener("keydown",this.onWindowKeyDown,!0)}componentWillUnmount(){this.props.escToClose&&window.removeEventListener("keydown",this.onWindowKeyDown,!0)}render(){let{showOk:e,showCancel:t,clickModalToDismiss:n,okText:l,disableOk:c,show:u,showClose:d,cancelText:h,onOk:p,onCancel:f,children:m,sureDelete:g,contentOverflow:v,scrollView:y}=this.props;return r.createElement("div",{className:o.default({"dsm-dialog-full-screen":u,hide:!u,ie:s.isIE()})},r.createElement("div",{className:"dsm-c-bg",onClick:e=>n&&f&&f(e)}),r.createElement("div",{className:o.default("dsm-dialog-full-screen-pop"),style:{overflow:v}},d&&r.createElement(i.default,{cls:"close close-icon",onClick:f,size:24}),r.createElement("div",{className:o.default("dsm-c-pop-content")},m),r.createElement("div",{className:"dsm-c-button-wrap"},e&&r.createElement("button",{className:o.default("dsm-c-buttons ok",{"dsm-c-spc-button":!t||!g,"dsm-c-disable-button":c}),disabled:c,onClick:p},l||a.default("Dialog.ok")),t&&r.createElement("button",{className:o.default("dsm-c-buttons cancel",{"dsm-c-spc-button":g}),onClick:f},h))))}}l.defaultProps={show:!0,showOk:!0,showCancel:!1,disableOk:!1,children:"",showClose:!0,okText:a.default("Dialog.ok"),cancelText:a.default("Dialog.cancel"),clickModalToDismiss:!1,sureDelete:!1,contentOverflow:"auto",escToClose:!0},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TREE_NODE=t.DropMode=t.ContextCommand=t.NodeIconType=void 0,function(e){e.None="",e.Folder="tree_group",e.Doc="new_example",e.PDF="File_Pdf",e.Word="info_file",e.Excel="add_psd"}(t.NodeIconType||(t.NodeIconType={})),function(e){e.Copy="copy",e.Paste="paste",e.Cut="cut",e.Find="find",e.Delete="delete",e.Rename="rename",e.AddPage="addPage",e.AddFolder="addFolder",e.Clone="clone"}(t.ContextCommand||(t.ContextCommand={})),function(e){e.None="none",e.Before="before",e.After="after",e.Child="child"}(t.DropMode||(t.DropMode={})),t.TREE_NODE=Symbol("tree_node")},function(e,t,n){"use strict";function r(e,t){return e.name.toLowerCase().includes(t.toLowerCase())||!!e.pinyinName&&e.pinyinName.toLowerCase().includes(t.toLowerCase())}function o(e,t=""){if(0===e.length)return[];return e.reduce((e,n)=>(e.push(Object.assign({},n,{parentID:t})),n.children?e.concat(o(n.children,n.id)):e),[])}Object.defineProperty(t,"__esModule",{value:!0}),t.isSiblings=t.getCheckboxState=t.flattenChildren=t.findParentNodeByID=t.isNodeOrChildrenMatch=t.isNodeMatch=t.nodeMatchUpdate=t.getGroupPageNum=t.getAllParentNodeIDs=void 0,t.getAllParentNodeIDs=function e(t,n,r=1){const o=new Set;return t.forEach(t=>{if(t.isLeaf||o.add(t.id),t.children&&(o.add(t.id),-1==n||r<n)){const i=e(t.children,n,r+1);i.length>0&&i.forEach(e=>o.add(e))}}),Array.from(o)},t.getGroupPageNum=function e(t){const n=new Set;return t.forEach(t=>{if(t.isLeaf&&n.add(t.id),t.children){const r=e(t.children);r.length>0&&r.forEach(e=>n.add(e))}}),Array.from(n)},t.nodeMatchUpdate=function(e,t,n,r){const o=new RegExp(t,"g");return o.test(e)&&(e=e.replace(o,`<b class="searchKey-highlight" >${t}</b>`)),n&&r?e.concat(`<b class="group-num" >(${r})</b>`):e},t.isNodeMatch=r,t.isNodeOrChildrenMatch=function e(t,n){return!!r(t,n)||!(!t.children||0===t.children.length)&&t.children.some(t=>e(t,n))},t.findParentNodeByID=function e(t,n,r=null){for(let o=0;o<(null==t?void 0:t.length);o++){const i=t[o];if(i.id===n)return{parent:r,index:o};if(i.children){const t=e(i.children,n,i);if(-1!==t.index)return t}}return{parent:r,index:-1}},t.flattenChildren=o,t.getCheckboxState=function(e,t){if(e.isLeaf)return{checked:t.includes(e.id),indeterminate:!1,disabled:!1};let n=!1,r=!1,i=!e.children||e.children.length<=0;if(e.children&&e.children.length>0){const a=o(e.children),s=a.filter(e=>e.isLeaf),l=a.filter(e=>t.includes(e.id)),c=l.filter(e=>e.isLeaf);!s||s.length<=0?i=!0:(n=!!l&&l.length>0,r=c&&c.length>0&&c.length<s.length)}return{checked:n,indeterminate:r,disabled:i}},t.isSiblings=function(e,t,n){const r=e.find(e=>e.id===t),o=e.find(e=>e.id===n);return r&&o&&r.parentID===o.parentID||!1}},function(e,t,n){e.exports=n.p+"assets/76ac4b65c978d5259c7fd9b995686dc3.eot"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(70),i=n(26);n(1585);t.default=e=>{const{item:t,checked:n,showEmail:a,onCheck:s,onCheckDisable:l}=e,{id:c,name:u,imageURL:d,disabled:h}=t;return r.createElement("div",{className:"check-item",onClick:()=>{h?l&&l(c):s(c)}},r.createElement(o.default,{checked:n,disabled:h}),d?r.createElement("div",{className:"avatar",style:{backgroundImage:`url(${d})`}}):r.createElement(i.default,{size:20}),a?r.createElement("span",{className:"item-email-wrapper"},r.createElement("span",{className:"item-email-name"},u),r.createElement("span",{className:"item-email"},` (${t.email||""})`)):r.createElement("span",{className:"item-name"},u))}},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,a){var s=r(t),l=o[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,o,i,a){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[o?0:1]),l.replace(/%d/i,r)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,i,a){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[o?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n){var r,o;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}var n=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],r=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,o=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:o,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:o,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function i(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?o+(i(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?o+(i(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(i(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?o+(i(e)?"dny":"dní"):o+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?o+(i(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?o+(i(e)?"roky":"let"):o+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return n=r,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,i){var a="";switch(o){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":a=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":a=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":a=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":a=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":a=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":a=i?"vuoden":"vuotta"}return a=function(e,r){return e<10?r?n[e]:t[e]:e}(e,i)+" "+a}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?o[n][0]:o[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var i=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||o?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||o?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||o?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(o?"daga":"dögum"):n?i+"dagur":i+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(o?"mánuði":"mánuðum"):n?i+"mánuður":i+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?i+(n||o?"ár":"árum"):i+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function i(e,t,i,a){var s=e+" ";return 1===e?s+n(0,t,i[0],a):t?s+(r(e)?o(i)[1]:o(i)[0]):a?s+o(i)[1]:s+(r(e)?o(i)[1]:o(i)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(o(e)?"godziny":"godzin");case"ww":return r+(o(e)?"tygodnie":"tygodni");case"MM":return r+(o(e)?"miesiące":"miesięcy");case"yy":return r+(o(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var i=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var i=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),o>0&&(i+=(""!==i?" ":"")+t[o]),""===i?"pagh":i}(e);switch(r){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
function t(e,t,n){var r,o;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(3))},function(e,t,n){!function(e){"use strict";
|
|
|
//! moment.js locale configuration
|
|
|
e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(3))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);n(1616);t.default=e=>{const{pastDelay:t}=e;return t?r.createElement("div",{className:"loading"},r.createElement("img",{src:"https://img02.mockplus.cn/image/2021-03-8/68ade02d-0222-8805-4a29-6ab0ffc12012.gif",alt:"loading...",width:35,height:35})):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1796),i=n(1727),a=n(1731),s=n(1735),l=n(1740),c=n(25),u=n(70),d=n(184),h=n(181);n(1741);const p=n(2),f=e=>{const{totalText:t,disabled:n,pageInfo:f,showTotalSelect:m,selectActionText:g,checked:v,currentPageCount:y,selectActions:b,showActionsAsMenu:w,theme:C,checkAllCount:_,onChange:x,onChangeSize:S,onCheckAll:k,onCheckAction:P}=e,{pageIndex:T,pageSize:E,count:O}=f,[M,A]=r.useState(!1),D=e=>{k&&k(e)},I=e=>{P&&P(e)};return r.createElement(o.ConfigProvider,{locale:l.isUS?s.default:l.isTW?a.default:i.default},r.createElement("div",{className:"c-pager"},r.createElement(o.Pagination,{showQuickJumper:!0,showSizeChanger:!0,current:T,total:O,pageSize:E,disabled:n,showTotal:e=>m?v?r.createElement("div",{className:"c-pager-total"},r.createElement(u.default,{checked:v.length>0,indeterminate:v.length<(_||y||0),text:c.default("pager.checkAll"),fontSize:12,onChange:D}),v.length>0&&(g?r.createElement("span",{className:"action-btn"},r.createElement("span",{className:"c-pager-split-line"}),r.createElement("span",{className:"link-b",onClick:()=>I()},g)):b&&b.length>0?w?r.createElement("span",{className:"action-btn-container"},r.createElement("span",{className:"c-pager-split-line"}),r.createElement("span",{className:"btn-container"},r.createElement("span",{className:"link-b",onClick:()=>A(!0)},c.default("pager.batchOperate")),M&&r.createElement(h.default,{minWidth:150,options:b.map(e=>Object.assign(Object.assign({},e),{disable:e.disabled})),onClose:()=>A(!1),onSelect:I})),r.createElement("span",{className:"c-pager-split-line"})):r.createElement("span",{className:"action-btn-container"},r.createElement("span",{className:"c-pager-split-line"}),r.createElement("span",{className:"btn-container"},b.map((e,t)=>r.createElement("span",{key:t,className:p("link-b",{disabled:e.disabled}),onClick:()=>{!e.disabled&&I(e.id)}},e.text)))):null),r.createElement("div",{className:p("total",{"show-action-menu":v.length>0&&b&&b.length>0&&w})},r.createElement(d.default,{theme:"red"===C?void 0:C,str:t||c.default("pager.total",e),targetStr:""+e}),r.createElement(d.default,{str:c.default("pager.selected",v.length),targetStr:""+v.length}))):null:r.createElement(d.default,{str:t||c.default("pager.total",e),targetStr:""+e}),onChange:e=>{x&&x(e)},onShowSizeChange:(e,t)=>{S&&S(t)}})))};f.defaultProps={totalText:"",disabled:!1,pageInfo:{pageIndex:1,pageSize:20,count:0},showTotalSelect:!1,selectActionText:"",selectActions:[],checked:[],currentPageCount:0},t.default=f},function(e,t,n){var r=n(1644),o=n(607),i=n(1648),a=n(320),s=n(321),l=n(1653),c=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var u=r(t,c(e/s(t)));return a(t)?i(l(u),0,e).join(""):u.slice(0,e)}},function(e,t,n){var r=n(232),o=n(1645),i=n(233),a=n(609),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(64))},function(e,t,n){var r=n(185),o=n(186);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(1656);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(1657),o=n(234),i=n(609),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(607);e.exports=function(e){return null==e?"":r(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(185),o=n(234);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(1678),o=n(1685),i=n(1687),a=n(1688),s=n(1689);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(1690),o=n(1693),i=n(1694);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var b=c?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){(function(e){var r=n(98),o=n(1711),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l}).call(this,n(202)(e))},function(e,t,n){var r=n(1713),o=n(1714),i=n(1715),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(323)),i=r(n(1729)),a=r(n(622)),s={lang:(0,o.default)({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},i.default),timePickerLocale:(0,o.default)({},a.default)};s.lang.ok="确 定";var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};t.default=r},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(323)),i=r(n(1733)),a=r(n(624)),s={lang:(0,o.default)({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeWeekPlaceholder:["開始周","結束周"]},i.default),timePickerLocale:(0,o.default)({},a.default)};s.lang.ok="確 定";var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"請選擇時間"};t.default=r},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(323)),i=r(n(1738)),a=r(n(626)),s={lang:(0,o.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},i.default),timePickerLocale:(0,o.default)({},a.default)};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(25);n(1742);const i=e=>{const{searchMode:t,top:n,height:i,minHeight:a,emptyPicture:s,searchEmptyPicture:l}=e;return t?r.createElement("div",{className:"c-empty-box",style:{top:n,height:i,minHeight:a}},r.createElement("div",{className:"empty-container"},r.createElement("img",{src:l,alt:"empty.png"}),r.createElement("div",{className:"tip"},o.default("emptyTip.searchEmptyTip")))):r.createElement("div",{className:"c-empty-box",style:{top:n,height:i,minHeight:a}},r.createElement("div",{className:"empty-container"},r.createElement("img",{src:s,alt:"empty.png"}),r.createElement("div",{className:"tip"},o.default("emptyTip.emptyTip"))))};i.defaultProps={searchMode:!1,minHeight:600,height:"auto",emptyPicture:"",searchEmptyPicture:""},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(140);t.default=({columns:e,rowSelectionType:t})=>r.createElement("colgroup",null,(()=>{switch(t){case o.TableSelection.Checkbox:return r.createElement("col",{key:"checkbox",width:33,style:{minWidth:33}});case o.TableSelection.None:return null}})(),e.map(e=>r.createElement("col",{key:e.id,width:e.width,style:{minWidth:e.minWidth}})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(140),a=n(231),s=n(1744);t.default=({columns:e,rowSelectionType:t,cellStyle:n,onSort:l})=>{const[c,u]=r.useState(""),[d,h]=r.useState(a.TableSortOrder.NONE),p=e=>{if(!e.sort)return;if(c!==e.dataIndex)return u(e.dataIndex),h(a.TableSortOrder.ASC),void(l&&l(e.dataIndex,a.TableSortOrder.ASC));const t=f();u(e.dataIndex),h(t),l&&l(e.dataIndex,t)},f=()=>{switch(d){case a.TableSortOrder.ASC:return a.TableSortOrder.DESC;case a.TableSortOrder.DESC:return a.TableSortOrder.NONE;case a.TableSortOrder.NONE:return a.TableSortOrder.ASC;default:throw new Error("sort order error.")}},m=(e,t)=>e.parentText&&e.parentText[t]?e.parentText[t]:t>0&&e.text,g=Math.max(...e.map(e=>{var t;return(null===(t=e.parentText)||void 0===t?void 0:t.length)||0}))+1;return r.createElement("thead",{className:"c-table-thead"},new Array(g).fill(1).map((l,u)=>r.createElement("tr",{key:"c-table-header-row-"+u},((e,n)=>{if(n>0||t===i.TableSelection.None)return null;switch(t){case i.TableSelection.Checkbox:return r.createElement("th",{key:"checkbox",rowSpan:e,className:"c-table-column-"+i.ITableColumnAlign.Center})}})(g,u),((l=1,u=0)=>e.map((h,f)=>{if(h.parentText&&h.parentText.length){const l=m(h,u),g=f>0&&m(e[f-1],u),v=e.slice(f,e.length).filter(e=>e.parentText&&e.parentText[u]===l).length;return g===l?null:r.createElement("th",{key:h.id,colSpan:v,className:o("c-table-column-"+(h.align||i.ITableColumnAlign.Left),{"c-table-column-first":0===f&&t!==i.TableSelection.None,"c-table-column-merge":v>1,"c-table-column-sortable":v<=1&&h.sort}),style:Object.assign(Object.assign(Object.assign({},n),h.style),h.thStyle),onClick:()=>v<=1&&p(h)},r.createElement("div",{className:"c-table-column-item"},r.createElement("div",{className:"c-table-column-item-text"},l),h.sort&&l===h.text&&r.createElement(s.default,{order:c===h.dataIndex?d:a.TableSortOrder.NONE})))}if(0===u)return r.createElement("th",{key:h.id,rowSpan:l,className:o("c-table-column-"+(h.align||i.ITableColumnAlign.Left),{"c-table-column-first":0===f&&t!==i.TableSelection.None,"c-table-column-sortable":h.sort}),style:Object.assign(Object.assign(Object.assign({},n),h.style),h.thStyle),onClick:()=>p(h)},r.createElement("div",{className:"c-table-column-item"},r.createElement("div",{className:"c-table-column-item-text"},h.text),h.sort&&r.createElement(s.default,{order:c===h.dataIndex?d:a.TableSortOrder.NONE,sortIcon:h.sortIcon})))}))(g,u))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1746);n(1750);t.default=e=>{const{theme:t,dataSource:n,columns:i,activeMenuRow:a,rowSelectionType:s,checked:l,cellStyle:c,searchKey:u,disableSelectionRows:d,handleClickRow:h,handleContextRow:p,setChecked:f,onFormat:m,setTip:g}=e;return r.createElement("tbody",{className:"c-table-tbody"},n.map((e,n)=>{const v=!!a&&a.id;return r.createElement(o.default,{key:(null==e?void 0:e.id)||n,columns:i,data:e,order:n,activeMenu:v&&v===e.id,rowSelectionType:s,checked:l,cellStyle:c,searchKey:u,theme:t,disableSelectionRows:d,onFormat:m,onClick:h,onContext:p,setChecked:f,setTip:g})}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1754);const i=e=>{const{showMask:t,showShadow:n,position:i,style:a}=e;return r.createElement("div",{className:o("dsm-c-loading-points",{mask:t,shadow:n}),style:Object.assign({position:i},a)},r.createElement("div",{className:"loading-container"},r.createElement("img",{src:"https://img02.mockplus.cn/image/2021-04-17/2ff3fed9-de1f-1ba4-3ff4-91ed21951181.gif",alt:""})))};i.defaultProps={showMask:!1,showShadow:!1,position:"fixed",style:{}},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(24),s=n(53),l=n(32),c=n(46),u=n(103),d=n(16),h=n(177),p=n(20),f=n(295);n(1765),n(1766),n(1767),n(1768);class m extends r.Component{constructor(e){super(e),this.currentDownPage=void 0,this.allowMouseDown=!0,this.allowMouseUp=!0,this.compMouseUpEvent={},this.timeID=void 0,this.setFragmentCommandHandle=(e,t,n)=>{"current"===t&&e.updateWorkerManagerExtensionFeature({onFragmentOverlay:n})},this.doFragmentCommand=e=>{const{onParentForceUpdate:t,page:n,pageType:r}=this.props,o=n.fragmentCommandMap;if("current"!==r||!o)return;const{animation:i,isExit:a}=e,s=e.target,l=n.doc.fragments.find(e=>e.artboardID===s);if(!l||a&&!o.has(s))return;n.multiFragments||a||o.clear(),o.set(s,e),t();const u=i.delay+i.duration+50;setTimeout(()=>{a?o.delete(s):n.start(l,c.EventTypes.loaded),t()},u)},this.handleComponentClick=(e,t)=>{const{page:n}=this.props;t.hidden||(t.selected?(n.triggerPredefinedState(t,a.PredefinedStates.toggleCheck),n.triggerPredefinedState(t,a.PredefinedStates.unchecked)):(n.triggerPredefinedState(t,a.PredefinedStates.toggleCheck),n.triggerPredefinedState(t,a.PredefinedStates.checked)),t.interactions[c.EventTypes.click]&&t.interactions[c.EventTypes.click].actions.length>0&&n.start(t,c.EventTypes.click))},this.handleComponentDoubleClick=(e,t)=>{t.interactions[c.EventTypes.doubleClick]&&t.interactions[c.EventTypes.doubleClick].actions.length>0&&!t.hidden&&this.props.page.start(t,c.EventTypes.doubleClick)},this.handleComponentDown=(e,t)=>{const{page:n}=this.props;if(t.hidden)return;const r=t.hasActiveState(a.PredefinedStates.pressed);let o=t,i=t.parent;if(r){let e=[t];for(;i;)e.unshift(i),i=i.parent;let n=void 0;for(;!n&&e.length;){const t=e.shift();if(t.hasActiveState(a.PredefinedStates.pressed)){o=t;break}}}r&&n.triggerPredefinedState(o,a.PredefinedStates.pressed),this.proxyWindowMouseUp(o,e.target),this.allowMouseUp&&t.interactions[c.EventTypes.mouseUp]&&t.interactions[c.EventTypes.mouseUp].actions.length>0&&(this.allowMouseUp=!1,this.mouseDownTarget=e.target,this.proxyMouseUp(e.target,t)),this.allowMouseDown&&t.interactions[c.EventTypes.mouseDown]&&t.interactions[c.EventTypes.mouseDown].actions.length>0&&(this.allowMouseDown=!1,n.start(t,c.EventTypes.mouseDown))},this.handleComponentTouchStart=(e,t)=>{const{page:n}=this.props;t.hidden||(t.hasActiveState(a.PredefinedStates.pressed)&&n.triggerPredefinedState(t,a.PredefinedStates.pressed),n.start(t,c.EventTypes.mouseDown))},this.handleComponentContextMenu=(e,t)=>{const{page:n}=this.props;t.hidden||n.start(t,c.EventTypes.contextMenu)},this.handleCompnentMouseUp=e=>{const{page:t}=this.props;e.hidden||(this.allowMouseUp=!0,t.start(e,c.EventTypes.mouseUp))},this.triggerParentHover=e=>{if(!e.hidden)if(e.hasActiveState(a.PredefinedStates.hover)&&!e.selected){const{page:t}=this.props;t.triggerPredefinedState(e,a.PredefinedStates.hover)}else e.parent&&this.triggerParentHover(e.parent)},this.stopParentPressed=e=>{if(!e.hidden)if(e.hasActiveState(a.PredefinedStates.pressed)&&e.currentStateID===a.PredefinedStates.pressed){const{page:t}=this.props;t.triggerPredefinedState(e,a.PredefinedStates.normal)}else e.parent&&this.stopParentPressed(e.parent)},this.doTriggerParentState=(e,t)=>{const{parent:n}=e;n&&!n.hidden&&(n.hasActiveState(t)?this.props.page.triggerPredefinedState(n,t):this.doTriggerParentState(n,t))},this.handleWindowMouseUp=(e,t)=>{const{page:n}=this.props;if(e.hidden)return;const r=e._currentState===a.PredefinedStates.focus,o=window.event.target,i=t.contains(o);r||(e.hasActiveState(a.PredefinedStates.hover)&&!e.selected&&i?n.triggerPredefinedState(e,a.PredefinedStates.hover):e.hasActiveState(a.PredefinedStates.focus)&&i?n.triggerPredefinedState(e,a.PredefinedStates.focus):(this.stopParentPressed(e),this.triggerParentHover(e.parent)))},this.proxyMouseUp=(e,t)=>{const n=(e=>t=>{t.target.removeEventListener("mouseup",this.compMouseUpEvent[e.id]),delete this.compMouseUpEvent[e.id],this.handleCompnentMouseUp(e)})(t);this.compMouseUpEvent[t.id]=n,e.addEventListener("mouseup",n)},this.proxyWindowMouseUp=(e,t)=>{this.windowMouseUpEvent||(this.windowMouseUpEvent=(e=>()=>{this.windowMouseUpEvent&&window.removeEventListener("mouseup",this.windowMouseUpEvent),this.windowMouseUpEvent=void 0,this.handleWindowMouseUp(e,t)})(e),window.addEventListener("mouseup",this.windowMouseUpEvent))},this.getActiveFragment=e=>{const t=this.props.page.doc.fragments.filter(t=>t.artboardID===e);if(t)return t[0]},this.handleComponentTouchEnd=(e,t)=>{if(t.hidden)return;const{page:n}=this.props;t.hasActiveState(a.PredefinedStates.hover)&&!t.selected?n.triggerPredefinedState(t,a.PredefinedStates.hover):n.triggerPredefinedState(t,a.PredefinedStates.normal),n.start(t,c.EventTypes.mouseUp)},this.handleComponentUp=()=>{},this.handleComponentEnter=(e,t)=>{if(t.hidden)return;const{page:n}=this.props;t._currentState===a.PredefinedStates.focus||t.hasActiveState(a.PredefinedStates.hover)&&!t.selected&&n.triggerPredefinedState(t,a.PredefinedStates.hover),n.start(t,c.EventTypes.mouseEnter)},this.handleComponentLeave=(e,t)=>{if(t.hidden)return;const{page:n}=this.props;t._currentState===a.PredefinedStates.focus||t.hasActiveState(a.PredefinedStates.hover)&&!t.selected&&n.triggerPredefinedState(t,a.PredefinedStates.normal),n.start(t,c.EventTypes.mouseLeave)},this.handleComponentFocus=(e,t)=>{if(t.hidden)return;const{page:n}=this.props;t.hasActiveState(a.PredefinedStates.focus)?n.triggerPredefinedState(t,a.PredefinedStates.focus):this.doTriggerParentState(t,a.PredefinedStates.focus),n.start(t,c.EventTypes.focus)},this.handleComponentBlur=(e,t)=>{if(t.hidden)return;const{page:n}=this.props;t.hasActiveState(a.PredefinedStates.focus)&&n.triggerPredefinedState(t,a.PredefinedStates.normal),n.start(t,c.EventTypes.blur)},this.handlePageClick=(e,t)=>{const{page:n}=this.props;t&&(this.currentDownPage===t.artboardID?(this.currentDownPage=void 0,n.start(t,c.EventTypes.click)):this.currentDownPage=void 0)},this.handlePageDoubleClick=(e,t)=>{const{page:n}=this.props;t&&n.start(t,c.EventTypes.doubleClick)},this.handlePageDown=(e,t)=>{const{page:n}=this.props;t&&(this.currentDownPage=t.artboardID,this.allowMouseDown&&n.start(t,c.EventTypes.mouseDown),this.allowMouseDown=!0)},this.handlePageUp=(e,t)=>{const{page:n}=this.props;t&&this.currentDownPage===t.artboardID&&(this.allowMouseUp&&n.start(t,c.EventTypes.mouseUp),this.allowMouseUp=!0)},this.handlePageContextMenu=(e,t)=>{const{page:n}=this.props,r=document.getSelection();if(r){const{focusOffset:t,anchorOffset:n,focusNode:o,anchorNode:i}=r;o===i&&t===n&&e.preventDefault()}t&&(this.currentDownPage===t.artboardID?(this.currentDownPage=void 0,n.start(t,c.EventTypes.contextMenu)):this.currentDownPage=void 0)},this.handleInnerAction=e=>{this.props.page.triggerInnerAction(e)},this.handleForceUpdateComp=e=>{this.setState({forceUpdateComp:e})},this.renderComponents=(e,t,n)=>{const o=e.components,i="artboard"===e.type,{forceUpdateComp:a}=this.state;return o.map(e=>{let o=e;return a&&a.id===e.id&&(o=a),r.createElement(f.default,{key:o.id,revision:o.chainedVersion(),offsetX:0,offsetY:0,isActivated:!1,isParentActivated:!1,isPreview:!0,noBoundary:n,comp:o,onClick:this.handleComponentClick,onDoubleClick:this.handleComponentDoubleClick,onContextMenu:this.handleComponentContextMenu,onMouseDown:this.handleComponentDown,onMouseUp:this.handleComponentUp,onTouchEnd:this.handleComponentTouchEnd,onTouchStart:this.handleComponentTouchStart,onMouseEnter:this.handleComponentEnter,onMouseLeave:this.handleComponentLeave,onFocus:this.handleComponentFocus,onBlur:this.handleComponentBlur,onInnerAction:this.handleInnerAction,scale:i?t:void 0,globalScale:t,onForceUpdate:this.handleForceUpdateComp},o.isContainer&&this.renderComponents(o,t,n))})},this.renderFragment=(e,t,n)=>{const i=this.getActiveFragment(t.target);if(!i)return null;const{onFragmentAnimationEnd:a}=this.props;let s=i&&{height:i.size.height*(e||1),width:i.size.width*(e||1)};const l={},c={};if(t.params.showBackground)if(t.params.backgroundColor){const{color:e,type:n}=t.params.backgroundColor;e&&n&&d.applyFillToStyle({color:e,type:n},c)}else c.background=d.parseColorToString(Object.assign(Object.assign({},p.GrayColor),{a:.5}));c.pointerEvents="none",t.params.showBackground&&(c.pointerEvents="all");let u="null";t&&(l.animationTimingFunction=t.animation.effect,l.animationDuration=(t.animation.duration||1)+"ms",u=t.params.effect,"none"===u&&(l.animationDuration="1ms"),l.animationFillMode="forwards");const h=o.default("active-custom-fragment",{["fragment-custom-"+u]:!t.isExit},{["revert-fragment-custom-"+u]:t.isExit},{"over-visible":!!n}),f={width:this.props.page.doc.mainArtboard.size.width*e,height:this.props.page.doc.mainArtboard.size.height*e},m=t.params.position||{x:0,y:0};return r.createElement("div",{key:i.artboardID,className:"custom-fragment-bg",style:Object.assign(Object.assign({},c),f),onClick:this.props.page.closeFragmentByAction.bind(this.props.page,t,this.forceUpdate.bind(this))},r.createElement("div",{className:h,onAnimationEnd:()=>{"null"!==u&&a()},onClick:e=>{e.target===e.currentTarget&&this.props.page.closeFragmentByAction(t,this.forceUpdate.bind(this)),e.stopPropagation()},onDoubleClick:e=>{e.stopPropagation()},onContextMenu:e=>{e.stopPropagation()},onMouseDown:e=>{e.stopPropagation()},onMouseUp:e=>{e.stopPropagation()},onTouchStart:e=>{e.stopPropagation()},onTouchEnd:e=>{e.stopPropagation()},style:Object.assign(Object.assign(Object.assign({},l),s),{left:m.x*e,top:m.y*e})},i&&this.renderComponents(i,e,n)))},this.selfRef=r.createRef(),this.state={originalData:this.props.page},this.setFragmentCommandHandle(e.page,e.pageType,this.doFragmentCommand.bind(this))}componentDidUpdate(){this.setFragmentCommandHandle(this.props.page,this.props.pageType,this.doFragmentCommand.bind(this)),i.isUndefined(this.timeID)||(window.clearTimeout(this.timeID),this.timeID=void 0),this.props.page.doLoaded&&"current"===this.props.pageType&&(this.isStartTriggerLoadedEvent||this.props.page.doLoaded||(this.timeID=window.setTimeout(()=>{i.isUndefined(this.timeID)||(this.isStartTriggerLoadedEvent=!0),window.clearTimeout(this.timeID),this.timeID=void 0},50)))}componentWillUnmount(){window.clearTimeout(this.timeID),this.props.page.afterLoaded()}get customFragmentCommands(){var e,t;const{page:n,pageType:r}=this.props;return"current"!==r?[]:Array.from(null!==(t=null===(e=n.fragmentCommandMap)||void 0===e?void 0:e.values())&&void 0!==t?t:[]).filter(e=>e.params.mode===h.FragmentPositionMode.Custom)}render(){const{page:e,option:t,scale:n}=this.props,{doc:i}=e;let a=void 0;if(t){const{alwaysShowLinkArea:e,showLinkAreaWhenHovered:n}=t;n&&!e?a="only-hover":e&&(a="always")}const c=i.mainArtboard.background,h={};let p={type:c.type,color:c.color};c.type&&c.color&&!c.disabled||(p={type:l.FillType.solid,color:{r:0,g:0,b:0,a:0}}),d.applyFillToStyle({type:u.getEnumValue(l.FillType,p.type),color:p.color},h);const f=o.default("preview-page",{"no-boundary":null==t?void 0:t.noBoundary},t?a:"");return r.createElement("div",{className:f,style:h,onClick:t=>{this.handlePageClick(t,e.doc.mainArtboard)},onDoubleClick:t=>{t.stopPropagation(),this.handlePageDoubleClick(t,e.doc.mainArtboard)},onContextMenu:t=>{t.stopPropagation(),this.handlePageContextMenu(t,e.doc.mainArtboard)},onMouseDown:t=>{!s.isMobileDevice()&&this.handlePageDown(t,e.doc.mainArtboard)},onMouseUp:t=>{!s.isMobileDevice()&&this.handlePageUp(t,e.doc.mainArtboard)},onTouchStart:t=>{s.isMobileDevice()&&this.handlePageDown(t,e.doc.mainArtboard)},onTouchEnd:t=>{s.isMobileDevice()&&this.handlePageUp(t,e.doc.mainArtboard)}},this.renderComponents(i.mainArtboard,n,null==t?void 0:t.noBoundary),!!this.customFragmentCommands.length&&this.customFragmentCommands.map(e=>this.renderFragment(n,e,null==t?void 0:t.noBoundary)))}}m.defaultProps={},t.default=m},function(e,t,n){"use strict";n.r(t),n.d(t,"DndContext",(function(){return r.a})),n.d(t,"createDndContext",(function(){return r.b})),n.d(t,"DndProvider",(function(){return o.a})),n.d(t,"DragPreviewImage",(function(){return a})),n.d(t,"useDrag",(function(){return D})),n.d(t,"useDrop",(function(){return B})),n.d(t,"useDragLayer",(function(){return V})),n.d(t,"DragSource",(function(){return ve})),n.d(t,"DropTarget",(function(){return _e})),n.d(t,"DragLayer",(function(){return Ae}));var r=n(142),o=n(433),i=n(0),a=i.memo((function(e){var t=e.connect,n=e.src;if("undefined"!=typeof Image){var r=new Image;r.src=n,r.onload=function(){return t(r)}}return null}));a.displayName="DragPreviewImage";var s=n(11),l="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function c(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<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function d(e,t,n){var r=u(Object(i.useState)((function(){return t(e)})),2),o=r[0],a=r[1],s=Object(i.useCallback)((function(){var r=t(e);c(o,r)||(a(r),n&&n())}),[o,e,n]);return l(s,[]),[o,s]}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e,t,n){var r=h(d(e,t,n),2),o=r[0],i=r[1];return l((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})}),[e,i]),o}function f(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function m(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}function g(){var e=Object(i.useContext)(r.a).dragDropManager;return Object(s.a)(null!=e,"Expected drag drop context"),e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=!1,b=!1,w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Object(s.a)(!y,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{y=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Object(s.a)(!b,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return b=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{b=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&v(t.prototype,n),r&&v(t,r),e}();function C(e,t){"function"==typeof e?e(t):e.current=t}function _(e,t){var n=e.ref;return Object(s.a)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?Object(i.cloneElement)(e,{ref:function(e){C(n,e),C(t,e)}}):Object(i.cloneElement)(e,{ref:t})}function x(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function S(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Object(i.isValidElement)(t)){var r=t;return e(r,n),r}var o=t;x(o);var a=n?function(t){return e(t,n)}:e;return _(o,a)}}(r);t[n]=function(){return o}}})),t}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e){return null!==e&&"object"===k(e)&&e.hasOwnProperty("current")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var E=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=S({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,P(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,P(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!c(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!c(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&T(t.prototype,n),r&&T(t,r),e}();function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function D(e){var t=Object(i.useRef)(e);t.current=e,Object(s.a)(null!=e.item,"item must be defined"),Object(s.a)(null!=e.item.type,"item type must be defined");var n,r=A((n=g(),[Object(i.useMemo)((function(){return new w(n)}),[n]),Object(i.useMemo)((function(){return new E(n.getBackend())}),[n])]),2),o=r[0],a=r[1];!function(e,t,n){var r=g(),o=Object(i.useMemo)((function(){return{beginDrag:function(){var n=e.current,r=n.begin,o=n.item;if(r){var i=r(t);return Object(s.a)(null==i||"object"===M(i),"dragSpec.begin() must either return an object, undefined, or null"),i||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}}),[]);l((function(){var i=O(m(e.current.item.type,o,r),2),a=i[0],s=i[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),s}),[])}(t,o,a);var c=p(o,t.current.collect||function(){return{}},(function(){return a.reconnect()})),u=Object(i.useMemo)((function(){return a.hooks.dragSource()}),[a]),d=Object(i.useMemo)((function(){return a.hooks.dragPreview()}),[a]);return l((function(){a.dragSourceOptions=t.current.options||null,a.reconnect()}),[a]),l((function(){a.dragPreviewOptions=t.current.previewOptions||null,a.reconnect()}),[a]),[c,u,d]}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var L=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=S({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,P(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!c(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&I(t.prototype,n),r&&I(t,r),e}();function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var j=!1,R=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Object(s.a)(!j,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return j=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{j=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&N(t.prototype,n),r&&N(t,r),e}();function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function B(e){var t=Object(i.useRef)(e);t.current=e,Object(s.a)(null!=e.accept,"accept must be defined");var n,r=F((n=g(),[Object(i.useMemo)((function(){return new R(n)}),[n]),Object(i.useMemo)((function(){return new L(n.getBackend())}),[n])]),2),o=r[0],a=r[1];!function(e,t,n){var r=g(),o=Object(i.useMemo)((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);l((function(){var i=z(f(e.current.accept,o,r),2),a=i[0],s=i[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),s}),[t,n])}(t,o,a);var c=p(o,t.current.collect||function(){return{}},(function(){return a.reconnect()})),u=Object(i.useMemo)((function(){return a.hooks.dropTarget()}),[a]);return l((function(){a.dropTargetOptions=e.options||null,a.reconnect()}),[e.options]),[c,u]}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function V(e){var t=g().getMonitor(),n=H(d(t,e),2),r=n[0],o=n[1];return Object(i.useEffect)((function(){return t.subscribeToOffsetChange(o)})),Object(i.useEffect)((function(){return t.subscribeToStateChange(o)})),r}function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e){return"function"==typeof e}function U(){}function K(e){if(!function(e){return"object"===Y(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function G(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function q(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}(e);var t}var $=n(78),X=n.n($);function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t,n){return t&&Z(e.prototype,t),n&&Z(e,n),e}var ee=function(){function e(t){J(this,e),this.isDisposed=!1,this.action=W(t)?t:U}return Q(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return e&&W(e.dispose)}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();ee.empty={dispose:U};var te=function(){function e(){J(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return Q(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),ne=function(){function e(){J(this,e),this.isDisposed=!1}return Q(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=e.DecoratedComponent,n=e.createHandler,o=e.createMonitor,a=e.createConnector,l=e.registerHandler,u=e.containerDisplayName,d=e.getType,h=e.collect,p=e.options.arePropsEqual,f=void 0===p?c:p,m=t,g=t.displayName||t.name||"Component",v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ae(this,se(t).call(this,e))).decoratedRef=i.createRef(),n.handleChange=function(){var e=n.getCurrentState();c(e,n.state)||n.setState(e)},n.disposable=new ne,n.receiveProps(e),n.dispose(),n}var u,p,v;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}(t,e),u=t,(p=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(s.a)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!f(e,this.props)||!c(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new ne,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){f(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(d(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=oe(l(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new te(new ee(o),new ee(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?h(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return i.createElement(r.a.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),i.createElement(m,Object.assign({},e.props,e.getCurrentState(),{ref:q(m)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Object(s.a)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",g,g),void 0!==e&&(this.manager=e,this.handlerMonitor=o(e),this.handlerConnector=a(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&ie(u.prototype,p),v&&ie(u,v),t}(i.Component);return v.DecoratedComponent=t,v.displayName="".concat(u,"(").concat(g,")"),X()(v,t)}function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){return"string"==typeof e||"symbol"===ue(e)||!!t&&Array.isArray(e)&&e.every((function(e){return de(e,!1)}))}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pe=["canDrag","beginDrag","isDragging","endDrag"],fe=["beginDrag"],me=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,G(this.ref))}}])&&he(t.prototype,n),r&&he(t,r),e}();function ge(e){return Object.keys(e).forEach((function(t){Object(s.a)(pe.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',pe.join(", "),t),Object(s.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),fe.forEach((function(t){Object(s.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new me(e,t,n)}}function ve(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(s.a)(de(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),Object(s.a)(K(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=ge(t);return Object(s.a)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Object(s.a)(K(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return ce({containerDisplayName:"DragSource",createHandler:i,registerHandler:m,createConnector:function(e){return new E(e)},createMonitor:function(e){return new w(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var be=["canDrop","hover","drop"],we=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,G(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&ye(t.prototype,n),r&&ye(t,r),e}();function Ce(e){return Object.keys(e).forEach((function(t){Object(s.a)(be.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',be.join(", "),t),Object(s.a)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new we(e,t,n)}}function _e(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Object(s.a)(de(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),Object(s.a)(K(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=Ce(t);return Object(s.a)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Object(s.a)(K(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return ce({containerDisplayName:"DropTarget",createHandler:i,registerHandler:f,createMonitor:function(e){return new R(e)},createConnector:function(e){return new L(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t,n){return t&&ke(e.prototype,t),n&&ke(e,n),e}function Te(e,t){return!t||"object"!==xe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Me(e,t)}function Me(e,t){return(Me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),Object(s.a)(K(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var o=n,a=t.arePropsEqual,l=void 0===a?c:a,u=o.displayName||o.name||"Component",d=function(t){function n(){var e;return Se(this,n),(e=Te(this,Ee(n).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=i.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();c(t,e.state)||e.setState(t)}},e}return Oe(n,t),Pe(n,[{key:"getDecoratedComponentInstance",value:function(){return Object(s.a)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!l(e,this.props)||!c(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return i.createElement(r.a.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?i.createElement(o,Object.assign({},e.props,e.state,{ref:q(o)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,Object(s.a)("object"===xe(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",u,u);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),n}(i.Component);return d.displayName="DragLayer(".concat(u,")"),d.DecoratedComponent=n,X()(d,n)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"getEmptyImage",(function(){return D})),n.d(t,"NativeTypes",(function(){return r}));var r={};function o(e){var t=null;return function(){return null==t&&(t=e()),t}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(r),n.d(r,"FILE",(function(){return m})),n.d(r,"URL",(function(){return g})),n.d(r,"TEXT",(function(){return v}));var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,r;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&i(t.prototype,n),r&&i(t,r),e}(),s=o((function(){return/firefox/i.test(navigator.userAgent)})),l=o((function(){return Boolean(window.safari)}));function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],c=[],u=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],c.push(a),l.push(s),u.push(s/a);for(var h=[u[0]],p=0;p<c.length-1;p++){var f=u[p],m=u[p+1];if(f*m<=0)h.push(0);else{a=c[p];var g=c[p+1],v=a+g;h.push(3*v/((v+g)/f+(v+a)/m))}}h.push(u[u.length-1]);for(var y,b=[],w=[],C=0;C<h.length-1;C++){y=u[C];var _=h[C],x=1/c[C],S=_+h[C+1]-y-y;b.push((y-_-S)*x),w.push(S*x*x)}this.xs=t,this.ys=n,this.c1s=h,this.c2s=b,this.c3s=w}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,c=i.length-1;l<=c;){var u=t[s=Math.floor(.5*(l+c))];if(u<e)l=s+1;else{if(!(u>e))return n[s];c=s-1}}var d=e-t[a=Math.max(0,c)],h=d*d;return n[a]+r[a]*d+o[a]*h+i[a]*d*h}}])&&c(t.prototype,n),r&&c(t,r),e}();function d(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function h(e){return{x:e.clientX,y:e.clientY}}function p(e,t,n,r,o){var i,a,c="IMG"===(i=t).nodeName&&(s()||!document.documentElement.contains(i)),h=d(c?e:t),p={x:n.x-h.x,y:n.y-h.y},f=e.offsetWidth,m=e.offsetHeight,g=r.anchorX,v=r.anchorY,y=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return l()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(c,t,f,m),b=y.dragPreviewWidth,w=y.dragPreviewHeight,C=o.offsetX,_=o.offsetY,x=0===_||_;return{x:0===C||C?C:new u([0,.5,1],[p.x,p.x/f*b,p.x+b-f]).interpolate(g),y:x?_:(a=new u([0,.5,1],[p.y,p.y/m*w,p.y+w-m]).interpolate(v),l()&&c&&(a+=(window.devicePixelRatio-1)*w),a)}}var f,m="__NATIVE_FILE__",g="__NATIVE_URL__",v="__NATIVE_TEXT__";function y(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(b(f={},m,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),b(f,g,{exposeProperties:{urls:function(e,t){return y(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),b(f,v,{exposeProperties:{text:function(e,t){return y(e,t,"")}},matchesTypes:["Text","text/plain"]}),f);function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&C(t.prototype,n),r&&C(t,r),e}();function x(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(w).filter((function(e){return w[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var k=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&S(t.prototype,n),r&&S(t,r),e}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var M,A=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return d(r.sourceNodes.get(e))},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return r.document&&r.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=h(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=x(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),l=r.sourcePreviewNodes.get(a)||s;if(l){var c=r.getCurrentSourcePreviewNodeOptions(),u=p(s,l,n,{anchorX:c.anchorX,anchorY:c.anchorY},{offsetX:c.offsetX,offsetY:c.offsetY});o.setDragImage(l,u.x,u.y)}}try{o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=x(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,s()||r.actions.hover(t,{clientOffset:h(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:h(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&r.currentNativeSource.loadDataTransfer(e.dataTransfer),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:h(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new k(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,n,o;return t=e,(n=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return T({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return T({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new _(w[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&O(t.prototype,n),o&&O(t,o),e}();function D(){return M||((M=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),M}t.default=function(e,t){return new A(e,t)}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";(function(e){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function a(e,t,n){return(a=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,r(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,e)})(e)}var l=/%[sdj%]/g,c=function(){};function u(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],i=t.length;if("function"==typeof o)return o.apply(null,t.slice(1));if("string"==typeof o){var a=String(o).replace(l,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}}));return a}return o}function h(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function p(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}void 0!==e&&e.env;var f=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(s(Error));function m(e,t,n,r){if(t.first){var o=new Promise((function(t,o){p(function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e),n,(function(e){return r(e),e.length?o(new f(e,u(e))):t()}))}));return o.catch((function(e){return e})),o}var i=t.firstFields||[];!0===i&&(i=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,c=[],d=new Promise((function(t,o){var d=function(e){if(c.push.apply(c,e),++l===s)return r(c),c.length?o(new f(c,u(c))):t()};a.length||(r(c),t()),a.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?p(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function g(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];"object"==typeof o&&"object"==typeof e[r]?e[r]=n(n({},e[r]),o):e[r]=o}return e}function y(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!h(t,i||e.type)||r.push(d(o.messages.required,e.fullField))}var b={email:/^(([^<>()\[\]\\.,;:\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,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w={integer:function(e){return w.number(e)&&parseInt(e,10)===e},float:function(e){return w.number(e)&&!w.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!w.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(b.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(b.url)},hex:function(e){return"string"==typeof e&&!!e.match(b.hex)}};var C={required:y,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(d(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)y(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?w[i](t)||r.push(d(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(d(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,h="string"==typeof t,p=Array.isArray(t);if(u?c="number":h?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),h&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(d(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(d(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(d(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(d(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(d(o.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(d(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(d(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function _(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,i)&&!e.required)return n();C.required(e,t,r,a,o,i),h(t,i)||C.type(e,t,r,a,o)}n(a)}var x={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,"string")&&!e.required)return n();C.required(e,t,r,i,o,"string"),h(t,"string")||(C.type(e,t,r,i,o),C.range(e,t,r,i,o),C.pattern(e,t,r,i,o),!0===e.whitespace&&C.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),h(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o),h(t)||C.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();C.required(e,t,r,i,o,"array"),null!=t&&(C.type(e,t,r,i,o),C.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o),void 0!==t&&C.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,"string")&&!e.required)return n();C.required(e,t,r,i,o),h(t,"string")||C.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t,"date")&&!e.required)return n();var a;if(C.required(e,t,r,i,o),!h(t,"date"))a=t instanceof Date?t:new Date(t),C.type(e,a,r,i,o),a&&C.range(e,a.getTime(),r,i,o)}n(i)},url:_,hex:_,email:_,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;C.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(h(t)&&!e.required)return n();C.required(e,t,r,i,o)}n(i)}};function S(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var k=S();function P(e){this.rules=null,this._messages=k,this.define(e)}P.prototype={messages:function(e){return e&&(this._messages=v(S(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=function(){});var i,a,s=e,l=t,c=r;if("function"==typeof l&&(c=l,l={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(),Promise.resolve();if(l.messages){var h=this.messages();h===k&&(h=S()),v(h,l.messages),l.messages=h}else l.messages=this.messages();var p={};(l.keys||Object.keys(this.rules)).forEach((function(t){i=o.rules[t],a=s[t],i.forEach((function(r){var i=r;"function"==typeof i.transform&&(s===e&&(s=n({},s)),a=s[t]=i.transform(a)),(i="function"==typeof i?{validator:i}:n({},i)).validator=o.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=o.getType(i),i.validator&&(p[t]=p[t]||[],p[t].push({rule:i,value:a,source:s,field:t}))}))}));var f={};return m(p,l,(function(e,t){var r,o=e.rule,i=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function a(e,t){return n(n({},t),{},{fullField:o.fullField+"."+e})}function s(r){void 0===r&&(r=[]);var s=r;if(Array.isArray(s)||(s=[s]),!l.suppressWarning&&s.length&&P.warning("async-validator:",s),s.length&&void 0!==o.message&&(s=[].concat(o.message)),s=s.map(g(o)),l.first&&s.length)return f[o.field]=1,t(s);if(i){if(o.required&&!e.value)return void 0!==o.message?s=[].concat(o.message).map(g(o)):l.error&&(s=[l.error(o,d(l.messages.required,o.field))]),t(s);var c={};if(o.defaultField)for(var u in e.value)e.value.hasOwnProperty(u)&&(c[u]=o.defaultField);for(var h in c=n(n({},c),e.rule.fields))if(c.hasOwnProperty(h)){var p=Array.isArray(c[h])?c[h]:[c[h]];c[h]=p.map(a.bind(null,h))}var m=new P(c);m.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),m.validate(e.value,e.rule.options||l,(function(e){var n=[];s&&s.length&&n.push.apply(n,s),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(s)}i=i&&(o.required||!o.required&&e.value),o.field=e.field,o.asyncValidator?r=o.asyncValidator(o,e.value,s,e.source,l):o.validator&&(!0===(r=o.validator(o,e.value,s,e.source,l))?s():!1===r?s(o.message||o.field+" fails"):r instanceof Array?s(r):r instanceof Error&&s(r.message)),r&&r.then&&r.then((function(){return s()}),(function(e){return s(e)}))}),(function(e){!function(e){var t,n,r,o=[],i={};for(t=0;t<e.length;t++)n=e[t],r=void 0,Array.isArray(n)?o=(r=o).concat.apply(r,n):o.push(n);o.length?i=u(o):(o=null,i=null),c(o,i)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!x.hasOwnProperty(e.type))throw new Error(d("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?x.required:x[this.getType(e)]||!1}},P.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");x[e]=t},P.warning=c,P.messages=k,P.validators=x,t.a=P}).call(this,n(102))},function(e,t,n){var r=n(606),o=n(321),i=n(610),a=n(612);e.exports=function(e,t,n){e=a(e);var s=(t=i(t))?o(e):0;return t&&s<t?e+r(t-s,n):e}},function(e,t,n){"use strict";var r=n(1726),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},,,function(e,t,n){n(328),e.exports=n(845)},function(e,t,n){n(645),n(648),n(649),n(650),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(677),n(678),n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(725),n(726),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(264),n(749),n(348),n(750),n(349),n(751),n(752),n(753),n(754),n(755),n(352),n(354),n(355),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),e.exports=n(79)},function(e,t,n){"use strict";var r=n(21),o=n(71),i=n(39),a=n(5),s=n(66),l=n(111).KEY,c=n(27),u=n(166),d=n(144),h=n(119),p=n(37),f=n(330),m=n(245),g=n(647),v=n(190),y=n(19),b=n(31),w=n(45),C=n(72),_=n(88),x=n(118),S=n(122),k=n(333),P=n(73),T=n(189),E=n(41),O=n(120),M=P.f,A=E.f,D=k.f,I=r.Symbol,L=r.JSON,N=L&&L.stringify,j=p("_hidden"),R=p("toPrimitive"),z={}.propertyIsEnumerable,F=u("symbol-registry"),B=u("symbols"),H=u("op-symbols"),V=Object.prototype,Y="function"==typeof I&&!!T.f,W=r.QObject,U=!W||!W.prototype||!W.prototype.findChild,K=i&&c((function(){return 7!=S(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(V,t);r&&delete V[t],A(e,t,n),r&&e!==V&&A(V,t,r)}:A,G=function(e){var t=B[e]=S(I.prototype);return t._k=e,t},q=Y&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},$=function(e,t,n){return e===V&&$(H,t,n),y(e),t=_(t,!0),y(n),o(B,t)?(n.enumerable?(o(e,j)&&e[j][t]&&(e[j][t]=!1),n=S(n,{enumerable:x(0,!1)})):(o(e,j)||A(e,j,x(1,{})),e[j][t]=!0),K(e,t,n)):A(e,t,n)},X=function(e,t){y(e);for(var n,r=g(t=C(t)),o=0,i=r.length;i>o;)$(e,n=r[o++],t[n]);return e},J=function(e){var t=z.call(this,e=_(e,!0));return!(this===V&&o(B,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(B,e)||o(this,j)&&this[j][e])||t)},Z=function(e,t){if(e=C(e),t=_(t,!0),e!==V||!o(B,t)||o(H,t)){var n=M(e,t);return!n||!o(B,t)||o(e,j)&&e[j][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=D(C(e)),r=[],i=0;n.length>i;)o(B,t=n[i++])||t==j||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===V,r=D(n?H:C(e)),i=[],a=0;r.length>a;)!o(B,t=r[a++])||n&&!o(V,t)||i.push(B[t]);return i};Y||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(H,n),o(this,j)&&o(this[j],e)&&(this[j][e]=!1),K(this,e,x(1,n))};return i&&U&&K(V,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",(function(){return this._k})),P.f=Z,E.f=$,n(123).f=k.f=Q,n(168).f=J,T.f=ee,i&&!n(110)&&s(V,"propertyIsEnumerable",J,!0),f.f=function(e){return G(p(e))}),a(a.G+a.W+a.F*!Y,{Symbol:I});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=O(p.store),oe=0;re.length>oe;)m(re[oe++]);a(a.S+a.F*!Y,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=I(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!Y,"Object",{create:function(e,t){return void 0===t?S(e):X(S(e),t)},defineProperty:$,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var ie=c((function(){T.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return T.f(w(e))}}),L&&a(a.S+a.F*(!Y||c((function(){var e=I();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,N.apply(L,r)}}),I.prototype[R]||n(65)(I.prototype,R,I.prototype.valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){e.exports=n(166)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(120),o=n(189),i=n(168);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(5);r(r.S,"Object",{create:n(122)})},function(e,t,n){var r=n(5);r(r.S+r.F*!n(39),"Object",{defineProperty:n(41).f})},function(e,t,n){var r=n(5);r(r.S+r.F*!n(39),"Object",{defineProperties:n(332)})},function(e,t,n){var r=n(72),o=n(73).f;n(90)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(r(e),t)}}))},function(e,t,n){var r=n(45),o=n(74);n(90)("getPrototypeOf",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(45),o=n(120);n(90)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){n(90)("getOwnPropertyNames",(function(){return n(333).f}))},function(e,t,n){var r=n(31),o=n(111).onFreeze;n(90)("freeze",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(31),o=n(111).onFreeze;n(90)("seal",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(31),o=n(111).onFreeze;n(90)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){var r=n(31);n(90)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(31);n(90)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(31);n(90)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},function(e,t,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(334)})},function(e,t,n){var r=n(5);r(r.S,"Object",{is:n(335)})},function(e,t,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(249).set})},function(e,t,n){"use strict";var r=n(145),o={};o[n(37)("toStringTag")]="z",o+""!="[object z]"&&n(66)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(5);r(r.P,"Function",{bind:n(336)})},function(e,t,n){var r=n(41).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(39)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(31),o=n(74),i=n(37)("hasInstance"),a=Function.prototype;i in a||n(41).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(5),o=n(338);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var r=n(5),o=n(339);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){"use strict";var r=n(21),o=n(71),i=n(81),a=n(251),s=n(88),l=n(27),c=n(123).f,u=n(73).f,d=n(41).f,h=n(146).trim,p=r.Number,f=p,m=p.prototype,g="Number"==i(n(122)(m)),v="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,i=(t=v?t.trim():h(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,l=t.slice(2),c=0,u=l.length;c<u;c++)if((a=l.charCodeAt(c))<48||a>o)return NaN;return parseInt(l,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(g?l((function(){m.valueOf.call(n)})):"Number"!=i(n))?a(new f(y(t)),n,p):y(t)};for(var b,w=n(39)?c(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;w.length>C;C++)o(f,b=w[C])&&!o(p,b)&&d(p,b,u(f,b));p.prototype=m,m.constructor=p,n(66)(r,"Number",p)}},function(e,t,n){"use strict";var r=n(5),o=n(82),i=n(340),a=n(252),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=l(r/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=l(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},f=function(e,t,n){return 0===t?n:t%2==1?f(e,t-1,n*e):f(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(27)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,l=i(this,u),c=o(e),m="",g="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*f(2,69,1))-69)<0?l*f(2,-t,1):l/f(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(f(10,r,1),0),r=t-1;r>=23;)h(1<<23),r-=23;h(1<<r),d(1,1),h(2),g=p()}else d(0,n),d(1<<-t,0),g=p()+a.call("0",c);return g=c>0?m+((s=g.length)<=c?"0."+a.call("0",c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):m+g}})},function(e,t,n){"use strict";var r=n(5),o=n(27),i=n(340),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(5);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(5),o=n(21).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(5);r(r.S,"Number",{isInteger:n(341)})},function(e,t,n){var r=n(5);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(5),o=n(341),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(5);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(5);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(5),o=n(339);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(5),o=n(338);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(5),o=n(342),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var r=n(5),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(5),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(5),o=n(253);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(5);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(5),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(5),o=n(254);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(5);r(r.S,"Math",{fround:n(343)})},function(e,t,n){var r=n(5),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,s=arguments.length,l=0;a<s;)l<(n=o(arguments[a++]))?(i=i*(r=l/n)*r+1,l=n):i+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(i)}})},function(e,t,n){var r=n(5),o=Math.imul;r(r.S+r.F*n(27)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(5);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(5);r(r.S,"Math",{log1p:n(342)})},function(e,t,n){var r=n(5);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(5);r(r.S,"Math",{sign:n(253)})},function(e,t,n){var r=n(5),o=n(254),i=Math.exp;r(r.S+r.F*n(27)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(5),o=n(254),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(5);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(5),o=n(121),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(5),o=n(72),i=n(38);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){"use strict";n(146)("trim",(function(e){return function(){return e(this,3)}}))},function(e,t,n){"use strict";var r=n(191)(!0);n(255)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(5),o=n(191)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(5),o=n(38),i=n(257),a="".endsWith;r(r.P+r.F*n(258)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),s=void 0===n?r:Math.min(o(n),r),l=String(e);return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,n){"use strict";var r=n(5),o=n(257);r(r.P+r.F*n(258)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(5);r(r.P,"String",{repeat:n(252)})},function(e,t,n){"use strict";var r=n(5),o=n(38),i=n(257),a="".startsWith;r(r.P+r.F*n(258)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(67)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(67)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(67)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(67)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(67)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(67)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(67)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(67)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(67)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(67)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(67)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(67)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(67)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var r=n(5);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(5),o=n(45),i=n(88);r(r.P+r.F*n(27)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=o(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(5),o=n(724);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(e,t,n){"use strict";var r=n(27),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(66)(r,"toString",(function(){var e=i.call(this);return e==e?o.call(this):"Invalid Date"}))},function(e,t,n){var r=n(37)("toPrimitive"),o=Date.prototype;r in o||n(65)(o,r,n(727))},function(e,t,n){"use strict";var r=n(19),o=n(88);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!=e)}},function(e,t,n){var r=n(5);r(r.S,"Array",{isArray:n(190)})},function(e,t,n){"use strict";var r=n(80),o=n(5),i=n(45),a=n(344),s=n(259),l=n(38),c=n(260),u=n(261);o(o.S+o.F*!n(193)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,d,h=i(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(h);if(g&&(m=r(m,f>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(t=l(h.length));t>v;v++)c(n,v,g?m(h[v],v):h[v]);else for(d=y.call(h),n=new p;!(o=d.next()).done;v++)c(n,v,g?a(d,m,[o.value,v],!0):o.value);return n.length=v,n}})},function(e,t,n){"use strict";var r=n(5),o=n(260);r(r.S+r.F*n(27)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(5),o=n(72),i=[].join;r(r.P+r.F*(n(167)!=Object||!n(83)(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(5),o=n(248),i=n(81),a=n(121),s=n(38),l=[].slice;r(r.P+r.F*n(27)((function(){o&&l.call(o)})),"Array",{slice:function(e,t){var n=s(this.length),r=i(this);if(t=void 0===t?n:t,"Array"==r)return l.call(this,e,t);for(var o=a(e,n),c=a(t,n),u=s(c-o),d=new Array(u),h=0;h<u;h++)d[h]="String"==r?this.charAt(o+h):this[o+h];return d}})},function(e,t,n){"use strict";var r=n(5),o=n(54),i=n(45),a=n(27),s=[].sort,l=[1,2,3];r(r.P+r.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n(83)(s)),"Array",{sort:function(e){return void 0===e?s.call(i(this)):s.call(i(this),o(e))}})},function(e,t,n){"use strict";var r=n(5),o=n(91)(0),i=n(83)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(31),o=n(190),i=n(37)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(5),o=n(91)(1);r(r.P+r.F*!n(83)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(5),o=n(91)(2);r(r.P+r.F*!n(83)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(5),o=n(91)(3);r(r.P+r.F*!n(83)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(5),o=n(91)(4);r(r.P+r.F*!n(83)([].every,!0),"Array",{every:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(5),o=n(345);r(r.P+r.F*!n(83)([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(5),o=n(345);r(r.P+r.F*!n(83)([].reduceRight,!0),"Array",{reduceRight:function(e){return o(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(5),o=n(188)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(83)(i)),"Array",{indexOf:function(e){return a?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(5),o=n(72),i=n(82),a=n(38),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(83)(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=o(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(5);r(r.P,"Array",{copyWithin:n(346)}),n(112)("copyWithin")},function(e,t,n){var r=n(5);r(r.P,"Array",{fill:n(263)}),n(112)("fill")},function(e,t,n){"use strict";var r=n(5),o=n(91)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(112)("find")},function(e,t,n){"use strict";var r=n(5),o=n(91)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(112)(i)},function(e,t,n){n(124)("Array")},function(e,t,n){var r=n(21),o=n(251),i=n(41).f,a=n(123).f,s=n(192),l=n(169),c=r.RegExp,u=c,d=c.prototype,h=/a/g,p=/a/g,f=new c(h)!==h;if(n(39)&&(!f||n(27)((function(){return p[n(37)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(e,t){var n=this instanceof c,r=s(e),i=void 0===t;return!n&&r&&e.constructor===c&&i?e:o(f?new u(r&&!i?e.source:e,t):u((r=e instanceof c)?e.source:e,r&&i?l.call(e):t),n?this:d,c)};for(var m=function(e){e in c||i(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},g=a(u),v=0;g.length>v;)m(g[v++]);d.constructor=c,c.prototype=d,n(66)(r,"RegExp",c)}n(124)("RegExp")},function(e,t,n){"use strict";n(349);var r=n(19),o=n(169),i=n(39),a=/./.toString,s=function(e){n(66)(RegExp.prototype,"toString",e,!0)};n(27)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(e,t,n){"use strict";var r=n(19),o=n(38),i=n(266),a=n(194);n(195)("match",1,(function(e,t,n,s){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;for(var d,h=[],p=0;null!==(d=a(l,c));){var f=String(d[0]);h[p]=f,""===f&&(l.lastIndex=i(c,o(l.lastIndex),u)),p++}return 0===p?null:h}]}))},function(e,t,n){"use strict";var r=n(19),o=n(45),i=n(38),a=n(82),s=n(266),l=n(194),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(195)("replace",2,(function(e,t,n,f){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=f(n,e,this,t);if(o.done)return o.value;var d=r(e),h=String(this),p="function"==typeof t;p||(t=String(t));var g=d.global;if(g){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var b=l(d,h);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(d.lastIndex=s(h,i(d.lastIndex),v))}for(var w,C="",_=0,x=0;x<y.length;x++){b=y[x];for(var S=String(b[0]),k=c(u(a(b.index),h.length),0),P=[],T=1;T<b.length;T++)P.push(void 0===(w=b[T])?w:String(w));var E=b.groups;if(p){var O=[S].concat(P,k,h);void 0!==E&&O.push(E);var M=String(t.apply(void 0,O))}else M=m(S,h,k,P,E,t);k>=_&&(C+=h.slice(_,k)+M,_=k+S.length)}return C+h.slice(_)}];function m(e,t,r,i,a,s){var l=r+e.length,c=i.length,u=p;return void 0!==a&&(a=o(a),u=h),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):n}s=i[u-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";var r=n(19),o=n(335),i=n(194);n(195)("search",1,(function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=i(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(e,t,n){"use strict";var r=n(192),o=n(19),i=n(170),a=n(266),s=n(38),l=n(194),c=n(265),u=n(27),d=Math.min,h=[].push,p="length",f=!u((function(){RegExp(4294967295,"y")}));n(195)("split",2,(function(e,t,n,u){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,u+"g");(i=c.call(m,o))&&!((a=m.lastIndex)>d&&(l.push(o.slice(d,i.index)),i[p]>1&&i.index<o[p]&&h.apply(l,i.slice(1)),s=i[0][p],d=a,l[p]>=f));)m.lastIndex===i.index&&m.lastIndex++;return d===o[p]?!s&&m.test("")||l.push(""):l.push(o.slice(d)),l[p]>f?l.slice(0,f):l}:"0".split(void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):m.call(String(o),n,r)},function(e,t){var r=u(m,e,this,t,m!==n);if(r.done)return r.value;var c=o(e),h=String(this),p=i(c,RegExp),g=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(f?"y":"g"),y=new p(f?c:"^(?:"+c.source+")",v),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===h.length)return null===l(y,h)?[h]:[];for(var w=0,C=0,_=[];C<h.length;){y.lastIndex=f?C:0;var x,S=l(y,f?h:h.slice(C));if(null===S||(x=d(s(y.lastIndex+(f?0:C)),h.length))===w)C=a(h,C,g);else{if(_.push(h.slice(w,C)),_.length===b)return _;for(var k=1;k<=S.length-1;k++)if(_.push(S[k]),_.length===b)return _;C=w=x}}return _.push(h.slice(w)),_}]}))},function(e,t,n){"use strict";var r,o,i,a,s=n(110),l=n(21),c=n(80),u=n(145),d=n(5),h=n(31),p=n(54),f=n(125),m=n(126),g=n(170),v=n(267).set,y=n(268)(),b=n(269),w=n(350),C=n(196),_=n(351),x=l.TypeError,S=l.process,k=S&&S.versions,P=k&&k.v8||"",T=l.Promise,E="process"==u(S),O=function(){},M=o=b.f,A=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(37)("species")]=function(e){e(O,O)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==P.indexOf("6.6")&&-1===C.indexOf("Chrome/66")}catch(e){}}(),D=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},I=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,s=o?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(o||(2==e._h&&j(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),a=!0)),n===t.promise?c(x("Promise-chain cycle")):(i=D(n))?i.call(n,l,c):l(n)):c(r)}catch(e){u&&!a&&u.exit(),c(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}},L=function(e){v.call(l,(function(){var t,n,r,o=e._v,i=N(e);if(i&&(t=w((function(){E?S.emit("unhandledRejection",o,e):(n=l.onunhandledrejection)?n({promise:e,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=E||N(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){v.call(l,(function(){var t;E?S.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),I(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw x("Promise can't be resolved itself");(t=D(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,c(z,r,1),c(R,r,1))}catch(e){R.call(r,e)}})):(n._v=e,n._s=1,I(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};A||(T=function(e){f(this,T,"Promise","_h"),p(e),r.call(this);try{e(c(z,this,1),c(R,this,1))}catch(e){R.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(127)(T.prototype,{then:function(e,t){var n=M(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(z,e,1),this.reject=c(R,e,1)},b.f=M=function(e){return e===T||e===a?new i(e):o(e)}),d(d.G+d.W+d.F*!A,{Promise:T}),n(144)(T,"Promise"),n(124)("Promise"),a=n(79).Promise,d(d.S+d.F*!A,"Promise",{reject:function(e){var t=M(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!A),"Promise",{resolve:function(e){return _(s&&this===a?T:this,e)}}),d(d.S+d.F*!(A&&n(193)((function(e){T.all(e).catch(O)}))),"Promise",{all:function(e){var t=this,n=M(t),r=n.resolve,o=n.reject,i=w((function(){var n=[],i=0,a=1;m(e,!1,(function(e){var s=i++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=M(t),r=n.reject,o=w((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t,n){"use strict";var r=n(356),o=n(128);n(197)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(o(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(5),o=n(198),i=n(270),a=n(19),s=n(121),l=n(38),c=n(31),u=n(21).ArrayBuffer,d=n(170),h=i.ArrayBuffer,p=i.DataView,f=o.ABV&&u.isView,m=h.prototype.slice,g=o.VIEW;r(r.G+r.W+r.F*(u!==h),{ArrayBuffer:h}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return f&&f(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(27)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),i=new(d(this,h))(l(o-r)),c=new p(this),u=new p(i),f=0;r<o;)u.setUint8(f++,c.getUint8(r++));return i}}),n(124)("ArrayBuffer")},function(e,t,n){var r=n(5);r(r.G+r.W+r.F*!n(198).ABV,{DataView:n(270).DataView})},function(e,t,n){n(100)("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(100)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(100)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){n(100)("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(100)("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(100)("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(100)("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(100)("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(100)("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){var r=n(5),o=n(54),i=n(19),a=(n(21).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(27)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var r=o(e),l=i(n);return a?a(r,t,l):s.call(r,t,l)}})},function(e,t,n){var r=n(5),o=n(122),i=n(54),a=n(19),s=n(31),l=n(27),c=n(336),u=(n(21).Reflect||{}).construct,d=l((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),h=!l((function(){u((function(){}))}));r(r.S+r.F*(d||h),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(h&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),f=Function.apply.call(e,p,t);return s(f)?f:p}})},function(e,t,n){var r=n(41),o=n(5),i=n(19),a=n(88);o(o.S+o.F*n(27)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){i(e),t=a(t,!0),i(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(5),o=n(73).f,i=n(19);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(5),o=n(19),i=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(256)(i,"Object",(function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var r=n(73),o=n(74),i=n(71),a=n(5),s=n(31),l=n(19);a(a.S,"Reflect",{get:function e(t,n){var a,c,u=arguments.length<3?t:arguments[2];return l(t)===u?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(c=o(t))?e(c,n,u):void 0}})},function(e,t,n){var r=n(73),o=n(5),i=n(19);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(5),o=n(74),i=n(19);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){var r=n(5);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(5),o=n(19),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(5);r(r.S,"Reflect",{ownKeys:n(358)})},function(e,t,n){var r=n(5),o=n(19),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(41),o=n(73),i=n(74),a=n(71),s=n(5),l=n(118),c=n(19),u=n(31);s(s.S,"Reflect",{set:function e(t,n,s){var d,h,p=arguments.length<4?t:arguments[3],f=o.f(c(t),n);if(!f){if(u(h=i(t)))return e(h,n,s,p);f=l(0)}if(a(f,"value")){if(!1===f.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==f.set&&(f.set.call(p,s),!0)}})},function(e,t,n){var r=n(5),o=n(249);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(5),o=n(188)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(112)("includes")},function(e,t,n){"use strict";var r=n(5),o=n(359),i=n(45),a=n(38),s=n(54),l=n(262);r(r.P,"Array",{flatMap:function(e){var t,n,r=i(this);return s(e),t=a(r.length),n=l(r,0),o(n,r,r,t,0,1,e,arguments[1]),n}}),n(112)("flatMap")},function(e,t,n){"use strict";var r=n(5),o=n(359),i=n(45),a=n(38),s=n(82),l=n(262);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=i(this),n=a(t.length),r=l(t,0);return o(r,t,t,n,0,void 0===e?1:s(e)),r}}),n(112)("flatten")},function(e,t,n){"use strict";var r=n(5),o=n(191)(!0),i=n(27)((function(){return"𠮷"!=="𠮷".at(0)}));r(r.P+r.F*i,"String",{at:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(5),o=n(360),i=n(196),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";var r=n(5),o=n(360),i=n(196),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(146)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){"use strict";n(146)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){"use strict";var r=n(5),o=n(89),i=n(38),a=n(192),s=n(169),l=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(256)(c,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),r(r.P,"String",{matchAll:function(e){if(o(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in l?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=i(e.lastIndex),new c(r,t)}})},function(e,t,n){n(245)("asyncIterator")},function(e,t,n){n(245)("observable")},function(e,t,n){var r=n(5),o=n(358),i=n(72),a=n(73),s=n(260);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),l=a.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,t=c[d++]))&&s(u,t,n);return u}})},function(e,t,n){var r=n(5),o=n(361)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(5),o=n(361)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";var r=n(5),o=n(45),i=n(54),a=n(41);n(39)&&r(r.P+n(199),"Object",{__defineGetter__:function(e,t){a.f(o(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(5),o=n(45),i=n(54),a=n(41);n(39)&&r(r.P+n(199),"Object",{__defineSetter__:function(e,t){a.f(o(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(5),o=n(45),i=n(88),a=n(74),s=n(73).f;n(39)&&r(r.P+n(199),"Object",{__lookupGetter__:function(e){var t,n=o(this),r=i(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},function(e,t,n){"use strict";var r=n(5),o=n(45),i=n(88),a=n(74),s=n(73).f;n(39)&&r(r.P+n(199),"Object",{__lookupSetter__:function(e){var t,n=o(this),r=i(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},function(e,t,n){var r=n(5);r(r.P+r.R,"Map",{toJSON:n(362)("Map")})},function(e,t,n){var r=n(5);r(r.P+r.R,"Set",{toJSON:n(362)("Set")})},function(e,t,n){n(200)("Map")},function(e,t,n){n(200)("Set")},function(e,t,n){n(200)("WeakMap")},function(e,t,n){n(200)("WeakSet")},function(e,t,n){n(201)("Map")},function(e,t,n){n(201)("Set")},function(e,t,n){n(201)("WeakMap")},function(e,t,n){n(201)("WeakSet")},function(e,t,n){var r=n(5);r(r.G,{global:n(21)})},function(e,t,n){var r=n(5);r(r.S,"System",{global:n(21)})},function(e,t,n){var r=n(5),o=n(81);r(r.S,"Error",{isError:function(e){return"Error"===o(e)}})},function(e,t,n){var r=n(5);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(5);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(5),o=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*o}})},function(e,t,n){var r=n(5),o=n(364),i=n(343);r(r.S,"Math",{fscale:function(e,t,n,r,a){return i(o(e,t,n,r,a))}})},function(e,t,n){var r=n(5);r(r.S,"Math",{iaddh:function(e,t,n,r){var o=e>>>0,i=n>>>0;return(t>>>0)+(r>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},function(e,t,n){var r=n(5);r(r.S,"Math",{isubh:function(e,t,n,r){var o=e>>>0,i=n>>>0;return(t>>>0)-(r>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},function(e,t,n){var r=n(5);r(r.S,"Math",{imulh:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r,a=n>>16,s=r>>16,l=(a*i>>>0)+(o*i>>>16);return a*s+(l>>16)+((o*s>>>0)+(65535&l)>>16)}})},function(e,t,n){var r=n(5);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(5),o=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*o}})},function(e,t,n){var r=n(5);r(r.S,"Math",{scale:n(364)})},function(e,t,n){var r=n(5);r(r.S,"Math",{umulh:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r,a=n>>>16,s=r>>>16,l=(a*i>>>0)+(o*i>>>16);return a*s+(l>>>16)+((o*s>>>0)+(65535&l)>>>16)}})},function(e,t,n){var r=n(5);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var r=n(5),o=n(79),i=n(21),a=n(170),s=n(351);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var r=n(5),o=n(269),i=n(350);r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(101),o=n(19),i=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,o(n),i(r))}})},function(e,t,n){var r=n(101),o=n(19),i=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var l=s.get(t);return l.delete(n),!!l.size||s.delete(t)}})},function(e,t,n){var r=n(101),o=n(19),i=n(74),a=r.has,s=r.get,l=r.key,c=function(e,t,n){if(a(e,t,n))return s(e,t,n);var r=i(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,o(t),arguments.length<3?void 0:l(arguments[2]))}})},function(e,t,n){var r=n(354),o=n(363),i=n(101),a=n(19),s=n(74),l=i.keys,c=i.key,u=function(e,t){var n=l(e,t),i=s(e);if(null===i)return n;var a=u(i,t);return a.length?n.length?o(new r(n.concat(a))):a:n};i.exp({getMetadataKeys:function(e){return u(a(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var r=n(101),o=n(19),i=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(101),o=n(19),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return i(o(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,n){var r=n(101),o=n(19),i=n(74),a=r.has,s=r.key,l=function(e,t,n){if(a(e,t,n))return!0;var r=i(t);return null!==r&&l(e,r,n)};r.exp({hasMetadata:function(e,t){return l(e,o(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(101),o=n(19),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(101),o=n(19),i=n(54),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?o:i)(n),a(r))}}})},function(e,t,n){var r=n(5),o=n(268)(),i=n(21).process,a="process"==n(81)(i);r(r.G,{asap:function(e){var t=a&&i.domain;o(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(5),o=n(21),i=n(79),a=n(268)(),s=n(37)("observable"),l=n(54),c=n(19),u=n(125),d=n(127),h=n(65),p=n(126),f=p.RETURN,m=function(e){return null==e?void 0:l(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},y=function(e){v(e)||(e._o=void 0,g(e))},b=function(e,t){c(e),this._c=void 0,this._o=e,e=new w(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:l(n),this._c=n)}catch(t){return void e.error(t)}v(this)&&g(this)};b.prototype=d({},{unsubscribe:function(){y(this)}});var w=function(e){this._s=e};w.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var r=m(n.next);if(r)return r.call(n,e)}catch(e){try{y(t)}finally{throw e}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var r=m(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var r=m(n.complete);e=r?r.call(n,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var C=function(e){u(this,C,"Observable","_f")._f=l(e)};d(C.prototype,{subscribe:function(e){return new b(e,this._f)},forEach:function(e){var t=this;return new(i.Promise||o.Promise)((function(n,r){l(e);var o=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n})}))}}),d(C,{from:function(e){var t="function"==typeof this?this:C,n=m(c(e)[s]);if(n){var r=c(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}return new t((function(t){var n=!1;return a((function(){if(!n){try{if(p(e,!1,(function(e){if(t.next(e),n)return f}))===f)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:C)((function(e){var t=!1;return a((function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}})),function(){t=!0}}))}}),h(C.prototype,s,(function(){return this})),r(r.G,{Observable:C}),n(124)("Observable")},function(e,t,n){var r=n(21),o=n(5),i=n(196),a=[].slice,s=/MSIE .\./.test(i),l=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(e,t,n){var r=n(5),o=n(267);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){for(var r=n(264),o=n(120),i=n(66),a=n(21),s=n(65),l=n(147),c=n(37),u=c("iterator"),d=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=o(p),m=0;m<f.length;m++){var g,v=f[m],y=p[v],b=a[v],w=b&&b.prototype;if(w&&(w[u]||s(w,u,h),w[d]||s(w,d,v),l[v]=h,y))for(g in r)w[g]||i(w,g,r[g],!0)}},function(e,t,n){(function(t){!function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",l="object"==typeof e,c=t.regeneratorRuntime;if(c)l&&(e.exports=c);else{(c=t.regeneratorRuntime=l?e.exports:{}).wrap=m;var u={},d={};d[i]=function(){return this};var h=Object.getPrototypeOf,p=h&&h(h(P([])));p&&p!==n&&r.call(p,i)&&(d=p);var f=b.prototype=v.prototype=Object.create(d);y.prototype=f.constructor=b,b.constructor=y,b[s]=y.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(f),e},c.awrap=function(e){return{__await:e}},w(C.prototype),C.prototype[a]=function(){return this},c.AsyncIterator=C,c.async=function(e,t,n,r){var o=new C(m(e,t,n,r));return c.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(f),f[s]="Generator",f[i]=function(){return this},f.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=P,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}}}function m(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=g(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function g(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function v(){}function y(){}function b(){}function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function C(e){function n(t,o,i,a){var s=g(e[t],e,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){n("next",e,i,a)}),(function(e){n("throw",e,i,a)})):Promise.resolve(c).then((function(e){l.value=e,i(l)}),a)}a(s.arg)}var o;"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=function(e,t){function r(){return new Promise((function(r,o){n(e,t,r,o)}))}return o=o?o.then(r,r):r()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=g(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,n(64))},function(e,t,n){n(843),e.exports=n(79).RegExp.escape},function(e,t,n){var r=n(5),o=n(844)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return o(e)}})},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(328);const r=n(0),o=n(15),i=n(850),a=n(851),s=n(141),l=n(187),c=n(856),u=n(857),d=n(1432);n(1795),console.log(c.version);const h=s.createStore(u.default,a.composeWithDevTools(s.applyMiddleware(i.default)));o.render(r.createElement(l.Provider,{store:h},r.createElement(d.default,null)),document.getElementById("app"))},function(e,t,n){"use strict";
|
|
|
/** @license React v16.14.0
|
|
|
* react.production.min.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/var r=n(271),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function C(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=w.prototype;var x=_.prototype=new C;x.constructor=_,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},k=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:S.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var O=/\/+/g,M=[];function A(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function D(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+L(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+L(s=t[c],c);l+=e(s,u,r,o)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+L(s,c++),r,o);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,r,n,(function(e){return e})):null!=e&&(E(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),r.push(e))}function R(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(O,"$&/")+"/"),I(e,j,t=A(t,i,r,o)),D(t)}var z={current:null};function F(){var e=z.current;if(null===e)throw Error(v(321));return e}var B={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;I(e,N,t=A(null,null,t,n)),D(t)},count:function(e){return I(e,(function(){return null}),null)},toArray:function(e){var t=[];return R(e,t,null,(function(e){return e})),t},only:function(e){if(!E(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=c,t.PureComponent=_,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)k.call(t,u)&&!P.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";
|
|
|
/** @license React v16.14.0
|
|
|
* react-dom.production.min.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/var r=n(0),o=n(271),i=n(848);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,d=null,h={onError:function(e){l=!0,c=e}};function p(e,t,n,r,o,i,a,u,d){l=!1,c=null,s.apply(h,arguments)}var f=null,m=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,o,i,s,h,f){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var m=c;l=!1,c=null,u||(u=!0,d=m)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!_[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in _[n]=t,n=t.eventTypes){var o=void 0,i=n[r],s=t,l=r;if(x.hasOwnProperty(l))throw Error(a(99,l));x[l]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&C(c[o],s,l);o=!0}else i.registrationName?(C(i.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function C(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,k[e]=t.eventTypes[n].dependencies}var _=[],x={},S={},k={};function P(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),E=null,O=null,M=null;function A(e){if(e=m(e)){if("function"!=typeof E)throw Error(a(280));var t=e.stateNode;t&&(t=f(t),E(e.stateNode,e.type,t))}}function D(e){O?M?M.push(e):M=[e]:O=e}function I(){if(O){var e=O,t=M;if(M=O=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function L(e,t){return e(t)}function N(e,t,n,r,o){return e(t,n,r,o)}function j(){}var R=L,z=!1,F=!1;function B(){null===O&&null===M||(j(),I())}function H(e,t,n){if(F)return e(t,n);F=!0;try{return R(e,t,n)}finally{F=!1,B()}}var V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Y=Object.prototype.hasOwnProperty,W={},U={};function K(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var q=/[\-:]([a-z])/g;function $(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(q,$);G[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(q,$);G[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(q,$);G[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(e,t,n,r){var o=G.hasOwnProperty(t)?G[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Y.call(U,e)||!Y.call(W,e)&&(V.test(e)?U[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,Q="function"==typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,ne=Q?Symbol.for("react.fragment"):60107,re=Q?Symbol.for("react.strict_mode"):60108,oe=Q?Symbol.for("react.profiler"):60114,ie=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,le=Q?Symbol.for("react.forward_ref"):60112,ce=Q?Symbol.for("react.suspense"):60113,ue=Q?Symbol.for("react.suspense_list"):60120,de=Q?Symbol.for("react.memo"):60115,he=Q?Symbol.for("react.lazy"):60116,pe=Q?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return ge(e.type);case pe:return ge(e.render);case he:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ge(e.type);n=null,r&&(n=ge(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Z,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ce(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&J(e,"checked",t,!1)}function ke(e,t){Se(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Pe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ee(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Oe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Me(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function De(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Le="http://www.w3.org/1999/xhtml",Ne="http://www.w3.org/2000/svg";function je(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Re(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?je(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ze,Fe=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ne||"innerHTML"in e)e.innerHTML=t;else{for((ze=ze||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function He(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ve={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},Ye={},We={};function Ue(e){if(Ye[e])return Ye[e];if(!Ve[e])return e;var t,n=Ve[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return Ye[e]=n[t];return e}T&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete Ve.animationend.animation,delete Ve.animationiteration.animation,delete Ve.animationstart.animation),"TransitionEvent"in window||delete Ve.transitionend.transition);var Ke=Ue("animationend"),Ge=Ue("animationiteration"),qe=Ue("animationstart"),$e=Ue("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Qe(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return tt(o),e;if(i===r)return tt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e){if(ot(e,at),it)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function ht(e,t,n,r){if(ut.length){var o=ut.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<_.length;l++){var c=_[l];c&&(c=c.extractEvents(r,t,i,o,a))&&(s=rt(s,c))}st(s)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var mt,gt,vt,yt=!1,bt=[],wt=null,Ct=null,_t=null,xt=new Map,St=new Map,kt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Et(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Ot(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Et(t,n,r,o,i),null!==t&&(null!==(t=En(t))&>(t)),e):(e.eventSystemFlags|=r,e)}function At(e){var t=Tn(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=En(t);return null!==n&>(n),e.blockedOn=t,!1}return!0}function It(e,t,n){Dt(e)&&n.delete(t)}function Lt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=En(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==wt&&Dt(wt)&&(wt=null),null!==Ct&&Dt(Ct)&&(Ct=null),null!==_t&&Dt(_t)&&(_t=null),xt.forEach(It),St.forEach(It)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Lt)))}function jt(e){function t(t){return Nt(t,e)}if(0<bt.length){Nt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Nt(wt,e),null!==Ct&&Nt(Ct,e),null!==_t&&Nt(_t,e),xt.forEach(t),St.forEach(t),n=0;n<kt.length;n++)(r=kt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<kt.length&&null===(n=kt[0]).blockedOn;)At(n),null===n.blockedOn&&kt.shift()}var Rt={},zt=new Map,Ft=new Map,Bt=["abort","abort",Ke,"animationEnd",Ge,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function Ht(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),zt.set(r,i),Rt[o]=i}}Ht("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ht("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ht(Bt,2);for(var Vt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Yt=0;Yt<Vt.length;Yt++)Ft.set(Vt[Yt],0);var Wt=i.unstable_UserBlockingPriority,Ut=i.unstable_runWithPriority,Kt=!0;function Gt(e,t){qt(t,e,!1)}function qt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=$t.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Jt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function $t(e,t,n,r){z||j();var o=Jt,i=z;z=!0;try{N(o,e,t,n,r)}finally{(z=i)||B()}}function Xt(e,t,n,r){Ut(Wt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){if(Kt)if(0<bt.length&&-1<Pt.indexOf(e))e=Et(null,e,t,n,r),bt.push(e);else{var o=Zt(e,t,n,r);if(null===o)Ot(e,r);else if(-1<Pt.indexOf(e))e=Et(o,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return wt=Mt(wt,e,t,n,r,o),!0;case"dragenter":return Ct=Mt(Ct,e,t,n,r,o),!0;case"mouseover":return _t=Mt(_t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xt.set(i,Mt(xt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,Mt(St.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Ot(e,r),e=ht(e,r,null,t);try{H(pt,e)}finally{dt(e)}}}}function Zt(e,t,n,r){if(null!==(n=Tn(n=lt(r)))){var o=Qe(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=et(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=ht(e,r,n,t);try{H(pt,e)}finally{dt(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Qt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var rn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Le;function ln(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++)ft(t[r],e,n)}function cn(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function pn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function Cn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function _n(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var xn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+xn,kn="__reactEventHandlers$"+xn,Pn="__reactContainere$"+xn;function Tn(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pn]||n[Sn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=_n(e);null!==e;){if(n=e[Sn])return n;e=_n(e)}return t}n=(e=n).parentNode}return null}function En(e){return!(e=e[Sn]||e[Pn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function On(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Mn(e){return e[kn]||null}function An(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Dn(e,t){var n=e.stateNode;if(!n)return null;var r=f(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function In(e,t,n){(t=Dn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Ln(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=An(t);for(t=n.length;0<t--;)In(n[t],"captured",e);for(t=0;t<n.length;t++)In(n[t],"bubbled",e)}}function Nn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Dn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function jn(e){e&&e.dispatchConfig.registrationName&&Nn(e._targetInst,null,e)}function Rn(e){ot(e,Ln)}var zn=null,Fn=null,Bn=null;function Hn(){if(Bn)return Bn;var e,t,n=Fn,r=n.length,o="value"in zn?zn.value:zn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Bn=o.slice(e,1<t?1-t:void 0)}function Vn(){return!0}function Yn(){return!1}function Wn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:Yn,this.isPropagationStopped=Yn,this}function Un(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Un,e.release=Kn}o(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:Yn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Yn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Wn);var qn=Wn.extend({data:null}),$n=Wn.extend({data:null}),Xn=[9,13,27,32],Jn=T&&"CompositionEvent"in window,Zn=null;T&&"documentMode"in document&&(Zn=document.documentMode);var Qn=T&&"TextEvent"in window&&!Zn,er=T&&(!Jn||Zn&&8<Zn&&11>=Zn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function or(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var o;if(Jn)e:{switch(e){case"compositionstart":var i=nr.compositionStart;break e;case"compositionend":i=nr.compositionEnd;break e;case"compositionupdate":i=nr.compositionUpdate;break e}i=void 0}else ar?or(e,n)&&(i=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=nr.compositionStart);return i?(er&&"ko"!==n.locale&&(ar||i!==nr.compositionStart?i===nr.compositionEnd&&ar&&(o=Hn()):(Fn="value"in(zn=r)?zn.value:zn.textContent,ar=!0)),i=qn.getPooled(i,t,n,r),o?i.data=o:null!==(o=ir(n))&&(i.data=o),Rn(i),o=i):o=null,(e=Qn?function(e,t){switch(e){case"compositionend":return ir(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Jn&&or(e,t)?(e=Hn(),Bn=Fn=zn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=$n.getPooled(nr.beforeInput,t,n,r)).data=e,Rn(t)):t=null,null===o?t:null===t?o:[o,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var ur={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function dr(e,t,n){return(e=Wn.getPooled(ur.change,e,t,n)).type="change",D(n),Rn(e),e}var hr=null,pr=null;function fr(e){st(e)}function mr(e){if(Ce(On(e)))return e}function gr(e,t){if("change"===e)return t}var vr=!1;function yr(){hr&&(hr.detachEvent("onpropertychange",br),pr=hr=null)}function br(e){if("value"===e.propertyName&&mr(pr))if(e=dr(pr,e,lt(e)),z)st(e);else{z=!0;try{L(fr,e)}finally{z=!1,B()}}}function wr(e,t,n){"focus"===e?(yr(),pr=n,(hr=t).attachEvent("onpropertychange",br)):"blur"===e&&yr()}function Cr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function _r(e,t){if("click"===e)return mr(t)}function xr(e,t){if("input"===e||"change"===e)return mr(t)}T&&(vr=ct("input")&&(!document.documentMode||9<document.documentMode));var Sr={eventTypes:ur,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var o=t?On(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=gr;else if(cr(o))if(vr)a=xr;else{a=Cr;var s=wr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=_r);if(a&&(a=a(e,t)))return dr(a,n,r);s&&s(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Te(o,"number",o.value)}},kr=Wn.extend({view:null,detail:null}),Pr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pr[e])&&!!t[e]}function Er(){return Tr}var Or=0,Mr=0,Ar=!1,Dr=!1,Ir=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Er,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Or;return Or=e.screenX,Ar?"mousemove"===e.type?e.screenX-t:0:(Ar=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Mr;return Mr=e.screenY,Dr?"mousemove"===e.type?e.screenY-t:0:(Dr=!0,0)}}),Lr=Ir.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Nr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},jr={eventTypes:Nr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Ir,l=Nr.mouseLeave,c=Nr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Lr,l=Nr.pointerLeave,c=Nr.pointerEnter,u="pointer");if(e=null==a?i:On(a),i=null==t?i:On(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=i,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=An(e))a++;for(e=0,t=c;t;t=An(t))e++;for(;0<a-e;)s=An(s),a--;for(;0<e-a;)c=An(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=An(s),c=An(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=An(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=An(u);for(u=0;u<s.length;u++)Nn(s[u],"bubbled",l);for(u=r.length;0<u--;)Nn(r[u],"captured",n);return 0==(64&o)?[l]:[l,n]}};var Rr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},zr=Object.prototype.hasOwnProperty;function Fr(e,t){if(Rr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!zr.call(t,n[r])||!Rr(e[n[r]],t[n[r]]))return!1;return!0}var Br=T&&"documentMode"in document&&11>=document.documentMode,Hr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,Yr=null,Wr=null,Ur=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Ur||null==Vr||Vr!==un(n)?null:("selectionStart"in(n=Vr)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Fr(Wr,n)?null:(Wr=n,(e=Wn.getPooled(Hr.select,Yr,e,t)).type="select",e.target=Vr,Rn(e),e))}var Gr={eventTypes:Hr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ze(o),i=k.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?On(t):window,e){case"focus":(cr(o)||"true"===o.contentEditable)&&(Vr=o,Yr=t,Wr=null);break;case"blur":Wr=Yr=Vr=null;break;case"mousedown":Ur=!0;break;case"contextmenu":case"mouseup":case"dragend":return Ur=!1,Kr(n,r);case"selectionchange":if(Br)break;case"keydown":case"keyup":return Kr(n,r)}return null}},qr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),$r=Wn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xr=kr.extend({relatedTarget:null});function Jr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eo=kr.extend({key:function(e){if(e.key){var t=Zr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Qr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Er,charCode:function(e){return"keypress"===e.type?Jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),to=Ir.extend({dataTransfer:null}),no=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Er}),ro=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=Ir.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),io={eventTypes:Rt,extractEvents:function(e,t,n,r){var o=zt.get(e);if(!o)return null;switch(e){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":e=eo;break;case"blur":case"focus":e=Xr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Ir;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=to;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=no;break;case Ke:case Ge:case qe:e=qr;break;case $e:e=ro;break;case"scroll":e=kr;break;case"wheel":e=oo;break;case"copy":case"cut":case"paste":e=$r;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Lr;break;default:e=Wn}return Rn(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),f=Mn,m=En,g=On,P({SimpleEventPlugin:io,EnterLeaveEventPlugin:jr,ChangeEventPlugin:Sr,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var ao=[],so=-1;function lo(e){0>so||(e.current=ao[so],ao[so]=null,so--)}function co(e,t){so++,ao[so]=e.current,e.current=t}var uo={},ho={current:uo},po={current:!1},fo=uo;function mo(e,t){var n=e.type.contextTypes;if(!n)return uo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function go(e){return null!=(e=e.childContextTypes)}function vo(){lo(po),lo(ho)}function yo(e,t,n){if(ho.current!==uo)throw Error(a(168));co(ho,t),co(po,n)}function bo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ge(t)||"Unknown",i));return o({},n,{},r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uo,fo=ho.current,co(ho,e),co(po,po.current),!0}function Co(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,lo(po),lo(ho),co(ho,e)):lo(po),co(po,n)}var _o=i.unstable_runWithPriority,xo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,ko=i.unstable_requestPaint,Po=i.unstable_now,To=i.unstable_getCurrentPriorityLevel,Eo=i.unstable_ImmediatePriority,Oo=i.unstable_UserBlockingPriority,Mo=i.unstable_NormalPriority,Ao=i.unstable_LowPriority,Do=i.unstable_IdlePriority,Io={},Lo=i.unstable_shouldYield,No=void 0!==ko?ko:function(){},jo=null,Ro=null,zo=!1,Fo=Po(),Bo=1e4>Fo?Po:function(){return Po()-Fo};function Ho(){switch(To()){case Eo:return 99;case Oo:return 98;case Mo:return 97;case Ao:return 96;case Do:return 95;default:throw Error(a(332))}}function Vo(e){switch(e){case 99:return Eo;case 98:return Oo;case 97:return Mo;case 96:return Ao;case 95:return Do;default:throw Error(a(332))}}function Yo(e,t){return e=Vo(e),_o(e,t)}function Wo(e,t,n){return e=Vo(e),xo(e,t,n)}function Uo(e){return null===jo?(jo=[e],Ro=xo(Eo,Go)):jo.push(e),Io}function Ko(){if(null!==Ro){var e=Ro;Ro=null,So(e)}Go()}function Go(){if(!zo&&null!==jo){zo=!0;var e=0;try{var t=jo;Yo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),jo=null}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),xo(Eo,Ko),t}finally{zo=!1}}}function qo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function $o(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Xo={current:null},Jo=null,Zo=null,Qo=null;function ei(){Qo=Zo=Jo=null}function ti(e){var t=Xo.current;lo(Xo),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ri(e,t){Jo=e,Qo=Zo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ma=!0),e.firstContext=null)}function oi(e,t){if(Qo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Qo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zo){if(null===Jo)throw Error(a(308));Zo=t,Jo.dependencies={expirationTime:0,firstContext:t,responders:null}}else Zo=Zo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function li(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ci(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ui(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function di(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var c=i.baseState,u=0,d=null,h=null,p=null;if(null!==l)for(var f=l;;){if((s=f.expirationTime)<r){var m={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===p?(h=p=m,d=c):p=p.next=m,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),il(s,f.suspenseConfig);e:{var g=e,v=f;switch(s=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){c=g.call(m,c,s);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,c,s):g))break e;c=o({},c,s);break e;case 2:ii=!0}}null!==f.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[f]:s.push(f))}if(null===(f=f.next)||f===l){if(null===(s=i.shared.pending))break;f=a.next=s.next,s.next=l,i.baseQueue=a=s,i.shared.pending=null}}null===p?d=c:p.next=h,i.baseState=d,i.baseQueue=p,al(u),e.expirationTime=u,e.memoizedState=c}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var pi=X.ReactCurrentBatchConfig,fi=(new r.Component).refs;function mi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var gi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),o=pi.suspense;(o=li(r=Gs(r,e,o),o)).payload=t,null!=n&&(o.callback=n),ci(e,o),qs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),o=pi.suspense;(o=li(r=Gs(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),ci(e,o),qs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ks(),r=pi.suspense;(r=li(n=Gs(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ci(e,r),qs(e,n)}};function vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Fr(n,r)||!Fr(o,i))}function yi(e,t,n){var r=!1,o=uo,i=t.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=go(t)?fo:ho.current,i=(r=null!=(r=t.contextTypes))?mo(e,o):uo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=gi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gi.enqueueReplaceState(t,t.state,null)}function wi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=fi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=go(t)?fo:ho.current,o.context=mo(e,i)),di(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(mi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&gi.enqueueReplaceState(o,o.state,null),di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ci=Array.isArray;function _i(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===fi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function xi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Si(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Pl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ol(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_i(e,t,n),r.return=e,r):((r=Tl(n.type,n.key,n.props,null,e.mode,r)).ref=_i(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ml(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=El(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ol(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tl(t.type,t.key,t.props,null,e.mode,n)).ref=_i(e,null,t),n.return=e,n;case te:return(t=Ml(t,e.mode,n)).return=e,t}if(Ci(t)||me(t))return(t=El(t,e.mode,n,null)).return=e,t;xi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case te:return n.key===o?u(e,t,n,r):null}if(Ci(n)||me(n))return null!==o?null:d(e,t,n,r,null);xi(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ci(r)||me(r))return d(t,e=e.get(n)||null,r,o,null);xi(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=h(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(g=f(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=me(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(o,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=f(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(i.type===ne){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=_i(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=El(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Tl(i.type,i.key,i.props,null,e.mode,l)).ref=_i(e,r,i),l.return=e,e=l)}return s(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ml(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ol(i,e.mode,l)).return=e,e=r),s(e);if(Ci(i))return m(e,r,i,l);if(me(i))return g(e,r,i,l);if(u&&xi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var ki=Si(!0),Pi=Si(!1),Ti={},Ei={current:Ti},Oi={current:Ti},Mi={current:Ti};function Ai(e){if(e===Ti)throw Error(a(174));return e}function Di(e,t){switch(co(Mi,t),co(Oi,e),co(Ei,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,"");break;default:t=Re(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ei),co(Ei,t)}function Ii(){lo(Ei),lo(Oi),lo(Mi)}function Li(e){Ai(Mi.current);var t=Ai(Ei.current),n=Re(t,e.type);t!==n&&(co(Oi,e),co(Ei,n))}function Ni(e){Oi.current===e&&(lo(Ei),lo(Oi))}var ji={current:0};function Ri(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zi(e,t){return{responder:e,props:t}}var Fi=X.ReactCurrentDispatcher,Bi=X.ReactCurrentBatchConfig,Hi=0,Vi=null,Yi=null,Wi=null,Ui=!1;function Ki(){throw Error(a(321))}function Gi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rr(e[n],t[n]))return!1;return!0}function qi(e,t,n,r,o,i){if(Hi=i,Vi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fi.current=null===e||null===e.memoizedState?va:ya,e=n(r,o),t.expirationTime===Hi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Wi=Yi=null,t.updateQueue=null,Fi.current=ba,e=n(r,o)}while(t.expirationTime===Hi)}if(Fi.current=ga,t=null!==Yi&&null!==Yi.next,Hi=0,Wi=Yi=Vi=null,Ui=!1,t)throw Error(a(300));return e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wi?Vi.memoizedState=Wi=e:Wi=Wi.next=e,Wi}function Xi(){if(null===Yi){var e=Vi.alternate;e=null!==e?e.memoizedState:null}else e=Yi.next;var t=null===Wi?Vi.memoizedState:Wi.next;if(null!==t)Wi=t,Yi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Yi=e).memoizedState,baseState:Yi.baseState,baseQueue:Yi.baseQueue,queue:Yi.queue,next:null},null===Wi?Vi.memoizedState=Wi=e:Wi=Wi.next=e}return Wi}function Ji(e,t){return"function"==typeof t?t(e):t}function Zi(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Yi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.expirationTime;if(u<Hi){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,u>Vi.expirationTime&&(Vi.expirationTime=u,al(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),il(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,Rr(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Qi(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Rr(i,t.memoizedState)||(Ma=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ea(e){var t=$i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e}).dispatch=ma.bind(null,Vi,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Vi.updateQueue)?(t={lastEffect:null},Vi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Xi().memoizedState}function ra(e,t,n,r){var o=$i();Vi.effectTag|=e,o.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function oa(e,t,n,r){var o=Xi();r=void 0===r?null:r;var i=void 0;if(null!==Yi){var a=Yi.memoizedState;if(i=a.destroy,null!==r&&Gi(r,a.deps))return void ta(t,n,i,r)}Vi.effectTag|=e,o.memoizedState=ta(1|t,n,i,r)}function ia(e,t){return ra(516,4,e,t)}function aa(e,t){return oa(516,4,e,t)}function sa(e,t){return oa(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ca(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,la.bind(null,t,e),n)}function ua(){}function da(e,t){return $i().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fa(e,t,n){var r=Ho();Yo(98>r?98:r,(function(){e(!0)})),Yo(97<r?97:r,(function(){var r=Bi.suspense;Bi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Bi.suspense=r}}))}function ma(e,t,n){var r=Ks(),o=pi.suspense;o={expirationTime:r=Gs(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Vi||null!==i&&i===Vi)Ui=!0,o.expirationTime=Hi,Vi.expirationTime=Hi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.eagerReducer=i,o.eagerState=s,Rr(s,a))return}catch(e){}qs(e,r)}}var ga={readContext:oi,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useResponder:Ki,useDeferredValue:Ki,useTransition:Ki},va={readContext:oi,useCallback:da,useContext:oi,useEffect:ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=$i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$i();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,Vi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},$i().memoizedState=e},useState:ea,useDebugValue:ua,useResponder:zi,useDeferredValue:function(e,t){var n=ea(e),r=n[0],o=n[1];return ia((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[da(fa.bind(null,t,e),[t,e]),n]}},ya={readContext:oi,useCallback:ha,useContext:oi,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:pa,useReducer:Zi,useRef:na,useState:function(){return Zi(Ji)},useDebugValue:ua,useResponder:zi,useDeferredValue:function(e,t){var n=Zi(Ji),r=n[0],o=n[1];return aa((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zi(Ji),n=t[0];return t=t[1],[ha(fa.bind(null,t,e),[t,e]),n]}},ba={readContext:oi,useCallback:ha,useContext:oi,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:pa,useReducer:Qi,useRef:na,useState:function(){return Qi(Ji)},useDebugValue:ua,useResponder:zi,useDeferredValue:function(e,t){var n=Qi(Ji),r=n[0],o=n[1];return aa((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{o(e)}finally{Bi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Qi(Ji),n=t[0];return t=t[1],[ha(fa.bind(null,t,e),[t,e]),n]}},wa=null,Ca=null,_a=!1;function xa(e,t){var n=Sl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ka(e){if(_a){var t=Ca;if(t){var n=t;if(!Sa(e,t)){if(!(t=Cn(n.nextSibling))||!Sa(e,t))return e.effectTag=-1025&e.effectTag|2,_a=!1,void(wa=e);xa(wa,n)}wa=e,Ca=Cn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,_a=!1,wa=e}}function Pa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Ta(e){if(e!==wa)return!1;if(!_a)return Pa(e),_a=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=Ca;t;)xa(e,t),t=Cn(t.nextSibling);if(Pa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ca=Cn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ca=null}}else Ca=wa?Cn(e.stateNode.nextSibling):null;return!0}function Ea(){Ca=wa=null,_a=!1}var Oa=X.ReactCurrentOwner,Ma=!1;function Aa(e,t,n,r){t.child=null===e?Pi(t,null,n,r):ki(t,e.child,n,r)}function Da(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=qi(e,t,n,r,i,o),null===e||Ma?(t.effectTag|=1,Aa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),qa(e,t,o))}function Ia(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||kl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,La(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(o,r)&&e.ref===t.ref)?qa(e,t,i):(t.effectTag|=1,(e=Pl(a,r)).ref=t.ref,e.return=t,t.child=e)}function La(e,t,n,r,o,i){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Ma=!1,o<i)?(t.expirationTime=e.expirationTime,qa(e,t,i)):ja(e,t,n,r,i)}function Na(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function ja(e,t,n,r,o){var i=go(n)?fo:ho.current;return i=mo(t,i),ri(t,o),n=qi(e,t,n,r,i,o),null===e||Ma?(t.effectTag|=1,Aa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),qa(e,t,o))}function Ra(e,t,n,r,o){if(go(n)){var i=!0;wo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yi(t,n,r),wi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=oi(c):c=mo(t,c=go(n)?fo:ho.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&bi(t,a,r,c),ii=!1;var h=t.memoizedState;a.state=h,di(t,r,a,o),l=t.memoizedState,s!==r||h!==l||po.current||ii?("function"==typeof u&&(mi(t,n,u,r),l=t.memoizedState),(s=ii||vi(t,n,s,r,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,si(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:$o(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=oi(c):c=mo(t,c=go(n)?fo:ho.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&bi(t,a,r,c),ii=!1,l=t.memoizedState,a.state=l,di(t,r,a,o),h=t.memoizedState,s!==r||l!==h||po.current||ii?("function"==typeof u&&(mi(t,n,u,r),h=t.memoizedState),(u=ii||vi(t,n,s,r,l,h,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return za(e,t,n,r,i,o)}function za(e,t,n,r,o,i){Na(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Co(t,n,!1),qa(e,t,i);r=t.stateNode,Oa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,s,i)):Aa(e,t,s,i),t.memoizedState=r.state,o&&Co(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?yo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yo(0,t.context,!1),Di(e,t.containerInfo)}var Ba,Ha,Va,Ya={dehydrated:null,retryTime:0};function Wa(e,t,n){var r,o=t.mode,i=t.pendingProps,a=ji.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),co(ji,1&a),null===e){if(void 0!==i.fallback&&ka(t),s){if(s=i.fallback,(i=El(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=El(s,o,n,null)).return=t,i.sibling=n,t.memoizedState=Ya,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Pi(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,s){if(i=i.fallback,(n=Pl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Pl(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Ya,t.child=n,o}return n=ki(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=El(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=El(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ya,t.child=i,n}return t.memoizedState=null,t.child=ki(t,e,i.children,n)}function Ua(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function Ka(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Ga(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Aa(e,t,r.children,n),0!=(2&(r=ji.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ua(e,n);else if(19===e.tag)Ua(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(co(ji,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ri(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ka(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ri(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ka(t,!0,n,null,i,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&al(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Pl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $a(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xa(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return go(t.type)&&vo(),null;case 3:return Ii(),lo(po),lo(ho),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ta(t)||(t.effectTag|=4),null;case 5:Ni(t),n=Ai(Mi.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ha(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ai(Ei.current),Ta(t)){r=t.stateNode,i=t.type;var s=t.memoizedProps;switch(r[Sn]=t,r[kn]=s,i){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Gt(Xe[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":xe(r,s),Gt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),ln(n,"onChange");break;case"textarea":Ae(r,s),Gt("invalid",r),ln(n,"onChange")}for(var l in on(i,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):S.hasOwnProperty(l)&&null!=c&&ln(n,l)}switch(i){case"input":we(r),Pe(r,s,!0);break;case"textarea":we(r),Ie(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=je(i)),e===sn?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[Sn]=t,e[kn]=r,Ba(e,t),t.stateNode=e,l=an(i,r),i){case"iframe":case"object":case"embed":Gt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)Gt(Xe[c],e);c=r;break;case"source":Gt("error",e),c=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),c=r;break;case"form":Gt("reset",e),Gt("submit",e),c=r;break;case"details":Gt("toggle",e),c=r;break;case"input":xe(e,r),c=_e(e,r),Gt("invalid",e),ln(n,"onChange");break;case"option":c=Ee(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=o({},r,{value:void 0}),Gt("invalid",e),ln(n,"onChange");break;case"textarea":Ae(e,r),c=Me(e,r),Gt("invalid",e),ln(n,"onChange");break;default:c=r}on(i,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?nn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Fe(e,d):"children"===s?"string"==typeof d?("textarea"!==i||""!==d)&&Be(e,d):"number"==typeof d&&Be(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=d&&ln(n,s):null!=d&&J(e,s,d,l))}switch(i){case"input":we(e),Pe(e,r,!1);break;case"textarea":we(e),Ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Oe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cn)}vn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ai(Mi.current),Ai(Ei.current),Ta(t)?(n=t.stateNode,r=t.memoizedProps,n[Sn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=t,t.stateNode=n)}return null;case 13:return lo(ji),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ta(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&ji.current)?Ts===ws&&(Ts=Cs):(Ts!==ws&&Ts!==Cs||(Ts=_s),0!==Ds&&null!==Ss&&(Il(Ss,Ps),Ll(Ss,Ds)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ii(),null;case 10:return ti(t),null;case 17:return go(t.type)&&vo(),null;case 19:if(lo(ji),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=r.rendering)){if(i)$a(r,!1);else if(Ts!==ws||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Ri(s))){for(t.effectTag|=64,$a(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return co(ji,1&ji.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Ri(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),$a(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,$a(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Bo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bo(),n.sibling=null,t=ji.current,co(ji,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ja(e){switch(e.tag){case 1:go(e.type)&&vo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ii(),lo(po),lo(ho),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ni(e),null;case 13:return lo(ji),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(ji),null;case 4:return Ii(),null;case 10:return ti(e),null;default:return null}}function Za(e,t){return{value:e,source:t,stack:ve(t)}}Ba=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var s,l,c=t.stateNode;switch(Ai(Ei.current),e=null,n){case"input":a=_e(c,a),r=_e(c,r),e=[];break;case"option":a=Ee(c,a),r=Ee(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Me(c,a),r=Me(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=cn)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=u&&ln(i,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Va=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Qa="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yl(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$o(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void os(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:$o(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&jt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof _l&&_l(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Yo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){yl(o,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yl(e,t)}}(t,n);break;case 5:ts(t);break;case 4:us(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function cs(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Be(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function us(e,t,n){for(var r,o,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var l=e,c=i,u=n,d=c;;)if(as(l,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(l=r,c=i.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(as(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[kn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),an(e,o),t=an(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Fe(n,l):"children"===s?Be(n,l):J(n,s,l,t)}switch(e){case"input":ke(n,r);break;case"textarea":De(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Oe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Oe(n,!!r.multiple,r.defaultValue,!0):Oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,jt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ls=Bo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=tn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void hs(t);case 19:return void hs(t);case 17:return}throw Error(a(163))}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qa),t.forEach((function(t){var r=wl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=li(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){js||(js=!0,Rs=r),es(e,t)},n}function ms(e,t,n){(n=li(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return es(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===zs?zs=new Set([this]):zs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gs,vs=Math.ceil,ys=X.ReactCurrentDispatcher,bs=X.ReactCurrentOwner,ws=0,Cs=3,_s=4,xs=0,Ss=null,ks=null,Ps=0,Ts=ws,Es=null,Os=1073741823,Ms=1073741823,As=null,Ds=0,Is=!1,Ls=0,Ns=null,js=!1,Rs=null,zs=null,Fs=!1,Bs=null,Hs=90,Vs=null,Ys=0,Ws=null,Us=0;function Ks(){return 0!=(48&xs)?1073741821-(Bo()/10|0):0!==Us?Us:Us=1073741821-(Bo()/10|0)}function Gs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Ho();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&xs))return Ps;if(null!==n)e=qo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=qo(e,150,100);break;case 97:case 96:e=qo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ss&&e===Ps&&--e,e}function qs(e,t){if(50<Ys)throw Ys=0,Ws=null,Error(a(185));if(null!==(e=$s(e,t))){var n=Ho();1073741823===t?0!=(8&xs)&&0==(48&xs)?Qs(e):(Js(e),0===xs&&Ko()):Js(e),0==(4&xs)||98!==n&&99!==n||(null===Vs?Vs=new Map([[e,t]]):(void 0===(n=Vs.get(e))||n>t)&&Vs.set(e,t))}}function $s(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Ss===o&&(al(t),Ts===_s&&Il(o,Ps)),Ll(o,t)),o}function Xs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Dl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Js(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Uo(Qs.bind(null,e));else{var t=Xs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ks();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Io&&So(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Uo(Qs.bind(null,e)):Wo(r,Zs.bind(null,e),{timeout:10*(1073741821-t)-Bo()}),e.callbackNode=t}}}function Zs(e,t){if(Us=0,t)return Nl(e,t=Ks()),Js(e),null;var n=Xs(e);if(0!==n){if(t=e.callbackNode,0!=(48&xs))throw Error(a(327));if(ml(),e===Ss&&n===Ps||nl(e,n),null!==ks){var r=xs;xs|=16;for(var o=ol();;)try{ll();break}catch(t){rl(e,t)}if(ei(),xs=r,ys.current=o,1===Ts)throw t=Es,nl(e,n),Il(e,n),Js(e),t;if(null===ks)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ts,Ss=null,r){case ws:case 1:throw Error(a(345));case 2:Nl(e,2<n?2:n);break;case Cs:if(Il(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(o)),1073741823===Os&&10<(o=Ls+500-Bo())){if(Is){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Xs(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(hl.bind(null,e),o);break}hl(e);break;case _s:if(Il(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=dl(o)),Is&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(o=Xs(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ms?r=10*(1073741821-Ms)-Bo():1073741823===Os?r=0:(r=10*(1073741821-Os)-5e3,0>(r=(o=Bo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(hl.bind(null,e),r);break}hl(e);break;case 5:if(1073741823!==Os&&null!==As){i=Os;var s=As;if(0>=(r=0|s.busyMinDurationMs)?r=0:(o=0|s.busyDelayMs,r=(i=Bo()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Il(e,n),e.timeoutHandle=bn(hl.bind(null,e),r);break}}hl(e);break;default:throw Error(a(329))}if(Js(e),e.callbackNode===t)return Zs.bind(null,e)}}return null}function Qs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&xs))throw Error(a(327));if(ml(),e===Ss&&t===Ps||nl(e,t),null!==ks){var n=xs;xs|=16;for(var r=ol();;)try{sl();break}catch(t){rl(e,t)}if(ei(),xs=n,ys.current=r,1===Ts)throw n=Es,nl(e,t),Il(e,t),Js(e),n;if(null!==ks)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ss=null,hl(e),Js(e)}return null}function el(e,t){var n=xs;xs|=1;try{return e(t)}finally{0===(xs=n)&&Ko()}}function tl(e,t){var n=xs;xs&=-2,xs|=8;try{return e(t)}finally{0===(xs=n)&&Ko()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==ks)for(n=ks.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Ii(),lo(po),lo(ho);break;case 5:Ni(r);break;case 4:Ii();break;case 13:case 19:lo(ji);break;case 10:ti(r)}n=n.return}Ss=e,ks=Pl(e.current,null),Ps=t,Ts=ws,Es=null,Ms=Os=1073741823,As=null,Ds=0,Is=!1}function rl(e,t){for(;;){try{if(ei(),Fi.current=ga,Ui)for(var n=Vi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Hi=0,Wi=Yi=Vi=null,Ui=!1,null===ks||null===ks.return)return Ts=1,Es=t,ks=null;e:{var o=e,i=ks.return,a=ks,s=t;if(t=Ps,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&ji.current),d=i;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var f=d.memoizedProps;h=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!u)}}if(h){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=li(1073741823,null);v.tag=2,ci(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new ps,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var b=bl.bind(null,o,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Ts&&(Ts=2),s=Za(s,a),d=i;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,ui(d,fs(d,l,t));break e;case 1:l=s;var w=d.type,C=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==C&&"function"==typeof C.componentDidCatch&&(null===zs||!zs.has(C)))){d.effectTag|=4096,d.expirationTime=t,ui(d,ms(d,l,t));break e}}d=d.return}while(null!==d)}ks=ul(ks)}catch(e){t=e;continue}break}}function ol(){var e=ys.current;return ys.current=ga,null===e?ga:e}function il(e,t){e<Os&&2<e&&(Os=e),null!==t&&e<Ms&&2<e&&(Ms=e,As=t)}function al(e){e>Ds&&(Ds=e)}function sl(){for(;null!==ks;)ks=cl(ks)}function ll(){for(;null!==ks&&!Lo();)ks=cl(ks)}function cl(e){var t=gs(e.alternate,e,Ps);return e.memoizedProps=e.pendingProps,null===t&&(t=ul(e)),bs.current=null,t}function ul(e){ks=e;do{var t=ks.alternate;if(e=ks.return,0==(2048&ks.effectTag)){if(t=Xa(t,ks,Ps),1===Ps||1!==ks.childExpirationTime){for(var n=0,r=ks.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}ks.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ks.firstEffect),null!==ks.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ks.firstEffect),e.lastEffect=ks.lastEffect),1<ks.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=ks:e.firstEffect=ks,e.lastEffect=ks))}else{if(null!==(t=Ja(ks)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=ks.sibling))return t;ks=e}while(null!==ks);return Ts===ws&&(Ts=5),null}function dl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function hl(e){var t=Ho();return Yo(99,pl.bind(null,e,t)),null}function pl(e,t){do{ml()}while(null!==Bs);if(0!=(48&xs))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=dl(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ss&&(ks=Ss=null,Ps=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=xs;xs|=32,bs.current=null,mn=Kt;var s=pn();if(fn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var h=0,p=-1,f=-1,m=0,g=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==u&&3!==v.nodeType||(p=h+u),v!==d||0!==c&&3!==v.nodeType||(f=h+c),3===v.nodeType&&(h+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++m===u&&(p=h),y===d&&++g===c&&(f=h),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===p||-1===f?null:{start:p,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:s,selectionRange:l},Kt=!1,Ns=o;do{try{fl()}catch(e){if(null===Ns)throw Error(a(330));yl(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);Ns=o;do{try{for(s=e,l=t;null!==Ns;){var w=Ns.effectTag;if(16&w&&Be(Ns.stateNode,""),128&w){var C=Ns.alternate;if(null!==C){var _=C.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(1038&w){case 2:cs(Ns),Ns.effectTag&=-3;break;case 6:cs(Ns),Ns.effectTag&=-3,ds(Ns.alternate,Ns);break;case 1024:Ns.effectTag&=-1025;break;case 1028:Ns.effectTag&=-1025,ds(Ns.alternate,Ns);break;case 4:ds(Ns.alternate,Ns);break;case 8:us(s,u=Ns,l),ss(u)}Ns=Ns.nextEffect}}catch(e){if(null===Ns)throw Error(a(330));yl(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);if(_=gn,C=pn(),w=_.focusedElem,l=_.selectionRange,C!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==l&&fn(w)&&(C=l.start,void 0===(_=l.end)&&(_=C),"selectionStart"in w?(w.selectionStart=C,w.selectionEnd=Math.min(_,w.value.length)):(_=(C=w.ownerDocument||document)&&C.defaultView||window).getSelection&&(_=_.getSelection(),u=w.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!_.extend&&s>l&&(u=l,l=s,s=u),u=hn(w,s),d=hn(w,l),u&&d&&(1!==_.rangeCount||_.anchorNode!==u.node||_.anchorOffset!==u.offset||_.focusNode!==d.node||_.focusOffset!==d.offset)&&((C=C.createRange()).setStart(u.node,u.offset),_.removeAllRanges(),s>l?(_.addRange(C),_.extend(d.node,d.offset)):(C.setEnd(d.node,d.offset),_.addRange(C))))),C=[];for(_=w;_=_.parentNode;)1===_.nodeType&&C.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<C.length;w++)(_=C[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Kt=!!mn,gn=mn=null,e.current=n,Ns=o;do{try{for(w=e;null!==Ns;){var x=Ns.effectTag;if(36&x&&is(w,Ns.alternate,Ns),128&x){C=void 0;var S=Ns.ref;if(null!==S){var k=Ns.stateNode;switch(Ns.tag){case 5:C=k;break;default:C=k}"function"==typeof S?S(C):S.current=C}}Ns=Ns.nextEffect}}catch(e){if(null===Ns)throw Error(a(330));yl(Ns,e),Ns=Ns.nextEffect}}while(null!==Ns);Ns=null,No(),xs=i}else e.current=n;if(Fs)Fs=!1,Bs=e,Hs=t;else for(Ns=o;null!==Ns;)t=Ns.nextEffect,Ns.nextEffect=null,Ns=t;if(0===(t=e.firstPendingTime)&&(zs=null),1073741823===t?e===Ws?Ys++:(Ys=0,Ws=e):Ys=0,"function"==typeof Cl&&Cl(n.stateNode,r),Js(e),js)throw js=!1,e=Rs,Rs=null,e;return 0!=(8&xs)||Ko(),null}function fl(){for(;null!==Ns;){var e=Ns.effectTag;0!=(256&e)&&ns(Ns.alternate,Ns),0==(512&e)||Fs||(Fs=!0,Wo(97,(function(){return ml(),null}))),Ns=Ns.nextEffect}}function ml(){if(90!==Hs){var e=97<Hs?97:Hs;return Hs=90,Yo(e,gl)}}function gl(){if(null===Bs)return!1;var e=Bs;if(Bs=null,0!=(48&xs))throw Error(a(331));var t=xs;for(xs|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),os(5,n)}}catch(t){if(null===e)throw Error(a(330));yl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return xs=t,Ko(),!0}function vl(e,t,n){ci(e,t=fs(e,t=Za(n,t),1073741823)),null!==(e=$s(e,1073741823))&&Js(e)}function yl(e,t){if(3===e.tag)vl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===zs||!zs.has(r))){ci(n,e=ms(n,e=Za(t,e),1073741823)),null!==(n=$s(n,1073741823))&&Js(n);break}}n=n.return}}function bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ss===e&&Ps===n?Ts===_s||Ts===Cs&&1073741823===Os&&Bo()-Ls<500?nl(e,Ps):Is=!0:Dl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Js(e)))}function wl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Gs(t=Ks(),e,null)),null!==(e=$s(e,t))&&Js(e)}gs=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||po.current)Ma=!0;else{if(r<n){switch(Ma=!1,t.tag){case 3:Fa(t),Ea();break;case 5:if(Li(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:go(t.type)&&wo(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,co(Xo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Wa(e,t,n):(co(ji,1&ji.current),null!==(t=qa(e,t,n))?t.sibling:null);co(ji,1&ji.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),co(ji,ji.current),!r)return null}return qa(e,t,n)}Ma=!1}}else Ma=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=mo(t,ho.current),ri(t,n),o=qi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var i=!0;wo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mi(t,r,s,e),o.updater=gi,t.stateNode=o,o._reactInternalFiber=t,wi(t,r,e,n),t=za(null,t,r,!0,i,n)}else t.tag=0,Aa(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return kl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(o),e=$o(o,e),i){case 0:t=ja(null,t,o,e,n);break e;case 1:t=Ra(null,t,o,e,n);break e;case 11:t=Da(null,t,o,e,n);break e;case 14:t=Ia(null,t,o,$o(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,ja(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ra(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 3:if(Fa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,si(e,t),di(t,r,null,n),(r=t.memoizedState.element)===o)Ea(),t=qa(e,t,n);else{if((o=t.stateNode.hydrate)&&(Ca=Cn(t.stateNode.containerInfo.firstChild),wa=t,o=_a=!0),o)for(n=Pi(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Aa(e,t,r,n),Ea();t=t.child}return t;case 5:return Li(t),null===e&&ka(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,yn(r,o)?s=null:null!==i&&yn(r,i)&&(t.effectTag|=16),Na(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Aa(e,t,s,n),t=t.child),t;case 6:return null===e&&ka(t),null;case 13:return Wa(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):Aa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Da(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 7:return Aa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Aa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(co(Xo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=Rr(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!po.current){t=qa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=li(n,null)).tag=2,ci(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ni(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Aa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.effectTag|=1,Aa(e,t,r,n),t.child;case 14:return i=$o(o=t.type,t.pendingProps),Ia(e,t,o,i=$o(o.type,i),r,n);case 15:return La(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$o(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,go(r)?(e=!0,wo(t)):e=!1,ri(t,n),yi(t,r,o),wi(t,r,o,n),za(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var Cl=null,_l=null;function xl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Sl(e,t,n,r){return new xl(e,t,n,r)}function kl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=Sl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tl(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)kl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return El(n.children,o,i,t);case se:s=8,o|=7;break;case re:s=8,o|=1;break;case oe:return(e=Sl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ce:return(e=Sl(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Sl(19,n,t,o)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case he:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Sl(s,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function El(e,t,n,r){return(e=Sl(7,e,r,t)).expirationTime=n,e}function Ol(e,t,n){return(e=Sl(6,e,null,t)).expirationTime=n,e}function Ml(e,t,n){return(t=Sl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Al(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Dl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Il(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ll(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Nl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function jl(e,t,n,r){var o=t.current,i=Ks(),s=pi.suspense;i=Gs(i,o,s);e:if(n){t:{if(Qe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(go(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(go(c)){n=bo(n,c,l);break e}}n=l}else n=uo;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ci(o,t),qs(o,i),i}function Rl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function zl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Fl(e,t){zl(e,t),(e=e.alternate)&&zl(e,t)}function Bl(e,t,n){var r=new Al(e,t,n=null!=n&&!0===n.hydrate),o=Sl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ai(o),e[Pn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Pt.forEach((function(e){ft(e,t,n)})),Tt.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Hl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Vl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=Rl(a);s.call(e)}}jl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Bl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Rl(a);l.call(e)}}tl((function(){jl(t,a,e,o)}))}return Rl(a)}function Yl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Hl(t))throw Error(a(200));return Yl(e,t,null,n)}Bl.prototype.render=function(e){jl(e,this._internalRoot,null,null)},Bl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;jl(null,e,null,(function(){t[Pn]=null}))},mt=function(e){if(13===e.tag){var t=qo(Ks(),150,100);qs(e,t),Fl(e,t)}},gt=function(e){13===e.tag&&(qs(e,3),Fl(e,3))},vt=function(e){if(13===e.tag){var t=Ks();qs(e,t=Gs(t,e,null)),Fl(e,t)}},E=function(e,t,n){switch(t){case"input":if(ke(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Mn(r);if(!o)throw Error(a(90));Ce(r),ke(r,o)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},L=el,N=function(e,t,n,r,o){var i=xs;xs|=4;try{return Yo(98,e.bind(null,t,n,r,o))}finally{0===(xs=i)&&Ko()}},j=function(){0==(49&xs)&&(function(){if(null!==Vs){var e=Vs;Vs=null,e.forEach((function(e,t){Nl(t,e),Js(t)})),Ko()}}(),ml())},R=function(e,t){var n=xs;xs|=2;try{return e(t)}finally{0===(xs=n)&&Ko()}};var Ul,Kl,Gl={Events:[En,On,Mn,P,x,Rn,function(e){ot(e,jn)},D,I,Jt,st,ml,{current:!1}]};Kl=(Ul={findFiberByHostInstance:Tn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Cl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},_l=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},Ul,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Kl?Kl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gl,t.createPortal=Wl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&xs))throw Error(a(187));var n=xs;xs|=1;try{return Yo(99,e.bind(null,t))}finally{xs=n,Ko()}},t.hydrate=function(e,t,n){if(!Hl(t))throw Error(a(200));return Vl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Hl(t))throw Error(a(200));return Vl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Hl(e))throw Error(a(40));return!!e._reactRootContainer&&(tl((function(){Vl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Pn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return Wl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hl(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Vl(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(849)},function(e,t,n){"use strict";
|
|
|
/** @license React v0.19.1
|
|
|
* scheduler.production.min.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/var r,o,i,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,f=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)t.unstable_now=function(){return h.now()};else{var v=p.now();t.unstable_now=function(){return p.now()-v}}var y=!1,b=null,w=-1,C=5,_=0;a=function(){return t.unstable_now()>=_},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):C=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();_=e+C;try{b(!0,e)?S.postMessage(null):(y=!1,b=null)}catch(e){throw S.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,S.postMessage(null))},o=function(e,n){w=f((function(){e(t.unstable_now())}),n)},i=function(){m(w),w=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<E(o,t)))break e;e[r]=t,e[n]=o,n=r}}function P(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>E(a,n))void 0!==l&&0>E(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],M=[],A=1,D=null,I=3,L=!1,N=!1,j=!1;function R(e){for(var t=P(M);null!==t;){if(null===t.callback)T(M);else{if(!(t.startTime<=e))break;T(M),t.sortIndex=t.expirationTime,k(O,t)}t=P(M)}}function z(e){if(j=!1,R(e),!N)if(null!==P(O))N=!0,r(F);else{var t=P(M);null!==t&&o(z,t.startTime-e)}}function F(e,n){N=!1,j&&(j=!1,i()),L=!0;var r=I;try{for(R(n),D=P(O);null!==D&&(!(D.expirationTime>n)||e&&!a());){var s=D.callback;if(null!==s){D.callback=null,I=D.priorityLevel;var l=s(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?D.callback=l:D===P(O)&&T(O),R(n)}else T(O);D=P(O)}if(null!==D)var c=!0;else{var u=P(M);null!==u&&o(z,u.startTime-n),c=!1}return c}finally{D=null,I=r,L=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||L||(N=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return P(O)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),l=s;return e={id:A++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,k(M,e),null===P(O)&&e===P(M)&&(j?i():j=!0,o(z,l-s))):(e.sortIndex=a,k(O,e),N||L||(N=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=P(O);return n!==D&&null!==D&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<D.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}n.r(t);var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){"use strict";var r=n(141).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},t.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(854);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
|
|
|
/** @license React v16.13.1
|
|
|
* react-is.production.min.js
|
|
|
*
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
*
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,C=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case h:case a:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case g:case c:return e;default:return t}}case i:return t}}}function x(e){return _(e)===h}t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||_(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===l||e===s||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===C||e.$$typeof===y)},t.typeOf=_},function(e){e.exports=JSON.parse('{"name":"mockplus-rp","version":"1.19.0","description":"","main":"index.js","directories":{"doc":"doc"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"**/*.{js,jsx,ts,tsx}":["eslint --fix --no-ignore","prettier --write"]},"scripts":{"start":"webpack-dev-server --config webpack.config.js","standalone":"webpack-dev-server --config configs/webpack.standalone.js","desktop":"webpack-dev-server --config configs/webpack.desktop.js","test":"jest --watchAll","eslint":"eslint \'src/**\' --fix","build-prod":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.config.prod.js","build-prod-en":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.config.prod.en.js","build-prod-pd":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.config.prod.pd.js","build-test":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.config.test.js","build-standalone":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.standalone.prod.js","build-standalone-en":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.standalone.prod.en.js","build-standalone-pd":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.standalone.prod.pd.js","build-standalone-test":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.standalone.test.js","build-desktop":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.desktop.prod.js","build-desktop-test":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.desktop.test.js","build-prod-pd-huawei":"rm -rf dist && export NODE_ENV=production && webpack --config configs/webpack.config.prod.pd.huawei.js","build-zip":"rimraf dist && set NODE_ENV=production && webpack --progress --hide-modules --config configs/webpack.zip.js","zip-dev":"webpack-dev-server --config configs/webpack.zip.dev.js"},"author":"","license":"ISC","dependencies":{"@types/axios":"^0.14.0","@types/jest":"^24.9.1","@types/react-custom-scrollbars":"^4.0.5","@types/shortid":"0.0.29","@types/tinycolor2":"^1.4.1","@tyriar/avl-tree":"^2.0.6","@welldone-software/why-did-you-render":"^4.2.6","axios":"^0.18.1","classnames":"^2.2.6","deepmerge":"^3.2.0","fast-json-patch":"^2.1.0","file-loader":"^3.0.1","immutable":"^4.0.0-rc.12","l1-path-finder":"^1.0.0","lodash":"^4.17.15","lru_map":"^0.3.3","moment":"^2.24.0","ndarray":"^1.0.18","paper":"^0.12.0","qrcode":"^1.4.4","rbush":"^3.0.1","react":"^16.8.2","react-cropper":"^2.1.4","react-dnd":"^10.0.2","react-dnd-html5-backend":"^10.0.2","react-dom":"^16.8.2","react-redux":"^6.0.1","react-router":"^5.0.1","react-router-dom":"^5.1.2","react-router-redux":"^4.0.8","redux":"^4.0.1","shortid":"^2.2.16","socket.io-client":"^2.3.0","transformation-matrix":"^2.1.1","worker-loader":"^2.0.0"},"devDependencies":{"@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@types/classnames":"^2.2.7","@types/enzyme":"^3.10.5","@types/html2canvas":"^0.0.35","@types/lodash":"^4.14.121","@types/lorem-ipsum":"^2.0.0","@types/qrcode":"^1.3.4","@types/rbush":"^3.0.0","@types/react":"^16.8.3","@types/react-dom":"^16.8.2","@types/react-loadable":"^5.5.1","@types/react-redux":"^7.0.1","@types/react-router":"^5.0.2","@types/react-router-dom":"^4.3.4","@types/react-router-redux":"^5.0.18","@types/redux-thunk":"^2.1.0","@types/sanitize-html":"^1.20.1","@types/socket.io-client":"^1.4.32","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","antd":"^4.15.3","babel-core":"^6.26.3","babel-jest":"^23.0.1","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-react-jsx":"^6.24.1","babel-polyfill":"^6.26.0","babel-preset-env":"^1.7.0","babel-preset-es2015":"^6.24.1","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.0.3","css-loader":"^2.1.0","cssnano":"^4.1.10","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.14.0","eslint":"^6.8.0","eslint-plugin-react":"^7.19.0","fork-ts-checker-webpack-plugin":"^0.5.2","hard-source-webpack-plugin":"^0.13.1","html-webpack-plugin":"^3.2.0","husky":"^4.3.0","jest":"^24.8.0","jest-canvas-mock":"^2.2.0","jest-css-modules":"^2.1.0","js-yaml-loader":"^1.2.2","lint-staged":"^10.4.0","lorem-ipsum":"^2.0.3","mini-css-extract-plugin":"^0.8.2","node-sass":"^4.13.0","paper":"^0.12.0","paper-jsdom":"^0.12.0","postcss-cssnext":"^3.1.0","postcss-import":"^12.0.1","postcss-loader":"^3.0.0","prettier":"2.0.5","qrcode.react":"^1.0.0","react-custom-scrollbars":"^4.2.1","react-loadable":"^5.5.0","redux-devtools-extension":"^2.13.8","redux-thunk":"^2.3.0","resize-observer-polyfill":"^1.5.1","sanitize-html":"^1.20.1","sass-loader":"^7.1.0","socket.io-msgpack-parser":"^2.2.0","source-map-loader":"^0.2.4","style-loader":"^0.23.1","terser-webpack-plugin":"^1.3.0","thread-loader":"^2.1.2","tinycolor2":"^1.4.1","ts-jest":"^23.10.5","ts-loader":"^5.3.3","tsconfig-paths":"^3.8.0","tsconfig-paths-webpack-plugin":"^3.2.0","typescript":"^3.7.3","webpack":"^4.29.5","webpack-cli":"^3.2.3","webpack-dev-server":"^3.1.5","webpack-manifest-plugin":"^2.2.0"}}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(141),o=n(858),i=n(1404),a=n(1421),s=n(1422),l=n(1423),c=n(1426),u=n(1427),d=n(1428),h=n(1430),p=n(1431);t.default=r.combineReducers({app:o.default,preview:i.default,global:a.default,resource:s.default,userPreference:l.default,revisions:c.default,share:u.default,appShare:d.default,message:h.default,member:p.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(129),i=n(92),a=n(273),s=n(859),l=n(366),c=n(30),u=n(225),d=n(311),h=n(49),p=n(226),f={appID:"",app:null,teamInfo:null,selectedNodeID:"",currentSession:u.getDefaultSession(),coopers:[],selectedIDs:[],trashSelectedNodIDs:[],expandedIDs:[],downloadArtboard:{status:"init",message:"",taskID:-1},departments:[]};function m(e){e.forEach(e=>{var t;e.components=null===(t=e.components)||void 0===t?void 0:t.filter(t=>(t||s.default&&console.warn("检测到组件数据丢失,所在容器:",e.type,e._id),!!t))})}t.default=function(e=f,t){var n,s;switch(t.type){case h.ActionType.User_GetUserInfo:return Object.assign(Object.assign({},e),{userInfo:t.payload});case h.ActionType.User_GetSession:{const n=t.payload;return c.setSeed(n.id),Object.assign(Object.assign({},e),{currentSession:n})}case h.ActionType.Team_GetTeamInfo:return Object.assign(Object.assign({},e),{teamInfo:t.payload});case h.ActionType.Team_Patch:return Object.assign(Object.assign({},e),{teamInfo:Object.assign(Object.assign({},e.teamInfo),t.payload)});case h.ActionType.App_GetApp:{const{realNodes:n,tempDeleteNodes:r,app:a,createTime:s}=t.payload;let l=null,c=t.payload.selectedID;if(c){const e=i.findNodeByID(a.children,c);e&&"folder"!==e.type||(c=void 0)}else{const e=o.loadFromCache("lastOpenPage");e&&(c=e[a._id])}c||(l=i.getFirstPageNode(n),l&&(c=l._id)),p.CoreEditors.clear();let u=o.getAppCache(a._id,"expanded-ids")||[];if(c){const e=i.findNodeByID(n,c);if(e){i.findAllAncestors(e).forEach(e=>{u.includes(e)||u.push(e)})}}return Object.assign({},e,{appID:a._id,app:Object.assign({},a,{children:n,tempChildren:r}),selectedNodeID:c||"",selectedIDs:c?[c]:[],expandedIDs:u,coreEditor:null,createTime:s})}case h.ActionType.App_AddNode:{if(!e.app)return e;const{_id:n}=t.payload,r=i.parseNodesToTree([t.payload],!0)[0],o=d.addNodeToTree(r,"add",[...e.app.children]);return Object.assign({},e,{app:Object.assign({},e.app,{children:[...o]}),selectedNodeID:n,selectedIDs:[n]})}case h.ActionType.App_InsertNode:{if(!e.app)return e;const{_id:n}=t.payload,r=i.parseNodesToTree([t.payload],!0)[0],o=d.addNodeToTree(r,"insert",[...e.app.children]);return Object.assign({},e,{app:Object.assign({},e.app,{children:[...o]}),selectedNodeID:n,selectedIDs:[n]})}case h.ActionType.App_UpdateNodes:{const{realNodes:r,tempDeleteNodes:o}=i.parseNodeToTreeByState(t.payload);return null===(n=e.coreEditor)||void 0===n||n.clearSelected(),Object.assign({},e,{app:Object.assign({},e.app,{children:r,tempChildren:o})})}case h.ActionType.App_PatchNode:{const{name:n,_id:r}=t.payload;return e.app?Object.assign({},e,{app:Object.assign({},e.app,{children:i.renameNodeOfTree(e.app.children,r,n)})}):e}case h.ActionType.App_SelectNode:{const{nodeID:n,isTrashPage:r}=t.payload,o=p.CoreEditors.get(n);return o&&(o.isDeletedNode=r,o.reload()),Object.assign({},e,{selectedNodeID:n,trashSelectedNodIDs:r?[n]:[],selectedIDs:r?[]:[n],coreEditor:o,isShowTrashPage:!!r})}case h.ActionType.App_LoadArtboards:{m(t.payload.artboards);const{forceUpdate:n}=t.payload;let r;if(n)r=new l.default(t.payload.artboards,e.appID,t.payload.pageID,e.currentSession);else{const n=p.CoreEditors.get(t.payload.pageID);n?(r=n,r.reload()):r=new l.default(t.payload.artboards,e.appID,t.payload.pageID,e.currentSession)}return r.appType=e.app.appType,p.CoreEditors.set(t.payload.pageID,r),n?e.selectedNodeID===t.payload.pageID?Object.assign(Object.assign({},e),{coreEditor:r}):e:Object.assign(Object.assign({},e),{coreEditor:r})}case h.ActionType.Page_Revisions_revert:{m(t.payload.artboards);const n=new l.default(t.payload.artboards,e.appID,t.payload.pageID,e.currentSession);return n.appType=e.app.appType,p.CoreEditors.set(t.payload.pageID,n),Object.assign(Object.assign({},e),{coreEditor:n})}case h.ActionType.App_ArtboardSelectSync:{const{appID:n,nodeID:r,selected:o}=t.payload;if(e.appID!==n)return e;const i=p.CoreEditors.get(r);return i?(i.syncOtherSelectedComponents(o),e):e}case h.ActionType.App_Tree_UpdateExpandedIDs:return o.setAppCache(e.appID,"expanded-ids",t.payload),Object.assign({},e,{expandedIDs:t.payload});case h.ActionType.App_Tree_UpdateSelectedIDs:{const{ids:n,isTrashPage:r}=t.payload;return Object.assign({},e,{selectedIDs:n,trashSelectedNodIDs:[],isShowTrashPage:r})}case h.ActionType.App_Tree_UpdateTrashSelectedIDs:{const{ids:n,isTrashPage:r}=t.payload;return Object.assign({},e,{trashSelectedNodIDs:n,selectedIDs:[],isShowTrashPage:r})}case h.ActionType.App_Tree_HidePage:{const{realNodes:n,tempDeleteNodes:r}=i.parseNodeToTreeByState(t.payload);return null===(s=e.coreEditor)||void 0===s||s.clearSelected(),Object.assign({},e,{app:Object.assign({},e.app,{children:n,tempChildren:r})})}case h.ActionType.App_UpdateCoopers:return u.setCoopers(t.payload),Object.assign({},e,{coopers:t.payload});case h.ActionType.App_KillCoopers:{const{sessionIDs:n}=t.payload;e.coreEditor&&n.forEach(t=>{e.coreEditor.updateOtherSelectedComponents(t,[])});const r=e.coopers.filter(e=>!n.includes(e.id));return u.setCoopers(r),Object.assign({},e,{coopers:r})}case h.ActionType.IO_UPDATE:{const{type:n,payload:o}=t.payload;switch(n){case a.IOType.PagePatches:{const{appID:t,nodeID:n,patches:r}=o;if(e.appID!==t)return e;const i=p.CoreEditors.get(n);if(!i)return e;const a=Object.keys(r);let s=a.length;return a.forEach(e=>{const t=r[e],n=Object.keys(t);let o=n.length;n.forEach(e=>{t[e].length||(delete t[e],o--)}),0===o&&(delete r[e],s--)}),s&&(i.patch(r),i.autoReselectActiveArtboard(r)),e}case a.IOType.PageSelect:{const{appID:t,nodeID:n,sessionID:r,ids:i}=o;if(e.appID!==t)return e;const a=p.CoreEditors.get(n);return a?(a.updateOtherSelectedComponents(r,i),e):e}case a.IOType.NodeUpdate:{const t=o,{realNodes:n,tempDeleteNodes:a}=i.parseNodeToTreeByState(t);let s=e.selectedNodeID;if(e.app){const o=t.find(t=>t._id===e.selectedNodeID),l=a.map(e=>e._id),c=(null==o?void 0:o.path.split(","))||[];if(!o||3===o.state||r.intersection(l,c).length){const e=i.getFirstPageNode(n);s=e?e._id:""}}return Object.assign({},e,{app:Object.assign({},e.app,{children:n,tempChildren:a}),selectedNodeID:s,isShowTrashPage:!1,selectedIDs:[s],trashSelectedNodIDs:[]})}}return e}case h.ActionType.App_DownloadArtboard:return Object.assign({},e,{downloadArtboard:t.payload});case h.ActionType.APP_RefreshPage:{const{coreEditor:t}=e;return t?(t.reload(),Object.assign({},e)):e}case h.ActionType.App_ChangeProjectSize:{const{appType:n,size:r}=t.payload;return n?Object.assign({},e,{app:Object.assign({},e.app,{appType:n,size:r})}):e}case h.ActionType.App_Patch_Info:return Object.assign({},e,{appID:t.payload._id||e.appID,app:Object.assign({},e.app,t.payload)});case h.ActionType.Department_Load_List:return Object.assign(Object.assign({},e),{departments:t.payload});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=-1!==window.location.href.indexOf("debug=1");t.default=r},function(e,t,n){"use strict";var r=n(203),o=n(862),i=n(866),a=n(867)||0;function s(){return o(a)}e.exports=s,e.exports.generate=s,e.exports.seed=function(t){return r.seed(t),e.exports},e.exports.worker=function(t){return a=t,e.exports},e.exports.characters=function(e){return void 0!==e&&r.characters(e),r.shuffled()},e.exports.isValid=i},function(e,t,n){"use strict";var r=1;e.exports={nextValue:function(){return(r=(9301*r+49297)%233280)/233280},seed:function(e){r=e}}},function(e,t,n){"use strict";var r,o,i=n(863);n(203);e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===o?r++:(r=0,o=n),t+=i(7),t+=i(e),r>0&&(t+=i(r)),t+=i(n)}},function(e,t,n){"use strict";var r=n(203),o=n(864),i=n(865);e.exports=function(e){for(var t,n=0,a="";!t;)a+=i(o,r.get(),1),t=e<Math.pow(16,n+1),n++;return a}},function(e,t,n){"use strict";var r,o="object"==typeof window&&(window.crypto||window.msCrypto);r=o&&o.getRandomValues?function(e){return o.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=r},function(e,t){e.exports=function(e,t,n){for(var r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*n/t.length),i="";;)for(var a=e(o),s=o;s--;)if((i+=t[a[s]&r]||"").length===+n)return i}},function(e,t,n){"use strict";var r=n(203);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)}},function(e,t,n){"use strict";e.exports=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return i.default}}),t.loremIpsum=void 0;var r,o=n(367),i=(r=n(869))&&r.__esModule?r:{default:r};t.loremIpsum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,n=void 0===t?1:t,r=e.format,a=void 0===r?"plain":r,s=e.paragraphLowerBound,l=void 0===s?3:s,c=e.paragraphUpperBound,u=void 0===c?7:c,d=e.random,h=e.sentenceLowerBound,p=void 0===h?5:h,f=e.sentenceUpperBound,m=void 0===f?15:f,g=e.units,v=void 0===g?"sentences":g,y=e.words,b=void 0===y?o.WORDS:y,w=e.suffix,C=void 0===w?"":w,_={random:d,sentencesPerParagraph:{max:u,min:l},words:b,wordsPerSentence:{max:m,min:p}},x=new i.default(_,a,C);switch(v){case"paragraphs":case"paragraph":return x.generateParagraphs(n);case"sentences":case"sentence":return x.generateSentences(n);case"words":case"word":return x.generateWords(n);default:return""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(870),i=n(871),a=(r=n(872))&&r.__esModule?r:{default:r},s=n(275);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.FORMAT_PLAIN,r=arguments.length>2?arguments[2]:void 0;if(l(this,e),u(this,"generator",void 0),u(this,"format",void 0),u(this,"suffix",void 0),-1===o.FORMATS.indexOf(n.toLowerCase()))throw new Error("".concat(n," is an invalid format. Please use ").concat(o.FORMATS.join(" or "),"."));this.format=n.toLowerCase(),this.suffix=r,this.generator=new a.default(t)}var t,n,r;return t=e,(n=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,s.isReactNative)()&&(0,s.isNode)()&&(0,s.isWindows)()?i.LINE_ENDINGS.WIN32:i.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===o.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map((function(e){return t.formatString(e)}))}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,s.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}])&&c(t.prototype,n),r&&c(t,r),e}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMATS=t.FORMAT_PLAIN=t.FORMAT_HTML=void 0;t.FORMAT_HTML="html";t.FORMAT_PLAIN="plain";var r=["html","plain"];t.FORMATS=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0;t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(367),o=n(275);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.sentencesPerParagraph,o=void 0===n?{max:7,min:3}:n,a=t.wordsPerSentence,l=void 0===a?{max:15,min:5}:a,c=t.random,u=(t.seed,t.words),d=void 0===u?r.WORDS:u;if(i(this,e),s(this,"sentencesPerParagraph",void 0),s(this,"wordsPerSentence",void 0),s(this,"random",void 0),s(this,"words",void 0),o.min>o.max)throw new Error("Minimum number of sentences per paragraph (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));if(l.min>l.max)throw new Error("Minimum number of words per sentence (".concat(l.min,") cannot exceed maximum (").concat(l.max,")."));this.sentencesPerParagraph=o,this.words=d,this.wordsPerSentence=l,this.random=c||Math.random}var t,n,l;return t=e,(n=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,n=this.wordsPerSentence,r=n.min,i=n.max,a=e||this.generateRandomInteger(r,i);return(0,o.makeArrayOfLength)(a).reduce((function(e,n){return"".concat(t.pluckRandomWord()," ").concat(e)}),"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,o.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,n=this.sentencesPerParagraph,r=n.min,i=n.max,a=e||this.generateRandomInteger(r,i);return(0,o.makeArrayOfLength)(a).reduce((function(e,n){return"".concat(t.generateRandomSentence()," ").concat(e)}),"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}])&&a(t.prototype,n),l&&a(t,l),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return!!e.exports};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product};t.default=r},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(877),o=function(){return void 0!==e&&e.platform===r.SUPPORTED_PLATFORMS.WIN32};t.default=o}).call(this,n(102))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0;t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map((function(e,t){return t}))};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(275),o=function(e,t){return(0,r.makeArrayOfLength)(e).map((function(){return t()}))};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={common:{title:"{0} - 摹客RP",mock:"摹客"},application:{flow:"流程图模式",pen:"钢笔",pencil:"铅笔",group:"编组",ungroup:"取消编组",undo:"撤销",redo:"重做",showStatePanel:"状态面板",hiddenStatePanel:"状态面板",showArtboardPanel:"画板列表",hiddenArtboardPanel:"画板列表",artboardPanel:"画板列表",play:"演示",playFromFirst:"从首页开始",playFromCurrent:"从当前页开始",switchRightPanelVisible:"收起/展开右侧面板",newArtboard:"添加画板",newSubArtboard:"添加辅助画板",help:"帮助",navigation:"导航",fullScreen:"全屏",showLeftPanel:"显示左侧面板",showRightPanel:"显示右侧面板",title:"{0} - 摹客",shortCut:"快捷键",tutorial:"教程",feedback:"提交意见",home:"官网",showGrid:"显示网格",showLayout:"显示布局",showRuler:"显示标尺",showGuideline:"显示参考线",removeAllVerticalGuides:"移除所有垂直参考线",removeAllHorizontalGuides:"移除所有水平参考线",removeGuides:"移除参考线",gridSettings:"网格设置",layoutSettings:"布局设置",alginConfig:"高级标注",tutorialURL:"https://help.mockplus.cn/rp/post",homeURL:"https://www.mockplus.cn?home=1",feedbackURL:"https://www.mockplus.cn/community/摹客在线原型",buyURL:"https://www.mockplus.cn/buy/idoc",forgotPassword:"https://user.mockplus.cn/forgotpassword",exampleListURL:"https://www.mockplus.cn/example/rp",coopers:"{0}等{1}人",zoom:"缩放",pageCount:"共{0}个页面",pageCount2:"{0}个页面",zoom4canvas:"适应所有画板",zoom4selection:"适应选区",zoom4artboard:"适应画板",option:"首选项",scaleBorderAndRadius:"缩放边角",scaleShadow:"缩放阴影",settings:"设置",generalSettings:"常规选项",offlineDemo:"下载离线演示包",backToHomePage:"返回首页",exitEdit:"退出编辑"},workspace:{artboard:{downloadingMessage:"正在导出图片,这个过程可能耗时较长,请耐心等待。",downloadedMessage:"图片已经导出完成,请点击下载按钮下载文件。",downloadErrorMessage:"无法下载图片,出现错误:",copy:"副本"},grid:{blockSize:"网格尺寸",thickLinesEvery:"粗线间隔",colors:"颜色",makeDefault:"设置为默认",dark:"暗",light:"亮",blocks:"格"},layout:{columns:"列",totalWidth:"总宽",offset:"偏离",center:"居中",columnCount:"列数",gutterOnOutside:"外围间距",gutterWidth:"间距",gutterHeight:"间距",columnWidth:"列宽",rows:"行",rowHeight:"行高",visuals:"视觉",fillGrid:"填充网格",strokeOutline:"外侧描边",drawAllGridLines:"绘制所有水平线"},alignType:{normalAlign:"常规对齐",equidistantAlign:"等距侦测",distanceAlign:"距离标注"},backToEditor:"返回",statusBar:{projectType:"项目类型",phone:"手机",pad:"平板",web:"网页",custom:"自定义尺寸",blank:"空白",huawei:"华为"},generalSettings:{pasteOffset:{label:"粘贴对象偏移距离",x:"X",y:"Y"},pasteAtTop:"粘贴对象置于顶层",showHiddenArea:"显示隐藏的区域",showLayerNameInPropertiesPanel:"在属性面板显示图层名称"}},resource:{project:"页面",artboard:"画板",component:"组件",icon:"图标",resource:"设计资源",outline:"图层",searchPage:"搜索",searchComponent:"搜索",searchIcon:"搜索",searchLib:"搜索",searchLayer:"搜索",recycleBin:"回收站",components:{basic:"基本",container:"容器",common:"常用",flow:"形状",antDesign:"",comment:"批注",text:"文本",textContent:"请输入文本内容",rect:"矩形",ellipse:"椭圆",image:"图片",line:"线条",triangle:"三角形",polygon:"多边形",paragraph:"多行文字",input:"输入框",textarea:"文本框",pureText:"文本",icon:"图标",canvasPanel:"面板",contentPanel:"内容面板",listLayoutPanel:"列表面板",stackPanel:"堆叠面板",wrapPanel:"折行面板",selectPanel:"选项组",button:"按钮",iconButton:"图标按钮",switch:"开关",checkbox:"复选框",checkboxGroup:"复选框组",radio:"单选按钮",radioButtonGroup:"单选按钮组",select:"下拉框",list:"列表",numericStep:"数字输入器",breadCrumbs:"面包屑",segmentsControl:"分段控件",selectTab:"选项卡",slider:"滑块",progressBar:"进度条",circleProgressBar:"环形进度条",score:"评分控件",video:"视频",qrcode:"二维码",keyboard:"键盘",audio:"音频",tree:"树",table:"表格",hotArea:"热区",arrow:"箭头",callOut:"编号",stickNote:"便签条",drop:"水滴",dropDown:"下拉列表",snapshot:"快照",verticalCurly:"垂直花括号",horizontalCurly:"水平花括号",verticalSeparatorLine:"垂直分隔线",horizontalSeparatorLine:"水平分隔线",labelInput:"标签输入框",searchBox:"搜索框",link:"链接",path:"路径",compoundPath:"复合路径",connector:"连接线",group:"组"},componentsText:{itemText:"选项",optionText:"选项",newItem:"新条目",listItemText:"条目",breadCrumbsText:"一级目录|二级目录|三级目录|四级目录",qrCode:"https://www.mockplus.cn",selectTeam:"请选择团队",selectProject:"请选择项目",snapshotText:"双击插入设计稿\n并自动同步设计稿内容",snapshotCanNotFound:"无法找到源设计稿",snapshotInvalid:"快照失效",VPCImageURL:"https://img02.mockplus.cn",replaceVPCImageURL:"http://mockplus-static.oss-cn-hangzhou-internal.aliyuncs.com",snapshotTitle:"插入设计稿",noContent:"暂无内容"},flow:{rectangle:"矩形",parallelogram:"平行四边形",diamond:"菱形",circle:"圆",ellipse:"椭圆",triangle:"三角形",pentagon:"五边形",roundRectangle:"圆角矩形",semicircle:"半圆",octagon:"八边形",keying:"键入",start:"开始/结束",rightTriangle:"右三角形",trapezoid:"梯形",hexagon:"六边形",drop:"水滴",heart:"心形",sector:"扇形",star:"星形",cloud:"云",dataBase:"数据库",punchedCard:"卡片",roundedSpeechBubble:"对话框(圆)",squareSpeechBubble:"对话框(方)",rightArrowButton:"右箭头按钮",leftArrowButton:"左箭头按钮",offPageConnector:"跨页引用",ready:"预备",beveledRectangle:"斜角矩形",sectorDiagram:"扇形图",cross:"十字",limitCycle:"循环限值",manualInput:"人工输入",punchedTape:"条带",display:"展示",externalData:"外部数据",manualOperation:"手动操作",rightArrow:"右箭头",leftArrow:"左箭头",horizontalDoubleArrow:"左右箭头",upArrow:"上箭头",downArrow:"下箭头",verticalDoubleArrow:"上下箭头",upGrid:"矩形格(上)",leftGrid:"矩形格(左)",classicTab:"经典标签",queueData:"队列数据",delay:"推迟",APQC:"APQC",collate:"对照",leftBracket:"注释(左)",rightBracket:"注释(右)",leftBrace:"备注(左)",rightBrace:"备注(右)",document:"文档",pieChart:"饼图",rightAngle:"右拐角",rightTurn:"右返回",leftTurn:"左返回"},icons:{lightIcon:"细线",boldIcon:"粗线",pay:"支付",office:"文件办公",chart:"图表数据",gesture:"手势",social:"社交",device:"设备",traffic:"交通",symbol:"符号",direction:"方向",media:"多媒体",edit:"编辑",treatment:"医疗",letter:"数字/字母"},libs:{arrangementMode:"布局",component:"组件",color:"颜色",typography:"文本样式",addLib:"{0}存为资源",createSymbol:"添加资源",share:"共享",cancelSharing:"取消共享",cancelSharingToAll:"取消共享(所有团队)",placeholder:"{0}的设计资源",shareToMyTeam:"将资源共享至当前团队吗?",shareToAllTeams:"将资源共享至:",cancelShareToMyTeam:"当前团队正在共享此资源,确定要取消共享吗?",cancelShareToAllTeams:"系统中所有团队正在共享此资源,确定要取消共享吗?",myTeam:"当前团队",allTeams:"系统内所有团队",sync:"资源相互引用,并自动同步修改",addGroup:"新建分组",management:"管理资源",defaultGroupName:"新分组",moveGroup:"删除“{0}”分组后不可恢复,确定继续吗?\n你可以将组内的{1}个资源移至其它分组,否则资源将被一同删除。",removeGroup:"确定要删除“{0}”分组吗?",noMoveGroup:"删除资源",moveAssetTo:"移动资源到",moveAsset:"移动",noGroup:"暂无分组",noComponent:"暂无组件",addComponentPlaceholder:"资源名称",addGroupPlaceholder:"分组名称",resourceLoadFail:"抱歉,加载出错了...",reload:"重新加载",searchGroup:"搜索",cannotModify:"此组件为共享的同步资源,只有资源创建者才可对其进行修改。",deleteSyncComponent:"确定要删除当前资源吗?此操作不可恢复。",deleteAsyncComponent:"确定要删除当前资源吗?此操作不可恢复。",deleteSharedComponent:"当前资源已共享,请取消共享后再删除。",appName:"来源:{0}",noApp:"来源:被删除的项目",cannotAddRefResource:"你正在使用共享的设计资源库,请切换至当前项目的设计资源库后再试。"}},project:{page:"页面",group:"分组",newPage:"新建页面",newGroup:"新建分组",addNew:"新建",childPage:"子页面",childGroup:"子分组",insert:"插入",undo:"恢复",delete:"清除",resetAll:"恢复所有",clearAll:"清除所有",defaultPageName:"页面1",undoNow:"立即恢复",showPageNumber:"显示页面编号",hiddenPageNumber:"隐藏页面编号",showPage:"显示",hiddenPage:"隐藏",hiddenPageTip:"演示界面中,隐藏的页面对无项目编辑权限者不可见。",mainName:"主画板",mainDTName:"画板",subArtboard:"辅助画板 {0}",subDTArtboard:"画板 {0}",revisions:{title:"历史版本",revert:"还原到该历史版本",noRevision:"当前版本下,该画板没有历史记录",revertTips:"确定将当前页面内容还原到该历史版本吗?其它页面不受影响。",tips:"摹客会自动为你生成历史版本,你可以根据需要恢复历史数据。",noPageRevisions:"当前页面还未产生历史版本!",currentVersion:"当前版本",revisions:"版本",artboard:"画板",moreRevisions:"更多历史版本",upgradeTips:"当前仅展示7天内的历史版本,参加免费计划或升级团队可查看全部版本记录。",upgradeHelp:"升级团队"},empty:{welcome:"开始你的设计",tips:"创建高保真设计、交互原型,多人实时编辑"},currentProject:"当前项目"},editor:{clickAndUpload:"点击上传",applyOriginalSize:"按照原始尺寸",commonlyUsedColor:"常用颜色",solidFill:"纯色",linearFill:"线性渐变",radialFill:"径向渐变",append:"添加",up:"上移",down:"下移",addChild:"添加子项",mergeCells:"合并单元格",splitCells:"拆分单元格",cleanStyle:"清除格式",cleanContent:"清除内容",row:"行",column:"列",unshiftColumn:"左侧插入1列",unshiftColumns:"左侧插入3列",pushColumn:"右侧插入1列",pushColumns:"右侧插入3列",unshiftRow:"上方插入1行",unshiftRows:"上方插入3行",pushRow:"下方插入1行",pushRows:"下方插入3行",dragToAddRows:"点击或拖拽以添加行",dragToAddColumns:"点击或拖拽以添加列",tableInfo:"行:{0},列:{1}",deletColumns:"删除所在列",deletRows:"删除所在行",contentType:"单元格类型",convertToText:"文本",convertToCheckBox:"复选框"},pc:{name:"摹客RP",homepage:"首页",logout:"退出登录",team:{change:{label:"切换团队"},name:{label:"名称"},role:{label:"身份",value:{superAdministrator:"超级管理员",administrator:"管理员",member:"成员",visitor:"协同人"},ability:{administrator:"管理员(全部功能)",member:"成员(可编辑和设计)",visitor:"协同人(仅可查看、评论和下载)"}},homepage:{label:"团队首页",url:"https://app.mockplus.cn/team/{0}"},upgrade:{content:"通用版不支持此功能,请参加免费计划或升级团队后使用。",activity:"参加免费计划",buy:"升级团队",buyNow:"立即升级"},create:{title:"新建团队",label:"在新团队中开始你的设计",placeholder:"请输入团队名称",value:"{0}的团队"}},app:{createLabel:"项目",appsIsMaximum:"当前团队项目数量已达上限,请升级团队后重试。",newApp:"新建",create:{title:"新建项目"},user:{label:"作者"},time:{create:"创建时间",update:"更新时间"},name:{label:"名称",value:"新项目",placeholder:"项目名称"},type:{label:"项目类型",recent:"最近更新",star:"我的收藏",myCreate:"我创建的",all:"全部",recycle:"回收站",achive:"已归档",private:{value:"私有",explain:"仅项目内成员可见"},teamApp:{value:"团队",explain:"团队的所有成员都可见"}},appSet:{create:{title:"创建新项目集"},name:{placeholder:"请输入项目集名称"},parent:{placeholder:"根目录"}},restore:"恢复",clear:{value:"清除",title:"清除后不可恢复,确定要清除吗?"},star:"收藏",unStar:"取消收藏",move:"移动",delete:"确定要删除“{0}”吗?",noContent:"抱歉,暂无内容",search:"搜索",screen:"筛选",module:{rp:{label:"仅RP项目"},all:"全部项目"},demo:"演示",member:{label:"项目成员",authorization:"权限管理",search:"搜索",invitation:{label:"邀请新成员",link:"邀请链接",copyLink:"复制链接",term:"链接有效期",invalid:{label:"{0}天",content:"此链接将在{0}天后失效"},forever:{label:"永久",content:"此链接将永久有效"},fullStarffed:{tipOne:"成员人数已达",tipTwo:"人,请扩容后再添加更多成员。",expansion:"立即扩容"},overflow:{title:"成员数量已超出限制,请联系摹客客服处理。",contact:"联系客服"}},department:"所属部门",addDepartment:"添加部门",submit:"提交",submitSuccess:"提交成功",ungrouped:"未分组",lastSelection:"上次的选择",noMembers:"团队中还未加入其他成员",removeParent:{group:"父级项目集的部门禁用,请在父级的成员管理中取消选择。",member:"父级项目集的成员禁用,请在父级的成员管理中取消勾选。",link:"https://help.mockplus.cn/p/238"},removeCreator:"无法移除项目创建人"},width:"宽",height:"高"},user:{email:{placeholder:"邮箱/摹客账号",noValue:"请输入格式正确邮箱。",register:{placeholder:"请输入注册邮箱"}},password:{placeholder:"密码",register:{placeholder:"请输入登录密码"},repeat:"请再次输入密码",forgot:"忘记密码",noValue:"密码长度为6-20。",different:"两次密码输入不相同。"},vocation:{value:{pm:"产品经理",projectManager:"项目经理",designer:"设计师",developer:"开发工程师",operator:"运营人员",other:"其他"},placeholder:"请选择你的职业"},noUser:"还没有账号?",register:{link:"立即注册",value:"注册"},agree:{read:"我已仔细阅读并同意",value:"《摹客使用协议》"},login:{title:"摹客RP",content:"让设计更快更简单",value:"登录",hasAccount:"已有账号?",link:"立即登录",linkToWebsite:"",networkError:"网络异常,请检查后重试"},admin:{label:"账户管理",link:"https://www.mockplus.cn/me"},guest:{cannotEdit:"此客户端仅用于项目编辑\n协同人没有权限",contactAdministrator:"请联系团队管理员修改身份后再试"},switch:"切换账号"}},theme:{apply:"应用并关闭",cancel:"取消"},property:{properties:"属性",interactions:"交互",propertyNames:{fill:"填充",bgcolor:"背景色",hoverFill:"悬停背景",forgetColor:"前景色",buttonColor:"按钮色",checkedColor:"选中颜色",checkedBgcolor:"选中背景",stroke:"边框",lineStroke:"线条",checkedUnderbar:"选中标识条",border:"边框",radius:"圆角",text:"文本样式",checkedText:"选中文本样式",defaultText:"默认文本样式",multiText:"排版",polygon:"多边形",icon:"图标",iconColor:"图标颜色",color:"颜色",img:"图片",iconSize:"图标大小",layout:"布局",container:"容器",shadow:"阴影",line:"线段",lineHeight:"行高",inputModel:"输入类型",arrow:"箭头",placeholder:"占位文字",placeholderColor:"占位文字颜色",angle:"旋转",close:"闭合",controls:"显示控制条",autoPlay:"自动播放",hoverTextStyle:"链接样式",checked:"选中",trackStyle:"轨道样式",progressStyle:"进度样式",progress:"进度",progressColor:"进度颜色",trackFill:"轨道颜色",indicatorColor:"滑块颜色",separator:"分隔线",separatorRatio:"分隔线高度",keyboard:"键盘类型",featureButtonColor:"功能键颜色",fontColor:"文字颜色",textBgColor:"文本背景色",defaultSelected:"选中",defaultOpen:"默认开启",padding:"内边距",extensionLink:"外部链接",remark:"备注",blur:"模糊",colorFilter:"调整颜色"},component:{alignLeft:"左对齐",alignVerticalCenter:"水平居中对齐",alignRight:"右对齐",alignTop:"顶对齐",alignJustify:"两端对齐",alignHorizontalCenter:"垂直居中对齐",alignBottom:"底对齐",alignAverageHorizontal:"水平等距",alignAverageVertical:"垂直等距",showComp:"显示",hideComp:"隐藏",enabledComp:"启用",disabledComp:"禁用",selectComp:"选择了 {0} 个组件",opacity:"不透明度",clipPath:"裁剪路径",openPath:"打开路径",closePath:"闭合路径",segRadius:"圆角",straight:"笔直",mirrored:"对称",disconnected:"分离",asymmetric:"不对称",shape:"外形",text:"文本",extend:"扩展",relation:{label:"关联",add:"添加链接",init:{specificationDocument:"查看规范文档",componentCode:"查看组件代码",visualAnnotation:"查看视觉标注"}},border:{left:"左边框",right:"右边框",bottom:"下边框",top:"上边框"},bounds:{lockRatio:"锁定宽高比",flipHorizontal:"水平翻转",flipVertical:"垂直翻转",fixedWidth:"固定宽度",fixedHeight:"固定高度",horizontalCenter:"水平居中",verticalCenter:"垂直居中",responsive:"启用响应式布局",auto:"自动",manual:"手动"},cell:{rowHeight:"行高",rowCount:"行数",itemHeight:"子项高度",itemWidth:"子项宽度",columnWidth:"列宽",columnCount:"列数",columnGap:"列间距",rowGap:"行间距",gap:"间距"},container:{scroll:"支持滚动",showScroll:"显示滚动条"},img:{upLoadImg:"上传图片",fit:"填充",tile:"平铺",original:"适应",stretch:"拉伸",defaultStyle:"默认样式"},colorFilter:{brightness:"亮度",contrast:"对比度",hueRotate:"色相",saturate:"饱和度",invert:"反相",revert:"恢复"},layout:{vertical:"垂直",horizontal:"水平",gap:"间距"},line:{startArrow:"起点",endArrow:"终点",none:"无端点"},multiText:{lineHeight:"行高",wrap:"自动换行",autoSize:"自动大小",indent:"首行缩进",vertical:"竖排"},polygon:{sideCount:"边数"},radius:{allRadius:"全部圆角",eachRadius:"单个圆角",isPercent:"百分比圆角"},textStyle:{richText:"富文本",bold:"加粗",italic:"斜体",underline:"下划线",deleteline:"删除线",MicrosoftYahei:"微软雅黑",pingfang:"苹方",SimSun:"宋体",FangSong:"仿宋",KaiTi:"楷体",SimHei:"黑体",letterSpacing:"字间距",olist:"编号",ulist:"项目符号"},stroke:{thickness:"宽度",dash:"虚线",gap:"间隔",buttCap:"平头端点",roundCap:"圆头端点",squareCap:"矩形端点",miterJoin:"斜接连接",roundJoin:"圆角连接",bevelJoin:"斜面连接",centerStroke:"居中描边",innerStroke:"内描边",outerStroke:"外描边"},keyboard:{letter:"字母",numeric:"数字",symbol:"符号"},direction:{top:"上",left:"左"},inputModel:{normal:"文字",numeric:"数字",password:"密码"},tree:{levelIndent:"缩进",treeExpand:"按钮",treeNode:"图标",treeCheckbox:"复选框",itemText:"项目",triangle:"三角",plus:"加号",arrow:"箭头"},table:{rowHeight:"行高",columnWidth:"列宽",border:"边框",fill:"填充",rowLine:"行线",columnLine:"列线"}},page:{resetSize:"设置为默认尺寸"},interaction:{fragmentAction:"画板交互",invalidTarget:"失效目标",invalidState:"失效状态",invalidFragment:"失效画板",addAction:"添加交互",home:"首页",back:"上一页",actionOrder:"命令",autoRevert:"自动还原",parallel:"同时开始",compCommand:"[{0}] {1}: {2}",pageCommand:"跳转到页面: {0}",fragmentCommand:"显示画板: {0}",closeFragmentCommand:"关闭画板: {0}",linkCommand:"打开链接: {0}",eventType:"触发",command:"命令",selectTarget:"目标",currentComp:"自己",currentFragment:"此画板",switchPage:"页面跳转",closeArtboard:"关闭画板",popUpArtboard:"显示画板",triggerconditions:{click:"点击后",doubleClick:"双击后",contextMenu:"右键后",mouseDown:"鼠标按下后",mouseUp:"鼠标松开后",mouseEnter:"鼠标进入后",mouseLeave:"鼠标离开后",loaded:"载入时",afterMove:"移动后",afterZoom:"缩放后",afterRotate:"旋转后",afterVisible:"显示后",afterHide:"隐藏后",afterResize:"调整尺寸后",checked:"选中后",unChecked:"取消选中后",toggleCheck:"选中改变后",focus:"获取焦点后",blur:"失去焦点后",scroll:"滚动时",on:"开启",off:"关闭",toggle:"开启/关闭"},pageIntro:"{0},跳转页面{1}",fragmentIntro1:"{0},关闭{1}",fragmentIntro2:"{0},显示{1}",compIntro:"{0},对{1}执行{2}",compIntro2:"{0},滚动到{1}",timing:"缓动",duration:"时长",delay:"延时",loop:"循环执行",transitions:"效果",fromCurrent:"相对值",content:"内容",width:"宽度",height:"高度",rotate:"角度",state:"状态",show:"显示",hidden:"隐藏",toggle:"切换",toggle2:"切换隐藏/显示",horizontal:"水平",vertical:"垂直",both:"同时",mode:"位置",forceFront:"始终置顶",showBackground:"显示遮罩",clickExternalClose:"点击遮罩时关闭",artboardListTutorialUrl:"https://help.mockplus.cn/p/358#4",siteName:"名称",url:"地址",removeLink:"删除",addLink:"添加",noPrototype:"暂无文件",howToUploadAxureFiles:"如何关联Axure文件?",axureLinkTutorialUrl:"https://help.mockplus.cn/p/379#5",selectPrototype:"选择文件",searchPrototype:"搜索",noPage:"暂无页面",selectPage:"选择页面",searchPage:"搜索",web:"网页",openWithSelf:"在当前窗口打开",click:"点击",doubleClick:"双击",contextMenu:"右键",mouseDown:"鼠标按下",mouseUp:"鼠标松开",mouseEnter:"鼠标进入",mouseLeave:"鼠标离开",loaded:"载入时",afterMove:"移动后",afterZoom:"缩放后",afterRotate:"旋转后",afterVisible:"显示后",afterHide:"隐藏后",afterResize:"调整尺寸后",checked:"选中",unChecked:"取消选中",toggleCheck:"选中改变",focus:"焦点",blur:"失去焦点",scroll:"滚动",move:"移动",moveBy:"移动",moveTo:"移动到",resize:"调整尺寸",resizeBy:"尺寸",resizeTo:"尺寸至",rotation:"旋转",rotationBy:"旋转",rotationTo:"旋转至",toggleVisible:"显示/隐藏",zoom:"缩放",zoomBy:"缩放",zoomTo:"缩放至",toggleState:"切换状态",switchContent:"切换内容",prev:"上一个",next:"下一个",none:"无",pushToLeft:"右侧推入",pushToRight:"左侧推入",pushToTop:"底部推入",pushToBottom:"顶部推入",slideToLeft:"右侧滑入",slideToRight:"左侧滑入",slideToTop:"底部滑入",slideToBottom:"顶部滑入",fadeIn:"淡入",zoomIn:"放大弹出",slideFromLeft:"右侧滑出",slideFromRight:"左侧滑出",slideFromTop:"底部滑出",slideFromBottom:"顶部滑出",fadeOut:"淡出",zoomOut:"缩小退出",flipInLeft:"左侧翻出",flipInRight:"右侧翻出",flipInTop:"顶部翻出",flipInBottom:"底部翻出",custom:"自定义",center:"居中",left:"左侧",right:"右侧",top:"顶部",bottom:"底部",noTiming:"无",linear:"线性",easeIn:"加速",easeOut:"减速",easeInOut:"变速"}},state:{state:"状态",originalState:"正常",componentState:"默认状态 - {0}",customState:"自定义状态",hover:"悬停",pressed:"按下",checked:"选中",focus:"焦点",disabled:"禁用",default:"默认",addState:"添加状态"},menu:{applyFill:"应用到填充",applyStroke:"应用到边框",applyText:"应用到文字",align:"顺序",bringToFront:"置为顶层",frontForward:"上移一层",backForward:"下移一层",sendToBack:"置为底层",sameSize:"调整大小",minWidth:"最小等宽",maxWidth:"最大等宽",minHeight:"最小等高",maxHeight:"最大等高",addColor:"把颜色存为资源",addTypography:"把字符样式存为资源",addComponent:"把组件存为资源",unlock:"解除锁定",lock:"锁定",unlockAll:"全部解锁",selectionGroup:"选项组",flip:"翻转",horizontalFlip:"水平翻转",verticalFlip:"垂直翻转",autoFillText:"自动填充",editStyle:"高级编辑",path:"布尔运算",exclude:"排除",subtract:"减去",unite:"联合",intersect:"相交",divide:"取消合成",convertToPath:"转为路径",detachSymbol:"从资源中脱离",cropImage:"裁切",crop:"裁剪",convertToPanel:"转为面板",detachPanel:"从面板中脱离",revertOriginSize:"恢复原始尺寸"},preview:{alwaysShowLinkArea:"始终显示链接区域",showLinkAreaWhenHovered:"鼠标经过时,显示链接区域",autoScreen:"自动适应屏幕",noBoundary:"显示画板外内容",showControllerPanel:"显示控制面板",mobileType:"设备外壳",qrcode:"二维码",controlPanel:"控制面板",home:"回到首页",backward:"后退",forward:"前进",exit:"退出演示",shareUrl:"分享演示链接",shareRunTitile:"分享演示链接",copy:"复制",enablePass:"启用密码",inputPass:"请设置密码",setPassInputError:"请输入字母、数字或者符号",setPassEmptyError:"需设置密码后,访问密码才会生效",updateSuccess:"设置成功",linkText:"演示链接:{0}",pwdText:"访问密码:{0}",iosExitText:"从屏幕边缘右滑退出演示",projectNotExistOrDeleted:"项目不存在或已经被删除。",noPermissionText:"无法查看此项目",linkHasNotValidText:"此链接已失效",resetLinkSuccess:"重置成功",nonPage:"当前项目中没有页面。",onlyMember:"仅项目成员才能查看",loginTip:"请登录后继续"},general:{multipleSelect:"多选",ignoreArchiveTip:"不再提示",gotIt:"我知道了",back:"返回",ok:"确定",confirm:"确认",cancel:"取消",close:"关闭",delete:"删除",clone:"克隆",copy:"复制",cut:"剪切",paste:"粘贴",selectAll:"全选",rename:"重命名",edit:"编辑",none:"无",width:"宽",height:"高",exit:"退出",preserve:"保存",or:"或",refresh:"刷新",download:"下载",enterFullScreen:"全屏",leaveFullScreen:"退出全屏"},alert:{refresh:"刷新",pageHasBeenDeleted:"抱歉,当前页面已被其他成员删除。",makeSureToDeletePage:"确定要删除当前页面吗?",makeSureToDeletePageGroup:"确定要删除当前分组吗?",networkDisconnected:"抱歉,网络连接异常,请检查网络并刷新页面。",afk:"由于长时间未操作,已经保存你的数据并断开连接。\n继续工作请刷新页面。",fileTypeError:"文件类型不支持。",errorSelectingFileType:"请选择的文件格式:\n{0}",failToUpload:"上传失败,请重试。",alreadyExistPageAction:"此组件已经存在一个页面交互,确定替换吗?",alreadyExistFragmentAction:"此组件已经存在一个画板的交互,确定替换吗?",imageSizeExceed:"抱歉,仅支持 10M 以内的图片。",imageDimensionExceed:"抱歉,仅支持 10000 x 10000像素以内的图片。",videoSizeExceed:"抱歉,仅支持 10M 以内的视频。",offlineEditing:"离线编辑中...",offlineSaving:"本地保存中...",saving:"保存中...",saveSuccessfully:"保存成功",failToSave:"保存失败",unableToCreateNode:"抱歉,网络已断开,不能创建页面或分组。",unableToMoveNode:"抱歉,网络已断开,不能移动页面或分组。",unableToRemoveNode:"抱歉,网络已断开,不能删除页面或分组。",unableToEditNode:"抱歉,网络已断开,不能修改页面或分组。",unableToCopyNode:"抱歉,网络已断开,请在网络恢复后创建页面。",unableToUpload:"抱歉,网络已断开,请在网络恢复后上传。",unableToHideNode:"抱歉,网络已断开,不能隐藏页面。",networkReconnectionSuccessful:"网络已重新连接",saveOfflineData:"同步离线数据中...",manualSaveOfflineData:"数据保存中,请稍候...",failedToJoinProjectCollaboration:"加入项目协作失败",multiplayerCollaborativeSuccess:"多人协同初始化成功",mayCauseCompsToBeDeleted:"当前操作可能导致组件被删除,确定继续吗?",selectGroupTarget:"如果你需要选中组,可以这样操作:",makeSureToMergeCells:"合并后的单元格将只保留左上角单元格中的值,确定继续吗?",trashClearAlert:"清除后不可恢复,确定要清除吗?",trashPageAlert:"已删除的页面需恢复后才可编辑。",trashRecoverAlert:"确定将所有页面放回原处吗?此操作不支持恢复。",headCannotBeMoved:"表头不能移动。",cannotMoveToHeader:"不能移动到表头。",cannotMoveRow1:"抱歉,不可只移动合并单元格中的部分行,请拆分单元格后再试。",cannotMoveRow2:"抱歉,不可将行移动到合并单元格中,请拆分单元格后再试。",cannotMoveColumn1:"抱歉,不可只移动合并单元格中的部分列,请拆分单元格后再试。",cannotMoveColumn2:"抱歉,不可将列移动到合并单元格中,请拆分单元格后再试。",offlineAlert:"网络异常,部分功能禁用,请检查网络连接。",socketOfflineAlert:"网络异常,部分功能禁用,请尝试使用手动保存。",networkOfflineAlert:"离线编辑中,部分功能禁用,请检查网络连接。",offlineMsg3:"页面尚未加载,请在网络恢复后重试",imageCropFail:"图片裁切失败,请重试",packageLoading:"文件正在准备中,请耐心等待,可能需要几分钟。",successMessage:"离线演示包打包成功!",downloadPreviewDemoZIP:"未能成功下载离线演示包,请重试。"},tips:{clickCompnentToSwitchState:"点击组件以切换状态",interactionPrompt1:"选中组件或画板,点击 “添加交互”",interactionPrompt2:"或拖拽组件右上角的链接点,至任意组件或页面",interactionPrompt2DT:"或拖拽组件右上角的小红点,至任意画板或页面",contentPanelTips:"小提示:\n拖拽链接点到一个辅助画板,将其添加为层;\n可添加多个层;\n同一个辅助画板只能被添加一次。",doubleClickComponent:"双击进入编辑状态",doubleClickUploadVideo:"双击上传视频",inputSiteName:"名称",inputUrl:"地址",inputMaxLength:"名称不能超过{0}个字符",revertLinear:"反转",revertRadial:"反转",rotationAngle:"调整角度",pleaseInput:"请输入{0}",pleaseDragInTheComp:"",copySuccess:"复制成功",clickSelectTarget:"点击选择目标",selectTarget:"选择触发方式",selectCommand:"选择命令",selectContent:"选择内容",selectState:"选择状态",revert:"还原",changeProjectTypePrompt1:"项目类型将修改为 {0}",changeProjectTypePrompt2:"新建画板会应用新的项目尺寸,现有画板的尺寸不受影响,确定继续吗?",zoomOutline:"缩放",resizeTo:"调整尺寸至",scaleFromTopLeft:"左上扩展",scaleFromTopRight:"右上扩展",scaleFromBottomRight:"右下扩展",scaleFromBottomLeft:"左下扩展",scaleFromTop:"顶部扩展",scaleFromRight:"右侧扩展",scaleFromBottom:"底部扩展",scaleFromLeft:"左侧扩展",scaleFromCenter:"中心扩展",appSizeChangedByOther:"其他成员修改了项目类型,已同步相关设置。",artboardPanelTip:"拖拽交互点至画板名称以添加交互",noSearchResultsWereFound:"未搜索到结果",pageAddOver:"当前项目的页面数量已达{0}个,升级团队可创建更多页面。",pageRecoverOver:"当前项目的页面数量已达{0}个,请升级团队后再恢复页面。",shareSetting:"修改默认演示设置后,演示链接会更新,请重新复制并分享",notSearchResult:"未搜索到结果",resourceExpired:"相关资源已被删除,确定将当前组件从资源中脱离以继续编辑吗?",tutorial:"查看教程",officialWebsite:"访问官网",activity:{freePrograms:"用摹客RP,永久免费做设计!",partInFreePrograms:"👆 点击参与免费计划"},design:"协作和交付",nonPrivateProject:"此项目为团队所有人可见\n请修改为私有项目后,再设置项目成员",cannotUseOfflineDome:""},placeholders:{renameHolder:"页面名称",textInputHolder:"请输入文本内容"},lark:{larkAppID:"cli_9d2d59be33e0910c",previewPrompt:"邀请你查看摹客项目演示,点击链接即可进入演示。",openInLark:"在飞书打开:",openInBrowser:"在浏览器打开:"},extend:{chrome:{noExtend:{colorExtractor:"吸管工具仅支持在Chrome浏览器上使用,需安装插件。"},tutorialURL:"https://help.mockplus.cn/p/370#6",downloadUrl:"https://img02.mockplus.cn/idoc/plugins/mockplus_for_chrome_v1.0.3.zip"},tutorial:"查看教程",download:"下载插件",version:"插件版本过低,请下载安装最新版本。"},login:{title:"密码登录",accountPlaceHolder:"邮箱或摹客账号",passwordPlaceHolder:"密码",noAccount:"还没有账号?",registerNow:"立即注册",forgetPassword:"忘记密码",loginBtn:"登录",emailValidate:"请输入格式正确的邮箱。",passwordValidate:"密码长度为6-20。"},register:{title:"注册账户",passwordValidateAgin:"两次密码输入不相同。",agreementURL:"https://www.mockplus.cn/tos",accountPlaceHolder:"请输入注册邮箱",passwordPlaceHolder:"请输入登录密码",passwordAginPlaceHolder:"请再次输入密码",hadRead:"我已仔细阅读并同意",agreement:"《摹客使用协议》",register:"注册",hadAccount:"已有账号?",loginNow:"立即登录",readValidate:"请阅读并同意协议。"},example:{label:"模板例子",tip:{partOne:"你正在体验摹客在线设计,",partTwo:"或",partThree:"保存本项目至当前团队。",partFour:"点击保存",partFive:"本项目至当前团队。"},saving:"项目保存中...",savingError:"保存失败,请重新尝试",type:{all:"全部"},nocontent:"暂无内容"},selectionGroup:{selectionGroupSetting:"选项组设置",rowCount:"行数",columnCount:"列数",rowGap:"行间距",columnGap:"列间距",iconEditButton:"点击切换到图标库以选择图标",imageEditButton:"点击上传图片"},customization:{huawei:{standard:{tips:"设计规范",label:"体验规范",management:"管理侧规范",officialWebsite:"官网规范",mobile:"移动端规范",operationFlow:"业务流程规范"},libraries:{icon:"图标资源",image:"图片资源"},guide:"使用指南",tutorial:"指导教程"}},share:{label:"分享",shareApp:"分享此项目",privateShare:"私密分享",publicShare:"公开分享",resetLink:"重置链接",privateShareTips:"适用于设计交付和评审,仅项目成员可打开链接。",publicShareTips:"仅用于演示和预览设计,所有人都可打开链接。",publicShareTipsInPrivateVersion:"仅用于演示和预览设计,登录后即可打开链接。",copyLink:"复制链接",inviteTips:"邀请有效期为7天,过期后项目成员仍可以打开链接",inviteToApp:"同时邀请对方成为项目成员",notCanInviteToApp:"如果对方不是此项目成员,不能查看项目",onlyShareCurrentModel:"仅分享当前版块",iframeShare:"嵌入分享",iframeShareTips:"用于嵌入第三方应用,所有人都可打开链接。",shareModule:{label:"模块",prototypeModule:"原型稿",designModule:"设计稿",rpModule:"RP设计稿"},shareContent:{label:"内容",idocContent:"画板界面",previewContent:"演示界面"}},message:{label:"消息和申请",teamMessage:"项目消息",aboutMe:"与我相关",apply:"申请消息",markRead:"标记已读",oneClickRead:"一键已读",linkToAll:"查看全部",hadRead:"已读",applyToViewApp:"{0}({1})申请查看项目“",applyToViewAppRight:"”",agree:"同意",disagree:"拒绝",agreed:"已同意",disagreed:"已拒绝",remark:"备注:",noContent:"暂时没有新消息"},contact:{leftTop:"你好,我是",name:"Thomas",addMe:"立即扫码加我吧!",role:"摹客百科全书级\n产品顾问",bottom:"或邮件至: service@jongde.com"},crashError:{title:"抱歉,出现异常问题",label:"请尝试刷新,如果问题反复出现,请"},file:{importMrpLabel:"导入mrp文件",importMrpTitle:"正在导入mrp文件,请稍候…",importError:"抱歉,导入失败。如需帮助,请",importErrorEnd:"。",importSuccess:"导入成功",importMrpFileError:"无效的文件类型,请选择mrp文件进行导入。",importNetworkError:"网络异常,导入失败,请检查网络后重试。",exportMrpLabel:"导出mrp文件",exportMrpTitle:"文件正在准备中,请耐心等待,可能需要几分钟。",exportError:"抱歉,导出失败,请重试。",exportMrpSuccess:"mrp文件打包成功,请点击下载。",upgradeToExportMrp:""},support:{label:"联系我们",url:"https://www.mockplus.cn/support"},manualSave:{save:"保存",saving:"保存中...",saveSuccessfully:"保存成功",savingError:"保存失败,请重试",offlineEditing:"离线中..."}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={common:{title:"{0} - Mockplus",mock:"#摹客"},application:{flow:"Connect mode",pen:"Pen",pencil:"Pencil",group:"Group",ungroup:"Ungroup",undo:"Undo",redo:"Redo",showStatePanel:"State panel",hiddenStatePanel:"State panel",showArtboardPanel:"Artboard list",hiddenArtboardPanel:"Artboard list",artboardPanel:"Artboards",play:"Preview",playFromFirst:"Start from homepage",playFromCurrent:"Start from current page",switchRightPanelVisible:"Show/Hide right panel",newArtboard:"Add artboard",newSubArtboard:"Add sub-artboard",help:"Help",navigation:"Navigation",fullScreen:"Fullscreen",showLeftPanel:"Show left panel",showRightPanel:"Show right panel",title:"{0} - Mockplus",shortCut:"Shortcuts",tutorial:"Tutorials",feedback:"Feedback",home:"Our website",showGrid:"Show grid",showLayout:"Show layout",showRuler:"Show rulers",showGuideline:"Show guides",removeAllVerticalGuides:"Remove all vertical guides",removeAllHorizontalGuides:"Remove all horizontal guides",removeGuides:"Remove guide",gridSettings:"Grid settings",layoutSettings:"Layout settings",alginConfig:"Advanced measurements",tutorialURL:"https://help.mockplus.com/rp/post",homeURL:"https://www.mockplus.com?home=1",feedbackURL:"https://www.mockplus.com/community/Cloud",buyURL:"https://www.mockplus.com/buy/idoc",forgotPassword:"https://user.mockplus.com/forgotpassword",exampleListURL:"",coopers:"{0} +{1} more",zoom:"Scale",pageCount:"{0} page (s) in total",pageCount2:"{0} page(s) in total",zoom4canvas:"Fit to all artboards",zoom4selection:"Fit to selection",zoom4artboard:"Fit to artboard",option:"Preferences",scaleBorderAndRadius:"",scaleShadow:"",settings:"Settings",generalSettings:"General options",offlineDemo:"Download HTML prototype",backToHomePage:"Back to home",exitEdit:"Exit edit mode"},workspace:{artboard:{downloadingMessage:"Exporting the image(s). This may take some time. Please wait patiently.",downloadedMessage:"Image(s) exported. Please click to download.",downloadErrorMessage:"Download failed. Error:",copy:"copy"},grid:{blockSize:"Grid block size",thickLinesEvery:"Thick lines every",colors:"Colors",makeDefault:"Make default settings",dark:"Dark",light:"Light",blocks:"blocks"},layout:{columns:"Columns",totalWidth:"Total width",offset:"Offset",center:"Center",columnCount:"Columns",gutterOnOutside:"Gutter on outside",gutterWidth:"Gutter width",columnWidth:"Column width",rows:"Rows",gutterHeight:"Gutter height",rowHeight:"Row height",visuals:"Visuals",fillGrid:"Fill grid",strokeOutline:"Stroke outline",drawAllGridLines:"Draw all horizontal lines"},alignType:{normalAlign:"Basic alignment",equidistantAlign:"Even distribution",distanceAlign:"Spacing specs"},backToEditor:"Return",statusBar:{projectType:"Project type",phone:"Mobile",pad:"Tablet",web:"Web",custom:"Custom",blank:"White board",huawei:"Huawei"},generalSettings:{pasteOffset:{label:"Offset pasted object",x:"X",y:"Y"},pasteAtTop:"Always bring pasted object to front",showHiddenArea:"Show hidden area",showLayerNameInPropertiesPanel:"Show layer names on the Property panel"}},resource:{project:"Pages",artboard:"Artboard",component:"Components",icon:"Icons",resource:"Assets",outline:"Layers",searchPage:"Search",searchComponent:"Search",searchIcon:"Search",searchLib:"Search",searchLayer:"Search",recycleBin:"Recycle Bin",components:{basic:"Basic",container:"Containers",common:"Common",flow:"Shapes",antDesign:"Ant Design",comment:"Markup",text:"Text",textContent:"Type something",rect:"Rectangle",ellipse:"Ellipse",image:"Image",line:"Line",triangle:"Triangle",polygon:"Polygon",paragraph:"Text",input:"Input Box",textarea:"Text Area",pureText:"Text",icon:"Icon",canvasPanel:"Panel",contentPanel:"Content Panel",listLayoutPanel:"List Panel",stackPanel:"Stack Panel",wrapPanel:"Wrap Panel",selectPanel:"Select Panel",button:"Button",iconButton:"Icon Button",switch:"Switch",checkbox:"Checkbox",checkboxGroup:"Checkbox Group",radio:"Radio Button",radioButtonGroup:"Radio Button Group",select:"Droplist",list:"List",numericStep:"Number Input",breadCrumbs:"Breadcrumb",segmentsControl:"Scope Bar",selectTab:"Tab Bar",slider:"Slider",progressBar:"Progress Bar",circleProgressBar:"Progress View",score:"Rating Bar",video:"Video",qrcode:"QR Code",keyboard:"Keyboard",audio:"Audio",tree:"Tree",table:"Table",hotArea:"Hotspot",arrow:"Arrow",callOut:"Circle Marker",stickNote:"Sticky Note",drop:"Drop Marker",dropDown:"Droplist options",snapshot:"Snapshot",verticalCurly:"V.Curly Brace",horizontalCurly:"H.Curly Brace",verticalSeparatorLine:"V.Rule",horizontalSeparatorLine:"H.Rule",labelInput:"Label Text Input",searchBox:"Search Box",link:"Link",path:"Path",compoundPath:"Compound Path",connector:"Connector",group:"Group"},componentsText:{itemText:"Item",optionText:"Item",newItem:"New item",listItemText:"Item",breadCrumbsText:"Level 1|Level 2|Level 3|Level 4",qrCode:"https://www.mockplus.com",selectTeam:"Select team",selectProject:"Select project",snapshotText:"Double click to insert Design page\nand page's changes will be auto updated",snapshotCanNotFound:"Unable to find Design page",snapshotInvalid:"Snapshot invalidated",VPCImageURL:"https://img02.mockplus.cn",replaceVPCImageURL:"http://mockplus-static.oss-cn-hangzhou-internal.aliyuncs.com",snapshotTitle:"Insert Design page",noContent:"Nothing here"},flow:{rectangle:"Rectangle",parallelogram:"Parallelogram",diamond:"Diamond",circle:"Circle",ellipse:"Ellipse",triangle:"Triangle",pentagon:"Pentagon",roundRectangle:"Rounded Rectangle",semicircle:"Semicircle",octagon:"Octagon",keying:"Keying",start:"Start/End",rightTriangle:"Right Triangle",trapezoid:"Trapezoid",hexagon:"Hexagon",drop:"Water Drop",heart:"Heart",sector:"Sector",star:"Star",cloud:"Cloud",dataBase:"Database",punchedCard:"Card",roundedSpeechBubble:"Chat Bubble",squareSpeechBubble:"Chat Box",rightArrowButton:"Right Arrow Button",leftArrowButton:"Left Arrow Button",offPageConnector:"Off Page Connector",ready:"Ready",beveledRectangle:"Beveled Rectangle",sectorDiagram:"Sector Diagram",cross:"Cross",limitCycle:"Limit Cycle",manualInput:"Manual Input",punchedTape:"Punched Tape",display:"Display",externalData:"External Data",manualOperation:"Manual Operation",rightArrow:"Arrow Right",leftArrow:"Arrow Left",horizontalDoubleArrow:"Left and Right Arrow",upArrow:"Arrow Up",downArrow:"Arrow Down",verticalDoubleArrow:"Up and Down Arrow",upGrid:"Up Grid",leftGrid:"Left Grid",classicTab:"Classic Tab",queueData:"Queue Data",delay:"Delay",APQC:"APQC",collate:"Collate",leftBracket:"Left Bracket",rightBracket:"Right Bracket",leftBrace:"Left Brace",rightBrace:"Right Brace",document:"Document",pieChart:"Pie",rightAngle:"Right Angle",rightTurn:"Right Turn",leftTurn:"Left Turn"},icons:{lightIcon:"Thin",boldIcon:"Bold",pay:"Payment",office:"Office",chart:"Chart",gesture:"Gesture",social:"Social ",device:"Device",traffic:"Transportation",symbol:"Symbol",direction:"Direction",media:"Multimedia",edit:"Edit",treatment:"Treatment",letter:"Number/Letter"},libs:{arrangementMode:"Layout",component:"Components",color:"Colors",typography:"Texts",addLib:"Add {0} to assets",createSymbol:"Create asset",share:"Share",cancelSharing:"Unshare",cancelSharingToAll:"Unshare (to all teams)",placeholder:"Assets from {0}s",shareToMyTeam:"Are you sure you want to share this asset library to the current team?",shareToAllTeams:"Share this asset library to:",cancelShareToMyTeam:"This asset library is being shared with the current team. Are you sure you want to stop sharing it?",cancelShareToAllTeams:"This asset library is being shared with all the teams within the system. Are you sure you want to stop sharing it?",myTeam:"The current team",allTeams:"All teams within the system",sync:"Changes auto-sync to all instances",addGroup:"Add group",management:"Manage assets",defaultGroupName:"New group",moveGroup:'The group "{0}" can\'t be restored once deleted. Are you sure you want to continue?\n If you want to keep {1} asset(s) inside, please move them to another group.',removeGroup:'Are you sure you want to delete the group "{0}"?',noMoveGroup:"Delete assets",moveAssetTo:"Move assets to",moveAsset:"Move",noGroup:"No groups yet",noComponent:"No assets yet",addComponentPlaceholder:"Asset name",addGroupPlaceholder:"Group name",resourceLoadFail:"Sorry, loading error occurred.",reload:"Reload",searchGroup:"Search",cannotModify:"Changes to this asset will auto sync to all instances. Only its creator can edit it.",deleteSyncComponent:"Are you sure you want to delete this asset? This action cannot be undone.",deleteAsyncComponent:"Are you sure you want to delete the asset? This action can't be undone.",deleteSharedComponent:"Shared assets cannot be deleted. You need to unshare the library first.",appName:"From project: {0}",noApp:"From a deleted project",cannotAddRefResource:"You are using a shared asset library. Please switch to the asset library of current project to add a new asset."}},project:{page:"Page",group:"Group",newPage:"Add Page",newGroup:"Add Group",addNew:"Add",childPage:"Child page",childGroup:"Child group",insert:"Insert",undo:"Restore",delete:"Clear",resetAll:"Restore all",clearAll:"Clear all",defaultPageName:"Page 1",undoNow:" Restore now",showPageNumber:"Show page numbers",hiddenPageNumber:"Hide page numbers",showPage:"Show",hiddenPage:"Hide",hiddenPageTip:"In Preview mode, hidden pages are invisible to those without project editing permissions.",mainName:"Main artboard",mainDTName:"Artboard",subArtboard:"Sub-artboard {0}",subDTArtboard:"Artboard {0}",revisions:{title:"Revision history",revert:"Restore this version",noRevision:"This artboard has no any revision history yet.",revertTips:"Are you sure to restore current page to this version? The other pages will not be affected.",tips:"Mockplus will generate revision history automatically. You can freely view and restore previous versions. ",noPageRevisions:"This page has no any revision history yet.",currentVersion:"Current version",revisions:"Revision history",artboard:"Artboards",moreRevisions:"View more",upgradeTips:"Upgrade your team to view more revision histories.",upgradeHelp:"Upgrade now"},empty:{welcome:"Start Designing",tips:"Hi-fi interactive prototyping with real-time collaboration"},currentProject:"Current project"},editor:{clickAndUpload:"Click to upload",applyOriginalSize:"keep original size",commonlyUsedColor:"Favorites",solidFill:"Flat color",linearFill:"Linear gradient",radialFill:"Radial gradient",append:"Add",up:"Move up",down:"Move down",addChild:"Add child item",mergeCells:"Merge cells",splitCells:"Unmerge cells",cleanStyle:"Clear formats",cleanContent:"Clear contents",row:"Row",column:"Column",unshiftColumn:"Insert 1 column left",unshiftColumns:"Insert 3 columns left",pushColumn:"Insert 1 column right",pushColumns:"Insert 3 columns right",unshiftRow:"Insert 1 row above",unshiftRows:"Insert 3 rows above",pushRow:"Insert 1 row below",pushRows:"Insert 3 rows below",dragToAddRows:"Click or drag to add rows",dragToAddColumns:"Click or drag to add columns",tableInfo:"Row: {0}, Column: {1}",deletColumns:"Delete current column",deletRows:"Delete current row",contentType:"Cell type",convertToText:"Text",convertToCheckBox:"Checkbox"},pc:{name:"Mockplus RP",homepage:"Home",logout:"Log out",team:{change:{label:"Switch team"},name:{label:"Name"},role:{label:"Role",value:{superAdministrator:"Super Admin",administrator:"Admin",member:"Member",visitor:"Collaborator"},ability:{administrator:"Admin (all permissions)",member:"Member (edit and design)",visitor:"Collaborator (view, comment and download only)"}},homepage:{label:"Team homepage",url:"https://app.mockplus.com/team/{0}"},upgrade:{content:"",activity:"",buy:"Upgrade now",buyNow:"Upgrade now"},create:{title:"Create new team",label:"Create a team to start designing",placeholder:"Team name",value:"Team of {0}"}},app:{createLabel:"Project",appsIsMaximum:"Max project limit has reached. Please upgrade the team to try again.",newApp:"New",create:{title:"New project"},user:{label:"Creator"},time:{create:"Date created",update:"Last updated"},name:{label:"Name",value:"New project",placeholder:"Project name"},type:{label:"Project type",recent:"Recently edited",star:"My favorites",myCreate:"My projects",all:"All",recycle:"Recycle bin",achive:"Archived projects",private:{value:"Private",explain:"仅项目内成员可见"},teamApp:{value:"Team",explain:"团队的所有成员都可见"}},appSet:{create:{title:"Create project folder"},name:{placeholder:"Project folder name"},parent:{placeholder:"Root"}},restore:"Restore",clear:{value:"Clear",title:"Are you sure you want to clear? This action cannot be undone."},star:"Add to favorites",unStar:"Remove from favorites",move:"Move",delete:'Are you sure you want to delete "{0}"?',noContent:"Nothing created here yet",search:"Search",screen:"Filters",module:{rp:{label:"RP projects"},all:"All projects"},demo:"Preview",member:{label:"Project members",authorization:"Permissions",search:"Search",invitation:{label:"Invite members",link:"Invite link",copyLink:"Copy",term:"Expire after",invalid:{label:"{0} days",content:"This link will expire in {0} days"},forever:{label:"Never",content:"This link will never expire"},fullStarffed:{tipOne:"成员人数已达",tipTwo:"人,请扩容后再添加更多成员。",expansion:"立即扩容"},overflow:{title:"成员数量已超出限制,请联系摹客客服处理。",contact:"联系客服"}},department:"Group",addDepartment:"添加部门",submit:"Submit",submitSuccess:"Done",ungrouped:"Ungrouped",lastSelection:"Last selection",noMembers:"团队中还未加入其他成员",removeParent:{group:"父级项目集的部门禁用,请在父级的成员管理中取消选择。",member:"父级项目集的成员禁用,请在父级的成员管理中取消勾选。",link:"https://help.mockplus.cn/p/238"},removeCreator:"无法移除项目创建人"},width:"W",height:"H"},user:{email:{placeholder:"Email",noValue:"Please enter a valid email address.",register:{placeholder:"Email"}},password:{placeholder:"Password",register:{placeholder:"Password (6-20 characters)"},repeat:"Confirm password",forgot:"Forgot password?",noValue:"The password must be between 6-20 characters long.",different:"Password does not match."},vocation:{value:{pm:"Product manager",projectManager:"Project manager",designer:"Designer",developer:"Developer",operator:"Marketing specialist",other:"Others"},placeholder:"What kind of work do you do?"},noUser:"Don't have an account?",register:{link:"Sign up",value:"Continue"},agree:{read:"By signing up, I agree to Mockplus ",value:"Terms of Service."},login:{title:"Mockplus",content:"Design easier and faster",value:"Sign in",hasAccount:"Already have an account?",link:"Sign in",linkToWebsite:"",networkError:"Network error. Please try again."},admin:{label:"My profile",link:"https://www.mockplus.cn/me"},guest:{cannotEdit:"Collaborators cannot edit or access projects in this desktop app.",contactAdministrator:"Please contact Admin to change your permissions and try again"},switch:"Switch account"}},theme:{apply:"Apply",cancel:"Discard"},property:{properties:"Properties",interactions:"Interactions",propertyNames:{fill:"Fill",bgcolor:"Background color",hoverFill:"Hover color",forgetColor:"Foreground color",buttonColor:"Button color",checkedColor:"Selected color",checkedBgcolor:"Selected background",stroke:"Border",lineStroke:"Connector",checkedUnderbar:"Underline",border:"",radius:"",text:"Text",checkedText:"Selected text style",defaultText:"Default text style",multiText:"",polygon:"Polygon",icon:"Icon",iconColor:"",color:"Color",img:"Image",iconSize:"Icon size",layout:"Layout",container:"",shadow:"Shadow",line:"",lineHeight:"Item height",inputModel:"Input mask",arrow:"Arrow",placeholder:"Placeholder",placeholderColor:"Placeholder color",angle:"Rotation",close:"",controls:"Show controller",autoPlay:"Autoplay",hoverTextStyle:"Link style",checked:"Selected",trackStyle:"Track style",progressStyle:"Progress style",progress:"Value",progressColor:"Progress color",trackFill:"Track color",indicatorColor:"Slider color",separator:"Divider line",separatorRatio:"Divider height",keyboard:"Type",featureButtonColor:"Function key color",fontColor:"Text color",textBgColor:"",defaultSelected:"Selected",defaultOpen:"On",padding:"Padding",extensionLink:"External link",remark:"Notes",blur:"Blur",colorFilter:"Adjust color"},component:{alignLeft:"Align left",alignVerticalCenter:"Align center",alignRight:"Align right",alignTop:"Align top",alignJustify:"Justify",alignHorizontalCenter:"Align middle",alignBottom:"Align bottom",alignAverageHorizontal:"Distribute horizontally",alignAverageVertical:"Distribute vertically",showComp:"Show",hideComp:"Hide",enabledComp:"Enable",disabledComp:"Disable",selectComp:"{0} components selected",opacity:"Opacity",clipPath:"Cut path",openPath:"Open path",closePath:"Close path",segRadius:"Radius",straight:"Straight",mirrored:"Mirrored",disconnected:"Disconnected",asymmetric:"Asymmetric",shape:"Style",text:"Text",extend:"Extension",relation:{label:"Link to",add:"Add new link",init:{specificationDocument:"Style guides",componentCode:"Component codes",visualAnnotation:"Visual specs"}},border:{left:"Left border",right:"Right border",bottom:"Bottom border",top:"Top border"},bounds:{lockRatio:"Maintain aspect ratio",flipHorizontal:"Flip horizontal",flipVertical:"Flip vertical",fixedWidth:"Fixed width",fixedHeight:"Fixed height",horizontalCenter:"Center horizontally",verticalCenter:"Middle vertically",responsive:"Responsive layout",auto:"Auto",manual:"Manual"},cell:{rowHeight:"Row height",rowCount:"Row",itemHeight:"",itemWidth:"",columnWidth:"Column width",columnCount:"Column",columnGap:"Column gap",rowGap:"Row gap",gap:""},container:{scroll:"Scrollable",showScroll:"Show scrollbar"},img:{upLoadImg:"Upload",fit:"Fill",tile:"Tile",original:"Fit",stretch:"Stretch",defaultStyle:"Default style"},colorFilter:{brightness:"Brightness",contrast:"Contrast",hueRotate:"Hue",saturate:"Saturation",invert:"Invert",revert:"Restore"},layout:{vertical:"Vertical",horizontal:"Horizontal",gap:"Gap"},line:{startArrow:"Start",endArrow:"End",none:"None"},multiText:{lineHeight:"Line spacing",wrap:"WordWrap",autoSize:"AutoSize",indent:"Text-indent",vertical:"Vertical"},polygon:{sideCount:"Sides"},radius:{allRadius:"All corners",eachRadius:"Individual corner",isPercent:"By percentage"},textStyle:{richText:"Rich text",bold:"Bold",italic:"Italic",underline:"Underline",deleteline:"Strikethrough",MicrosoftYahei:"Microsoft Yahei",pingfang:"PingFang SC",SimSun:"SimSun",FangSong:"FangSong",KaiTi:"KaiTi",SimHei:"SimHei",letterSpacing:"Character spacing",olist:"Numbered list",ulist:"Bulleted list"},stroke:{thickness:"Width",dash:"Dash",gap:"Gap",buttCap:"Butt cap",roundCap:"Round cap",squareCap:"Square cap",miterJoin:"Miter join",roundJoin:"Round join",bevelJoin:"Bevel join",centerStroke:"Center",innerStroke:"Inside",outerStroke:"Outside"},keyboard:{letter:"Alphabet",numeric:"Number",symbol:"Symbol"},direction:{top:"Top",left:"Left"},inputModel:{normal:"Text",numeric:"Number",password:"Password"},tree:{levelIndent:"Indentation",treeExpand:"Button",treeNode:"Icon",treeCheckbox:"Checkbox",itemText:"Item",triangle:"Triangle",plus:"Plus",arrow:"Arrow"},table:{rowHeight:"Row height",columnWidth:"Column width",border:"Border",fill:"Fill",rowLine:"Row line",columnLine:"Column line"}},page:{resetSize:"Set as default size"},interaction:{fragmentAction:"Artboard interaction",invalidTarget:"Invalid target",invalidState:"Invalid state",invalidFragment:"Invalid artboard",addAction:"Add interaction",home:"Home",back:"Back link",actionOrder:"Commands",autoRevert:"Auto recovery",parallel:"Start simultaneously",compCommand:"[{0}] {1}: {2}",pageCommand:"Go to page : {0}",fragmentCommand:"Show artboard: {0}",closeFragmentCommand:"Close artboard: {0}",linkCommand:"Open link: {0}",eventType:"Triggers",command:"Commands",selectTarget:"Targets",currentComp:"Self",currentFragment:"This artboard",switchPage:"Page jump",closeArtboard:"Close artboard",popUpArtboard:"Show artboard",triggerconditions:{click:"Click ",doubleClick:"Double click",contextMenu:"Right click",mouseDown:"Mouse down",mouseUp:"Mouse up",mouseEnter:"Mouse enter",mouseLeave:"Mouse leave",loaded:"Loaded",afterMove:"Moved",afterZoom:"Zoomed",afterRotate:"Rotated",afterVisible:"Shown",afterHide:"Hidden",afterResize:"Resized",checked:"Selected",unChecked:"Unselected",toggleCheck:"Selected or unselected",focus:"Got focus",blur:"Lost focus",scroll:"Scroll",on:"On",off:"Off",toggle:"On/Off"},pageIntro:"When {0}, go to page {1}",fragmentIntro1:"When {0}, close {1}",fragmentIntro2:"When {0}, show {1}",compIntro:"When {0}, make {1} {2}",compIntro2:"{0}, scroll to {1}",timing:"Easing",duration:"Duration",delay:"Delay",loop:"",transitions:"Animate",fromCurrent:"Relative value",content:"Content",width:"Width",height:"Height",rotate:"Angle",state:"State",show:"Show",hidden:"Hide",toggle:"Toggle",toggle2:"Show/Hide",horizontal:"Horizontally",vertical:"Vertically",both:"Both",mode:"Position",forceFront:"Always on top",showBackground:"Show mask",clickExternalClose:"Click mask to close",artboardListTutorialUrl:"https://help.mockplus.com/p/474#1",siteName:"Name",url:"URL",removeLink:"Delete",addLink:"Add",noPrototype:"No files yet",howToUploadAxureFiles:"How to link to an Axure file",axureLinkTutorialUrl:"https://help.mockplus.com/p/452#6",selectPrototype:"Select file",searchPrototype:"Search",noPage:"No pages yet",selectPage:"Select page",searchPage:"Search",web:"Web",openWithSelf:"Open in current window",click:"Click",doubleClick:"Double click",contextMenu:"Right click",mouseDown:"Mouse down",mouseUp:"Mouse up",mouseEnter:"Mouse enter",mouseLeave:"Mouse leave",loaded:"On load",afterMove:"Moved",afterZoom:"Zoomed",afterRotate:"Rotated",afterVisible:"Shown",afterHide:"Hidden",afterResize:"Resized",checked:"Selected",unChecked:"Unselected",toggleCheck:"Selected or unselected",focus:"Got focus",blur:"Lost focus",scroll:"Scroll",move:"Move",moveBy:"Move by",moveTo:"Move to",resize:"Resize",resizeBy:"Resize by",resizeTo:"Resize to",rotation:"Rotate",rotationBy:"Rotate by",rotationTo:"Rotate to",toggleVisible:"Show/Hide",zoom:"Zoom",zoomBy:"Zoom by",zoomTo:"Zoom to",toggleState:"Switch state",switchContent:"Switch content",prev:"Previous",next:"Next",none:"None",pushToLeft:"Swipe left",pushToRight:"Swipe right",pushToTop:"Swipe up",pushToBottom:"Swipe down",slideToLeft:"Slide left",slideToRight:"Slide right",slideToTop:"Slide up",slideToBottom:"Slide down",fadeIn:"Fade in",zoomIn:"Zoom in",slideFromLeft:"Slide right",slideFromRight:"Slide left",slideFromTop:"Slide down",slideFromBottom:"Slide up",fadeOut:"Fade out",zoomOut:"Zoom out",flipInLeft:"Flip left",flipInRight:"Flip right",flipInTop:"Flip up",flipInBottom:"Flip down",custom:"Custom",center:"Center",left:"Left",right:"Right",top:"Top",bottom:"Bottom",noTiming:"None",linear:"Linear",easeIn:"Ease in",easeOut:"Ease out",easeInOut:"Ease in out"}},state:{state:"State",originalState:"Normal",componentState:"Default state - {0}",customState:"Custom state",hover:"Mouse hover",pressed:"Pressed",checked:"Selected",focus:"Focused",disabled:"Disabled",default:"Default",addState:"Add state"},menu:{applyFill:"Apply to Fill",applyStroke:"Apply to Border",applyText:"Apply to Text",align:"Order",bringToFront:"Bring to front",frontForward:"Bring forward ",backForward:"Send backward",sendToBack:"Send to back ",sameSize:"Adjust size",minWidth:"Min equal width",maxWidth:"Max equal width",minHeight:"Min equal height",maxHeight:"Max equal height",addColor:"Add color to assets",addTypography:"Add text style to assets",addComponent:"Add component to assets",unlock:"Unlock",lock:"Lock",unlockAll:"Unlock all components",selectionGroup:"Selection group",flip:"Flip",horizontalFlip:"Flip horizontally",verticalFlip:"Flip vertically",autoFillText:"Auto fill",editStyle:"Advanced edit",path:"Boolean operation",exclude:"Exclude",subtract:"Subtract",unite:"Unite",intersect:"Intersect",divide:"Break apart",convertToPath:"Convert to path",detachSymbol:"Detach from asset",cropImage:"Crop",crop:"Crop",convertToPanel:"Convert to Panel",detachPanel:"Detach from Panel",revertOriginSize:"#原始尺寸"},preview:{alwaysShowLinkArea:"Always show link area",showLinkAreaWhenHovered:"Show link area on mouse hover",autoScreen:"Fit to screen",noBoundary:"Show content outside artboard",showControllerPanel:"Show control panel",mobileType:"Device frame",qrcode:"QR code",controlPanel:"Control panel",home:"Back to home",backward:"Back",forward:"Forward",exit:"Exit",shareUrl:"Share preview link",shareRunTitile:"Share preview link",copy:"Copy",enablePass:"Set password",inputPass:"Enter your password",setPassInputError:"",setPassEmptyError:"Enter a password to protect your project",updateSuccess:"Password set successfully",linkText:"Preview link: {0}",pwdText:"Password: {0}",iosExitText:"Slide right to exit previewing",projectNotExistOrDeleted:"The project does not exist or has been deleted. ",noPermissionText:"You cannot view this project",linkHasNotValidText:"This link has expired",resetLinkSuccess:"reset successfully",nonPage:"#当前项目中没有页面。",onlyMember:"Only the project member can view this project",loginTip:"Please first log in to continue"},general:{multipleSelect:"Multiselect",ignoreArchiveTip:"Do not show again",gotIt:"Got it",back:"Back",ok:"OK",confirm:"Confirm",cancel:"Cancel",close:"Close",delete:"Delete",clone:"Clone",copy:"Copy",cut:"Cut",paste:"Paste",selectAll:"Select all",rename:"Rename",edit:"Edit",none:"None",width:"Width",height:"Height",exit:"Exit",preserve:"Save",or:"or",refresh:"Refresh",download:"Download",enterFullScreen:"Fullscreen",leaveFullScreen:"Exit fullscreen"},alert:{refresh:"Refresh",pageHasBeenDeleted:"Sorry, this page has been deleted by other members.",makeSureToDeletePage:"Are you sure to delete this page?",makeSureToDeletePageGroup:"Are you sure to delete this group?",networkDisconnected:"Sorry, there is a network connection error. Please check the network and refresh the page.",afk:"Data saved and link disconnected because of no any operations for a long time. Please refresh this page to continue.",fileTypeError:"This file type is not supported.",errorSelectingFileType:"Please select file format, such as \n{0}",failToUpload:"Upload failed, please try again.",alreadyExistPageAction:"This component already has a page interaction. Are you sure to replace it?",alreadyExistFragmentAction:"This component already has an artboard interaction already. Are you sure to replace it? ",imageSizeExceed:"Sorry, please upload images within 10M",imageDimensionExceed:"Sorry, please select image within 10000 x 10000 px.",videoSizeExceed:"Sorry, please upload videos within 10M",offlineEditing:"Editing offline...",offlineSaving:"Saving data locally...",saving:"Saving...",saveSuccessfully:"Saved successfully.",failToSave:"Save failed.",unableToCreateNode:"Sorry, the network is disconnected. You cannot add pages or groups.",unableToMoveNode:"Sorry, the network is disconnected. You cannot move pages or groups.",unableToRemoveNode:"Sorry, the network is disconnected. You cannot delete pages or groups.",unableToEditNode:"Sorry, the network is disconnected. You cannot edit pages or groups.",unableToCopyNode:"Sorry, network disconnected. Please try to create a page after your connection is restored.",unableToUpload:"Sorry, network disconnected. Please try again after connection is restored.",unableToHideNode:"Sorry, network interrupted. Hidden pages disabled.",networkReconnectionSuccessful:"Network reconnected.",saveOfflineData:"Syncing offline data...",manualSaveOfflineData:"Saving data, Please wait...",failedToJoinProjectCollaboration:"Join collaboration failed.",multiplayerCollaborativeSuccess:"Collaboration initialized.",mayCauseCompsToBeDeleted:"This operation may cause components deleted. Are you sure to continue?",selectGroupTarget:"If you need to use the group for interaction , you can do it like this:",makeSureToMergeCells:"Merging cells only keeps the upper-left value. Are you sure you want to continue?",trashClearAlert:"This action cannot be undone. Are you sure you want to clear?",trashPageAlert:"Please restore the deleted page first if you want to edit it.",trashRecoverAlert:"Are you sure you want to restore all pages? This cannot be undone.",headCannotBeMoved:"",cannotMoveToHeader:"",cannotMoveRow1:"Sorry, you can't move rows which contain only part of a merged cell. Please unmerge the cell and try again.",cannotMoveRow2:"Sorry, you can't move rows to a merged cell. Please unmerge the cell and try again.",cannotMoveColumn1:"Sorry, you can't move columns which contain only part of a merged cell. Please unmerge the cell and try again.",cannotMoveColumn2:"Sorry, you can't move columns to a merged cell. Please unmerge the cell and try again.",offlineAlert:"Sorry, network interrupted. Some features are currently disabled. Please check your connection.",socketOfflineAlert:"Network error. Some features are disabled. \nPlease save changes manually",networkOfflineAlert:"Network disconnected. Some features are disabled. Please check your connection to be back online.",offlineMsg3:"Page not loaded yet. \nPlease try again after your connection is restored.",imageCropFail:"Failed to crop, please try again.",packageLoading:"Please wait while the file is being prepared for downloading. It may take a few minutes.",successMessage:"HTML prototype prepared successfully!",downloadPreviewDemoZIP:"Failed to download HTML prototype. Please try again later."},tips:{clickCompnentToSwitchState:"",interactionPrompt1:'Select a component or artboard and click "Add interaction"',interactionPrompt2:"Or drag the Link Point of the component to any target component or page.",interactionPrompt2DT:"Or click and drag the red dot of the component to a page or artboard",contentPanelTips:"Tips: \n Drag the link point to a sub-artboard to add it as a layer. \n You can add as many layers as you need. \n A sub-artboard can be added only once.",doubleClickComponent:"Double click to edit",doubleClickUploadVideo:"Double click to upload video",inputSiteName:"Name",inputUrl:"URL",inputMaxLength:"The name cannot exceed {0} characters.",revertLinear:"Reverse",revertRadial:"Reverse",rotationAngle:"Adjust angle",pleaseInput:"Please enter {0}",pleaseDragInTheComp:"Drag & drop component here ",copySuccess:"Copied successfully",clickSelectTarget:"Select target",selectTarget:"Select trigger",selectCommand:"Select command",selectContent:"Select content",selectState:"Select state",revert:"Restore",changeProjectTypePrompt1:"The project type will be changed into {0}",changeProjectTypePrompt2:"The new project size will be applied to new artboards. The existing artboards won't be affectted. Are you sure you want to continue?",zoomOutline:"Scale layers",resizeTo:"Resize to",scaleFromTopLeft:"Scale from top left",scaleFromTopRight:"Scale from top right",scaleFromBottomRight:"Scale from bottom right",scaleFromBottomLeft:"Scale from bottom left",scaleFromTop:"Scale from top",scaleFromRight:"Scale from right",scaleFromBottom:"Scale from bottom",scaleFromLeft:"Scale from left",scaleFromCenter:"Scale from center",appSizeChangedByOther:"The project type has been changed by another member. All related settings have been auto synced",artboardPanelTip:"Drag Link Point to an artboard here to add an interaction.",noSearchResultsWereFound:"No results found",pageAddOver:"The current project already has {0} pages. Please upgrade your team to create more.",pageRecoverOver:"The current project already has {0} pages. Please upgrade your team to restore the page.",shareSetting:"Once changed the settings below, the preview link will be auto updated. Please recopy the new link for sharing.",notSearchResult:"No results found",resourceExpired:"Related asset deleted. Editing this component will detach it from the asset. Are you sure you want to continue?",tutorial:"Tutorials",officialWebsite:"Our website",activity:{freePrograms:"",partInFreePrograms:""},design:"Collaboration and handoff",nonPrivateProject:"This is a Team project that is accessible to all team members.\nPlease change it to a Private project and set the project members.",cannotUseOfflineDome:"Oops! It seems you're using the basic free plan. Upgrade your account to download the HTML prototype and more."},placeholders:{renameHolder:"Page name",textInputHolder:"Type something"},lark:{larkAppID:"cli_9ecaf77e03aed105",previewPrompt:"You are invited to preview Mockplus project. Click the link below to preview it now.",openInLark:"View in Lark: ",openInBrowser:"View in browser: "},extend:{chrome:{noExtend:{colorExtractor:"Eyedropper tool only works on Chrome with plugin required."},tutorialURL:"https://help.mockplus.com/p/424#1",downloadUrl:"https://mockplus-static.s3-us-west-1.amazonaws.com/idoc/plugins/mockplus_for_chrome_v1.0.3.zip"},download:"Download plugin",tutorial:"View tutorial",version:"Plugin version too low. Please download the latest version. "},login:{title:"Sign in to Mockplus",accountPlaceHolder:"Email",passwordPlaceHolder:"Password",noAccount:"Don't have an account? ",registerNow:"Sign up",forgetPassword:"Forgot password?",loginBtn:"Sign in",emailValidate:"Please enter a valid email address.",passwordValidate:"The password must be between 6-20 characters long."},register:{title:"Create a Mockplus free account",passwordValidateAgin:"Password does not match.",agreementURL:"https://www.mockplus.com/tos",accountPlaceHolder:"Email",passwordPlaceHolder:"Password (6-20 characters)",passwordAginPlaceHolder:"Confirm password",hadRead:"By signing up, I agree to Mockplus ",agreement:"Terms of Service.",register:"Sign up",hadAccount:"Already have an account? ",loginNow:"Sign in",readValidate:"Please read and accept the User Agreement."},example:{label:"Templates",tip:{partOne:"You are viewing the sample project in Mockplus RP,",partTwo:" or ",partThree:"to save the project in current team.",partFour:"click to save",partFive:"the project in current team."},saving:"Saving...",savingError:"Failed to save data, please try again later",type:{all:"All"},nocontent:"Nothing's here"},selectionGroup:{selectionGroupSetting:"Selection group settings",rowCount:"Row",columnCount:"Column",rowGap:"Row gap",columnGap:"Column gap",iconEditButton:"Click to select an icon from the library",imageEditButton:"Click to upload an image"},customization:{huawei:{standard:{tips:"Design systems",label:"UX design systems",management:"Management-side",officialWebsite:"Official website",mobile:"Mobile",operationFlow:"Business flows"},libraries:{icon:"Icon assets",image:"Image assets"},guide:"User guide",tutorial:"Tutorials"}},share:{label:"Share",shareApp:"Share the project",privateShare:"Private share",publicShare:"Public share",resetLink:"Reset",privateShareTips:"Share only to project members. This link grants access to design reviews, specs.",publicShareTips:"Share with everyone. With preview and presentation view access only.",publicShareTipsInPrivateVersion:"Share with everyone who's logged in. With preview and presentation view access only.",copyLink:"Copy",inviteTips:"Invite anyone via this link in 7 days. After that, it will work as a share link only.",inviteToApp:"Also invite your partner to become a project member ",notCanInviteToApp:"Only the project member can view this project.",onlyShareCurrentModel:"Share current section only",iframeShare:"#嵌入分享",iframeShareTips:"#用于嵌入第三方应用,所有人都可打开链接。",shareModule:{label:"#模块",prototypeModule:"#原型稿",designModule:"#设计稿",rpModule:"RP设计稿"},shareContent:{label:"#内容",idocContent:"#画板界面",previewContent:"#演示界面"}},message:{label:"Notifications and requests",teamMessage:"Projects",aboutMe:"Mentions",apply:"Requests",markRead:"Mark as read",oneClickRead:"Mark all as read",linkToAll:"Read all",hadRead:"Read",applyToViewApp:'{0}({1}) requested to access the project "',applyToViewAppRight:'"',agree:"Approve",disagree:"Reject",agreed:"Approved",disagreed:"Rejected",remark:"Note:",noContent:"No new notification"},contact:{leftTop:"",name:"",addMe:"",role:"",bottom:""},crashError:{title:"Sorry, an error has occurred",label:"Please try to refresh. If the problem persists, please "},file:{importMrpLabel:"Import MRP file",importMrpTitle:"Importing MRP file, please wait...",importError:"Sorry, failed to import the file. Please ",importErrorEnd:" for help.",importSuccess:"File imported.",importMrpFileError:"File type not supported. Please select an MRP file and try again.",importNetworkError:"Network error. Import failed. Please check your network connection and try again.",exportMrpLabel:"Export MRP file",exportMrpTitle:"The file is being prepared for exporting. It may take a few minutes.",exportError:"Sorry, failed to export the file. Please try again later.",exportMrpSuccess:"Your MRP file package is ready for download.",upgradeToExportMrp:"Oops! It seems you're using the basic free plan. Upgrade your account to export MRP file and more."},support:{label:"contact us",url:"https://www.mockplus.cn/support"},manualSave:{save:"Save",saving:"Saving...",saveSuccessfully:"Saved successfully",savingError:"Failed to save. Please try again",offlineEditing:"Offline"}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={common:{title:"{0} - 摹客"},application:{flow:"流程圖範式",pen:"鋼筆",pencil:"鉛筆",group:"編組",ungroup:"取消編組",undo:"撤銷",redo:"重做",showStatePanel:"狀態面板",hiddenStatePanel:"狀態面板",showArtboardPanel:"畫板列表",hiddenArtboardPanel:"畫板列表",artboardPanel:"畫板列表",play:"演示",switchRightPanelVisible:"收起/展開右側面板",newArtboard:"添加畫板",newSubArtboard:"添加輔助畫板",download:"下載",help:"幫助",navigation:"導航",fullScreen:"全屏",showLeftPanel:"顯示左側面板",showRightPanel:"顯示右側面板",title:"{0} - 摹客",shortCut:"快捷鍵",tutorial:"教程",feedback:"提交意見",home:"官網",showGrid:"顯示網格",showLayout:"顯示布局",gridSettings:"網格設定",layoutSettings:"布局設定",alginConfig:"進階標記",tutorialURL:"https://help.mockplus.cn/rp/post",homeURL:"https://www.mockplus.cn?home=1",feedbackURL:"https://www.mockplus.cn/community/摹客在線原型",buyURL:"https://www.mockplus.cn/buy/idoc",forgotPassword:"https://user.mockplus.cn/forgotpassword",exampleListURL:"https://www.mockplus.cn/example/rp",coopers:"{0}等{1}人",zoom:"縮放",pageCount:"共{0}個頁面",pageCount2:"{0}個頁面",offlineEditing:"#離線編輯中",zoom4canvas:"適應所有畫板",zoom4selection:"適應選區",zoom4artboard:"適應畫板",option:"首選項",scaleBorderAndRadius:"#縮放邊角",scaleShadow:"#縮放陰影",settings:"設定",generalSettings:"常規選項",offlineDemo:"#下载离线演示包"},workspace:{artboard:{downloadingMessage:"正在匯出圖片,這個過程可能耗時較長,請耐心等待。",downloadedMessage:"圖片已經匯出完成,請點擊下載按鈕下載檔案。",downloadErrorMessage:"無法下載圖片,出現錯誤:",copy:"副本"},grid:{blockSize:"網格尺寸",thickLinesEvery:"粗線間隔",colors:"顏色",makeDefault:"設定為預設",dark:"暗",light:"亮",blocks:"格"},layout:{columns:"列",totalWidth:"總寬",offset:"偏離",center:"居中",columnCount:"列數",gutterOnOutside:"外圍間距",gutterWidth:"間距寬度",columnWidth:"列寬",rows:"行",gutterHeight:"間距高度",rowHeight:"行高",visuals:"視覺",fillGrid:"填充網格",strokeOutline:"外側描邊",drawAllGridLines:"繪制所有水平線"},alignType:{normalAlign:"常規對齊",equidistantAlign:"等距偵測",distanceAlign:"間距標記"},backToEditor:"回返",statusBar:{projectType:"專案類別",phone:"手機",pad:"平板",web:"網頁",custom:"自訂尺寸",blank:"空白",huawei:"華為"},generalSettings:{pasteOffset:{label:"貼上物件偏移距離",x:"X",y:"Y"},pasteAtTop:"貼上物件置于頂層",showHiddenArea:"顯示隱藏區域",showLayerNameInPropertiesPanel:"屬性面板處顯示圖層名稱"}},resource:{project:"頁面",artboard:"畫板",component:"元件",icon:"圖示",resource:"設計資源",outline:"圖層",searchPage:"搜尋",searchComponent:"搜尋",searchIcon:"搜尋",searchLib:"搜尋",searchLayer:"搜尋",recycleBin:"回收站",components:{basic:"基本",container:"容器",common:"常用",flow:"形狀",antDesign:"#Ant Design",comment:"批注",text:"文字",textContent:"請輸入文字內容",rect:"矩形",ellipse:"橢圓",image:"圖片",line:"線條",triangle:"三角形",polygon:"多邊形",paragraph:"多行文字",input:"輸入框",textarea:"文字框",pureText:"文字",icon:"圖示",canvasPanel:"面板",contentPanel:"內容面板",listLayoutPanel:"列表面板",stackPanel:"堆疊面板",wrapPanel:"折行面板",selectPanel:"選項組",button:"按鈕",iconButton:"圖示按鈕",switch:"開關",checkbox:"復選框",checkboxGroup:"復選框組",radio:"單選按鈕",radioButtonGroup:"單選按鈕組",select:"下拉框",list:"列表",numericStep:"數字輸入器",breadCrumbs:"面包屑",segmentsControl:"分段元件",selectTab:"選項卡",slider:"滑塊",progressBar:"進度條",circleProgressBar:"環形進度條",score:"評分元件",video:"視訊",qrcode:"二維碼",keyboard:"鍵盤",audio:"音訊",appIcon:"#應用程式圖示",notifications:"#通知",tree:"樹",table:"表格",hotArea:"熱區",arrow:"箭頭",callOut:"編號",stickNote:"便簽條",drop:"水滴",dropDown:"下拉列表",verticalCurly:"垂直花括號",horizontalCurly:"水平花括號",verticalSeparatorLine:"垂直分隔線",horizontalSeparatorLine:"水平分隔線",labelInput:"標簽輸入框",searchBox:"搜尋框",link:"鏈結",textAIconButton:"圖示文字按鈕",primaryButton:"主按鈕",defaultButton:"預設按鈕",dashButton:"虛線按鈕",dengerButton:"警告按鈕",linkButton:"鏈結按鈕",navMenu:"導航選單",pagenation:"分頁器",iconAInput:"圖示&輸入框",avatar:"頭像",card:"卡片",empty:"空狀態",errorAlert:"錯誤提示",globalMessage:"全域訊息",notification:"通知提醒框",pageHead:"頁頭",navigationMenu:"導航選單",path:"路徑",compoundPath:"復合路徑",connector:"配接線",group:"組"},componentsText:{title:"標題",titleText:"標題文字",errorText:"系統錯誤,請稍后重試。",globalText:"這是一條詢問訊息,會主動消失。",itemText:"選項",optionText:"選項",newItem:"新條目",listItemText:"條目",breadCrumbsText:"一級目錄|二級目錄|三級目錄|四級目錄",emptyData:"暫無資料",qrCode:"https://www.mockplus.cn",label:"標簽"},flow:{rectangle:"矩形",parallelogram:"平行四邊形",diamond:"菱形",circle:"圓",ellipse:"橢圓",triangle:"三角形",pentagon:"五邊形",roundRectangle:"圓角矩形",semicircle:"半圓",octagon:"八邊形",keying:"鍵入",start:"開始/結束",rightTriangle:"右三角形",trapezoid:"梯形",hexagon:"六邊形",drop:"水滴",heart:"心形",sector:"扇形",star:"星形",cloud:"云",dataBase:"資料庫",punchedCard:"卡片",roundedSpeechBubble:"對話框(圓)",squareSpeechBubble:"對話框(方)",rightArrowButton:"右箭頭按鈕",leftArrowButton:"左箭頭按鈕",offPageConnector:"跨頁引用",ready:"預備",beveledRectangle:"斜角矩形",sectorDiagram:"扇形圖",cross:"十字",limitCycle:"迴圈限值",manualInput:"人工輸入",punchedTape:"條帶",display:"展示",externalData:"外部資料",manualOperation:"手動作業",rightArrow:"右箭頭",leftArrow:"左箭頭",horizontalDoubleArrow:"左右箭頭",upArrow:"上箭頭",downArrow:"下箭頭",verticalDoubleArrow:"上下箭頭",upGrid:"矩形格(上)",leftGrid:"矩形格(左)",classicTab:"經典標簽",queueData:"佇列資料",delay:"推遲",APQC:"APQC",collate:"對照",leftBracket:"注釋(左)",rightBracket:"注釋(右)",leftBrace:"備注(左)",rightBrace:"備注(右)",document:"文檔",pieChart:"餅圖",rightAngle:"右拐角",rightTurn:"右回返",leftTurn:"左回返"},icons:{lightIcon:"細線",boldIcon:"粗線",pay:"支付",office:"檔案辦公",chart:"圖表資料",gesture:"手勢",social:"社交",device:"裝置",traffic:"交通",symbol:"符號",direction:"方向",media:"多媒體",edit:"編輯",treatment:"醫療",letter:"數字/字母"},libs:{arrangementMode:"布局",component:"元件",color:"顏色",typography:"文字樣式",addLib:"{0}存為資源",createSymbol:"添加資源",share:"共享",cancelSharing:"取消共享",cancelSharingToAll:"取消共享(所有團隊)",placeholder:"{0}的設計資源",shareToMyTeam:"將資源共享至當前團隊嗎?",shareToAllTeams:"將資源共享至:",cancelShareToMyTeam:"當前團隊正在共享此資源,確定要取消共享嗎?",cancelShareToAllTeams:"系統中所有團隊正在共享此資源,確定要取消共享嗎?",myTeam:"當前團隊",allTeams:"系統內所有團隊",sync:"資源相互引用,并自動同步修改",addGroup:"新建分組",management:"管理資源",defaultGroupName:"新分組",moveGroup:"刪除“{0}”分組后不可恢復,確定繼續嗎?\n你可以將組內的{1}個資源移至其它分組,否則資源將被一同刪除。",removeGroup:"確定要刪除“{0}”分組嗎?",noMoveGroup:"刪除資源",moveAssetTo:"移動資源到",moveAsset:"移動",noGroup:"暫無分組",noComponent:"暫無元件",addComponentPlaceholder:"資源名稱",addGroupPlaceholder:"分組名稱",resourceLoadFail:"抱歉,載入出錯了...",reload:"重新載入",searchGroup:"搜尋",cannotModify:"此元件為共享的同步資源,只有資源創建者才可對其進行修改。",deleteSyncComponent:"確定要刪除當前資源嗎?此作業不可恢復。",deleteAsyncComponent:"確定要刪除當前資源嗎?此作業不可恢復。",deleteSharedComponent:"當前資源已共享,請取消共享后再刪除。",appName:"#來源 {0}專案"}},project:{page:"頁面",group:"分組",newPage:"新建頁面",newGroup:"新建分組",addNew:"新建",childPage:"子頁面",childGroup:"子分組",insert:"插入",undo:"恢復",delete:"清除",resetAll:"恢復所有",clearAll:"清除所有",defaultPageName:"頁面1",undoNow:"立即恢復",showPageNumber:"顯示頁面編號",hiddenPageNumber:"隱藏頁面編號",showPage:"顯示",hiddenPage:"隱藏",hiddenPageTip:"演示介面中,隱藏的頁面對無專案編輯權限者不可見。",mainName:"主畫板",mainDTName:"畫板",subArtboard:"輔助畫板 {0}",subDTArtboard:"畫板 {0}",revisions:{title:"歷史版本",revert:"還原到該歷史版本",noRevision:"當前版本下,該畫板沒有歷史記錄",revertTips:"確定將當前頁面內容還原到該歷史版本嗎?其它頁面不受影響。",tips:"摹客會自動為你生成歷史版本,你可以根據需要恢復歷史資料。",noPageRevisions:"當前頁面還未產生歷史版本!",currentVersion:"當前版本",revisions:"版本",artboard:"畫板",moreRevisions:"更多歷史版本",upgradeTips:"更新團隊后,可檢視更多歷史版本。",upgradeHelp:"立即更新"},empty:{welcome:"開始你的設計",tips:"創建高保真設計、交互原型,多人實時編輯"}},editor:{clickAndUpload:"點擊上載",applyOriginalSize:"按照原始大小",commonlyUsedColor:"常用顏色",solidFill:"純色",linearFill:"線性漸變",radialFill:"徑向漸變",append:"添加",up:"上移",down:"下移",addChild:"添加子項",mergeCells:"合并單元格",splitCells:"拆分單元格",cleanStyle:"清除格式",cleanContent:"清除內容",row:"行",column:"列",unshiftColumn:"左側插入1列",unshiftColumns:"左側插入3列",pushColumn:"右側插入1列",pushColumns:"右側插入3列",unshiftRow:"上方插入1行",unshiftRows:"上方插入3行",pushRow:"下方插入1行",pushRows:"下方插入3行",dragToAddRows:"點擊或拖拽以添加行",dragToAddColumns:"點擊或拖拽以添加列",tableInfo:"行:{0},列:{1}",deletColumns:"刪除所在列",deletRows:"刪除所在行",contentType:"單元格類別",convertToText:"文字",convertToCheckBox:"復選框"},pc:{logout:"登出",team:{change:{label:"切換團隊"},name:{label:"名稱"},role:{label:"角色",value:{superAdministrator:"超級管理員",administrator:"管理員",member:"成員",visitor:"協同人"}}},app:{create:{title:"新建專案"},user:{label:"作者"},time:{label:"更新時間"},name:{label:"名稱",value:"新專案",placeholder:"專案名稱"},type:{recent:"最近檢視",star:"我的收藏",myCreate:"我創建的",all:"全部",recycle:"回收站",achive:"已歸檔"},appSet:{create:{title:"創建新專案集"},name:{placeholder:"請輸入專案集名稱"},parent:{placeholder:"根目錄"}},restore:"恢復",clear:{value:"清除",title:"清除后不可恢復,確定要清除嗎?"},star:"Add to favorites",unStar:"Remove from favorites",move:"Move",delete:'Are you sure you want to delete "{0}"?',noContent:"No projects yet.",search:"#搜索",module:{rp:{label:"#查看RP项目",value:"#在线设计"},other:"#其他项目",all:"#查看全部项目"},demo:"#演示"},user:{email:{placeholder:"信箱/摹客賬號",noValue:"請輸入格式正確信箱。",register:{placeholder:"請輸入注冊信箱"}},password:{placeholder:"密碼",register:{placeholder:"請輸入登入密碼"},repeat:"請再次輸入密碼",forgot:"忘記密碼",noValue:"密碼長度為6-20。",different:"兩次密碼輸入不相同。"},vocation:{value:{pm:"產品經理",projectManager:"專案經理",designer:"設計師",developer:"開發工程師",operator:"運營人員",other:"其他"}},noUser:"還沒有賬號?",register:{link:"立即注冊",value:"注冊"},agree:{read:"我已仔細閱讀并同意",value:"《摹客使用協定》"},login:{title:"摹客",content:"讓設計更快更簡單",value:"登入",hasAccount:"已有賬號?",link:"立即登入"}}},theme:{apply:"應用程式并關閉",cancel:"取消"},property:{properties:"屬性",interactions:"交互",propertyNames:{fill:"填充",bgcolor:"背景色",hoverFill:"懸停背景",forgetColor:"前景色",buttonColor:"按鈕色",checkedColor:"選中顏色",checkedBgcolor:"選中背景",stroke:"邊框",lineStroke:"線條",checkedUnderbar:"選中標識條",border:"邊框",radius:"圓角",text:"文字樣式",checkedText:"選中文字樣式",defaultText:"預設文字樣式",multiText:"排版",polygon:"多邊形",icon:"圖示",iconColor:"圖示顏色",color:"顏色",img:"圖片",iconSize:"圖示大小",layout:"布局",container:"容器",shadow:"陰影",line:"線段",lineHeight:"行高",inputModel:"輸入類別",arrow:"箭頭",placeholder:"占位文字",placeholderColor:"占位文字顏色",angle:"旋轉",close:"閉合",controls:"顯示控制條",autoPlay:"自動播放",hoverTextStyle:"鏈結樣式",checked:"選中",trackStyle:"軌道樣式",progressStyle:"進度樣式",progress:"進度",progressColor:"進度顏色",trackFill:"軌道顏色",indicatorColor:"滑塊顏色",separator:"分隔線",separatorRatio:"#分隔线尺寸",keyboard:"鍵盤類別",featureButtonColor:"功能鍵顏色",fontColor:"文字顏色",textBgColor:"文字背景色",defaultSelected:"選中",defaultOpen:"預設開啟",padding:"內邊距",extensionLink:"外部鏈結",remark:"備注",blur:"模糊",colorFilter:"調整顏色"},component:{alignLeft:"左對齊",alignVerticalCenter:"水平居中對齊",alignRight:"右對齊",alignTop:"頂對齊",alignJustify:"兩端對齊",alignHorizontalCenter:"垂直居中對齊",alignBottom:"底對齊",alignAverageHorizontal:"水平等距",alignAverageVertical:"垂直等距",showComp:"顯示",hideComp:"隱藏",enabledComp:"啟用",disabledComp:"禁用",selectComp:"選擇了 {0} 個元件",opacity:"不透明度",clipPath:"裁剪路徑",openPath:"開啟路徑",closePath:"閉合路徑",segRadius:"圓角",straight:"筆直",mirrored:"對稱",disconnected:"分離",asymmetric:"不對稱",shape:"外形",text:"文字",extend:"擴展",relation:{label:"關聯",add:"添加鏈結",init:{specificationDocument:"檢視規范文檔",componentCode:"檢視元件程式碼",visualAnnotation:"檢視視覺標記"}},border:{left:"左邊框",right:"右邊框",bottom:"下邊框",top:"上邊框"},bounds:{lockRatio:"鎖定寬高比",flipHorizontal:"水平翻轉",flipVertical:"垂直翻轉",fixedWidth:"固定寬度",fixedHeight:"固定高度",horizontalCenter:"水平居中",verticalCenter:"垂直居中",responsive:"啟用響應式布局",auto:"自動",manual:"手動"},cell:{rowHeight:"行高",rowCount:"行數",itemHeight:"子項高度",itemWidth:"子項寬度",columnWidth:"列寬",columnCount:"列數",columnGap:"列間距",rowGap:"行間距",gap:"間距"},container:{scroll:"支援卷軸",showScroll:"顯示卷軸條"},img:{upLoadImg:"上載圖片",fit:"填充",tile:"平鋪",original:"適應",stretch:"拉伸",defaultStyle:"預設樣式"},colorFilter:{brightness:"亮度",contrast:"對比度",hueRotate:"色相",saturate:"飽和度",invert:"反相",revert:"恢復"},layout:{vertical:"垂直",horizontal:"水平",gap:"間距"},line:{startArrow:"起點",endArrow:"終點",none:"無端點"},multiText:{lineHeight:"行高",wrap:"自動換行",autoSize:"自動大小",indent:"首行縮進",vertical:"豎排"},polygon:{sideCount:"邊數"},radius:{allRadius:"全部圓角",eachRadius:"單個圓角",isPercent:"百分比圓角"},textStyle:{richText:"富文字",bold:"加粗",italic:"斜體",underline:"下劃線",deleteline:"刪除線",MicrosoftYahei:"微軟雅黑",pingfang:"蘋方",SimSun:"宋體",FangSong:"仿宋",KaiTi:"楷體",SimHei:"黑體",letterSpacing:"字間距",olist:"編號",ulist:"專案符號"},stroke:{thickness:"寬度",dash:"虛線",gap:"間隔",buttCap:"平頭端點",roundCap:"圓頭端點",squareCap:"矩形端點",miterJoin:"斜接配接",roundJoin:"圓角配接",bevelJoin:"斜面配接",centerStroke:"居中描邊",innerStroke:"內描邊",outerStroke:"外描邊"},keyboard:{letter:"字母",numeric:"數字",symbol:"符號"},direction:{top:"上",left:"左"},inputModel:{normal:"文字",numeric:"數字",password:"密碼"},tree:{levelIndent:"縮進",treeExpand:"按鈕",treeNode:"圖示",treeCheckbox:"復選框",itemText:"專案",triangle:"三角",plus:"加號",arrow:"箭頭"},table:{rowHeight:"行高",columnWidth:"列寬",border:"邊框",fill:"填充",rowLine:"行線",columnLine:"列線"}},page:{resetSize:"設定為預設尺寸"},interaction:{fragmentAction:"畫板交互",invalidTarget:"失效目標",invalidState:"失效狀態",invalidFragment:"失效畫板",addAction:"添加交互",home:"首頁",back:"上一頁",link:"鏈結",variable:"變數",actionOrder:"命令",autoRevert:"自動還原",parallel:"同時開始",compCommand:"[{0}] {1}: {2}",pageCommand:"跳轉到頁面: {0}",fragmentCommand:"顯示畫板: {0}",closeFragmentCommand:"關閉畫板: {0}",linkCommand:"開啟鏈結: {0}",variableCommand:"修改變數: {0}",eventType:"觸發",command:"命令",selectTarget:"目標",currentComp:"自己",currentFragment:"此畫板",switchPage:"頁面跳轉",closeArtboard:"關閉畫板",popUpArtboard:"顯示畫板",triggerconditions:{click:"點擊后",doubleClick:"雙點后",contextMenu:"右鍵后",mouseDown:"滑鼠按下后",mouseUp:"滑鼠松開后",mouseEnter:"滑鼠進入后",mouseLeave:"滑鼠離開后",loaded:"載入時",afterMove:"移動后",afterZoom:"縮放后",afterRotate:"旋轉后",afterVisible:"顯示后",afterHide:"隱藏后",afterResize:"調整尺寸后",checked:"選中后",unChecked:"取消選中后",toggleCheck:"選中改變后",focus:"獲取焦點后",blur:"失去焦點后",change:"內容改變后",scroll:"卷軸時",on:"#开启时",off:"#关闭时",toggle:"#切换时"},pageIntro:"{0},跳轉頁面{1}",fragmentIntro1:"{0},關閉{1}",fragmentIntro2:"{0},顯示{1}",compIntro:"{0},對{1}執行{2}",compIntro2:"{0},卷軸到{1}",timing:"緩動",duration:"時長",delay:"延時",loop:"迴圈執行",transitions:"效果",fromCurrent:"相對值",content:"內容",width:"寬度",height:"高度",rotate:"角度",state:"狀態",show:"顯示",hidden:"隱藏",toggle:"切換",toggle2:"切換隱藏/顯示",horizontal:"水平",vertical:"垂直",both:"同時",mode:"位置",forceFront:"始終置頂",showBackground:"顯示遮罩",clickExternalClose:"點擊遮罩時關閉",artboardListTutorialUrl:"https://help.mockplus.cn/p/358#4",siteName:"名稱",url:"網址",removeLink:"刪除",addLink:"添加",noPrototype:"暫無檔案",howToUploadAxureFiles:"如何關聯Axure檔案?",axureLinkTutorialUrl:"https://help.mockplus.cn/p/379#5",selectPrototype:"選擇檔案",searchPrototype:"搜尋",noPage:"暫無頁面",selectPage:"選擇頁面",searchPage:"搜尋",web:"網頁",openWithSelf:"在當前視窗開啟",click:"點擊",doubleClick:"雙點",contextMenu:"右鍵",mouseDown:"滑鼠按下",mouseUp:"滑鼠松開",mouseEnter:"滑鼠進入",mouseLeave:"滑鼠離開",loaded:"載入時",afterMove:"移動后",afterZoom:"縮放后",afterRotate:"旋轉后",afterVisible:"顯示后",afterHide:"隱藏后",afterResize:"調整尺寸后",checked:"選中",unChecked:"取消選中",toggleCheck:"選中改變",focus:"焦點",blur:"失去焦點",change:"內容改變",scroll:"卷軸",longPress:"長按",mouseMove:"滑鼠移動",swipeLeft:"滑鼠左劃",swipeRight:"滑鼠右劃",swipeUp:"滑鼠上劃",swipeDown:"滑鼠下劃",move:"移動",moveBy:"移動",moveTo:"移動到",resize:"調整尺寸",resizeBy:"尺寸",resizeTo:"尺寸至",rotation:"旋轉",rotationBy:"旋轉",rotationTo:"旋轉至",toggleVisible:"顯示/隱藏",zoom:"縮放",zoomBy:"縮放",zoomTo:"縮放至",toggleState:"切換狀態",switchContent:"切換內容",prev:"上一個",next:"下一個",none:"無",pushToLeft:"右側推入",pushToRight:"左側推入",pushToTop:"底部推入",pushToBottom:"頂部推入",slideToLeft:"右側滑入",slideToRight:"左側滑入",slideToTop:"底部滑入",slideToBottom:"頂部滑入",fadeIn:"淡入",zoomIn:"放大彈出",slideFromLeft:"右側滑出",slideFromRight:"左側滑出",slideFromTop:"底部滑出",slideFromBottom:"頂部滑出",fadeOut:"淡出",zoomOut:"縮小退離",flipInLeft:"左側翻出",flipInRight:"右側翻出",flipInTop:"頂部翻出",flipInBottom:"底部翻出",custom:"自訂",center:"居中",left:"左側",right:"右側",top:"頂部",bottom:"底部",noTiming:"無",linear:"線性",easeIn:"加速",easeOut:"減速",easeInOut:"變速"}},state:{state:"狀態",originalState:"正常",componentState:"預設狀態 - {0}",customState:"自訂狀態",hover:"懸停",pressed:"按下",checked:"選中",focus:"焦點",disabled:"禁用",default:"預設",addState:"添加狀態"},menu:{applyFill:"應用程式到填充",applyStroke:"應用程式到邊框",applyText:"應用程式到文字",align:"順序",bringToFront:"置為頂層",frontForward:"上移一層",backForward:"下移一層",sendToBack:"置為底層",sameSize:"調整大小",minWidth:"最小等寬",maxWidth:"最大等寬",minHeight:"最小等高",maxHeight:"最大等高",addColor:"把顏色存為資源",addTypography:"把字元樣式存為資源",addComponent:"把元件存為資源",unlock:"解除鎖定",lock:"鎖定",unlockAll:"全部解鎖",selectionGroup:"選項組",flip:"翻轉",horizontalFlip:"水平翻轉",verticalFlip:"垂直翻轉",autoFillText:"自動填充",editStyle:"進階編輯",path:"布爾運算",exclude:"排除",subtract:"減去",unite:"聯合",intersect:"相交",divide:"取消合成",convertToPath:"轉為路徑",detachSymbol:"從資源中脫離",cropImage:"裁切",crop:"裁剪"},preview:{alwaysShowLinkArea:"始終顯示鏈結區域",showLinkAreaWhenHovered:"滑鼠經過時,顯示鏈結區域",autoScreen:"自動適應熒幕",noBoundary:"顯示畫板外內容",showControllerPanel:"顯示控制面板",mobileType:"裝置外殼",qrcode:"二維碼",controlPanel:"控制面板",home:"回到首頁",backward:"后退",forward:"前進",exit:"退離演示",shareUrl:"分享演示鏈結",shareRunTitile:"分享演示鏈結",copy:"復制",enablePass:"啟用密碼",inputPass:"請設定密碼",setPassInputError:"請輸入字母、數字或者符號",setPassEmptyError:"需設定密碼后,存取密碼才會生效",updateSuccess:"設定成功",linkText:"演示鏈結:{0}",pwdText:"存取密碼:{0}",iosExitText:"從熒幕邊緣右滑退離演示"},general:{multipleSelect:"多選",ignoreArchiveTip:"不再提示",gotIt:"我知道了",back:"回返",ok:"確定",confirm:"確認",cancel:"取消",close:"關閉",delete:"刪除",clone:"克隆",copy:"復制",cut:"剪下",paste:"貼上",selectAll:"全選",rename:"重命名",edit:"編輯",none:"無",width:"寬",height:"高",exit:"退離"},alert:{refresh:"重新載入",pageHasBeenDeleted:"抱歉,當前頁面已被其他成員刪除。",makeSureToDeletePage:"確定要刪除當前頁面嗎?",makeSureToDeletePageGroup:"確定要刪除當前分組嗎?",networkDisconnected:"抱歉,網路配接異常,請檢查網路并重新載入頁面。",afk:"由于長時間未作業,已經儲存你的資料并斷開配接。\n繼續工作請重新載入頁面。",fileTypeError:"檔案類別不支援。",errorSelectingFileType:"請選擇的檔案格式:\n{0}",failToUpload:"上載失敗,請重試。",alreadyExistPageAction:"此元件已經存在一個頁面交互,確定替換嗎?",alreadyExistFragmentAction:"此元件已經存在一個畫板的交互,確定替換嗎?",imageSizeExceed:"抱歉,僅支援 10M 以內的圖片。",imageDimensionExceed:"抱歉,僅支援 10000 x 10000像素以內的圖片。",videoSizeExceed:"抱歉,僅支援 10M 以內的視訊。",offlineEditing:"離線編輯中...",offlineSaving:"本地儲存中...",saving:"儲存中...",saveSuccessfully:"儲存成功",failToSave:"儲存失敗",unableToCreateNode:"抱歉,網路已斷開,不能創建頁面或分組。",unableToMoveNode:"抱歉,網路已斷開,不能移動頁面或分組。",unableToRemoveNode:"抱歉,網路已斷開,不能刪除頁面或分組。",unableToEditNode:"抱歉,網路已斷開,不能修改頁面或分組。",unableToCopyNode:"抱歉,網路已斷開,請在網路恢復后創建頁面。",unableToUpload:"抱歉,網路已斷開,請在網路恢復后上載。",unableToHideNode:"抱歉,網路已斷開,不能隱藏頁面。",networkReconnectionSuccessful:"網路已重新配接。",saveOfflineData:"同步離線資料中...",failedToJoinProjectCollaboration:"加入專案協作失敗",multiplayerCollaborativeSuccess:"多人協同初始化成功",mayCauseCompsToBeDeleted:"當前作業可能導致元件被刪除,確定繼續嗎?",selectGroupTarget:"如果你需要選中組,可以這樣作業:",makeSureToMergeCells:"合并后的單元格將只保留左上角單元格中的值,確定繼續嗎?",trashClearAlert:"清除后不可恢復,確定要清除嗎?",trashPageAlert:"已刪除的頁面需恢復后才可編輯。",trashRecoverAlert:"確定要恢復所有頁面嗎?",headCannotBeMoved:"表頭不能移動。",cannotMoveToHeader:"不能移動到表頭。",cannotMoveRow1:"抱歉,不可只移動合并單元格中的部分行,請拆分單元格后再試。",cannotMoveRow2:"抱歉,不可將行移動到合并單元格中,請拆分單元格后再試。",cannotMoveColumn1:"抱歉,不可只移動合并單元格中的部分列,請拆分單元格后再試。",cannotMoveColumn2:"抱歉,不可將列移動到合并單元格中,請拆分單元格后再試。",offlineAlert:"網路異常,部分功能禁用,請檢查網路配接。",offlineMsg3:"頁面尚未載入,請在網路恢復后重試",imageCropFail:"圖片裁切失敗,請重試",packageLoading:"#檔案正在準備中,請耐心等待,可能需要幾分鐘。",successMessage:"#離線演示包打包成功!",downloadPreviewDemoZIP:"#未能成功下載離線演示包,請重試。"},tips:{clickCompnentToSwitchState:"點擊元件以切換狀態",interactionPrompt1:"選中元件或畫板,點擊 “添加交互”",interactionPrompt2:"或拖拽元件右上角的鏈結點,至任意元件或頁面",interactionPrompt2DT:"或拖拽元件右上角的小紅點,至任意畫板或頁面",contentPanelTips:"小提示:\n拖拽鏈結點到一個輔助畫板,將其添加為層;\n可添加多個層;\n同一個輔助畫板只能被添加一次。",doubleClickComponent:"雙點進入編輯狀態",doubleClickUploadVideo:"雙點上載視訊",doubleClickSelectSvg:"雙點選擇向量圖",inputSiteName:"名稱",inputUrl:"網址",inputMaxLength:"名稱不能超過{0}個字元",revertLinear:"反轉",revertRadial:"反轉",rotationAngle:"調整角度",pleaseInput:"請輸入{0}",pleaseDragInTheComp:"",copySuccess:"復制成功",clickSelectTarget:"點擊選擇目標",selectTarget:"選擇觸發方式",selectCommand:"選擇命令",selectContent:"選擇內容",selectState:"選擇狀態",revert:"還原",changeProjectTypePrompt1:"專案類別將修改為 {0}",changeProjectTypePrompt2:"新建畫板會應用程式新的專案尺寸,現有畫板的尺寸不受影響,確定繼續嗎?",zoomOutline:"縮放",resizeTo:"調整尺寸至",scaleFromTopLeft:"左上擴展",scaleFromTopRight:"右上擴展",scaleFromBottomRight:"右下擴展",scaleFromBottomLeft:"左下擴展",scaleFromTop:"頂部擴展",scaleFromRight:"右側擴展",scaleFromBottom:"底部擴展",scaleFromLeft:"左側擴展",scaleFromCenter:"中心擴展",appSizeChangedByOther:"其他成員修改了專案類別,已同步相關設定。",artboardPanelTip:"拖拽交互點至畫板名稱以添加交互",noSearchResultsWereFound:"未搜尋到結果",pageAddOver:"當前專案的頁面數量已達{0}個,更新團隊可創建更多頁面。",pageRecoverOver:"當前專案的頁面數量已達{0}個,請更新團隊后再恢復頁面。",shareSetting:"修改預設演示設定后,演示鏈結會更新,請重新復制并分享",notSearchResult:"未搜尋到結果",resourceExpired:"相關資源已被刪除,確定將當前元件從資源中脫離以繼續編輯嗎?"},placeholders:{renameHolder:"頁面名稱",textInputHolder:"請輸入文字內容"},lark:{larkAppID:"cli_9d2d59be33e0910c",previewPrompt:"邀請你檢視摹客專案演示,點擊鏈結即可進入演示。",openInLark:"在飛書開啟:",openInBrowser:"在瀏覽器開啟:"},extend:{chrome:{noExtend:{colorExtractor:"吸管工具僅支援在Chrome瀏覽器上使用,需安裝外掛程式。"},tutorialURL:"https://help.mockplus.cn/p/370#6",downloadUrl:"https://img02.mockplus.cn/idoc/plugins/mockplus_for_chrome_v1.0.3.zip"},tutorial:"檢視教程",download:"下載外掛程式",version:"外掛程式版本過低,請下載安裝最新版本。"},login:{title:"密碼登入",accountPlaceHolder:"信箱或摹客賬號",passwordPlaceHolder:"密碼",noAccount:"還沒有賬號?",registerNow:"立即注冊",forgetPassword:"忘記密碼",loginBtn:"登入",emailValidate:"請輸入格式正確的信箱。",passwordValidate:"密碼長度為6-20。"},register:{title:"注冊賬戶",passwordValidateAgin:"兩次密碼輸入不相同。",agreementURL:"https://www.mockplus.cn/tos",accountPlaceHolder:"請輸入注冊信箱",passwordPlaceHolder:"請輸入登入密碼",passwordAginPlaceHolder:"請再次輸入密碼",hadRead:"我已仔細閱讀并同意",agreement:"《摹客使用協定》",register:"注冊",hadAccount:"已有賬號?",loginNow:"立即登入",readValidate:"請閱讀并同意協定。"},example:{tip:{partOne:"你正在體驗摹客在線設計,",partTwo:"或",partThree:"儲存本專案至當前團隊。",partFour:"點擊儲存",partFive:"本專案至當前團隊。"},saving:"專案儲存中...",savingError:"儲存失敗,請重新嘗試"},selectionGroup:{selectionGroupSetting:"選項組設定",rowCount:"行數",columnCount:"列數",rowGap:"行間距",columnGap:"列間距",iconEditButton:"點擊切換到圖示庫以選擇圖示",imageEditButton:"點擊上載圖片"},customization:{huawei:{standard:{label:"體驗規范",management:"管理側規范",officialWebsite:"官網規范",mobile:"移動端規范",operationFlow:"業務流程規范"},libraries:{icon:"圖示資源",image:"圖片資源"},guide:"使用指南",tutorial:"指導教程"}}};t.default=r},function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});
|
|
|
/*!
|
|
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
|
* (c) 2017 Joachim Wester
|
|
|
* MIT license
|
|
|
*/
|
|
|
var o=n(204),i=n(205),a=n(205);t.applyOperation=a.applyOperation,t.applyPatch=a.applyPatch,t.applyReducer=a.applyReducer,t.getValueByPointer=a.getValueByPointer,t.validate=a.validate,t.validator=a.validator;var s=n(204);t.JsonPatchError=s.PatchError,t.deepClone=s._deepClone,t.escapePathComponent=s.escapePathComponent,t.unescapePathComponent=s.unescapePathComponent;var l=new WeakMap,c=function(e){this.observers=new Map,this.obj=e},u=function(e,t){this.callback=e,this.observer=t};function d(e,t){t.unobserve()}function h(e,t){var n,r=function(e){return l.get(e)}(e);if(r){var i=function(e,t){return e.observers.get(t)}(r,t);n=i&&i.observer}else r=new c(e),l.set(e,r);if(n)return n;if(n={},r.value=o._deepClone(e),t){n.callback=t,n.next=null;var a=function(){p(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};"undefined"!=typeof window&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=[],n.object=e,n.unobserve=function(){p(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},r.observers.set(t,new u(t,n)),n}function p(e,t){void 0===t&&(t=!1);var n=l.get(e.object);f(n.value,e.object,e.patches,"",t),e.patches.length&&i.applyPatch(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function f(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var a=o._objectKeys(t),s=o._objectKeys(e),l=!1,c=s.length-1;c>=0;c--){var u=e[h=s[c]];if(!o.hasOwnProperty(t,h)||void 0===t[h]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+o.escapePathComponent(h),value:o._deepClone(u)}),n.push({op:"remove",path:r+"/"+o.escapePathComponent(h)}),l=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}),!0);else{var d=t[h];"object"==typeof u&&null!=u&&"object"==typeof d&&null!=d?f(u,d,n,r+"/"+o.escapePathComponent(h),i):u!==d&&(!0,i&&n.push({op:"test",path:r+"/"+o.escapePathComponent(h),value:o._deepClone(u)}),n.push({op:"replace",path:r+"/"+o.escapePathComponent(h),value:o._deepClone(d)}))}}if(l||a.length!=s.length)for(c=0;c<a.length;c++){var h=a[c];o.hasOwnProperty(e,h)||void 0===t[h]||n.push({op:"add",path:r+"/"+o.escapePathComponent(h),value:o._deepClone(t[h])})}}}function m(e,t,n){void 0===n&&(n=!1);var r=[];return f(e,t,r,"",n),r}t.unobserve=d,t.observe=h,t.generate=p,t.compare=m;var g=n(205),v=n(204);t.default=r({},g,{unobserve:d,observe:h,generate:p,compare:m,JsonPatchError:v.PatchError,deepClone:o._deepClone,escapePathComponent:o.escapePathComponent,unescapePathComponent:v.unescapePathComponent})},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var a,s,l,c=r(t),u=r(n);if(c&&u){if((s=t.length)!=n.length)return!1;for(a=s;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(c!=u)return!1;var d=t instanceof Date,h=n instanceof Date;if(d!=h)return!1;if(d&&h)return t.getTime()==n.getTime();var p=t instanceof RegExp,f=n instanceof RegExp;if(p!=f)return!1;if(p&&f)return t.toString()==n.toString();var m=o(t);if((s=m.length)!==o(n).length)return!1;for(a=s;0!=a--;)if(!i.call(n,m[a]))return!1;for(a=s;0!=a--;)if(!e(t[l=m[a]],n[l]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Matrix=void 0;class r{constructor(){this.m11=1,this.m12=0,this.m13=0,this.m21=0,this.m22=1,this.m23=0,this.m31=0,this.m32=0,this.m33=1}static get identity(){return new r}static createRotation(e){const t=Math.sin(e),n=Math.cos(e),r=this.identity;return r.m11=n,r.m12=t,r.m21=-t,r.m22=n,r}static createScaling(e,t){const n=this.identity;return n.m11=e,n.m22=t||e,n}static createTranslation(e,t=0){const n=this.identity;return n.m31=e,n.m32=t,n}multiplyMatrix(e){const{m11:t,m12:n,m13:r,m21:o,m22:i,m23:a,m31:s,m32:l,m33:c}=this;this.m11=t*e.m11+n*e.m21+r*e.m31,this.m12=t*e.m12+n*e.m22+r*e.m32,this.m13=t*e.m13+n*e.m23+r*e.m33,this.m21=o*e.m11+i*e.m21+a*e.m31,this.m22=o*e.m12+i*e.m22+a*e.m32,this.m23=o*e.m13+i*e.m23+a*e.m33,this.m31=s*e.m11+l*e.m21+c*e.m31,this.m32=s*e.m12+l*e.m22+c*e.m32,this.m33=s*e.m13+l*e.m23+c*e.m33}multiplyPoint({x:e,y:t}){return{x:e*this.m11+t*this.m21+this.m31,y:e*this.m12+t*this.m22+this.m32}}multiplyRect({left:e,top:t,right:n,bottom:r}){let o={x:e,y:t},i={x:n,y:t},a={x:e,y:r},s={x:n,y:r};o=this.multiplyPoint(o),i=this.multiplyPoint(i),a=this.multiplyPoint(a),s=this.multiplyPoint(s);const l={left:Math.min(o.x,a.x,i.x,s.x),top:Math.min(o.y,a.y,i.y,s.y),right:Math.max(o.x,a.x,i.x,s.x),bottom:Math.max(o.y,a.y,i.y,s.y),width:0,height:0};return l.width=l.right-l.left,l.height=l.bottom-l.top,l}miltiplyVector({x:e,y:t,w:n}){return{x:e*this.m11+t*this.m21+n*this.m31,y:e*this.m12+t*this.m22+n*this.m32,w:e*this.m13+t*this.m23+n*this.m33}}scale(e){this.m11*=e,this.m12*=e,this.m21*=e,this.m22*=e}translate(e,t){this.m31+=e*this.m11+t*this.m21,this.m32+=e*this.m12+t*this.m22}rotate(e,t){const n=e*(Math.PI/180),r=Math.cos(n),o=Math.sin(n),i=t.x-t.x*r+t.y*o,a=t.y-t.x*o-t.y*r,{m11:s,m12:l,m21:c,m22:u}=this;this.m11=r*s+o*c,this.m12=r*l+o*u,this.m21=-o*s+r*c,this.m22=-o*l+r*u,this.m31+=i*s+a*c,this.m32+=i*l+a*u}clone(){const e=r.identity;return e.m11=this.m11,e.m12=this.m12,e.m13=this.m13,e.m21=this.m21,e.m22=this.m22,e.m23=this.m23,e.m31=this.m31,e.m32=this.m32,e.m33=this.m33,e}inverted(){const{m11:e,m12:t,m21:n,m22:r,m31:o,m32:i}=this,a=e,s=t,l=n,c=r,u=o,d=i,h=a*c-s*l,p=this.clone();return h&&!Number.isNaN(h)&&isFinite(u)&&isFinite(d)&&(p.m11=c/h,p.m12=-s/h,p.m21=-l/h,p.m22=a/h,p.m31=(l*d-c*u)/h,p.m32=(s*u-a*d)/h),p}decompose(){const{m11:e,m12:t,m21:n,m22:r}=this,o=e*r-t*n,i=180/Math.PI;let a,s,l;if(0!==e||0!==t){const i=Math.hypot(e,t);a=Math.acos(e/i)*(t>0?1:-1),s=[i,o/i],l=[Math.atan2(e*n+t*r,Math.pow(i,2)),0]}else if(0!==n||0!==r){const i=Math.hypot(n,r);a=Math.asin(n/i)*(r>0?1:-1),s=[o/i,i],l=[0,Math.atan2(e*n+t*r,i*i)]}else a=0,l=s=[0,0];return{translation:this.translation,rotation:a*i,scaling:{x:s[0],y:s[1]},skewing:{x:l[0]*i,y:l[1]*i}}}get translation(){return{x:this.m31,y:this.m32}}get scaling(){return this.decompose().scaling}get rotation(){return this.decompose().rotation}toString(){const{m11:e,m12:t,m13:n,m21:r,m22:o,m23:i,m31:a,m32:s,m33:l}=this;return`${e} ${t} ${n} ${r} ${o} ${i} ${a} ${s} ${l} `}}t.Matrix=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(131),i=n(148),a=n(18),s=n(8),l=n(40),c=n(48),u=n(12),d=n(278),h=n(23),p=n(206),f=n(132),m=n(104),g=n(46),v=n(29),y=n(114),b=n(889),w=n(375),C=n(890),_=n(14),x=n(35),S=n(52),k=n(47),P=n(158),T=n(56),E=n(24),O=n(277),M=n(151),A=n(55),D=n(157),I=n(62),L=n(43),N=n(6),j=n(6),R=n(34),z=n(95),F=n(1337),B=n(17);class H extends F.default{constructor(e,t,n){var r,o;if(super(e,t,n),this.parent=t,this.isPreview=n,this.isContainer=!1,this.isArtboard=!1,this._isSymbol=!1,this._isLostSymbol=!1,this.doUpdateCompoundPathValue=e=>null,this.lockBoundsChange=!1,this.adjustTextFormatStyleValue=(e,t)=>{const n=t.fontStyle;if(n&&e.fontStyle){const t=s.simpleMerge(e.fontStyle,n);return Object.assign(Object.assign({},e),{fontStyle:t})}return e},this.autoTextSize=()=>{const e=this.value,{textFormat:t,textStyle:n,multiText:r}=this.properties;let o=t;o||(o=Object.assign(Object.assign(Object.assign({},n),r||{}),{isMulti:!!r}));const i=this.getStyleToCalculateSize({textFormat:o}),s=o.wrap;let l={isMultiText:!0,wrap:!1,isRich:j.isRichText(this.type)};this.type===N.CText&&(delete i.textDecorationLine,delete i.fontWeight,delete i.fontStyle);let{width:d,height:h}=a.measureTextSize(i,e,l);const p=d-this.data.size.width,f=h-this.data.size.height,m=o.textAlign||c.TextAlign.left,g=!!o.vertical;let v={do:{},undo:{}},y=Object.assign({},this.data.position);g?(y.x-=p,m===c.TextAlign.right?y.y-=f:m===c.TextAlign.center&&(y.y-=f/2)):m===c.TextAlign.right?y.x-=p:m===c.TextAlign.center&&(y.x-=p/2);const b=R.getNewPositionWhenCenter(this,y,{width:d,height:h},this.parentSize),w=[{id:this.id,type:R.ComponentChangeType.Edit,position:b,size:{width:d,height:h},rotate:this.rotate||0}],{patches:C}=this.parent.getPositionPatchesOfChildrenChanged(w,!0);if(x.coverPatches(v,C),s)if(t){const e=this.getCurrentPropertiesPath("properties/textFormat");v.do[this.id].push(u.Ops.replace(e,Object.assign(Object.assign({},t),{wrap:!1}))),v.undo[this.id].push(u.Ops.replace(e,t))}else if(r){const e=this.getCurrentPropertiesPath("properties/multiText");v.do[this.id].push(u.Ops.replace(e,Object.assign(Object.assign({},r),{wrap:!1}))),v.undo[this.id].push(u.Ops.replace(e,r))}return v},this.setValueWithFontstyle=(e,t,n)=>{const r=!!(null==t?void 0:t.underline),o=!!(null==t?void 0:t.strike),i=!!(null==t?void 0:t.bold),s=!!(null==t?void 0:t.italic),l=new w.FontStyleHelper,{value:c}=l.changeTextFontStyle(e,[{type:"underline",boolean:r},{type:"strike",boolean:o},{type:"bold",boolean:i},{type:"italic",boolean:s}]);return n?a.insertOrderedList(c,n):c},this.updateBoundsOfChildUsingRefTextStyle=(e,t)=>({do:{},undo:{}}),this.updateResponsiveLayout=e=>({do:{},undo:{}}),this.getChildWhichTypeIsText=()=>[],this.removeSelfPatches=()=>{const e=this.parent,t=e.components.filter(e=>{if(e.isConnector){const t=e.getStartCompID(),n=e.getEndCompID(),r=t&&this.id===t,o=n&&this.id===n;return r||o}return!1}),n=D.convertRemovedComponentsToAddOps(e,[this]),r=D.convertRemovedComponentsToAddOps(e,t);return{do:{[e.id]:[u.Ops.removeChildren([this.id])]},undo:{[e.id]:[...n,...r]}}},this.type=e.type,this.isSealed=e.sealed||!1,this.isConnector="connector"===e.type,this.isCompoundPath="compoundPath"===e.type,this.isTree="tree"===e.type,this.initialResizeInfo={},this._dynamicInfo={},this._isSymbol="symbol"===e.type,n){const e=null===(o=null===(r=this.libData)||void 0===r?void 0:r.preview)||void 0===o?void 0:o.init;e&&e(this.data)}}get isGroup(){return!1}get dynamicInfo(){return this._dynamicInfo}set dynamicInfo(e){this._dynamicInfo=e}get isSymbol(){return this._isSymbol}set isSymbol(e){this._isSymbol=e}get isLostSymbol(){return this._isLostSymbol}get canMakeSelectionGroup(){return!this.locked&&0===this.rotate&&this.type!==j.CLine&&(!![j.CRect,j.CEllipse,j.CPolygon,j.CText,j.CImage,j.CPath,j.CIcon].includes(this.type)||!!(this.isGroup&&this instanceof B.UIContainerComponent)&&this.components.every(e=>e.type===j.CLine||e.canMakeSelectionGroup))}get column(){return this.data.column||0}get row(){return this.data.row||0}get hidden(){return!!this.currentState.hidden}get libData(){return this.lib&&L.getComponent(this.lib)||null}get sizeMode(){const e=L.getComponent(this.lib||{id:"basic",type:this.type})||null;return null==e?void 0:e.sizeMode}get document(){var e;return(null===(e=this.parent)||void 0===e?void 0:e.document)||null}get opacity(){var e,t;return null!==(t=null===(e=this.dynamicInfo)||void 0===e?void 0:e.opacity)&&void 0!==t?t:super.opacity}get position(){var e;return(null===(e=this.dynamicInfo)||void 0===e?void 0:e.position)||super.position}get size(){var e;const t=null===(e=this.dynamicInfo)||void 0===e?void 0:e.size;return t||(this.type===j.CLine?this.getLineViewSize():super.size)}get sizeVersion(){return this.data.sizeVersion||0}getLineViewSize(){const{value:e}=this;if("object"==typeof e){const{startPoint:e,endPoint:t}=this.value;if(e&&t){const n={width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)},{height:r,width:o}=v.getBoundsInParent({size:n,rotate:this.rotate||0,position:this.position});return{height:r,width:o}}}return super.size}get rotate(){return super.rotate}get isMoving(){var e;return(null===(e=this.dynamicInfo)||void 0===e?void 0:e.editType)===R.EditType.move}get centerLayoutInfo(){const{responsive:e,horizontal:t,vertical:n,auto:r}=this.layout;return{horizontal:e&&!r&&t===l.HorizontalAlign.Center,vertical:e&&!r&&n===l.VerticalAlign.Middle}}get rotateRelativeToArtboard(){let e=this.rotate,t=this.parent;for(;t&&!t.isArtboard;)e+=t.rotate,t=t.parent;return e}get positionRelativeToArtboard(){let e=this.position,t=this.parent;for(;t&&!t.isArtboard;)e=this.getPositionWithoutParent(e,t),t.parent&&(t=t.parent);return e}get padding(){const{padding:e}=this.properties;return v.getPadding(e)}get value(){var e;const t=super.value;if("string"==typeof t&&C.isRefKey(t)){const e=this.nearestSealedComponent;if("@value"===t&&e){let n=C.getRefValue(t,e.currentState);return n="string"==typeof n&&"@value"!==n?n.replace(/@@/g,"@"):t,n}return t}let n=t;"string"==typeof n&&"@value"!==n&&(n=n.replace(/@@/g,"@"));let r=null===(e=this.dynamicInfo)||void 0===e?void 0:e.value;return r&&"string"==typeof r&&(r=r.replace(/@@/g,"@")),r||n}get text(){const e=super.text;if(C.isRefKey(e)){const e=this.nearestSealedComponent;if(e)return e.text}return e}get canRotate(){var e;if(!this.parent)return!1;const t=[j.CLine,j.CListLayoutPanel,N.CTable,N.CTree,"checkbox","checkbox-group","select","radio","radio-button-group","list","numericStep","breadCrumbs"];if(t.includes((null===(e=this.lib)||void 0===e?void 0:e.type)||"")||t.includes(this.type))return!1;const n=this.parent;if(n.isSealed&&n.lib){const e=L.getComponent(n.lib);if(e&&e.isList)return!1}return!0}get canFlip(){var e;const t=[N.CLine,N.CPath,N.CCompoundPath,N.CPolygon],n=this.libData;if(null===(e=null==n?void 0:n.property)||void 0===e?void 0:e.disabledFlip)return!1;if(this.isGroup){return R.getCompChildrenWithoutGroupContainer(this).every(e=>t.includes(e.type))}return t.includes(this.type)}get autoSize(){var e;const t=null===(e=this.dynamicInfo)||void 0===e?void 0:e.autoSize;return void 0===t?super.autoSize:t}get canConnect(){const e=this.parent;return!(!(null==e?void 0:e.isArtboard)||this.locked||this.isConnector||"line"===this.type||(null==e?void 0:e.rotate))||!(this.isConnector||this.locked||"line"===this.type||(null==e?void 0:e.rotate))&&(!e||!e.isSealed&&!e.isCompoundPath&&e.canConnect)}get constraintInSealedComp(){const e=this.nearestSealedComponent;if(e&&e.lib){const t=L.getLibData(e.lib.type);if(t){const e=t.constraint;if(this.alias&&e)return e[this.alias]}}}get constraint(){var e;const t=null===(e=this.lib)||void 0===e?void 0:e.type;if(t){const e=L.getLibData(t);if(e)return e.constraint}}get moveConstrainInSealedComp(){const e=this.constraintInSealedComp;if(e)return e.move}get canChangeHeight(){var e,t,n;const r=this.nearestSealedComponent||this.lib&&this;if(r&&this.alias){const o=null===(t=L.getLibData(null===(e=r.lib)||void 0===e?void 0:e.type))||void 0===t?void 0:t.constraint;if(o&&(null===(n=o[this.alias])||void 0===n?void 0:n.resize))return v.translateSizeMode(o[this.alias].resize).canChangeHeight}return![M.default.none,M.default.leftMiddle_to_rightMiddle].includes(this.selectFrameType)}get canChangeWidth(){var e,t,n,r;if((null===(e=this.parent)||void 0===e?void 0:e.type)===N.CTable&&this.type===N.CText)return!1;const o=this.nearestSealedComponent||this.lib&&this;if(o&&this.alias){const e=null===(n=L.getLibData(null===(t=o.lib)||void 0===t?void 0:t.type))||void 0===n?void 0:n.constraint;if(e&&(null===(r=e[this.alias])||void 0===r?void 0:r.resize))return v.translateSizeMode(e[this.alias].resize).canChangeWidth}return![M.default.none,M.default.topMiddle_to_bottomMiddle].includes(this.selectFrameType)}get selectFrameType(){var e,t;if(this.isInSuchParent(e=>e.type===N.CListLayoutPanel))return M.default.none;if(this.layout.responsive){const{fixedHeight:e,fixedWidth:t}=this.layout;if(!this.layout.auto){if(e&&!t)return M.default.leftMiddle_to_rightMiddle;if(t&&!e)return M.default.topMiddle_to_bottomMiddle}}if(this.lockedRatio&&this.type!==N.CLine)return M.default.corner;if(this.type===N.CWrapPanel){const{properties:{layout:e}}=this;return"vertical"===(null==e?void 0:e.direction)?M.default.topMiddle_to_bottomMiddle:M.default.leftMiddle_to_rightMiddle}if(this.type===N.CGridPanel){const e=this.properties.cell;if(e){const{ratioHeight:t,ratioWidth:n}=e;if(!t&&!n)return M.default.none}}if(this.type===N.CPath)return 0===this.size.height||0===this.size.width?M.default.corner:M.default.box;if(this.type===N.CLine)return R.getLineSelectionFrameType(this);if(this.type===N.CText)return this.autoSize?(null===(e=this.properties.multiText)||void 0===e?void 0:e.vertical)||(null===(t=this.properties.textFormat)||void 0===t?void 0:t.vertical)?M.default.topMiddle_to_bottomMiddle:M.default.leftMiddle_to_rightMiddle:M.default.box;return b.ComponentSizeMode[this.type]||M.default.box}get canSetSizeLockRatio(){return![M.default.topMiddle_to_bottomMiddle,M.default.leftMiddle_to_rightMiddle,M.default.none].includes(this.selectFrameType)}getWrapperStyle(e,t,n,r){let o=this.position;const{width:i,height:a}=this.size;let s={x:i*(t.x-1)/2,y:a*(t.y-1)/2};this.isConnector&&(s={x:0,y:0});const l=o.x+e.x,c=o.y+e.y,u=i,d=a,h=1!==t.x||1!==t.y?`scale(${t.x}, ${t.y})`:"",p=l*n+s.x,f=c*n+s.y;let m,g=this.rotate||0;this.isPreview||(g%=360),m=r&&this.type!==N.CLine?`translate3d(${p}px, ${f}px, 0) rotate(${g}deg)`:`translate(${p}px, ${f}px) rotate(${g}deg)`;return{transform:m+h,width:u,height:d,transformOrigin:this.isConnector?"left top":void 0}}getTransition(){return this.data._animation&&this.data._animation.timing!==g.AnimateEffects.none?`all ${this.data._animation.duration}ms ${this.data._animation.timing}`:"unset"}toJSON(){return this.data}changeLocked(e){return{do:[u.Ops.replace("/locked",e)],undo:[u.Ops.replace("/locked",this.locked)]}}shouldFlip(e,t){const n=e===P.IFlipModel.Horizontal?"horizontal":"vertical";let r;if(void 0===this.flip)r=!0;else{r=!(this.flip[n]===t)}return r}resetPositionWhenGroup(e){const t=s.depthClone(this.data),n=this.position;return t.position={x:s.round(n.x-e.left),y:s.round(n.y-e.top)},t}resetPositionWhenUnGroup(){const e=s.depthClone(this.data);return e.position=this.getPositionWithoutParent(),e}resetCenterAnchorWhenGroup(e){const t=y.getSmartLayout(e,z.getViewBoundsOfComponents(e)).get(this),{vertical:n,horizontal:r,auto:o}=this.layout;o||r!==l.HorizontalAlign.Center||(this.layout.horizontal=t.horizontal),o||n!==l.VerticalAlign.Middle||(this.layout.vertical=t.vertical)}getRealOffsetForChild(e,t){let n={left:0,right:0,top:0,bottom:0};const{size:r,position:o}=this;if(this.rotate){const o=t.size.width-r.width,i=t.size.height-r.height;s.notSameNumber(e.top,0)&&(n.top=-i),s.notSameNumber(e.bottom,0)&&(n.bottom=i),s.notSameNumber(e.left,0)&&(n.left=-o),s.notSameNumber(e.right,0)&&(n.right=o)}else n={left:t.position.x-o.x,top:t.position.y-o.y,right:t.position.x+t.size.width-o.x-r.width,bottom:t.position.y+t.size.height-o.y-r.height};return n}getLeftTopChangeForChildren(e){const t=this.getBoxPointsInParent()[0],n=S.getNWPoint(S.getCenter(e.position,e.size,0),e.size,this.rotate);let r=n.x-t.x,o=n.y-t.y;r=s.sameNumber(r,0)?0:r,o=s.sameNumber(o,0)?0:o;const i={x:r,y:o};return v.mapVectorToTargetCoordinates(i,-this.rotate)}getCoordinateOffset(e){const t=this.getBoxPointsInParent()[0],{rotate:n,size:r,position:o}=e,i=S.getNWPoint(S.getCenter(o,r,0),r,n);return v.mapVectorToTargetCoordinates({x:t.x-i.x,y:t.y-i.y},-this.rotate)}resizeHandler2(e,t,n,r){if(n.container.isResizeMySelf)return this.getResizeMySelfResult(e,n);const i=this.size,a=this.currentState.size||this.data.size,c=this.position;let u={x:c.x,y:c.y},d={width:i.width,height:i.height},h=n.shift;h=!this.layout.responsive&&!this.isContainer||n.shift,this.isGroup&&!this.layout.responsive&&(h=!0);const{before:p,after:f,isResponsive:m}=n.container;if(h){const r=n.scale.h,o=n.scale.v;let a={width:i.width*r,height:i.height*o},l=!m&&n.shift||!!i.lockedRatio||n.shift||this.isGroup&&!this.layout.responsive&&n.shift;return a=R.updateSizeAsLockedRatio(i,a,l),u={x:f.position.x+(c.x-p.position.x)*r,y:f.position.y+(c.y-p.position.y)*o},a=this.adjustZeroSize(a),this.updateSizeWhenResizeText(a,i),this.layout.responsive&&!this.layout.auto&&(t.fixedHeight&&(a.height=i.height,u.y=R.responsiveFixedHeightStrategy(c,i,e,t,n).y),t.fixedWidth&&(a.width=i.width,u.x=R.responsiveFixedWidthStrategy(c,i,e,t,n).x)),a={height:s.round(a.height),width:s.round(a.width)},{position:u,size:a,rotate:this.rotate}}const g=this.rotate;let y=this.getBoxPointsInParent()[0];if(t.fixedWidth)switch(t.horizontal){case l.HorizontalAlign.Left:u.x=c.x+e.left;break;case l.HorizontalAlign.Right:u.x=c.x+e.right;break;case l.HorizontalAlign.LeftAndRight:o.ok(!1,"组件不能既固定宽度,又两边都锚定.");break;case l.HorizontalAlign.Auto:s.isEqual0(p.size.width-i.width)?u.x=c.x+e.left+e.right:(this.initialResizeInfo.xDistributionRatio||(this.initialResizeInfo.xDistributionRatio=(c.x-p.position.x)/(p.size.width-i.width)),u.x=this.initialResizeInfo.xDistributionRatio*(f.size.width-i.width)+f.position.x);break;case l.HorizontalAlign.Center:u.x=f.position.x+f.size.width/2-i.width/2;break;default:o.ok(!1,"不该有这种情况")}else switch(t.horizontal){case l.HorizontalAlign.Auto:u.x=f.position.x+(c.x-p.position.x)*n.scale.h,d.width=i.width*n.scale.h,y.x=S.getNWPoint(S.getCenter(u,d,0),d,this.rotate).x;break;case l.HorizontalAlign.Center:d.width=i.width*n.scale.h,u.x=f.position.x+f.size.width/2-d.width/2;break;case l.HorizontalAlign.Right:{d.width=i.width*n.scale.h;const t=p.size.width-c.x-i.width;u.x=f.size.width-d.width-t+e.left,s.notSameNumber(e.right,0)&&(y.x=S.getNWPoint(S.getCenter(u,d,0),d,this.rotate).x);break}case l.HorizontalAlign.LeftAndRight:{d.width=Math.max(R.getMinSizeOfComp(this).width,i.width+e.right-e.left);const t=v.mapVectorToTargetCoordinates({x:e.left,y:0},this.rotate);this.rotate?s.notSameNumber(e.left,0)&&(y.x+=t.x,y.y+=t.y):(this.initialResizeInfo.right||(this.initialResizeInfo.right=p.size.width-c.x-i.width),u.x=c.x+e.left,this.type===j.CPath&&0===a.width&&(d.width=0));break}default:0!==e.left&&(u.x=c.x+e.left),e.right-e.left!=0&&(d.width=i.width*n.scale.h),s.notSameNumber(e.left,0)&&(y.x=S.getNWPoint(S.getCenter(u,d,0),d,this.rotate).x)}if(t.fixedHeight)switch(t.vertical){case l.VerticalAlign.Top:u.y=c.y+e.top;break;case l.VerticalAlign.Bottom:u.y=c.y+e.bottom;break;case l.VerticalAlign.TopAndBottom:o.ok(!1,"组件不能既固定宽度,又两边都锚定.");break;case l.VerticalAlign.Auto:s.isEqual0(p.size.height-i.height)?u.y=c.y+e.top+e.bottom:(this.initialResizeInfo.yDistributionRatio||(this.initialResizeInfo.yDistributionRatio=(c.y-p.position.y)/(p.size.height-i.height)),u.y=this.initialResizeInfo.yDistributionRatio*(f.size.height-i.height)+f.position.y,y.y=S.getNWPoint(S.getCenter(u,d,0),d,this.rotate).y);break;case l.VerticalAlign.Middle:u.y=f.position.y+f.size.height/2-i.height/2;break;default:o.ok(!1,"不该有这种情况")}else switch(t.vertical){case l.VerticalAlign.Auto:u.y=f.position.y+(c.y-p.position.y)*n.scale.v,d.height=i.height*n.scale.v,y.y=S.getNWPoint(S.getCenter(u,d,0),d,this.rotate).y;break;case l.VerticalAlign.Middle:u.y=f.position.y+f.size.height/2-d.height/2,d.height=i.height*n.scale.v;break;case l.VerticalAlign.TopAndBottom:{d.height=Math.max(R.getMinSizeOfComp(this).height,i.height+e.bottom-e.top);const t=v.mapVectorToTargetCoordinates({x:0,y:e.top},this.rotate);this.type===j.CPath&&0===a.height&&(d.height=0),this.rotate?e.top&&(y.y+=t.y,y.x+=t.x):u.y=c.y+e.top;break}case l.VerticalAlign.Bottom:{d.height=i.height*n.scale.v;const t=p.size.height-c.y-i.height;u.y=f.size.height-d.height-t+e.top,y=S.getNWPoint(S.getCenter(u,d,0),d,this.rotate);break}default:0!==e.top&&(u.y=c.y+e.top),e.bottom-e.top!=0&&(d.height=i.height*n.scale.v)}d=this.adjustZeroSize(d),this.updateSizeWhenResizeText(d,i),d=this.updateSizeWhenResizeLine(d),d=R.updateSizeAsLockedRatio(i,d,this.lockedRatio),d={height:s.round(d.height),width:s.round(d.width)};const b=s.notSameNumber(d.height,i.height)||s.notSameNumber(d.width,i.width);return this.rotate&&b&&(u=S.getNWPoint(S.getCenter(y,d,this.rotate),d,0)),{position:{x:u.x,y:u.y},size:d,rotate:g}}getSealedCompSpecialResizePatches(e){var t,n;const r=null===(n=null===(t=this.libData)||void 0===t?void 0:t.editor)||void 0===n?void 0:n.onResize;return r?r(this,e):null}getResizeMySelfResult(e,t){const{size:n}=this,r=this.getBoxPointsInParent()[0],o=this.rotate,i=v.mapVectorToTargetCoordinates({x:e.left,y:e.top},o),a=s.depthClone(r);a.x+=i.x,a.y+=i.y;let l=s.depthClone(n);const{widthChange:c,heightChange:u}=R.getCompSizeChangeByOffSet(e,this);l.width+=c,l.height+=u,l=this.adjustZeroSize(l),this.updateSizeWhenResizeText(l,n),l=R.updateSizeAsLockedRatio(n,l,(null==t?void 0:t.shift)||this.lockedRatio);const d=S.getCenter(a,l,o),h=S.getNWPoint(d,l,0);return l={height:s.round(l.height),width:s.round(l.width)},{position:h,size:l,rotate:o}}updateSizeWhenResizeText(e,t){var n;if([N.CText,j.CPureText].includes(this.type)){const{textFormat:r,multiText:o,textStyle:i}=this.properties,l=!!(null===(n=r||o)||void 0===n?void 0:n.vertical),c=s.notSameNumber(e.width,t.width),u=s.notSameNumber(e.height,t.height),d=!c&&!u,h=l&&c||!l&&u,p=this.value,f=this.getStyleToCalculateSize({textFormat:r||Object.assign(Object.assign(Object.assign({},i),o||{}),{isMulti:!!o})});if(this.autoSize){if(d||h)return e.width=t.width,void(e.height=t.height);if(c){let t={defaultWidth:e.width,isMultiText:!0,wrap:!0,isRich:j.isRichText(this.type)};const{height:n}=a.measureTextSize(f,p,t);e.height=n}else{let t={defaultHeight:e.height,isMultiText:!0,wrap:!0};const{width:n}=a.measureTextSize(f,p,t);e.width=n}}}}updateSizeWhenResizeLine(e){const{width:t,height:n}=this.toJSON().size;return this.type===j.CLine?0===n?{height:0,width:s.isNotEqual0(e.width)?e.width:1}:0===t?{height:s.isNotEqual0(e.height)?e.height:1,width:0}:{height:s.isNotEqual0(e.height)?e.height:1,width:s.isNotEqual0(e.width)?e.width:1}:e}resizeMySelf(e,t){const{size:n,position:r}=this,o=R.getResizeMySelfLayout(),i={position:r,size:n},a=n.width+e.right-e.left,s=n.height+e.bottom-e.top,l={container:{before:i,after:{position:{x:r.x+e.left,y:r.y+e.top},size:{width:a,height:s}},isResponsive:!0,isResizeMySelf:!0},shift:t,scale:{h:a/n.width,v:s/n.height}};return this.resizeHandler2(e,o,l)}flipHandler(e,t){const n=new I.ArtboardPatchesClass;return this.shouldFlip(e,t)&&P.updatePatchesByWhenFlip(this,e,n),n}updateValueOrPropertiesWithBoundsChanged(e){var t,n;let r=null;switch(this.type){case N.CPath:r=this.doUpdatePathValue(e);break;case N.CCompoundPath:r=this.doUpdateCompoundPathValue(e);break;case N.CLine:r=this.doUpdateLineValue(e);break;case N.CRect:r=this.doUpdateRectRadius(e);break;case N.CTable:r=this.doUpdateTableValues(e)}const o=null===(n=null===(t=this.libData)||void 0===t?void 0:t.editor)||void 0===n?void 0:n.onResize;if(o){const t=o(this,e);r?t&&x.coverPatches(r,t):r=t}return r}doUpdatePathValue(e){const t=this.currentState.size||this.data.size;if(this.type===N.CPath){if(e.width===t.width&&e.height===t.height)return null;const n={x:e.width/(t.width||1),y:e.height/(t.height||1)},r=this.currentState.value||this.data.value,o=k.onPathValueZoom(r,n),i=[N.CCompoundPath,N.CPath].includes(this.type)?"/value":this.getCurrentPropertiesPath("/value");return{do:{[this.id]:[u.Ops.replace(i,o)]},undo:{[this.id]:[u.Ops.replace(i,r)]}}}return null}doUpdateTableValues(e){return null}doUpdateLineValue(e){const t=this.size;if(this.type===N.CLine){const n={x:e.width/(t.width||.1),y:e.height/(t.height||.1)};let{startPoint:r,endPoint:o}=this.value;r=r||{x:0,y:0},o=o||{x:this.toJSON().size.width,y:this.toJSON().size.height};const{startPoint:i,endPoint:a}=R.getLineValueByZoom({startPoint:r,endPoint:o},n),l=t=>{s.isMoreOrLess(t.x,0,.5)?t.x=0:s.isMoreOrLess(t.x,e.width,.5)&&(t.x=e.width),s.isMoreOrLess(t.y,0,.5)?t.y=0:s.isMoreOrLess(t.y,e.height,.5)&&(t.y=e.height)};l(i),l(a);const c={startPoint:i,endPoint:a},d=[N.CCompoundPath,N.CPath].includes(this.type)?"/value":this.getCurrentPropertiesPath("/value");return{do:{[this.id]:[u.Ops.replace(d,c)]},undo:{[this.id]:[u.Ops.replace(d,this.value)]}}}return null}doUpdateRectRadius(e){const{radius:t}=this.properties;if(t&&!t.disabled&&!t.isPercent){const{width:n,height:r}=e,o=Math.round(Math.min(n,r)/2);let{topLeft:i,topRight:a,bottomRight:s,bottomLeft:l}=t;const c=e=>e?Math.min(e,o):e;if(i=c(i),a=c(a),l=c(l),s=c(s),i!==t.topLeft||a!==t.topRight||l!==t.bottomLeft||s!==t.bottomRight){const e=Object.assign(Object.assign({},t),{topLeft:i,topRight:a,bottomLeft:l,bottomRight:s});let n="/properties/radius";return this.data._currentState&&(n=this.getCurrentPropertiesPath(n)),{do:{[this.id]:[u.Ops.replace(n,e)]},undo:{[this.id]:[u.Ops.replace(n,t)]}}}}return null}changeSelfSelected(e){return this.modifyGeneralProperties("selected",e)}doModifySelectedState(e){var t,n;const r=this.states[E.PredefinedStates.checked],o={do:{},undo:{}},i=(e,t)=>{t&&(o.do[e]?(o.do[e].push(...t.do),o.undo[e].push(...t.undo)):(o.do[e]=t.do,o.undo[e]=t.undo))};if(e){if(!r||!r.enabled){const e=this.changeStateEnabled(E.PredefinedStates.checked,!0);i(this.id,e)}}else if(r){const e=this.changeStateEnabled(E.PredefinedStates.checked,!1);i(this.id,e)}let a=this.isSealed?this:this.nearestSealedComponent;a=(null==a?void 0:a.nearestSealedComponent)||a;const s=null===(n=null===(t=null==a?void 0:a.libData)||void 0===t?void 0:t.editor)||void 0===n?void 0:n.onChildSelectedChange;if(s){const t=s(a,this,e);if(t){Object.keys(t.do).forEach(e=>{i(e,{do:t.do[e],undo:t.undo[e]})})}}else{const t=null==a?void 0:a.select;if("child"===(null==t?void 0:t.target)||(null==a?void 0:a.type)===N.CContentPanel){const n="child"===(null==t?void 0:t.target)?t.maxCount:1;if(e&&-1!==n){const e=a.components.filter(e=>e.selected);if(e.length>=n){const t=e.length-n;for(let n=0;n<=t;n++){const t=e[n].changeStateEnabled(E.PredefinedStates.checked,!1);t&&(t.do.push(u.Ops.replace("./selected",!1)),t.undo.push(u.Ops.replace("./selected",e[n].selected))),i(e[n].id,t)}}}}}return e&&this.disabled&&i(this.id,{do:[u.Ops.replace("/disabled",!1)],undo:[u.Ops.replace("/disabled",!0)]}),o}modifyGeneralProperties(e,t){const n=()=>{const e=this.states[E.PredefinedStates.disabled];if(t){if(!e||!e.enabled){const e=this.changeStateEnabled(E.PredefinedStates.disabled,!0);e&&(i.do.push(...e.do),i.undo.push(...e.undo))}}else if(e){const e=this.changeStateEnabled(E.PredefinedStates.disabled,!1);e&&(i.do.push(...e.do),i.undo.push(...e.undo))}t&&this.selected&&(i.do.push(u.Ops.replace("/selected",!1)),i.undo.push(u.Ops.replace("/selected",!0)))},r=-1!==["name","disabled","selected"].indexOf(e),o=r?"/"+e:this.getCurrentPropertiesPath(e),i={do:[u.Ops.replace(o,t)],undo:[u.Ops.replace(o,null!=this[e]?this[e]:this.data[e])]};if(!r){const e=this.currentStateID;e&&"normal"!==e&&(this.hasState(e)||(i.do.unshift(u.Ops.add("./states/"+e,{properties:{}})),i.undo.push(u.Ops.remove("./states/"+e))))}let a={do:{},undo:{}};return"disabled"===e?n():"selected"===e&&(a=this.doModifySelectedState(t)),a.do[this.id]?(a.do[this.id].unshift(...i.do),a.undo[this.id].unshift(...i.undo)):(a.do[this.id]=i.do,a.undo[this.id]=i.undo),a}getTextPositionBySizeChange(e){const{rotate:t,size:n}=this,{textStyle:r,textFormat:o,multiText:i}=this.properties,a=(null==o?void 0:o.textAlign)||(null==r?void 0:r.textAlign)||c.TextAlign.left,l=S.getCenter(this.getBoxPointsInParent()[0],n,t),u=this.getBoxPointsInParent()[0];if((null==o?void 0:o.vertical)||(null==i?void 0:i.vertical))switch(a){case c.TextAlign.left:{const n=v.mapVectorToTargetCoordinates({x:-e.width,y:0},t),r=this.getBoxPointsInParent()[1],o={x:r.x+n.x,y:r.y+n.y},i=S.getCenter(o,e,t);return S.getNWPoint(i,e,0)}case c.TextAlign.center:if(s.sameNumber(e.width,n.width))return S.getNWPoint(l,e,0);{const n=v.mapVectorToTargetCoordinates({x:-e.width,y:0},t),r=this.getBoxPointsInParent()[1],o={x:r.x+n.x,y:r.y+n.y},i=S.getCenter(o,e,t);return S.getNWPoint(i,e,0)}case c.TextAlign.right:{const n=v.mapVectorToTargetCoordinates({x:-e.width,y:-e.height},t),r=this.getBoxPointsInParent()[2],o={x:r.x+n.x,y:r.y+n.y},i=S.getCenter(o,e,t);return S.getNWPoint(i,e,0)}default:{const n=v.mapVectorToTargetCoordinates({x:-e.width,y:0},t),r=this.getBoxPointsInParent()[1],o={x:r.x+n.x,y:r.y+n.y},i=S.getCenter(o,e,t);return S.getNWPoint(i,e,0)}}else switch(a){case c.TextAlign.left:{const n=S.getCenter(u,e,t);return S.getNWPoint(n,e,0)}case c.TextAlign.center:return s.sameNumber(e.height,n.height)?S.getNWPoint(l,e,0):{x:(n.width-e.width)/2+u.x,y:u.y};case c.TextAlign.right:{const n=v.mapVectorToTargetCoordinates({x:-e.width,y:0},t),r=this.getBoxPointsInParent()[1],o={x:r.x+n.x,y:r.y+n.y},i=S.getCenter(o,e,t);return S.getNWPoint(i,e,0)}default:{const n=S.getCenter(u,e,t);return S.getNWPoint(n,e,0)}}}updateBoundsWithTextChange(e,t){const n={do:{},undo:{}};return this.isSealed?this.updateBoundsWhenSealedCompTextChange(t,n):this.updateBoundsWhenBasicTextCompTextChange(t,e,n),n}updateBoundsWhenBasicTextCompTextChange(e,t,n){var o,i,l,c,u,d,h;const p=L.getComponentSupportValueEditorType(this.type,this.lib);let f=!1;-1!==[N.CPureText,N.CText,N.CParagraph].indexOf(this.type)&&!r.isUndefined(p)&&(f=T.isTextEditorType(p),this.type===N.CPureText&&(r.isUndefined(this.data.autoSize)||this.autoSize||(f=!1)));const m=null===(o=e.textFormat)||void 0===o?void 0:o.wrap,g=null===(i=e.textFormat)||void 0===i?void 0:i.indent,v=!!(null===(l=e.textFormat)||void 0===l?void 0:l.vertical);if(f){const{size:r}=this,o=t!==this.value,i=300;let l={defaultWidth:e.autoFill?i:r.width,defaultHeight:void 0,isMultiText:-1!==[N.CText,N.CParagraph,N.CTextArea].indexOf(this.type),wrap:m,indent:g,isRich:j.isRichText(this.type)};const{stroke:p,textFormat:f,multiText:y}=this.properties;e.stroke=e.stroke||p;const b=this.getStyleToCalculateSize(e);if(l){const t="vertical-rl"===b.writingMode,n=!(!(null==f?void 0:f.vertical)&&!(null==y?void 0:y.vertical))!==v;[N.CPureText].includes(this.type)?(delete l.defaultHeight,this.type===N.CPureText&&delete l.defaultWidth):t?(l.defaultWidth=void 0,l.defaultHeight=this.autoSize?void 0:e.defaultWidth||r.height,n&&(l.defaultHeight=r.width,l.defaultWidth=r.height)):(o&&this.autoSize&&!e.autoFill&&delete l.defaultWidth,n&&(l.defaultHeight=r.width,l.defaultWidth=r.height))}let w,C,_=t;if([N.CPureText].includes(this.type)&&(_=a.transBlankChart(_)),_.trim()){const e=a.measureTextSize(b,_,l);this.type===N.CText?v?(w=e.width,C=this.autoSize?e.height:Math.max(r.height,e.height)):(w=this.autoSize?e.width:Math.max(r.width,e.width),C=e.height):(w=e.width,C=e.height)}else w=0,C=a.measureTextSize(b,"j",l).height;["list","segmentControl","button"].includes((null===(c=this.lib)||void 0===c?void 0:c.type)||this.type)&&w>this.parent.size.width&&(w=null===(u=this.parent)||void 0===u?void 0:u.size.width);const S=!s.sameNumber(w,r.width)||!s.sameNumber(C,r.height),k=(null===(d=e.textFormat)||void 0===d?void 0:d.vertical)!==(null===(h=this.properties.textFormat)||void 0===h?void 0:h.vertical);if(S){let e=this.getTextPositionBySizeChange({height:C,width:w});e=k?this.position:this.getTextPositionBySizeChange({height:C,width:w});const t={height:C,width:w};e=R.getNewPositionWhenCenter(this,e,t,this.parent.size);const r=this.parent.getPositionPatchesOfChildrenChanged([{id:this.id,type:R.ComponentChangeType.Edit,position:e,size:{width:w,height:C},rotate:this.rotate}],!0);x.coverPatches(n,r.patches)}}}updateBoundsWhenSealedCompTextChange(e,t){const n=[],r=e=>{e.forEach(e=>{if(e.isContainer)r(e.components);else{const{properties:t,value:r}=e.toJSON(),{textStyle:o}=t;o&&r&&"string"==typeof r&&(C.isRefValue(o)||C.isRefKey(r)&&this.value)&&n.push(e)}})};this instanceof B.UIContainerComponent&&(r(this.components),n.forEach(n=>{const r=n.updateBoundsWithTextChange(n.value,e);Object.keys(r.do).forEach(e=>{t.undo[e]=r.undo[e],t.do[e]=r.do[e]})}))}getStyleToCalculateSize(e){var t,n,r,o,i,a,l,c;if(!e||!Object.keys(e).length)return{};const u=s.depthClone(this.toJSON().properties),{textFormat:d}=u;u.textFormat=d&&"string"!=typeof d?Object.assign(Object.assign({},d),e.textFormat):e.textFormat;const h=_.StyleHelper.initCSSStyleParser(u),p=Object.assign({},h.getTextStyle()),f=e.stroke?!(null===(t=e.stroke)||void 0===t?void 0:t.disabled)&&(null===(n=e.stroke)||void 0===n?void 0:n.thickness):!(null===(r=this.properties.stroke)||void 0===r?void 0:r.disabled)&&(null===(o=this.properties.stroke)||void 0===o?void 0:o.thickness);return f&&(p.boxSizing="border-box",p.border=f+"px solid transparent"),u.textFormat?(null===(i=null==e?void 0:e.textFormat)||void 0===i?void 0:i.lineHeightEx)!==(null===(a=u.textFormat)||void 0===a?void 0:a.lineHeightEx)&&delete p.lineHeight:u.multiText&&(null===(l=null==e?void 0:e.textFormat)||void 0===l?void 0:l.lineHeightEx)!==(null===(c=u.multiText)||void 0===c?void 0:c.lineHeight)&&delete p.lineHeight,p}updateSpecialProperty(e,t){var n;let r=this.libData;r||(r=L.getComponent({id:"basic",type:this.type})||null);const o=null===(n=null==r?void 0:r.editor)||void 0===n?void 0:n.onPropertyUpdate;return o?o(this,e,t):null}adjustPropertyValue(e,t,n){switch(e){case c.TextPropertyName:return this.adjustTextFormatStyleValue(t,n);case p.RadiusPropertyName:return v.transRadius(t,n,this.size)}return t}forceResetRichText(e){return i(e,{allowedTags:!1,allowedAttributes:{"*":["style"]},allowedStyles:{"*":{}}})}resetRichText(e,t,n){if(N.isRichText(this.type)){const r=Object.assign({},a.allowedTextStyles),o=this.properties;if(t){let e=t.prop;e||(e=o.textFormat?m.TextFormatExPropertyName:c.TextPropertyName);const n=o[e];(null==n?void 0:n.fontSize)!==t.fontSize&&delete r["font-size"],(null==n?void 0:n.fontFamily)!==t.fontFamily&&delete r["font-family"],s.isEqualDate(null==n?void 0:n.color,t.color)||delete r.color,(null==n?void 0:n.fontStyle)&&t.fontStyle&&(n.fontStyle.italic!==t.fontStyle.italic&&delete r["font-style"],(null==n?void 0:n.fontStyle.bold)!==t.fontStyle.bold&&delete r["font-weight"])}if(n){let e=n.prop;e||(e=o.textFormat?m.TextFormatExPropertyName:d.MultiTextPropertyName);const t=o[e];(null==t?void 0:t.wrap)!==n.wrap&&delete r["white-space"],t.lineHeightEx!==n.lineHeightEx&&delete r["line-height"]}return i(e,{allowedTags:!1,allowedAttributes:{"*":["style"]},allowedStyles:{"*":r}})}return e}doUpdateRelationTextProperty(e,t,n){var r,o;const{properties:i}=this,a=(null===(r=this.lib)||void 0===r?void 0:r.type)||this.type;if((null===(o=O.CompTextStyleNameConfig[a])||void 0===o?void 0:o.entireTextStyleName)===t){const t=v.getChangedValue(n,i[e]);return v.getCheckedTextStylePatchesWhenMainTextStyleChange(this,e,t)}return null}doUpdateWithAdjustPropertyValue(e,t,n,r){const o=this.adjustPropertyValue(t,r,n),i=this.getCurrentPropertiesPath("properties/"+e);return{do:{[this.id]:[u.Ops.replace(i,o)]},undo:{[this.id]:[u.Ops.replace(i,n)]}}}doUpdateInputModel(e,t){if(e!==f.InputModelPropertyName)return null;if(t.value===f.InputModel.numeric){const e=this.value,t=/^-?\d*\.?\d*$/;if(e&&!t.test(e))return this.setValue("")}return null}doUpdateOtherTextChange(e,t,n,r){var o,i,a,s,l,p;const f=[],{_currentState:g,states:v}=this.data;if(g&&g!==E.PredefinedStates.normal){const e=v[g];if(e){const{value:t,text:n}=e;if(!t&&!n&&!this.value)return[]}}if([c.TextPropertyName,m.TextFormatExPropertyName,d.MultiTextPropertyName,h.StrokePropertyName].includes(t)){const g=(null===(o=this.lib)||void 0===o?void 0:o.type)||this.type,{properties:v}=this,y=N.isShapeText(this.type)?this.text:this.value;let b,w;t===m.TextFormatExPropertyName?(b=n,w=n):t===c.TextPropertyName?(b=n,w=v.multiText):t===d.MultiTextPropertyName?(w=n,b=v.textStyle):(b=v.textStyle||v.textFormat,w=v.multiText||v.textFormat);const C=(null===(i=v.stroke)||void 0===i?void 0:i.disabled)?void 0:v.stroke,_=this.isSealed?void 0:t===h.StrokePropertyName?n:C,x=this.resetRichText(y,b,w),S=null===(a=O.CompTextStyleNameConfig[g])||void 0===a?void 0:a.entireTextStyleName,k=null===(s=O.CompTextStyleNameConfig[g])||void 0===s?void 0:s.checkedTextStyleName,P=null===(l=O.CompTextStyleNameConfig[g])||void 0===l?void 0:l.hoverTextStyleName,T=S===e||e===c.TextPropertyName,M=k===e,A=P===e;if(!M&&!A)if(N.isShapeText(this.type))y!==x&&f.push(this.setText(x));else{const e={textFormat:Object.assign(Object.assign(Object.assign(Object.assign({},w),b),n),{isMulti:this.type!==N.CPureText}),stroke:_};if(!this.lockBoundsChange)if(this.autoSize){this.lockBoundsChange=!0;const t=this.updateBoundsWithTextChange(x,e);if(!r&&y!==x){const e=this.setValue(x);f.push(e)}f.push(t)}else if((null===(p=this.parent)||void 0===p?void 0:p.type)===N.CTable){const t=Object.assign({},e,{defaultWidth:this.size.width}),n=this.updateBoundsWithTextChange(x,t);f.push(n)}}if(!r&&(t===c.TextPropertyName||t===m.TextFormatExPropertyName)&&N.isRichText(this.type)){const{fontStyle:e}=n,t=this.setValueWithFontstyle(x,e),r={do:{},undo:{}},o=this.getCurrentPropertiesPath(N.isShapeText(this.type)?"text":"value");r.do[this.id]=[u.Ops.replace(o,t)],r.undo[this.id]=[u.Ops.replace(o,y)],f.push(r)}const D=this.getChildWhichTypeIsText();(t===c.TextPropertyName||t===m.TextFormatExPropertyName)&&this.isSealed&&D.length&&(T?D.forEach(e=>{if(e.type===N.CText){const t=[],r=[],o=this.resetValueWithNewFontStyle(e.value,n),i={do:{},undo:{}},a=e.getCurrentPropertiesPath("value"),s=e.hasState(E.PredefinedStates.checked)?e.getStatePath(E.PredefinedStates.checked,"value"):void 0;t.push(u.Ops.replace(a,o));const l=e.value;r.push(u.Ops.replace(a,l)),s&&(t.push(u.Ops.replace(s,o)),r.push(u.Ops.replace(s,l))),i.do[e.id]=t,i.undo[e.id]=r,f.push(i)}}):M?D.forEach(e=>{if(e.type===N.CText){const t=this.resetValueWithNewFontStyle(e.value,n),r={do:{},undo:{}},o=e.hasState(E.PredefinedStates.checked)?e.getStatePath(E.PredefinedStates.checked,"value"):void 0;if(!o)return;r.do[e.id]=[u.Ops.replace(o,t)],r.undo[e.id]=[u.Ops.replace(o,e.value)],f.push(r)}}):A&&D.forEach(e=>{if(e.type===N.CText){const t=this.resetValueWithNewFontStyle(e.value,n),r={do:{},undo:{}},o=e.hasState(E.PredefinedStates.hover)?e.getStatePath(E.PredefinedStates.hover,"value"):void 0;if(!o)return;r.do[e.id]=[u.Ops.replace(o,t)],r.undo[e.id]=[u.Ops.replace(o,e.value)],f.push(r)}}))}return this.lockBoundsChange=!1,f}setProperty(e,t,n){this._dynamicProperties=void 0;const o=e=>{e&&Object.keys(e.do).forEach(t=>{const n=e.do[t],r=e.undo[t];n.length&&(a.do[t]?(a.do[t].push(...n),a.undo[t].push(...r)):(a.do[t]=n,a.undo[t]=r))})};let i,a={do:{},undo:{}};const l=this.currentState;if(!l.properties)return a;const c=l.properties[e],d=this.properties[e];if(r.isUndefined(d)||(null==d?void 0:d.disabled)&&void 0===t.disabled)return a;const h=s.simpleMerge(t,d);if(i=c&&c.ref?this.nearestSealedComponent:null,c&&c.ref&&i){const e=c.ref.replace("@properties.","");a=i.setProperty(e,Object.assign({},i.properties[e],h))}else{const t=this.currentStateID,n=(null==d?void 0:d.prop)||e,r=this.doUpdateWithAdjustPropertyValue(e,n,d,h);x.coverPatches(a,r);const o=this.doUpdateRelationTextProperty(e,n,h);if(o&&x.coverPatches(a,o),t&&"normal"!==t){const e=this.states[t];e?e.properties||(a.do[this.id]?(a.do[this.id].unshift(u.Ops.add(`./states/${t}/properties`,{})),a.undo[this.id].push(u.Ops.remove(`./states/${t}/properties`))):(a.do[this.id]=[u.Ops.add(`./states/${t}/properties`,{})],a.undo[this.id]=[u.Ops.remove(`./states/${t}/properties`)])):a.do[this.id]?(a.do[this.id].unshift(u.Ops.add("./states/"+t,{properties:{},enabled:!1})),a.undo[this.id].push(u.Ops.remove("./states/"+t))):(a.do[this.id]=[u.Ops.add("./states/"+t,{properties:{},enabled:!1})],a.undo[this.id]=[u.Ops.remove("./states/"+t)])}}o(this.updateSpecialProperty(e,h));const p=this.updateBoundsOfChildUsingRefTextStyle(e,h);x.coverPatches(a,p);const f=(null==d?void 0:d.prop)||e;this.doUpdateOtherTextChange(e,f,h,n).forEach(e=>o(e));const m=this.doUpdateInputModel(e,h);return m&&o(m),a}resetValueWithNewFontStyle(e,t){const n=this.resetRichText(e,t),{fontStyle:r,listType:o}=t;return this.setValueWithFontstyle(n,r,o)}isInSuchParent(e){const t=this.parent;if(!t)return!1;return!!e(t)||t.isInSuchParent(e)}setValue(e,t){var n,o,i,a,s,l,c;let h={do:{},undo:{}},p=null;if(this.isRefValue()){let t;p=this.nearestSealedComponent,p&&("select"===(null===(o=null===(n=p.nearestSealedComponent)||void 0===n?void 0:n.libData)||void 0===o?void 0:o.type)&&(t=null===(i=p.nearestSealedComponent.libData.editor)||void 0===i?void 0:i.onChildValueChange),h=t?t(e,this):p.setValue(e))}else{let t=e;"string"==typeof e&&(t=e.replace(/@/g,"@@"));const n=this.getValuePath(this.type);h.do[this.id]=[u.Ops.replace(n,t)],h.undo[this.id]=[u.Ops.replace(n,this.value)];const r=this.currentStateID;r&&!this.states[r]&&(h.do[this.id].unshift(u.Ops.replace("./states/"+r,{properties:{},enabled:!1})),h.undo[this.id].push(u.Ops.replace("./states/"+r,void 0))),this.updateStokeWhenModifyPathComp(t,h)}const{textStyle:f,multiText:g,textFormat:v}=this.properties;if("string"==typeof e&&(v||f)){const n=(null==v?void 0:v.vertical)||(null==g?void 0:g.vertical);let o=!(!(null==v?void 0:v.wrap)&&!(null==g?void 0:g.wrap));if(t&&!r.isUndefined(t.wrap)&&(o=t.wrap),!this.lockBoundsChange){this.lockBoundsChange=!0;let i=!!g;if(v&&!r.isUndefined(v.isMulti)&&(i=v.isMulti),this.autoSize){let r={textFormat:v?Object.assign(Object.assign({},v),{wrap:o}):Object.assign(Object.assign(Object.assign({isMulti:i},f||{}),g||{}),{wrap:o}),defaultWidth:n?null===(s=null==t?void 0:t.size)||void 0===s?void 0:s.height:null===(a=null==t?void 0:t.size)||void 0===a?void 0:a.width,autoFill:null==t?void 0:t.autoFill},l=this.updateBoundsWithTextChange(e,r);if(Object.keys(l.do).forEach(e=>{const t=l.do[e],n=l.undo[e];t.length&&(h.do[e]?(h.do[e].push(...t),h.undo[e].push(...n)):(h.do[e]=t,h.undo[e]=n))}),(v||g)&&t){const e=!!(null==t?void 0:t.wrap);if((v||g).wrap!==e){const t=v?m.TextFormatExPropertyName:d.MultiTextPropertyName;l=this.setProperty(t,Object.assign(Object.assign({},v||g),{wrap:e}),!0),l&&x.mergePatches(h,l)}}}}this.lockBoundsChange=!1}const y=this.updataSelectedChildWithValueChange(e);y&&x.mergePatches(h,y);const b=this.updataParentWithValueChange(e);if(b&&x.mergePatches(h,b),null===(c=null===(l=this.libData)||void 0===l?void 0:l.editor)||void 0===c?void 0:c.onValueUpdate){const t=this.libData.editor.onValueUpdate(this,e);t&&x.mergePatches(h,t)}return h}updateStokeWhenModifyPathComp(e,t){if([N.CCompoundPath,N.CPath].includes(this.type)){if(this.type===N.CPath?!k.isClosedPathWithArea(e):e.find(e=>!k.isClosedPathWithArea(e))){const e=this.updatePathStrokePositionOfAllState(h.StrokePosition.center);e&&x.mergePatches(t,e)}}}updatePathStrokePositionOfAllState(e){const t={do:{},undo:{}},n=this.toJSON().properties.stroke;if(n){const r="./properties/stroke",o=s.depthClone(n);o.position=e,t.do[this.id]=[u.Ops.replace(r,o)],t.undo[this.id]=[u.Ops.replace(r,n)]}return Object.keys(this.states).forEach(n=>{var r;const o=null===(r=this.states[n].properties)||void 0===r?void 0:r.stroke;if(o){const r=s.depthClone(o);r.position=e;const i=`./states/${n}/properties/stroke`;t.do[this.id]=(t.do[this.id]||[]).concat([u.Ops.replace(i,r)]),t.undo[this.id]=(t.undo[this.id]||[]).concat([u.Ops.replace(i,o)])}}),t}updataSelectedChildWithValueChange(e){if(this.type===N.CSelect){const t=v.findChildrenByFiltering(this,e=>e.type===N.CListLayoutPanel);if(t){const n=v.findChildrenByFiltering(t[0],e=>e.selected);if(n){const t=v.findChildrenByFiltering(n[0],e=>e.type===N.CPureText);if(t&&t[0].value!==e){const n=t[0].getCurrentPropertiesPath("value"),r={do:{},undo:{}};return r.do[t[0].id]=[u.Ops.replace(n,e)],r.undo[t[0].id]=[u.Ops.replace(n,t[0].value)],r}}}}}updataParentWithValueChange(e){const t=v.findParentByFiltering(this,e=>e.selected);if(t){const n=v.findParentByFiltering(t,e=>e.type===N.CListLayoutPanel);if(n){const t=v.findParentByFiltering(n,e=>e.type===N.CSelect);if(t&&t.value!==e)return t.setValue(e)}}}setText(e){const t=this.text;let n={do:{},undo:{}};const r=this.nearestSealedComponent;if(t&&r&&C.isRefKey(t))n=r.setText(e.replace(/@/g,"@@"));else{const r=this.getCurrentPropertiesPath("text");n.do[this.id]=[u.Ops.replace(r,e)],n.undo[this.id]=[u.Ops.replace(r,t)]}return n}setRemark(e){return{do:{[this.id]:[u.Ops.replace("./remark",e)]},undo:{[this.id]:[u.Ops.replace("./remark",this.remark)]}}}addState(e,t,n){let o;if(n&&!r.isUndefined(this.states[n])?o=this.states[n]:(o={properties:{}},Object.keys(this.data.properties).forEach(e=>{o.properties[e]=this.data.properties[e]})),o=s.depthClone(o),this.data.states){const n="/states/"+e;return{do:[u.Ops.add(n,Object.assign(Object.assign({},o),{enabled:!0,name:t}))],undo:[u.Ops.remove(n)]}}{const n="/states";return{do:[u.Ops.add(n,{[e]:Object.assign(Object.assign({},o),{name:t})})],undo:[u.Ops.remove(n)]}}}removeState(e){const t=this.states[e],n="/states/"+e;return{do:[u.Ops.remove(n)],undo:[u.Ops.add(n,t)]}}changeStateEnabled(e,t){const n=this.states[e];let r;const o="/states/"+e;return n?(r={do:[u.Ops.replace(o+"/enabled",t)],undo:[u.Ops.replace(o+"/enabled",n.enabled)]},n.properties||r.do.push(u.Ops.replace(o+"/properties",{}))):r={do:[u.Ops.add(o,{enabled:t,properties:{}})],undo:[u.Ops.remove(o)]},r}switchState(e){const t="/_currentState";return this.data._currentState&&e?[u.Ops.replace(t,e)]:e?[u.Ops.add(t,e)]:[u.Ops.remove(t)]}modifyStateName(e,t){const n=this.states[e].name,r=`/states/${e}/name`;return{do:[u.Ops.replace(r,t)],undo:[u.Ops.replace(r,n)]}}cloneState(e,t){const n=s.depthClone(this.states[e]),r="/states/"+t;return{do:[u.Ops.add(r,n)],undo:[u.Ops.remove(r)]}}setDefaultState(e){const{selected:t,disabled:n}=this.data,r={do:[],undo:[]};if(e){if(e===E.PredefinedStates.disabled){if(t&&(r.do.push(u.Ops.replace("/selected",!1)),r.undo.push(u.Ops.replace("/selected",!0))),!n){r.do.push(u.Ops.replace("/disabled",!0)),r.undo.push(u.Ops.replace("/disabled",!1));const e=this.states.disabled;e?e.properties||r.do.push(u.Ops.add("./states/disabled/properties",{})):(r.do.push(u.Ops.add("./states/disabled",{properties:{},enabled:!1})),r.undo.push(u.Ops.remove("./states/disabled"))),r.do.push(u.Ops.replace("./states/disabled/enabled",!0)),r.undo.push(u.Ops.replace("./states/disabled/enabled",!1))}}else if(e===E.PredefinedStates.checked){if(!t){r.do.push(u.Ops.replace("/selected",!0)),r.undo.push(u.Ops.replace("/selected",!1));const e=this.states.checked;e?e.properties||r.do.push(u.Ops.add("./states/checked/properties",{})):(r.do.push(u.Ops.add("./states/checked",{properties:{},enabled:!1})),r.undo.push(u.Ops.remove("./states/checked"))),r.do.push(u.Ops.replace("./states/checked/enabled",!0)),r.undo.push(u.Ops.replace("./states/checked/enabled",!1))}n&&(r.do.push(u.Ops.replace("/disabled",!1)),r.undo.push(u.Ops.replace("/disabled",!0)))}}else t&&(r.do.push(u.Ops.replace("/selected",!1)),r.undo.push(u.Ops.replace("/selected",!0))),n&&(r.do.push(u.Ops.replace("/disabled",!1)),r.undo.push(u.Ops.replace("/disabled",!1)));return r}isRefValue(){const e=this.data.value;return"string"==typeof e&&(C.isRefKey(e)&&"@value"===e)}get properties(){let e=super.properties;this._dynamicProperties&&(e=Object.assign({},e,this._dynamicProperties));const t={};for(let n in e){const r=e[n];if(e.hasOwnProperty(n)&&(null==r?void 0:r.ref)){const e=this.nearestSealedComponent;if(e){const o=e.currentState;let i=o;e._dynamicProperties&&(i=s.merge(o,{properties:e._dynamicProperties},(e,t,n)=>{if(["colorStops","dashArray"].includes(e))return n})),t[n]=C.getRefValue(r.ref,i)}}}const n=this.dynamicInfo&&this.dynamicInfo.properties?this.dynamicInfo.properties:{};return Object.assign({},e,t,n)}get nearestSealedComponent(){return this.parent?this.parent.isSealed?this.parent:this.parent.nearestSealedComponent:null}addInteractionAction(e,t){const n=this.interactions[e];if(!n){const n="/interaction/"+e;return{do:[u.Ops.add(n,{parallel:!1,active:!0,autoRevert:!1,actions:[t]})],undo:[u.Ops.remove(n)]}}const r=`/interaction/${e}/actions/${n.actions.length}`;return{do:[u.Ops.add(r,t)],undo:[u.Ops.remove(r)]}}replaceInteractionActions(e,t,n){const r="/interaction/"+e.event,o="/interaction/"+t.event,i=n?u.Ops.replace:u.Ops.remove;return{do:[u.Ops.remove(r),n?u.Ops.replace(o,t.handle):u.Ops.add(o,t.handle)],undo:[u.Ops.add(r,e.handle),i(o,t.originHandle)]}}moveSingleInteractionActions(e,t,n){var r,o;const i="/interaction/"+e.event,a="/interaction/"+t.event,s=n?u.Ops.replace:u.Ops.remove,l=!(null===(o=null===(r=e.handle)||void 0===r?void 0:r.actions)||void 0===o?void 0:o.length);return{do:[l?u.Ops.remove(i):u.Ops.replace(i,e.handle),n?u.Ops.replace(a,t.handle):u.Ops.add(a,t.handle)],undo:[l?u.Ops.add(i,e.originHandle):u.Ops.replace(i,e.originHandle),s(a,t.originHandle)]}}adjustZeroSize(e){const{height:t,width:n}=e,{height:r,width:o}=this.size,i=R.getMinSizeOfComp(this);if(this.type===j.CPath&&(0===r||0===o)){if(0===r)return{height:0,width:s.isNotEqual0(n)?n||0:i.width};if(0===o)return{height:s.isNotEqual0(t)?t||0:i.height,width:0}}return{height:s.isNotEqual0(t)&&t>i.height?t:i.height,width:s.isNotEqual0(n)&&n>i.width?n:i.width}}moveInteractionAction(e,t,n){const r=this.interactions[e];if(!r)return null;const o=r.actions.findIndex(e=>e._id===t);if(-1===o)return null;const i=`/interaction/${e}/actions/${n}`,a=`/interaction/${e}/actions/${o}`;return{do:[u.Ops.move(i,a)],undo:[u.Ops.move(a,i)]}}removeInteractionAction(e,t){const n=this.interactions[e];if(!n)return null;if(1===n.actions.length)return this.removeAllInteractionActions(e);const r=n.actions.findIndex(e=>e._id===t);if(-1===r)return null;const o=n.actions[r],i=`/interaction/${e}/actions/${r}`;return{do:[u.Ops.remove(i)],undo:[u.Ops.add(i,o)]}}removeAllInteractionActions(e){const t=this.interactions[e];if(!t)return null;const n="/interaction/"+e;return{do:[u.Ops.remove(n)],undo:[u.Ops.add(n,t)]}}getPositionWithoutParent(e=this.position,t=this.parent){const n=t.rotate,r=t.getBoxPointsInParent()[0],o=v.mapPositionToTargetCoordinates(e,n,r);return this.getOriginPositionAccordingRotatingInfo(o,n,this.size)}markUpInteractionParallel(e){const t=this.interactions[e];if(!t)return null;const n=`/interaction/${e}/parallel`;return{do:[u.Ops.replace(n,!t.parallel)],undo:[u.Ops.replace(n,t.parallel)]}}markUpInteractionActive(e){const t=this.interactions[e];if(!t)return null;const n=`/interaction/${e}/active`;return{do:[u.Ops.replace(n,!t.active)],undo:[u.Ops.replace(n,t.active)]}}markUpInteractionAutoRevert(e){const t=this.interactions[e];if(!t)return null;const n=`/interaction/${e}/autoRevert`;return{do:[u.Ops.replace(n,!t.autoRevert)],undo:[u.Ops.replace(n,t.autoRevert)]}}modifyInteractionActionParams(e,t,n){const r=this.interactions[e];if(!r)return null;const o=r.actions.findIndex(e=>e._id===t);if(-1===o)return null;const i=r.actions[o].params,a=`/interaction/${e}/actions/${o}/params`;return{do:[u.Ops.replace(a,n)],undo:[u.Ops.replace(a,i)]}}modifyInteractionActionData(e,t,n){const r=this.interactions[e];if(!r)return null;const o=r.actions.findIndex(e=>e._id===t);if(-1===o)return null;const i=n.params;if("link"===n.type||"variable"===n.type)return this.modifyInteractionActionParams(e,t,i);const a=r.actions[o],s=`/interaction/${e}/actions/${o}/params`,l=`/interaction/${e}/actions/${o}/animation`,c=`/interaction/${e}/actions/${o}/target`,d=`/interaction/${e}/actions/${o}/command`,h=`/interaction/${e}/actions/${o}/type`,p={do:[u.Ops.replace(s,n.params),u.Ops.replace(l,n.animation),u.Ops.replace(c,n.target),u.Ops.replace(h,n.type)],undo:[u.Ops.replace(s,a.params),u.Ops.replace(l,a.animation),u.Ops.replace(c,a.target),u.Ops.replace(h,a.type)]};return"component"===n.type&&(p.do.push(u.Ops.replace(d,n.command)),p.undo.push(u.Ops.replace(d,a.command))),p}get select(){return this.data.select}get selectable(){if(this.selected)return"checked"!==this._currentState;const e=this.parent;if(e&&e.select&&"child"===e.select.target){const t=e.select;if(-1===t.maxCount||t.autoUnselect)return!0;const n=e.components.filter(e=>e.selected).length;if(t.maxCount>n)return!0}else{const e=this.select;if(e&&"self"===e.target&&e.enabled)return!0}return!1}get unselectable(){if(!this.selected)return!1;const e=this.parent;if(e&&e.select&&"child"===e.select.target){const t=e.select,n=e.components.filter(e=>e.selected).length;return!!t.reversible&&n>t.minCount}{const e=this.select;if(e&&"self"===e.target&&e.enabled&&e.reversible)return!0}return!1}get textAlign(){let e="center";const t=this.data.properties.textStyle;return t&&t.textAlign&&(e=t.textAlign),e}get textFormat(){const e=this.properties,{textStyle:t,textFormat:n,multiText:o}=e;if(t||n||o){const e=s.depthClone(n||Object.assign(Object.assign({},t),o)),{fontSize:i,lineHeight:a,lineHeightEx:l}=e;return!r.isUndefined(a)&&r.isUndefined(l)&&(e.lineHeightEx=a+(i||A.DefaultFontSize)),r.isUndefined(a)&&r.isUndefined(l)&&(e.lineHeightEx=Math.round(1.4*(i||A.DefaultFontSize))),e}}get matrix(){return v.getCompAbsoluteMatrix(this)}getPositionPatches(e){const t={do:{},undo:{}},n=[],o=[];if(!r.isEqual(this.position,e)){const t=this.getCurrentPositionPath();n.push(u.Ops.replace(t,e)),o.push(u.Ops.replace(t,this.position))}return t.do[this.id]=n,t.undo[this.id]=o,t}getLayoutChangePatches(e){const t={do:{},undo:{}},n=[u.Ops.replace("/layout",e)],r=[u.Ops.replace("/layout",this.layout)];return t.do[this.id]=n,t.undo[this.id]=r,t}changingProperty(e,t){this._dynamicProperties?this._dynamicProperties[e]=t:this._dynamicProperties={[e]:t};const n=e=>{e.updateComponentView&&e.updateComponentView(),e instanceof B.UIContainerComponent&&e.components.forEach(e=>n(e))};n(this)}chainedVersion(){let e=super.chainedVersion();return this._dynamicProperties?`${e}-${Math.round(100*Math.random())}`:e}updateVision(){this.data.v=this.data.v+Math.floor(10*Math.random())+1}updateSelfAndChildrenVision(){this.updateVision(),this instanceof B.UIContainerComponent&&this.components.forEach(e=>e.updateSelfAndChildrenVision())}updateSelfAndParentVision(){this.updateVision(),this.parent instanceof B.UIConnectorComponent&&this.parent.updateSelfAndParentVision()}notifyUpdateView(e){this.updateComponentView&&(this.updateVision(),this.updateComponentView(e))}getSuchChild(e,t){return[]}updateRadialGradientPatchesWithNewSize(e){return{do:{},undo:{}}}get displayName(){const{name:e,type:t,value:n,data:r}=this,{name:o}=r;if(!o&&n&&"string"==typeof n){if(t===N.CText)return i(n,{allowedTags:[]}).trim().substr(0,20);if(t===N.CPureText)return n||t;if(t===N.CImage){const e=n.split("/");return e[e.length-1]}}return e||t}get visibleInPreview(){var e;let t=!this.hidden;return!!t&&(this.parent?!this.parent.hidden&&(!((null===(e=this.parent.parent)||void 0===e?void 0:e.type)===N.CContentPanel&&!this.parent.selected)&&this.parent.visibleInPreview):t)}}t.default=H},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentSizeMode=t.centerResizePoints=t.getPatchesFromDynamicInfo=t.computedLinePointWithShift=t.AngleLineSizeLimiter=t.RatioSizeLimiter=void 0;const r=n(133),o=n(8),i=n(12),a=n(151),s=n(6),l=n(52);t.RatioSizeLimiter=class{constructor(e,t,n){this.oldPoints=e,this.rotate=t,this.ratio=n}setOldPoints(e){this.oldPoints=e}getOldPoints(){return this.oldPoints}applySizeLimit(e,t){let n=l.getSizeByPoints(this.oldPoints),r=l.getSizeByPoints(e);const o=r.width-n.width,i=r.height-n.height,a=Math.max(o,i*this.ratio),s=a,c=a/this.ratio,u=2*this.rotate*Math.PI/360,d=s/2*Math.sin(u),h=s/2*Math.cos(u),p=c/2*Math.cos(u),f=c/2*Math.sin(u);let m=l.getNoRotateRect(this.oldPoints);const g={x:m.left+m.width/2,y:m.top+m.height/2};if(0===t||2===t){const e=h-f,n=d+p;0===t?(g.x=g.x-e,g.y=g.y-n):(g.x=g.x+e,g.y=g.y+n)}if(1===t||3===t){const e=h+f,n=-d+p;1===t?(g.x=g.x+e,g.y=g.y-n):(g.x=g.x-e,g.y=g.y+n)}const v=l.getOppositePoint(this.oldPoints,t);return{x:2*g.x-v.x,y:2*g.y-v.y}}};function c(e,t){let n=(-Math.atan2(t.y-e.y,t.x-e.x)/Math.PI*180+360)%360,i=Math.floor(n/45);n%45>=22.5&&(i+=1);const a=45*i/180*Math.PI,s=r.getTowPointDis(t,e);return o.getPointOnCycleInCurrentCoordination(e,s,a)}t.AngleLineSizeLimiter=class{constructor(e,t){this.lineComp=e,this.oldPoint=t}applySizeLimit(e,t){const n=0===this.lineComp.size.height,r=0===this.lineComp.size.width,{lockedRatio:i}=this.lineComp.size,a=this.oldPoint[t],s=o.depthClone(e[t]);if(n&&i)return s.y=a.y,s;if(r&&i)return s.x=a.x,s;return c(l.getOppositePoint(e,t),s)}},t.computedLinePointWithShift=c,t.getPatchesFromDynamicInfo=function(e){const t={do:{},undo:{}};return e.forEach(e=>{var n,r;const a=o.depthClone(e.toJSON()),l=[s.CCompoundPath,s.CPath].includes(e.type)?"/position":e.getCurrentPositionPath(),c=[s.CText,s.CPureText].includes(e.type)&&Boolean(e.currentStateID),u=[s.CCompoundPath,s.CPath].includes(e.type)?"/size":e.getCurrentSizePath(c),d=[s.CCompoundPath,s.CPath].includes(e.type)?"/value":e.getCurrentPropertiesPath("/value"),h=[s.CCompoundPath,s.CPath].includes(e.type)?"/rotate":e.getCurrentRotatePath(),p=e.getCurrentPropertiesPath("properties/fill"),f=o.depthClone(e.position),m=o.depthClone(e.size),g=o.depthClone(e.value),v=o.depthClone(e.rotate),y=e.currentStateID;let b=e.toJSON().properties;y&&e.hasState(y)&&(b=e.states[y].properties||b);const w=o.depthClone(b.fill),C=e.dynamicInfo&&e.dynamicInfo.autoSize;o.isEqualDate(f,a.position)||(t.do[e.id]=[...t.do[e.id]||[],i.Ops.replace(l,f)],t.undo[e.id]=[...t.undo[e.id]||[],i.Ops.replace(l,a.position)]),o.isEqualDate(m,a.size)||(t.do[e.id]=[...t.do[e.id]||[],i.Ops.replace(u,m)],t.undo[e.id]=[...t.undo[e.id]||[],i.Ops.replace(u,a.size)]),o.isEqualDate(v,a.rotate)||(t.do[e.id]=[...t.do[e.id]||[],i.Ops.replace(h,v)],t.undo[e.id]=[...t.undo[e.id]||[],i.Ops.replace(h,a.rotate)]);const _="@value"===a.value,x=y&&(null===(n=a.states[y])||void 0===n?void 0:n.value)||a.value;_||o.isEqualDate(g,x)||(t.do[e.id]=[...t.do[e.id]||[],i.Ops.replace(d,g)],t.undo[e.id]=[...t.undo[e.id]||[],i.Ops.replace(d,x)]);const S=y&&(null===(r=a.states[y])||void 0===r?void 0:r.properties)||a.properties;o.isEqualDate(w,S.fill)||(t.do[e.id]=[...t.do[e.id]||[],i.Ops.replace(p,w)],t.undo[e.id]=[...t.undo[e.id]||[],i.Ops.replace(p,S.fill)]),void 0!==C&&(t.do[e.id]=[...t.do[e.id]||[],i.Ops.replace("./autoSize",C)],t.undo[e.id]=[...t.undo[e.id]||[],i.Ops.replace("./autoSize",a.autoSize)])}),t},t.centerResizePoints=function(e,t,n){if(4!==e.length)return;const o=[{x:-n,y:-n},{x:n,y:-n},{x:n,y:n},{x:-n,y:n}];e.forEach((n,i)=>{e[i]=function(e,t,n){const o=r.rotatePoint(n,t);return{x:e.x+o.x,y:e.y+o.y}}(n,t,o[i])})},t.ComponentSizeMode={[s.CStackPanel]:a.default.none,[s.CIcon]:a.default.corner}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRefValue=t.isRefValue=t.getRefValue=t.isRefKey=t.unescape=t.escape=void 0;const r=n(8);function o(e){return e.startsWith("@")&&!e.startsWith("@@")&&e.length>1}function i(e,t){if(!o(e))return null;return e.substr(1).split(".").reduce((e,t)=>e[t],t)}function a(e){return"object"==typeof e?Object.keys(e).some(t=>a(e[t])):"string"==typeof e&&o(e)}t.escape=function(e){return e.replace(/@/g,"@@")},t.unescape=function(e){return e.replace(/@@/g,"@")},t.isRefKey=o,t.getRefValue=i,t.isRefValue=a,t.mergeRefValue=function(e,t){if("object"==typeof t){const n=Object.keys(t),o=r.depthClone(t);return n.forEach(n=>{const r=t[n];a(r)&&(o[n]=i(r,e))}),o}return"string"==typeof t?i(t,e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={text2xml:(e,t="")=>{let n=e;const r=t.trim();if(r&&(n=`<${r}>${e}</${r}>`),window.DOMParser){const e=(new DOMParser).parseFromString(n,"text/xml");return e.getElementsByTagName("parsererror").length>0?null:e}if(window.ActiveXObject){const e=new window.ActiveXObject("Microsoft.XMLDOM");return e.async=!1,e.loadXML(n),e}return null},xml2string:e=>(new XMLSerializer).serializeToString(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImgPropertyName=void 0,t.ImgPropertyName="image"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerPropertyName=void 0,t.ContainerPropertyName="container"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorFilterPropertyName=t.FilterName=void 0,function(e){e.brightness="brightness",e.contrast="contrast",e.hueRotate="hueRotate",e.saturate="saturate",e.invert="invert"}(t.FilterName||(t.FilterName={})),t.ColorFilterPropertyName="colorFilter"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderPropertyName=void 0,t.BorderPropertyName="border"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorAlertBorderColor=t.ErrorAlertFillColor=t.InfoAlertBorderColor=t.InfoAlertFillColor=t.WarnAlertBorderColor=t.WarnAlertFillColor=t.SuccessAlertBorderColor=t.SuccessAlertFillColor=t.ErrorPressedColor=t.ErrorHoverColor=t.PrimaryPressedColor=t.PrimaryHoverColor=t.BackgroundColor=t.WhiteFillColor=t.BoxShadowColor=t.BorderColor=t.DisabledFillColor=t.DisabledColor=t.TextSecondDaryColor=t.TextColor=t.HeadingColor=t.ErrorColor=t.WarningColor=t.SuccessColor=t.LinkColor=t.PrimaryColor=void 0,t.PrimaryColor={r:24,g:144,b:255,a:1},t.LinkColor={r:24,g:144,b:255,a:1},t.SuccessColor={r:82,g:196,b:26,a:1},t.WarningColor={r:250,g:173,b:20,a:1},t.ErrorColor={r:255,g:77,b:79,a:1},t.HeadingColor={r:0,g:0,b:0,a:.85},t.TextColor={r:0,g:0,b:0,a:.55},t.TextSecondDaryColor={r:0,g:0,b:0,a:.45},t.DisabledColor={r:0,g:0,b:0,a:.25},t.DisabledFillColor={r:245,g:245,b:245,a:1},t.BorderColor={r:217,g:217,b:217,a:1},t.BoxShadowColor={r:0,g:0,b:0,a:.12},t.WhiteFillColor={r:255,g:255,b:255,a:1},t.BackgroundColor={r:204,g:204,b:204,a:1},t.PrimaryHoverColor={r:64,g:169,b:255,a:1},t.PrimaryPressedColor={r:9,g:109,b:217,a:1},t.ErrorHoverColor={r:255,g:120,b:117,a:1},t.ErrorPressedColor={r:217,g:54,b:62,a:1},t.SuccessAlertFillColor={r:246,g:255,b:237,a:1},t.SuccessAlertBorderColor={r:183,g:235,b:143,a:1},t.WarnAlertFillColor={r:255,g:251,b:230,a:1},t.WarnAlertBorderColor={r:255,g:229,b:143,a:1},t.InfoAlertFillColor={r:230,g:247,b:255,a:1},t.InfoAlertBorderColor={r:145,g:213,b:255,a:1},t.ErrorAlertFillColor={r:255,g:242,b:240,a:1},t.ErrorAlertBorderColor={r:255,g:204,b:199,a:1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeRect=void 0;const r=n(0),o=n(7),i=n(8),a=n(16),s=n(23),l=n(14),c=n(6),u=n(6),d=n(94),h=n(134),p=n(924);n(927),t.makeRect=function(e,t){const n=Object.assign(Object.assign({},t||{}),{properties:{radius:{topRight:0,topLeft:0,bottomLeft:0,bottomRight:0,isPercent:!1,disabled:!1},border:{left:!0,top:!0,right:!0,bottom:!0}}});return h.makeShapeBase(e,u.CRect,!0,n)};class f extends h.default{constructor(e){super(e),this.getNewRectParams=e=>{var t,n;const r=null!==(t=this.rectParams)&&void 0!==t?t:{},{properties:i,size:c}=e;if(i.isNew){const e=l.StyleHelper.initSVGStyleParser(i.value),{type:t,id:o}=this.props.comp;r.strokePosition=(null===(n=i.value.stroke)||void 0===n?void 0:n.position)||s.StrokePosition.inner,r.stroke=e.getStroke(),r.fill=e.getFill(`${t}-fill-${o}`),r.shadow=e.getShadow()}if(i.isNew||c.isNew){const{radius:e,stroke:t,border:n}=i.value,s=l.StyleHelper.calculateRadius(o.cloneDeep(c.value),e),u=a.createRectFillPath(c.value,s,t&&!t.disabled?t:void 0,n);r.fillPathData=u,r.borderStyle=this.getBorderStyle(c.value,e,n,r.stroke.strokeWidth)}return Object.keys(this.newProps).forEach(e=>{this.newProps[e].isNew=!1}),r},this.getOptions=()=>{const{isPreview:e,globalScale:t,properties:n,size:r,opacity:i,transition:a,isChildOfPath:l,text:c}=this.newProps,{id:u,type:d}=this.props.comp,{fill:h,shadow:p,stroke:f,radius:m,border:g}=n.value,{fill:v,stroke:y,fillPathData:b,shadow:w,borderStyle:C,strokePosition:_}=this.rectParams,x={id:u,type:d,size:r.value,fill:l.value?void 0:n.value.fill,transition:a.value,scale:1};let S=v;h&&h.disabled&&(S="rgba(255,255,255,0)");const k=o.isUndefined(i.value)?1:i.value/100,P={filter:p&&p.disabled?"none":w,transition:a.value,pointerEvents:"none"};e&&Object.assign(P,r.value);const{stroke:T,strokeDasharray:E,strokeWidth:O,strokeLinecap:M,strokeLinejoin:A}=y,D={strokeDasharray:E,strokeWidth:l.value?1:O,strokeLinecap:l.value?void 0:M,strokeLinejoin:l.value?void 0:A,stroke:l.value?"#ccc":T,position:l.value?s.StrokePosition.center:_};return l.value&&(S="transparent"),{size:r.value,globalScale:t.value,opacity:k,fill:S,fillPathData:b,svgStyle:P,strokeStyle:D,showStroke:!(null==f?void 0:f.disabled),fillOption:x,text:c.value,borderStyle:C,border:g,radius:m,transition:a.value,properties:n.value,isChildOfPath:l.value}};const{comp:{size:t,properties:n,text:r,parent:i,opacity:u,version:d},isPreview:h,globalScale:p,valueEditing:f}=e;this.newProps={size:{value:o.cloneDeep(t),isNew:!0},properties:{value:o.cloneDeep(n),isNew:!0},text:{value:r,isNew:!0},isPreview:{value:h,isNew:!0},globalScale:{value:p,isNew:!0},valueEditing:{value:f,isNew:!0},isChildOfPath:{value:(null==i?void 0:i.type)===c.CCompoundPath,isNew:!0},opacity:{value:u,isNew:!0},transition:{value:e.comp.getTransition(),isNew:!0},version:{value:d,isNew:!0}},this.rectParams=this.getNewRectParams(this.newProps),this.state={textStyle:this.parserTextStyle(e)}}UNSAFE_componentWillReceiveProps(e){const t=this.parserTextStyle(e);o.isEqual(t,this.state.textStyle)||this.setState({textStyle:t})}shouldComponentUpdate(e){const{comp:{size:t,properties:n,text:r,parent:i,opacity:a,version:s},isPreview:l,globalScale:u,valueEditing:d}=e,h=(null==i?void 0:i.type)===c.CCompoundPath,p=e.comp.getTransition();let f=!1;return s!==this.newProps.version.value&&(this.newProps.version={value:s,isNew:!0},f=!0),r!==this.newProps.text.value&&(this.newProps.text={value:r,isNew:!0},f=!0),h!==this.newProps.isChildOfPath.value&&(this.newProps.isChildOfPath={value:h,isNew:!0},f=!0),l!==this.newProps.isPreview.value&&(this.newProps.isPreview={value:l,isNew:!0},f=!0),u!==this.newProps.globalScale.value&&(this.newProps.globalScale={value:u,isNew:!0},f=!0),d!==this.newProps.valueEditing.value&&(this.newProps.valueEditing={value:d,isNew:!0},f=!0),a!==this.newProps.opacity.value&&(this.newProps.opacity={value:a,isNew:!0},f=!0),p!==this.newProps.transition.value&&(this.newProps.transition={value:p,isNew:!0},f=!0),o.isEqual(t,this.newProps.size.value)||(this.newProps.size={value:o.cloneDeep(t),isNew:!0},f=!0),o.isEqual(n,this.newProps.properties.value)||(this.newProps.properties={value:o.cloneDeep(n),isNew:!0},f=!0),f&&(this.rectParams=this.getNewRectParams(this.newProps)),f}getBorderStyle(e,t,n,r){let{topLeft:o,topRight:a,bottomLeft:s,bottomRight:l,disabled:c,isPercent:u}=null!=t?t:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0,disabled:!0,isPercent:!1};if(!c){const t=i.round(i.min(e.width,e.height)/2);u?(o=i.min((o||0)*t/100,t),a=i.min((a||0)*t/100,t),s=i.min((s||0)*t/100,t),l=i.min((l||0)*t/100,t)):(o=i.min(o||0,t),a=i.min(a||0,t),l=i.min(l||0,t),s=i.min(s||0,t));const n=i.round(null!=r?r:0)/2;o=o?o+n:o,a=a?a+n:a,s=s?s+n:s,l=l?l+n:l}const{left:d,top:h,right:p,bottom:f}=n||{left:!0,top:!0,right:!0,bottom:!0};return{borderTopLeftRadius:!c&&d&&h?o:0,borderTopRightRadius:!c&&h&&p?a:0,borderBottomLeftRadius:!c&&d&&f?s:0,borderBottomRightRadius:!c&&f&&p?l:0}}get isChildOfPath(){var e;return(null===(e=this.props.comp.parent)||void 0===e?void 0:e.type)===c.CCompoundPath}render(){const{size:e,globalScale:t,opacity:n,fill:o,fillPathData:i,svgStyle:a,strokeStyle:s,showStroke:l,fillOption:c,text:u,border:h,radius:f,borderStyle:m,transition:g,properties:v,isChildOfPath:y}=this.getOptions(),{comp:{hidden:b},isPreview:w}=this.props,{fill:C}=v,_=!(b||!n||!C||C.disabled),x=l&&!!n&&!b,S=!y&&(!!u&&w||!w);return r.createElement("div",{className:"lib-comp-rect",style:Object.assign(Object.assign({},m),e)},r.createElement("svg",{style:a,shapeRendering:"geometricPrecision",opacity:n},_&&d.renderClipFill(c,r.createElement("path",{d:i,fill:o,strokeWidth:0,style:{transition:g}})),x&&r.createElement(p.default,{globalScale:null!=t?t:1,size:e,stroke:s,transition:g,border:h,radius:f,noSvg:!0})),S&&this.renderTextFragment(u,v,n))}}t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createShapeCompTextFragment=t.createEditorFragment=t.createTextFragment=void 0;const r=n(0),o=n(282),i=n(18);function a(e,t){const{style:n,className:o,opacity:a}=t||{};return r.createElement("span",{style:Object.assign(Object.assign({},n),{opacity:a}),className:o,dangerouslySetInnerHTML:{__html:i.replaceOldFontSize(e,"out")}})}function s(e,t,n,i,a){const{style:s,className:l,wrap:c}=a||{},{multiText:u,textFormat:d}=e.properties;return r.createElement(o.default,{value:t,wrap:c,multi:!!u||(null==d?void 0:d.isMulti),vertical:(null==d?void 0:d.vertical)||(null==u?void 0:u.vertical),style:Object.assign({},s||{}),ownerComp:e,className:l||"",onValueChanged:n,autoSave:!0,onSelectChanged:i})}t.createTextFragment=a,t.createEditorFragment=s,t.createShapeCompTextFragment=function(e,t,n){const{style:r,className:o,wrap:i,editing:l,onChanged:c,onChanging:u,opacity:d}=n;return l?s(e,t,c,u,{style:r,className:o,wrap:i}):t?a(t,{style:r,className:o,opacity:d}):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=[];let t,n=!1;function r(){try{e.forEach(e=>{e(...t)})}finally{t=null,n=!1}}return{add:function(t){t&&e.push(t)},remove:function(t){t&&e.splice(e.indexOf(t),1)},call:function(){n||(n=!0,t=arguments,window.requestAnimationFrame?window.requestAnimationFrame(r):setTimeout(r,17))}}}},function(e,t,n){e.exports=n.p+"assets/0bd00dcde5f28d27e461ab7d3a4a3191.png"},function(e,t,n){e.exports=n.p+"assets/908084c7c2cca7fd1307fb4428578e77.png"},function(e,t,n){e.exports=n.p+"assets/0979cd15654214beb3b813aca877dc5b.png"},function(e,t,n){e.exports=n.p+"assets/5ad693653a93fc9ee13d4b3fdb40d2d9.png"},function(e,t,n){e.exports=n.p+"assets/2e147f1d9f4156beda5e4ffc0a547389.png"},function(e,t,n){e.exports=n.p+"assets/1482c1482d62056aed8b4839bb48e186.png"},function(e,t,n){e.exports=n.p+"assets/b5df9fa99d90c9de0926647166258c6b.png"},function(e,t,n){e.exports=n.p+"assets/edc561e3c08469e883e057da8e86d7f4.png"},function(e,t,n){e.exports=n.p+"assets/7971cf95199cf7fcab844e06e400efd7.png"},function(e,t,n){e.exports=n.p+"assets/fb08b1040c7a3859a7fddd0cdfb309b9.png"},function(e,t,n){e.exports=n.p+"assets/7971cf95199cf7fcab844e06e400efd7.png"},function(e,t,n){e.exports=n.p+"assets/7971cf95199cf7fcab844e06e400efd7.png"},function(e,t,n){e.exports=n.p+"assets/7971cf95199cf7fcab844e06e400efd7.png"},function(e,t,n){e.exports=n.p+"assets/fbd1a70adb9a8ea557cf19976f756a0e.png"},function(e,t,n){e.exports=n.p+"assets/30b3d608d0570ff1f76ec6fb7fccf63d.png"},function(e,t,n){e.exports=n.p+"assets/f8c844d2c6c424369f0510b8f3de2ba3.png"},function(e,t,n){e.exports=n.p+"assets/c6daf38da7bedfa49b1fc6309f67282d.png"},function(e,t,n){e.exports=n.p+"assets/1d15b278a7e127797917959aa23978fc.png"},function(e,t,n){e.exports=n.p+"assets/2c317215b4a1ecb3a4e29cb1ec586a29.png"},function(e,t,n){e.exports=n.p+"assets/9481ec756f309327dc0caf7373b1f367.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(7),s=n(36);n(921);class l extends r.PureComponent{constructor(e){super(e),this.pi=0,this.handleWheel=()=>{this.doCustomCaret()},this.handleMouseDown=()=>{setTimeout(()=>{this.doCustomCaret()},0)},this.handleWindowKeyUp=()=>{this.doCustomCaret()},this.handleWindowKeyDown=e=>{e.keyCode===s.default.VK_CTRL?this.doClearCustomCaret():setTimeout(()=>this.doCustomCaret())},this.state={}}componentDidMount(){const{rotate:e,vertical:t}=this.props;this.pi=e*Math.PI/180+(t?90:0),window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("keyup",this.handleWindowKeyUp),window.addEventListener("wheel",this.handleWheel),window.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){this.doClearCustomCaret(),window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("keyup",this.handleWindowKeyUp),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("mousedown",this.handleMouseDown)}doClearCustomCaret(){this.state.caretStyle&&this.setState({caretStyle:void 0})}doCustomCaret(){const e=document.getSelection();if(!(null==e?void 0:e.rangeCount))return void this.doClearCustomCaret();const t=e.getRangeAt(0);if(!t.collapsed)return void this.doClearCustomCaret();const{textAlign:n,rotate:r,color:o,vertical:i}=this.props,s=1===t.commonAncestorContainer.nodeType?t.commonAncestorContainer:t.commonAncestorContainer.parentElement;if(!s)return;const{style:l}=s,c=document.createElement("span");t.insertNode(c),t.collapse(),c.setAttribute("style","background: red;"),c.innerText="0";const u=c.getBoundingClientRect();let{x:d,y:h,width:p,height:f}=u;c.remove(),(Math.sin(this.pi)>Math.sin(Math.PI/4)||Math.sin(this.pi)<Math.sin(5*Math.PI/4))&&([p,f]=[f,p]),[d,h]=this.doResetPositionWithTextAlign(l.textAlign||n,{x:d,y:h,width:p,height:f});const{caretStyle:m}=this.state,g={transform:`rotateZ(${r}deg)`,left:d,top:h,height:i?2:f,width:i?p:2,backgroundColor:l.color||o};!a.isEqual(m,g)&&this.setState({caretStyle:g})}doResetPositionWithTextAlign(e,t){const{x:n,y:r,width:o}=t;switch(e){case"right":return[n+o,r];case"center":return[n+o/2,r]}return[n,r]}doResetPositionWithRotate(e){const{x:t,y:n,width:r,height:o}=e,i=Math.cos(this.pi),a=Math.sin(this.pi),s=(o*i-r*a)/((i+a)*(i-a));return[t+r/2,n+o/2,s,(r-s*Math.sin(this.pi))/Math.cos(this.pi)]}render(){const{caretStyle:e}=this.state;if(!e)return null;const t=e.backgroundColor||this.props.color;return o.createPortal(r.createElement("span",{className:i.default(this.props.className,"rich-text-editor-custom-caret"),style:Object.assign(Object.assign({},e),{backgroundColor:t})}),document.body)}}t.default=l},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(274),i=n(7),a=n(16),s=n(8),l=n(23),c=n(47),u=n(209),d=n(14),h=n(153);class p extends r.Component{constructor(e){super(e),this.memoProps={size:{value:i.cloneDeep(e.size),isNew:!0},stroke:{value:i.cloneDeep(e.stroke),isNew:!0},border:{value:i.cloneDeep(e.border),isNew:!0},radius:{value:i.cloneDeep(e.radius),isNew:!0},globalScale:{value:e.globalScale,isNew:!0},transition:{value:e.transition,isNew:!0},noSvg:{value:e.noSvg,isNew:!0}},this._id=o.generate(),this.params=this.getNewParams()}getNewParams(){var e,t;const n=i.cloneDeep(null!==(e=this.params)&&void 0!==e?e:{}),{size:r,border:o,radius:a,stroke:s}=this.memoProps;return(r.isNew||o.isNew||a.isNew)&&(n.fillPath=this.getFillPath(r.value,o.value,a.value),n.strokePath=this.getStrokePath(r.value,o.value,a.value)),(r.isNew||o.isNew||s.isNew)&&(n.maskPath=this.getMaskPath(null!==(t=n.fillPath)&&void 0!==t?t:"",r.value,s.value,o.value)),n}shouldComponentUpdate(e){let t=!1;return Object.keys(e).forEach(n=>{var r;i.isEqual(e[n],null===(r=this.memoProps[n])||void 0===r?void 0:r.value)||(t=!0,this.memoProps[n]={value:i.cloneDeep(e[n]),isNew:!0})}),t&&(this.params=this.getNewParams()),t}getStrokePath(e,t,n){const r=u.formRectPathValue(e,t,n);let o="";if(1===r.length&&2===r[0].data.length&&t){const e=s.depthClone(r[0]);e.data=[e.data[0]];const{left:n,right:o,top:i,bottom:a}=t;e.data.forEach(e=>{n&&(e.point.x+=100),o&&(e.point.x-=100),i&&(e.point.y+=100),a&&(e.point.y-=100)}),r.push(e)}return r.forEach(e=>{o+=c.transformPathDataToPath(e)+" "}),o}getFillPath(e,t,n){const r=d.StyleHelper.calculateRadius({width:e.width,height:e.height},n);return a.createRectFillPath(e,r,void 0,t)}getMaskPath(e,t,n,r){let o=e;return n.position===l.StrokePosition.outer&&r&&(o=c.translateMaskDataOfRect(o,r,t,(null==n?void 0:n.strokeWidth)||0)),o}render(){var e;const{stroke:t,size:n,transition:o,globalScale:i,noSvg:a}=this.props,{strokePath:s,maskPath:c}=this.params,u={id:this._id,data:s,maskData:c,size:n,scale:i,strokePosition:null!==(e=t.position)&&void 0!==e?e:l.StrokePosition.inner,stroke:t,transition:o};return a?h.renderMaskStroke(u):r.createElement("svg",{style:{left:0,top:0,width:n.width,height:n.height,position:"absolute",zIndex:1e3,pointerEvents:"none",transition:o}},h.renderMaskStroke(u))}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBorder=void 0,t.DefaultBorder={left:!0,right:!0,top:!0,bottom:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultRadius=void 0,t.DefaultRadius={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0,isPercent:!1}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeEllipse=void 0;const r=n(0),o=n(7),i=n(8),a=n(23),s=n(14),l=n(6),c=n(94),u=n(6),d=n(47),h=n(153),p=n(209),f=n(134);n(929),t.makeEllipse=function(e){return f.makeShapeBase(e,l.CEllipse,!0)};class m extends f.default{constructor(e){super(e),this.doParsePropertiesToStyle=e=>{const{properties:t,type:n,id:r}=e.comp,o=s.StyleHelper.initSVGStyleParser(t),i=this.parserTextStyle(e),a=o.getStroke();return this.isChildOfPath&&(a.stroke="#ccc",a.strokeDasharray=void 0,a.strokeDashoffset=void 0,a.strokeWidth=1),{boxShadow:o.getShadow(),stroke:a,fill:o.getFill(`${n}-fill-${r}`),textStyle:i}},this.memoizeTransformPathDataToPath=o.memoize(d.transformPathDataToPath),this.state=this.doParsePropertiesToStyle(e),this.param=this.getParams(e)}getParams(e){const{comp:{size:t,properties:n,text:r,parent:i,opacity:a,version:s},isPreview:l,globalScale:c,valueEditing:d}=e,h=(null==i?void 0:i.type)===u.CCompoundPath,p=e.comp.getTransition();return{size:o.cloneDeep(t),properties:o.cloneDeep(n),text:r,opacity:a,isPreview:l,globalScale:c,isChildOfPath:h,transition:p,valueEditing:d,version:s}}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{o.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=o.cloneDeep(t[e]))}),n}UNSAFE_componentWillReceiveProps(e){this.setState(Object.assign({},this.doParsePropertiesToStyle(e)))}getStrokeOffset(e,t){switch(t){case a.StrokePosition.center:return 0;case a.StrokePosition.inner:return-.5*e;case a.StrokePosition.outer:return.5*e;default:return-.5*e}}renderEllipse(){var e;const t=this.strokeOpt;if(!t)return null;const{id:n,size:o,type:i,properties:a}=this.props.comp,{width:s,height:l}=o,{fill:u}=a,{fill:d,stroke:p}=this.state,f=.5*s,m=.5*l,g=f,v=m,y=this.getStrokeOffset(p.strokeWidth||0,null===(e=a.stroke)||void 0===e?void 0:e.position);if(g+y<=0||v+y<=0)return null;const b=this.isChildOfPath,w={id:n,type:i,size:o,fill:b?void 0:a.fill,scale:1,transition:this.props.comp.getTransition()},C=b?"#ccc":""+(u&&u.disabled?"rgba(255,255,255,0)":d);return r.createElement(r.Fragment,null,c.renderClipFill(w,r.createElement("ellipse",{strokeWidth:0,cx:f,cy:m,rx:g,ry:v,fill:C,style:{transition:this.props.comp.getTransition()}})),h.renderMaskStroke(t))}renderCircle(){var e;const t=this.strokeOpt;if(!t)return null;const{id:n,size:o,type:i,properties:a}=this.props.comp,{width:s,height:l}=o,{fill:u}=a,{fill:d,stroke:p}=this.state,f=this.isChildOfPath,m=.5*s,g=.5*l,v=m;if(v+this.getStrokeOffset(p.strokeWidth||0,null===(e=a.stroke)||void 0===e?void 0:e.position)<=0)return null;const y={id:n,type:i,size:o,fill:f?void 0:a.fill,scale:1,transition:this.props.comp.getTransition()},b=f?"#ccc":""+(u&&u.disabled?"rgba(255,255,255,0)":d);return r.createElement(r.Fragment,null,c.renderClipFill(y,r.createElement("circle",{strokeWidth:0,cx:m,cy:g,r:v,fill:b,style:{transition:this.props.comp.getTransition()}})),h.renderMaskStroke(t))}get strokeOpt(){var e,t,n;const{comp:r}=this.props,{size:o,id:i,properties:l}=r,c=(null!==(e=p.ellipseToSvgValue(o,l).data)&&void 0!==e?e:[])[0];if(!c)return;const d=this.memoizeTransformPathDataToPath(c);if(!c||!d)return;const h=this.props.globalScale||1,f=s.StyleHelper.initSVGStyleParser(l).getStroke(),{stroke:m,strokeDasharray:g,strokeWidth:v,strokeLinecap:y,strokeLinejoin:b}=f,w=(null===(t=r.parent)||void 0===t?void 0:t.type)===u.CCompoundPath;let C=m;w&&(C="#ccc");const _=r.getTransition();return{id:i,size:o,scale:h,stroke:{stroke:C,strokeWidth:w?1:v,strokeDasharray:w?void 0:g,strokeLinecap:y,strokeLinejoin:b},data:d,strokePosition:w?a.StrokePosition.center:(null===(n=l.stroke)||void 0===n?void 0:n.position)||a.StrokePosition.inner,showMark:!c.closed,transition:_}}get svgStyle(){const{comp:e,isPreview:t}=this.props,{size:n,properties:r}=e,{width:i,height:a}=n,{shadow:s}=r,{boxShadow:l}=this.state,c={};return c.opacity=o.isUndefined(e.opacity)?1:e.opacity/100,c.transition=e.getTransition(),c.overflow="visible",c.left=0,c.top=0,c.filter=s&&s.disabled?"none":l,c.pointerEvents="none",t&&Object.assign(c,{width:i,height:a}),c}get isChildOfPath(){var e;return(null===(e=this.props.comp.parent)||void 0===e?void 0:e.type)===u.CCompoundPath}render(){const{comp:e}=this.props,{size:t,properties:n,text:a}=e,{width:s,height:l}=t,c=i.sameNumber(s,l),u=o.isUndefined(e.opacity)?1:e.opacity/100,d=this.isChildOfPath;return r.createElement("div",{className:"lib-comp-circle",style:{width:s,height:l,borderRadius:"50%"}},r.createElement("svg",{style:this.svgStyle,shapeRendering:"geometricPrecision"},c&&!!u&&this.renderCircle(),!c&&!!u&&this.renderEllipse()),!d&&this.renderTextFragment(a,n,u))}}t.default=m},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){t=e.exports=n(284)(!1);var r=n(285),o=r(n(934)),i=r(n(935)),a=r(n(936));t.push([e.i,'@font-face {\r\n font-family: "mockplus_rp"; /* Project id 1475460 */\r\n src: url('+o+") format('woff2'),\r\n url("+i+") format('woff'),\r\n url("+a+') format(\'truetype\');\r\n}\r\n\r\n.mockplus_rp {\r\n font-family: "mockplus_rp" !important;\r\n font-size: 16px;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.mockplus_rp_icon_snapshot:before {\r\n content: "\\e67d";\r\n}\r\n\r\n.mockplus_rp_icon_top:before {\r\n content: "\\e67b";\r\n}\r\n\r\n.mockplus_rp_icon_play2:before {\r\n content: "\\e679";\r\n}\r\n\r\n.mockplus_rp_icon_play:before {\r\n content: "\\e7ef";\r\n}\r\n\r\n.mockplus_rp_icon_bottom:before {\r\n content: "\\e677";\r\n}\r\n\r\n.mockplus_rp_icon_scale_ys:before {\r\n content: "\\e673";\r\n}\r\n\r\n.mockplus_rp_icon_quit_scale_ys:before {\r\n content: "\\e674";\r\n}\r\n\r\n.mockplus_rp_icon_success:before {\r\n content: "\\e671";\r\n}\r\n\r\n.mockplus_rp_icon_fail:before {\r\n content: "\\e672";\r\n}\r\n\r\n.mockplus_rp_icon_refresh:before {\r\n content: "\\e670";\r\n}\r\n\r\n.mockplus_rp_icon_switch:before {\r\n content: "\\e66b";\r\n}\r\n\r\n.mockplus_rp_icon_see_view:before {\r\n content: "\\e668";\r\n}\r\n\r\n.mockplus_rp_icon_see_hide:before {\r\n content: "\\e669";\r\n}\r\n\r\n.mockplus_rp_icon_back:before {\r\n content: "\\e663";\r\n}\r\n\r\n.mockplus_rp_icon_people:before {\r\n content: "\\e65b";\r\n}\r\n\r\n.mockplus_rp_icon_bell:before {\r\n content: "\\e65c";\r\n}\r\n\r\n.mockplus_rp_icon_massages:before {\r\n content: "\\e65d";\r\n}\r\n\r\n.mockplus_rp_icon_file:before {\r\n content: "\\e65e";\r\n}\r\n\r\n.mockplus_rp_icon_image_n:before {\r\n content: "\\e65f";\r\n}\r\n\r\n.mockplus_rp_icon_Into:before {\r\n content: "\\e659";\r\n}\r\n\r\n.mockplus_rp_icon_tag_exclamation:before {\r\n content: "\\e658";\r\n}\r\n\r\n.mockplus_rp_icon_tag_resolved:before {\r\n content: "\\e657";\r\n}\r\n\r\n.mockplus_rp_icon_down:before {\r\n content: "\\e655";\r\n}\r\n\r\n.mockplus_rp_icon_up:before {\r\n content: "\\e656";\r\n}\r\n\r\n.mockplus_rp_icon_manage_group:before {\r\n content: "\\e654";\r\n}\r\n\r\n.mockplus_rp_icon_My:before {\r\n content: "\\e653";\r\n}\r\n\r\n.mockplus_rp_hybrid_project:before {\r\n content: "\\e652";\r\n}\r\n\r\n.mockplus_rp_icon_Collection:before {\r\n content: "\\e651";\r\n}\r\n\r\n.mockplus_rp_icon_Template:before {\r\n content: "\\e64f";\r\n}\r\n\r\n.mockplus_rp_icon_All:before {\r\n content: "\\e64d";\r\n}\r\n\r\n.mockplus_rp_icon_filter:before {\r\n content: "\\e64c";\r\n}\r\n\r\n.mockplus_rp_icon_pagenumber:before {\r\n content: "\\e64a";\r\n}\r\n\r\n.mockplus_rp_icon_variety:before {\r\n content: "\\e64b";\r\n}\r\n\r\n.mockplus_rp_icon_Minimize:before {\r\n content: "\\e646";\r\n}\r\n\r\n.mockplus_rp_icon_Close:before {\r\n content: "\\e647";\r\n}\r\n\r\n.mockplus_rp_icon_Revert:before {\r\n content: "\\e648";\r\n}\r\n\r\n.mockplus_rp_icon_Maximize:before {\r\n content: "\\e649";\r\n}\r\n\r\n.mockplus_rp_icon_Portrait:before {\r\n content: "\\e643";\r\n}\r\n\r\n.mockplus_rp_icon_landscape:before {\r\n content: "\\e644";\r\n}\r\n\r\n.mockplus_rp_icon_upload:before {\r\n content: "\\e7ee";\r\n}\r\n\r\n.mockplus_rp_icon_component_quote:before {\r\n content: "\\e7ed";\r\n}\r\n\r\n.mockplus_rp_icon_standard:before {\r\n content: "\\e7ec";\r\n}\r\n\r\n.mockplus_rp_tree_lose_efficacy:before {\r\n content: "\\e7eb";\r\n}\r\n\r\n.mockplus_rp_icon_foldpanel:before {\r\n content: "\\e7ea";\r\n}\r\n\r\n.mockplus_rp_icon_tree_view:before {\r\n content: "\\e7e8";\r\n}\r\n\r\n.mockplus_rp_icon_tree_unview:before {\r\n content: "\\e7e9";\r\n}\r\n\r\n.mockplus_rp_desktop_team_logout:before {\r\n content: "\\e7e6";\r\n}\r\n\r\n.mockplus_rp_desktop_star:before {\r\n content: "\\e7e7";\r\n}\r\n\r\n.mockplus_rp_desktop_additme:before {\r\n content: "\\e7e5";\r\n}\r\n\r\n.mockplus_rp_desktop_postil_history:before {\r\n content: "\\e7df";\r\n}\r\n\r\n.mockplus_rp_desktop_hybrid_star:before {\r\n content: "\\e7e0";\r\n}\r\n\r\n.mockplus_rp_desktop_hybrid_my:before {\r\n content: "\\e7e1";\r\n}\r\n\r\n.mockplus_rp_desktop_team_select:before {\r\n content: "\\e7e2";\r\n}\r\n\r\n.mockplus_rp_desktop_hybrid_recycle:before {\r\n content: "\\e7e3";\r\n}\r\n\r\n.mockplus_rp_desktop_hybrid_all:before {\r\n content: "\\e7e4";\r\n}\r\n\r\n.mockplus_rp_cover_help:before {\r\n content: "\\e7de";\r\n}\r\n\r\n.mockplus_rp_icon_convertToPath:before {\r\n content: "\\e7dd";\r\n}\r\n\r\n.mockplus_rp_icon_offline:before {\r\n content: "\\e7dc";\r\n}\r\n\r\n.mockplus_rp_left_Triangle:before {\r\n content: "\\e7db";\r\n}\r\n\r\n.mockplus_rp_icon_clip_path:before {\r\n content: "\\e7d8";\r\n}\r\n\r\n.mockplus_rp_icon_close_path:before {\r\n content: "\\e7d9";\r\n}\r\n\r\n.mockplus_rp_icon_open_path:before {\r\n content: "\\e7da";\r\n}\r\n\r\n.mockplus_rp_left_CanvasPanel:before {\r\n content: "\\e7cf";\r\n}\r\n\r\n.mockplus_rp_left_image:before {\r\n content: "\\e7d0";\r\n}\r\n\r\n.mockplus_rp_left_hotspot:before {\r\n content: "\\e7d1";\r\n}\r\n\r\n.mockplus_rp_left_oval:before {\r\n content: "\\e7d2";\r\n}\r\n\r\n.mockplus_rp_left_line:before {\r\n content: "\\e7d3";\r\n}\r\n\r\n.mockplus_rp_left_Polygon:before {\r\n content: "\\e7d4";\r\n}\r\n\r\n.mockplus_rp_left_Rectangle:before {\r\n content: "\\e7d5";\r\n}\r\n\r\n.mockplus_rp_left_text:before {\r\n content: "\\e7d6";\r\n}\r\n\r\n.mockplus_rp_icon_scroll:before {\r\n content: "\\e7cb";\r\n}\r\n\r\n.mockplus_rp_icon_mockplus_logo:before {\r\n content: "\\e7ca";\r\n}\r\n\r\n.mockplus_rp_icon_artboard_panel:before {\r\n content: "\\e7c9";\r\n}\r\n\r\n.mockplus_rp_icon_autosize:before {\r\n content: "\\e7c7";\r\n}\r\n\r\n.mockplus_rp_icon_Move_to:before {\r\n content: "\\e7c5";\r\n}\r\n\r\n.mockplus_rp_icon_resource_management:before {\r\n content: "\\e7c6";\r\n}\r\n\r\n.mockplus_rp_icon_scale:before {\r\n content: "\\e7c4";\r\n}\r\n\r\n.mockplus_rp_icon_outerStroke:before {\r\n content: "\\e7c2";\r\n}\r\n\r\n.mockplus_rp_icon_innerStroke:before {\r\n content: "\\e7c3";\r\n}\r\n\r\n.mockplus_rp_icon_centerStroke:before {\r\n content: "\\e7c1";\r\n}\r\n\r\n.mockplus_rp_icon_mirrored:before {\r\n content: "\\e7bb";\r\n}\r\n\r\n.mockplus_rp_icon_asymmetric:before {\r\n content: "\\e7bc";\r\n}\r\n\r\n.mockplus_rp_icon_disconnected:before {\r\n content: "\\e7bd";\r\n}\r\n\r\n.mockplus_rp_icon_straight:before {\r\n content: "\\e7be";\r\n}\r\n\r\n.mockplus_rp_icon_picker:before {\r\n content: "\\e7bf";\r\n}\r\n\r\n.mockplus_rp_icon_component_share:before {\r\n content: "\\e7b2";\r\n}\r\n\r\n.mockplus_rp_icon_more_vertical:before {\r\n content: "\\e7b0";\r\n}\r\n\r\n.mockplus_rp_icon_palette:before {\r\n content: "\\e7b1";\r\n}\r\n\r\n.mockplus_rp_icon_bullets:before {\r\n content: "\\e7ae";\r\n}\r\n\r\n.mockplus_rp_icon_numbered_list:before {\r\n content: "\\e7af";\r\n}\r\n\r\n.mockplus_rp_icon_line_pattern:before {\r\n content: "\\e7ad";\r\n}\r\n\r\n.mockplus_rp_icon_add_subitem:before {\r\n content: "\\e7ab";\r\n}\r\n\r\n.mockplus_rp_icon_fill_help:before {\r\n content: "\\e7a9";\r\n}\r\n\r\n.mockplus_rp_icon_symbol:before {\r\n content: "\\e7a5";\r\n}\r\n\r\n.mockplus_rp_icon_triangle_down:before {\r\n content: "\\e7a3";\r\n}\r\n\r\n.mockplus_rp_icon_triangle_right:before {\r\n content: "\\e7a4";\r\n}\r\n\r\n.mockplus_rp_icon_angle:before {\r\n content: "\\e751";\r\n}\r\n\r\n.mockplus_rp_icon_grid:before {\r\n content: "\\e74f";\r\n}\r\n\r\n.mockplus_rp_icon_check:before {\r\n content: "\\e750";\r\n}\r\n\r\n.mockplus_rp_icon_changesize:before {\r\n content: "\\e748";\r\n}\r\n\r\n.mockplus_rp_icon_move:before {\r\n content: "\\e749";\r\n}\r\n\r\n.mockplus_rp_icon_hidden:before {\r\n content: "\\e74a";\r\n}\r\n\r\n.mockplus_rp_icon_state:before {\r\n content: "\\e74b";\r\n}\r\n\r\n.mockplus_rp_icon_content:before {\r\n content: "\\e74c";\r\n}\r\n\r\n.mockplus_rp_icon_rotate:before {\r\n content: "\\e74d";\r\n}\r\n\r\n.mockplus_rp_icon_zoom_in:before {\r\n content: "\\e74e";\r\n}\r\n\r\n.mockplus_rp_align_justify:before {\r\n content: "\\e746";\r\n}\r\n\r\n.mockplus_rp_icon_set:before {\r\n content: "\\e747";\r\n}\r\n\r\n.mockplus_rp_icon_pencil:before {\r\n content: "\\e745";\r\n}\r\n\r\n.mockplus_rp_icon_upperCase:before {\r\n content: "\\e742";\r\n}\r\n\r\n.mockplus_rp_icon_capitalize:before {\r\n content: "\\e743";\r\n}\r\n\r\n.mockplus_rp_icon_lowerCase:before {\r\n content: "\\e744";\r\n}\r\n\r\n.mockplus_rp_icon_Endtype_Butt:before {\r\n content: "\\e73c";\r\n}\r\n\r\n.mockplus_rp_icon_Endtype_square:before {\r\n content: "\\e73d";\r\n}\r\n\r\n.mockplus_rp_icon_Jointype_bevel:before {\r\n content: "\\e73e";\r\n}\r\n\r\n.mockplus_rp_icon_Endtype_round:before {\r\n content: "\\e73f";\r\n}\r\n\r\n.mockplus_rp_icon_Jointype_miter:before {\r\n content: "\\e740";\r\n}\r\n\r\n.mockplus_rp_icon_Jointype_round:before {\r\n content: "\\e741";\r\n}\r\n\r\n.mockplus_rp_icon_lineheight:before {\r\n content: "\\e73a";\r\n}\r\n\r\n.mockplus_rp_icon_Kerning:before {\r\n content: "\\e73b";\r\n}\r\n\r\n.mockplus_rp_icon_reloadtime:before {\r\n content: "\\e735";\r\n}\r\n\r\n.mockplus_rp_icon_disconnect:before {\r\n content: "\\e739";\r\n}\r\n\r\n.mockplus_rp_icon_point:before {\r\n content: "\\e733";\r\n}\r\n\r\n.mockplus_rp_icon_left_bottom:before {\r\n content: "\\e734";\r\n}\r\n\r\n.mockplus_rp_icon_left_top:before {\r\n content: "\\e736";\r\n}\r\n\r\n.mockplus_rp_icon_right_bottom:before {\r\n content: "\\e737";\r\n}\r\n\r\n.mockplus_rp_icon_right_top:before {\r\n content: "\\e738";\r\n}\r\n\r\n.mockplus_rp_icon_align_vcenter:before {\r\n content: "\\e730";\r\n}\r\n\r\n.mockplus_rp_icon_align_top:before {\r\n content: "\\e731";\r\n}\r\n\r\n.mockplus_rp_icon_align_bottom:before {\r\n content: "\\e732";\r\n}\r\n\r\n.mockplus_rp_icon_lock:before {\r\n content: "\\e72f";\r\n}\r\n\r\n.mockplus_rp_icon_list:before {\r\n content: "\\e72e";\r\n}\r\n\r\n.mockplus_rp_icon_add_image:before {\r\n content: "\\e72d";\r\n}\r\n\r\n.mockplus_rp_icon_link:before {\r\n content: "\\e72c";\r\n}\r\n\r\n.mockplus_rp_icon_line:before {\r\n content: "\\e71e";\r\n}\r\n\r\n.mockplus_rp_icon_element:before {\r\n content: "\\e71f";\r\n}\r\n\r\n.mockplus_rp_icon_Image:before {\r\n content: "\\e720";\r\n}\r\n\r\n.mockplus_rp_icon_Circle:before {\r\n content: "\\e721";\r\n}\r\n\r\n.mockplus_rp_icon_Polygon:before {\r\n content: "\\e722";\r\n}\r\n\r\n.mockplus_rp_icon_Rect:before {\r\n content: "\\e723";\r\n}\r\n\r\n.mockplus_rp_icon_TextInput:before {\r\n content: "\\e724";\r\n}\r\n\r\n.mockplus_rp_icon_TextArea:before {\r\n content: "\\e725";\r\n}\r\n\r\n.mockplus_rp_icon_Panel:before {\r\n content: "\\e726";\r\n}\r\n\r\n.mockplus_rp_icon_path:before {\r\n content: "\\e727";\r\n}\r\n\r\n.mockplus_rp_icon_text:before {\r\n content: "\\e728";\r\n}\r\n\r\n.mockplus_rp_icon_Layertree:before {\r\n content: "\\e729";\r\n}\r\n\r\n.mockplus_rp_icon_board:before {\r\n content: "\\e72a";\r\n}\r\n\r\n.mockplus_rp_icon_button:before {\r\n content: "\\e72b";\r\n}\r\n\r\n.mockplus_rp_icon_more:before {\r\n content: "\\e71d";\r\n}\r\n\r\n.mockplus_rp_icon_Unite:before {\r\n content: "\\e719";\r\n}\r\n\r\n.mockplus_rp_icon_exclude:before {\r\n content: "\\e71a";\r\n}\r\n\r\n.mockplus_rp_icon_intersect:before {\r\n content: "\\e71b";\r\n}\r\n\r\n.mockplus_rp_icon_subtract:before {\r\n content: "\\e71c";\r\n}\r\n\r\n.mockplus_rp_icon_some_border:before {\r\n content: "\\e717";\r\n}\r\n\r\n.mockplus_rp_icon_different_border:before {\r\n content: "\\e718";\r\n}\r\n\r\n.mockplus_rp_icon_check_circle_fill:before {\r\n content: "\\e716";\r\n}\r\n\r\n.mockplus_rp_icon_confirm:before {\r\n content: "\\e715";\r\n}\r\n\r\n.mockplus_rp_demo_plane:before {\r\n content: "\\e714";\r\n}\r\n\r\n.mockplus_rp_icon_fullview:before {\r\n content: "\\e713";\r\n}\r\n\r\n.mockplus_rp_icon_arrow_down:before {\r\n content: "\\e711";\r\n}\r\n\r\n.mockplus_rp_icon_arrow_up:before {\r\n content: "\\e712";\r\n}\r\n\r\n.mockplus_rp_demo_mainboard:before {\r\n content: "\\e710";\r\n}\r\n\r\n.mockplus_rp_icon_flip_vertical:before {\r\n content: "\\e70e";\r\n}\r\n\r\n.mockplus_rp_icon_flip_horizontal:before {\r\n content: "\\e70f";\r\n}\r\n\r\n.mockplus_rp_icon_Phone:before {\r\n content: "\\e709";\r\n}\r\n\r\n.mockplus_rp_icon_pad:before {\r\n content: "\\e70a";\r\n}\r\n\r\n.mockplus_rp_icon_freesize:before {\r\n content: "\\e70b";\r\n}\r\n\r\n.mockplus_rp_icon_web1:before {\r\n content: "\\e70c";\r\n}\r\n\r\n.mockplus_rp_icon_empty:before {\r\n content: "\\e70d";\r\n}\r\n\r\n.mockplus_rp_icon_centre_horizontal:before {\r\n content: "\\e707";\r\n}\r\n\r\n.mockplus_rp_icon_vertical_center:before {\r\n content: "\\e708";\r\n}\r\n\r\n.mockplus_rp_tag_exclamation:before {\r\n content: "\\e706";\r\n}\r\n\r\n.mockplus_rp_icon_symmetry:before {\r\n content: "\\e705";\r\n}\r\n\r\n.mockplus_rp_icon_view:before {\r\n content: "\\e704";\r\n}\r\n\r\n.mockplus_rp_icon_horizontal:before {\r\n content: "\\e702";\r\n}\r\n\r\n.mockplus_rp_icon_vertical:before {\r\n content: "\\e703";\r\n}\r\n\r\n.mockplus_rp_demo_code:before {\r\n content: "\\e6fc";\r\n}\r\n\r\n.mockplus_rp_icon_locked:before {\r\n content: "\\e6fd";\r\n}\r\n\r\n.mockplus_rp_icon_unlocked:before {\r\n content: "\\e6fe";\r\n}\r\n\r\n.mockplus_rp_grid:before {\r\n content: "\\e6ff";\r\n}\r\n\r\n.mockplus_rp_list1:before {\r\n content: "\\e700";\r\n}\r\n\r\n.mockplus_rp_icon_tree_group:before {\r\n content: "\\e701";\r\n}\r\n\r\n.mockplus_rp_icon_pen:before {\r\n content: "\\e6f9";\r\n}\r\n\r\n.mockplus_rp_icon_add_link:before {\r\n content: "\\e6fa";\r\n}\r\n\r\n.mockplus_rp_icon_resource_manager:before {\r\n content: "\\e6fb";\r\n}\r\n\r\n.mockplus_rp_demo_share:before {\r\n content: "\\e6f3";\r\n}\r\n\r\n.mockplus_rp_document_link:before {\r\n content: "\\e6f4";\r\n}\r\n\r\n.mockplus_rp_private1:before {\r\n content: "\\e6f5";\r\n}\r\n\r\n.mockplus_rp_download:before {\r\n content: "\\e6f6";\r\n}\r\n\r\n.mockplus_rp_icon_help:before {\r\n content: "\\e6f7";\r\n}\r\n\r\n.mockplus_rp_layer_plus:before {\r\n content: "\\e6f8";\r\n}\r\n\r\n.mockplus_rp_arrow:before {\r\n content: "\\e6f1";\r\n}\r\n\r\n.mockplus_rp_page:before {\r\n content: "\\e6f0";\r\n}\r\n\r\n.mockplus_rp_nav:before {\r\n content: "\\e6ef";\r\n}\r\n\r\n.mockplus_rp_import:before {\r\n content: "\\e6ed";\r\n}\r\n\r\n.mockplus_rp_list:before {\r\n content: "\\e6ee";\r\n}\r\n\r\n.mockplus_rp_demo_home:before {\r\n content: "\\e6ea";\r\n}\r\n\r\n.mockplus_rp_demo_leftarrow:before {\r\n content: "\\e6eb";\r\n}\r\n\r\n.mockplus_rp_demo_rightarrow:before {\r\n content: "\\e6ec";\r\n}\r\n\r\n.mockplus_rp_icon_normal:before {\r\n content: "\\e6bb";\r\n}\r\n\r\n.mockplus_rp_tree_normal:before {\r\n content: "\\e6cf";\r\n}\r\n\r\n.mockplus_rp_bold:before {\r\n content: "\\e6d1";\r\n}\r\n\r\n.mockplus_rp_underline:before {\r\n content: "\\e6d2";\r\n}\r\n\r\n.mockplus_rp_icon_web:before {\r\n content: "\\e6e2";\r\n}\r\n\r\n.mockplus_rp_italic:before {\r\n content: "\\e6e3";\r\n}\r\n\r\n.mockplus_rp_deleteline:before {\r\n content: "\\e6e4";\r\n}\r\n\r\n.mockplus_rp_icon_phone:before {\r\n content: "\\e6e5";\r\n}\r\n\r\n.mockplus_rp_edit:before {\r\n content: "\\e6e6";\r\n}\r\n\r\n.mockplus_rp_close:before {\r\n content: "\\e6e7";\r\n}\r\n\r\n.mockplus_rp_back:before {\r\n content: "\\e6d0";\r\n}\r\n\r\n.mockplus_rp_forwardonepage:before {\r\n content: "\\e6df";\r\n}\r\n\r\n.mockplus_rp_backward:before {\r\n content: "\\e6e0";\r\n}\r\n\r\n.mockplus_rp_backwardonepage:before {\r\n content: "\\e6e1";\r\n}\r\n\r\n.mockplus_rp_maxh:before {\r\n content: "\\e6de";\r\n}\r\n\r\n.mockplus_rp_vertical:before {\r\n content: "\\e6be";\r\n}\r\n\r\n.mockplus_rp_align_vcenter:before {\r\n content: "\\e6cc";\r\n}\r\n\r\n.mockplus_rp_align_hcenter:before {\r\n content: "\\e6dd";\r\n}\r\n\r\n.mockplus_rp_add_normal:before {\r\n content: "\\e6dc";\r\n}\r\n\r\n.mockplus_rp_reset:before {\r\n content: "\\e6db";\r\n}\r\n\r\n.mockplus_rp_minus:before {\r\n content: "\\e699";\r\n}\r\n\r\n.mockplus_rp_plus:before {\r\n content: "\\e69d";\r\n}\r\n\r\n.mockplus_rp_align_averageh:before {\r\n content: "\\e69e";\r\n}\r\n\r\n.mockplus_rp_align_bottom:before {\r\n content: "\\e69f";\r\n}\r\n\r\n.mockplus_rp_align_left:before {\r\n content: "\\e6a0";\r\n}\r\n\r\n.mockplus_rp_align_center:before {\r\n content: "\\e6a1";\r\n}\r\n\r\n.mockplus_rp_align_averagev:before {\r\n content: "\\e6a2";\r\n}\r\n\r\n.mockplus_rp_icon_Align_Left:before {\r\n content: "\\e6a4";\r\n}\r\n\r\n.mockplus_rp_align_right:before {\r\n content: "\\e6a5";\r\n}\r\n\r\n.mockplus_rp_antoline:before {\r\n content: "\\e6a6";\r\n}\r\n\r\n.mockplus_rp_align_right1:before {\r\n content: "\\e6a7";\r\n}\r\n\r\n.mockplus_rp_align_top:before {\r\n content: "\\e6a9";\r\n}\r\n\r\n.mockplus_rp_border_left:before {\r\n content: "\\e6ab";\r\n}\r\n\r\n.mockplus_rp_borber_bottom:before {\r\n content: "\\e6ac";\r\n}\r\n\r\n.mockplus_rp_border_right:before {\r\n content: "\\e6ae";\r\n}\r\n\r\n.mockplus_rp_border_top:before {\r\n content: "\\e6af";\r\n}\r\n\r\n.mockplus_rp_demo_delete:before {\r\n content: "\\e6b0";\r\n}\r\n\r\n.mockplus_rp_group_view:before {\r\n content: "\\e6b3";\r\n}\r\n\r\n.mockplus_rp_icon_conceal:before {\r\n content: "\\e6b4";\r\n}\r\n\r\n.mockplus_rp_component_normal:before {\r\n content: "\\e6b5";\r\n}\r\n\r\n.mockplus_rp_index_copy:before {\r\n content: "\\e6b6";\r\n}\r\n\r\n.mockplus_rp_indentation:before {\r\n content: "\\e6b7";\r\n}\r\n\r\n.mockplus_rp_interaction_none:before {\r\n content: "\\e6b8";\r\n}\r\n\r\n.mockplus_rp_interation_swipe:before {\r\n content: "\\e6ba";\r\n}\r\n\r\n.mockplus_rp_maxw:before {\r\n content: "\\e6bc";\r\n}\r\n\r\n.mockplus_rp_mixw:before {\r\n content: "\\e6bf";\r\n}\r\n\r\n.mockplus_rp_mixh:before {\r\n content: "\\e6c0";\r\n}\r\n\r\n.mockplus_rp_private:before {\r\n content: "\\e6c1";\r\n}\r\n\r\n.mockplus_rp_radius_all:before {\r\n content: "\\e6c2";\r\n}\r\n\r\n.mockplus_rp_radius:before {\r\n content: "\\e6c6";\r\n}\r\n\r\n.mockplus_rp_tag_downarrow:before {\r\n content: "\\e6c7";\r\n}\r\n\r\n.mockplus_rp_Right:before {\r\n content: "\\e6c9";\r\n}\r\n\r\n.mockplus_rp_search_normal:before {\r\n content: "\\e6ca";\r\n}\r\n\r\n.mockplus_rp_tree_group:before {\r\n content: "\\e6cb";\r\n}\r\n\r\n.mockplus_rp_tree_index:before {\r\n content: "\\e6cd";\r\n}\r\n\r\n.mockplus_rp_addpage:before {\r\n content: "\\e6d3";\r\n}\r\n\r\n.mockplus_rp_forward:before {\r\n content: "\\e6d4";\r\n}\r\n\r\n.mockplus_rp_back1:before {\r\n content: "\\e6d5";\r\n}\r\n\r\n.mockplus_rp_group:before {\r\n content: "\\e6d6";\r\n}\r\n\r\n.mockplus_rp_play:before {\r\n content: "\\e6d8";\r\n}\r\n\r\n.mockplus_rp_state_normal:before {\r\n content: "\\e6d9";\r\n}\r\n\r\n.mockplus_rp_ungroup:before {\r\n content: "\\e6da";\r\n}\r\n\r\n',""])},function(e,t,n){e.exports=n.p+"assets/26c64f8588c1bda16d5317bbca9b57c1.woff2"},function(e,t,n){e.exports=n.p+"assets/13095238024a574dbe1e912728b2b14c.woff"},function(e,t,n){e.exports=n.p+"assets/861b47e8dae1f25642732fe63d319f3f.ttf"},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(940);t.default=r.memo(e=>{const{children:t,className:n,theme:i}=e;return r.createElement("div",{className:o.default("dsm-c-rp-button-group",n,{light:"light"===i})},t)})},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(8),a=n(288),s=n(36);n(944);class l extends r.PureComponent{constructor(e){super(e),this.input=r.createRef(),this.updateState=(e,t)=>{const n=this.parseNumberToStr(e,t);this.setState({data:n}),this.input.current&&this.input.current.setState({inputValue:n||""},()=>{this.input.current&&(this.input.current.domValue=n)})},this.doBlur=e=>{const{value:t,decimalCount:n,onBlur:r}=this.props;if(r){!1===r(e)&&this.updateState(t,n)}},this.parseNumberToStr=(e,t)=>o.isUndefined(e)?void 0:this.keepDecimal(e,t).toString(10),this.doValidata=e=>{const{value:t}=this.props;let n=i.calcValueFromText(e);return o.isUndefined(n)?t:isFinite(n)?this.validateNumber(n):t},this.validateNumber=e=>{const{max:t,min:n,decimalCount:r}=this.props;let i=e;return o.isNumber(t)&&(i=Math.min(t,i)),o.isNumber(n)&&(i=Math.max(n,i)),i=this.keepDecimal(i,r),i},this.keepDecimal=(e,t=0)=>e>0?Math.floor(e*Math.pow(10,t))/Math.pow(10,t):Math.ceil(e*Math.pow(10,t))/Math.pow(10,t),this.handleKeyDown=e=>{const{onKeyDown:t,value:n,step:r,min:i,max:a}=this.props,{keyCode:l,target:c}=e,{value:u}=c;let d=parseFloat(u);if(isFinite(d)||(d=n),o.isUndefined(d)&&(d=o.isNumber(i)?i:Math.min(0,a||0)),[s.default.VK_UP,s.default.VK_DOWN].includes(l)){l===s.default.VK_UP?(d+=r||1,d=this.validateNumber(d)):l===s.default.VK_DOWN&&(d-=r||1,d=this.validateNumber(d));const e=this.parseNumberToStr(d);e!==this.state.data&&this.setState({data:e})}t&&t(e)},this.handleBlur=e=>{var t,n;const{decimalCount:r,allowAutoFixMinValue:i,min:a}=this.props;if(i&&""===e)return this.setState({data:""+(o.isNumber(a)&&a>0?a:0)},()=>{this.doBlur&&this.doBlur(parseInt(this.state.data))}),void(null===(t=this.input.current)||void 0===t||t.setState({inputValue:this.state.data}));const s=this.doValidata(e),l=this.parseNumberToStr(s,r);this.setState({data:l}),null===(n=this.input.current)||void 0===n||n.setState({inputValue:o.isUndefined(l)?"":l}),o.isUndefined(s)||this.doBlur(s)},this.handleChange=e=>{const{onChange:t}=this.props,n=this.doValidata(e);o.isUndefined(n)||t&&t(n)},this.handleEnter=e=>{var t,n;const{onEnter:r,decimalCount:i,allowAutoFixMinValue:a,min:s}=this.props;if(a&&""===e)return this.setState({data:""+(o.isNumber(s)&&s>0?s:0)},()=>{r&&r(parseInt(this.state.data))}),void(null===(t=this.input.current)||void 0===t||t.setState({inputValue:this.state.data}));const l=this.doValidata(e),c=this.parseNumberToStr(l,i);this.setState({data:c}),null===(n=this.input.current)||void 0===n||n.setState({inputValue:o.isUndefined(c)?"":c}),o.isUndefined(l)||r&&r(l)},this.state={data:this.parseNumberToStr(e.value,e.decimalCount)}}UNSAFE_componentWillReceiveProps(e){var t,n;const r=e.value!==this.props.value,o=!!(null===(t=this.input.current)||void 0===t?void 0:t.focused),i=(null===(n=this.input.current)||void 0===n?void 0:n.domValue)!==e.value;(r||o&&i)&&this.updateState(e.value,e.decimalCount)}render(){const{placeHolder:e,width:t,readOnly:n,disabled:o,autoFocus:i,autoSelectWhenFocus:s,allowAutoFixMinValue:l,them:c,colorTheme:u,className:d,style:h,prefix:p,suffix:f,onFocus:m,onKeyUp:g}=this.props,{data:v}=this.state;return r.createElement(a.default,{ref:this.input,value:v,placeHolder:e,width:t,readOnly:n,disabled:o,canEmpty:!1,autoFocus:i,autoSelectWhenFocus:s,allowAutoFixMinValue:l,them:c,colorTheme:u,className:"dsm-c-rp-number-input-calc "+d,style:h,prefix:p,suffix:f,onFocus:m,onKeyUp:g,onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,onChange:this.handleChange,onEnter:this.handleEnter})}}t.default=l},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(384),a=n(947);n(949);class s extends r.PureComponent{constructor(e){super(e),this.containerRef=r.createRef(),this.intervalTimer=0,this.timeoutTimer=0,this.disableInterval=!1,this.disableIntervalTimer=0,this.doChangeContainerSize=()=>{if(!this.containerRef.current)return;const{width:e,height:t}=this.containerRef.current.getBoundingClientRect();e===this.state.width&&t===this.state.height||this.setState({width:Math.ceil(e),height:Math.ceil(t),loaded:!0})},this.next=e=>{this.doChangeIndex(this.state.changedIndex+1,e)},this.prev=e=>{this.doChangeIndex(this.state.changedIndex-1,e)},this.doClearTransition=e=>{this.setState({transition:!1},()=>{e&&e()})},this.doRestoreTransition=()=>{this.setState({transition:!0})},this.doChangeIndex=(e,t)=>{this.setState(t=>{const{virtualData:n}=t,r=n.length-1;return e>r?{changedIndex:0}:e<0?{changedIndex:r}:{changedIndex:e}},()=>{window.setTimeout(()=>{t&&t()});const{onIndexChanges:e,data:n}=this.props,r=n.length-1,{changedIndex:o}=this.state;e&&e(o>r?0:o)})},this.handleChangeIndex=e=>{this.disableInterval=!0,window.clearTimeout(this.disableIntervalTimer),this.disableIntervalTimer=window.setTimeout(()=>{this.disableInterval=!1},2e3),this.doChangeIndex(e)},this.handleChange=(e,t)=>{const{onChange:n}=this.props;n&&n(e,t)},this.renderItem=(e,t)=>{const{itemRender:n}=this.props;if(n)return r.createElement(r.Fragment,{key:t},n(e,t));const{width:o,height:a,changedIndex:s}=this.state;return r.createElement(i.default,{changed:s===t,width:o,height:a,data:e,key:t,index:t,onClick:this.handleChange})},this.renderDotItem=(e,t)=>{const{changedIndex:n,virtualData:o}=this.state,i=0===t?[0,o.length-1].includes(n):t===n;return r.createElement(a.default,{key:t,index:t,changed:i,onChange:this.handleChangeIndex})};const{changed:t,data:n}=e;this.state={width:0,height:0,loaded:!1,transition:!0,changedIndex:t,virtualData:this.getVirtualData(n)}}componentDidMount(){const{interval:e,autoplay:t,data:n}=this.props;t&&n.length>1&&(this.intervalTimer=window.setInterval(()=>{!this.disableInterval&&this.next()},e)),this.doChangeContainerSize()}componentWillUnmount(){window.clearInterval(this.intervalTimer),window.clearTimeout(this.timeoutTimer),window.clearTimeout(this.disableIntervalTimer)}componentDidUpdate(e,t){const{changedIndex:n,virtualData:r}=this.state,{changed:o,data:i}=this.props;t.changedIndex!==n&&r.length-1===n&&(window.clearTimeout(this.timeoutTimer),this.timeoutTimer=window.setTimeout(()=>{this.doClearTransition(()=>{this.next(this.doRestoreTransition)})},this.props.interval/2)),i!==e.data&&this.setState({virtualData:this.getVirtualData(i)}),o!==e.changed&&o!==n&&this.setState({changedIndex:o}),this.doChangeContainerSize()}getVirtualData(e){return e.length>1?[...e,e[0]]:e}renderDots(){const{data:e,dots:t,dotPosition:n}=this.props;return t?r.createElement("div",{className:o.default("dsm-c-rp-carousel-dots",n)},e.map(this.renderDotItem)):null}renderItems(){const{dotPosition:e,effect:t,easing:n,customEasing:i,duration:a}=this.props,{width:s,height:l,loaded:c,changedIndex:u,virtualData:d,transition:h}=this.state;let[p,f,m,g]=[0,0,s,l];switch(e){case"top":case"bottom":p=u*s,m=s*d.length;break;case"left":case"right":f=u*l,g=l*d.length}const v=`translate(-${p}px, -${f}px)`;return r.createElement("div",{className:o.default("dsm-c-rp-carousel-items",e,t,{hidden:!c,transition:h}),style:{width:m,height:g,transform:v,transitionTimingFunction:n||i,transitionDuration:(h?a/1e3:0)+"s"}},d.map(this.renderItem))}render(){const{className:e}=this.props;return r.createElement("div",{className:o.default(e,"dsm-c-rp-carousel"),ref:this.containerRef},this.renderItems(),this.renderDots())}}s.defaultProps={dotPosition:"bottom",changed:0,dots:!0,autoplay:!0,easing:"linear",interval:5e3,duration:100,effect:"scroll",data:[]},t.default=s},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(948);class i extends r.PureComponent{constructor(e){super(e),this.handleClick=()=>{const{index:e,onChange:t}=this.props;t&&t(e)},this.state={}}render(){const{className:e,changed:t}=this.props;return r.createElement("div",{className:o.default(e,"dsm-c-rp-carousel-dot",{changed:t}),onClick:this.handleClick})}}t.default=i},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(385);n(952);class i extends r.Component{constructor(e){super(e),this.itemChangeHandle={},this.handleItemChange=(e,t)=>{const{onChange:n,data:r}=this.props;if(n){const o=r.find(t=>t.id===e);o&&n(Object.assign(Object.assign({},o),{checked:t}))}},this.doInitItemChangeHandle(e.data)}UNSAFE_componentWillReceiveProps(e){this.doInitItemChangeHandle(e.data)}doInitItemChangeHandle(e){e.forEach(({id:e})=>{this.itemChangeHandle[e]||(this.itemChangeHandle[e]=t=>{const n=e;this.handleItemChange(n,t)})})}onItemChange(e,t){const{onChange:n,data:r}=this.props;if(n){const o=r.find(t=>t.id===e);o&&n(Object.assign(Object.assign({},o),{checked:t}))}}render(){return r.createElement("div",{className:"dsm-c-rp-checkbox-group"},this.props.data.map(e=>r.createElement(o.default,{key:""+e.id,checked:e.checked,text:e.text,onChange:this.itemChangeHandle[e.id],disabled:e.disabled})))}}t.default=i},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(7),s=n(16),l=n(129),c=n(154),u=n(954),d=n(94),h=n(212);n(996);var p=n(392);Object.defineProperty(t,"ColorInput",{enumerable:!0,get:function(){return p.default}});var f=n(212);Object.defineProperty(t,"colorPanelManager",{enumerable:!0,get:function(){return f.default}});const m={r:255,g:255,b:255,a:1};function g(){const e=localStorage.getItem("favorite-color"),t=[];if(e){const n=JSON.parse(e);Array.isArray(n)&&n.forEach(e=>{t.push(e)})}return t}function v(e){const t=e?JSON.stringify(e):"";localStorage.setItem("favorite-color",t)}class y extends r.PureComponent{constructor(e){super(e),this.released=!1,this.lastActiveEl=null,this.updateRecentColors=()=>{let e=l.loadFromCache("mockplus-rp-recent-colors");a.isUndefined(e)&&(e=[]),this.setState({recentColors:e})},this.onClosePopup=()=>{this.released||(this.setState({popup:!1},()=>{this.onFocusChange(),this.lastActiveEl&&this.lastActiveEl.focus(),this.lastActiveEl=null}),v(this.state.favoriteColors))},this.onMouseDown=e=>{if(!0===this.props.disabled)return;this.lastActiveEl=document.activeElement;const t=e.target.getBoundingClientRect(),{left:n,top:r,width:o,height:i}=t;this.setState({popup:!this.state.popup,sourceBounds:{left:n,top:r,width:o,height:i},favoriteColors:g()},()=>{this.onFocusChange()}),this.state.popup||this.updateRecentColors()},this.onColorChange=e=>{const{onChange:t}=this.props;let n=this.state.recentColors;if(a.isUndefined(n)&&(n=[e]),Array.isArray(n)){const t=n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e));-1!==t&&n.splice(t,1),n.unshift(e)}l.saveToCahche("mockplus-rp-recent-colors",n.slice(0,8)),this.setState({recentColors:n.slice(0,8)}),t&&t(e)},this.onColorChanging=e=>{const{onChanging:t}=this.props;t&&t(e)},this.onFavoriteColor=e=>{const{favoriteColors:t}=this.state,n=JSON.stringify(e),r=t?t.findIndex(e=>JSON.stringify(e)===n):-1,o=null==t?void 0:t.filter(t=>t.type===e.type),i=o?o.length:0;-1===r&&i<h.MAX_FAVORITE_COLOR_COUNT&&this.setState({favoriteColors:[...t||[],e]},()=>{v(this.state.favoriteColors)})},this.onRemoveFavorite=e=>{const{favoriteColors:t}=this.state;if(t){const n=JSON.stringify(e),r=t.findIndex(e=>JSON.stringify(e)===n);-1!==r&&(t.splice(r,1),this.setState({favoriteColors:[...t]}),v(t))}},this.renderPopup=()=>{const{popup:e,sourceBounds:t,favoriteColors:n,recentColors:i}=this.state,{color:a,disabledGradient:l,disabledAlpha:c,isInPopup:d,theme:h,colorModels:p,onColorStopIndexChanged:f,onSwitchToGradient:g}=this.props;if(!e)return null;let v=a;return a&&a.type&&a.color||(v={type:s.FillType.solid,color:m}),o.createPortal(r.createElement(u.default,{color:v,theme:h,isInPopup:d,autoFocusToColorValue:this.props.autoFocus,disabledGradient:l,disabledAlpha:c,sourceBounds:t,favorite:n,recentColors:i,colorModels:p,onClose:this.onClosePopup,onChanged:this.onColorChange,onChanging:this.onColorChanging,onFavoriteColor:this.onFavoriteColor,onRemoveFavoriteColor:this.onRemoveFavorite,onColorStopIndexChanged:f,onSwitchToGradient:g}),document.body)},this.state={popup:!1,sourceBounds:{left:0,top:0,width:0,height:0},favoriteColors:[],recentColors:[]}}componentDidMount(){this.updateRecentColors()}componentWillUnmount(){this.released=!0}onFocusChange(){const{onFocus:e,onBlur:t}=this.props,{popup:n}=this.state;n&&e&&e(),!n&&t&&t()}render(){const{color:e,width:t,className:n,disabled:o,theme:a,hidden:l}=this.props;let u,h=e;if(e&&e.type&&e.color||(h={type:s.FillType.solid,color:m}),h.type===s.FillType.solid)u=s.isLight(h.color);else{u=h.color.colorStops.every(e=>s.isLight(e.color))}const p={id:Math.random().toString(16),type:"path",size:{width:14,height:14},fill:h,scale:1};return r.createElement(r.Fragment,null,r.createElement("div",{className:i.default("dsm-c-rp-color-picker",n,a),style:{width:t}},r.createElement("div",{className:"dsm-c-rp-color-indicator "+(o?"disabled":""),style:{width:t},onMouseDown:this.onMouseDown},r.createElement("div",null),r.createElement("div",{className:i.default("color-content",{light:u,none:!e||!e.color},{"light-border":a===c.ComponentTheme.light}),style:{pointerEvents:"none"}},!l&&e&&e.color?r.createElement("svg",{version:"1.2",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},d.renderClipFill(p,r.createElement("rect",{width:p.size.width,height:p.size.height}))):r.createElement("div",{className:"no-color"})))),this.renderPopup())}}y.defaultProps={autoFocus:!0,theme:c.ComponentTheme.dark},t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(152),a=n(2),s=n(8),l=n(16),c=n(68),u=n(103),d=n(36),h=n(4),p=n(289),f=n(154),m=n(212),g=n(135),v=n(22),y=n(955),b=n(957),w=n(959),C=n(964),_=n(966),x=n(387),S=n(986),k=n(990),P=n(392),T=n(993);n(995);const E=[{id:l.FillType.solid,text:h.default("editor.solidFill")},{id:l.FillType.linear,text:h.default("editor.linearFill")},{id:l.FillType.radial,text:h.default("editor.radialFill")}];var O;!function(e){e.plate="plate",e.preset="preset"}(O||(O={}));class M extends r.Component{constructor(e){super(e),this.doSwitchGradient=e=>{const{onSwitchToGradient:t}=this.props;t&&t(e)},this.getColorInfo=(e,t)=>{let n;n=e.type===l.FillType.solid?e.color:e.color.colorStops[t].color;const r=i(l.parseColorToString(n));return{rgb:r.toRgb(),hsv:r.toHsv(),alpha:100*r.getAlpha(),hsl:r.toHsl()}},this.getFill=e=>{const{color:t}=this.props,{selectColor:n}=this.state,{type:r,color:o}=t;let i;if(r===l.FillType.solid)i=e;else{const t=o,r=Object.assign(Object.assign({},t.colorStops[n]),{color:e});i=Object.assign(Object.assign({},t),{colorStops:t.colorStops.map((e,t)=>t===n?r:e)})}return{type:r,color:i}},this.doSelectedPoint=e=>{const{color:t,onColorStopIndexChanged:n}=this.props;this.setState({selectColor:e,colorInfo:this.getColorInfo(t,e)},()=>{n&&n(e)})},this.needStop=!1,this.handlePresetColorSelected=(e,t)=>{this.allowChange&&(this.needStop=!0,this.doRGBAColorChanged(e,t))},this.handleColorInputChanged=(e,t)=>{this.allowChange&&(this.needStop?this.needStop=!1:this.doRGBAColorChanged(e,t))},this.doRGBAColorChanged=(e,t)=>{if(!this.allowChange)return;const{color:n,onChanged:r}=this.props,o=s.depthClone(n),{selectColor:i}=this.state;if(n.type===l.FillType.solid)o.color=Object.assign({},e);else{const{colorStops:t}=o.color;t[i].color=Object.assign({},e),o.color.colorStops=[...t]}t?this.setState({colorInfo:this.getColorInfo(o,i)}):r&&r(o)},this.onHSVChanged=(e,t)=>{if(!this.allowChange)return;const{color:n,onChanged:r,onChanging:o}=this.props,a=i(e).toRgb(),{selectColor:c}=this.state;let u;if(n.type===l.FillType.solid)u=i(l.parseColorToString(n.color)).toRgb();else{const e=n.color.colorStops[c];u=i(l.parseColorToString(e.color)).toRgb()}a.a=u.a;const d=s.depthClone(n);n.type===l.FillType.solid?d.color=a:d.color.colorStops[c].color=a,t?(o&&o(d),this.setState({colorInfo:Object.assign(Object.assign({},this.getColorInfo(d,c)),{hsv:e})})):r&&r(d)},this.handleAlphaChanged=(e,t)=>{if(!this.allowChange)return;const n=parseFloat((e/100).toFixed(2)),{color:r,onChanged:o}=this.props,{selectColor:a}=this.state,c=s.depthClone(r);if(r.type===l.FillType.solid)c.color=Object.assign(Object.assign({},i(l.parseColorToString(c.color)).toRgb()),{a:n});else{const e=[...c.color.colorStops],t=e[a].color,r=e[a];r.color=Object.assign(Object.assign({},i(l.parseColorToString(t)).toRgb()),{a:n}),e.splice(a,1,r),c.color.colorStops=e}t?this.setState({colorInfo:this.getColorInfo(c,a)}):o&&o(c)},this.onGradientChanged=(e,t)=>{if(!this.allowChange)return;const{color:n,onChanged:r}=this.props;if(n.type!==l.FillType.solid){const o=s.depthClone(n);o.color.colorStops=e,this.setState({selectColor:t},()=>{r&&r(o)})}},this.onLinearGradientDirectionChange=e=>{const{color:t,onChanged:n}=this.props;if(t.type===l.FillType.linear){const r=s.depthClone(t);r.color.direction=e,n&&n(r)}},this.onRadialGradientPositionChange=e=>{if(!this.allowChange)return;const{color:t,onChanged:n}=this.props;if(t.type===l.FillType.radial){const r=s.depthClone(t);r.color.from=e.from,r.color.to=e.to,n&&n(r)}},this.onTypeChanged=({id:e})=>{const{color:t,onChanged:n}=this.props,r=s.depthClone(t),{type:o}=t,i=t.color;e===l.FillType.solid?o!==l.FillType.solid&&(r.color=l.transitionGradientToPureColor(i)):e===l.FillType.linear?o===l.FillType.solid?r.color=l.transitionPureColorToLinearGradient(i):o===l.FillType.radial&&(r.color={colorStops:i.colorStops,direction:{x1:.5,x2:.5,y1:0,y2:1}}):o===l.FillType.solid?r.color=l.transitionPureColorToRadialGradient(i):o===l.FillType.linear&&(r.color={colorStops:i.colorStops,to:{x:.5,y:.5,r:.5},from:{x:.5,y:.5,r:0},widthRatio:1,angle:0}),e!==this.props.color.type&&this.setState({selectColor:0,colorInfo:this.getColorInfo(t,0)}),r.type=e,n&&n(r)},this.handleAddFavoriteColor=()=>{const{color:e,onFavoriteColor:t}=this.props,n=s.depthClone(e);t&&t(n)},this.doAdjustPosition=()=>{const{innerHeight:e,innerWidth:t}=window;if(this.selfRef.current){const n=this.selfRef.current.getBoundingClientRect(),{sourceBounds:r}=this.props;let{left:o,top:i}=this.state.position;n.bottom>e&&(i=Math.round(r.top-n.height+r.height),i=Math.min(i,Math.round(e-n.height+r.height))),i<2&&(i=2),n.right>t&&(o=Math.round(r.left-n.width-2)),o===this.state.position.left&&i===this.state.position.top||this.setState({position:{left:o,top:i}})}},this.handleDropMouseDown=e=>{e.stopPropagation()},this.handlePanelDrag=e=>{if(e.stopPropagation(),!e.target.classList.contains("dsm-c-rp-color-panel-type"))return;const t=this.state.position,{innerWidth:n,innerHeight:r}=window,{width:o,height:i}=this.selfRef.current.getBoundingClientRect(),a=n-o,s=r-i;c.dragDelegate((e,n)=>{this.setState({position:this.validatePosition({left:Math.min(Math.max(t.left+n.x,0),a),top:Math.min(Math.max(t.top+n.y,0),s)})})},()=>{})},this.handleColorSourceModelSwitch=e=>{this.setState({colorSourceModel:e},()=>{localStorage.setItem("colorSourceModel",e)})},this.handleStrawColor=e=>{const{onChanged:t}=this.props;if(this.doCloseColorExtractor(),!this.allowChange)return;const n=this.getFill(e);this.setState({colorInfo:this.getColorInfo(n,this.selectedIndex)}),t&&t(n)},this.doCloseColorExtractor=()=>{this.setState({showCollectBg:!1}),window.addEventListener("mouseup",this.handleWindowMouseUpWhenCloseColorExtractor)},this.handleExtractColor=e=>{const{clientX:t,clientY:n}=e;this.setState({showCollectBg:!0,clientX:t,clientY:n})},this.handleKeyDown=e=>{const t=s.isInputting(),{onClose:n}=this.props;t||e.keyCode===d.default.VK_ESCAPE&&n&&n()},this.handleEscInput=()=>{const e=this.selfRef.current;e&&(e.tabIndex=-1,e.focus())},this.handleColorInputSubmit=e=>{if(!this.allowChange)return;const{color:t,onChanged:n}=this.props,r=this.getFill(e);s.isEqualDate(t,r)||n&&n(r)},this.handlePanelMouseDown=e=>{const{onMouseDown:t}=this.props;"input"!==e.target.nodeName.toLowerCase()&&(e.preventDefault(),t&&t(e))},this.validatePosition=e=>({left:e.left<2?2:e.left,top:e.top<2?2:e.top});const t=localStorage.getItem("colorSourceModel"),n=t?u.getEnumValue(O,t):O.plate;let o=void 0;e.disabledGradient||(o=e.colorModels?e.colorModels.map(e=>E.find(t=>t.id===e)):E),this.state={position:{left:e.sourceBounds.left,top:e.sourceBounds.top},colorInfo:this.getColorInfo(e.color,0),selectColor:0,currentColor:e.color,colorSourceModel:n,clientX:0,clientY:0,colorModel:o},this.selfRef=e.forwardedRef||r.createRef()}componentDidMount(){m.default.currentColorPanel=this,this.doSwitchGradient(this.color.type!==l.FillType.solid),this.doAdjustPosition()}componentWillUnmount(){m.default.currentColorPanel===this&&(this.doSwitchGradient(!1),m.default.currentColorPanel=void 0),window.removeEventListener("mouseup",this.handleWindowMouseUpWhenCloseColorExtractor)}UNSAFE_componentWillReceiveProps(e){if(!s.isEqualDate(e.color,this.props.color)){let t=this.state.selectColor;e.color.type===l.FillType.solid||e.color.color.colorStops[t]||(t=0);const n=this.getColorInfo(e.color,t);0===n.hsv.v?this.setState({selectColor:t,colorInfo:Object.assign(Object.assign({},n),{hsv:Object.assign(Object.assign({},n.hsv),{h:this.state.colorInfo.hsv.h}),hsl:Object.assign(Object.assign({},n.hsl),{h:this.state.colorInfo.hsv.h})})}):this.setState({selectColor:t,colorInfo:n})}this.setState({currentColor:void 0}),this.props.color.type!==e.color.type&&e.color.type!==l.FillType.solid&&this.doSwitchGradient(!0)}get colorType(){return this.props.color.type}get allowChange(){var e;return!!this.props.disabledGradient||(null===(e=this.state.colorModel)||void 0===e?void 0:e.map(e=>e.id).includes(this.colorType))}get color(){return s.depthClone(this.props.color)}get selectedIndex(){return this.state.selectColor}selectedColorStop(e){this.doSelectedPoint(e)}colorStopChanged(e,t){this.allowChange&&this.onGradientChanged(e,t)}colorStopChanging(e){if(!this.allowChange)return;const{color:t}=this.props,n=s.depthClone(t);n.color.colorStops=e,this.props.onChanging(n),this.setState({colorInfo:this.getColorInfo(n,this.state.selectColor),currentColor:n})}moveLinePoint(e,t){this.allowChange&&(t?this.props.onChanging(e):this.props.onChanged(e))}removeColorStop(){if(!this.allowChange)return;const{selectColor:e}=this.state,t=this.color.color.colorStops;if(0!==e&&e!==t.length-1){const n=s.depthClone(t);n.splice(e,1),this.onGradientChanged(n,e)}}handleWindowMouseUpWhenCloseColorExtractor(){window.removeEventListener("mouseup",this.handleWindowMouseUpWhenCloseColorExtractor),setTimeout(()=>{const e=v.PopupManager.manager.getLastPanel();e&&!e.isModal&&v.PopupManager.manager.count-v.PopupManager.manager.modalCount==1&&(e.preventClose=!1)})}renderColorExtractor(){const{clientX:e,clientY:t}=this.state;return o.createPortal(r.createElement(w.default,{x:e,y:t,onClick:this.handleStrawColor,onCancel:this.doCloseColorExtractor}),document.body)}render(){const{disabledGradient:e,disabledAlpha:t,color:n,favorite:o,recentColors:i,onChanged:s,onChanging:c,onRemoveFavoriteColor:u,isInPopup:d,theme:h,onMouseUp:m}=this.props,{selectColor:g,position:w,colorInfo:M,colorSourceModel:A,showCollectBg:D}=this.state,I=A===O.plate;return r.createElement("div",{className:a.default("dsm-c-rp-color-panel popup-with-body",h,{"in-popup":d})},r.createElement("div",{className:"dsm-c-rp-color-panel-content",ref:this.selfRef,style:w,onMouseDown:this.handlePanelMouseDown,onMouseUp:m,onKeyDown:this.handleKeyDown},r.createElement("div",{className:"dsm-c-rp-color-content"},r.createElement("div",{className:"dsm-c-rp-color-panel-type",onMouseDown:this.handlePanelDrag},r.createElement("div",null,!e&&r.createElement(x.default,{dropDownMaxWidth:200,data:this.state.colorModel,selectedIndex:E.findIndex(e=>e.id===n.type),onSelect:this.onTypeChanged,onDropMouseDown:this.handleDropMouseDown,theme:h===f.ComponentTheme.light?"light":"no-border",isInPopup:d})),r.createElement("div",{className:"dsm-c-rp-color-source-model"},r.createElement(v.Icon,{cls:"icon_palette",selected:A===O.plate,onClick:this.handleColorSourceModelSwitch.bind(this,O.plate)}),r.createElement(v.Icon,{cls:"grid",selected:A===O.preset,onClick:this.handleColorSourceModelSwitch.bind(this,O.preset)}))),n.type!==l.FillType.solid&&r.createElement(S.default,{disabled:!this.allowChange,color:this.state.currentColor||n,selectedIndex:g,onSelect:this.doSelectedPoint,onColorStopChanged:this.onGradientChanged,onChanged:this.allowChange?s:void 0,onChanging:this.allowChange?c:void 0,onDirectionChange:this.onLinearGradientDirectionChange,onPositionChange:this.onRadialGradientPositionChange}),r.createElement("div",{className:"dsm-c-rp-color-panel-general"},A===O.plate&&r.createElement(y.default,{disabled:!this.allowChange,color:M,onChanged:this.onHSVChanged}),A===O.preset&&r.createElement(b.default,{onChanged:this.handlePresetColorSelected}),D&&this.allowChange&&this.renderColorExtractor(),(I||!t)&&r.createElement("div",{className:"dsm-c-rp-color-panel-general-change"},r.createElement("div",{className:"dsm-c-rp-color-panel-general-collector"},r.createElement(v.Icon,{cls:"icon_picker",disabled:p.larkPC||!this.allowChange,size:18,onClick:this.handleExtractColor})),r.createElement("div",{className:"dsm-c-rp-color-panel-general-changeOn"},A===O.plate&&r.createElement(C.default,{disabled:!this.allowChange,color:M,onChange:this.onHSVChanged}),!t&&r.createElement(_.default,{disabled:!this.allowChange,alpha:M.alpha,color:M.rgb,onChange:this.handleAlphaChanged})),r.createElement("div",{className:"dsm-c-rp-color-panel-general-afterChange"},r.createElement("div",{style:{backgroundColor:`rgba(${M.rgb.r}, ${M.rgb.g}, ${M.rgb.b}, ${M.alpha/100})`}})))),r.createElement("div",{className:"dsm-c-rp-color-panel-edit-input"},r.createElement(P.default,{disabled:!this.allowChange,color:M,autoFocusToColorValue:this.props.autoFocusToColorValue,onChanged:this.handleColorInputChanged,onEsc:this.handleEscInput,onSubmit:this.handleColorInputSubmit}))),r.createElement("div",{className:a.default("dsm-c-rp-color-before-use",{"no-list":!i||!i.length})},r.createElement("div",null,r.createElement(T.default,{recentColors:i,onColorClick:s,disabledGradient:e}))),r.createElement("div",{className:"dsm-c-rp-color-favorite-use"},r.createElement("div",null,r.createElement(k.default,{disabledGradient:e,favorite:o,filterType:n.type,onAddColor:this.handleAddFavoriteColor,onColorClick:s,onDeleteColor:u,theme:h})))))}}M.defaultProps={autoFocusToColorValue:!0};const A=g.default(M);class D extends r.Component{constructor(){super(...arguments),this.handleMouseDown=()=>{this.preventClose=!0},this.handleMouseUp=()=>{setTimeout(()=>{this.preventClose=!1},10)},this.panel=r.createRef()}get preventClose(){var e;return null===(e=this.panel.current)||void 0===e?void 0:e.preventClose}set preventClose(e){this.panel.current&&(this.panel.current.preventClose=e)}render(){return r.createElement(A,Object.assign({ref:this.panel},this.props,{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp}))}}t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(152),i=n(68),a=n(8),s=n(16);n(956);class l extends r.Component{constructor(e){super(e),this.onPointMouseDown=e=>{e.stopPropagation();const t=e.target,{offsetTop:n,offsetLeft:r}=t,a=t.parentElement,{onChanged:s}=this.props;if(a){const{offsetWidth:e,offsetHeight:t}=a,l=Object.assign(Object.assign({},this.state.color),{s:r/e,v:1-n/t});this.setState({color:l,rgb:o(l).toRgb(),afterChooseOffset:{left:r+"px",top:n+"px"}},()=>{s&&s(l,!0)}),i.dragDelegate((i,a)=>{i.preventDefault();const l=Math.max(0,Math.min(r+a.x,e)),c=Math.max(0,Math.min(n+a.y,t)),u=Object.assign(Object.assign({},this.state.color),{s:l/e,v:1-c/t});this.setState({color:u,rgb:o(u).toRgb(),afterChooseOffset:{left:l+"px",top:c+"px"}},()=>{s&&s(u,!0)})},()=>{s&&s(this.state.color)})}},this.onPlateMouseDown=e=>{e.stopPropagation();const t=e.target,{offsetX:n,offsetY:r}=e.nativeEvent,{offsetHeight:s,offsetWidth:l}=t,{color:c}=this.state,{onChanged:u}=this.props,d=Object.assign(Object.assign({},a.depthClone(c)),{s:n/l,v:1-r/s});this.setState({color:d,rgb:o(d).toRgb(),afterChooseOffset:{left:n+"px",top:r+"px"}},()=>{u&&u(d,!0)}),i.dragDelegate((e,t)=>{e.preventDefault();const i=Math.max(0,Math.min(n+t.x,l)),a=Math.max(0,Math.min(r+t.y,s)),c=Object.assign(Object.assign({},this.state.color),{s:i/l,v:1-a/s});this.setState({color:c,rgb:o(c).toRgb(),afterChooseOffset:{left:i+"px",top:a+"px"}},()=>{u&&u(c,!0)})},(e,t)=>{const i=Math.max(0,Math.min(n+t.x,l)),a=Math.max(0,Math.min(r+t.y,s)),c=Object.assign(Object.assign({},this.state.color),{s:i/l,v:1-a/s});this.setState({color:c,rgb:o(c).toRgb(),afterChooseOffset:{left:i+"px",top:a+"px"}},()=>{u&&u(c)})})},this.state={color:e.color.hsv,rgb:o(e.color.hsv).toRgb(),afterChooseOffset:{left:100*e.color.hsv.s+"%",top:100*(1-e.color.hsv.v)+"%"}},this.selfRef=r.createRef()}UNSAFE_componentWillReceiveProps(e){const t=e.color.hsv;this.state.color===t||a.isEqualDate(this.state.rgb,e.color.rgb)||this.state.color.v+t.v===0||this.setState({color:t,rgb:o(t).toRgb(),afterChooseOffset:{left:100*t.s+"%",top:100*(1-t.v)+"%"}})}render(){const{afterChooseOffset:e,rgb:t}=this.state,{color:n,disabled:o}=this.props,{left:i,top:a}=e;return r.createElement("div",{ref:this.selfRef,className:"dsm-c-rp-color-plate",onMouseDown:o?void 0:this.onPlateMouseDown},r.createElement("div",{style:{background:`hsl(${n.hsv.h}, 100%, 50%)`}}),r.createElement("div",null),r.createElement("div",null),r.createElement("div",{style:{left:i,top:a,background:s.parseColorToString(Object.assign(Object.assign({},t),{a:1}))},onMouseDown:o?void 0:this.onPointMouseDown}))}}l.defaultProps={},t.default=l},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(16),i=n(211);n(958);const a=[[{r:0,g:0,b:0,a:1},{r:51,g:51,b:51,a:1},{r:85,g:85,b:85,a:1},{r:127,g:127,b:127,a:1},{r:170,g:170,b:170,a:1},{r:215,g:215,b:215,a:1},{r:242,g:242,b:242,a:1},{r:255,g:255,b:255,a:1}],[{r:236,g:128,b:141,a:1},{r:249,g:205,b:144,a:1},{r:255,g:255,b:128,a:1},{r:202,g:249,b:130,a:1},{r:128,g:255,b:255,a:1},{r:128,g:211,b:248,a:1},{r:128,g:128,b:255,a:1},{r:192,g:129,b:255,a:1}],[{r:216,g:0,b:27,a:1},{r:245,g:155,b:34,a:1},{r:255,g:255,b:0,a:1},{r:149,g:242,b:2,a:1},{r:2,g:255,b:255,a:1},{r:1,g:167,b:240,a:1},{r:6,g:0,b:255,a:1},{r:144,g:19,b:254,a:1}],[{r:163,g:0,b:20,a:1},{r:184,g:116,b:26,a:1},{r:191,g:190,b:0,a:1},{r:112,g:181,b:3,a:1},{r:2,g:191,b:191,a:1},{r:0,g:126,b:180,a:1},{r:3,g:0,b:191,a:1},{r:99,g:1,b:190,a:1}],[{r:110,g:1,b:15,a:1},{r:127,g:77,b:18,a:1},{r:128,g:128,b:0,a:1},{r:75,g:122,b:2,a:1},{r:0,g:128,b:127,a:1},{r:2,g:84,b:120,a:1},{r:2,g:0,b:128,a:1},{r:67,g:0,b:128,a:1}]];class s extends r.Component{constructor(){super(...arguments),this.handleItemColorSelect=(e,t)=>{t.stopPropagation();const{onChanged:n}=this.props;n&&n(e)},this.renderItem=e=>{const t=o.color2hexString(e);return r.createElement(i.default,{key:""+t,text:t,ownerIsDialog:!0,className:"preset-item"},r.createElement("div",{onMouseDown:this.handleItemColorSelect.bind(this,e)},r.createElement("div",{className:"color-content",style:{backgroundColor:t}})))}}render(){return r.createElement("div",{className:"dsm-c-rp-color-preset-colors"},a.map((e,t)=>r.createElement("div",{key:""+t,className:"preset-color-row"},e.map(e=>this.renderItem(e)))))}}s.defaultProps={},t.default=s},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(16),i=n(57),a=n(4),s=n(960),l=n(75),c=n(174),u=n(961),d=n(386),h=n(382);var p;n(963),function(e){e[e.enter=13]="enter",e[e.left=37]="left",e[e.up=38]="up",e[e.right=39]="right",e[e.down=40]="down",e[e.esc=27]="esc"}(p||(p={}));class f extends r.Component{constructor(e){super(e),this.collectorRef=r.createRef(),this.hasBackground=!1,this.loadCaptureImage=()=>{(i.isMockRPD?c.desktopServer.getCaptureImage():s.sendMessageToExtensions(s.extensionsType.captured)).then(e=>{const t=new Image;t.src=e,t.onload=()=>{if(!this.backgroundCTX)return!1;const{x:n,y:r}=this.props,i=o.getDeviceRatio(this.backgroundCTX);this.backgroundCTX.scale(i,i),this.canvasElement.width=t.width,this.canvasElement.height=t.height,this.backgroundCTX.drawImage(t,0,0),this.hasBackground=!0,this.hasCurrent&&this.setState({bg:e,clientX:n,clientY:r},()=>{this.doCollectorData(n,r)})}}).catch(e=>{window.debug&&console.error(e),this.hasCurrent&&this.setState({showDialog:!0,errorType:e})})},this.handleWindowResize=()=>{this.hasCurrent&&this.onCancel()},this.onCancel=()=>{const{onCancel:e}=this.props;e&&e()},this.handleWheel=e=>{e.cancelBubble=!0,e.preventDefault()},this.handleMouseMove=e=>{this.hasBackground&&this.doCollectorData(e.clientX,e.clientY)},this.handleKeydown=e=>{if(this.hasCurrent)switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case p.esc:this.onCancel()}},this.handleMouseDown=e=>{e.stopPropagation(),e.preventDefault(),e.buttons===l.MouseButtons.Left&&this.onSubmit()},this.handleOpenTutorial=()=>{window.open(a.default("extend.chrome.tutorialURL"),"_blank")},this.handleDownload=()=>{const e=a.default("extend.chrome.downloadUrl");window.open(e,"_blank")},this.state={clientX:-190,clientY:-190,rgba:[255,255,255,1],showDialog:!1},this.canvasElement=document.createElement("canvas"),this.backgroundCTX=this.canvasElement.getContext("2d")}componentDidMount(){this.loadCaptureImage(),window.addEventListener("resize",this.handleWindowResize),window.addEventListener("keydown",this.handleKeydown),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("wheel",this.handleWheel,{capture:!0,passive:!1})}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("keydown",this.handleKeydown),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("wheel",this.handleWheel,{capture:!0}),this.backgroundCTX=null,this.canvasElement.remove()}get hasCurrent(){return!!this.collectorRef.current}onSubmit(){const{onClick:e}=this.props,{rgba:t,showDialog:n}=this.state;if(n)return!1;const r={r:t[0],g:t[1],b:t[2],a:t[3]};e&&e(r)}drawCollector(e){window.requestAnimationFrame(()=>{var t;const n=null===(t=this.collectorRef.current)||void 0===t?void 0:t.getContext("2d");n&&n.putImageData(u.spreadImageData(e,10),0,0)})}doCollectorData(e,t){if(this.backgroundCTX){const n=o.getDeviceRatio(this.backgroundCTX),r=this.backgroundCTX.getImageData(e*n-9,t*n-9,19*n,19*n),i=this.backgroundCTX.getImageData(e*n,t*n,1,1),[a,s,l,c]=i.data;this.drawCollector(r),this.setState({clientX:e,clientY:t,rgba:[a,s,l,c/255]})}}renderSharp(){const[e,t,n]=[...this.state.rgba],i=o.rgb2Hex({r:e,g:t,b:n});return r.createElement("span",{className:"dsm-c-rp-color-collector-content-text-sharp"},"#",i)}renderDialog(){const e=this.state.errorType===s.extensionError.version?a.default("extend.version"):a.default("extend.chrome.noExtend.colorExtractor");return r.createElement(d.default,{onClose:this.onCancel,backFade:!0},r.createElement("p",null,e),r.createElement("div",{className:"dsm-c-rp-color-collector-alert-button-group footer-without-separator"},r.createElement(h.default,{theme:"dialog",activated:!0,onClick:this.handleDownload},a.default("general.download")),r.createElement(h.default,{theme:"dialog",activated:!0,onClick:this.handleOpenTutorial},a.default("extend.tutorial")),r.createElement(h.default,{theme:"dialog",onClick:this.onCancel},a.default("general.cancel"))))}render(){const{clientX:e,clientY:t,showDialog:n,bg:o}=this.state,i={top:t,left:e,width:190,height:190};return n?this.renderDialog():r.createElement("div",{className:"dsm-c-rp-color-collector",style:{backgroundImage:`url(${o})`}},r.createElement("div",{className:"dsm-c-rp-color-collector-content",style:i},r.createElement("canvas",{width:190,height:190,ref:this.collectorRef}),r.createElement("div",{className:"dsm-c-rp-color-collector-content-text"},this.renderSharp())))}}t.default=f},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.sendMessageToExtensions=t.getLocalFonts=t.extensionError=t.extensionsType=void 0;const o=n(129);let i=[];var a;!function(e){e.sign="sign",e.version="version",e.captured="captured",e.fonts="fonts"}(t.extensionsType||(t.extensionsType={})),function(e){e.noChrome="noChrome",e.noExtension="noExtension",e.exception="exception",e.version="version",e.time="Response timeout"}(a=t.extensionError||(t.extensionError={})),t.getLocalFonts=function(){return r(this,void 0,void 0,(function*(){return window.chrome&&window.chrome.runtime&&window.chrome.runtime.sendMessage?new Promise(e=>e([])):i}))},t.sendMessageToExtensions=function(e){const t=new s;return new Promise((n,r)=>{var i;if(!window.chrome)return r(a.noChrome);const s=o.loadFromCache("mockplus-for-chrome");if(!s)return r(a.noExtension);(!window.mockRequestMessage||!window.mockSendMessage)&&(window.mockRequestMessage=function(e,t){const n=new MessageEvent("mock-extend-request",{data:e,lastEventId:t});window.dispatchEvent(n)},window.mockSendMessage=function(e,t){const n=new MessageEvent("mock-extend-send",{data:e,lastEventId:t});window.dispatchEvent(n)}),window.addEventListener("mock-extend-send",e=>{const o=e.data;if(o)return 0===o.code&&o.payload?n(o.payload):void("1.0.2"!==o.version&&t.set(()=>{r(a.version)},800));t.set(()=>{r(a.exception)},800)},{once:!0}),window.mockRequestMessage&&window.mockRequestMessage({action:e}),null===(i=window.chrome.runtime)||void 0===i||i.sendMessage(s,{action:e},e=>{if(0===(null==e?void 0:e.code))return n(e.payload);"1.0.2"!==(null==e?void 0:e.version)&&t.set(()=>{r(a.version)},800)}),t.set(()=>{r(a.time)},1e3)})};class s{constructor(){this.timer=[]}set(e,t){var n;null===(n=this.timer)||void 0===n||n.push(setTimeout(()=>{this.clear(),e()},t))}clear(){for(;this.timer.length;)this.timer[0]&&window.clearTimeout(this.timer[0]),this.timer.shift()}}},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())}))};function o(e,t,n){const{width:r,height:o,data:i}=e,a=new ImageData((null==n?void 0:n.width)||r*t,(null==n?void 0:n.height)||o*t),{width:s,data:l}=a;for(let e=0;e<o;e++)for(let n=0;n<r;n++){const o=4*(e*r+n),[a,c,u,d]=[i[o],i[o+1],i[o+2],i[o+3]];for(let r=0;r<t;r++){const o=e*t+r;for(let e=0;e<t;e++){const r=4*(o*s+n*t+e);l[r]=a,l[r+1]=c,l[r+2]=u,l[r+3]=d}}}return a}function i(e){return r(this,void 0,void 0,(function*(){const t=yield l(e),n=document.createElement("canvas"),r=n.getContext("2d");return n.width=t.width,n.height=t.height,r?(r.drawImage(t,0,0),r.getImageData(0,0,t.width,t.height)):new ImageData(t.width,t.height)}))}function a(e){const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");return null==n||n.putImageData(e,0,0),t.toDataURL()}function s(e){return r(this,void 0,void 0,(function*(){const t=document.createElement("canvas"),n=t.getContext("2d"),r=yield l(e);return null==n||n.drawImage(r,0,0),t}))}function l(e){return new Promise((t,n)=>{const r=new Image;r.src=e,r.onload=()=>{t(r)},r.onerror=n})}function c(e,t){return t&&(e.width=t.width,e.height=t.height),e.autoplay=!0,new Promise((t,n)=>{e.onloadedmetadata=()=>{const n=document.createElement("canvas"),r=n.getContext("2d");n.width=e.width,n.height=e.height,r.drawImage(e,0,0),t(n.toDataURL())},e.onerror=n})}Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstFrameFromVideo=t.getFirstFrameFromVideoURL=t.getImageElementFromImageURL=t.getImageCanvasFromImageURL=t.getDataURLFromImageURL=t.getDataURLFromImageData=t.getImageDataFromImageURL=t.enlargeImage=t.spreadImageData=void 0,t.spreadImageData=o,t.enlargeImage=function(e,t=1){return r(this,void 0,void 0,(function*(){return a(o(yield i(e),t))}))},t.getImageDataFromImageURL=i,t.getDataURLFromImageData=a,t.getDataURLFromImageURL=function(e){return r(this,void 0,void 0,(function*(){return(yield s(e)).toDataURL()}))},t.getImageCanvasFromImageURL=s,t.getImageElementFromImageURL=l,t.getFirstFrameFromVideoURL=function(e,t){const n=document.createElement("video");return e instanceof MediaStream?n.srcObject=e:n.src=e,c(n,t)},t.getFirstFrameFromVideo=c},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(152),i=n(68),a=n(16);n(965);class s extends r.Component{constructor(e){super(e),this.handlePointMouseDown=e=>{e.stopPropagation();const{target:t}=e,{color:n}=this.state,r=t,o=r.parentElement,a=r.offsetLeft,{onChange:s}=this.props;if(o){const e=o.offsetWidth;i.dragDelegate((t,r)=>{t.preventDefault();const o=Math.min(Math.max(0,a+r.x),e),i=Object.assign({},n);i.h=360*o/e,this.setState({color:i,afterChooseOffset:o+"px"},()=>{s&&s(i,!0)})},()=>{s&&s(this.state.color)})}},this.handleHueMouseDown=e=>{const{onChange:t}=this.props,{color:n}=this.state,{offsetX:r}=e.nativeEvent,o=e.target,{offsetWidth:a}=o;e.stopPropagation();const s=Object.assign(Object.assign({},n),{h:360*r/a});0!==s.s&&0!==s.v||(s.s=1,s.v=1),this.setState({color:s,afterChooseOffset:r+"px"},()=>{t&&t(s,!0)}),i.dragDelegate((e,o)=>{e.preventDefault();const i=Math.max(0,Math.min(r+o.x,a)),s=Object.assign(Object.assign({},n),{h:360*i/a});0!==s.s&&0!==s.v||(s.s=1,s.v=1),this.setState({color:s,afterChooseOffset:i+"px"},()=>{t&&t(s,!0)})},(e,o)=>{const i=Math.max(0,Math.min(r+o.x,a)),s=Object.assign(Object.assign({},n),{h:360*i/a});0!==s.s&&0!==s.v||(s.s=1,s.v=1),this.setState({color:s,afterChooseOffset:i+"px"},()=>{t&&t(s)})})},this.state={color:e.color.hsv,afterChooseOffset:e.color.hsv.h/3.6+"%"},this.selfRef=r.createRef()}UNSAFE_componentWillReceiveProps(e){var t;const n=e.color.hsv,{color:r}=this.state;if(n!==r&&this.state.color.v+n.v!==0){let e=n.h/360*((null===(t=this.selfRef.current)||void 0===t?void 0:t.clientWidth)||0)+"px";if(!(0!==n.h&&360!==n.h||0!==r.h&&360!==r.h))return;this.setState({color:n,afterChooseOffset:e})}}render(){const{color:e,afterChooseOffset:t}=this.state,{disabled:n}=this.props,i={left:t};return r.createElement("div",{ref:this.selfRef,className:"dsm-c-rp-color-general-hue",onMouseDown:n?void 0:this.handleHueMouseDown},r.createElement("div",{style:Object.assign(Object.assign({},i),{background:a.parseColorToString(Object.assign(Object.assign({},o(Object.assign(Object.assign({},e),{s:1,v:1})).toRgb()),{a:1}))}),className:"point",onMouseDown:n?void 0:this.handlePointMouseDown}))}}s.defaultProps={},t.default=s},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(68),i=n(16);n(967);class a extends r.Component{constructor(e){super(e),this.onPointMouseDown=e=>{e.stopPropagation();const t=e.target,n=t.parentElement;if(n){const e=n.offsetWidth,r=t.offsetLeft,{onChange:i}=this.props,a=100*Math.max(0,Math.min(e,r))/e;this.setState({alpha:a},()=>{i&&i(a,!0)}),o.dragDelegate((t,n)=>{t.preventDefault();const o=100*Math.max(0,Math.min(e,r+n.x))/e;this.setState({alpha:o},()=>{i&&i(o,!0)})},(t,n)=>{const o=100*Math.max(0,Math.min(e,r+n.x))/e;this.setState({alpha:o},()=>{i&&i(o)})})}},this.onAlphaMouseDown=e=>{e.stopPropagation();const{onChange:t}=this.props,{offsetX:n}=e.nativeEvent,r=e.target.offsetWidth,i=100*n/r;this.setState({alpha:i},()=>{t&&t(i,!0)}),o.dragDelegate((e,o)=>{e.preventDefault();const i=100*Math.max(0,Math.min(r,n+o.x))/r;this.setState({alpha:i},()=>{t&&t(i,!0)})},(e,o)=>{const i=100*Math.max(0,Math.min(r,n+o.x))/r;this.setState({alpha:i},()=>{t&&t(i)})})},this.state={alpha:e.alpha},this.selfRef=r.createRef()}UNSAFE_componentWillReceiveProps(e){e.alpha!==this.state.alpha&&this.setState({alpha:e.alpha})}render(){const{color:e,disabled:t}=this.props,{alpha:n}=this.state,o={},a=`rgba(${e.r},${e.g},${e.b})`,s=`rgba(${e.r},${e.g},${e.b}, 0)`;return o.background=`linear-gradient(to left,${a}, ${s})`,r.createElement("div",{className:"dsm-c-color-alpha",onMouseDown:t?void 0:this.onAlphaMouseDown},r.createElement("div",{className:"bg"}),r.createElement("div",{style:o,className:"color"}),r.createElement("div",{style:{left:n+"%",background:i.parseColorToString(Object.assign(Object.assign({},e),{a:n/100}))},className:"point",onMouseDown:t?void 0:this.onPointMouseDown}))}}a.defaultProps={},t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(135),s=n(388),l=n(93);n(391);class c extends r.Component{constructor(e){super(e),this.listDom=r.createRef(),this.doAdjustPopupPosition=()=>{const{selectDom:e,placement:t}=this.props;if(e&&e.current&&this.selfRef.current){const n=e.current.getBoundingClientRect(),r=this.selfRef.current.children[0].getBoundingClientRect();let o=Math.max(n.width,r.width);this.listDom.current&&(o=Math.max(o,this.listDom.current.contentWidth));const i=l.minWindowTop+5;let a="down";const s={left:n.left,top:n.bottom+2};"right"===t&&(s.left=n.right-o);const{innerWidth:c,innerHeight:u}=window;"right"!==t&&s.left+o>c?s.left=n.right-o:"right"===t&&s.left<0&&(s.left=n.left),s.top+r.height>u&&(s.top=Math.max(n.top-r.height-2,i),a="up"),"down"===a?this.setState({position:s,width:o,height:r.height,opacity:1,popDirection:a}):this.setState({position:{left:s.left,bottom:Math.min(window.innerHeight-(n.top-2),window.innerHeight-(i+r.height)),top:void 0},width:0,height:0},()=>{this.setState({height:r.height,width:o,opacity:1,popDirection:a})})}},this.handleTransionEnd=e=>{e.stopPropagation(),this.setState({height:this.state.height})};const{data:t,maxRowCount:n}=e;let o=t;n&&n>t.length&&(o=t.slice(0,n)),this.state={height:0,width:0,opacity:0,popDirection:"down",data:o},this.selfRef=e.forwardedRef||r.createRef()}UNSAFE_componentWillReceiveProps(e){e.data!==this.props.data&&this.setState({data:e.data})}componentDidMount(){this.doAdjustPopupPosition(),this.state.data!==this.props.data&&this.setState({data:this.props.data})}render(){const{itemHeight:e,itemRender:t,onSelect:n,maxRowCount:a,allowHover:l,theme:c,selectedIndex:u,className:d,onMouseDown:h,maxWidth:p,listClassName:f}=this.props,{position:m,width:g,height:v,opacity:y,popDirection:b,data:w}=this.state;return o.createPortal(r.createElement("div",{className:i.default("popup-with-body "+d,{"pop-up":"up"===b,"pop-down":"down"===b}),ref:this.selfRef,onMouseDown:h,style:Object.assign(Object.assign({},m),{width:g,height:v,opacity:y,maxWidth:p}),onTransitionEnd:this.handleTransionEnd},r.createElement(s.default,{ref:this.listDom,className:f,selectedIndex:u,maxRowCount:a,maxWidth:p,data:w,theme:c,itemRender:t,itemHeight:e,onSelect:n,allowHover:l})),document.body)}}c.defaultProps={},t.default=a.default(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(970),a=v(i),s=v(n(390)),l=n(0),c=v(n(59)),u=v(n(977)),d=v(n(978)),h=v(n(979)),p=v(n(980)),f=v(n(981)),m=n(982),g=n(983);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var w=function(e){function t(e){var n;y(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=b(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(o)));return a.getScrollLeft=a.getScrollLeft.bind(a),a.getScrollTop=a.getScrollTop.bind(a),a.getScrollWidth=a.getScrollWidth.bind(a),a.getScrollHeight=a.getScrollHeight.bind(a),a.getClientWidth=a.getClientWidth.bind(a),a.getClientHeight=a.getClientHeight.bind(a),a.getValues=a.getValues.bind(a),a.getThumbHorizontalWidth=a.getThumbHorizontalWidth.bind(a),a.getThumbVerticalHeight=a.getThumbVerticalHeight.bind(a),a.getScrollLeftForOffset=a.getScrollLeftForOffset.bind(a),a.getScrollTopForOffset=a.getScrollTopForOffset.bind(a),a.scrollLeft=a.scrollLeft.bind(a),a.scrollTop=a.scrollTop.bind(a),a.scrollToLeft=a.scrollToLeft.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.scrollToRight=a.scrollToRight.bind(a),a.scrollToBottom=a.scrollToBottom.bind(a),a.handleTrackMouseEnter=a.handleTrackMouseEnter.bind(a),a.handleTrackMouseLeave=a.handleTrackMouseLeave.bind(a),a.handleHorizontalTrackMouseDown=a.handleHorizontalTrackMouseDown.bind(a),a.handleVerticalTrackMouseDown=a.handleVerticalTrackMouseDown.bind(a),a.handleHorizontalThumbMouseDown=a.handleHorizontalThumbMouseDown.bind(a),a.handleVerticalThumbMouseDown=a.handleVerticalThumbMouseDown.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleScroll=a.handleScroll.bind(a),a.handleDrag=a.handleDrag.bind(a),a.handleDragEnd=a.handleDragEnd.bind(a),a.state={didMountUniversal:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r,i=e.scrollWidth,a=void 0===i?0:i,s=e.scrollHeight,l=void 0===s?0:s,c=e.clientWidth,u=void 0===c?0:c,d=e.clientHeight,h=void 0===d?0:d;return{left:n/(a-u)||0,top:o/(l-h)||0,scrollLeft:n,scrollTop:o,scrollWidth:a,scrollHeight:l,clientWidth:u,clientHeight:h}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollWidth,i=r.clientWidth,a=(0,p.default)(this.trackHorizontal),s=Math.ceil(i/o*a);return a===s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollHeight,i=r.clientHeight,a=(0,f.default)(this.trackVertical),s=Math.ceil(i/o*a);return a===s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,p.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,f.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),i=Math.abs(r-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=h.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,o=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(o)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,d.default)()){var i=o.scrollLeft,a=o.clientWidth,l=o.scrollWidth,c=(0,p.default)(this.trackHorizontal),u=this.getThumbHorizontalWidth(),h={width:u,transform:"translateX("+i/(l-a)*(c-u)+"px)"},m=o.scrollTop,g=o.clientHeight,v=o.scrollHeight,y=(0,f.default)(this.trackVertical),b=this.getThumbVerticalHeight(),w={height:b,transform:"translateY("+m/(v-g)*(y-b)+"px)"};if(r){var C={visibility:l>a?"visible":"hidden"},_={visibility:v>g?"visible":"hidden"};(0,s.default)(this.trackHorizontal,C),(0,s.default)(this.trackVertical,_)}(0,s.default)(this.thumbHorizontal,h),(0,s.default)(this.thumbVertical,w)}n&&n(o),"function"==typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,o=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,h=n.tagName,p=(n.hideTracksWhenNotNeeded,n.autoHide),f=(n.autoHideTimeout,n.autoHideDuration),g=(n.thumbSize,n.thumbMinSize,n.universal),v=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,w=n.style,C=n.children,_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),x=this.state.didMountUniversal,S=r({},m.containerStyleDefault,v&&r({},m.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),w),k=r({},m.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},v&&r({},m.viewStyleAutoHeight,{minHeight:(0,u.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,u.default)(b)?"calc("+b+" + "+t+"px)":b+t}),v&&g&&!x&&{minHeight:y,maxHeight:b},g&&!x&&m.viewStyleUniversalInitial),P={transition:"opacity "+f+"ms",opacity:0},T=r({},m.trackHorizontalStyleDefault,p&&P,(!t||g&&!x)&&{display:"none"}),E=r({},m.trackVerticalStyleDefault,p&&P,(!t||g&&!x)&&{display:"none"});return(0,l.createElement)(h,r({},_,{style:S,ref:function(t){e.container=t}}),[(0,l.cloneElement)(o({style:k}),{key:"view",ref:function(t){e.view=t}},C),(0,l.cloneElement)(i({style:T}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,l.cloneElement)(s({style:m.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,l.cloneElement)(a({style:E}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,l.cloneElement)(c({style:m.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(l.Component);t.default=w,w.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},w.defaultProps={renderView:g.renderViewDefault,renderTrackHorizontal:g.renderTrackHorizontalDefault,renderTrackVertical:g.renderTrackVerticalDefault,renderThumbHorizontal:g.renderThumbHorizontalDefault,renderThumbVertical:g.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},function(e,t,n){(function(t){for(var r=n(971),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],l=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],l=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!l){var u=0,d=0,h=[];s=function(e){if(0===h.length){var t=r(),n=Math.max(0,1e3/60-(t-u));u=n+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return h.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}}).call(this,n(64))},function(e,t,n){(function(t){(function(){var n,r,o,i,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,i=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=i-s):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n(102))},function(e,t){var n=null,r=["Webkit","Moz","O","ms"];e.exports=function(e){n||(n=document.createElement("div"));var t=n.style;if(e in t)return e;for(var o=e.charAt(0).toUpperCase()+e.slice(1),i=r.length;i>=0;i--){var a=r[i]+o;if(a in t)return a}return!1}},function(e,t,n){var r=n(974);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){var r=n(975);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},function(e,t){e.exports=function(e){return n.test(e)?e.toLowerCase():r.test(e)?(function(e){return e.replace(i,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():o.test(e)?function(e){return e.replace(a,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var n=/\s/,r=/(_|-|\.|:)/,o=/([a-z][A-Z]|[A-Z][a-z])/;var i=/[\W_]+(.|$)/g;var a=/(.)([A-Z]+)/g},function(e,t){var n={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,t){return"number"!=typeof t||n[e]?t:t+"px"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==a)return a;if("undefined"!=typeof document){var e=document.createElement("div");(0,i.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0};var r,o=n(390),i=(r=o)&&r.__esModule?r:{default:r};var a=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.renderViewDefault=function(e){return a.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))};var o,i=n(0),a=(o=i)&&o.__esModule?o:{default:o};function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(68),a=n(16),s=n(8),l=n(36),c=n(61),u=n(987),d=n(988),h=n(4);n(989);const p={x1:0,x2:0,y1:0,y2:1},f={x:.5,y:.5,r:0},m={x:.5,y:.5,r:.5};class g extends r.Component{constructor(e){super(e),this.pointDom=r.createRef(),this.onWindowKeyDown=e=>{if((e.keyCode===l.default.VK_DEL||e.keyCode===l.default.VK_BACKSPACE)&&!s.isInputting()){const{selectedIndex:e,colorStops:t}=this.state;e>0&&e<t.length-1&&this.doRemovePoint(t,e)}},this.onInsertPoint=e=>{const t=e.target;e.stopPropagation();const{offsetX:n}=e.nativeEvent,r=parseFloat((100*n/t.offsetWidth).toFixed(2)),o=this.props.color.color,i=a.fullColorStops(o.colorStops);let s=1;for(let e=i.length-1;e>=0;e--)if(i[e].point<r){s=e+1;break}const l=i[s-1],c=i[s];i.splice(s,0,a.calcColorStopByInsertPoint(l,c,r)),this.setState({colorStops:i});const{onColorStopChanged:u}=this.props;u&&u(i.map(e=>({color:e.color,point:e.point})),s)},this.doRemovePoint=(e,t)=>{if(0===t||t===e.length-1)return;const n=[...e];n.splice(t,1);const{onColorStopChanged:r}=this.props;r&&r(n,t)},this.doChangePoint=(e,t,n)=>{const r=parseFloat(n.toFixed(2)),o=e[t];o.point=r;const i=a.fullColorStops(e);i.splice(t,1);let l=t;for(let e=i.length-1;e>=0;e--)if(i[e].point<=r){l=e+1;break}i.splice(l,0,Object.assign(Object.assign({},o),{index:l}));const{color:c}=this.props,u=s.depthClone(c);u.color.colorStops=i.map(e=>(delete e.index,e)),this.setState({colorStops:i,selectedIndex:l}),this.props.onChanging(u)},this.doSimulatiionRemovePoint=(e,t)=>{const n=[...e];n.splice(t,1);const{color:r,onChanging:o}=this.props,i=r.color,a={type:r.type,color:Object.assign(Object.assign({},i),{colorStops:n})};this.setState({colorStops:n,selectedIndex:-1}),o(a)},this.onPointMouseDown=(e,t)=>{if(e.stopPropagation(),this.props.disabled)return;if(0===t||t===this.state.colorStops.length-1)return;const n=e.target,{offsetHeight:r}=n,o=[...this.state.colorStops],a=n.offsetLeft,l=n.parentElement?n.parentElement.offsetWidth:100;i.dragDelegate((e,n)=>{const i=Math.max(0,Math.min(100*(a+n.x)/l,100));Math.abs(n.y)>r+5?this.doSimulatiionRemovePoint(o,t):this.doChangePoint(o,t,i)},(e,n)=>{const i=s.depthClone(o);Math.abs(n.y)>r+5?this.doRemovePoint(o,t):n.x&&this.props.onColorStopChanged&&this.props.onColorStopChanged(i,t)})},this.handleRevertPointsClick=()=>{const{onColorStopChanged:e}=this.props,{colorStops:t}=this.state,n=[...t].reverse().map(e=>{let t=e.point;return"number"==typeof e.point&&(t=100-e.point),Object.assign(Object.assign({},e),{point:t})});e&&e(n,0)},this.onDirectionChange=e=>{const t=this.props.color.color;this.props.onChanged(Object.assign(Object.assign({},this.props.color),{color:Object.assign(Object.assign({},t),{direction:e})}))},this.onPositionChange=e=>{const t=this.props.color.color;this.props.onChanged(Object.assign(Object.assign({},this.props.color),{color:Object.assign(Object.assign({},t),{from:e.from,to:e.to})}))},this.renderPoint=()=>{const{onSelect:e}=this.props,{colorStops:t,selectedIndex:n}=this.state,i=a.fullColorStops(s.depthClone(t));return i.unshift(i.pop()),i.map((t,i)=>r.createElement("div",{key:""+i,className:o.default("point-item",{selected:t.index===n}),style:{background:t.index===n?a.parseColorToString(t.color):"#fff",borderColor:t.index===n?"#fff":"rgba(0,0,0,.5)",left:t.point+"%"},onClick:e=>{e.stopPropagation()},onMouseDown:n=>{n.stopPropagation(),e(t.index),this.onPointMouseDown(n,t.index)}}))},this.state={colorStops:s.depthClone(e.color.color.colorStops),selectedIndex:e.selectedIndex,showGradientPanel:!1},this.selfRef=r.createRef()}componentDidMount(){window.addEventListener("keydown",this.onWindowKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.onWindowKeyDown)}UNSAFE_componentWillReceiveProps(e){const{color:t,selectedIndex:n}=e;if(t.type!==a.FillType.solid){const e=t.color;s.isEqualDate(e.colorStops,this.state.colorStops)||this.setState({colorStops:s.depthClone(e.colorStops)})}this.state.selectedIndex!==n&&this.setState({selectedIndex:n})}render(){const{color:e,disabled:t}=this.props,n=e.color,o=Object.assign(Object.assign({},n),{direction:{x1:0,x2:1,y1:0,y2:0}}),i={};return a.applyFillToStyle({type:a.FillType.linear,color:o},i),r.createElement("div",{className:"dsm-c-rp-color-general-gradient"},r.createElement("div",{className:"gradient-value"},r.createElement("div",{className:"point",onMouseDown:t?void 0:this.onInsertPoint,ref:this.pointDom},this.renderPoint()),r.createElement("div",{className:"gradient-content"},r.createElement("div",{className:"gradient-background"}),r.createElement("div",{className:"gradient-color",style:i}))),r.createElement("div",{className:"gradient-revert"},r.createElement(c.default,{cls:"icon_symmetry",disabled:t,tips:e.type===a.FillType.linear?h.default("tips.revertLinear"):h.default("tips.revertRadial"),onClick:t?void 0:this.handleRevertPointsClick})),e.type===a.FillType.linear&&r.createElement(u.default,{direction:e.color.direction||p,onChange:t?void 0:this.onDirectionChange}),e.type===a.FillType.radial&&r.createElement(d.default,{position:{from:e.color.from||f,to:e.color.to||m},onChange:t?void 0:this.onPositionChange}))}}g.defaultProps={},t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(61),i=n(4);class a extends r.Component{constructor(){super(...arguments),this.handleDirectionClick=()=>{const{direction:e}=this.props,{x1:t,x2:n,y1:r,y2:o}=e,i=n-t,a=o-r,s=t+i/2,l=r+a/2;let c=s,u=s,d=l,h=l;const p=Math.abs(i/2),f=Math.abs(a/2);i>0?(d-=p,h+=p,a>0?(c+=f,u-=f):a<0&&(c-=f,u+=f)):i<0?(d+=p,h-=p,a>0?(c+=f,u-=f):a<0&&(c-=f,u+=f)):a>0?(c+=f,u-=f):(c-=f,u+=f);const m={x1:c,x2:u,y1:d,y2:h};this.props.onChange&&this.props.onChange(m)}}render(){return r.createElement("div",{className:"dsm-c-rp-color-gradient-direction"},r.createElement("div",{className:"gradient-reset"},r.createElement(o.default,{cls:"reset",tips:i.default("tips.rotationAngle"),onClick:this.handleDirectionClick})))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(150),i=n(61),a=n(4),s=[{mode:"center center",value:{from:{x:.5,y:.5,r:0},to:{x:.5,y:.5,r:.5}}},{mode:"top left",value:{from:{x:0,y:0,r:0},to:{x:0,y:0,r:1}}},{mode:"top center",value:{from:{x:.5,y:0,r:0},to:{x:.5,y:0,r:1}}},{mode:"top right",value:{from:{x:1,y:0,r:0},to:{x:1,y:0,r:1}}},{mode:"center right",value:{from:{x:1,y:.5,r:0},to:{x:1,y:.5,r:1}}},{mode:"bottom right",value:{from:{x:1,y:1,r:0},to:{x:1,y:1,r:1}}},{mode:"bottom center",value:{from:{x:.5,y:1,r:0},to:{x:.5,y:1,r:1}}},{mode:"bottom left",value:{from:{x:0,y:1,r:0},to:{x:0,y:1,r:1}}},{mode:"center left",value:{from:{x:0,y:.5,r:0},to:{x:0,y:.5,r:1}}}];class l extends r.Component{constructor(){super(...arguments),this.validateSamePosition=(e,t)=>o.default.equal(e.from.x,t.from.x)&&o.default.equal(e.from.y,t.from.y)&&o.default.equal(e.from.r,t.from.r)&&o.default.equal(e.to.x,t.to.x)&&o.default.equal(e.to.y,t.to.y)&&o.default.equal(e.to.r,t.to.r),this.handlePositionClick=()=>{const{position:e,onChange:t}=this.props,n=(s.findIndex(t=>this.validateSamePosition(t.value,e))+1)%9,r=s[n].value;t&&t(r)}}render(){return r.createElement("div",{className:"dsm-c-rp-color-gradient-position"},r.createElement("div",{className:"gradient-reset"},r.createElement(i.default,{cls:"reset",disabled:!0,tips:a.default("tips.rotationAngle"),onClick:this.handlePositionClick})))}}t.default=l},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(16),a=n(22),s=n(75),l=n(4),c=n(212),u=n(94);n(991);class d extends r.Component{constructor(e){super(e),this.handleItemColorSelect=(e,t)=>{if(t.button!==s.MouseButton.Right){const{onColorClick:t}=this.props;t&&t(e)}},this.handleMenuVisible=(e,t)=>{if(t.button===s.MouseButton.Right){const n=t.currentTarget.getBoundingClientRect(),r={x:n.left+n.width,y:n.top};this.setState({willDeleteColor:e,menuPosition:r})}},this.renderItem=e=>e&&e.length?e.map((e,t)=>{const n=i.getFillToolColorString(e),o={id:Math.random().toString(16),type:"favorite",size:{width:18,height:18},fill:e,scale:1};return r.createElement(a.Tooltip,{key:"tooltip-"+t,text:n,ownerIsDialog:!0},r.createElement("div",{key:""+t,className:"favorite-item",onMouseDown:this.handleItemColorSelect.bind(this,e),onContextMenu:this.handleMenuVisible.bind(this,e)},r.createElement("div",{className:"color-content",style:{pointerEvents:"none"}},r.createElement("svg",{version:"1.2",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},u.renderClipFill(o,r.createElement("rect",{width:o.size.width,height:o.size.height}))))))}):null,this.handleMenuClose=()=>{this.setState({willDeleteColor:void 0,menuPosition:void 0})},this.builderMenuItems=()=>{const{willDeleteColor:e}=this.state,t=[];return e&&t.push({id:"deleteColor",text:l.default("general.delete")}),t},this.handleMenuItemClick=e=>{const{onDeleteColor:t}=this.props,{willDeleteColor:n}=this.state;switch(e.id){case"deleteColor":t&&n&&t(n)}this.handleMenuClose()},this.renderMenu=()=>{const{menuPosition:e}=this.state;if(!e)return null;const t=this.builderMenuItems();return t.length?r.createElement(a.PopupMenu,{position:e,items:t,onItemClick:this.handleMenuItemClick,onClose:this.handleMenuClose,theme:this.props.theme,className:"auto-width",isInPopup:!0}):null},this.state={},this.selfRef=r.createRef()}render(){const{favorite:e,filterType:t,disabledGradient:n}=this.props;if(!e)return null;const s=n?i.FillType.solid:t,l=e.filter(e=>e.type===s),u=l.length>=c.MAX_FAVORITE_COLOR_COUNT;return r.createElement("div",{className:"dsm-c-rp-color-favorite-list"},r.createElement("div",{className:o.default("favorite-add",{disabled:u}),onClick:this.props.onAddColor},r.createElement(a.Icon,{cls:"add_normal",size:16,theme:"tag",disabled:u})),this.renderItem(l),this.renderMenu())}}d.defaultProps={},t.default=d},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(16),i=n(75),a=n(211),s=n(94);n(994);class l extends r.Component{constructor(e){super(e),this.handleItemColorSelect=(e,t)=>{if(t.button!==i.MouseButton.Right){const{onColorClick:t}=this.props;t&&t(e)}},this.renderItem=()=>{const{recentColors:e,disabledGradient:t}=this.props;return e.filter(e=>!t||"solid"===e.type).map((e,t)=>{const n=o.getFillToolColorString(e),i={id:Math.random().toString(16),type:"recent",size:{width:18,height:18},fill:e,scale:1};return r.createElement(a.default,{key:"tooltip-"+t,text:n,ownerIsDialog:!0},r.createElement("div",{key:""+t,className:"recent-item",onMouseDown:this.handleItemColorSelect.bind(this,e)},r.createElement("div",{className:"color-content",style:{pointerEvents:"none"}},r.createElement("svg",{version:"1.2",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},s.renderClipFill(i,r.createElement("rect",{width:i.size.width,height:i.size.height}))))))})},this.state={},this.selfRef=r.createRef()}render(){const{recentColors:e}=this.props;return e&&e.length?r.createElement("div",{className:"dsm-c-rp-color-recent-colors"},this.renderItem()):null}}l.defaultProps={},t.default=l},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);class o extends r.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(e,t){console.log(e,t),this.setState({hasError:!0})}render(){return this.state.hasError?r.createElement("p",null,"Something went wrong!"):this.props.children}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(93),a=n(68),s=n(135);n(999);class l extends r.Component{constructor(e){super(e),this.reformPoint=e=>{const t=this.selfRef.current.clientHeight,n=window.innerHeight;e&&e.top+t+10>n?this.setState({point:{top:n-t-10,left:e.left}}):this.setState({point:e})},this.handleMouseDown=e=>{e.stopPropagation(),s.PopupManager.manager.closeAll();const{allowDrag:t,onMoved:n}=this.props;if(!t)return;const{top:r,left:o}=this.selfRef.current.getBoundingClientRect(),l=i.minWindowTop,c=o,u=r;a.dragDelegate((e,t)=>{const n={left:c+t.x,top:u+t.y};n.left<0?n.left=0:n.left>window.innerWidth-this.selfRef.current.clientWidth&&(n.left=window.innerWidth-this.selfRef.current.clientWidth),n.top<l?n.top=l:n.top>window.innerHeight-this.selfRef.current.clientHeight&&(n.top=window.innerHeight-this.selfRef.current.clientHeight),this.props.allowDrag&&this.setState({point:n})},()=>{n&&n(this.state.point)})},this.contains=e=>!!this.selfRef.current&&this.selfRef.current.contains(e),this.renderContent=()=>{const{children:e,title:t,titleRender:n,className:o,style:i,onMouseDownCapture:a,onMouseDown:s,onMouseUp:l,onClick:c,onDoubleClick:u,onContextMenu:d}=this.props,{point:h}=this.state;let p={};return h&&(p.left=h.left,p.top=h.top),i&&(p=Object.assign(Object.assign({},p),i)),r.createElement("div",{className:"dsm-c-rp-float-panel "+(o||""),style:p,ref:this.selfRef,tabIndex:1,onMouseDown:s,onMouseDownCapture:a,onMouseUp:l,onClick:c,onDoubleClick:u,onContextMenu:d},t&&r.createElement("div",{className:"title",onMouseDown:this.handleMouseDown},!n&&r.createElement("label",null,t),n&&n(t)),r.createElement("div",{className:"content"},e))},this.state={point:e.point},this.selfRef=r.createRef()}componentDidMount(){const{point:e}=this.state;e&&this.reformPoint(e)}UNSAFE_componentWillReceiveProps(e){e.point&&this.reformPoint(e.point)}get bounds(){const e=this.selfRef.current,{clientWidth:t,clientHeight:n}=e,{left:r,top:o}=this.state.point||{left:0,top:0};return{left:r,top:o,right:r+t,bottom:o+n,width:t,height:n}}render(){const{float:e}=this.props;return e?o.createPortal(this.renderContent(),document.body):this.renderContent()}}l.defaultProps={float:!0},t.default=l},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(61);n(1001);class s extends r.Component{constructor(e){super(e),this.popupPosition={left:0,top:0},this.handleMouseEnter=e=>{const t=e.currentTarget,{right:n,top:r,height:o}=t.getBoundingClientRect();this.popupPosition={left:n,top:Math.round(r+o/2)},this.setState({popup:!0},()=>{this.timeID=window.setTimeout(()=>{this.setState({fadeIn:!0})})})},this.handleMouseLeave=()=>{clearTimeout(this.timeID),this.setState({popup:!1,fadeIn:!1})},this.state={}}componentWillUnmount(){clearTimeout(this.timeID)}renderPopup(){const{popup:e,fadeIn:t}=this.state;if(!e)return null;const{helpInfo:n,onLinkClick:a,helpNode:s}=this.props,{text:l,helpText:c}=n||{},u=r.createElement("div",{style:this.popupPosition,className:i.default("help-popup-tips",{"fade-in":t})},r.createElement("div",{className:"left-triangle"}),r.createElement("div",{className:"help-tips-content"},s||r.createElement(r.Fragment,null,r.createElement("p",null,l),c&&r.createElement("label",{className:"help-link",onClick:a},c))));return o.createPortal(u,document.body)}render(){const{cls:e,color:t}=this.props;return r.createElement("div",{className:"dsm-c-rp-help-icon",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r.createElement(a.default,{cls:e||"icon_fill_help",style:{color:t},theme:"tag"}),this.renderPopup())}}t.default=s},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(61);n(1003);const a=e=>{const{cls:t,disabled:n,onClick:a,width:s,height:l,className:c,actived:u,style:d,tips:h,text:p,noborder:f}=e;return r.createElement("button",{className:o.default("dsm-c-rp-icon-button",c,{actived:u,noborder:f}),disabled:n,onClick:a,style:Object.assign(Object.assign({},d),{width:s,height:l})},t&&r.createElement(i.default,{selected:u,tips:h,cls:t}),p&&r.createElement("span",{className:"btn-text"},p))};a.defaultProps={disabled:!1,width:24,height:24},t.default=r.memo(a)},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(61);n(1005);class a extends r.Component{render(){const{icon:e,text:t,disabled:n,onClick:a}=this.props;return r.createElement("div",{className:o.default("dsm-c-rp-icon-label",{disabled:n}),onClick:a},r.createElement(i.default,{className:"icon",size:16,cls:e}),r.createElement("span",null,t))}}t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(163),i=n(61);n(1008);class a extends r.Component{render(){const{className:e,cls:t,to:n,tips:a}=this.props;return r.createElement(o.Link,{className:"dsm-c-rp-icon-link "+(e||""),to:n},r.createElement(i.default,{className:"c-icon",tips:a,cls:t}))}}t.default=a},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1011);t.default=r.memo(e=>{const{style:t,className:n,disabled:i,children:a}=e;return r.createElement("label",{style:t,className:o.default("dsm-c-rp-label",n,{disabled:i}),onClick:e.onClick},a)})},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1013);const i=e=>{const{href:t,className:n,onClick:i,theme:a,target:s,children:l,disabled:c}=e,u=o.default("dsm-c-rp-link",n,{"dsm-c-rp-link-basic":"basic"===a,"dsm-c-rp-link-red":"red"===a,"dsm-c-rp-link-dark":"dark"===a,"link-disabled":c});return t?r.createElement("a",{className:u,href:t,target:s},l):r.createElement("span",{className:u,onClick:i},l)};i.defaultProps={theme:"red",href:"",target:"_self"},t.default=i},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2);n(1015);class a extends r.Component{constructor(){super(...arguments),this.clearCloseTimer=()=>{this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=null)},this.close=()=>{this.clearCloseTimer();const{onClose:e}=this.props;e&&e()}}componentDidMount(){var e,t;(null===(e=this.props)||void 0===e?void 0:e.duration)&&(null===(t=this.props)||void 0===t?void 0:t.duration)>0&&(this.closeTimer=setTimeout(()=>{this.close()},this.props.duration))}componentWillUnmount(){this.clearCloseTimer()}render(){return o.createPortal(r.createElement("div",{style:Object.assign({},this.props.size),className:i.default("dsm-notice",this.props.positionType)},this.props.children),document.body)}}t.default=a,a.defaultProps={duration:3e3,positionType:"top"}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(61);n(1017);class a extends r.PureComponent{constructor(e){super(e),this.handleNumberClick=e=>{this.doChangeValue(e)},this.handleNextClick=()=>{this.doChangeValue(Math.min(this.props.current+1,this.props.total))},this.handlePrevClick=()=>{this.doChangeValue(Math.max(this.props.current-1,1))},this.renderNumberButton=e=>{const t=o.default("pagination-number",{selected:e===this.props.current});return this.renderButton({child:e,key:""+e,className:t,clickHandler:this.handleNumberClick.bind(this,e)})},this.renderHiddenNumberButton=()=>this.renderButton({child:r.createElement(i.default,{cls:"icon_more",theme:"tag"}),className:"hidden-number"})}doChangeValue(e){e!==this.props.current&&this.props.onChange(e)}renderButton(e){const{size:t}=this.props;return r.createElement("div",{style:{width:t,height:t,lineHeight:t?t+"px":void 0},key:e.key,className:o.default("button",e.className),onClick:e.clickHandler},e.child)}renderPrevButton(){const{locale:e}=this.props,t=(null==e?void 0:e.prevText)?e.prevText:r.createElement(i.default,{className:"prev-button",theme:"tag",cls:"back"});return this.renderButton({child:t,className:(null==e?void 0:e.nextText)?"custom-next-button":void 0,clickHandler:this.handlePrevClick})}renderNextButton(){const{locale:e}=this.props,t=(null==e?void 0:e.nextText)?e.nextText:r.createElement(i.default,{cls:"back",className:"next-button",theme:"tag"});return this.renderButton({child:t,className:(null==e?void 0:e.nextText)?"custom-next-button":void 0,clickHandler:this.handleNextClick})}calcNumberList(){const{current:e,total:t}=this.props;let n=[],r=[];if(t>6)if(r.push(t),e<5)for(let e=1;e<6&&e<=t;e++)n.push(e);else if(e>t-5){r=[],n=[1];for(let e=t;e>t-5;e--)r.unshift(e)}else for(let t=1;t<6;t++){const r=e+1-5+t;n.push(r)}else for(let e=1;e<=t;e++)n.push(e);return{prev:n,next:r}}render(){const{className:e,total:t}=this.props,{prev:n,next:i}=this.calcNumberList();return r.createElement("div",{className:o.default(e,"dsm-c-rp-pagination")},this.renderPrevButton(),n.map(this.renderNumberButton),t>6&&this.renderHiddenNumberButton(),i.map(this.renderNumberButton),this.renderNextButton())}}t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);n(1019);class o extends r.Component{constructor(e){super(e),this.state={},this.selfRef=r.createRef()}render(){const{children:e}=this.props;return r.createElement("div",{ref:this.selfRef},e)}}o.defaultProps={},t.default=o},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(135),s=n(93);n(1022);class l extends r.Component{constructor(e){super(e),this.doApplyPosition=e=>{this.oldPosition=e,this.setState({position:e})},this.doAdjustPosition=()=>{if(!this.self.current)return;const e=this.self.current.getBoundingClientRect(),{width:t,height:n,right:r,bottom:o}=e,{position:i,direction:a}=this.state;let{x:l,y:c}=i,u=a;const d=window.innerWidth;r>d&&(l-=t),u=r+t>d?"left":"right",o>window.innerHeight&&(c-=n);const h=s.minWindowTop;c<h&&(c=h),c=Math.round(c),l=Math.round(l),i.x===l&&i.y===c&&u===a||this.setState({position:{x:l,y:c},direction:u})},this.oldPosition=e.position,this.self=e.forwardedRef,this.state={opacity:0,position:e.position||{x:0,y:0},direction:"right"}}UNSAFE_componentWillMount(){a.PopupManager.manager.closeAllUnModal()}componentDidMount(){this.doAdjustPosition(),this.setState({opacity:1})}componentDidUpdate(){this.doAdjustPosition()}UNSAFE_componentWillReceiveProps(e){const{position:t}=e,{x:n,y:r}=t||{x:0,y:0};this.oldPosition&&n===this.oldPosition.x&&r===this.oldPosition.y||this.setState({opacity:0},()=>{this.doApplyPosition({x:n,y:r}),this.setState({opacity:1})})}render(){const{className:e,theme:t,isInPopup:n,width:a,height:s}=this.props,{position:{x:l,y:c},opacity:u}=this.state;return o.createPortal(r.createElement("div",{ref:this.self,className:i.default("dsm-c-rp-popup-panel popup-with-body",e,t,{"in-popup":n},{animation:0!==u}),style:{left:l,top:c,minWidth:a,opacity:u,height:s},onMouseLeave:this.props.onMouseLeave},this.props.children),document.body)}}l.defaultProps={position:{x:0,y:0},height:100,width:120},t.default=a.default(l)},function(e,t,n){},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.findRootNode=t.findNode=t.modifyAllChilrenExpand=t.searchNodes=t.searchTreeNodes=t.builderTreeItemData=t.cloneTreeItemData=void 0;const o=n(0),i=n(7),a=n(2),s=n(1024),l=n(175),c=n(154);n(395),t.cloneTreeItemData=function e(t,n){if(Array.isArray(t))return t.map(t=>e(t,n));const{parent:o,children:i}=t,a=r(t,["parent","children"]);let s=void 0;i&&(s=e(i,n));const l=Object.assign(Object.assign({},a),{parent:o,children:s});return n&&n(l),l},t.builderTreeItemData=function(e,t){const n=(e,r)=>{const{expand:o,isLeaf:i,selected:a,children:s,marked:l,matched:c,editing:u}=t(e),d={data:e,expand:o,isLeaf:i,selected:a,marked:l,matched:c,editing:u};return d.parent=r,(null==s?void 0:s.length)&&(d.children=s.map(e=>n(e,d))),d};return e.map(e=>n(e))},t.searchTreeNodes=function(e,t,n,r){const o=e=>e.reduce((e,i)=>{const a=Object.assign({},i);let s=n(i.data,t);if(a.marked=s&&r,i.children){const e=o(i.children);s||(s=e.length>0),s&&(a.children=e)}return s&&e.push(a),e},[]);return o(e)},t.searchNodes=function(e,t,n){const r=[],o=e=>{e.forEach(e=>{n(e.data,t)&&r.push(e),e.children&&o(e.children)})};return o(e),r},t.modifyAllChilrenExpand=function e(t,n=!0){t.forEach(t=>{var r;t.isLeaf||(t.expand=n,(null===(r=t.children)||void 0===r?void 0:r.length)&&e(t.children))})},t.findNode=function e(t,n){const r=t.find(n);if(r)return r;const o=t.filter(e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length});if(!o.length)return;let i;for(let t=0;t<o.length;t++){const r=e(o[t].children,n);if(r){i=r;break}}return i},t.findRootNode=function e(t){return t.parent?e(t.parent):t};class u extends o.Component{constructor(e){super(e),this.scrollBars=o.createRef(),this.self=o.createRef(),this.treeContext={selectedNodes:[],allNodes:[]},this.scrollTop=e=>{var t;null===(t=this.scrollBars.current)||void 0===t||t.scrollTop(e)},this.scrollToNode=e=>{let t=this.treeContext.allNodes.find(t=>t.data===e);if(t){const e=t.clientBounds;if(e){const t=this.self.current.getBoundingClientRect();if(e.bottom>t.bottom||e.top<t.top){const n=e.top-t.top,r=this.scrollBars.current.getScrollTop();this.scrollBars.current.scrollTop(n+r)}}}},this.getBoundingClientRect=()=>{var e;return null===(e=this.self.current)||void 0===e?void 0:e.getBoundingClientRect()},this.renderItem=(e,t)=>{const{disabled:n,itemRender:r,allowDrag:a,itemHeight:l,onItemClick:c,onItemContextMenu:u,onDrop:d,onDragStart:h,onDragOver:p,prefixIndent:f,onItemExpandChanged:m,onItemMouseEnter:g,onItemMouseLeave:v,onItemDoubleClick:y}=this.props,b=i.isUndefined(f)?20:f;return o.createElement(s.default,{marked:e.marked,level:0,indent:b,key:`${e}-${t}`,props:e,disabled:n,height:l,draggable:a,render:r,onClick:c,onDoubleClick:y,onItemExpandChanged:m,onDrop:d,onDragStart:h,onDragOver:p,onContextMenu:u,onMouseEnter:g,onMouseLeave:v})},this.state={}}UNSAFE_componentWillReceiveProps(){this.treeContext.selectedNodes=[],this.treeContext.allNodes=[]}renderItems(){const{items:e}=this.props;return e?Array.isArray(e)?e.map((e,t)=>this.renderItem(e,t)):this.renderItem(e,0):null}render(){const{className:e,theme:t,onScroll:n}=this.props;return o.createElement(s.TreeContext.Provider,{value:this.treeContext},o.createElement("div",{className:a.default("dsm-c-rp-tree",e,t),ref:this.self},o.createElement(l.default,{autoHide:!0,ref:this.scrollBars,onScroll:n},o.createElement("div",{className:"tree-content",style:{display:"inline-block"}},this.renderItems()))))}}u.defaultProps={theme:c.ComponentTheme.dark},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeContext=void 0;const r=n(0),o=n(2),i=n(22);n(395),t.TreeContext=r.createContext({});class a extends r.Component{constructor(e){super(e),this.onClick=e=>{const{props:t,onClick:n}=this.props;n&&n(e,t.data)},this.onDoubleClick=e=>{const{props:{data:t},onDoubleClick:n}=this.props;n&&n(e,t)},this.onDragStart=e=>{e.stopPropagation();const{props:t,onDragStart:n}=this.props;n&&n(e,t.data)},this.onDragOver=e=>{e.stopPropagation();const{props:t,onDragOver:n}=this.props;n&&n(e,t.data)},this.onDrop=e=>{e.stopPropagation();const{props:t,onDrop:n}=this.props;n&&n(e,t.data)},this.onExpand=()=>{this.state.expand&&this.removeCollapseNodesFromSelected(),this.setState({expand:!this.state.expand},()=>{this.props.onItemExpandChanged&&this.props.onItemExpandChanged(this.props.props.data,!!this.state.expand)})},this.handleMouseEnter=e=>{const{onMouseEnter:t,props:n}=this.props;t&&t(e,n)},this.handleMouseLeave=e=>{const{onMouseLeave:t,props:n}=this.props;t&&t(e,n)},this.onContextMenu=e=>{const{props:t,onContextMenu:n}=this.props;n&&n(e,t)},this.state={expand:e.props.expand},this.selfRef=r.createRef()}componentDidMount(){var e,t;this.props.props.selected&&(null===(e=this.context)||void 0===e||e.selectedNodes.push(this)),null===(t=this.context)||void 0===t||t.allNodes.push(this)}UNSAFE_componentWillReceiveProps(e){var t,n;e.props.expand!==this.state.expand&&e.props.expand!==this.props.props.expand&&this.setState({expand:e.props.expand},()=>{this.props.onItemExpandChanged&&this.props.onItemExpandChanged(this.props.props.data,!!this.state.expand)}),e.props.selected&&(null===(t=this.context)||void 0===t||t.selectedNodes.push(this)),null===(n=this.context)||void 0===n||n.allNodes.push(this)}get clientBounds(){var e;return null===(e=this.selfRef.current)||void 0===e?void 0:e.getBoundingClientRect()}get data(){return this.props.props.data}get expandItemCount(){const{props:e}=this.props;let t=0;const n=e=>{t+=e.length,e.forEach(e=>{e.children&&n(e.children)})};return e.children&&n(e.children),t}isContainerNode(e){let t=e.parent;const{props:n}=this.props;for(;t;){if(t===n)return!0;t=t.parent}return!1}removeCollapseNodesFromSelected(){var e;(null===(e=this.context)||void 0===e?void 0:e.selectedNodes)&&this.context.selectedNodes.reverse().forEach((e,t)=>{this.isContainerNode(e.props)&&this.context.selectedNodes.splice(t,1)})}renderChildren(){const{props:e,render:t,draggable:n,onClick:o,onDragStart:i,onDrop:s,onDragOver:l,onDoubleClick:c,onContextMenu:u,level:d,indent:h,onItemExpandChanged:p,onMouseEnter:f,onMouseLeave:m,height:g}=this.props,{children:v}=e,{expand:y}=this.state;if(v&&v.length&&y){const e=(d||0)+1;return r.createElement("div",{className:"children-content"},v.map((d,v)=>r.createElement(a,{level:e,marked:d.marked,indent:h,key:""+v,props:d,height:g,render:t,draggable:n,onClick:o,onDoubleClick:c,onItemExpandChanged:p,onDrop:s,onDragStart:i,onDragOver:l,onContextMenu:u,onMouseEnter:f,onMouseLeave:m})))}}renderSelf(){const{render:e,props:t,draggable:n,level:a,marked:s,indent:l,height:c}=this.props,{expand:u}=this.state,d=(l||0)+16*a,h={paddingLeft:d+"px",minWidth:`calc(100% - ${d}px)`};return c&&(h.height=c,h.lineHeight=c+"px"),r.createElement("div",{className:o.default("main-content",{selected:t.selected,marked:s}),style:h,onContextMenu:this.onContextMenu,ref:this.selfRef},r.createElement("div",{className:o.default("button",{leaf:t.isLeaf,editing:t.editing}),onClick:this.onExpand},r.createElement(i.Icon,{className:o.default("arrow",{expand:u,collapse:!u}),size:16,theme:"tag",cls:"tag_downarrow"})),r.createElement("div",{className:"title",onClick:this.onClick,onDoubleClick:this.onDoubleClick,draggable:n,onDragOver:this.onDragOver,onDrop:this.onDrop,onDragStart:this.onDragStart,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},e(t.data,!u)))}render(){return r.createElement("div",{className:"tree-item"},this.renderSelf(),this.renderChildren())}}a.contextType=t.TreeContext,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1026);const i=e=>{const{className:t,progress:n}=e,i=n+"%";return r.createElement("div",{className:o.default("dsm-c-rp-progressbar",t)},r.createElement("div",{className:"progress-track"},r.createElement("div",{className:"progress-track-rate",style:{width:i}})),r.createElement("i",{className:"progress-tips",style:{left:i}},n))};i.defaultProps={progress:0},t.default=i},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Radio=void 0;const r=n(0),o=n(2),i=n(1028);t.Radio=i.default,n(1030);class a extends r.Component{constructor(e){super(e),this.state={selected:e.selected}}onItemClicked(e){const{onChange:t}=this.props;this.setState({selected:e},()=>{t&&t(e)})}render(){const{them:e,layout:t,className:n}=this.props;return r.createElement("div",{className:o.default("dsm-c-rp-radio-button",n,t||"horizontal")},this.props.data.map((t,n)=>r.createElement(i.default,{key:n,text:t.text,them:e,checked:t.id===this.state.selected,disabled:t.disabled,onClick:this.onItemClicked.bind(this,t.id)})))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1029);t.default=({checked:e,text:t,onClick:n,disabled:i,them:a})=>r.createElement("div",{className:o.default("dsm-c-rp-radio","them-"+(null!=a?a:"light"),{"c-radio-disabled":i}),onClick:i?void 0:n},r.createElement("span",{className:o.default("radio-viewer",{"radio-checked":e})}),t&&r.createElement("span",{className:"radio-text"},t))},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(84),a=n(36),s=n(394),l=n(288),c=n(61);n(1032);class u extends r.Component{constructor(e){super(e),this.input=r.createRef(),this.handleWindowKeyDown=e=>{const t=e.target;if("INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable&&this.props.quickFocusKey){i.convertEventToHotKey(e)===this.props.quickFocusKey.toLowerCase()&&(this.inputTimeID=window.setTimeout(()=>{var e;null===(e=this.input.current)||void 0===e||e.focus(),this.inputTimeID=void 0},100))}},this.handleChange=e=>{var t;const{onChange:n}=this.props;this.inputTimeID&&clearTimeout(this.inputTimeID),null===(t=this.input.current)||void 0===t||t.focus(),this.disabledFocus=!1,this.setState({searchText:e},()=>{this.inputTimeID=window.setTimeout(()=>{n&&n(e)},100)})},this.handleFocus=e=>{this.setState({focus:!0});const{onFocus:t}=this.props;t&&t(e)},this.handleBlur=e=>{this.disabledFocus||(this.setState({focus:!1}),this.props.onBlur&&this.props.onBlur(e))},this.handleCloseMouseDown=()=>{this.disabledFocus=!0},this.handleClear=()=>{const{onClear:e}=this.props;e&&e(),this.handleChange("")},this.handleKeyDown=e=>{e.keyCode===a.default.VK_ESCAPE&&(e.target.blur(),this.handleChange("")),this.props.onKeyDown&&this.props.onKeyDown(e)},this.focus=()=>{this.input.current.focus()},this.handleTriggerPopup=e=>{if(!this.state.popup){const{left:t,bottom:n}=e.currentTarget.getBoundingClientRect();this.setState({popupPosition:{x:t,y:n},popup:!0})}},this.handleMenuClose=()=>{this.setState({popup:!1})},this.handleMenuItemClick=e=>{this.setState({popup:!1}),this.props.onMenuSelected&&this.props.onMenuSelected(e)},this.hasCheck=()=>{const{presetMenuItems:e}=this.props;return!!e&&e.some(e=>e.checked)},this.state={searchText:e.defaultValue||"",popupPosition:{x:0,y:0}}}componentDidMount(){this.props.quickFocusKey&&window.addEventListener("keydown",this.handleWindowKeyDown,{capture:!0})}UNSAFE_componentWillReceiveProps(e){e.clearBox&&this.setState({searchText:""})}componentWillUnmount(){window.addEventListener("keydown",this.handleWindowKeyDown,{capture:!1}),this.inputTimeID&&clearTimeout(this.inputTimeID)}renderPopupMenu(){return this.state.popup&&this.props.presetMenuItems?r.createElement(s.default,{useCheck:!0,items:this.props.presetMenuItems,position:this.state.popupPosition,onClose:this.handleMenuClose,onItemClick:this.handleMenuItemClick}):null}renderPresetItem(){if(!this.props.presetMenuItems)return null;const e=this.props.presetMenuItems.filter(e=>e.checked).map(e=>e.text);return this.hasCheck()?r.createElement("div",{className:"search-box-preset-selected"},e.map(e=>r.createElement("span",{key:e},e))):null}render(){const{autoFocus:e,placeHolder:t,allowClear:n,width:i,height:a,onMouseDown:s,onMouseUp:u,theme:d,presetMenuItems:h}=this.props,{searchText:p,focus:f}=this.state,m=this.hasCheck();return r.createElement("div",{className:o.default("dsm-c-rp-search-box",d||"",{focus:f}),onMouseDown:s,onMouseUp:u,style:{height:a,width:i,lineHeight:a}},r.createElement(c.default,{cls:"search_normal",theme:"tag",className:o.default("search-box-icon",{"show-menu":h&&0!==h.length}),onMouseDown:this.handleTriggerPopup}),this.renderPresetItem(),r.createElement(l.default,{ref:this.input,them:"no-border",autoFocus:e,placeHolder:t,className:"search-input",onChange:this.handleChange,value:p,onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,onFocus:this.handleFocus}),n&&(p||m)&&r.createElement(c.default,{className:"clear-button",cls:"close",onMouseDown:this.handleCloseMouseDown,onClick:this.handleClear}),this.renderPopupMenu())}}u.defaultProps={allowClear:!0,quickFocusKey:"ctrl+f"},t.default=u},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(75);n(1034);class s extends r.PureComponent{constructor(e){super(e),this.self=r.createRef(),this.handleDragStart=e=>{e.preventDefault(),this.doStartChange()};const{max:t,min:n,value:o}=e;this.state={mouseDown:!1,disX:0,vue:Math.max(n||0,Math.min(o||0,t||100))},this.doChange=this.doChange.bind(this),this.OnMouseDown=this.OnMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleBlock=this.handleBlock.bind(this),this.calculateValue=this.calculateValue.bind(this)}componentDidMount(){if(!this.state.width){const{width:e}=this.self.current.getBoundingClientRect();this.setState({width:Math.round(e)})}}componentDidUpdate(e){const{value:t,min:n,max:r}=this.props;i.isUndefined(t)||Number.isNaN(t)||i.isUndefined(e.value)||Number.isNaN(e.value)||t!==e.value&&this.setState({vue:Math.max(n,Math.min(t,r))})}calculateValue(e){var t;let{width:n}=this.state;n||(n=null===(t=this.self.current)||void 0===t?void 0:t.getBoundingClientRect().width);const{max:r,min:o}=this.props,i=r||100,a=o||0,s=Math.max(0,Math.min(e,n)),l=s/(n||1),c=i-a,u=this.props.step||1,d=u%1;let h=0;0!==d&&(h=(""+d).substring(2).length);let p=0;const f=u/c*n;let m=0,g=l*c+a;if(h)return parseFloat(g.toFixed(h));g=this.state.vue;const v=f/2;for(;p<=n;){if(p>s-v&&p<s+v){g=u*m+a;break}m++,p+=f}return g}OnMouseDown(e){e.stopPropagation(),this.doStartChange();const t=e.target.parentNode.offsetParent,n=e.pageX-t.getBoundingClientRect().left;this.setState({mouseDown:!0,disX:t.getBoundingClientRect().left,vue:this.calculateValue(n)},()=>{window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp,{capture:!0})})}handleMouseMove(e){e.preventDefault();const{onChanging:t}=this.props,{disX:n,mouseDown:r}=this.state;if(r&&e.buttons===a.MouseButtons.Left){let r=e.pageX-n;const{width:o}=this.state;r<0&&(r=0),r>o&&(r=o);const i=this.calculateValue(r);this.setState({vue:i}),t&&t(i)}}handleMouseUp(e){e.preventDefault();const{vue:t}=this.state;this.doChange(t),this.setState({mouseDown:!1}),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp,{capture:!0})}doStartChange(){const{onStartChanging:e}=this.props;e&&e()}handleBlock(e){this.doStartChange(),e.stopPropagation();const t=e.target;let n=e.pageX-t.offsetParent.getBoundingClientRect().left;n<0&&(n=0);const{width:r}=this.state;n>r&&(n=r),this.setState({mouseDown:!0,disX:t.offsetParent.getBoundingClientRect().left,vue:this.calculateValue(n)},()=>{window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp,{capture:!0})})}doChange(e){const{onChanged:t,min:n,max:r}=this.props,o=Math.max(n,Math.min(e,r));t&&t(o)}render(){const{width:e,left:t,disabled:n,className:i,showText:a,measureText:s,max:l,min:c}=this.props,u=(l||100)-(c||0),{vue:d}=this.state,h=d-(c||0);return r.createElement("div",{ref:this.self,className:o.default("dsm-c-rp-slider",i,{disabled:n})},t&&r.createElement("span",{className:"dsm-c-rp-block-title"},d,s),r.createElement("div",{className:"dsm-c-rp-sliding-block",style:{width:e},onDragStart:this.handleDragStart,onMouseUp:n?void 0:this.handleMouseUp,draggable:!1},r.createElement("div",{className:"dsm-c-rp-slider-click",style:{width:e||"100%"},onMouseDown:n?void 0:this.handleBlock}),r.createElement("div",{className:"dsm-c-rp-block",style:{width:(h>=u?100:h/u*100)+"%"}},r.createElement("span",{className:"dsm-c-rp-block-btn",onMouseDown:n?void 0:this.OnMouseDown}))),a&&!t&&r.createElement("span",{className:"dsm-c-rp-block-title"},d,s))}}s.defaultProps={min:0,max:100,step:1,value:50,className:"",left:!1,disabled:!1,showText:!0,measureText:"%"},t.default=s},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7);n(1036);class a extends r.PureComponent{constructor(e){super(e),this.state={},this.selfRef=r.createRef()}render(){const{className:e,isOn:t,style:n,onChange:a,height:s,disabled:l}=this.props,c=Object.assign(Object.assign({},n),{height:s,width:2*s,borderRadius:s/2});return r.createElement("div",{className:o.default("dsm-c-rp-switch "+(e||""),{on:t,off:!1===t,undefined:i.isUndefined(t),disabled:l}),style:c,onClick:()=>{a(!t)}},r.createElement("i",{style:{width:s-4,height:s-4,borderRadius:s/2-2,left:i.isUndefined(t)?`calc(50% - ${s/2-2}px)`:t?`calc(100% - ${s-4}px - 2px)`:2}}))}}a.defaultProps={height:16},t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(287);n(1038);class a extends r.Component{constructor(e){super(e),this.self=r.createRef(),this.itemWidth=[],this.state={height:e.height,width:e.width,effect:!e.differentItemWidth}}componentDidMount(){if(this.self.current){const e=this.self.current.querySelectorAll(".bar-item"),{direction:t,differentItemWidth:n}=this.props;if(e.forEach(e=>{const{width:n,height:r}=e.getBoundingClientRect();"vertical"===t?this.itemWidth.push(r):this.itemWidth.push(n)}),!this.state.height||this.state.width){const{width:e,height:t}=this.self.current.getBoundingClientRect();this.setState({width:this.props.width||Math.round(e),height:this.props.height||Math.round(t)})}n&&this.setState({effect:!1},()=>{this.setState({effect:!0})})}}render(){const{items:e,selected:t,className:n,style:a,differentItemWidth:s,showIndicator:l,direction:c,borderBottomColor:u,borderBottomSize:d,borderBottomWidth:h,onItemClick:p,onMouseDown:f,onMouseUp:m}=this.props,g=Object.assign({},a||{}),{width:v,height:y,effect:b}=this.state;"vertical"===c?g.width=v:(g.height=y,g.lineHeight=y+"px");const w={width:"vertical"===c?"100%":100/e.length+"%",height:"vertical"===c?100/e.length+"%":"100%",left:"vertical"===c?0:t/e.length*100+"%",top:"vertical"===c?t/e.length*100+"%":0};if(s&&this.itemWidth.length){let e=0;for(let n=0;n<this.itemWidth.length&&n<t;n++)e+=this.itemWidth[n];w.left=e,t<this.itemWidth.length&&t>=0&&(w.width=this.itemWidth[t])}return r.createElement("div",{ref:this.self,className:`dsm-c-rp-tab-bar ${c||"horizontal"} ${n||""}`,style:g,onMouseDown:f,onMouseUp:m},l&&-1!==t&&t<e.length&&r.createElement("div",{className:o.default("tab-bar-select-indicator",{effect:b}),style:w},r.createElement("div",{className:o.default(c),style:{width:h,height:d,backgroundColor:u}})),r.createElement("div",{className:o.default("tab-bar-content",c||"horizontal")},e.map((n,a)=>{const{id:l,text:c,count:u,width:d}=n;return r.createElement("div",{key:""+l,className:o.default("bar-item",{selected:a===t}),style:{width:d||(s?"auto":100/e.length+"%")},onClick:()=>{p&&p(l)}},r.createElement(i.default,{count:u,position:"right",offset:[8,7],size:16},c))})))}}a.defaultProps={direction:"horizontal",showIndicator:!0},t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(1040);n(396);class a extends r.Component{constructor(e){super(e),this.onTitleSelected=e=>{const{onSelected:t}=this.props;this.setState({selectedIndex:e},()=>{t&&t(e)})},this.state={selectedIndex:e.selectedIndex||0}}UNSAFE_componentWillReceiveProps(e){e.selectedIndex!==this.state.selectedIndex&&this.setState({selectedIndex:e.selectedIndex})}render(){const{children:e,className:t,width:n}=this.props;return r.createElement("div",{className:o.default("dsm-c-rp-tab-panel "+t),style:{width:n}},Array.isArray(e)&&e.map(e=>r.createElement(i.default,null,e)))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);n(396);t.default=e=>{const{children:t}=e;return r.createElement(r.Fragment,null,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(61);n(1042);const a=e=>{const{disabled:t,onClick:n,onDelete:a,children:s,className:l,activated:c,deletable:u}=e;return r.createElement("div",{className:o.default("dsm-c-rp-tag",l,{activated:c},{disabled:t}),onClick:n},r.createElement("span",null,s),u&&r.createElement(i.default,{cls:"close",onClick:e=>{e.stopPropagation(),a&&a(e)}}))};a.defaultProps={disabled:!1,deletable:!1},t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(76),s=n(36),l=n(175);n(1044);class c extends r.Component{constructor(e){super(e),this.textareaDom=r.createRef(),this._focused=!1,this.handleTextChange=()=>{const{onChange:e}=this.props,{value:t}=this.state;let n=this.textareaDom.current.value;t!==n&&(this.setState({value:n}),e&&e(n))},this.handleKeyDown=e=>{const{onKeyDown:t}=this.props;e.keyCode===s.default.VK_ENTER&&e.stopPropagation(),a.stopBubbleWhenSortCut(e),t&&t(e)},this.handleBlur=e=>{const{onBlur:t}=this.props;this._focused=!1,this.setState({focus:!1}),t&&t(e)},this.handleFocus=e=>{const{onFocus:t}=this.props;this._focused=!0,this.setState({focus:!0}),t&&t(e)},this.pressed=!1,this.handleMouseDown=()=>{this.pressed=!0},this.handleMouseUp=e=>{this.pressed&&e.stopPropagation(),this.pressed=!1},this.handleDragStart=e=>{e.preventDefault()},this.state={value:e.value||"",areaHeight:200}}UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value||""})}focus(){var e;null===(e=this.textareaDom.current)||void 0===e||e.focus()}select(){var e;null===(e=this.textareaDom.current)||void 0===e||e.select()}get value(){return this.state.value}get focused(){return this._focused}componentDidMount(){const{autoFocus:e,autoSelectWhenFocus:t}=this.props;e&&this.textareaDom.current&&(this.textareaDom.current.focus(),t&&this.textareaDom.current.select())}render(){const{height:e,style:t,className:n,maxLength:a,disabled:s}=this.props,{focus:c}=this.state,u=i.isUndefined(e)?200:e;return r.createElement("div",{className:o.default("dsm-c-rp-textarea",n,{disabled:s,focus:c}),draggable:!1,style:{height:u}},r.createElement(l.default,null,r.createElement("div",{className:"container"},r.createElement("pre",{className:"hidden",style:Object.assign({minHeight:u-2},t||{})},this.state.value),r.createElement("textarea",{draggable:!1,ref:this.textareaDom,className:"textarea",style:Object.assign({},t),value:this.state.value,maxLength:a,onChange:this.handleTextChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onMouseUp:this.handleMouseUp,onDragStart:this.handleDragStart}))))}}t.default=c},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(175);n(1046);class a extends r.Component{constructor(e){super(e),this.size={width:0,height:0},this.rowCount=0,this.columnCount=0,this.showCount=0,this.doCalculateItemWidth=()=>{if(!this.selfRef.current)return;const{itemWidth:e}=this.props;if(e)return;const t=this.selfRef.current.getClientWidth(),{columnCount:n}=this.props,r=Math.round(t/(n||1));this.state.itemWidth!==r&&this.setState({itemWidth:r})},this.handleItemClick=e=>{this.props.onItemClick&&this.props.onItemClick(e)},this.handleItemDoubleClick=e=>{this.props.onItemDoubleClick&&this.props.onItemDoubleClick(e)},this.handleItemDragStart=e=>{const{onItemDragStart:t}=this.props;t&&t(e)},this.handleItemDragEnd=e=>{const{onItemDragEnd:t}=this.props;t&&t(e)},this.handleItemHover=e=>{this.props.onItemHovered&&this.props.onItemHovered(e)},this.handleItemLeave=e=>{this.props.onItemLeaved&&this.props.onItemLeaved(e)},this.handleScroll=()=>{if(this.selfRef.current){if(this.props.items.length<this.showCount)return;const{itemHeight:e}=this.props,t=this.selfRef.current.getScrollTop(),n=Math.floor(t/e)*this.columnCount,r=Math.max(this.state.end,n+this.showCount-1);r>this.state.end&&this.setState({end:r})}},this.state={itemWidth:e.itemWidth||0,start:0,end:0,items:[]},this.selfRef=r.createRef()}componentDidMount(){setTimeout(()=>{this.lazyLoadItems()}),this.doCalculateItemWidth(),this.calculate()}UNSAFE_componentWillReceiveProps(e){e.items===this.props.items&&e.items.length===this.props.items.length||(this.setState({items:e.items}),this.calculate())}calculate(){const e=this.selfRef.current;this.size={width:e.getClientWidth(),height:e.getClientHeight()};const{itemHeight:t,itemWidth:n}=this.props;this.columnCount=Math.floor(this.size.width/n),this.rowCount=Math.ceil(this.size.height/t),this.showCount=this.columnCount*(this.rowCount+1),this.setState({end:this.showCount-1})}lazyLoadItems(){const{items:e,itemHeight:t,itemWidth:n}=this.props,r=this.selfRef.current.getClientWidth(),o=this.selfRef.current.getClientHeight(),i=Math.floor(r/n),a=Math.ceil(o/t),s=e.slice(0,a*i);this.setState({items:s.length===e.length?e:s},()=>{this.state.items!==e&&this.setState({items:e})})}renderChildList(e,t){const{start:n,end:o}=this.state;if(t<n||t>o)return null;const{itemRender:i,ItemComponent:a}=this.props;return a?r.createElement(a,Object.assign({key:""+t},e)):i?i(e,t):void 0}renderContent(){const{items:e}=this.state;if(!e.length)return null;const{itemHeight:t,itemWidth:n,itemClassName:i,allowDrag:a}=this.props,s={width:n,height:t||"auto"};return r.createElement("div",{className:"dsm-c-rp-tile-list"},e&&e.map((e,t)=>r.createElement("div",{key:`${e} ${t}`,className:o.default("list-item-hot",i||"list-item-hot-default"),style:s,draggable:a,onDoubleClick:this.handleItemDoubleClick.bind(this,e),onClick:this.handleItemClick.bind(this,e),onDragStart:this.handleItemDragStart.bind(this,e),onDragEnd:this.handleItemDragEnd.bind(this,e),onMouseEnter:this.handleItemHover.bind(this,e),onMouseLeave:this.handleItemLeave.bind(this,e)},this.renderChildList(e,t))))}render(){const{className:e,style:t}=this.props;return r.createElement(i.default,{hiddenHorizontalScrollBar:!0,autoHide:!0,ref:this.selfRef,className:e,style:t,onScroll:this.handleScroll},this.renderContent())}}t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(2),a=n(84),s=n(93),l=n(76),c=n(75),u=n(22),d=n(393);n(1048);const h=n(8),p=[{id:10,text:"10%",value:10},{id:25,text:"25%",value:25},{id:33,text:"33%",value:33},{id:50,text:"50%",value:50,shortCut:l.getShortCutKey("4",{ctrlKey:!0})},{id:75,text:"75%",value:75},{id:100,text:"100%",value:100,shortCut:l.getShortCutKey("1",{ctrlKey:!0})},{id:150,text:"150%",value:150},{id:200,text:"200%",value:200,shortCut:l.getShortCutKey("2",{ctrlKey:!0})},{id:300,text:"300%",value:300,shortCut:l.getShortCutKey("3",{ctrlKey:!0})},{id:400,text:"400%",value:400}],f=[10,25,50,75,100,150,200,300,400,500,600,700,800,1200,1600,3200,6400,12800,25600];let m=0;class g extends r.PureComponent{constructor(e){super(e),this.timeID=null,this.running=!1,this.inputRef=r.createRef(),this.selfRef=r.createRef(),this.handleWindowMouseDown=e=>{const{target:t}=e;if(this.props.disabled)return;let n=t;const r=this.selfRef.current;for(;n!==r&&(n=n.parentNode,n););if(n===r)return;const{tempValue:o,value:i,editing:a}=this.state;a&&this.doChange(this.validateValue(o||i)),this.setState({tempValue:null,editing:!1,popup:!1})},this.lastWheelTimeStamp=0,this.handleWindowWheel=e=>{const{metaKey:t,ctrlKey:n,timeStamp:r,wheelDeltaY:i,deltaY:a,deltaMode:l}=e;if((t||n)&&e.preventDefault(),m||e.cancelBubble)return;if(this.props.wheelContainer){const{left:t,top:n,right:r,bottom:o}=this.props.wheelContainer.getBoundingClientRect(),{pageY:i,pageX:a}=e;if(t>a||r<a||n>i||o<i)return}let c=1;const u=s.isMacOS?40:32;if(r-this.lastWheelTimeStamp<u&&(c=h.min((r-this.lastWheelTimeStamp)/u,1)),this.lastWheelTimeStamp=r,n||t){if(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.preventDefault(),this.running)return;if(this.props.disabled)return;this.running=!0;let t=o.isUndefined(a)?120:100;s.isFirefox()&&(t=l===WheelEvent.DOM_DELTA_PIXEL?45:6);const n=s.isFirefox()?a:o.isUndefined(a)?-i:a,r=s.isMacOS?1:h.abs(n)/t;window.requestAnimationFrame?m=window.requestAnimationFrame(()=>{this.doWheel(n,r,c),m=0}):setTimeout(this.doWheel,16,n,r,c)}},this.doWheel=(e,t,n)=>{try{const r=h.abs(e)-e==0?-1:1;this.doChange(this.doCalculateValue(r>0?"in":"out",t,n))}finally{this.running=!1}},this.getHotKey=e=>{const t=a.convertEventToHotKey(e);return"ctrl+="===t?"ctrl++":"ctrl+_"===t?"ctrl+-":t},this.handleWindowKeyDown=e=>{const{value:t,disabled:n,onCustomZoom:r}=this.props;let o=t;if(n)return;const i=this.getHotKey(e),s=this.findCustomItem(i);if(s&&r)return o=r(s),void this.doChange(o,!0);if("ctrl++"===i)e.preventDefault(),o=this.doGetQuickZoomValue("in");else if("ctrl+-"===i)e.preventDefault(),o=this.doGetQuickZoomValue("out");else{const t=this._presetMenuItem.find(e=>{if(e.shortCut){return a.convertShortCutToHotKey(e.shortCut)===i}return!1});t&&(e.preventDefault(),o=t.value)}t!==o&&this.doChange(o,!0)},this.handleZoomIn=()=>{this.doChange(this.doGetQuickZoomValue("in"))},this.handleZoomOut=()=>{this.doChange(this.doGetQuickZoomValue("out"))},this.validateValue=e=>{const{min:t,max:n}=this.props;return h.max(t||0,h.min(e,n||100))},this.doChange=(e,t)=>{const n=this.validateValue(e),{onZoom:r}=this.props;r(n,t||!1),(this.state.popup||this.state.editing)&&this.setState({popup:!1,editing:!1})},this.handleInputSubmit=e=>{const{onZoom:t}=this.props,n=this.validateValue(e);this.setState({value:n,popup:!1,editing:!1,tempValue:null}),t(n,!0)},this.handleInputChange=e=>{this.state.tempValue!==e&&this.setState({tempValue:e})},this.handleInputBlur=()=>{const{onZoom:e}=this.props,{value:t,tempValue:n}=this.state,r=this.validateValue(n||t);e(r,!0),this.setState({popup:!1,editing:!1,value:r,tempValue:null})},this.handleMenuSelect=e=>{const{onZoom:t,onCustomZoom:n,customMenuItem:r}=this.props;let o;o=(null==r?void 0:r.includes(e))?n?n(e):this.props.value:e.value;const i=this.validateValue(o);this.setState({value:i,editing:!1,popup:!1,tempValue:null}),t(i,!0)},this.handleDblClick=()=>{this.props.disabled||this.props.canInput&&this.doPopup(!1)},this.handleMouseDown=e=>{if(this.props.disabled)return;const{popup:t}=this.state;this.timeID&&clearTimeout(this.timeID),e.buttons===c.MouseButtons.Left&&(this.timeID=setTimeout(()=>{t||this.doPopup(!0)},250))},this._presetMenuItem=e.presetMenuItem||p,this.state={editing:!1,popup:!1,value:h.round(e.value||200),tempValue:null},this.validateShortCut()}componentDidMount(){window.addEventListener("wheel",this.handleWindowWheel,{passive:!1}),window.addEventListener("keydown",this.handleWindowKeyDown,{capture:!0})}UNSAFE_componentWillUpdate(e,t){let n=!1;e.presetMenuItem!==this.props.presetMenuItem&&(this._presetMenuItem=e.presetMenuItem||p,n=!0),this.props.customMenuItem!==e.customMenuItem&&(n=!0),n&&this.validateShortCut();const{popup:r}=this.state;t.popup!==r&&(t.popup?window.addEventListener("mousedown",this.handleWindowMouseDown):window.removeEventListener("mousedown",this.handleWindowMouseDown))}componentDidUpdate(){var e;null===(e=this.inputRef.current)||void 0===e||e.focus()}componentWillUnmount(){window.removeEventListener("wheel",this.handleWindowWheel),window.removeEventListener("keydown",this.handleWindowKeyDown,{capture:!0}),window.removeEventListener("mousedown",this.handleWindowMouseDown)}validateShortCut(){const{customMenuItem:e}=this.props;if(e){const t=this._presetMenuItem.length,n=e.filter(e=>!!e.shortCut).map(e=>e.shortCut);if(n.length)for(let e=0;e<t;e++){const t=this._presetMenuItem[e];if(t.shortCut&&n.includes(t.shortCut)){console.error("缩放快捷键重复");break}}}}doCalculateValue(e,t=1,n=1){const{value:r,max:o}=this.props,i=1-(1-.83)*n*t;if(i<=0)return r;let a=r*("in"===e?1/i:i);if(a<=(null!=o?o:1600)){const e=a%100,t=h.min(h.round(a/100),5);(e>100-3*t||e<3*t)&&(a=a-e+100*h.round(e/100))}return h.round(a)}findCustomItem(e){const{customMenuItem:t}=this.props;return t&&t.length?t.find(t=>{if(t.shortCut){return a.convertShortCutToHotKey(t.shortCut)===e}return!1}):null}doGetQuickZoomValue(e){const{value:t,max:n,min:r}=this.props;if("in"===e&&t>=(n||100)||"out"===e&&t<=(r||0))return t;let o=f.findIndex(e=>e>=t);return"out"===e?o-=1:f.includes(t)&&(o+=1),o=h.max(0,h.min(o,f.length-1)),f[o]}doPopup(e){if(this.timeID&&(clearTimeout(this.timeID),this.timeID=null),!this.selfRef.current)return;const t=this.selfRef.current.firstElementChild.getBoundingClientRect(),{value:n,canSelect:r,canInput:o}=this.props,{popup:i,editing:a}=this.state,s=e&&(r||!1)&&!i&&!a;this.setState({value:n,popup:s,editing:(!e||a)&&(o||!1),popupPosition:e?{x:t.left,y:t.bottom+4}:void 0})}renderInput(){const{editing:e,value:t,tempValue:n}=this.state,o=null!==n?n:h.round(t);return e?r.createElement(d.default,{ref:this.inputRef,value:o,onBlur:this.handleInputBlur,onEnter:this.handleInputSubmit}):null}renderMenu(){const{popup:e}=this.state,{customMenuItem:t,theme:n}=this.props,o=[...this._presetMenuItem];return t&&o.push({text:"-",id:""},...t),e?r.createElement(u.PopupMenu,{width:100,className:i.default("zoom-drop-down-list",{"light-drop":"light"===n}),position:this.state.popupPosition||{x:0,y:0},items:o,onItemClick:this.handleMenuSelect,onClose:()=>{this.setState({popup:!1})}}):null}render(){const{value:e,className:t,min:n,max:o,disabled:a}=this.props,{editing:l}=this.state,c=e<=(n||0),d=e>=(o||100);return r.createElement("div",{className:i.default("dsm-c-rp-zoomer "+t),ref:this.selfRef},r.createElement("div",{className:i.default("zoomer-content",{disableL:c||a,disableR:d||a})},r.createElement("div",{className:"zoom-btn",onClick:this.handleZoomOut},r.createElement(u.Icon,{className:"min-icon",cls:"minus",size:16,disabled:a})),r.createElement("span",{className:i.default({disabled:a,mac:s.isMacOS,editing:l}),onMouseDown:this.handleMouseDown,onDoubleClick:this.handleDblClick},this.renderInput(),h.round(e)),r.createElement("div",{className:"zoom-btn",onClick:this.handleZoomIn},r.createElement(u.Icon,{className:"max-icon",cls:"plus",size:16,disabled:a})),this.renderMenu()))}}g.defaultProps={className:"",min:10,max:400,value:200,canInput:!0,canSelect:!0,theme:"normal"},t.default=g},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(22),a=n(36),s=n(8);n(1050);class l extends r.Component{constructor(e){super(e),this.maxScaleNum=6,this.minScaleNum=1,this.scale=1,this.handlePreviewScroll=e=>{e.ctrlKey&&(e.wheelDeltaY>0?this.scale++:this.scale--,this.scale=s.max(s.min(this.scale,this.maxScaleNum),this.minScaleNum),this.setState({scale:this.scale}))},this.handleKeyUp=e=>{e.keyCode===a.default.VK_ESCAPE&&this.props.onClosePreview(e)},this.handleClick=e=>{this.props.onClosePreview(e)},this.state={scale:1}}componentDidMount(){document.addEventListener("wheel",this.handlePreviewScroll,{passive:!1}),document.addEventListener("keyup",this.handleKeyUp,{passive:!1})}componentWillUnmount(){document.removeEventListener("wheel",this.handlePreviewScroll),document.removeEventListener("keyup",this.handleKeyUp)}render(){const{url:e}=this.props,{scale:t}=this.state;return o.createPortal(r.createElement(i.ScrollBars,{className:"snapshot-preview-mask",autoHide:!1,theme:"dark",thumbTheme:"large",style:{width:"100%",height:"100%"}},r.createElement(i.Icon,{cls:"icon_Close",className:"close-btn",onClick:this.handleClick}),r.createElement("img",{className:"preview-img",src:e,alt:"snapshot-preview",style:{transition:"all .3s linear",transform:`scale(${t})`}})),document.body)}}t.default=l},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeLine=void 0;const r=n(0),o=n(2),i=n(7),a=n(150),s=n(18),l=n(105),c=n(23),u=n(14),d=n(1054),h=n(55),p=n(20),f=n(42),m=n(6),g=n(134),v=n(6),y=n(293);n(1055),t.makeLine=function(e,t){return g.makeShapeBase(e,v.CLine,!1,Object.assign({size:{width:150,height:0},properties:{line:{startArrow:!1,endArrow:!1},stroke:{thickness:1,color:p.DefaultStrokeColor1,cap:c.StrokeLineCap.Butt,join:c.StrokeLineJoin.Miter,position:c.StrokePosition.center,disabled:!1}},value:{startPoint:{x:0,y:0},endPoint:{x:150,y:0}}},t))};class b extends g.default{constructor(e){super(e),this.isVertLine=!1,this.isHoriLine=!1,this.diff=0,this.getParams=e=>{const{comp:{size:t,properties:n,value:r,opacity:o,parent:a,text:s,version:l},isPreview:c,globalScale:u,valueEditing:d,selected:h}=e,p=e.comp.getTransition(),f=(null==a?void 0:a.type)===m.CCompoundPath;return{size:i.cloneDeep(t),properties:i.cloneDeep(n),value:i.cloneDeep(r),opacity:o,isPreview:c,globalScale:u,transition:p,isChildOfPath:f,valueEditing:d,selected:h,text:s,version:l}},this.doParsePropertiesToStyle=e=>{const{properties:t,text:n,value:r,size:o}=e.comp,i=u.StyleHelper.initCSSStyleParser(t),l=i.getTextStyle(),c=Object.assign(Object.assign({},l),i.getMultiStyle());let d;const p=r;let f={x:0,y:0},m={x:o.width,y:o.height};p&&"object"==typeof p&&(f=p.startPoint||f,m=p.endPoint||m),d=a.default.isMoreOrLess(f.y,m.y,30)?a.default.abs(f.x-m.x)-20:a.default.max(a.default.abs(f.x-m.x)-20,120);let g=0,v=0,y=0;if(n){g=s.measureTextSize(c,n,{wrap:!1,isMultiText:!1,isRich:!0}).width;const e=s.measureTextSize(c,n,{wrap:!0,isMultiText:!0,defaultWidth:d,isRich:!0});y=e.width,v=e.height}return{textStyle:Object.assign(Object.assign(Object.assign({},l),i.getTextShadow(1/h.FontBoxScale)),{width:n?a.default.min(y,g):d,height:v,minWidth:a.default.min(120,g+2)/h.FontBoxScale})}},this.calcPointOffset=(e,t,n)=>{const{startPointType:r,endPointType:o}=e;let i=t;r===l.LinePointType.solidArrow?i=1.5*t:r!==l.LinePointType.hollowDot&&r!==l.LinePointType.hollowCube||(i=2*(t+1));const s={x:i*a.default.cos(2*Math.PI/360*n),y:i*a.default.sin(2*Math.PI/360*n)};i=t,o===l.LinePointType.solidArrow?i=1.6*t:o!==l.LinePointType.hollowCube&&o!==l.LinePointType.hollowDot||(i=2*(t+1));return{start:s,end:{x:i*a.default.cos(2*Math.PI/360*n),y:i*a.default.sin(2*Math.PI/360*n)}}},this.state=this.doParsePropertiesToStyle(e),this.calcDiff(e),this.param=this.getParams(e)}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{i.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=i.cloneDeep(t[e]))}),n}UNSAFE_componentWillReceiveProps(e){this.setState(Object.assign({},this.doParsePropertiesToStyle(e))),this.calcDiff(e)}calcDiff(e){const{comp:t}=e,{size:n,value:r}=t,o=r;let i={x:0,y:0},s={x:n.width,y:n.height};o&&"object"==typeof o&&(i=o.startPoint,s=o.endPoint),this.isVertLine=a.default.equal(i.x,s.x),this.isHoriLine=a.default.equal(i.y,s.y);const l=f.default.scale;this.diff=l>=2?-.5:0}get isChildOfPath(){var e;return(null===(e=this.props.comp.parent)||void 0===e?void 0:e.type)===m.CCompoundPath}render(){var e;const{comp:t,isParentActivated:n,isPreview:s,globalScale:h}=this.props,{properties:p,size:m,value:g,text:v,id:b}=t,w=g;let C={x:0,y:0},_={x:m.width,y:m.height};g&&"object"==typeof g&&(C=w.startPoint,_=w.endPoint);const x=(Math.atan2(_.y-C.y,_.x-C.x)*(180/Math.PI)+360)%360,S=C.x===_.x,k=C.y===_.y,P=u.StyleHelper.initSVGStyleParser(p),T=P.getShadow(),E=P.getStroke(),O=this.isChildOfPath;O&&(E.strokeWidth=1,E.stroke="#ccc",E.strokeDasharray=void 0);const{strokeWidth:M}=E,{line:A,shadow:D}=p,I=!!A&&A.startArrow,L=!!A&&A.endArrow,N=(null==A?void 0:A.startPointType)||l.LinePointType.solidArrow,j=(null==A?void 0:A.endPointType)||l.LinePointType.solidArrow,R=M||1,z=this.calcPointOffset(A,R,x),{width:F,height:B}={width:a.default.max(m.width,1),height:a.default.max(m.height,1)};let H=0,V=0,Y=-H,W=-V;this.isVertLine&&(H=Y=R%2/2),this.isHoriLine&&(V=W=R%2/2);let U=d.default.PathSenseWidth;const K=f.default.scale;K>1&&(U=a.default.max(1,a.default.round(U/K)));const G=i.isUndefined(t.opacity)?1:t.opacity/100;let q=C.x,$=_.x,X=C.y,J=_.y;const Z=I&&[l.LinePointType.hollowCube,l.LinePointType.hollowDot].includes(N),Q=L&&[l.LinePointType.hollowCube,l.LinePointType.hollowDot].includes(j);q+=H,$+=Y,X+=V,J+=W,this.isVertLine&&(q+=this.diff,$+=this.diff),this.isHoriLine&&(X+=this.diff,J+=this.diff);!a.default.equal(J,X,1)&&J>X?J=a.default.floor(J):!a.default.equal(J,X,1)&&J<X&&(X=a.default.floor(X)),!a.default.equal(q,$,1)&&$>q?$=a.default.floor($):!a.default.equal(q,$,1)&&$<q&&(q=a.default.floor(q)),Z&&(q+=z.start.x,X+=z.start.y),Q&&($-=z.end.x,J-=z.end.y),(null===(e=p.stroke)||void 0===e?void 0:e.cap)!==c.StrokeLineCap.Butt&&(I&&[l.LinePointType.hollowArrow,l.LinePointType.solidArrow].includes(N)&&(q+=z.start.x,X+=z.start.y),L&&[l.LinePointType.hollowArrow,l.LinePointType.solidArrow].includes(j)&&($-=z.end.x,J-=z.end.y));const ee={overflow:"visible",filter:D&&D.disabled?void 0:T,transition:t.getTransition(),pointerEvents:"none",opacity:G};s&&Object.assign(ee,{width:S?1:"100%",height:k?1:"100%"});const te={line:A,strokeInfo:E,compID:b,scale:a.default.value(h,1)},ne=!(null==A?void 0:A.disabled)&&!!(null==A?void 0:A.startArrow),re=!(null==A?void 0:A.disabled)&&!!(null==A?void 0:A.endArrow);return r.createElement("div",{className:"lib-comp-line",style:{width:F,height:B}},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",className:o.default("",{vertical:S,horizontal:k}),width:F,height:B,style:ee,shapeRendering:"geometricPrecision"},r.createElement("line",Object.assign({className:o.default("line-shower",{hover:this.props.hover,active:n}),x1:q,y1:X,x2:$,y2:J},E,{strokeDashoffset:E.strokeDashoffset&&!O?E.strokeDashoffset+.5:0,style:{transition:t.getTransition(),pointerEvents:"none"},markerStart:ne?`url('#${b}-start-marker')`:void 0,markerEnd:re?`url('#${b}-end-marker')`:void 0,shapeRendering:"geometricPrecision"})),!O&&y.renderMarker(te),r.createElement("line",{className:o.default("line-induction",{active:n}),style:{pointerEvents:"none",strokeWidth:U},x1:C.x+(S?.5:0),y1:C.y+(k?.5:0),x2:_.x+(S?.5:0),y2:_.y+(k?.5:0),shapeRendering:"geometricPrecision"})),!O&&this.renderTextFragment(v,p,G))}}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={PathSenseWidth:10}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makePathItem=t.onPropertyChange=t.selectPathEditorType=void 0;const r=n(0),o=n(7),i=n(16),a=n(8),s=n(14),l=n(47),c=n(20),u=n(23),d=n(134),h=n(153),p=n(94),f=n(6),m=n(293),g=n(42),v=n(32),y=n(280),b=n(12);n(1057),t.selectPathEditorType=function(e,t){return"dblClick"===t?"path":"value"},t.onPropertyChange=function(e,t,n){if(t===y.PolygonPropertyName){const{id:t,type:r,size:o,value:a}=e,s=n,l={data:new i.PolygonData(o,s.sideCount).toPolygonPoints(0).map(e=>({point:e,handleIn:{x:0,y:0},handleOut:{x:0,y:0}})),closed:!0};return{do:{[t]:[b.Ops.replace("./type",f.CPolygon),b.Ops.replace("./value",l)]},undo:{[t]:[b.Ops.replace("./type",r),b.Ops.replace("./value",a)]}}}return null},t.makePathItem=function(e){return d.makeShapeBase(e,f.CPath,!1,{properties:{stroke:{thickness:1,color:c.DefaultStrokeColor,cap:u.StrokeLineCap.Butt,join:u.StrokeLineJoin.Miter,position:u.StrokePosition.center,disabled:!1},fill:{disabled:!0,type:v.FillType.solid,color:{r:255,g:255,b:255,a:1}},line:{startArrow:!1,endArrow:!1}}})};class w extends d.default{constructor(e){var t;super(e),this.allowStrokeHover=!0,this.memoizeTransformPathDataToPath=o.memoize(l.transformPathDataToPath),this.handleMouseEnter=()=>{const{isPreview:e,valueEditing:t,isParentActivated:n}=this.props;!e&&!t&&n&&this.allowStrokeHover&&this.setState({hover:!0})},this.handleMouseLeave=()=>{this.state.hover&&this.setState({hover:!1})},this.state={textStyle:this.parserTextStyle(e)};const n=e.comp.libData;(null===(t=null==n?void 0:n.editor)||void 0===t?void 0:t.onValidateAllowEditor)&&(this.allowStrokeHover="path"===n.editor.onValidateAllowEditor(e.comp,"dblClick"));const{size:r,value:i,text:a,properties:s,opacity:c,version:u}=e.comp;this.size=r,this.value=i,this.text=a,this.properties=s,this.opacity=c,this.transition=e.comp.getTransition(),this.version=u}get pathValue(){const e=this.props.comp.value,t=this.props.globalScale||1;return this.getNewPathValue(e,t)}get pathData(){return this.memoizeTransformPathDataToPath(this.pathValue)}UNSAFE_componentWillReceiveProps(e){this.setState({textStyle:this.parserTextStyle(e)})}shouldComponentUpdate(e,t){if(e.comp.version!==this.version)return this.version=e.comp.version,!0;if(this.props.selected!==e.selected)return!0;if(this.props.isPreview!==e.isPreview)return!0;const n=e.comp.size;if(!a.isEqualDate(this.size,n))return this.size=a.depthClone(n),!0;const r=e.comp.value;if(!a.isEqualDate(this.value,r)||this.props.globalScale!==e.globalScale)return this.value=a.depthClone(r),!0;const o=e.comp.getTransition();if(!a.isEqualDate(this.transition,o))return this.transition=o,!0;const i=e.comp.text;if(!a.isEqualDate(this.text,i))return this.text=a.depthClone(i),!0;const s=e.comp.properties;if(!a.isEqualDate(this.properties,s))return this.properties=a.depthClone(s),!0;const l=e.comp.opacity;return a.isEqualDate(this.opacity,l)?!a.isEqualDate(this.state.textStyle,t.textStyle)||(!a.isEqualDate(this.state.hover,t.hover)||this.props.valueEditing!==e.valueEditing):(this.opacity=l,!0)}getNewPathValue(e,t){const n=l.scalePath(e,{x:t,y:t});return n.data.forEach((n,r)=>{const i=e.data[r];i&&(n.radius=o.isUndefined(i.radius)?void 0:i.radius*t)}),n}get newProperties(){const e=this.props.globalScale||1;return l.getNewPathPropertiesByScalingTheStrokeAndShadow(this.props.comp.properties,e)}get markOpt(){const{comp:e}=this.props,t=this.props.globalScale||1,{id:n}=e,r=this.newProperties,o=s.StyleHelper.initSVGStyleParser(r).getStroke();return{line:r.line,strokeInfo:o,compID:n,scale:t}}get strokeOpt(){var e,t,n;const r=this.pathValue,o=this.pathData;if(!r||!o)return;const{comp:a}=this.props,d=null!==(e=this.props.globalScale)&&void 0!==e?e:1,{size:h,id:p}=a,m=this.newProperties,g=s.StyleHelper.initSVGStyleParser(m).getStroke(),{stroke:v,strokeDasharray:y,strokeWidth:b,strokeLinecap:w,strokeLinejoin:C}=g,_=(null===(t=a.parent)||void 0===t?void 0:t.type)===f.CCompoundPath,{hover:x}=this.state;let S=v;_&&(S="#ccc");const k=x&&!this.props.selected,P=a.getTransition(),T=!l.isClosedPathWithArea(r);return{id:p,size:h,scale:d,stroke:{stroke:k?i.parseColorToString(c.DeepBlueColor):S,strokeWidth:_?1:b,strokeDasharray:_?void 0:y,strokeLinecap:w,strokeLinejoin:C},data:o,strokePosition:_||T?u.StrokePosition.center:(null===(n=m.stroke)||void 0===n?void 0:n.position)||u.StrokePosition.center,showMark:!r.closed,transition:P}}get fillOpt(){const{comp:e}=this.props,t=this.props.globalScale||1,{size:n,id:r,type:o}=e,i=this.newProperties,a=e.getTransition();return{id:r,type:o,size:n,fill:this.isChildOfPath?void 0:i.fill,transition:a,scale:t}}get senseWidth(){const e=this.newProperties,t=s.StyleHelper.initSVGStyleParser(e).getStroke(),{strokeWidth:n}=t,r=n||1;let o=r;return r*g.default.scale<10&&(o=10/g.default.scale),o}get isChildOfPath(){var e;return(null===(e=this.props.comp.parent)||void 0===e?void 0:e.type)===f.CCompoundPath}render(){const e=this.strokeOpt;if(!e)return;const t=this.markOpt,n=this.pathValue,i=this.pathData,{comp:a,isPreview:l,isParentActivated:c}=this.props,u=this.props.globalScale||1,{id:d,type:f,text:g,size:v}=a,y=this.newProperties,b=s.StyleHelper.initSVGStyleParser(y),w=b.getFill(`${f}-fill-${d}`),C=b.getShadow(),_=o.isUndefined(a.opacity)?1:a.opacity/100,x=this.senseWidth;let S=`scale(${1/u})`;const k=a.getTransition(),P=this.fillOpt,T={pointerEvents:"none",filter:C,overflow:"visible",top:0,left:0,position:"absolute",transform:S,transformOrigin:"left top",opacity:_,transition:k};l&&Object.assign(T,{width:v.width||1,height:v.height||1});const E={transition:k},O=l||!this.allowStrokeHover||!c,M=this.isChildOfPath,A=!M,D=!(!_||!y.fill||y.fill.disabled),I=!(!_||!y.stroke||y.stroke.disabled);return r.createElement("div",{className:"lib-comp-path-item",style:Object.assign({},v)},r.createElement("svg",{style:T,shapeRendering:"geometricPrecision"},D&&p.renderClipFill(P,r.createElement("path",{d:i,fill:M?"transparent":w,strokeWidth:0,style:E,shapeRendering:"geometricPrecision"})),I&&h.renderMaskStroke(e),!n.closed&&!M&&I&&m.renderMarker(t),r.createElement("path",{d:i,fill:"none",strokeWidth:x,stroke:"transparent",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:O?void 0:"sense-path"})),A&&this.renderTextFragment(g,y,_))}}t.default=w},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(47),a=n(14),s=n(8),l=n(6),c=n(23),u=n(134),d=n(94),h=n(153);class p extends u.default{constructor(e){super(e),this.getPathData=(e,t)=>{let n="";return e.forEach(e=>{n+=i.transformPathDataToPath(i.scalePath(e,{x:t,y:t}))+" "}),n},this.state={textStyle:this.parserTextStyle(e)};const{size:t,value:n,text:r,properties:o,opacity:a,version:s}=e.comp;this.size=t,this.value=n,this.text=r,this.properties=o,this.opacity=a,this.transition=e.comp.getTransition(),this.version=s}get pathData(){const e=this.props.comp.value,t=this.props.globalScale||1;return this.getPathData(e,t)}UNSAFE_componentWillReceiveProps(e){this.setState({textStyle:this.parserTextStyle(e)})}shouldComponentUpdate(e,t){if(this.version!==e.comp.version)return this.version=e.comp.version,!0;if(this.props.selected!==e.selected)return!0;if(this.props.isPreview!==e.isPreview)return!0;if(!s.isEqualDate(this.size,e.comp.size))return this.size=s.depthClone(e.comp.size),!0;if(!s.isEqualDate(this.transition,e.comp.getTransition()))return this.transition=e.comp.getTransition(),!0;const n=e.comp.value;if(!s.isEqualDate(this.value,n)||this.props.globalScale!==e.globalScale)return this.value=s.depthClone(n),!0;const r=e.comp.text;if(!s.isEqualDate(this.text,r))return this.text=r,!0;const o=e.comp.opacity;if(!s.isEqualDate(this.opacity,o))return this.opacity=o,!0;if(!s.isEqualDate(this.state.textStyle,t.textStyle))return!0;const i=e.comp.properties;return s.isEqualDate(this.properties,i)?!!this.props.isContainerActiveContainer!=!!e.isContainerActiveContainer:(this.properties=s.depthClone(i),!0)}get newProperties(){const e=this.props.globalScale||1;return i.getNewPathPropertiesByScalingTheStrokeAndShadow(this.props.comp.properties,e)}get strokeOpt(){var e,t;const{comp:n}=this.props,r=this.props.globalScale||1,o=n,{size:l,id:u}=n,d=this.newProperties,h=a.StyleHelper.initSVGStyleParser(d),{stroke:p,strokeDasharray:f,strokeWidth:m,strokeLinecap:g,strokeLinejoin:v}=h.getStroke(),y=s.depthClone(o.toJSON());y.value=(null===(e=o.dynamicInfo)||void 0===e?void 0:e.value)||y.value;const b=this.pathData||"",w=n.getTransition(),C=this.isChildOfPath,_=!!n.value.find(e=>!i.isClosedPathWithArea(e));return{id:u,size:l,scale:r,stroke:{stroke:C?"#ccc":p,strokeWidth:C?1:m,strokeDasharray:C?void 0:f,strokeLinecap:g,strokeLinejoin:v},data:b,strokePosition:C||_?c.StrokePosition.center:(null===(t=d.stroke)||void 0===t?void 0:t.position)||c.StrokePosition.center,transition:w}}get fillOpt(){var e;const{comp:t}=this.props,n=this.props.globalScale||1,r=t,{size:o,id:i,type:a}=t,l=this.newProperties,c=s.depthClone(r.toJSON());c.value=(null===(e=r.dynamicInfo)||void 0===e?void 0:e.value)||c.value;const u=t.getTransition();return{id:i,type:a,size:o,fill:this.isChildOfPath?void 0:l.fill,transition:u,scale:n}}get isChildOfPath(){var e;return(null===(e=this.props.comp.parent)||void 0===e?void 0:e.type)===l.CCompoundPath}render(){var e;const t=this.pathData||"",{comp:n,isPreview:i}=this.props,l=this.props.globalScale||1,c=n,{id:u,text:p,type:f,size:m}=n,g=this.newProperties,v=a.StyleHelper.initSVGStyleParser(g),y=v.getFill(`${f}-fill-${u}`),b=v.getShadow(),w=s.depthClone(c.toJSON());w.value=(null===(e=c.dynamicInfo)||void 0===e?void 0:e.value)||w.value;const C=n.getTransition(),_=this.isChildOfPath,x=o.isUndefined(n.opacity)?1:n.opacity/100,S=this.fillOpt,k=this.strokeOpt,P={transition:C},T={pointerEvents:"none",filter:b,overflow:"visible",top:0,left:0,position:"absolute",opacity:x,transition:C,transform:`scale(${1/l})`,transformOrigin:"left top"};return i&&Object.assign(T,{width:m.width||1,height:m.height||1}),r.createElement("div",{className:"lib-comp-compound-path",style:Object.assign({},m)},r.createElement("svg",{style:T},d.renderClipFill(S,r.createElement("path",{d:t,fill:_?"transparent":y,strokeWidth:0,style:P})),h.renderMaskStroke(k),r.createElement("path",{d:t,fill:"none",strokeWidth:8,stroke:"transparent"})),!_&&this.renderTextFragment(p,g,x))}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeTriangle=t.makePolygon=void 0;const r=n(0),o=n(7),i=n(16),a=n(23),s=n(14),l=n(6),c=n(94),u=n(153),d=n(134),h=n(6);n(1060),t.makePolygon=function(e){return d.makeShapeBase(e,h.CPolygon,!0,{properties:{polygon:{sideCount:3}}})},t.makeTriangle=function(e){const t=d.makeShapeBase(e,h.CPath,!0),n={data:new i.PolygonData(t.size,3).toPolygonPoints(0).map(e=>({point:e,handleIn:{x:0,y:0},handleOut:{x:0,y:0}})),closed:!0};return t.value=n,t};class p extends d.default{constructor(e){super(e),this.doBuilderStyle=e=>{const{properties:t,size:n}=e.comp,{polygon:r}=t,o=s.StyleHelper.initSVGStyleParser(t),a=o.getShadow(),l={fill:o.getFill(`${e.comp.type}-fill-${e.comp.id}`)},c=r?r.sideCount:3,u=new i.PolygonData(n,c).toPolygonPoints(0);return{style:l,filter:a,path:this.polygon2path(u,{x:0,y:0}),stroke:o.getStroke(),textStyle:this.parserTextStyle(e)}},this.state=this.doBuilderStyle(e),this.param=this.getParams(e)}getParams(e){const{comp:{size:t,properties:n,value:r,opacity:i,parent:a,text:s,version:c},isPreview:u,globalScale:d,valueEditing:h}=e,p=e.comp.getTransition(),f=(null==a?void 0:a.type)===l.CCompoundPath;return{size:o.cloneDeep(t),properties:o.cloneDeep(n),value:o.cloneDeep(r),opacity:i,isPreview:u,globalScale:d,transition:p,isChildOfPath:f,valueEditing:h,text:s,version:c}}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{o.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=o.cloneDeep(t[e]))}),n}UNSAFE_componentWillReceiveProps(e){this.setState(Object.assign({},this.doBuilderStyle(e)))}polygon2path(e,t={x:0,y:0}){let n="";return e.forEach((e,r)=>{n+=0===r?`M ${e.x+t.x} ${e.y+t.y} L `:`${e.x+t.x} ${e.y+t.y} `}),n+="Z",n}get isChildOfPath(){var e;return(null===(e=this.props.comp.parent)||void 0===e?void 0:e.type)===l.CCompoundPath}render(){var e;const{comp:t,isPreview:n}=this.props,i=this.props.globalScale||1,{properties:s,text:l,id:d,type:h,size:p}=t,{style:f,filter:m,path:g,stroke:v}=this.state,y=o.isUndefined(t.opacity)?1:t.opacity/100,b=this.isChildOfPath,w={id:d,type:h,size:p,fill:b?void 0:s.fill,transition:this.props.comp.getTransition(),scale:1},C={id:d,size:p,stroke:v,data:g,scale:i,strokePosition:b?a.StrokePosition.center:(null===(e=s.stroke)||void 0===e?void 0:e.position)||a.StrokePosition.inner,transition:this.props.comp.getTransition()};b&&(C.stroke.stroke="#ccc",C.stroke.strokeWidth=1,C.stroke.strokeDasharray=void 0);const _={filter:m,transition:t.getTransition(),opacity:y,pointerEvents:"none"};return n&&Object.assign(_,{width:p.width,height:p.height}),r.createElement("div",{className:"lib-comp-polygon",style:Object.assign({},p)},r.createElement("svg",{style:_,shapeRendering:"geometricPrecision"},c.renderClipFill(w,r.createElement("path",{d:g,fill:b?"transparent":f.fill,strokeWidth:0,style:{transition:t.getTransition()}})),u.renderMaskStroke(C)),!b&&this.renderTextFragment(l,s,y))}}t.default=p},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeInput=t.defaultInputSize=void 0;const r=n(0),o=n(2),i=n(7),a=n(16),s=n(14),l=n(32),c=n(23),u=n(48),d=n(20),h=n(33),p=n(6),f=n(1063),m=n(115),g=n(50),v=n(24),y=n(12),b=n(132),w=n(4);n(1064),t.defaultInputSize={phone:{width:150,height:48},web:{width:200,height:30}},t.makeInput=function(e){return h.makeCommonComponent(e,p.CInput,{size:{width:150,height:30},value:"",properties:{fill:{type:l.FillType.solid,color:d.DefaultWhiteFillColor,disabled:!1},stroke:{thickness:1,color:d.DefaultStrokeColor1,cap:c.StrokeLineCap.Round,join:c.StrokeLineJoin.Round,disabled:!1},shadow:g.getDefaultShadow(),radius:{topRight:0,topLeft:0,bottomLeft:0,bottomRight:0,isPercent:!1,disabled:!1},border:{disabled:!0,top:!0,left:!0,right:!0,bottom:!0},textStyle:{fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},fontSize:14,color:d.DefaultTextColor,textAlign:u.TextAlign.left},inputModel:{value:b.InputModel.normal},placeholder:{prop:"string",name:w.default("property.propertyNames.placeholder"),value:""},placeHolderStyle:{prop:"color",name:w.default("property.propertyNames.placeholderColor"),value:d.GrayColor},padding:{left:8,top:0,right:6,bottom:0,disabled:!1}},states:{[v.PredefinedStates.focus]:{enabled:!0,properties:{stroke:{thickness:2,color:d.FocusStrokeColor}}},[v.PredefinedStates.disabled]:{enabled:!0,properties:{stroke:{color:d.DisabledStrokeColor},textStyle:{color:d.DisabledTextColor}}},[v.PredefinedStates.hover]:{enabled:!0,properties:{stroke:{color:d.HoverStrokeColor}}}}})};class C extends r.Component{constructor(e){super(e),this.validateValue=e=>{const{value:t}=this.state,n=/^-?\d*\.?\d*$/;return this.props.comp.properties.inputModel.value!==b.InputModel.numeric||n.test(e)?e:n.test(t)?t:""},this.handleInputChange=e=>{const{onInnerAction:t,comp:n,isPreview:r}=this.props;if(r){const r=this.validateValue(e.target.value);this.setState({value:r},()=>{t&&t([{comp:n,actions:[y.Ops.replace("/value",this.state.value)]}])})}},this.doParsePropertiesToStyle=e=>{const{size:t,properties:n,opacity:r}=e.comp,o=s.StyleHelper.initCSSStyleParser(n),a=n.stroke?n.stroke.thickness||1:0;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({display:"flex"},o.getRadiusStyle(t)),o.getShadowStyle()),o.getTextStyle()),{lineHeight:e.isPreview?void 0:t.height-2*a+"px",opacity:i.isUndefined(r)?1:r/100}),t)},this.doParsePlaceHolderStyle=e=>{const{properties:{placeHolderStyle:t},size:{height:n}}=e.comp,r=t&&t.value?t.value:d.GrayColor;return{color:a.parseColorToString(r),lineHeight:n+"px"}},this.doSubmit=e=>{const{onValueEdited:t,comp:n}=this.props,r=document.getSelection();r&&r.empty(),t&&t(n,e)},this.state={style:this.doParsePropertiesToStyle(e),value:e.comp.value,placeHolderStyle:this.doParsePlaceHolderStyle(e)},this.param=this.getParams(e)}getParams(e){const{comp:{size:t,properties:n,value:r,opacity:o,version:a},isPreview:s,globalScale:l,valueEditing:c}=e,u=e.comp.getTransition();return{size:i.cloneDeep(t),properties:i.cloneDeep(n),value:i.cloneDeep(r),opacity:o,isPreview:s,globalScale:l,transition:u,valueEditing:c,version:a}}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{i.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=i.cloneDeep(t[e]))}),n}UNSAFE_componentWillReceiveProps(e){this.setState({style:this.doParsePropertiesToStyle(e),value:e.comp.value,placeHolderStyle:this.doParsePlaceHolderStyle(e)})}getInputPadding(){var e;const{comp:t}=this.props,{properties:n}=t,{padding:r,textStyle:o,textFormat:i}=n;if(!r||r.disabled)return"0px";const a=(null===(e=i||o)||void 0===e?void 0:e.fontSize)||14,s=Math.min(1,a/12),{left:l,right:c,top:u,bottom:d}=r;return`${(u||0)/s}px \n ${(c||0)/s}px \n ${(d||0)/s}px \n ${(l||0)/s}px`}renderInput(){var e;const{isPreview:t,comp:n,valueEditing:o}=this.props,{value:i,placeHolderStyle:a,style:s}=this.state,{size:l,properties:c}=n,{placeholder:u,inputModel:d,stroke:h,textFormat:p,textStyle:m}=c,g=(null===(e=p||m)||void 0===e?void 0:e.fontSize)||14,v=Math.min(1,g/12),y=h?h.thickness||1:0,w=l.width/v-2*y,C=l.height/v-2*y,_=this.getInputPadding(),x=`scale(${v})`,S={transform:x,fontStyle:s.fontStyle,textDecoration:s.textDecoration,textDecorationLine:s.textDecorationLine,transformOrigin:"top left",letterSpacing:"inherit",minWidth:w,maxWidth:w,margin:y,height:C,padding:_};return!t&&o?r.createElement(f.default,{value:i,className:"",inputModel:d.value,width:w,style:Object.assign({},S),onChange:this.doSubmit}):r.createElement(r.Fragment,null,r.createElement("input",{readOnly:!t,style:Object.assign(Object.assign({},S),{transition:n.getTransition(),userSelect:t?n.disabled?"none":"all":"none",pointerEvents:t?n.disabled?"none":"all":"none"}),value:i,type:d.value===b.InputModel.password?"password":"text",onChange:this.handleInputChange}),!i&&r.createElement("p",{className:"input-placeholder",style:{color:a.color,transform:x,width:w,height:l.height,padding:_}},r.createElement("span",{className:"text"},u?u.value:"")))}render(){const{isPreview:e,valueEditing:t,comp:{size:n,properties:i}}=this.props;return r.createElement("div",{className:o.default("lib-comp-input",{preview:e,editing:t}),style:this.state.style},r.createElement(m.default,{size:n,properties:i,transition:this.props.comp.getTransition()}),r.createElement("div",{className:o.default("atom-comp-text-input-context",{editing:t})},this.renderInput()))}}t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(132),i=n(76),a=n(8),s=n(36);class l extends r.Component{constructor(e){super(e),this.dom=r.createRef(),this.handleWindowMouseDown=e=>{if(this.dom.current.contains(e.target))return;let t=document.querySelector(".right-panel");t&&t.contains(e.target)||(t=document.querySelector(".popup-with-body"),t&&t.contains(e.target)||this.doSubmit())},this.handleMouseUp=e=>{e.stopPropagation()},this.handleKeyDown=e=>{e.stopPropagation(),i.stopBubbleWhenSortCut(e),e.keyCode!==s.default.VK_ENTER&&e.keyCode!==s.default.VK_ESCAPE||this.doSubmit()},this.handleInputChange=e=>{let t=e.target.value;const{inputModel:n}=this.props;n===o.InputModel.numeric&&(t=a.validateNumberText(t,this.state.value)),this.setState({value:t})},this.doSubmit=()=>{const{value:e}=this.state,{onChange:t}=this.props;t(e)},this.state={value:e.value}}componentDidMount(){window.addEventListener("mousedown",this.handleWindowMouseDown,!0),this.dom.current.focus(),this.dom.current.select()}componentWillUnmount(){window.removeEventListener("mousedown",this.handleWindowMouseDown,!0)}render(){const{value:e}=this.state,{style:t,className:n,width:o}=this.props;return r.createElement("input",{ref:this.dom,style:t,className:n,value:e,maxLength:100,width:o,onKeyDown:this.handleKeyDown,onChange:this.handleInputChange,onBlur:this.handleInputChange,onMouseUp:this.handleMouseUp,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()}})}}t.default=l},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeTextArea=void 0;const r=n(0),o=n(2),i=n(7),a=n(16),s=n(32),l=n(48),c=n(23),u=n(4),d=n(24),h=n(20),p=n(14),f=n(50),m=n(6),g=n(33),v=n(1066),y=n(115);n(1067),t.makeTextArea=function(e){return g.makeCommonComponent(e,m.CTextArea,{size:{width:300,height:120},value:"",properties:{textStyle:{fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},fontSize:14,color:h.DefaultTextColor,textAlign:l.TextAlign.left},multiText:{indent:!1,wrap:!0},fill:{type:s.FillType.solid,color:h.DefaultWhiteFillColor,disabled:!1},stroke:{thickness:1,color:h.DefaultStrokeColor1,cap:c.StrokeLineCap.Round,join:c.StrokeLineJoin.Round,disabled:!1},shadow:f.getDefaultShadow(),placeholder:{prop:"string",name:u.default("property.propertyNames.placeholder"),value:""},placeholderStyle:{prop:"color",name:u.default("property.propertyNames.placeholderColor"),value:h.GrayColor},padding:{disabled:!1,top:2,left:8,right:4,bottom:2}},states:{[d.PredefinedStates.disabled]:{enabled:!0,properties:{stroke:{color:h.DisabledStrokeColor},textStyle:{color:h.DisabledTextColor}}},[d.PredefinedStates.focus]:{enabled:!0,properties:{stroke:{thickness:2,color:h.FocusStrokeColor}}},[d.PredefinedStates.hover]:{enabled:!0,properties:{stroke:{color:h.HoverStrokeColor}}}}})};class b extends r.Component{constructor(e){super(e),this.getParams=e=>{const{comp:{size:t,properties:n,value:r,opacity:o,version:a},isPreview:s,globalScale:l,valueEditing:c}=e,u=e.comp.getTransition();return{size:i.cloneDeep(t),properties:i.cloneDeep(n),value:i.cloneDeep(r),opacity:o,isPreview:s,globalScale:l,transition:u,valueEditing:c,version:a}},this.doParsePlaceHolderStyle=e=>{const{properties:{placeholderStyle:t},padding:n}=e.comp,{left:r,top:o,right:i,bottom:s}=n,l=`${o}px ${i}px ${s}px ${r}px`;if(t){const e=t.value?t.value:h.GrayColor;return{color:a.parseColorToString(e),margin:l}}return{margin:l,color:a.parseColorToString(h.GrayColor)}},this.parseStyle=e=>{const{comp:t,valueEditing:n}=e,r=p.StyleHelper.initCSSStyleParser(t.properties),o=Object.assign(Object.assign({opacity:i.isUndefined(t.opacity)?1:t.opacity/100,transition:t.getTransition(),display:"flex"},r.getTextStyle()),r.getFillStyle(t.size));return n?o:Object.assign(Object.assign({},o),r.getShadowStyle())},this.doSubmit=e=>{const{onValueEdited:t,comp:n}=this.props,r=document.getSelection();r&&r.empty(),t&&t(n,e)},this.handleInput=e=>{const{isPreview:t}=this.props;if(t){const t=e.target.value;this.setState({value:t})}},this.handleFocus=e=>{this.props.isPreview&&!this.props.valueEditing&&("focus"===e.type?this.setState({focus:!0}):this.setState({focus:!1}))},this.lastCompValue=e.comp.value,this.state={style:this.parseStyle(e),value:this.lastCompValue,placeholderStyle:this.doParsePlaceHolderStyle(e)},this.param=this.getParams(e)}shouldComponentUpdate(e,t){const n=this.getParams(e);let r=!1;return Object.keys(this.param).forEach(e=>{i.isEqual(n[e],this.param[e])||(r=!0,this.param[e]=i.cloneDeep(n[e]))}),i.isEqual(this.state.value,t.value)||(r=!0),r}UNSAFE_componentWillReceiveProps(e){const{comp:t,isPreview:n}=e;let r=n?this.state.value:t.value;n&&t.value!==this.lastCompValue&&(this.lastCompValue=t.value,r=this.lastCompValue);const o=this.parseStyle(e);this.setState({style:o,value:r,placeholderStyle:Object.assign(Object.assign({},this.doParsePlaceHolderStyle(e)),{fontFamily:o.fontFamily,fontSize:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration,lineHeight:o.lineHeight,textDecorationLine:o.textDecorationLine})})}render(){var e,t,n;const{isPreview:i,comp:a,valueEditing:s}=this.props,{style:l,placeholderStyle:c}=this.state,{size:u,properties:d,opacity:h}=a,{multiText:p,placeholder:f,textFormat:m,textStyle:g,padding:b}=d,w=!p||p.wrap,C=(null===(e=m||g)||void 0===e?void 0:e.fontSize)||14,_=Math.min(1,C/12);let x=0,S=0,k=0,P=0;b&&!b.disabled&&(x=b.left||0,S=b.top||0,P=b.bottom||0,k=b.right||0);const T={fontStyle:l.fontStyle,lineHeight:l.lineHeight||a.lineHeight,textDecoration:l.textDecoration,textDecorationLine:l.textDecorationLine,transform:`scale(${_})`,letterSpacing:"inherit",position:"absolute",top:0,left:0,paddingLeft:x,paddingRight:k,paddingBottom:P,paddingTop:S},E=0===h;return r.createElement("div",{className:"lib-comp-text-area",style:l},!(null===(t=d.fill)||void 0===t?void 0:t.disabled)&&!E&&r.createElement(y.default,{size:u,properties:{fill:d.fill},transition:a.getTransition()}),r.createElement("div",{className:o.default("atom-comp-text-area-content",{editing:s,preview:i})},!i&&s&&r.createElement(r.Fragment,null,r.createElement("textarea",{style:Object.assign(Object.assign({},T),{background:"transparent",width:u.width/_,height:u.height/_}),onWheel:e=>{e.stopPropagation(),e.preventDefault()},className:"text-area"}),r.createElement(v.default,{className:"text-area editing",wrap:w,style:Object.assign(Object.assign(Object.assign({},T),l),{background:"transparent",width:(u.width-14)/_}),value:this.state.value,onChange:this.doSubmit})),(i||!s)&&r.createElement("textarea",{style:Object.assign(Object.assign({},T),{background:"transparent",width:u.width/_,height:u.height/_,paddingRight:Math.max(0,k-2)}),value:this.state.value,onChange:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleFocus,className:o.default("text-area",{preview:i&&!a.disabled})}),!s&&!this.state.value&&r.createElement("label",{style:c,className:"placeholder-text"},null==f?void 0:f.value)),!(null===(n=d.stroke)||void 0===n?void 0:n.disabled)&&!E&&r.createElement(y.default,{size:u,properties:{stroke:d.stroke,radius:d.radius},transition:a.getTransition()}))}}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(76),i=n(36);class a extends r.Component{constructor(e){super(e),this.dom=r.createRef(),this.handleWindowMouseDown=e=>{const t=this.dom.current,{target:n}=e;if(t.contains(n))return;let r=document.querySelector(".right-panel");r&&r.contains(e.target)||(r=document.querySelector(".popup-with-body"),r&&r.contains(e.target)||this.doSubmit())},this.handleMouseUp=e=>{e.stopPropagation()},this.handleKeyDown=e=>{e.stopPropagation(),o.stopBubbleWhenSortCut(e),e.keyCode===i.default.VK_ESCAPE&&this.doSubmit()},this.handleInputChange=e=>{const t=e.target;this.autoTextAreaHeight(t);const n=e.target.value;this.props.onInput&&this.props.onInput(e),this.setState({value:n})},this.autoTextAreaHeight=e=>{let t=e.scrollHeight;t=Math.max(t,e.parentElement.offsetHeight),e.style.height=e.scrollTop+t+"px"},this.doSubmit=()=>{const{value:e}=this.state,{onChange:t}=this.props;t(e)},this.handleWheel=e=>{e.stopPropagation()},this.state={value:e.value}}componentDidMount(){window.addEventListener("mousedown",this.handleWindowMouseDown,!0),this.dom.current&&this.autoTextAreaHeight(this.dom.current),this.dom.current.focus(),this.dom.current.select()}UNSAFE_componentWillReceiveProps(e){this.props.style!==e.style&&this.dom.current&&this.autoTextAreaHeight(this.dom.current)}componentWillUnmount(){window.removeEventListener("mousedown",this.handleWindowMouseDown,!0)}render(){const{value:e}=this.state,{style:t,className:n}=this.props;return r.createElement("textarea",{ref:this.dom,style:t,maxLength:500,className:n,defaultValue:e,onKeyDown:this.handleKeyDown,onInput:this.handleInputChange,onWheel:this.handleWheel,onMouseUp:this.handleMouseUp,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()}})}}t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(18),a=n(14),s=n(1069),l=n(55);n(1071);class c extends r.Component{constructor(e){super(e),this.doSubmit=e=>{const{onValueEdited:t,comp:n}=this.props,r=document.getSelection();r&&r.empty(),t&&t(n,e)},this.param=this.getParams(e)}getParams(e){const{comp:{size:t,properties:n,value:r,opacity:i,autoSize:a,version:s}}=e,l=e.comp.getTransition();return{size:o.cloneDeep(t),properties:o.cloneDeep(n),value:o.cloneDeep(r),opacity:i,transition:l,autoSize:a,version:s}}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{o.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=o.cloneDeep(t[e]))}),n}renderEditor(e){const{comp:t}=this.props,{value:n}=t;return r.createElement(s.default,{value:n,className:"",style:Object.assign(Object.assign({},e),{position:"absolute",top:0,left:0,right:0,bottom:0}),onChange:this.doSubmit})}render(){var e,t;const{comp:n,valueEditing:s}=this.props,{properties:c,size:u,value:d,opacity:h}=n,p=i.transBlankChart(d);if(!p)return null;const{textFormat:f,textStyle:m}=c,g=a.StyleHelper.initCSSStyleParser(c),v=Object.assign(Object.assign(Object.assign({},g.getTextStyle()),g.getTextShadow()),{lineHeight:u.height+"px",opacity:o.isUndefined(h)?1:h/100}),y=(null===(e=f||m)||void 0===e?void 0:e.fontSize)||14,b=(null===(t=f||m)||void 0===t?void 0:t.letterSpace)||0;if(v.fontSize=y/l.FontBoxScale,v.lineHeight=u.height/l.FontBoxScale+"px",v.letterSpacing=b/l.FontBoxScale,v.transform="scale("+l.FontBoxScale+")",v.transformOrigin="0 0",v.width=u.width/l.FontBoxScale,v.height=u.height/l.FontBoxScale,s)return this.renderEditor(v);const w=n.toJSON().autoSize;return(w||o.isUndefined(w))&&(v.width="fit-content",v.minWidth=100/l.FontBoxScale+"%"),r.createElement("div",{className:"lib-comp-pure-text",style:v},r.createElement("label",null,p))}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(18),i=n(76),a=n(1070),s=n(36);class l extends a.default{constructor(e){super(e),this.handleInput=e=>{const t=e.target,n=t.value,{width:r,height:i}=o.measureTextSize(this.props.style,n,{wrap:!1,isMultiText:!1});this.setState({value:t.value,width:r,height:i})},this.handleKeyDown=e=>{e.stopPropagation(),i.stopBubbleWhenSortCut(e),[s.default.VK_ESCAPE,s.default.VK_ENTER,s.default.VK_TAB].includes(e.keyCode)&&this.doSubmit()},this.handleMouseUp=e=>{e.stopPropagation()},this.state=Object.assign({value:e.value},o.measureTextSize(e.style,e.value,{isMultiText:!1,wrap:!1}))}afterCreate(){if(this.dom.current){const e=this.dom.current;e.focus(),e.select()}}get value(){return this.dom.current?this.dom.current.value:""}render(){const{style:e}=this.props,{value:t,width:n,height:o}=this.state;return r.createElement("input",{style:Object.assign(Object.assign({},e),{width:n,height:o,outline:"none",border:"none",padding:0,margin:0,background:"transparent"}),width:n,height:o,ref:this.dom,value:t,onChange:this.handleInput,onKeyDown:this.handleKeyDown,onMouseUp:this.handleMouseUp,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()}})}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);class o extends r.Component{constructor(){super(...arguments),this.dom=r.createRef(),this.handleWindowMouseDown=e=>{if(this.dom.current.contains(e.target))return;let t=document.querySelector(".right-panel");t&&t.contains(e.target)||(t=document.querySelector(".popup-with-body"),t&&t.contains(e.target)||this.doSubmit())}}componentDidMount(){window.addEventListener("mousedown",this.handleWindowMouseDown),this.afterCreate()}componentDidUpdate(){}componentWillUnmount(){window.removeEventListener("mousedown",this.handleWindowMouseDown)}get value(){return""}doSubmit(){const{onChange:e}=this.props,{value:t}=this.state;e&&e(t)}}t.default=o},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeStackPanel=void 0;const r=n(0),o=n(2),i=n(7),a=n(30),s=n(33),l=n(107),c=n(6);function u(){return l.makeCanvas(a.getNewID(),{size:{width:100,height:30},properties:{container:{scroll:!1,showScroll:!1,hidden:!0},layout:{direction:"horizontal"}}})}n(1074),t.makeStackPanel=function(e,t){return t?s.makeCommonComponent(e,c.CStackPanel,t):s.makeCommonComponent(e,c.CStackPanel,{size:{width:100,height:300},properties:{layout:{direction:"vertical",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0}},components:[u(),u(),u(),u()]})};class d extends r.Component{render(){const{comp:e}=this.props,{properties:t,opacity:n,size:a}=e,{layout:s}=t,{direction:l,verticalAlign:c,horizontalAlign:u}=s||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center"},d=i.isUndefined(n)?1:n/100;let h=Object.assign({opacity:d},a);return r.createElement("div",{style:h,className:o.default(`lib-comp-stack-panel ${c||""} ${u||""}`,{vertical:"vertical"===l,horizontal:"horizontal"===l})},this.props.children)}}t.default=d},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeListLayoutPanel=void 0;const r=n(0),o=n(2),i=n(7),a=n(8),s=n(22),l=n(14),c=n(33),u=n(6),d=n(115);n(1076),t.makeListLayoutPanel=function(e,t){return t?c.makeCommonComponent(e,u.CListLayoutPanel,t):c.makeCommonComponent(e,u.CListLayoutPanel,{size:{width:100,height:300},properties:{layout:{direction:"vertical",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0},container:{scroll:!0,showScroll:!0},cell:{rowHeight:30,ratioWidth:!0}},components:[]})};class h extends r.Component{renderChild(){const{comp:e}=this.props,{layout:t,padding:n}=e.properties,{left:i,top:a,right:s,bottom:l}=n||{left:0,top:0,right:0,bottom:0},{width:c,height:u}=e.size,{direction:d,verticalAlign:h,horizontalAlign:p}=t||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center"};return r.createElement("div",{className:o.default("lib-comp-list-panel-content",d,h,p),style:{width:c-(i||0)-(s||0),height:u-(a||0)-(l||0)}},this.props.children,this.renderSeparator())}renderPreview(){const{comp:e}=this.props,{properties:t}=e,{layout:n,container:o}=t,{direction:i}=n||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center"};let a=!1,l=!0;o&&(a=!!o.scroll,l=!o.showScroll);const{left:c,top:u,right:d,bottom:h}=e.padding,p={left:c,top:u,right:d,bottom:h,position:"absolute",boxSizing:"border-box",overflow:"hidden"};return r.createElement("div",{style:p},!a&&this.renderChild(),a&&r.createElement(s.ScrollBars,{autoHide:!0,thumbClassName:"lib-comp-list-scroll-thumb",hiddenVerticalScrollBar:l||"vertical"!==i,hiddenHorizontalScrollBar:l||"horizontal"!==i},this.renderChild()))}renderEditing(){const{properties:e}=this.props.comp,{isContainerActiveContainer:t}=this.props,{padding:n,layout:o}=e,i={left:0,top:0,right:0,bottom:0,position:"absolute",overflow:t?"visible":"hidden"};return t||!n||n.disabled||("vertical"===(null==o?void 0:o.direction)?i.bottom=n.bottom||0:i.right=n.right||0),r.createElement("div",{style:i,className:"lib-comp-list-panel-content"},this.props.children,this.renderSeparator())}renderSeparator(){var e;const{comp:t,isPreview:n}=this.props,{separator:o,layout:i,padding:s,separatorRatio:c}=t.properties,{components:u}=t,{width:d,height:h}=t.size;if(o&&!o.disabled&&!o.prop){const t="vertical"===((null==i?void 0:i.direction)||"vertical"),{left:p,top:f,right:m,bottom:g}=s||{left:0,top:0,right:0,bottom:0},v=n?0:p||0,y=n?0:f||0,b=n?0:m||0,w=n?0:g||0,{strokeWidth:C,strokeLinejoin:_,strokeDasharray:x,strokeLinecap:S,stroke:k}=l.StyleHelper.parseSVGStroke(o),P=null!==(e=null==c?void 0:c.value.value)&&void 0!==e?e:100;let T=[];const E=u.length,O=d-b-v,M=h-w-y,A=a.round((t?O:M)*P/100),D=((t?O:M)-A)/2+(t?v:y);for(let e=0;e<E-1;e++){const n=u[e],{position:{x:r,y:o},size:{width:i,height:a}}=n,s=o+a-(C||0)/2%1,l=r+i-(C||0)/2%1,c=t?D:l,d=t?s:D,h=t?D+A:l,p=t?s:D+A;T.push(`M${c} ${d}, L${h} ${p}`)}const I=T.join(" ");return r.createElement("svg",{className:"lib-comp-list-separator-content",style:{zIndex:u.length,overflow:"visible",width:"100%",height:"100%"}},r.createElement("path",{key:I,d:I,stroke:k,strokeWidth:C,strokeLinecap:S,strokeLinejoin:_,strokeDasharray:x}))}return null}render(){var e,t;const{comp:n,isPreview:a,isContainerActiveContainer:s}=this.props,{properties:c,size:u,opacity:h}=n,{layout:p,stroke:f,fill:m,radius:g}=c,{direction:v,verticalAlign:y,horizontalAlign:b}=p||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center"},w=n.getTransition(),C=Object.assign({width:u.width,height:u.height,overflow:s?"visible":"hidden",pointerEvents:!a||n.hidden||n.disabled?"none":"all",opacity:i.isUndefined(n.opacity)?1:n.opacity/100,transition:w},l.StyleHelper.initCSSStyleParser(c).getRadiusStyle(u)),_=0===h;return r.createElement("div",{style:C,className:o.default("lib-comp-list-layout-panel",y,b,{vertical:"vertical"===v,horizontal:"horizontal"===v})},!(null===(e=c.fill)||void 0===e?void 0:e.disabled)&&!_&&r.createElement(d.default,{transition:w,size:u,properties:{fill:m,radius:g}}),!a&&this.renderEditing(),a&&this.renderPreview(),!(null===(t=c.stroke)||void 0===t?void 0:t.disabled)&&!_&&r.createElement(d.default,{size:u,transition:w,properties:{stroke:f,radius:g},zIndex:n.components.length}))}}t.default=h},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeWrapPanel=void 0;const r=n(0),o=n(2),i=n(7),a=n(30),s=n(107),l=n(33),c=n(6);t.makeWrapPanel=function(e){const t=[];for(;t.length<5;)t.push(s.makeCanvas(a.getNewID(),{size:{width:100,height:100},properties:{container:{scroll:!1,showScroll:!1,hidden:!0},layout:{direction:"horizontal"}}}));return l.makeCommonComponent(e,c.CWrapPanel,{size:{width:300,height:100},properties:{layout:{direction:"horizontal",verticalAlign:"top",horizontalAlign:"left"}},components:t})};class u extends r.Component{render(){const{properties:e,size:t}=this.props.comp,{layout:n}=e,{direction:a,verticalAlign:s,horizontalAlign:l}=n||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center"},c=Object.assign({},t);return c.opacity=i.isUndefined(this.props.comp.opacity)?1:this.props.comp.opacity/100,c.transition=this.props.comp.getTransition(),r.createElement("div",{className:o.default(`lib-comp-wrap-panel ${s} ${l}`,{vertical:"vertical"===a,horizontal:"horizontal"===a}),style:c},this.props.children)}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeGridPanel=void 0;const r=n(0),o=n(2),i=n(7),a=n(30),s=n(107),l=n(33),c=n(6);t.makeGridPanel=function(e){const t=[];for(;t.length<5;)t.push(s.makeCanvas(a.getNewID(),{size:{width:100,height:100},properties:{container:{scroll:!1,showScroll:!1,hidden:!0},layout:{direction:"horizontal"}}}));return l.makeCommonComponent(e,c.CWrapPanel,{size:{width:300,height:100},properties:{layout:{direction:"horizontal",verticalAlign:"top",horizontalAlign:"left"}},components:t})};class u extends r.Component{render(){const{properties:e,opacity:t,size:n}=this.props.comp,{layout:a}=e,{direction:s,verticalAlign:l,horizontalAlign:c}=a||{direction:"vertical",verticalAlign:"top",horizontalAlign:"center"},u=i.isUndefined(t)?1:t/100;let d=Object.assign({opacity:u},n);return r.createElement("div",{className:o.default(`lib-comp-grid-panel ${l} ${c}`,{vertical:"vertical"===s,horizontal:"horizontal"===s}),style:d},this.props.children)}}t.default=u},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MinSizeOfNormalComp=t.MinSizeOfLine=t.MinSizeOfPath=void 0,t.MinSizeOfPath=1,t.MinSizeOfLine=0,t.MinSizeOfNormalComp=1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransformOriginType=void 0,function(e){e.NW="nw",e.NE="ne",e.SE="se",e.SW="sw",e.N="n",e.E="e",e.S="s",e.W="w",e.MIDDLE="middle"}(t.TransformOriginType||(t.TransformOriginType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefalutTableValue=void 0;const r=n(149),o=n(130),i=(e,t="")=>({text:t});t.DefalutTableValue={showHeader:!1,headerHeight:30,columns:[{type:r.CellTypes.Text,style:o.DefalutCellStyle,width:80,data:{text:""},dataSource:[],mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,style:o.DefalutCellStyle,width:80,data:{text:""},dataSource:[],mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,style:o.DefalutCellStyle,width:80,data:{text:""},dataSource:[],mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,style:o.DefalutCellStyle,width:80,data:{text:""},dataSource:[],mergeAcross:0,mergeDown:0}],rows:[{height:30,selected:!1},{height:30,selected:!1},{height:30,selected:!1},{height:30,selected:!1}],cells:[[{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergedBy:void 0,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0}],[{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0}],[{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0}],[{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0},{type:r.CellTypes.Text,data:i(r.CellTypes.Text,""),dataSource:[],style:o.DefalutCellStyle,mergeAcross:0,mergeDown:0}]]}},function(e,t,n){"use strict";
|
|
|
/**
|
|
|
* @license
|
|
|
* Copyright Daniel Imms <http://www.growingwiththeweb.com>
|
|
|
* Released under MIT license. See LICENSE in the project root for details.
|
|
|
*/Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.key=e,this.value=t,this.left=null,this.right=null,this.height=null}return e.prototype.rotateRight=function(){var e=this.left;return this.left=e.right,e.right=this,this.height=Math.max(this.leftHeight,this.rightHeight)+1,e.height=Math.max(e.leftHeight,this.height)+1,e},e.prototype.rotateLeft=function(){var e=this.right;return this.right=e.left,e.left=this,this.height=Math.max(this.leftHeight,this.rightHeight)+1,e.height=Math.max(e.rightHeight,this.height)+1,e},Object.defineProperty(e.prototype,"leftHeight",{get:function(){return null===this.left?-1:this.left.height||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightHeight",{get:function(){return null===this.right?-1:this.right.height||0},enumerable:!0,configurable:!0}),e}();t.Node=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(18),o=n(4),i=n(53),a=n(24),s=n(56),l=n(10),c=n(6),u=o.default("general.ok"),{width:d,height:h}=r.measureTextSize({fontSize:14,fontFamily:"Microsoft YaHei"},u);const p={type:"button",lib:"common",isTextComp:!0,name:o.default("resource.components.button"),shortCut:"B",thumb:{spriteIconClass:l.SpriteThumb.Button.className,dragPosition:l.SpriteThumb.Button.position},predefinedStates:[a.PredefinedStates.hover,a.PredefinedStates.pressed,a.PredefinedStates.checked,a.PredefinedStates.focus,a.PredefinedStates.disabled],value:{type:s.default.PureText},constraint:{text:{resize:c.SizeMode.none,move:c.MoveMode.neither,responsiveLayout:{hidden:!0}}},preview:{},editor:{onResize:()=>null},initialization:function(e,t,n,r){const o=r||(i.isMobileAppType(e)?{width:120,height:48}:{width:70,height:30}),{width:a,height:s}=o,[l]=t.components;t.size=Object.assign(Object.assign({},t.size),{width:a,height:s});const{width:c,height:u}=l.size;l.position={x:Math.round((a-c)/2),y:Math.round((s-u)/2)}},template:`\n {\n type: @@C.CanvasPanel,\n size: { width: 120, height: 48 },\n layout:{\n vertical: @@VerticalAlign.Middle,\n horizontal: @@HorizontalAlign.Center,\n auto: true,\n responsive: true,\n fixedWidth: false,\n fixedHeight: false,\n },\n disabled: false,\n properties: {\n textStyle: {\n textAlign: @@TextAlign.center,\n color: @@SystemColors.DefaultTextColor,\n fontSize: 14,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n disabled: false,\n },\n fill: {\n type: @@FillType.solid,\n color: @@SystemColors.DefaultWhiteFillColor,\n disabled: false,\n },\n stroke: {\n thickness: 1,\n color: @@SystemColors.DefaultStrokeColor1,\n disabled: false,\n },\n radius: {\n topLeft: 4,\n topRight: 4,\n bottomRight: 4,\n bottomLeft: 4,\n isPercent: false,\n disabled: false,\n },\n shadow: {\n disabled: true,\n x: 0,y:3,blur: 6,color: @@SystemColors.ShadowColor,\n },\n },\n states: {\n @@PredefinedStates.hover: {\n enabled: true,\n properties: {\n stroke: {\n color: @@SystemColors.HoverStrokeColor,\n },\n },\n },\n @@PredefinedStates.pressed: {\n enabled: true,\n properties: {\n stroke: {\n color: @@SystemColors.PressedStrokeColor,\n },\n textStyle: {\n color: @@SystemColors.PressedStrokeColor,\n },\n },\n },\n @@PredefinedStates.disabled: {\n enabled: true,\n properties: {\n fill: {\n type: @@FillType.solid,\n color: @@SystemColors.DisabledWhiteFillColor,\n },\n stroke:{\n color: @@SystemColors.DisabledStrokeColor,\n },\n textStyle: {\n color: @@SystemColors.DisabledTextColor,\n textAlign: @@TextAlign.center,\n },\n },\n },\n },\n value: '${u}',\n components: [\n {\n type: @@C.PureText,\n alias: 'text',\n autoSize: true,\n size:{width: ${d},height: ${h}},\n position:{x: ${(120-d)/2}, y: ${(48-h)/2}},\n layout:{\n vertical: @@VerticalAlign.Middle,\n horizontal: @@HorizontalAlign.Center,\n auto: false,\n responsive: true,\n fixedWidth: true,\n fixedHeight: true,\n },\n properties: {\n textStyle: { ref: '@properties.textStyle' },\n },\n value: '@value',\n interactions: {},\n },\n ],\n sealed: true,\n }\n `};t.default=p},function(e,t,n){e.exports=n.p+"assets/a3b725176bfbaceca3413a9843db2ce4.png"},function(e,t,n){e.exports=n.p+"assets/ae345deda936c8daebe8fe7abed49800.png"},function(e,t,n){e.exports=n.p+"assets/c12251718ca32ad3038cfb02a9c74441.png"},function(e,t,n){e.exports=n.p+"assets/1010fc0844d3f5b3ba1dd2b6da7bc0a6.png"},function(e,t,n){e.exports=n.p+"assets/92ac998d9007470b2d8894911b0aa9bc.png"},function(e,t,n){e.exports=n.p+"assets/ecffb067ea2853b358a8b6e156a36e18.png"},function(e,t,n){e.exports=n.p+"assets/c396c9dac1398483d76404e855a4a73e.png"},function(e,t,n){e.exports=n.p+"assets/0b3d1a73fedc086c8b9e9c885904da68.png"},function(e,t,n){e.exports=n.p+"assets/a75c8d03db07dd91baa0415e7cc1140d.png"},function(e,t,n){e.exports=n.p+"assets/af1c2ab339e39b7798d93fda086496a9.png"},function(e,t,n){e.exports=n.p+"assets/8699595ea84b961062155b547353b416.png"},function(e,t,n){e.exports=n.p+"assets/adc8da73b4a534198a3cfe3fd73e17ee.png"},function(e,t,n){e.exports=n.p+"assets/608126d65ca8cb37fafbc956af7f3302.png"},function(e,t,n){e.exports=n.p+"assets/660092ce4ad5e02370884ac8da6fffac.png"},function(e,t,n){e.exports=n.p+"assets/ae3b13674ce311a0927343018ec0a669.png"},function(e,t,n){e.exports=n.p+"assets/72b1e29e931d7c8dae5be83e61e51599.png"},function(e,t,n){e.exports=n.p+"assets/5dcab9137462bf666738ed4db5173a43.png"},function(e,t,n){e.exports=n.p+"assets/7d7e1a2de7abde9f2d3392beece752ea.png"},function(e,t,n){e.exports=n.p+"assets/2dff5cdacd5a42ed3e6d369de441b42c.png"},function(e,t,n){e.exports=n.p+"assets/1f1b59e0e29d035579f11f0b4b386c15.png"},function(e,t,n){e.exports=n.p+"assets/15bd9e704f1a50a27c2af9c2ac9857fc.png"},function(e,t,n){e.exports=n.p+"assets/f1315173461ff31edd583e5e012b5e5c.png"},function(e,t,n){e.exports=n.p+"assets/5305adb9ce4e35fd2a9a8b7c7484e53f.png"},function(e,t,n){e.exports=n.p+"assets/e0b9c92cd3ae6e55052519f6c10ef0a5.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeConnector=void 0;const r=n(0),o=n(7),i=n(4),a=n(28),s=n(33),l=n(6),c=n(40),u=n(20),d=n(30),h=n(23),p=n(48),f=n(105),m=n(1113);t.makeConnector=function(e,t){const n=d.getNewID();return s.makeCommonComponent(n,l.CConnector,{layout:{responsive:!0,auto:!0,fixedHeight:!1,fixedWidth:!1,horizontal:c.HorizontalAlign.Left,vertical:c.VerticalAlign.Top},size:{width:100,height:100},properties:{stroke:{name:i.default("property.propertyNames.lineStroke"),thickness:1,color:u.DeepBlueColor,cap:h.StrokeLineCap.Butt,join:h.StrokeLineJoin.Miter,disabled:!1},line:{startArrow:!1,startPointType:f.LinePointType.none,endArrow:!0,endPointType:f.LinePointType.solidArrow},textStyle:{fontFamily:"Microsoft YaHei",fontStyle:{underline:!1,bold:!1,strike:!1,italic:!1},fontSize:14,color:u.DefaultTextColor,textAlign:p.TextAlign.center},padding:{disabled:!1,hidden:!0,left:0,top:0,right:0,bottom:0}},value:{startPoint:e,endPoint:t},text:""})};class g extends r.Component{constructor(e){super(e);const{position:t,paths:n,textVal:r,textInfo:o}=this.getConnctorInfo(e);this.state={position:t,paths:n,textValue:r,textInfo:o}}getConnctorInfo(e){const t=e.comp,n=t.searchPaths().join(","),{position:r}=t.parseProperties(),o=t.computedTextInfo(),{text:i}=t;return{paths:n,position:r,textVal:i.toString()||"",textInfo:o}}UNSAFE_componentWillReceiveProps(e){const{position:t,paths:n,textVal:r,textInfo:i}=this.getConnctorInfo(e);o.isEqual(this.state.position,t)||this.setState({position:t}),o.isEqual(this.state.paths,n)||this.setState({paths:n}),o.isEqual(this.state.textValue,r)||this.setState({textValue:r}),o.isEqual(this.state.textInfo,i)||this.setState({textInfo:i})}shouldComponentUpdate(e,t){return!o.isEqual(this.state.position,t.position)||(!o.isEqual(this.state.paths,t.paths)||(!o.isEqual(this.state.textValue,t.textValue)||!o.isEqual(this.state.textInfo,t.textInfo)))}render(){const e=this.props.comp,t=e.getStartPoint(!0),n=e.getEndPoint(!0);if(a.isEqualPoint(t,n))return r.createElement(r.Fragment,null);const{position:i,textInfo:s}=this.state,{textCss:l,textSize:c,textPosition:u}=s,d={};return d.opacity=o.isUndefined(e.opacity)?1:e.opacity/100,d.transition=e.getTransition(),r.createElement("div",{className:"lib-comp-connector",style:d},r.createElement(m.default,{connector:e,style:{transform:`translate(${0-i.x}px, ${0-i.y}px)`},scale:1,showTextEditor:!1,textCss:l,textSize:c,textPosition:u}))}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(8),s=n(47),l=n(96),c=n(105),u=n(1132);n(1133);class d extends r.Component{constructor(e){super(e),this.connectTextRef=r.createRef();const{properties:t,linePath:n,startArrowInfo:o,endArrowInfo:i}=this.getConnectorInfo(e);this.state={properties:a.depthClone(t),linePath:n,lineStartArrow:null==o?void 0:o.el,lineEndArrow:null==i?void 0:i.el}}UNSAFE_componentWillReceiveProps(e){const{properties:t,linePath:n,startArrowInfo:r,endArrowInfo:o}=this.getConnectorInfo(e);this.state.linePath!==n&&this.setState({linePath:n}),i.isEqual(this.state.lineStartArrow,null==r?void 0:r.el)||this.setState({lineStartArrow:null==r?void 0:r.el}),i.isEqual(this.state.lineEndArrow,null==o?void 0:o.el)||this.setState({lineEndArrow:null==o?void 0:o.el}),i.isEqual(this.state.properties,t)||this.setState({properties:a.depthClone(t)})}shouldComponentUpdate(e,t){return!i.isEqual(this.state.linePath,t.linePath)||(!i.isEqual(this.state.properties,t.properties)||(!i.isEqual(this.state.lineStartArrow,t.lineStartArrow)||(!i.isEqual(this.state.lineEndArrow,t.lineEndArrow)||(!i.isEqual(this.props.style,e.style)||(!i.isEqual(this.props.scale,e.scale)||(!i.isEqual(this.props.showTextEditor,e.showTextEditor)||(!i.isEqual(this.props.textCss,e.textCss)||(!i.isEqual(this.props.textOutCss,e.textOutCss)||(!i.isEqual(this.props.textSize,e.textSize)||(!i.isEqual(this.props.textEditSize,e.textEditSize)||!i.isEqual(this.props.textPosition,e.textPosition)))))))))))}get connectorText(){return this.connectTextRef}get newProperties(){return s.getNewPathPropertiesByScalingTheStrokeAndShadow(this.props.connector.properties,1)}getArrowInfo(e,t,n){const r=l.removePathPointByLine(e,{removeSamePoint:!0}),{point1:o,point2:i}=l.getPathStartOrEndTwoPoint(r,!0),{point1:a,point2:s}=l.getPathStartOrEndTwoPoint(r,!1),d={pointType:t.startPointType||c.LinePointType.none,linePoints:{startPoint:o,endPoint:i},strokeInfo:n,isEnd:!1},h={pointType:t.endPointType||c.LinePointType.none,linePoints:{startPoint:a,endPoint:s},strokeInfo:n,isEnd:!0};return{startArrowInfo:u.getArrowInfoByType(d),endArrowInfo:u.getArrowInfoByType(h)}}getConnectorInfo(e){var t,n,r,o;const{connector:i}=e,a=i.searchPaths(),s=i.parseProperties(),{strokeWidth:c,line:u,strokeStyle:d}=s,{startArrowInfo:h,endArrowInfo:p}=this.getArrowInfo(a,u,d),f={width:(null===(t=null==h?void 0:h.clipSize)||void 0===t?void 0:t.width)||0,height:(null===(n=null==h?void 0:h.clipSize)||void 0===n?void 0:n.height)||0},m={width:(null===(r=null==p?void 0:p.clipSize)||void 0===r?void 0:r.width)||0,height:(null===(o=null==p?void 0:p.clipSize)||void 0===o?void 0:o.height)||0};return{properties:s,linePath:l.parseLineStr(a,c,u,f,m),startArrowInfo:h,endArrowInfo:p}}renderArrow(){const{lineStartArrow:e,lineEndArrow:t}=this.state;return r.createElement(r.Fragment,null,e,t)}render(){const{connector:e,style:t,scale:n,showTextEditor:i,textCss:a,textOutCss:s,textSize:l,textEditSize:c,textPosition:u,onLineMouseDown:d,onLineDbClick:h,onTextInput:p,onTextKeyDown:f,onTextBlur:m,onTextDbClick:g,onTextMouseDown:v}=this.props,{linePath:y,properties:b}=this.state,{id:w,text:C}=e,{strokeStyle:_,strokeColor:x,strokeWidth:S,strokeDashArray:k,opacity:P,line:T}=b,E=(null==C?void 0:C.toString())||"";return r.createElement(r.Fragment,null,r.createElement("svg",{className:"component-connector-svg",style:Object.assign(Object.assign({},t),{pointerEvents:"none",opacity:P/100})},r.createElement("path",Object.assign({d:y,fill:"none"},_,{stroke:x,strokeWidth:S,strokeDasharray:k,markerStart:(null==T?void 0:T.startArrow)?`url('#${w}-start-marker')`:void 0,markerEnd:(null==T?void 0:T.endArrow)?`url('#${w}-end-marker')`:void 0})),r.createElement("path",Object.assign({d:y,fill:"none"},_,{stroke:"transparent",strokeWidth:S+Math.min(8,10/n),onMouseDown:d,onDoubleClick:h})),this.renderArrow()),(!!E.trim()||i)&&r.createElement("div",{style:Object.assign({left:u.x,top:u.y,width:l.width+1,height:l.height,position:"absolute"},s)},r.createElement("div",{ref:this.connectTextRef,className:o.default("connector-text-and-editor","font-size-"+a.fontSize,{editing:i}),contentEditable:i,dangerouslySetInnerHTML:{__html:C},style:Object.assign(Object.assign({},a),{minWidth:i&&c?Math.min(c.width,100):0,minHeight:i?8:void 0}),onMouseDown:v,onInput:p,onKeyDown:f,onBlur:m,onDoubleClick:g})))}}t.default=d,d.DefaultProps={scale:1,showTextEditor:!1}},function(e,t,n){"use strict";e.exports=function(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=n;return t}},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
|
|
|
/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/
|
|
|
e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(1117),o=n(1118),i=n(1130);function a(e){this.verts=e,this.leaf=!0}function s(e,t,n,r,o,i,a){this.y0=e,this.y1=t,this.top=n,this.bottom=r,this.left=o,this.right=i,this.on=a}function l(e,t,n,r){this.x=e,this.buckets=t,this.left=n,this.right=r}function c(e,t,n){this.geometry=e,this.graph=t,this.root=n}function u(e,t){return e.y0-t}function d(e,t,n,r,o,i){for(var a=0;a<e.length;++a){var s=e[a];t.stabBox(s.x,s.y,o,i)||(r?n.addT(s):n.addS(s))}}function h(e,t,n,o,i,a){for(;n;){if(n.leaf){for(var s=n.verts,l=s.length,c=0;c<l;++c){var h=s[c];e.stabBox(h.x,h.y,i,a)||(o?t.addT(h):t.addS(h))}break}var p=n.buckets,f=r.lt(p,a,u);if(f>=0){var m=p[f];if(a<m.y1)n.x>=i&&d(m.right,e,t,o,i,a),n.x<=i&&d(m.left,e,t,o,i,a),d(m.on,e,t,o,i,a);else if((h=p[f].bottom)&&!e.stabBox(h.x,h.y,i,a)&&(o?t.addT(h):t.addS(h)),f+1<p.length)(h=p[f+1].top)&&!e.stabBox(h.x,h.y,i,a)&&(o?t.addT(h):t.addS(h))}else{(h=p[0].top)&&!e.stabBox(h.x,h.y,i,a)&&(o?t.addT(h):t.addS(h))}if(n.x>i)n=n.left;else{if(!(n.x<i))break;n=n.right}}}function p(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}e.exports=function(e){var t=o(e),n=new i,r={},u=[];function d(e){if(!e)return null;var t=r[e];return t||(r[e]=n.vertex(e[0],e[1]))}function h(e,o){for(var i=[],a=[],s=[],l=0;l<e.length;++l)e[l][0]<o?i.push(e[l]):e[l][0]>o?a.push(e[l]):s.push(e[l]);function c(e,i){if(!t.stabTile(o,e)){for(var a=0;a<s.length;++a)if(s[a][0]===o&&s[a][1]===e)return s[a];var l=[o,e];return i?s.unshift(l):s.push(l),r[l]||(r[l]=n.vertex(o,e)),l}return null}var d=e[0][1],h=e[e.length-1][1],p=c(d,!0),f=c(h,!1);function m(e,n){for(var r=0;r<e.length;++r)for(var o=e[r],i=0;i<n.length;++i){var a=n[i];t.stabBox(o[0],o[1],a[0],a[1])||u.push([o,a])}}m(i,a),m(s,i),m(s,a);for(l=1;l<s.length;++l){var g=s[l-1],v=s[l];t.stabBox(g[0],g[1],v[0],v[1])||u.push([g,v])}return{left:i,right:a,on:s,steiner0:p,steiner1:f,y0:d,y1:h}}for(var f=function e(o,i,c){if(0===o.length)return null;if(o.length<64)return function(e,o,i){for(var s=[],l=0;l<e.length;++l){var c=e[l],d=n.vertex(c[0],c[1]);s.push(d),r[c]=d;for(var h=0;h<l;++h){var p=e[h];t.stabBox(c[0],c[1],p[0],p[1])||u.push([c,p])}}return new a(s)}(o);for(var f=o[o.length>>>1][0],m=function(e,t,n,r){for(var o=[],i=[],a=[],s=0;s<t.length;++s){var l=t[s];n.stabRay(l[0],l[1],e)||a.push(l),l[0]<e?o.push(l):l[0]>e&&i.push(l)}a.sort(p);var c=[],u=[];for(s=0;s<a.length;){for(var d=e,h=e,f=a[s][1];s<a.length&&a[s][1]===f&&a[s][0]<e;)d=a[s++][0];for(d<e&&c.push([d,f]);s<a.length&&a[s][1]===f&&a[s][0]===e;)u.push(a[s]),c.push(a[s]),++s;if(s<a.length&&a[s][1]===f)for(h=a[s++][0];s<a.length&&a[s][1]===f;)++s;h>e&&c.push([h,f])}return{x:e,left:o,right:i,on:u,vis:c}}(f,o,t),g=e(m.left,i,f),v=e(m.right,f,c),y=0;y<m.on.length;++y)r[m.on[y]]=n.vertex(m.on[y][0],m.on[y][1]);var b=m.vis,w=[],C=null;for(y=0;y<b.length;){for(var _=y,x=Math.min(y+32-1,b.length-1);++x<b.length&&b[x-1][1]===b[x][1];);y=x;var S=h(b.slice(_,x),f);C&&S.steiner0&&!t.stabBox(C[0],C[1],S.steiner0[0],S.steiner0[1])&&u.push([C,S.steiner0]),C=S.steiner1,w.push(new s(S.y0,S.y1,d(S.steiner0),d(S.steiner1),S.left.map(d),S.right.map(d),S.on.map(d)))}return new l(f,w,g,v)}(t.corners,-1/0,1/0),m=0;m<u.length;++m)n.link(r[u[m][0]],r[u[m][1]]);return n.init(),new c(t,n,f)},c.prototype.search=function(e,t,n,r,o){var i=this.geometry;if(e===n&&t===r)return i.stabBox(e,t,n,r)?1/0:(o&&o.push(n,r),0);if(!i.stabBox(e,t,n,r))return o&&(n!==e&&r!==t?o.push(e,t,n,t,n,r):o.push(e,t,n,r)),Math.abs(e-n)+Math.abs(t-r);var a=this.graph;a.setSourceAndTarget(n,r,e,t),h(i,a,this.root,!0,e,t),h(i,a,this.root,!1,n,r);var s=a.search();return o&&s<1/0&&a.getPath(o),s}},function(e,t,n){"use strict";function r(e,t,n,r,o,i){var a=["function ",e,"(a,l,h,",r.join(","),"){",i?"":"var i=",n?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a",o?".get(m)":"[m]"];return i?t.indexOf("c")<0?a.push(";if(x===y){return m}else if(x<=y){"):a.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):a.push(";if(",t,"){i=m;"),n?a.push("l=m+1}else{h=m-1}"):a.push("h=m-1}else{l=m+1}"),a.push("}"),i?a.push("return -1};"):a.push("return i};"),a.join("")}function o(e,t,n,o){return new Function([r("A","x"+e+"y",t,["y"],!1,o),r("B","x"+e+"y",t,["y"],!0,o),r("P","c(x,y)"+e+"0",t,["y","c"],!1,o),r("Q","c(x,y)"+e+"0",t,["y","c"],!0,o),"function dispatchBsearch",n,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",n].join(""))()}e.exports={ge:o(">=",!1,"GE"),gt:o(">",!1,"GT"),lt:o("<",!0,"LT"),le:o("<=",!0,"LE"),eq:o("-",!0,"EQ",!0)}},function(e,t,n){"use strict";var r=n(408),o=n(409),i=n(1119),a=n(1123),s=n(1124),l=n(1125)[3];function c(e,t){this.corners=e,this.grid=t}e.exports=function(e){for(var t=s(e.transpose(1,0)),n=[],u=0;u<t.length;++u)for(var h=t[u],p=0;p<h.length;++p){var f=h[(p+h.length-1)%h.length],m=h[p],g=h[(p+1)%h.length];if(l(f,m,g)>0){for(var v=[0,0],y=0;y<2;++y)m[y]-f[y]?v[y]=m[y]-f[y]:v[y]=m[y]-g[y],v[y]=m[y]+Math.min(0|Math.round(v[y]/Math.abs(v[y])),0);v[0]>=0&&v[0]<e.shape[0]&&v[1]>=0&&v[1]<e.shape[1]&&0===e.get(v[0],v[1])&&n.push(v)}}o(n,d);var b=r(new Int32Array(e.shape[0]*e.shape[1]),e.shape);return i.gts(b,e,0),a(b),new c(n,b)};var u=c.prototype;function d(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}u.stabRay=function(e,t,n){return this.stabBox(e,t,n,t)},u.stabTile=function(e,t){return this.stabBox(e,t,e,t)},u.integrate=function(e,t){return e<0||t<0?0:this.grid.get(0|Math.min(e,this.grid.shape[0]-1),0|Math.min(t,this.grid.shape[1]-1))},u.stabBox=function(e,t,n,r){var o=Math.min(e,n),i=Math.min(t,r),a=Math.max(e,n),s=Math.max(t,r);return this.integrate(o-1,i-1)-this.integrate(o-1,s)-this.integrate(a,i-1)+this.integrate(a,s)>0}},function(e,t,n){"use strict";var r=n(1120),o={body:"",args:[],thisVars:[],localVars:[]};function i(e){if(!e)return o;for(var t=0;t<e.args.length;++t){var n=e.args[t];e.args[t]=0===t?{name:n,lvalue:!0,rvalue:!!e.rvalue,count:e.count||1}:{name:n,lvalue:!1,rvalue:!0,count:1}}return e.thisVars||(e.thisVars=[]),e.localVars||(e.localVars=[]),e}function a(e){for(var t=[],n=0;n<e.args.length;++n)t.push("a"+n);return new Function("P",["return function ",e.funcName,"_ndarrayops(",t.join(","),") {P(",t.join(","),");return a0}"].join(""))(function(e){return r({args:e.args,pre:i(e.pre),body:i(e.body),post:i(e.proc),funcName:e.funcName})}(e))}var s={add:"+",sub:"-",mul:"*",div:"/",mod:"%",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"};!function(){for(var e in s){var n=s[e];t[e]=a({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+n+"c"},funcName:e}),t[e+"eq"]=a({args:["array","array"],body:{args:["a","b"],body:"a"+n+"=b"},rvalue:!0,funcName:e+"eq"}),t[e+"s"]=a({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+n+"s"},funcName:e+"s"}),t[e+"seq"]=a({args:["array","scalar"],body:{args:["a","s"],body:"a"+n+"=s"},rvalue:!0,funcName:e+"seq"})}}();var l={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var e in l){var n=l[e];t[e]=a({args:["array","array"],body:{args:["a","b"],body:"a="+n+"b"},funcName:e}),t[e+"eq"]=a({args:["array"],body:{args:["a"],body:"a="+n+"a"},rvalue:!0,count:2,funcName:e+"eq"})}}();var c={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var e in c){var n=c[e];t[e]=a({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+n+"c"},funcName:e}),t[e+"s"]=a({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+n+"s"},funcName:e+"s"}),t[e+"eq"]=a({args:["array","array"],body:{args:["a","b"],body:"a=a"+n+"b"},rvalue:!0,count:2,funcName:e+"eq"}),t[e+"seq"]=a({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+n+"s"},rvalue:!0,count:2,funcName:e+"seq"})}}();var u=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var e=0;e<u.length;++e){var n=u[e];t[n]=a({args:["array","array"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b)",thisVars:["this_f"]},funcName:n}),t[n+"eq"]=a({args:["array"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a"],body:"a=this_f(a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:n+"eq"})}}();var d=["max","min","atan2","pow"];!function(){for(var e=0;e<d.length;++e){var n=d[e];t[n]=a({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:n}),t[n+"s"]=a({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:n+"s"}),t[n+"eq"]=a({args:["array","array"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:n+"eq"}),t[n+"seq"]=a({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:n+"seq"})}}();var h=["atan2","pow"];!function(){for(var e=0;e<h.length;++e){var n=h[e];t[n+"op"]=a({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:n+"op"}),t[n+"ops"]=a({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:n+"ops"}),t[n+"opeq"]=a({args:["array","array"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:n+"opeq"}),t[n+"opseq"]=a({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+n,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:n+"opseq"})}}(),t.any=r({args:["array"],pre:o,body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"if(a){return true}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return false"},funcName:"any"}),t.all=r({args:["array"],pre:o,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1}],body:"if(!x){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"all"}),t.sum=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s+=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"sum"}),t.prod=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=1"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s*=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"prod"}),t.norm2squared=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm2squared"}),t.norm2=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return Math.sqrt(this_s)"},funcName:"norm2"}),t.norminf=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:4}],body:"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),t.norm1=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),t.sup=r({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),t.inf=r({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),t.argmin=r({args:["index","array","shape"],pre:{body:"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),t.argmax=r({args:["index","array","shape"],pre:{body:"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),t.random=a({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),t.assign=a({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),t.assigns=a({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),t.equals=r({args:["array","array"],pre:o,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},function(e,t,n){"use strict";var r=n(1121);function o(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(e){var t=new o;t.pre=e.pre,t.body=e.body,t.post=e.post;var n=e.args.slice(0);t.argTypes=n;for(var i=0;i<n.length;++i){var a=n[i];if("array"===a||"object"==typeof a&&a.blockIndices){if(t.argTypes[i]="array",t.arrayArgs.push(i),t.arrayBlockIndices.push(a.blockIndices?a.blockIndices:0),t.shimArgs.push("array"+i),i<t.pre.args.length&&t.pre.args[i].count>0)throw new Error("cwise: pre() block may not reference array args");if(i<t.post.args.length&&t.post.args[i].count>0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===a)t.scalarArgs.push(i),t.shimArgs.push("scalar"+i);else if("index"===a){if(t.indexArgs.push(i),i<t.pre.args.length&&t.pre.args[i].count>0)throw new Error("cwise: pre() block may not reference array index");if(i<t.body.args.length&&t.body.args[i].lvalue)throw new Error("cwise: body() block may not write to array index");if(i<t.post.args.length&&t.post.args[i].count>0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===a){if(t.shapeArgs.push(i),i<t.pre.args.length&&t.pre.args[i].lvalue)throw new Error("cwise: pre() block may not write to array shape");if(i<t.body.args.length&&t.body.args[i].lvalue)throw new Error("cwise: body() block may not write to array shape");if(i<t.post.args.length&&t.post.args[i].lvalue)throw new Error("cwise: post() block may not write to array shape")}else{if("object"!=typeof a||!a.offset)throw new Error("cwise: Unknown argument type "+n[i]);t.argTypes[i]="offset",t.offsetArgs.push({array:a.array,offset:a.offset}),t.offsetArgIndex.push(i)}}if(t.arrayArgs.length<=0)throw new Error("cwise: No array arguments specified");if(t.pre.args.length>n.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>n.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>n.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,r(t)}},function(e,t,n){"use strict";var r=n(1122);e.exports=function(e){var t=["'use strict'","var CACHED={}"],n=[],o=e.funcName+"_cwise_thunk";t.push(["return function ",o,"(",e.shimArgs.join(","),"){"].join(""));for(var i=[],a=[],s=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],l=[],c=[],u=0;u<e.arrayArgs.length;++u){var d=e.arrayArgs[u];n.push(["t",d,"=array",d,".dtype,","r",d,"=array",d,".order"].join("")),i.push("t"+d),i.push("r"+d),a.push("t"+d),a.push("r"+d+".join()"),s.push("array"+d+".data"),s.push("array"+d+".stride"),s.push("array"+d+".offset|0"),u>0&&(l.push("array"+e.arrayArgs[0]+".shape.length===array"+d+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[u]))),c.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+d+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[u])+"]"))}for(e.arrayArgs.length>1&&(t.push("if (!("+l.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),t.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex--\x3e0;) {"),t.push("if (!("+c.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),t.push("}")),u=0;u<e.scalarArgs.length;++u)s.push("scalar"+e.scalarArgs[u]);return n.push(["type=[",a.join(","),"].join()"].join("")),n.push("proc=CACHED[type]"),t.push("var "+n.join(",")),t.push(["if(!proc){","CACHED[type]=proc=compile([",i.join(","),"])}","return proc(",s.join(","),")}"].join("")),e.debug&&console.log("-----Generated thunk:\n"+t.join("\n")+"\n----------"),new Function("compile",t.join("\n"))(r.bind(void 0,e))}},function(e,t,n){"use strict";var r=n(409);function o(e,t,n){var r,o,i=e.length,a=t.arrayArgs.length,s=t.indexArgs.length>0,l=[],c=[],u=0,d=0;for(r=0;r<i;++r)c.push(["i",r,"=0"].join(""));for(o=0;o<a;++o)for(r=0;r<i;++r)d=u,u=e[r],0===r?c.push(["d",o,"s",r,"=t",o,"p",u].join("")):c.push(["d",o,"s",r,"=(t",o,"p",u,"-s",d,"*t",o,"p",d,")"].join(""));for(c.length>0&&l.push("var "+c.join(",")),r=i-1;r>=0;--r)u=e[r],l.push(["for(i",r,"=0;i",r,"<s",u,";++i",r,"){"].join(""));for(l.push(n),r=0;r<i;++r){for(d=u,u=e[r],o=0;o<a;++o)l.push(["p",o,"+=d",o,"s",r].join(""));s&&(r>0&&l.push(["index[",d,"]-=s",d].join("")),l.push(["++index[",u,"]"].join(""))),l.push("}")}return l.join("\n")}function i(e,t,n){for(var r=e.body,o=[],i=[],a=0;a<e.args.length;++a){var s=e.args[a];if(!(s.count<=0)){var l=new RegExp(s.name,"g"),c="",u=t.arrayArgs.indexOf(a);switch(t.argTypes[a]){case"offset":var d=t.offsetArgIndex.indexOf(a);u=t.offsetArgs[d].array,c="+q"+d;case"array":c="p"+u+c;var h="l"+a,p="a"+u;if(0===t.arrayBlockIndices[u])1===s.count?"generic"===n[u]?s.lvalue?(o.push(["var ",h,"=",p,".get(",c,")"].join("")),r=r.replace(l,h),i.push([p,".set(",c,",",h,")"].join(""))):r=r.replace(l,[p,".get(",c,")"].join("")):r=r.replace(l,[p,"[",c,"]"].join("")):"generic"===n[u]?(o.push(["var ",h,"=",p,".get(",c,")"].join("")),r=r.replace(l,h),s.lvalue&&i.push([p,".set(",c,",",h,")"].join(""))):(o.push(["var ",h,"=",p,"[",c,"]"].join("")),r=r.replace(l,h),s.lvalue&&i.push([p,"[",c,"]=",h].join("")));else{for(var f=[s.name],m=[c],g=0;g<Math.abs(t.arrayBlockIndices[u]);g++)f.push("\\s*\\[([^\\]]+)\\]"),m.push("$"+(g+1)+"*t"+u+"b"+g);if(l=new RegExp(f.join(""),"g"),c=m.join("+"),"generic"===n[u])throw new Error("cwise: Generic arrays not supported in combination with blocks!");r=r.replace(l,[p,"[",c,"]"].join(""))}break;case"scalar":r=r.replace(l,"Y"+t.scalarArgs.indexOf(a));break;case"index":r=r.replace(l,"index");break;case"shape":r=r.replace(l,"shape")}}}return[o.join("\n"),r,i.join("\n")].join("\n").trim()}function a(e){for(var t=new Array(e.length),n=!0,r=0;r<e.length;++r){var o=e[r],i=o.match(/\d+/);i=i?i[0]:"",0===o.charAt(0)?t[r]="u"+o.charAt(1)+i:t[r]=o.charAt(0)+i,r>0&&(n=n&&t[r]===t[r-1])}return n?t[0]:t.join("")}e.exports=function(e,t){for(var n=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,s=new Array(e.arrayArgs.length),l=new Array(e.arrayArgs.length),c=0;c<e.arrayArgs.length;++c)l[c]=t[2*c],s[c]=t[2*c+1];var u=[],d=[],h=[],p=[],f=[];for(c=0;c<e.arrayArgs.length;++c){e.arrayBlockIndices[c]<0?(h.push(0),p.push(n),u.push(n),d.push(n+e.arrayBlockIndices[c])):(h.push(e.arrayBlockIndices[c]),p.push(e.arrayBlockIndices[c]+n),u.push(0),d.push(e.arrayBlockIndices[c]));for(var m=[],g=0;g<s[c].length;g++)h[c]<=s[c][g]&&s[c][g]<p[c]&&m.push(s[c][g]-h[c]);f.push(m)}var v=["SS"],y=["'use strict'"],b=[];for(g=0;g<n;++g)b.push(["s",g,"=SS[",g,"]"].join(""));for(c=0;c<e.arrayArgs.length;++c){v.push("a"+c),v.push("t"+c),v.push("p"+c);for(g=0;g<n;++g)b.push(["t",c,"p",g,"=t",c,"[",h[c]+g,"]"].join(""));for(g=0;g<Math.abs(e.arrayBlockIndices[c]);++g)b.push(["t",c,"b",g,"=t",c,"[",u[c]+g,"]"].join(""))}for(c=0;c<e.scalarArgs.length;++c)v.push("Y"+c);if(e.shapeArgs.length>0&&b.push("shape=SS.slice(0)"),e.indexArgs.length>0){var w=new Array(n);for(c=0;c<n;++c)w[c]="0";b.push(["index=[",w.join(","),"]"].join(""))}for(c=0;c<e.offsetArgs.length;++c){var C=e.offsetArgs[c],_=[];for(g=0;g<C.offset.length;++g)0!==C.offset[g]&&(1===C.offset[g]?_.push(["t",C.array,"p",g].join("")):_.push([C.offset[g],"*t",C.array,"p",g].join("")));0===_.length?b.push("q"+c+"=0"):b.push(["q",c,"=",_.join("+")].join(""))}var x=r([].concat(e.pre.thisVars).concat(e.body.thisVars).concat(e.post.thisVars));for((b=b.concat(x)).length>0&&y.push("var "+b.join(",")),c=0;c<e.arrayArgs.length;++c)y.push("p"+c+"|=0");e.pre.body.length>3&&y.push(i(e.pre,e,l));var S=i(e.body,e,l),k=function(e){for(var t=0,n=e[0].length;t<n;){for(var r=1;r<e.length;++r)if(e[r][t]!==e[0][t])return t;++t}return t}(f);k<n?y.push(function(e,t,n,r){for(var i=t.length,a=n.arrayArgs.length,s=n.blockSize,l=n.indexArgs.length>0,c=[],u=0;u<a;++u)c.push(["var offset",u,"=p",u].join(""));for(u=e;u<i;++u)c.push(["for(var j"+u+"=SS[",t[u],"]|0;j",u,">0;){"].join("")),c.push(["if(j",u,"<",s,"){"].join("")),c.push(["s",t[u],"=j",u].join("")),c.push(["j",u,"=0"].join("")),c.push(["}else{s",t[u],"=",s].join("")),c.push(["j",u,"-=",s,"}"].join("")),l&&c.push(["index[",t[u],"]=j",u].join(""));for(u=0;u<a;++u){for(var d=["offset"+u],h=e;h<i;++h)d.push(["j",h,"*t",u,"p",t[h]].join(""));c.push(["p",u,"=(",d.join("+"),")"].join(""))}for(c.push(o(t,n,r)),u=e;u<i;++u)c.push("}");return c.join("\n")}(k,f[0],e,S)):y.push(o(f[0],e,S)),e.post.body.length>3&&y.push(i(e.post,e,l)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+y.join("\n")+"\n----------");var P=[e.funcName||"unnamed","_cwise_loop_",s[0].join("s"),"m",k,a(l)].join("");return new Function(["function ",P,"(",v.join(","),"){",y.join("\n"),"} return ",P].join(""))()}},function(e,t,n){"use strict";e.exports=function(e){var t=e.dtype+e.order.join(),n=r[t];n||(n=r[t]=function(e,t){for(var n=["prefixSum",t.length,"d",e,"s",t.join("s")].join(""),r=["function ",n,"(arr){var ","d","=arr.data,","n","=arr.shape,","s","=arr.stride,","o","=arr.offset,"],o=t.length,i=0;i<o;++i)r.push("n",i,"=","n","[",t[i],"],");for(i=0;i<o;++i)r.push("s",i,"=","s","[",t[i],"],");for(i=0;i<o;++i)r.push("i",i,"=0,");for(i=o-1;i>0;--i)r.push("p",i,"=","s",i,"-","n",i-1,"*","s",i-1,",");r.push("p","0=","s",0,";");var a=new Array(o);for(i=0;i<o;++i)a[i]=!0;return r.push(function e(t,n,r){if(0===r){for(var o=[[]],i=0;i<n.length;++i)if(!n[i])for(var a=o.length,s=0;s<a;++s){(c=o[s].slice()).push("s"+i),o.push(c)}if(1===o.length)return"";var l=[];"generic"===t?l.push("d",".set(","o",",","d",".get(","o",")+"):l.push("d","[","o","]+=");for(i=1;i<o.length;++i){var c,u=((c=o[i]).length+1)%2;i>1&&!u?l.push("+"):u&&l.push("-"),"generic"===t?l.push("d",".get("):l.push("d","["),l.push("o","-",c.join("-")),"generic"===t?l.push(")"):l.push("]")}return"generic"===t?l.push(");"):l.push(";"),l.join("")}n[r-1]=!0;var d=[e(t,n,r-1),"o","+=","p",r-1,";for(","i",r-1,"=1;","i",r-1,"<","n",r-1,";++","i",r-1,"){"];return n[r-1]=!1,d.push(e(t,n,r-1),"o","+=","p",r-1,";}"),d.join("")}(e,a,o),"}return ",n),new Function(r.join(""))()}(e.dtype,e.order));return n(e),e};var r={}},function(e,t,n){"use strict";function r(e,t,n,r){this.start=e,this.end=t,this.direction=n,this.height=r,this.visited=!1,this.next=null,this.prev=null}function o(e,t,n,r){this.x=e,this.y=t,this.segment=n,this.orientation=r}function i(e,t){var n=e.shape[0],o=e.shape[1],i=[],a=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0;for(h=0;h<o;++h)(s=!!e.get(0,h))!==a&&(a&&i.push(new r(u,h,t,0)),s&&(u=h),a=s);for(a&&i.push(new r(u,h,t,0)),d=1;d<n;++d){for(a=!1,s=!1,u=0,h=0;h<o;++h)l=!!e.get(d-1,h),c=!!e.get(d,h),l===a&&c===s||(a!==s&&(a?i.push(new r(h,u,t,d)):i.push(new r(u,h,t,d))),l!==c&&(u=h),a=l,s=c);a!==s&&(a?i.push(new r(h,u,t,d)):i.push(new r(u,h,t,d)))}for(a=!1,u=0,h=0;h<o;++h)(s=!!e.get(n-1,h))!==a&&(a&&i.push(new r(h,u,t,n)),s&&(u=h),a=s);return a&&i.push(new r(h,u,t,n)),i}function a(e){for(var t=new Array(2*e.length),n=0;n<e.length;++n){var r=e[n];0===r.direction?(t[2*n]=new o(r.start,r.height,r,0),t[2*n+1]=new o(r.end,r.height,r,1)):(t[2*n]=new o(r.height,r.start,r,0),t[2*n+1]=new o(r.height,r.end,r,1))}return t}function s(e,t){for(var n=[];!e.visited;)e.visited=!0,e.direction?n.push([e.height,e.end]):n.push([e.start,e.height]),e=t?e.next:e.prev;return n}function l(e,t){var n=e.x-t.x;return n||((n=e.y-t.y)||e.orientation-t.orientation)}e.exports=function(e,t){t=!!t;var n=i(e,0),r=a(n);r.sort(l);var o=a(i(e.transpose(1,0),1));o.sort(l);for(var c=r.length,u=0;u<c;++u){var d=r[u],h=o[u];d.orientation?(d.segment.next=h.segment,h.segment.prev=d.segment):(d.segment.prev=h.segment,h.segment.next=d.segment)}var p=[];for(u=0;u<n.length;++u){(d=n[u]).visited||p.push(s(d,t))}return p}},function(e,t,n){"use strict";var r=n(410),o=n(1126),i=n(1127),a=n(1129);function s(e,t){for(var n=new Array(e.length-1),r=1;r<e.length;++r)for(var o=n[r-1]=new Array(e.length-1),i=0,a=0;i<e.length;++i)i!==t&&(o[a++]=e[r][i]);return n}function l(e){if(1===e.length)return e[0];if(2===e.length)return["sum(",e[0],",",e[1],")"].join("");var t=e.length>>1;return["sum(",l(e.slice(0,t)),",",l(e.slice(t)),")"].join("")}function c(e){if(2===e.length)return[["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("")];for(var t=[],n=0;n<e.length;++n)t.push(["scale(",l(c(s(e,n))),",",(r=n,1&r?"-":""),e[0][n],")"].join(""));return t;var r}function u(e){for(var t=[],n=[],u=function(e){for(var t=new Array(e),n=0;n<e;++n){t[n]=new Array(e);for(var r=0;r<e;++r)t[n][r]=["m",r,"[",e-n-1,"]"].join("")}return t}(e),d=[],h=0;h<e;++h)0==(1&h)?t.push.apply(t,c(s(u,h))):n.push.apply(n,c(s(u,h))),d.push("m"+h);var p=l(t),f=l(n),m="orientation"+e+"Exact",g=["function ",m,"(",d.join(),"){var p=",p,",n=",f,",d=sub(p,n);return d[d.length-1];};return ",m].join("");return new Function("sum","prod","scale","sub",g)(o,r,i,a)}var d=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(e,t){return t[0]-e[0]},function(e,t,n){var r,o=(e[1]-n[1])*(t[0]-n[0]),i=(e[0]-n[0])*(t[1]-n[1]),a=o-i;if(o>0){if(i<=0)return a;r=o+i}else{if(!(o<0))return a;if(i>=0)return a;r=-(o+i)}var s=33306690738754716e-32*r;return a>=s||a<=-s?a:d(e,t,n)},function(e,t,n,r){var o=e[0]-r[0],i=t[0]-r[0],a=n[0]-r[0],s=e[1]-r[1],l=t[1]-r[1],c=n[1]-r[1],u=e[2]-r[2],d=t[2]-r[2],p=n[2]-r[2],f=i*c,m=a*l,g=a*s,v=o*c,y=o*l,b=i*s,w=u*(f-m)+d*(g-v)+p*(y-b),C=7771561172376103e-31*((Math.abs(f)+Math.abs(m))*Math.abs(u)+(Math.abs(g)+Math.abs(v))*Math.abs(d)+(Math.abs(y)+Math.abs(b))*Math.abs(p));return w>C||-w>C?w:h(e,t,n,r)}];function f(e){var t=p[e.length];return t||(t=p[e.length]=u(e.length)),t.apply(void 0,e)}!function(){for(;p.length<=5;)p.push(u(p.length));for(var t=[],n=["slow"],r=0;r<=5;++r)t.push("a"+r),n.push("o"+r);var o=["function getOrientation(",t.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(r=2;r<=5;++r)o.push("case ",r,":return o",r,"(",t.slice(0,r).join(),");");o.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),n.push(o.join(""));var i=Function.apply(void 0,n);for(e.exports=i.apply(void 0,[f].concat(p)),r=0;r<=5;++r)e.exports[r]=p[r]}()},function(e,t,n){"use strict";e.exports=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,o=e-(n-r)+(t-r);if(o)return[o,n];return[n]}(e[0],t[0]);var o,i,a=new Array(n+r),s=0,l=0,c=0,u=Math.abs,d=e[l],h=u(d),p=t[c],f=u(p);h<f?(i=d,(l+=1)<n&&(d=e[l],h=u(d))):(i=p,(c+=1)<r&&(p=t[c],f=u(p)));l<n&&h<f||c>=r?(o=d,(l+=1)<n&&(d=e[l],h=u(d))):(o=p,(c+=1)<r&&(p=t[c],f=u(p)));var m,g,v=o+i,y=v-o,b=i-y,w=b,C=v;for(;l<n&&c<r;)h<f?(o=d,(l+=1)<n&&(d=e[l],h=u(d))):(o=p,(c+=1)<r&&(p=t[c],f=u(p))),(b=(i=w)-(y=(v=o+i)-o))&&(a[s++]=b),w=C-((m=C+v)-(g=m-C))+(v-g),C=m;for(;l<n;)(b=(i=w)-(y=(v=(o=d)+i)-o))&&(a[s++]=b),w=C-((m=C+v)-(g=m-C))+(v-g),C=m,(l+=1)<n&&(d=e[l]);for(;c<r;)(b=(i=w)-(y=(v=(o=p)+i)-o))&&(a[s++]=b),w=C-((m=C+v)-(g=m-C))+(v-g),C=m,(c+=1)<r&&(p=t[c]);w&&(a[s++]=w);C&&(a[s++]=C);s||(a[s++]=0);return a.length=s,a}},function(e,t,n){"use strict";var r=n(410),o=n(1128);e.exports=function(e,t){var n=e.length;if(1===n){var i=r(e[0],t);return i[0]?i:[i[1]]}var a=new Array(2*n),s=[.1,.1],l=[.1,.1],c=0;r(e[0],t,s),s[0]&&(a[c++]=s[0]);for(var u=1;u<n;++u){r(e[u],t,l);var d=s[1];o(d,l[0],s),s[0]&&(a[c++]=s[0]);var h=l[1],p=s[1],f=h+p,m=p-(f-h);s[1]=f,m&&(a[c++]=m)}s[1]&&(a[c++]=s[1]);0===c&&(a[c++]=0);return a.length=c,a}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=e+t,o=r-e,i=t-o,a=e-(r-o);if(n)return n[0]=a+i,n[1]=r,n;return[a+i,r]}},function(e,t,n){"use strict";e.exports=function(e,t){var n=0|e.length,r=0|t.length;if(1===n&&1===r)return function(e,t){var n=e+t,r=n-e,o=e-(n-r)+(t-r);if(o)return[o,n];return[n]}(e[0],-t[0]);var o,i,a=new Array(n+r),s=0,l=0,c=0,u=Math.abs,d=e[l],h=u(d),p=-t[c],f=u(p);h<f?(i=d,(l+=1)<n&&(d=e[l],h=u(d))):(i=p,(c+=1)<r&&(p=-t[c],f=u(p)));l<n&&h<f||c>=r?(o=d,(l+=1)<n&&(d=e[l],h=u(d))):(o=p,(c+=1)<r&&(p=-t[c],f=u(p)));var m,g,v=o+i,y=v-o,b=i-y,w=b,C=v;for(;l<n&&c<r;)h<f?(o=d,(l+=1)<n&&(d=e[l],h=u(d))):(o=p,(c+=1)<r&&(p=-t[c],f=u(p))),(b=(i=w)-(y=(v=o+i)-o))&&(a[s++]=b),w=C-((m=C+v)-(g=m-C))+(v-g),C=m;for(;l<n;)(b=(i=w)-(y=(v=(o=d)+i)-o))&&(a[s++]=b),w=C-((m=C+v)-(g=m-C))+(v-g),C=m,(l+=1)<n&&(d=e[l]);for(;c<r;)(b=(i=w)-(y=(v=(o=p)+i)-o))&&(a[s++]=b),w=C-((m=C+v)-(g=m-C))+(v-g),C=m,(c+=1)<r&&(p=-t[c]);w&&(a[s++]=w);C&&(a[s++]=C);s||(a[s++]=0);return a.length=s,a}},function(e,t,n){"use strict";e.exports=l;var r=n(1131),o=r.NIL,i=r.NUM_LANDMARKS,a=r.LANDMARK_DIST;function s(e,t,n,r){for(var o=+r.x,a=+r.y,s=Math.abs(o-t)+Math.abs(a-n),l=r.landmark,c=0;c<i;++c)s=Math.max(s,e[c]-l[c]);return 1.0000009536743164*s}function l(){this.target=r.create(0,0),this.verts=[],this.freeList=this.target,this.toVisit=o,this.lastS=null,this.lastT=null,this.srcX=0,this.srcY=0,this.dstX=0,this.dstY=0,this.landmarks=[],this.landmarkDist=a.slice()}var c=l.prototype;function u(e,t){var n=e.x-t.x;return n||e.y-t.y}c.vertex=function(e,t){var n=r.create(e,t);return this.verts.push(n),n},c.link=function(e,t){r.link(e,t)},c.setSourceAndTarget=function(e,t,n,r){this.srcX=0|e,this.srcY=0|t,this.dstX=0|n,this.dstY=0|r},c.addS=function(e){0==(2&e.state)&&(e.heuristic=s(this.landmarkDist,this.dstX,this.dstY,e),e.weight=Math.abs(this.srcX-e.x)+Math.abs(this.srcY-e.y)+e.heuristic,e.state|=2,e.pred=null,this.toVisit=r.push(this.toVisit,e),this.freeList=r.insert(this.freeList,e),this.lastS=e)},c.addT=function(e){if(0==(1&e.state)){e.state|=1,this.freeList=r.insert(this.freeList,e),this.lastT=e;for(var t=Math.abs(e.x-this.dstX)+Math.abs(e.y-this.dstY),n=e.landmark,o=this.landmarkDist,a=0;a<i;++a)o[a]=Math.min(o[a],n[a]+t)}},c.getPath=function(e){var t=this.dstX,n=this.dstY;e.push(t,n);for(var r=this.target.pred;r;)t!==r.x&&n!==r.y&&e.push(r.x,n),t===r.x&&n===r.y||e.push(r.x,r.y),t=r.x,n=r.y,r=r.pred;return t!==this.srcX&&n!==this.srcY&&e.push(this.srcX,n),t===this.srcX&&n===this.srcY||e.push(this.srcX,this.srcY),e},c.findComponents=function(){for(var e=this.verts,t=e.length,n=0;n<t;++n)e[n].component=-1;var r=[];for(n=0;n<t;++n){var o=e[n];if(!(o.component>=0)){var i=r.length;o.component=i;for(var a=[o],s=0;s<a.length;)for(var l=a[s++].edges,c=0;c<l.length;++c){var u=l[c];u.component>=0||(u.component=i,a.push(u))}r.push(a)}}return r},c.findLandmarks=function(e){e.sort(u);for(var t=e[e.length>>>1],n=0;n<i;++n){t.weight=0,this.landmarks.push(t);for(var a=t;a!==o;){(t=a).state=2,a=r.pop(a);for(var s=t.weight,l=t.edges,c=0;c<l.length;++c){if(2!==(p=l[c]).state){var d=s+Math.abs(t.x-p.x)+Math.abs(t.y-p.y);0===p.state?(p.state=1,p.weight=d,a=r.push(a,p)):d<p.weight&&(p.weight=d,a=r.decreaseKey(a,p))}}}var h=0;for(c=0;c<e.length;++c){var p;(p=e[c]).state=0,p.landmark[n]=p.weight;for(var f=1/0,m=0;m<=n;++m)f=Math.min(f,p.landmark[m]);f>h&&(t=p,h=f)}}},c.init=function(){for(var e=this.findComponents(),t=0;t<e.length;++t)this.findLandmarks(e[t])},c.search=function(){var e=this.target,t=this.freeList,n=this.landmarkDist,a=1/0;if(this.lastS&&this.lastT&&this.lastS.component===this.lastT.component){this.srcX,this.srcY;for(var l=+this.dstX,c=+this.dstY,u=this.toVisit;u!==o;){var d=u,h=+d.x,p=+d.y,f=Math.floor(d.weight-d.heuristic);if(3===d.state){a=f+Math.abs(l-h)+Math.abs(c-p),e.pred=d;break}d.state=4,u=r.pop(u);for(var m=d.edges,g=m.length,v=0;v<g;++v){var y=m[v],b=y.state;if(4!==b){var w=f+Math.abs(h-y.x)+Math.abs(p-y.y);if(b<2){var C=s(n,l,c,y);y.state|=2,y.heuristic=C,y.weight=C+w,y.pred=d,u=r.push(u,y),t=r.insert(t,y)}else{var _=w+y.heuristic;_<y.weight&&(y.weight=_,y.pred=d,u=r.decreaseKey(u,y))}}}}}r.clear(t),this.freeList=e,this.toVisit=o,this.lastS=this.lastT=null;for(v=0;v<i;++v)n[v]=1/0;return a}},function(e,t,n){"use strict";var r=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=1/0;return e}();function o(e,t){this.x=e,this.y=t,this.heuristic=.25,this.weight=.25,this.left=null,this.right=null,this.parent=null,this.state=0,this.pred=null,this.nextFree=null,this.edges=[],this.landmark=r.slice(),this.component=0}var i=new o(1/0,1/0);function a(e,t){var n=e.left;return t.right=n,n.parent=t,t.parent=e,e.left=t,e.right=i,e}function s(e,t){return e===i?t:t===i?e:e.weight<t.weight?a(e,t):a(t,e)}i.weight=-1/0,i.left=i.right=i.parent=i,t.create=function(e,t){var n=new o(e,t);return n.left=n.right=n.parent=i,n},t.link=function(e,t){e.edges.push(t),t.edges.push(e)},t.insert=function(e,t){return t.nextFree?e:(t.nextFree=e,t)},t.clear=function(e){for(;e;){var t=e.nextFree;e.state=0,e.left=e.right=e.parent=i,e.nextFree=null,e=t}},t.NIL=i,t.push=function(e,t){if(e===i)return t;if(e.weight<t.weight){var n=e.left;return t.right=n,n.parent=t,t.parent=e,e.left=t,e}return n=t.left,e.right=n,n.parent=e,e.parent=t,t.left=e,t},t.pop=function(e){var t=e.left;for(e.left=i,e=t;;){var n=e.right;if(n===i)break;t=e;var r=n.right,o=s(t,n);for(e=o;t=r,(n=r.right)!==i;)r=n.right,o=o.right=s(t,n);o.right=i,t!==i&&(t.right=e,e=t)}return e.parent=i,e},t.decreaseKey=function(e,t){var n=t.parent;if(n.weight<t.weight)return e;var r=t.right;if(r.parent=n,n.left===t?n.left=r:n.right=r,e.weight<=t.weight)return(o=e.left).parent=t,t.right=o,e.left=t,t.parent=e,e;var o=t.left;return e.right=o,o.parent=e,t.left=e,e.parent=t,t.right=t.parent=i,t},t.NUM_LANDMARKS=16,t.LANDMARK_DIST=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrowInfoByType=void 0;const r=n(0),o=n(105),i=n(23);var a;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e[e.None=4]="None"}(a||(a={}));class s{constructor(e){this.lineWidth=1;const{pointType:t,linePoints:{startPoint:n,endPoint:r},strokeInfo:o,isEnd:i}=e;this.type=t,this.strokeInfo=o,this.strokeWidth=o.strokeWidth||0,this.isEnd=i,this.startPoint=Object.assign({},n),this.endPoint=Object.assign({},r)}get size(){const{strokeWidth:e}=this;return e&&(e<6&&[10,7][e-1]||6)*e||0}get direction(){const{angle:e}=this,t=0,n=270,r=90;return 180===e?a.Left:t===e?a.Right:n===e?a.Up:r===e?a.Down:a.None}get refX(){return this.startPoint.x}get refY(){return this.startPoint.y}get offsetNum(){return this.calcOffset(this.strokeWidth)}get offsetX(){return 0}get offsetY(){return[a.Right,a.Up].includes(this.direction)?this.offsetNum:[a.Left,a.Down].includes(this.direction)?0-this.offsetNum:0}get diff(){return this.refX*this.strokeWidth}get angle(){const{startPoint:e,endPoint:t}=this;return(Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)+360)%360}get transform(){return`translate(${this.refX}, ${this.refY}) rotate(${this.angle}) translate(${this.offsetX}, ${-this.size/2+this.offsetY})`}get clipSize(){return this.getClipSizeWithDirection(this.size-1)}calcOffset(e){return e%2/2}getClipSizeWithDirection(e){const t={width:0,height:0};switch(this.direction){case a.Left:t.width=0-e;break;case a.Right:t.width=e;break;case a.Up:t.height=0-e;break;case a.Down:t.height=e}return t}}const l={[o.LinePointType.none]:void 0,[o.LinePointType.solidArrow]:class extends s{get path(){const{size:e}=this;return`M0 ${e/2} L${e} 0 L${.75*e} ${e/2} L${e} ${e}z`}get clipSize(){return this.getClipSizeWithDirection(this.strokeWidth)}getInfo(){const{stroke:e,strokeLinejoin:t}=this.strokeInfo;return{el:r.createElement("path",{d:this.path,stroke:e,fill:e,strokeWidth:0,strokeLinejoin:t===i.StrokeLineJoin.Round?"round":"miter",transform:this.transform}),clipSize:this.clipSize}}},[o.LinePointType.hollowArrow]:class extends s{get path(){const{size:e}=this;return`M${e} 0 L0 ${e/2} L${e} ${e}`}get clipSize(){return this.getClipSizeWithDirection(this.strokeWidth)}getInfo(){const{stroke:e,strokeLinejoin:t,strokeLinecap:n}=this.strokeInfo;return{el:r.createElement("path",{d:this.path,stroke:e,fill:"none",strokeWidth:this.strokeWidth,strokeLinecap:n,strokeLinejoin:t,transform:this.transform}),clipSize:this.clipSize}}},[o.LinePointType.solidDot]:class extends s{get path(){const e=this.size/2;return`\n M 0,${e}\n a ${e},${e} 0 1,0 ${2*e},0 \n a ${e},${e} 0 1,0 ${2*-e},0 \n `}get clipSize(){return this.getClipSizeWithDirection(this.strokeWidth)}getInfo(){const{strokeInfo:{stroke:e}}=this;return{el:r.createElement("path",{d:this.path,stroke:"none",fill:e,transform:this.transform}),clipSize:this.clipSize}}},[o.LinePointType.hollowDot]:class extends s{get path(){const e=this.strokeWidth/2,t=this.size/2-e;return`\n M ${e},${t+e}\n a ${t},${t} 0 1,0 ${2*t},0 \n a ${t},${t} 0 1,0 ${2*-t},0\n `}getInfo(){const{strokeInfo:{stroke:e},strokeWidth:t}=this;return{el:r.createElement("path",{d:this.path,stroke:e,strokeWidth:t,fill:"none",transform:this.transform}),clipSize:this.clipSize}}},[o.LinePointType.solidCube]:class extends s{get path(){return""}get offsetNum(){return this.calcOffset(this.size)}getInfo(){const{size:e,strokeInfo:{stroke:t,strokeLinejoin:n}}=this;return{el:r.createElement("rect",{x:0,y:0,width:e,height:e,fill:t,stroke:"none",strokeLinejoin:n,transform:this.transform}),clipSize:this.clipSize}}},[o.LinePointType.hollowCube]:class extends s{get path(){return""}getInfo(){const{size:e,strokeInfo:{stroke:t,strokeLinejoin:n},strokeWidth:o}=this;return{el:r.createElement("rect",{x:0,y:0,width:e-o,height:e-o,stroke:t,strokeWidth:o,fill:"none",strokeLinejoin:n,transform:this.transform}),clipSize:this.clipSize}}},[o.LinePointType.perpendicular]:class extends s{get path(){return""}get clipSize(){return this.getClipSizeWithDirection(this.strokeWidth||0)}getInfo(){const{size:e,strokeInfo:{stroke:t,strokeLinecap:n},strokeWidth:o}=this;return{el:r.createElement("line",{x1:o/2,x2:o/2,y1:0,y2:e,stroke:t,strokeWidth:o,strokeLinecap:n,transform:this.transform}),clipSize:this.clipSize}}}};t.getArrowInfoByType=e=>{const t=(e=>{const{pointType:t,strokeInfo:n}=e;if(!t||t===o.LinePointType.none||0===n.strokeWidth)return;return function(e,t){return new e(t)}(l[t],e)})(e);return null==t?void 0:t.getInfo()}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1135);Object.defineProperty(t,"Arc",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"makeArc",{enumerable:!0,get:function(){return r.makeArc}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeArc=void 0;const r=n(0),o=n(7),i=n(6),a=n(14),s=n(33),l=n(32),c=n(20),u=n(50),d=n(4);t.makeArc=function(e){return s.makeCommonComponent(e,i.CArc,{properties:{angle:{prop:"number",name:d.default("property.propertyNames.angle"),value:{min:0,max:100,value:25}},fill:{type:l.FillType.solid,color:c.DefaultWhiteFillColor,disabled:!0},stroke:{thickness:1,color:c.DefaultStrokeColor},close:{prop:"boolean",name:d.default("property.propertyNames.close"),value:!1},shadow:u.getDefaultShadow()}})};class h extends r.Component{render(){const{comp:e}=this.props,t=o.isUndefined(e.opacity)?1:e.opacity/100;if(!t)return null;const{size:{width:n,height:i},properties:s,type:l,id:c}=e,u=n/2,d=i/2,{angle:h,close:p}=s,f=a.StyleHelper.initSVGStyleParser(s),{strokeWidth:m,strokeDasharray:g,stroke:v,strokeLinecap:y}=f.getStroke(),b=f.getFill(`${l}-fill-${c}`),w=f.getShadow(),C="none"===v?0:m||0,_=(Math.min(n,i)-C)/2;let x=h.value.value;x=Math.max(0,Math.min(x,100)),x=3.6*x-90;const S=x/180*Math.PI,k=u+_*Math.cos(S),P=d+_*Math.sin(S);let T="";return x+90===360?T=`M${u} ${d-_} A${_} ${_} ${_} 0 1 ${u+_} ${d} A${_} ${_} ${_} 0 1 ${u} ${d+_} A${_} ${_} ${_} 0 1 ${u-_} ${d} A${_} ${_} ${_} 0 1 ${u} ${d-_}`:(T=`M${u} ${d-_} A${_} ${_} ${_} ${x<90?0:1} 1 ${k} ${P}`,p&&p.value&&(T=`${T} L${u} ${d}Z`)),r.createElement("svg",{className:"lib-comp-arc",style:{transition:e.getTransition(),width:n,height:i,left:0,top:0,position:"absolute",filter:w},width:n,height:i},r.createElement("path",{d:T,fill:b,fillOpacity:t,strokeOpacity:t,stroke:v,strokeDasharray:g,strokeWidth:m?Math.min(m,Math.min(n,i)/2):m,strokeLinecap:y||"round"}))}}t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(16),a=n(28),s=n(8),l=n(32),c=n(14),u=n(6),d=n(134);n(1137);const h=n(55);class p extends d.default{constructor(e){super(e),this.state=this.builderStyle(e)}builderStyle(e){const{comp:{properties:t,size:n,opacity:r}}=e,{shadow:o,stroke:i,fill:a,radius:l}=t,u=c.StyleHelper.initCSSStyleParser(t),d=this.parserTextStyle(e);let p=!0;(null==a?void 0:a.disabled)&&(null==i?void 0:i.disabled)&&(p=!1);let f={};(null==o?void 0:o.disabled)||(f=p?u.getShadowStyle():u.getTextShadow(1/h.FontBoxScale));return{style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({width:s.round(n.width),height:s.round(n.height)},(null==a?void 0:a.disabled)?{}:u.getFillStyle(n)),(null==i?void 0:i.disabled)?{}:u.getStrokeStyle()),p?f:{}),(null==l?void 0:l.disabled)?{}:u.getRadiusStyle(n)),{opacity:100===r?void 0:(null!=r?r:1)/100,transition:e.comp.getTransition()}),textStyle:d}}UNSAFE_componentWillReceiveProps(e){this.setState(this.builderStyle(e))}renderRadialDiv(){var e;const{comp:{properties:t,type:n,size:s,opacity:l}}=this.props,d=null===(e=t.fill)||void 0===e?void 0:e.color;if(!d)return null;const h=c.StyleHelper.initCSSStyleParser(t),p=n===u.CEllipse,f=this.props.comp.getTransition(),m=Object.assign({opacity:(null!=l?l:1)/100,transition:f},h.getRadiusStyle(s),p?{borderRadius:"50%"}:void 0),g=i.reviseRadialGradient(d,s),{colorStops:v,to:y,from:b,angle:w,widthRatio:C}=g,_=i.fullColorStops(v),{x:x,y:S}=null!=b?b:{x:.5,y:.5},{r:k}=null!=y?y:{r:.5};if(!k)return Object.assign(m,{background:i.parseColorToString(_[_.length-1].color)}),r.createElement("div",{className:"radial-container",style:m});const P={height:s.height*k*2,width:s.height*k*2*(null!=C?C:1)},T=null!=w?w:0,E=(x-.5)*s.width,O=(S-.5)*s.height,M=E+(s.width-P.width)/2,A=O+(s.height-P.height)/2,D=a.createBoundsBySize(P),I=a.initBoundsWithPositionAndSize({x:-M,y:-A},s),L=a.center(D),N=a.rotate(I,{x:L.left,y:L.top},-T),j=this.getScaleByBoundsCoverOne(D,N),R={height:P.height*j,width:P.width*j};if(1!==j){_.forEach(e=>{var t;return e.point=(null!==(t=e.point)&&void 0!==t?t:0)/j});const e=o.cloneDeep(_[_.length-1]);e.point=1,_.push(e)}const z=E+(s.width-R.width)/2,F=O+(s.height-R.height)/2;if(!_.length)return null;const B={width:R.width,height:R.height,transformOrigin:"center",transform:`translate(${z}px, ${F}px) rotate(${T}deg)`,background:`radial-gradient(closest-side, ${i.parseGradientColorToString(_)})`,transition:f};return r.createElement("div",{className:"radial-container",style:m},r.createElement("div",{className:"radial-fill",style:B}))}getScaleByBoundsCoverOne(e,t){const{left:n,right:r,top:o,bottom:i,width:a,height:l}=e,{left:c,right:u,top:d,bottom:h}=t,p=s.max(n-c,u-r,0),f=s.max(o-d,h-i,0);return s.max(p/a*2,f/l*2)+1}render(){const{comp:{text:e,properties:t,type:n},isPreview:o,isChildOfPath:i}=this.props;let{style:a}=this.state,s=!0;(i||o&&!e)&&(s=!1);const c=n===u.CEllipse;c&&(a=Object.assign({},a,{borderRadius:"50%"}));const{fill:d}=t,h=(null==d?void 0:d.type)===l.FillType.radial&&!d.disabled;return h&&(a=Object.assign({},a,{background:void 0})),r.createElement(r.Fragment,null,h&&this.renderRadialDiv(),r.createElement("div",{className:c?"lib-comp-circle":"lib-comp-rect",style:a},s&&this.renderTextFragment(e,t,1)))}}t.default=p},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(150),i=n(18),a=n(14),s=n(115);n(1139);t.default=e=>{const{comp:t}=e,{size:n,opacity:l,properties:c,value:u}=t,d=t.components[0],{radius:h,stroke:p,textStyle:f}=c,m=a.StyleHelper.initCSSStyleParser(c),g=Object.assign(Object.assign(Object.assign(Object.assign({},m.getFillStyle(n)),m.getRadiusStyle(n)),m.getShadowStyle()),{opacity:a.StyleHelper.getOpacity(l)}),{position:v,size:y}=d,b=f?{textStyle:Object.assign(Object.assign({},f),{fontSize:2*o.default.value(f.fontSize,14)})}:{},w=Object.assign({left:v.x,top:v.y,width:2*y.width,height:2*y.height,lineHeight:2*y.height+"px",opacity:a.StyleHelper.getOpacity(d.opacity)},a.StyleHelper.createCSSStyleParser(b).getTextStyle());return r.createElement("div",{className:"lib-comp-button",style:g},r.createElement(s.default,{size:n,properties:{radius:h,stroke:p}}),r.createElement("label",{className:"lib-comp-button-text",style:w},i.transBlankChart(u)))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(18),a=n(14),s=n(47);n(1141);const l=n(8),c=n(16),u=n(20);function d(e){var t;const{comp:n}=e,r=n,{opacity:o}=r,d=r.getComponentByAlias("icon")||r.components[0],h=d.getComponentByAlias("selectIcon")||d.components[0],p=r.getComponentByAlias("text")||r.components[1],{value:f,properties:m,size:g,position:v}=p,{properties:y,size:b}=d,{type:w,properties:C,size:_,value:x,position:S,hidden:k}=h,P=a.StyleHelper.createCSSStyleParser(y),T=a.StyleHelper.createCSSStyleParser(m),E=a.StyleHelper.initSVGStyleParser(C),O="path"===w?s.transformPathDataToPath(s.scalePath(x,{x:1,y:1})):"",{size:M,style:A}=T.getTextStyleData(g,m.textStyle);let D=void 0;return"icon"===w&&(D={style:{fontFamily:x.fontName,fontSize:l.min(_.width,_.height),lineHeight:_.height+"px",color:c.parseColorToString((null===(t=C.icon)||void 0===t?void 0:t.color)||u.DefaultIconColor),transform:"",transformOrigin:""},text:String.fromCharCode(x.iconCode)},_.height<12&&(D.style.transformOrigin="0 0",D.style.transform=`scale(${_.height/12})`)),{opacity:a.StyleHelper.getOpacity(o),checked:r.selected||!k,text:i.transBlankChart(""+f),icon:O,textStyle:Object.assign(Object.assign(Object.assign({left:v.x,top:v.y},M),A),{opacity:a.StyleHelper.getOpacity(null==p?void 0:p.opacity)}),checkBounds:Object.assign(Object.assign({},S),_),checkViewerStyle:"path"===w?{stroke:E.getStroke(),style:{opacity:a.StyleHelper.getOpacity(null==h?void 0:h.opacity)}}:void 0,checkIconStyle:D,boxStyle:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),P.getRadiusStyle(b)),P.getStrokeStyle()),P.getFillStyle(b)),P.getShadowStyle()),{opacity:a.StyleHelper.getOpacity(d.opacity)})}}t.default=e=>{const{checked:t,text:n,textStyle:i,checkViewerStyle:a,checkIconStyle:s,checkBounds:{x:l,y:c,width:u,height:h},boxStyle:p,icon:f,opacity:m}=o.memoize(d)(e);return r.createElement("div",{className:"lib-comp-checkbox",style:{opacity:m}},r.createElement("div",{className:"lib-comp-checker-box",style:p},t&&a&&r.createElement("svg",{className:"lib-comp-checker-icon",style:Object.assign({left:l,top:c,width:u,height:h},a.style)},r.createElement("path",Object.assign({},a.stroke,{d:f,fill:"none"}))),t&&s&&r.createElement("label",{className:"lib-comp-checker-icon",style:Object.assign({left:l,top:c,width:u,height:h},s.style)},s.text)),r.createElement("label",{className:"lib-comp-checker-text",style:i},n))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(18),a=n(14);function s(e){const{comp:t}=e,n=t,{opacity:r}=n,o=n.getComponentByAlias("icon"),s=o.getComponentByAlias("innerCircle")||o.components[0],l=n.getComponentByAlias("generalText"),{value:c,properties:u,size:d,position:h}=l,{properties:p,size:f}=o,{properties:m,size:g,hidden:v}=s,y=a.StyleHelper.createCSSStyleParser(p),b=a.StyleHelper.createCSSStyleParser(u),w=a.StyleHelper.createCSSStyleParser(m),{size:C,style:_}=b.getTextStyleData(d,u.textStyle);return{opacity:a.StyleHelper.getOpacity(r),checked:n.selected||!v,text:i.transBlankChart(""+c),textStyle:Object.assign(Object.assign(Object.assign({left:h.x,top:h.y},C),_),{opacity:a.StyleHelper.getOpacity(null==l?void 0:l.opacity)}),boxSize:f,checkViewerStyle:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({transform:`translate(${(f.width-g.width)/2}px, ${(f.height-g.height)/2}px)`},g),w.getFillStyle(g)),w.getStrokeStyle()),w.getRadiusStyle(g)),{opacity:a.StyleHelper.getOpacity(null==s?void 0:s.opacity)}),boxStyle:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({boxSizing:"border-box"},f),y.getRadiusStyle(f)),y.getStrokeStyle()),y.getFillStyle(f)),y.getShadowStyle()),{opacity:a.StyleHelper.getOpacity(o.opacity)})}}n(1143);t.default=e=>{const{checked:t,text:n,textStyle:i,checkViewerStyle:a,boxStyle:l,opacity:c,boxSize:u}=o.memoize(s)(e);return r.createElement("div",{className:"lib-comp-radio",style:{opacity:c}},r.createElement("div",{className:"lib-comp-checker-box",style:u},r.createElement("div",{className:"lib-comp-checker-border",style:l}),t&&r.createElement("div",{className:"lib-comp-checker-icon",style:a})),r.createElement("label",{className:"lib-comp-checker-text",style:i},n))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(2),a=n(18),s=n(14),l=n(47),c=n(86),u=n(137);n(1146),n(156);const d=n(16),h=n(20),p=n(8);function f(e){var t;const n=e.getComponentByAlias("iconWrapper")||e.components[0],r=e.getComponentByAlias("pureText")||e.components[1],o=n.getComponentByAlias("icon")||n.components[0],{size:i,properties:c}=n,{type:u,size:f,position:m,properties:g,value:v}=o,{size:y,position:b,properties:w,value:C}=r,_=s.StyleHelper.createCSSStyleParser(c),x=s.StyleHelper.createCSSStyleParser(w),S=s.StyleHelper.initSVGStyleParser(g),k=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i),_.getRadiusStyle(i)),_.getStrokeStyle()),_.getRadiusStyle(i)),_.getFillStyle(i)),{opacity:s.StyleHelper.getOpacity(n.opacity)}),P="path"===u?S.getStroke():void 0,T=Object.assign(Object.assign({left:m.x,top:m.y},f),{opacity:s.StyleHelper.getOpacity(o.opacity)}),{size:E,style:O}=x.getTextStyleData(y,w.textStyle),M=Object.assign(Object.assign(Object.assign({left:b.x,top:b.y},E),O),{opacity:s.StyleHelper.getOpacity(r.opacity)});let A="path"===u?l.transformPathDataToPath(l.scalePath(v,{x:1,y:1})):"";return"icon"===u&&(A=String.fromCharCode(v.iconCode),T.fontFamily=v.fontName,T.color=d.parseColorToString((null===(t=g.icon)||void 0===t?void 0:t.color)||h.DefaultIconColor),T.fontSize=p.min(f.width,f.height),T.lineHeight=f.height+"px",f.height<12&&(T.transformOrigin="0 0",T.transform=`scale(${f.height/12}) ${T.transform||""}`)),{boxStyle:k,iconStyle:T,textStyle:M,iconData:A,text:a.transBlankChart(C),iconStroke:P}}t.default=e=>{const{comp:t,isPreview:n,itemEvents:a}=e,l=t,{opacity:d,components:h}=l,p=o.memoize(f),m=n?o.memoize(u.getListEvents)(h,a):{};return r.createElement("div",{className:i.default("lib-comp-checkbox-group",{preview:n}),style:{opacity:s.StyleHelper.getOpacity(d)}},h.map(e=>{const{size:t,position:o,selected:a,id:s}=e,l=Object.assign({left:o.x,top:o.y},t),{iconStyle:u,iconStroke:d,iconData:h,textStyle:f,text:g,boxStyle:v}=p(e),y=m[s],b=c.hasInteraction(e);return r.createElement("div",Object.assign({key:s,className:i.default("lib-comp-checkbox-item",{"item-interaction-flag":b,"item-hot-area":n&&b}),style:l},y||{}),r.createElement("div",{className:"lib-comp-checkbox-item-box",style:v},a&&d&&r.createElement("svg",{className:"lib-comp-checkbox-item-icon",style:u},r.createElement("path",Object.assign({d:h},d,{fill:"none"}))),a&&!d&&r.createElement("label",{className:"lib-comp-checkbox-item-icon",style:u},h)),r.createElement("label",{className:"lib-comp-checkbox-item-value",style:f},g))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentPositionModes=t.FragmentOutEffectNames=t.FragmentEffectNames=t.ContentPanelEffectNames=t.PageSkipEffectNames=t.OnlyLinearAnimateEffectNames=t.AnimateEffectNames=t.CommandNames=t.EventNames=void 0;const r=n(46),o=n(177),i=n(4);t.EventNames={[r.EventTypes.click]:i.default("property.interaction.click"),[r.EventTypes.doubleClick]:i.default("property.interaction.doubleClick"),[r.EventTypes.contextMenu]:i.default("property.interaction.contextMenu"),[r.EventTypes.mouseDown]:i.default("property.interaction.mouseDown"),[r.EventTypes.mouseUp]:i.default("property.interaction.mouseUp"),[r.EventTypes.mouseEnter]:i.default("property.interaction.mouseEnter"),[r.EventTypes.mouseLeave]:i.default("property.interaction.mouseLeave"),[r.EventTypes.loaded]:i.default("property.interaction.loaded"),[r.EventTypes.afterMove]:i.default("property.interaction.afterMove"),[r.EventTypes.afterZoom]:i.default("property.interaction.afterZoom"),[r.EventTypes.afterRotate]:i.default("property.interaction.afterRotate"),[r.EventTypes.afterVisible]:i.default("property.interaction.afterVisible"),[r.EventTypes.afterHide]:i.default("property.interaction.afterHide"),[r.EventTypes.afterResize]:i.default("property.interaction.afterResize"),[r.EventTypes.checked]:i.default("property.interaction.checked"),[r.EventTypes.unChecked]:i.default("property.interaction.unChecked"),[r.EventTypes.toggleCheck]:i.default("property.interaction.toggleCheck"),[r.EventTypes.focus]:i.default("property.interaction.focus"),[r.EventTypes.blur]:i.default("property.interaction.blur"),[r.EventTypes.scroll]:i.default("property.interaction.scroll")},t.CommandNames={[r.CommandTypes.move]:i.default("property.interaction.move"),[r.CommandTypes.resize]:i.default("property.interaction.resize"),[r.CommandTypes.rotation]:i.default("property.interaction.rotation"),[r.CommandTypes.toggleVisible]:i.default("property.interaction.toggleVisible"),[r.CommandTypes.zoom]:i.default("property.interaction.zoom"),[r.CommandTypes.toggleState]:i.default("property.interaction.toggleState"),[r.CommandTypes.switchContent]:i.default("property.interaction.switchContent"),[r.CommandTypes.scroll]:i.default("property.interaction.scroll")},t.AnimateEffectNames={[r.AnimateEffects.none]:i.default("property.interaction.noTiming"),[r.AnimateEffects.linear]:i.default("property.interaction.linear"),[r.AnimateEffects.easeIn]:i.default("property.interaction.easeIn"),[r.AnimateEffects.easeOut]:i.default("property.interaction.easeOut"),[r.AnimateEffects.easeInOut]:i.default("property.interaction.easeInOut")},t.OnlyLinearAnimateEffectNames={[r.AnimateEffects.none]:i.default("property.interaction.noTiming"),[r.AnimateEffects.linear]:i.default("property.interaction.linear")},t.PageSkipEffectNames={[r.PageSkipEffects.none]:i.default("property.interaction.none"),[r.PageSkipEffects.pushToBottom]:i.default("property.interaction.pushToBottom"),[r.PageSkipEffects.pushToTop]:i.default("property.interaction.pushToTop"),[r.PageSkipEffects.pushToRight]:i.default("property.interaction.pushToRight"),[r.PageSkipEffects.pushToLeft]:i.default("property.interaction.pushToLeft"),[r.PageSkipEffects.slideToBottom]:i.default("property.interaction.slideToBottom"),[r.PageSkipEffects.slideToTop]:i.default("property.interaction.slideToTop"),[r.PageSkipEffects.slideToRight]:i.default("property.interaction.slideToRight"),[r.PageSkipEffects.slideToLeft]:i.default("property.interaction.slideToLeft"),[r.PageSkipEffects.fadeIn]:i.default("property.interaction.fadeIn"),[r.PageSkipEffects.zoomIn]:i.default("property.interaction.zoomIn"),[r.PageSkipEffects.flipInTop]:i.default("property.interaction.flipInTop"),[r.PageSkipEffects.flipInBottom]:i.default("property.interaction.flipInBottom"),[r.PageSkipEffects.flipInLeft]:i.default("property.interaction.flipInLeft"),[r.PageSkipEffects.flipInRight]:i.default("property.interaction.flipInRight")},t.ContentPanelEffectNames={[r.PageSkipEffects.none]:i.default("property.interaction.none"),[r.PageSkipEffects.pushToBottom]:i.default("property.interaction.pushToBottom"),[r.PageSkipEffects.pushToTop]:i.default("property.interaction.pushToTop"),[r.PageSkipEffects.pushToRight]:i.default("property.interaction.pushToRight"),[r.PageSkipEffects.pushToLeft]:i.default("property.interaction.pushToLeft"),[r.PageSkipEffects.slideToBottom]:i.default("property.interaction.slideToBottom"),[r.PageSkipEffects.slideToTop]:i.default("property.interaction.slideToTop"),[r.PageSkipEffects.slideToRight]:i.default("property.interaction.slideToRight"),[r.PageSkipEffects.slideToLeft]:i.default("property.interaction.slideToLeft"),[r.PageSkipEffects.fadeIn]:i.default("property.interaction.fadeIn")},t.FragmentEffectNames={[r.PageSkipEffects.none]:i.default("property.interaction.none"),[r.PageSkipEffects.fadeIn]:i.default("property.interaction.fadeIn"),[r.PageSkipEffects.zoomIn]:i.default("property.interaction.zoomIn")},t.FragmentOutEffectNames={[r.PageSkipEffects.none]:i.default("property.interaction.none"),[r.PageSkipEffects.fadeIn]:i.default("property.interaction.fadeOut"),[r.PageSkipEffects.zoomIn]:i.default("property.interaction.zoomOut")},t.FragmentPositionModes={[o.FragmentPositionMode.Custom]:i.default("property.interaction.custom"),[o.FragmentPositionMode.Center]:i.default("property.interaction.center"),[o.FragmentPositionMode.Top]:i.default("property.interaction.top"),[o.FragmentPositionMode.Right]:i.default("property.interaction.right"),[o.FragmentPositionMode.Bottom]:i.default("property.interaction.bottom"),[o.FragmentPositionMode.Left]:i.default("property.interaction.left")}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(2),a=n(18),s=n(14),l=n(86),c=n(137);function u(e){const t=e.getComponentByAlias("iconWrapper")||e.components[0],n=t.position,r=e.getComponentByAlias("outerEllipse")||t.components[0],o=e.getComponentByAlias("pureText")||e.components[1],i=t.getComponentByAlias("innerEllipse")||t.components[1],{size:a,properties:l}=r,{size:c,position:u,properties:d}=i,{size:h,position:p,properties:f,value:m}=o,g=s.StyleHelper.createCSSStyleParser(l),v=s.StyleHelper.createCSSStyleParser(f),y=s.StyleHelper.createCSSStyleParser(d),{size:b,style:w}=v.getTextStyleData(h,f.textStyle);return{boxStyle:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({transform:`translate(${n.x}, ${n.y}px)`},a),g.getStrokeStyle()),g.getRadiusStyle(a)),g.getFillStyle(a)),{opacity:s.StyleHelper.getOpacity(r.opacity)}),iconStyle:Object.assign(Object.assign(Object.assign(Object.assign({transform:`translate(${u.x+n.x}px, ${u.y+n.y}px)`},c),y.getFillStyle(c)),y.getStrokeStyle()),{opacity:s.StyleHelper.getOpacity(i.opacity)}),textStyle:Object.assign(Object.assign(Object.assign({left:p.x,top:p.y},b),w),{opacity:s.StyleHelper.getOpacity(o.opacity)}),text:m}}n(1148),n(156);t.default=e=>{const{comp:t,isPreview:n,itemEvents:d}=e,h=t,{opacity:p,components:f}=h,m=o.memoize(u),g=n?o.memoize(c.getListEvents)(f,d):{};return r.createElement("div",{className:i.default("lib-comp-radio-group",{preview:n}),style:{opacity:s.StyleHelper.getOpacity(p)}},f.map(e=>{const t=e,o=t.getComponentByAlias("iconWrapper")||t.components[0],{size:c,position:u,id:d}=e,h=Object.assign(Object.assign({left:u.x,top:u.y},c),{opacity:s.StyleHelper.getOpacity(e.opacity)}),{iconStyle:p,textStyle:f,text:v,boxStyle:y}=m(t),b={height:c.height,width:y.width,opacity:s.StyleHelper.getOpacity(o.opacity)},w=l.hasInteraction(e);return r.createElement("div",Object.assign({key:d,className:i.default("lib-comp-radio-item",{"item-interaction-flag":w,"item-hot-area":n&&w}),style:h},g[e.id]||{}),r.createElement("div",{className:"lib-comp-radio-item-box",style:b},r.createElement("div",{className:"lib-comp-radio-item-border",style:y}),r.createElement("div",{className:"lib-comp-radio-item-icon",style:p})),r.createElement("label",{className:"lib-comp-radio-item-value",style:f},a.transBlankChart(v)))}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(14);n(1150);t.default=e=>{const{style:t,progressStyle:n}=function(e){var t,n;const{size:r,opacity:i,properties:a}=e,s=e.getComponentByAlias("progress")||e.components[0],{size:l,properties:c,position:u}=s,d=o.StyleHelper.createCSSStyleParser(a),h=o.StyleHelper.createCSSStyleParser(c);let p=0;return(null===(t=a.stroke)||void 0===t?void 0:t.disabled)||(p=(null===(n=a.stroke)||void 0===n?void 0:n.thickness)||0),{style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({opacity:o.StyleHelper.getOpacity(i)},r),d.getStrokeStyle()),d.getFillStyle(r)),d.getRadiusStyle(r)),d.getShadowStyle()),progressStyle:Object.assign(Object.assign(Object.assign(Object.assign({left:u.x-p,top:(r.height-l.height)/2-p},l),h.getFillStyle(l)),h.getStrokeStyle()),h.getRadiusStyle(l))}}(e.comp);return r.createElement("div",{className:"lib-comp-progress",style:t},r.createElement("div",{className:"lib-comp-progress-indicator",style:n}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(16),a=n(14),s=n(86);var l=a.StyleHelper.initCSSStyleParser;const c=n(137);n(1152);t.default=e=>{const{comp:t,isPreview:n,itemEvents:u}=e,d=t,{size:h,opacity:p}=d,f=n?c.getListEvents(d.components,u):{};return r.createElement("div",{className:o.default("lib-comp-score",{preview:n}),style:Object.assign(Object.assign({},h),{opacity:a.StyleHelper.getOpacity(p)})},d.components.map(e=>{const{style:t,value:c}=function(e){const{size:t,properties:n,value:r,opacity:o}=e,{width:s,height:c}=t,u=Math.min(s,c),d=Math.max(12,u),h=l(n),p=r,f=Object.assign({width:s,height:c,fontSize:d,fontFamily:p&&p.fontName||"",lineHeight:d+"px",color:n.icon?i.parseColorToString(n.icon.color):"#000",transition:e.getTransition(),opacity:a.StyleHelper.getOpacity(o)},h.getTextShadow());let m=1;return u<12&&(m=u/12,f.width=f.height=12,f.transform=`scale(${m})`),{style:f,value:p?String.fromCharCode(p.iconCode):""}}(e);return r.createElement("div",Object.assign({className:o.default("lib-comp-score-item",{"item-hot-area":n&&s.hasInteraction(e)}),key:e.id,style:t},f[e.id]||{}),c)}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(14);var i=o.StyleHelper.getOpacity;n(1154);t.default=e=>{const{switchStyle:t,buttonStyle:n}=function(e){const{shadow:t}=e.properties,n=e.getComponentByAlias("roundedRect")||e.components[0],r=e.getComponentByAlias("button")||e.components[1],{size:a,properties:s}=n,{size:l,position:c,properties:u}=r,d=o.StyleHelper.createCSSStyleParser(Object.assign(Object.assign({},s),{shadow:t})),h=o.StyleHelper.createCSSStyleParser(u);return{switchStyle:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a),d.getRadiusStyle(a)),d.getFillStyle(a)),d.getStrokeStyle()),d.getShadowStyle()),{opacity:i(e.opacity)}),buttonStyle:Object.assign(Object.assign(Object.assign(Object.assign({left:c.x},l),h.getFillStyle(l)),h.getStrokeStyle()),{borderRadius:"100%",opacity:o.StyleHelper.getOpacity(r.opacity)})}}(e.comp);return r.createElement("div",{className:"lib-comp-switch",style:t},r.createElement("div",{className:"lib-comp-switch-button",style:n}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(14);var i=o.StyleHelper.initSVGStyleParser,a=o.StyleHelper.getOpacity;n(1156);t.default=e=>{const t=e.comp,{size:{width:n,height:s},opacity:l,components:c}=t,u=t.getComponentByAlias("track")||c[0],d=t.getComponentByAlias("progressBar")||c[1],h=i(u.properties),p={filter:h.getShadow(),opacity:a(l)},{stroke:f,strokeDasharray:m,strokeWidth:g}=h.getStroke(),v=i(d.properties),{stroke:y,strokeDasharray:b}=v.getStroke(),w=function(e){const{size:{width:t,height:n},properties:r}=e,i=t/2,a=n/2,{angle:s,close:l}=r,c=o.StyleHelper.initSVGStyleParser(r),{strokeWidth:u,stroke:d}=c.getStroke(),h="none"===d?0:u||0,p=(Math.min(t,n)-h)/2;let f=s.value.value;f=Math.max(0,Math.min(f,100)),f=3.6*f-90;const m=f/180*Math.PI,g=i+p*Math.cos(m),v=a+p*Math.sin(m);let y="";return f+90===360?y=`M${i} ${a-p} A${p} ${p} ${p} 0 1 ${i+p} ${a} A${p} ${p} ${p} 0 1 ${i} ${a+p} A${p} ${p} ${p} 0 1 ${i-p} ${a} A${p} ${p} ${p} 0 1 ${i} ${a-p}`:(y=`M${i} ${a-p} A${p} ${p} ${p} ${f<90?0:1} 1 ${g} ${v}`,l&&l.value&&(y=`${y} L${i} ${a}Z`)),y}(d),C=n-(g||0);return r.createElement("svg",{className:"lib-comp-circle-progreaa",width:n,height:s,viewBox:`0 0 ${n} ${s}`,style:p},r.createElement("circle",{r:C/2,cx:n/2,cy:s/2,fill:"none",strokeLinecap:"round",stroke:f,strokeWidth:g,strokeDasharray:m,strokeOpacity:o.StyleHelper.getOpacity(u.opacity)}),r.createElement("path",{d:w,fill:"none",strokeLinecap:"round",stroke:y,strokeWidth:g,strokeDasharray:b,strokeOpacity:o.StyleHelper.getOpacity(d.opacity)}))}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(14),a=n(86),s=n(137);n(1159),n(156);const l=n(18);t.default=e=>{const{comp:t,itemEvents:n,isPreview:c}=e,u=t,{size:d,properties:h,opacity:p,components:f}=u,m=i.StyleHelper.initCSSStyleParser(h),g=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),{opacity:i.StyleHelper.getOpacity(p)}),m.getFillStyle(d)),m.getStrokeStyle()),m.getRadiusStyle(d)),m.getShadowStyle()),{separator:v}=h,y=i.StyleHelper.parserSeparator("right",v),b=f.length,w=c?s.getListEvents(f,n):{};return r.createElement("div",{className:o.default("lib-comp-segment",{preview:c}),style:g},f.map((e,t)=>{var n;const{properties:s,size:{width:u}}=e,d=e,h=d.getComponentByAlias("text")||d.components[0],p=i.StyleHelper.createCSSStyleParser(s),{properties:f}=h,m=null===(n=f.textStyle)||void 0===n?void 0:n.textAlign,{style:g}=i.StyleHelper.createCSSStyleParser({}).getTextStyleData(h.size,f.textStyle),v=Object.assign(Object.assign(Object.assign(Object.assign({width:u},p.getFillStyle()),g),t<b-1?y:{}),{opacity:i.StyleHelper.getOpacity(e.opacity)}),C=a.hasInteraction(e);return r.createElement("div",Object.assign({key:e.id,className:o.default("lib-comp-segment-item",m,{"item-interaction-flag":C,"item-hot-area":c&&C}),style:v},w[e.id]||{}),r.createElement("label",{className:"lib-comp-segment-item-value",style:{opacity:i.StyleHelper.getOpacity(h.opacity)}},l.transBlankChart(h.value)))}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(14),a=n(86),s=n(137);n(1161),n(156);const l=n(18);t.default=e=>{const{comp:t,itemEvents:n,isPreview:c}=e,u=t,{size:d,properties:{separator:h,separatorRatio:p},opacity:f,components:m}=u,g=!!h&&!h.disabled,v=m.length,y=Object.assign(Object.assign({},d),{opacity:i.StyleHelper.getOpacity(f)}),b=g?Object.assign(Object.assign({},i.StyleHelper.parserSeparator("right",h)),{width:0,height:(p?p.value.value:100)+"%"}):{},w=c?s.getListEvents(m,n):{};return r.createElement("div",{className:o.default("lib-comp-tabs",{preview:c}),style:y},m.map((e,t)=>{const n=a.hasInteraction(e),s=e,u=s.getComponentByAlias("indicator")||s.components[1],d=s.getComponentByAlias("text")||s.components[0],{properties:{fill:h,stroke:p},size:f}=s,{properties:{textStyle:m},position:y}=d,C=i.StyleHelper.initCSSStyleParser({fill:h,stroke:p,textStyle:m}),{style:_}=C.getTextStyleData(d.size,m),x=Object.assign(Object.assign(Object.assign(Object.assign({},f),C.getFillStyle()),_),{opacity:i.StyleHelper.getOpacity(e.opacity)}),S={top:y.y,opacity:i.StyleHelper.getOpacity(null==d?void 0:d.opacity)};let k={};if(u){const e=i.StyleHelper.createCSSStyleParser(u.properties),t=u.size;k=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({top:u.position.y},t),e.getFillStyle()),e.getRadiusStyle(t)),e.getStrokeStyle()),{opacity:i.StyleHelper.getOpacity(u.opacity)})}return r.createElement("div",Object.assign({className:o.default("lib-comp-tabs-item",{"item-interaction-flag":n,"item-hot-area":c&&n}),key:e.id,style:x},w[e.id]||{}),r.createElement("label",{className:"lib-comp-tabs-item-value",style:S},l.transBlankChart(""+(null==d?void 0:d.value))),g&&t<v-1&&r.createElement("div",{className:"lib-comp-tabs-separator",style:b}),r.createElement("div",{className:"lib-comp-tabs-selected-indicator",style:k}))}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(16),s=n(18),l=n(14),c=n(86),u=n(20),d=n(137);n(1163),n(156);t.default=e=>{const{comp:t,itemEvents:n,isPreview:h}=e,p=t,{size:f,opacity:m,properties:g,components:v}=p,y=h?i.memoize(d.getListEvents)(v,n):{},b=v.map(e=>{const t=e;return t.getComponentByAlias("text")||t.components[0]}),w={onItemLeave:null==n?void 0:n.onItemLeave,onItemEnter:null==n?void 0:n.onItemEnter},C=h?d.getListEvents(b,w):{},_=i.memoize(()=>Object.assign(Object.assign({},f),{opacity:l.StyleHelper.getOpacity(m),filter:l.StyleHelper.parserDropShadow(g.shadow?Object.assign(Object.assign({},g.shadow),{blur:(g.shadow.blur||0)/2}):void 0)}),()=>""+t.id)();return r.createElement("div",{className:o.default("lib-comp-breadcrumbs",{preview:h}),style:_},v.map(e=>{const t=e,{components:n,id:d,size:{width:p}}=t,f=t.getComponentByAlias("text")||n[0],m=t.getComponentByAlias("icon")||n[1],{properties:g,size:{width:v}}=f,{properties:{icon:b},size:w}=m,{fontName:_,iconCode:x}=m.value,S=l.StyleHelper.createCSSStyleParser(g),{style:k}=S.getTextStyleData(f.size,g.textStyle),P=i.memoize(()=>Object.assign(Object.assign({width:v},k),{opacity:l.StyleHelper.getOpacity(f.opacity)}),()=>""+f.id)(),T=i.memoize(()=>Object.assign(Object.assign({color:a.parseColorToString((null==b?void 0:b.color)||u.BlackColor)},w),{fontFamily:_,opacity:l.StyleHelper.getOpacity(m.opacity)}),()=>""+m.id)(),E=c.hasInteraction(e);return r.createElement("div",Object.assign({key:d,className:o.default("lib-comp-breadcrumbs-item",{"item-interaction-flag":E,"item-hot-area":h&&c.hasInteraction(e)}),style:{width:p,opacity:l.StyleHelper.getOpacity(e.opacity)}},y[d]||{}),r.createElement("label",Object.assign({className:o.default("lib-comp-breadcrumbs-value"),style:P},C[f.id]),s.transBlankChart(f.value)),r.createElement("label",{className:"lib-comp-breadcrumbs-icon",style:T},String.fromCharCode(x)))}))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(14),i=n(414);n(1165);class a extends r.Component{constructor(e){super(e),this.handleUpClick=()=>{this.doStep(1)},this.handleDownClick=()=>{this.doStep(-1)},this.handleInputChange=e=>{const t=e.target,n=t.value;/^-?\d*\.?\d*$/.test(n)&&this.setState({value:t.value})},this.state={value:""+(e.comp.value||0)}}doStep(e){const{value:t}=this.state,n=t.indexOf(".");let r=0,o=e;-1!==n&&(r=t.substr(n+1).length,o=Math.pow(10,-r));const i=parseFloat(t)+o*e;this.setState({value:i.toFixed(r)})}render(){const{isPreview:e,comp:t}=this.props,n=t,{size:a,properties:s,opacity:l,components:c,disabled:u,value:d}=n,h=o.StyleHelper.createCSSStyleParser(s),p=Object.assign(Object.assign(Object.assign(Object.assign({},a),h.getFillStyle(a)),h.getRadiusStyle(a)),h.getShadowStyle()),f=e?this.state.value:d,m=n.getComponentByAlias("value")||c[1],g=n.getComponentByAlias("arrowTotalWrapper")||c[0],v=g.getComponentByAlias("upArrow")||g.components[0],y=g.getComponentByAlias("downArrow")||g.components[1],{size:b,position:w,properties:C}=m,{textStyle:_}=C,{fontSize:x}=_||{},S=Object.assign(Object.assign({},C),{textStyle:_?Object.assign(Object.assign({},_),{fontSize:2*(x||14)}):void 0}),k=o.StyleHelper.createCSSStyleParser(S),P=Object.assign(Object.assign(Object.assign({width:2*b.width,height:2*b.height,left:w.x,top:w.y},k.getTextStyle()),k.getPaddingStyle(!0)),{lineHeight:2*b.height+"px",pointerEvents:!e||u?"none":"auto",opacity:o.StyleHelper.getOpacity(m.opacity)});return r.createElement("div",{className:"lib-comp-numeric",style:Object.assign(Object.assign(Object.assign({},a),{opacity:o.StyleHelper.getOpacity(l)}),h.getRadiusStyle(a))},r.createElement("div",{className:"lib-comp-numeric-border",style:p}),r.createElement("input",{className:"lib-comp-numeric-value",value:""+f,style:P,readOnly:!e,onChange:this.handleInputChange}),r.createElement("div",{className:"lib-comp-numeric-buttons",style:Object.assign(Object.assign({},g.size),{left:g.position.x})},[v,y].map((e,t)=>{const n=e.components[0],a=o.StyleHelper.createCSSStyleParser(e.properties),s=Object.assign(Object.assign({},e.size),{opacity:o.StyleHelper.getOpacity(e.opacity)});return r.createElement("div",{key:e.id,className:"lib-comp-numeric-button",style:Object.assign(Object.assign({},s),a.getFillStyle()),onClick:t?this.handleDownClick:this.handleUpClick},r.createElement(i.default,{comp:n,className:"lib-comp-numeric-button-icon"}),r.createElement("div",{className:"lib-comp-numeric-button-border",style:Object.assign(Object.assign({},s),a.getStrokeStyle())}))})),r.createElement("div",{className:"lib-comp-numeric-border",style:Object.assign(Object.assign({},h.getRadiusStyle(a)),h.getStrokeStyle())}))}}t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(68),a=n(12),s=n(14);var l,c;n(1167),function(e){e[e.startEast=0]="startEast",e[e.endEast=360]="endEast",e[e.south=90]="south",e[e.west=180]="west",e[e.north=270]="north"}(l||(l={})),function(e){e[e.first=1]="first",e[e.second=2]="second",e[e.third=3]="third",e[e.fourth=4]="fourth"}(c||(c={}));class u extends r.Component{constructor(e){super(e),this.parserStyle=(e,t)=>{const n=e.comp,{properties:{progress:r},components:i,size:{width:a,height:l}}=n,c=n.getComponentByAlias("tracker")||i[0],u=n.getComponentByAlias("progress")||i[1],d=u.getComponentByAlias("progressRect")||u.components[0],h=n.getComponentByAlias("indicator")||i[2],p=n.getComponentByAlias("ellipse")||h.components[0],{properties:f,size:m,position:g}=c,v=s.StyleHelper.createCSSStyleParser(f),{properties:y,size:b}=d,w=s.StyleHelper.createCSSStyleParser(y),{size:C,properties:_}=p,x=s.StyleHelper.createCSSStyleParser(_);let S=0;return o.isUndefined(t)?r&&(S=r.value.value):S=t,{value:S,ballStyle:Object.assign(Object.assign(Object.assign(Object.assign({left:Math.round((a-C.width)*S/100),top:Math.round((l-C.height)/2)},C),x.getFillStyle()),x.getStrokeStyle()),{opacity:s.StyleHelper.getOpacity(p.opacity)}),trackStyle:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({left:g.x,top:g.y},m),v.getFillStyle()),v.getRadiusStyle(m)),v.getStrokeStyle()),{opacity:s.StyleHelper.getOpacity(c.opacity)}),progressStyle:Object.assign(Object.assign(Object.assign(Object.assign({width:S+"%",height:b.height},w.getStrokeStyle()),w.getFillStyle()),w.getRadiusStyle(b)),{opacity:s.StyleHelper.getOpacity(d.opacity)})}},this.handleTrackMouseDown=e=>{const{comp:t,isPreview:n}=this.props;if(!n)return;const r=t.getComponentByAlias("ellipse").size.width,o=e.nativeEvent.offsetX/(t.size.width-r)*100;this.doSubmitValue(o)},this.handleBallMouseDown=e=>{var t;e.stopPropagation();const{scale:n,comp:r}=this.props,o=r,{rotate:a}=r,{min:s,max:c}=Math;let u=n||1;const d=o.getComponentByAlias("indicator",!0),h=d.position.x,p=o.size.width-d.size.width,{width:f,height:m}=o.getViewBoundsInArtboard();let g=h;this.pressed=!0,e.preventDefault(),null===(t=document.getSelection())||void 0===t||t.empty(),i.dragDelegate((e,t)=>{e.preventDefault();const{x:n,y:r}=t;let o=0;if(l[a])o=this.doAxisDirection(a,n/u,r/u);else{let e=0,t=0;const i=f>=m;i?(e=n,t=n/f*m):(e=r/m*f,t=r),o=this.doQuadrantDirection({x:e/u,y:t/u},a,i)}g=c(0,s(h+o,p)),this.setState(this.parserStyle(this.props,100*g/p))},()=>{this.doSubmitValue(100*g/p)})},this.doSubmitValue=e=>{const{onInnerAction:t,comp:n}=this.props;if(t){const{width:r}=n.size,o=n,i=o.getComponentByAlias("progress",!0),s=o.getComponentByAlias("indicator",!0),l=Math.max(0,Math.min(100,e)),c=(r-s.size.width)*l/100,u=s.getCurrentPropertiesPath("position/x"),d=i.components[0];t([{comp:s,actions:[a.Ops.replace(u,c)]},{comp:i,actions:[a.Ops.replace(i.getCurrentPropertiesPath("size/width"),c)]},{comp:d,actions:[a.Ops.replace(d.getCurrentPropertiesPath("size/width"),c-d.position.x)]},{comp:n,actions:[a.Ops.replace(n.getCurrentPropertiesPath("properties/progress/value/value"),e)]}])}},this.doCalculateRotateInQuadrant=e=>{let t=0;return e>l.startEast&&e<l.south?t=c.fourth:e>l.south&&e<l.west?t=c.third:e>l.west&&e<l.north?t=c.second:e>l.north&&e<l.endEast&&(t=c.first),t},this.calculateSliderProcess=(e,t)=>{const{round:n,abs:r,hypot:o}=Math;let i=e.x,a=e.y,s=n(o(i,a));return{[c.first]:()=>(!t&&(i=-i),i<0&&(s=-s),s),[c.second]:()=>(s=i<=0?r(s):-s,s),[c.third]:()=>(!t&&(i=-i),i>0&&(s=-s),s),[c.fourth]:()=>(s=i>=0?r(s):-s,s)}},this.doAxisDirection=(e,t,n)=>{const{abs:r}=Math;let o=0;return e===l.startEast?o=t:e===l.south?o=n:e===l.west?o=t>=0?-t:r(t):e===l.north&&(o=n>=0?-n:r(n)),o},this.doQuadrantDirection=(e,t,n)=>{const r=this.doCalculateRotateInQuadrant(t);return this.calculateSliderProcess(e,n)[r]()},this.state=this.parserStyle(e)}UNSAFE_componentWillReceiveProps(e){this.setState(this.parserStyle(e))}render(){const{isPreview:e,comp:t}=this.props,{size:n,opacity:o,disabled:i}=t,{ballStyle:a,trackStyle:l,progressStyle:c}=this.state,u=Object.assign({opacity:s.StyleHelper.getOpacity(o)},n),d=e&&!i;return r.createElement("div",{className:"lib-comp-slider",style:u,onMouseDown:d?this.handleTrackMouseDown:void 0},r.createElement("div",{className:"lib-slider-track",style:l},r.createElement("div",{className:"lib-slider-progress",style:c})),r.createElement("div",{className:"lib-slider-indicator-ball",style:a,onMouseDown:d?this.handleBallMouseDown:void 0}))}}t.default=u},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(8),a=n(14),s=n(414),l=n(115),c=n(413);n(1169);const u=n(18);class d extends r.Component{constructor(e){super(e),this.main=r.createRef(),this.dropDown=r.createRef(),this.needReCalcPopPosition=!1,this.handleWindowClick=e=>{var t,n;const{dropDown:r}=this.state,{target:o}=e,i=o;(null===(t=this.dropDown.current)||void 0===t?void 0:t.contains(i))||(null===(n=this.main.current)||void 0===n?void 0:n.contains(i))||r&&this.setState({dropDown:!1})},this.handleWinScroll=()=>{this.state.dropDown&&this.setState({dropDown:!1})},this.handleMainClick=()=>{const{dropDown:e}=this.state;this.setState({dropDown:!e}),this.calcPopPosition()},this.handleItemClick=(e,t)=>{this.setState({dropDown:!1});const{event:n}=this.props;(null==n?void 0:n.onClick)&&n.onClick(e,t)},this.renderList=()=>{const{comp:e,scale:t}=this.props,n=e,{popPosition:o}=this.state,{size:i,properties:s,components:l,id:u}=n.getComponentByAlias("drop-down")||n.components[1],d=n.getComponentByAlias("list")||l[0],{position:h}=d,p=a.StyleHelper.createCSSStyleParser(s),f=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o),i),p.getFillStyle()),p.getShadowStyle()),p.getStrokeStyle()),p.getRadiusStyle(i)),{transform:`scale(${t||1}, ${t||1})`,paddingTop:h.y,opacity:a.StyleHelper.getOpacity(e.opacity)});return r.createElement("div",{ref:this.dropDown,id:u,className:"lib-comp-select-drop-down",style:f},r.createElement(c.default,{comp:d,itemEvents:this.itemEvents,isPreview:!0}))},this.state={},e.isPreview&&(this.itemEvents={onItemClick:this.handleItemClick})}componentDidMount(){this.props.isPreview&&(window.addEventListener("click",this.handleWindowClick,!0),document.addEventListener("scroll",this.handleWinScroll,!0))}componentWillUnmount(){this.props.isPreview&&(window.removeEventListener("click",this.handleWindowClick,!0),document.removeEventListener("scroll",this.handleWinScroll,!0))}componentDidUpdate(){this.needReCalcPopPosition&&setTimeout(()=>{this.calcPopPosition()}),this.needReCalcPopPosition=!1}UNSAFE_componentWillReceiveProps(e){this.props.isPreview&&this.state.dropDown&&this.props.scale!==e.scale&&(this.needReCalcPopPosition=!0)}calcPopPosition(){if(!this.main.current)return;const{left:e,top:t,bottom:n}=this.main.current.getBoundingClientRect(),{scale:r,comp:o}=this.props,a=o.getComponentByAlias("drop-down").size.height,{innerHeight:s}=window;let l=n;const c=a*r;l+c>s&&t-c>0&&(l=t-c),l=i.round(l);const{popPosition:u}=this.state;u&&u.left===e&&u.top===t||this.setState({popPosition:{left:e,top:l}})}renderDropDown(){return this.state.dropDown?o.createPortal(this.renderList(),document.body):null}renderMain(){var e;const{comp:t,isPreview:n}=this.props,o=t,i=o.getComponentByAlias("main")||o.components[0],[c,d]=i.components,h=d.value||i.value,{properties:p,size:f}=i,{radius:m,border:g,fill:v}=p,y=a.StyleHelper.createCSSStyleParser(p),{position:b}=d,{size:w,style:C}=y.getTextStyleData(d.size,p.textStyle),_=Object.assign(Object.assign({},y.getShadowStyle()),{paddingLeft:d.position.x,opacity:a.StyleHelper.getOpacity(t.opacity)}),x=Object.assign(Object.assign(Object.assign({marginRight:f.width-d.position.x-d.size.width,opacity:a.StyleHelper.getOpacity(d.opacity)},C),w),{top:b.y});return r.createElement("div",{ref:this.main,className:"lib-comp-select-main",onClick:n?this.handleMainClick:void 0,style:_},r.createElement(l.default,{size:f,properties:{fill:v,radius:m,border:g,stroke:o.properties.stroke},zIndex:-1}),r.createElement("label",{className:"lib-comp-select-main-value",style:x},u.transBlankChart(h||(null===(e=t.properties.placeholder)||void 0===e?void 0:e.value))),r.createElement(s.default,{comp:c}))}render(){return r.createElement(r.Fragment,null,this.renderMain(),this.renderDropDown())}}t.default=d},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1171),i=n(16),a=n(14);class s extends r.Component{render(){const{properties:e,value:t,size:n,opacity:s}=this.props.comp,{width:l,height:c}=n,u=Math.min(l,c);let d="H";return u<=80&&u>60?d="Q":u<=60&&u>40?d="M":u<=40&&(d="L"),r.createElement("div",{className:"lib-comp-qr-code",style:Object.assign({opacity:a.StyleHelper.getOpacity(s)},n)},r.createElement(o,{size:u,renderAs:"svg",bgColor:i.rgba2hex(e.background.value),fgColor:i.rgba2hex(e.forgetColor.value),value:t,level:d}))}}t.default=s},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=n(0),y=(n(59),n(1172)),b=n(416);function w(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r<2048?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}var C={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}}))})),n.join("")}function x(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}function S(e,t){var n=e.imageSettings,r=e.size,o=e.includeMargin;if(null==n)return null;var i=o?4:0,a=t.length+2*i,s=Math.floor(.1*r),l=a/r,c=(n.width||s)*l,u=(n.height||s)*l,d=null==n.x?t.length/2-c/2:n.x*l,h=null==n.y?t.length/2-u/2:n.y*l,p=null;if(n.excavate){var f=Math.floor(d),m=Math.floor(h);p={x:f,y:m,w:Math.ceil(c+d-f),h:Math.ceil(u+h-m)}}return{x:d,y:h,h:u,w:c,excavation:p}}var k=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),P=function(e){function t(){var e,n;l(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return g(p(n=d(this,(e=h(t)).call.apply(e,[this].concat(o)))),"_canvas",void 0),g(p(n),"_image",void 0),g(p(n),"state",{imgLoaded:!1}),g(p(n),"handleImageLoad",(function(){n.setState({imgLoaded:!0})})),n}return f(t,e),u(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(e){var t,n;(null===(t=this.props.imageSettings)||void 0===t?void 0:t.src)!==(null===(n=e.imageSettings)||void 0===n?void 0:n.src)&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,o=e.bgColor,i=e.fgColor,a=e.includeMargin,s=e.imageSettings,l=new y(-1,b[r]);if(l.addData(w(t)),l.make(),null!=this._canvas){var c=this._canvas,u=c.getContext("2d");if(!u)return;var d=l.modules;if(null===d)return;var h=a?4:0,p=d.length+2*h,f=S(this.props,d);null!=s&&null!=f&&null!=f.excavation&&(d=x(d,f.excavation));var m=window.devicePixelRatio||1;c.height=c.width=n*m;var g=n/p*m;u.scale(g,g),u.fillStyle=o,u.fillRect(0,0,p,p),u.fillStyle=i,k?u.fill(new Path2D(_(d,h))):d.forEach((function(e,t){e.forEach((function(e,n){e&&u.fillRect(n+h,t+h,1,1)}))})),this.state.imgLoaded&&this._image&&null!=f&&u.drawImage(this._image,f.x+h,f.y+h,f.w,f.h)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.value,t.size),r=(t.level,t.bgColor,t.fgColor,t.style),i=(t.includeMargin,t.imageSettings),l=s(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),c=a({height:n,width:n},r),u=null,d=i&&i.src;return null!=i&&null!=d&&(u=v.createElement("img",{src:d,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),v.createElement(v.Fragment,null,v.createElement("canvas",o({style:c,height:n,width:n,ref:function(t){return e._canvas=t}},l)),u)}}]),t}(v.PureComponent);g(P,"defaultProps",C);var T=function(e){function t(){return l(this,t),d(this,h(t).apply(this,arguments))}return f(t,e),u(t,[{key:"render",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,i=e.bgColor,a=e.fgColor,l=e.includeMargin,c=e.imageSettings,u=s(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),d=new y(-1,b[r]);d.addData(w(t)),d.make();var h=d.modules;if(null===h)return null;var p=l?4:0,f=h.length+2*p,m=S(this.props,h),g=null;null!=c&&null!=m&&(null!=m.excavation&&(h=x(h,m.excavation)),g=v.createElement("image",{xlinkHref:c.src,height:m.h,width:m.w,x:m.x+p,y:m.y+p,preserveAspectRatio:"none"}));var C=_(h,p);return v.createElement("svg",o({shapeRendering:"crispEdges",height:n,width:n,viewBox:"0 0 ".concat(f," ").concat(f)},u),v.createElement("path",{fill:i,d:"M0,0 h".concat(f,"v").concat(f,"H0z")}),v.createElement("path",{fill:a,d:C}),g)}}]),t}(v.PureComponent);g(T,"defaultProps",C);var E=function(e){var t=e.renderAs,n=s(e,["renderAs"]),r="svg"===t?T:P;return v.createElement(r,n)};E.defaultProps=a({renderAs:"canvas"},C),e.exports=E},function(e,t,n){var r=n(1173),o=n(1174),i=n(1175),a=n(1176),s=n(417);function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;c.addData=function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},c.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new i,r=0,s=0;s<t.length;s++)r+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var l=this.dataList[s];n.put(l.mode,4),n.put(l.getLength(),a.getLengthInBits(l.mode,e)),l.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},c.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},c.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},c.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,a=0;a<this.modules[o].length;a++){var s=1*a;this.modules[o][a]&&(r.beginFill(0,100),r.moveTo(s,i),r.lineTo(s+1,i),r.lineTo(s+1,i+1),r.lineTo(s,i+1),r.endFill())}return r},c.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},c.setupPositionAdjustPattern=function(){for(var e=a.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var s=-2;s<=2;s++)this.modules[r+i][o+s]=-2==i||2==i||-2==s||2==s||0==i&&0==s}},c.setupTypeNumber=function(e){for(var t=a.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},c.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},c.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var c=!1;i<e.length&&(c=1==(e[i]>>>o&1)),a.getMask(t,r,s-l)&&(c=!c),this.modules[r][s-l]=c,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=o.getRSBlocks(e,t),s=new i,c=0;c<n.length;c++){var u=n[c];s.put(u.mode,4),s.put(u.getLength(),a.getLengthInBits(u.mode,e)),u.write(s)}var d=0;for(c=0;c<r.length;c++)d+=r[c].dataCount;if(s.getLengthInBits()>8*d)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d||(s.put(l.PAD0,8),s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),l=new Array(t.length),c=0;c<t.length;c++){var u=t[c].dataCount,d=t[c].totalCount-u;r=Math.max(r,u),o=Math.max(o,d),i[c]=new Array(u);for(var h=0;h<i[c].length;h++)i[c][h]=255&e.buffer[h+n];n+=u;var p=a.getErrorCorrectPolynomial(d),f=new s(i[c],p.getLength()-1).mod(p);l[c]=new Array(p.getLength()-1);for(h=0;h<l[c].length;h++){var m=h+f.getLength()-l[c].length;l[c][h]=m>=0?f.get(m):0}}var g=0;for(h=0;h<t.length;h++)g+=t[h].totalCount;var v=new Array(g),y=0;for(h=0;h<r;h++)for(c=0;c<t.length;c++)h<i[c].length&&(v[y++]=i[c][h]);for(h=0;h<o;h++)for(c=0;c<t.length;c++)h<l[c].length&&(v[y++]=l[c][h]);return v},e.exports=l},function(e,t,n){var r=n(415);function o(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=o},function(e,t,n){var r=n(416);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=new Array,a=0;a<r;a++)for(var s=n[3*a+0],l=n[3*a+1],c=n[3*a+2],u=0;u<s;u++)i.push(new o(l,c));return i},o.getRsBlockTable=function(e,t){switch(t){case r.L:return o.RS_BLOCK_TABLE[4*(e-1)+0];case r.M:return o.RS_BLOCK_TABLE[4*(e-1)+1];case r.Q:return o.RS_BLOCK_TABLE[4*(e-1)+2];case r.H:return o.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=o},function(e,t){function n(){this.buffer=new Array,this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var r=n(415),o=n(417),i=n(418),a=0,s=1,l=2,c=3,u=4,d=5,h=6,p=7,f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;f.getBCHDigit(t)-f.getBCHDigit(f.G15)>=0;)t^=f.G15<<f.getBCHDigit(t)-f.getBCHDigit(f.G15);return(e<<10|t)^f.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;f.getBCHDigit(t)-f.getBCHDigit(f.G18)>=0;)t^=f.G18<<f.getBCHDigit(t)-f.getBCHDigit(f.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return f.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case s:return t%2==0;case l:return n%3==0;case c:return(t+n)%3==0;case u:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case d:return t*n%2+t*n%3==0;case h:return(t*n%2+t*n%3)%2==0;case p:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),n=0;n<e;n++)t=t.multiply(new o([1,i.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l++)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&i++;i>5&&(n+=3+i-5)}for(r=0;r<t-1;r++)for(o=0;o<t-1;o++){var c=0;e.isDark(r,o)&&c++,e.isDark(r+1,o)&&c++,e.isDark(r,o+1)&&c++,e.isDark(r+1,o+1)&&c++,0!=c&&4!=c||(n+=3)}for(r=0;r<t;r++)for(o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o++)for(r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o++)for(r=0;r<t;r++)e.isDark(r,o)&&u++;return n+=10*(Math.abs(100*u/t/t-50)/5)}};e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(2),a=n(16),s=n(14),l=n(294);n(1178);class c extends r.Component{constructor(e){super(e),this.getParams=e=>{const{comp:{size:t,properties:n,value:r,opacity:i},isPreview:a,globalScale:s}=e;return{size:o.cloneDeep(t),properties:o.cloneDeep(n),value:o.cloneDeep(r),opacity:i,isPreview:a,globalScale:s}},this.parserColors=()=>{const{comp:e}=this.props,{fill:t,buttonColor:n,forgetColor:r,featureButtonColor:o}=e.properties,{background:i}=s.StyleHelper.parserFill(t),{background:l}=s.StyleHelper.parserFill(n),{background:c}=s.StyleHelper.parserFill(o);return{background:i,color:a.parseColorToString(r.value),filter:s.StyleHelper.initCSSStyleParser(e.properties).getShadowStyle().filter,button:{normal:l,feature:c}}};const t="numeric"===e.comp.properties.keyboard.value?20:40;this.state={lineHeight:(e.comp.size.height-t)/4},this.param=this.getParams(e)}shouldComponentUpdate(e){const t=this.getParams(e);let n=!1;return Object.keys(this.param).forEach(e=>{o.isEqual(t[e],this.param[e])||(n=!0,this.param[e]=o.cloneDeep(t[e]))}),n}getCurrentBorderRadius(){const{height:e,width:t}=this.props.comp.size,n=4/(l.initialKeyboardSize.width*l.initialKeyboardSize.height);return Math.min(4,e*t*n)}UNSAFE_componentWillReceiveProps(e){const t="numeric"===e.comp.properties.keyboard.value?30:40;this.setState({lineHeight:(e.comp.size.height-t)/4})}renderButton(e,t,n){let o=n.normal;return t.includes("fun-button")&&(o=n.feature),r.createElement("span",{key:e,style:{background:o,borderRadius:this.getCurrentBorderRadius()+"px"},className:t},e)}renderSymbolKeyboard(){const{comp:e}=this.props,{background:t,color:n,button:o,filter:i}=this.parserColors();return r.createElement("div",{className:"lib-comp-keyboard lib-comp-keyboard-symbol",style:Object.assign({lineHeight:this.state.lineHeight+"px",background:t,color:n,filter:i,opacity:s.StyleHelper.getOpacity(e.opacity)},e.size)},r.createElement("div",null,"1234567890".split("").map(e=>this.renderButton(e,"keyboard-button",o))),r.createElement("div",null,'-/:;()$&@"'.split("").map(e=>this.renderButton(e,"keyboard-button",o))),r.createElement("div",null,this.renderButton("#+=","keyboard-button fun-button",o),".,?!`".split("").map(e=>this.renderButton(e,"keyboard-button",o)),this.renderButton(String.fromCharCode(60054),"keyboard-button icon-button fun-button",o)),r.createElement("div",null,this.renderButton("123","keyboard-button fun-button",o),this.renderButton(String.fromCharCode(60171),"keyboard-button icon-button fun-button",o),this.renderButton("space","keyboard-button",o),this.renderButton(String.fromCharCode(59870),"keyboard-button icon-button fun-button",o)))}renderNumberKeyboard(){const{comp:e}=this.props,{background:t,color:n,button:o,filter:i}=this.parserColors();return r.createElement("div",{className:"lib-comp-keyboard lib-comp-keyboard-number",style:Object.assign({lineHeight:this.state.lineHeight+"px",background:t,color:n,filter:i,opacity:s.StyleHelper.getOpacity(e.opacity)},e.size)},r.createElement("div",{style:{lineHeight:.75*this.state.lineHeight+2+"px"}},["+","-","*","/","@"].map(e=>this.renderButton(e,"keyboard-button",o))),r.createElement("div",null,["1","4","7",","].map(e=>this.renderButton(e,"keyboard-button",o))),r.createElement("div",null,["2","5","8","0"].map(e=>this.renderButton(e,"keyboard-button",o))),r.createElement("div",null,["3","6","9","."].map(e=>this.renderButton(e,"keyboard-button",o))),r.createElement("div",null,this.renderButton(String.fromCharCode(60054),"keyboard-button icon-button fun-button",o),this.renderButton("space","keyboard-button fun-button",o),this.renderButton("return","keyboard-button fun-button",o),this.renderButton(String.fromCharCode(59870),"keyboard-button icon-button fun-button",o)))}renderLetterKeyboard(){const{background:e,color:t,button:n,filter:o}=this.parserColors(),{comp:a}=this.props;return r.createElement("div",{className:i.default("lib-comp-keyboard lib-comp-keyboard-letter",{"min-size":a.size.width<300||a.size.height<150}),style:Object.assign({lineHeight:this.state.lineHeight+"px",background:e,color:t,filter:o,opacity:s.StyleHelper.getOpacity(a.opacity)},a.size)},r.createElement("div",null,"QWERTYUIOP".split("").map(e=>this.renderButton(e,"keyboard-button",n))),r.createElement("div",null,"ASDFGHJKL".split("").map(e=>this.renderButton(e,"keyboard-button",n))),r.createElement("div",null,this.renderButton(String.fromCharCode(59885),"keyboard-button icon-button fun-button",n),"ZXCVBNM".split("").map(e=>this.renderButton(e,"keyboard-button",n)),this.renderButton(String.fromCharCode(60054),"keyboard-button icon-button fun-button",n)),r.createElement("div",null,this.renderButton("123","keyboard-button fun-button",n),this.renderButton(String.fromCharCode(60171),"keyboard-button icon-button fun-button",n),this.renderButton("space","keyboard-button",n),this.renderButton("return","keyboard-button fun-button",n)))}render(){const{comp:e}=this.props,{keyboard:t}=e.properties;return"numeric"===t.value?this.renderNumberKeyboard():"symbol"===t.value?this.renderSymbolKeyboard():this.renderLetterKeyboard()}}t.default=c},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(155),a=n(1180),s=n(107);n(1182);class l extends r.Component{constructor(){super(...arguments),this.handleItemMouseDown=(e,t)=>{var n;const{comp:r,isPreview:o}=this.props;if(o){const o=r.getItemCompById(e.id);if(o){const e=null===(n=this.props.event)||void 0===n?void 0:n.onClick;e&&e(t,o)}}},this.handleItemCheckBoxClick=(e,t)=>{var n;const{comp:r,isPreview:o}=this.props;if(o){t.stopPropagation();const o=r.getItemCompById(e.id).checkBoxComp;if(o){const e=null===(n=this.props.event)||void 0===n?void 0:n.onClick;e&&e(t,o)}}},this.handleItemExpandClick=(e,t)=>{var n;const{comp:r}=this.props,o=r.getItemCompById(e.id).expandComp;if(o){const e=null===(n=this.props.event)||void 0===n?void 0:n.onClick;e&&e(t,o)}},this.renderItem=(e,t)=>{var n;const{isPreview:o,comp:i}=this.props,{lineHeight:s,intention:l,checkedFill:c,padding:u,showExpandIcon:d,showNodeIcon:h,showSelectBox:p}=i.parseProperties(),f=i.components.find(t=>t.id===e.data.id);if(f)return r.createElement(a.default,{key:e.data.id,item:e,comp:f,paddingLeft:u.left,paddingRight:u.right,lineHeight:s,level:t,intention:l,checkedFill:c,showExpandIcon:d,showNodeIcon:h,showSelectBox:p,isPreview:!!o,onCheckBoxClick:this.handleItemCheckBoxClick,onExpandClick:this.handleItemExpandClick,onItemMouseDown:this.handleItemMouseDown},e.data.expand&&(null===(n=e.children)||void 0===n?void 0:n.length)&&this.renderItems(e.children,t+1))},this.renderItems=(e,t)=>e.map(e=>this.renderItem(e,t)),this.renderTree=()=>{const{comp:e}=this.props,t=e.components.map(e=>e.$data),{relation:n}=e.value;return i.mapRelationWithComp(n,t).map(e=>this.renderItem(e,0))},this._paddingStyle={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},this.getPaddingStyle=()=>{const{comp:e}=this.props,{padding:{left:t,top:n,right:r,bottom:o}}=e.parseProperties();return(t!==this._paddingStyle.paddingLeft||r!==this._paddingStyle.paddingRight||n!==this._paddingStyle.paddingTop||o!==this._paddingStyle.paddingBottom)&&(this._paddingStyle={paddingLeft:t,paddingBottom:o,paddingRight:r,paddingTop:n}),this._paddingStyle}}render(){const{isPreview:e,comp:t}=this.props,n=o.memoize(this.getPaddingStyle)();return r.createElement(s.default,{comp:t,isPreview:e},r.createElement("div",{className:"lib-comp-tree-content",style:n},this.renderTree()))}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(16),s=n(20),l=n(14);n(1181);const c=n(18),u=n(86);t.default=r.memo(e=>{const t=t=>{const{onExpandClick:n,showExpandIcon:r}=e;if(!r)return;const o=e.item.data;n&&n(o,t)},n=t=>{const{onCheckBoxClick:n,showSelectBox:r,item:o}=e;r&&n&&n(o.data,t)},d=t=>{const{onItemMouseDown:n,item:r}=e;n&&n(r.data,t)},h=()=>{const{lineHeight:h,intention:p,level:f,isPreview:m,comp:g}=e;return r.createElement("div",{className:o.default("item-main",{"item-hot-area":m&&u.hasInteraction(g)}),style:{lineHeight:h+"px",height:h},onMouseDown:d},(()=>{const{comp:t,lineHeight:n,paddingRight:o,paddingLeft:i,checkedFill:a}=e;return t.selected?r.createElement("div",{className:"item-selected-background",style:Object.assign({width:`calc(100% + ${i+o}px)`,height:n,left:-i},a)}):null})(),r.createElement("div",{className:"item-main-inner",style:{marginLeft:p*f}},(()=>{var n,o;const{showExpandIcon:i,item:l,comp:c}=e;if(!i)return null;const u=c.expandComp;if(!u)return null;const{size:d,value:h,properties:p}=u,f=h,m=Math.min(d.width,d.height);return r.createElement("div",{className:"comp-tree-expand",style:{width:d.width,minWidth:d.width,height:d.height,fontSize:m,fontFamily:f.fontName,lineHeight:m+"px",color:a.parseColorToString((null===(n=p.icon)||void 0===n?void 0:n.color)||s.DefaultIconColor)},onClick:t},u&&(null===(o=l.children)||void 0===o?void 0:o.length)&&String.fromCharCode(f.iconCode))})(),(()=>{const{showSelectBox:t,comp:i}=e,c=i.checkBoxComp;if(!t)return null;const u=c.components[0],{properties:{stroke:d},size:h,selected:p}=c,f=u.value,{size:{width:m,height:g},properties:{icon:v}}=u;return r.createElement("div",{className:o.default("comp-tree-checkbox"),style:Object.assign(Object.assign({width:h.width,height:h.height},l.StyleHelper.createCSSStyleParser({stroke:d}).getStrokeStyle()),{color:a.parseColorToString((null==v?void 0:v.color)||s.DefaultIconColor),fontFamily:f.fontName,lineHeight:h.height+"px",fontSize:Math.min(m,g)}),onClick:n},p&&String.fromCharCode(f.iconCode))})(),(()=>{var t;const{comp:n,showNodeIcon:o}=e;if(!o)return;const i=n.nodeComp;if(!i)return null;const{size:l,value:c,properties:u}=i,d=c,h=Math.min(l.width,l.height);return r.createElement("div",{className:"comp-tree-node",style:{width:l.width,height:l.height,fontSize:h,fontFamily:d.fontName,lineHeight:h+"px",color:a.parseColorToString((null===(t=u.icon)||void 0===t?void 0:t.color)||s.DefaultIconColor)}},String.fromCharCode(d.iconCode))})(),(()=>{const{comp:t,paddingRight:n}=e,o=t.textComp,{size:a,position:s,properties:u,value:d}=o,h=l.StyleHelper.createCSSStyleParser({}),p=i.memoize(()=>{const{size:e,style:t}=h.getTextStyleData(a,u.textStyle);return Object.assign(Object.assign(Object.assign({},e),t),{top:s.y,marginRight:n})})();return r.createElement("div",{className:"comp-tree-text",style:p},c.transBlankChart(""+d))})()))};return r.createElement("div",{className:"lib-comp-tree-item"},h(),r.createElement("div",{className:"item-child"},e.children))})},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(16),a=n(8),s=n(149),l=n(23),c=n(14),u=n(136),d=n(42),h=n(85),p=n(130),f=n(295),m=n(1220);n(1249);class g extends r.Component{constructor(e){super(e),this.handleTableHiden=e=>{this.state.hidden!==e&&this.setState({hidden:e})},this.handleCellDoubleClick=e=>{const{position:t,id:n}=e.detail,{isPreview:r,valueEditing:o}=this.props;n!==this.props.comp.id||r||o||(this.doubleClickPoint=t)},this.parserBorder=e=>{const{thickness:t,color:n,disabled:r}=e;return r||!n?"none":`${o.isUndefined(t)?1:t}px ${l.PresetDashModel.solid} ${i.parseColorToString(n)}`},this.parserBorderStyle=e=>{const{left:t,right:n,top:r,bottom:o}=e,i={};return t.disabled?i.borderLeft="none":i.borderLeft=this.parserBorder(t),n.disabled?i.borderRight="none":i.borderRight=this.parserBorder(n),r.disabled?i.borderTop="none":i.borderTop=this.parserBorder(r),o.disabled?i.borderBottom="none":i.borderBottom=this.parserBorder(o),i},this.parserCellBorder=e=>{var t;const{value:n}=this.state,r=null===(t=this.props.comp.properties)||void 0===t?void 0:t.tableLine,o=u.findCell(n,e);if(!o)return{};const i=u.parserMergeBorder(n,o,e,r);return this.parserBorderStyle(i)},this.renderChildComponent=e=>e.isContainer?e.components.map(e=>this.renderComponent(e)):null,this.renderComponent=(e,t=1)=>{const{event:n}=this.props;return r.createElement(f.default,Object.assign({key:e.id,comp:e,revision:e.chainedVersion(),scale:t,isPreview:this.props.isPreview},n),this.renderChildComponent(e))},this.renderRows=()=>{const{value:e}=this.state;return e.rows.map((e,t)=>r.createElement("tr",{key:t,style:{height:e.height,overflow:"hidden"}},this.renderCells(t)))},this.renderCells=e=>{const{value:{cells:t,rows:n,columns:o}}=this.state;return t[e]?t[e].map((t,a)=>{if(t.mergedBy)return null;const s=i.parseColorToString(t.style.fill||"#fff");return r.createElement("td",{style:{height:n[e].height,width:o[a].width,background:s},key:a,colSpan:t.mergeAcross+1,rowSpan:t.mergeDown+1},r.createElement("div",{className:"cell",style:{justifyContent:u.textAlign2Flex(t.style.textAlign),alignItems:u.verticalAlign2Flex(t.style.verticalAlign),top:p.DefaultCellPadding+"px",left:p.DefaultCellPadding+"px",width:`calc(100% - ${2*p.DefaultCellPadding}px)`,height:`calc(100% - ${2*p.DefaultCellPadding}px)`}},this.renderCellContent(t,e,a)))}):null},this.renderThead=()=>{const{value:{showHeader:e,columns:t,headerHeight:n}}=this.state;return e?r.createElement("thead",null,r.createElement("tr",{style:{height:n}},t.map((e,t)=>{if(e.mergedBy)return null;{const o=i.parseColorToString(e.style.fill||"#fff");return r.createElement("th",{key:t,colSpan:e.mergeAcross+1,rowSpan:e.mergeDown+1,style:{height:n,width:e.width,background:o}},r.createElement("div",{className:"cell",style:{justifyContent:u.textAlign2Flex(e.style.textAlign),alignItems:u.verticalAlign2Flex(e.style.verticalAlign),top:p.DefaultCellPadding+"px",left:p.DefaultCellPadding+"px",width:`calc(100% - ${2*p.DefaultCellPadding}px)`,height:`calc(100% - ${2*p.DefaultCellPadding}px)`}},this.renderCellContent(e,-1,t)))}}))):null},this.renderInnerBorder=()=>{const{showHeader:e,headerHeight:t,columns:n,rows:o}=this.state.value;return r.createElement("table",{className:"inner-table-stroke"},r.createElement("tbody",null,e&&r.createElement("tr",{style:{height:t}},n.map((e,t)=>r.createElement("td",{key:t,style:Object.assign(Object.assign(Object.assign(Object.assign({width:e.width},this.parserCellBorder({row:-1,column:t})),0===t?{borderLeft:"none"}:{}),t===n.length-1?{borderRight:"none"}:{}),{borderTop:"none"})}))),o.map((t,i)=>r.createElement("tr",{key:i,style:{height:t.height}},n.map((t,a)=>r.createElement("td",{key:a,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({width:t.width},this.parserCellBorder({row:i,column:a})),0===a?{borderLeft:"none"}:{}),a===n.length-1?{borderRight:"none"}:{}),0!==i||e?{}:{borderTop:"none"}),i===o.length-1?{borderBottom:"none"}:{})}))))))},this.state={value:e.comp.value}}UNSAFE_componentWillReceiveProps(e){const t=e.comp.value;a.isEqualDate(this.state.value,e.comp.value)||this.setState({value:t})}componentDidMount(){window.addEventListener("tableEditing",this.handleCellDoubleClick)}componentWillUnmount(){window.removeEventListener("tableEditing",this.handleCellDoubleClick)}renderCellContent(e,t,n){var r;const{type:o}=e;switch(o){case s.CellTypes.Text:case s.CellTypes.CheckBox:case s.CellTypes.Radio:case s.CellTypes.Button:{const e=null===(r=this.props.comp.toJSON().components)||void 0===r?void 0:r.find(e=>e.row===t&&e.column===n);return e?this.renderIndicator(e):null}}}renderIndicator(e){const t=h.makeUIComponent(e,this.props.comp),{width:n,height:o}=t.size;return r.createElement("div",{className:"component-indicator"},r.createElement("div",{style:{width:n,height:o}},this.renderComponent(t)))}render(){const{comp:e,isPreview:t,valueEditing:n,onTableValueChanged:i}=this.props,{properties:s}=e,{stroke:l}=s,h=null==l?void 0:l.thickness,f=(null==l?void 0:l.disabled)?0:n||o.isUndefined(h)?1:h,g=a.depthClone(l||p.DefalutTableStroke);g.thickness=f;const{value:v,hidden:y}=this.state,{width:b,height:w}=u.getTableSizeFromValue(v),C=c.StyleHelper.initCSSStyleParser(s).getShadowStyle(),_=d.default.scale,x=o.isNumber(_)?_:1,S={width:b,height:w,opacity:o.isUndefined(e.opacity)?1:e.opacity/100,transition:e.getTransition()};return r.createElement("div",{className:"lib-comp-table",style:S},!y&&r.createElement(r.Fragment,null,r.createElement("table",{style:{width:b,height:w},className:"table",cellPadding:0,cellSpacing:0,unselectable:"on"},this.renderThead(),r.createElement("tbody",null,this.renderRows())),this.renderInnerBorder(),r.createElement("div",{style:Object.assign({border:this.parserBorder(g),top:-f,left:-f,width:b,height:w},C),className:"outer-border"})),!t&&n&&r.createElement(m.default,{value:a.depthClone(this.state.value),scale:x||1,comp:e,doubleClickPoint:this.doubleClickPoint,doTablehidden:this.handleTableHiden,onChangesSubmit:i}))}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompSelecting=void 0;const r=n(2),o=n(0);t.CompSelecting=function(e){const{size:t,scale:n,isConnector:i,isRotate:a,forceHover:s,selecting:l,isSymbol:c}=e;return o.createElement("div",{style:{width:t.width*n,height:t.height*n,transform:`scale(${1/n}) translate(${t.width<1?.5*n:0}px, ${t.height<1?.5*n:0}px)`},className:r.default({selecting:!i,show:l&&!a||s,horizontal:t.height<=1,vertical:t.width<=1,symbol:c})})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1186);const i=n(419),a=n(42);class s extends r.Component{constructor(e){super(e),this.handleMouseDown=(e,t)=>{if(!this.state.isShowConnector)return;t.stopPropagation();const{onMouseDownStartConnect:n}=this.props;n&&n(this.props.id,e)},this.handleMouseUp=(e,t)=>{if(!this.state.isShowConnector)return;const{onMouseUpEndConnect:n}=this.props;n&&n(this.props.id,e)},this.handleMouseEnter=e=>{const{onControlMouseEnter:t}=this.props;t&&t(this.props.id,e)},this.handleMouseLeave=()=>{const{onControlMouseLeave:e}=this.props;e&&e()},this.caculateStyle=e=>{const{size:t}=this.props,n=a.default.scale,r=1/n,{controlSize:o,scaleNum:s}=i.calcaulateSizeAndRealScaleWhenScale(e,t,n,r);let l="";return"top"!==e&&"left"!==e||(l="translate(-50%,-50%)"),"right"===e&&(l="translate(50%, -50%)"),"bottom"===e&&(l="translate(-50%, 50%)"),{width:o,height:o,transform:`${l} scale(${s})`}},this.state={scaleNum:e.scale||1,isShowConnector:e.isShowConnector}}UNSAFE_componentWillReceiveProps(e){e.scale&&this.state.scaleNum!==e.scale&&this.setState({scaleNum:e.scale}),this.state.isShowConnector!==e.isShowConnector&&this.setState({isShowConnector:e.isShowConnector})}shouldComponentUpdate(e,t){return!(this.state.scaleNum===t.scaleNum||!t.isShowConnector||!this.props.isActiveParent)||this.state.isShowConnector!==t.isShowConnector}render(){const{isActiveParent:e}=this.props,{isShowConnector:t}=this.state;return r.createElement("div",{className:o.default("connector")},["top","right","bottom","left"].map(n=>{const i=this.caculateStyle(n);return r.createElement("div",{key:n,className:o.default(n),style:i,onMouseDown:this.handleMouseDown.bind(this,n),onMouseUp:this.handleMouseUp.bind(this,n),onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave},t&&e&&r.createElement("span",{className:"connector-icon"}))}))}}t.default=s},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outSpace=t.maxControlSize=t.CursorTypesArr=t.autoScrollStep=t.minArtboardSize=t.maxArtbaordSize=void 0,t.maxArtbaordSize=2e4,t.minArtboardSize=50,t.autoScrollStep=10,t.CursorTypesArr=["nw-resize","ne-resize","se-resize","sw-resize","ns-resize","ew-resize","ns-resize","ew-resize"],t.maxControlSize=16,t.outSpace=50},function(e,t,n){"use strict";var r=n(77),o=n(421),i=n(1190),a=n(297);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(a);l.Axios=i,l.create=function(e){return s(r.merge(a,e))},l.Cancel=n(425),l.CancelToken=n(1203),l.isCancel=n(424),l.all=function(e){return Promise.all(e)},l.spread=n(1204),e.exports=l,e.exports.default=l},function(e,t){
|
|
|
/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/
|
|
|
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(297),o=n(77),i=n(1198),a=n(1199);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},function(e,t,n){"use strict";var r=n(77);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(423);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(77);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(77),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(77);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(77);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(77);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(77),o=n(1200),i=n(424),a=n(297),s=n(1201),l=n(1202);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(77);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(425);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomErrorWithPayload=t.CustomError=void 0;class r extends Error{constructor(e,t=1){super(e),this.code=t,this.code=t,this.message=e}}t.CustomError=r;class o extends Error{constructor(e,t=1,n){super(e),this.code=t,this.payload=n,this.code=t,this.message=e,this.payload=n}}t.CustomErrorWithPayload=o},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.getRPFileDownloadURL=t.exportPreview=t.uploadVideo=t.uploadSvg=t.uploadImg=void 0;const o=n(420),i=n(217),a=n(58);t.uploadImg=function(e,t){return r(this,void 0,void 0,(function*(){const n=o.basename(e.name,o.extname(e.name)),r=new FormData;r.append("image",e);const i=yield a.put("/file/image",r,{onUploadProgress:e=>{let n=e.loaded/e.total*100|0;t&&t(n)}});return Object.assign(Object.assign({},i),{name:n})}))},t.uploadSvg=function(e,t){return r(this,void 0,void 0,(function*(){const n=new FormData;n.append("file",e);const r=yield a.put("/file/svg",n,{onUploadProgress:e=>{let n=e.loaded/e.total*100|0;t&&t(n)}}),{size:o}=yield i.getLocalImageFileSize(e);return{URL:r.URL,size:o}}))},t.uploadVideo=function(e,t){return r(this,void 0,void 0,(function*(){const n=new FormData;n.append("file",e);const o=yield a.put("/file/video",n,{onUploadProgress:e=>{let n=e.loaded/e.total*100|0;t&&t(n)}}),i=yield function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{const r=document.createElement("video");r.addEventListener("loadedmetadata",(function(){t({width:this.videoWidth,height:this.videoHeight})})),r.addEventListener("error",(function(){n()})),r.src=e})}))}(o.URL);return{URL:o.URL,size:i}}))},t.exportPreview=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield a.post("/app/exportPreview/"+e,{v:t,config:n})}))},t.getRPFileDownloadURL=function(e){return a.get("/app/RPAppZip/"+e)}},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.moveColor=t.patchColor=t.removeColor=t.addColor=void 0;const o=n(58);t.addColor=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.put("/ds/color/"+e,{type:"pure",color:t})}))},t.removeColor=function(e){return r(this,void 0,void 0,(function*(){yield o.axDelete("/ds/color/"+e)}))},t.patchColor=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch("/ds/color/"+e,t)}))},t.moveColor=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.post(`/ds/color/${e}/move/${t}`,{index:n})}))}},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.moveTypography=t.patchTypography=t.removeTypography=t.addTypography=void 0;const o=n(58);t.addTypography=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.put("/ds/typography/"+e,{typography:t})}))},t.removeTypography=function(e){return r(this,void 0,void 0,(function*(){yield o.axDelete("/ds/typography/"+e)}))},t.patchTypography=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch("/ds/typography/"+e,t)}))},t.moveTypography=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.post(`/ds/typography/${e}/move/${t}`,{index:n})}))}},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.removeRelations=t.patchRelations=t.addRelations=t.removeComponents=t.resetComponentsGroup=t.moveComponent=t.patchComponent=t.removeComponent=t.addComponent=void 0;const o=n(58);t.addComponent=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.put("/ds/component/"+e,t)}))},t.removeComponent=function(e){return r(this,void 0,void 0,(function*(){yield o.axDelete("/ds/component/"+e)}))},t.patchComponent=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch("/ds/component/"+e,t)}))},t.moveComponent=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.post(`/ds/component/${e}/move/${t}`,{index:n})}))},t.resetComponentsGroup=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.post(`/ds/component/${e}/moveTo/${n}`,{components:t})}))},t.removeComponents=function(e){return r(this,void 0,void 0,(function*(){return yield o.axDelete("/ds/component/remove/components",{data:{ids:e}})}))},t.addRelations=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.post(`/ds/component/${e}/relations`,{relations:t})}))},t.patchRelations=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch(`/ds/component/${e}/relations`,{relations:t})}))},t.removeRelations=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.axDelete(`/ds/component/${e}/relations`,{data:t})}))}},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.removeGroup=t.moveGroup=t.renameGroup=t.addGroup=void 0;const o=n(58);t.addGroup=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.put(`/ds/lib/${e}/group`,{name:t})}))},t.renameGroup=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.patch(`/ds/lib/${e}/group/${t}`,{name:n})}))},t.moveGroup=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.post(`/ds/lib/${e}/group/move/${t}`,{index:n})}))},t.removeGroup=function(e,t){return r(this,void 0,void 0,(function*(){return o.axDelete(`/ds/lib/${e}/group/${t}`)}))}},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.patchUserPreference=t.loadUserPreference=void 0;const o=n(58);t.loadUserPreference=function(e){return r(this,void 0,void 0,(function*(){return yield o.get(`/preference/${e}?rnd=${(new Date).getTime()}`)}))},t.patchUserPreference=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch("/preference/"+e,t)}))}},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.resetEmbedShareLink=t.getEmbedShareLink=t.patchAppShareLink=t.resetAppPublicShareLink=t.getAppPublicShareLink=t.getAppShareLink=t.checkShareLinkReset=t.resetShareLink=t.changePwEnable=t.getShareLinkPass=t.setShareLinkPass=t.getShareRunLink=void 0;const o=n(300),i=n(58);t.getShareRunLink=function(e,t){return r(this,void 0,void 0,(function*(){return i.get(`/app/preview/link/${e}/${t}`)}))},t.setShareLinkPass=function(e,t,n){return r(this,void 0,void 0,(function*(){return i.patch(`/app/preview/link/${e}/${t}`,{password:n})}))},t.getShareLinkPass=function(e,t){return r(this,void 0,void 0,(function*(){return i.post("/app/preview/link/"+e,{password:t})}))},t.changePwEnable=function(e,t){return r(this,void 0,void 0,(function*(){return i.patch("/app/preview/setting/"+e,{previewNeedPassword:t})}))},t.resetShareLink=function(e){return r(this,void 0,void 0,(function*(){return i.patch(`/app/preview/resetLinkID/${e}/${o.AppTypes.RP}`,{})}))},t.checkShareLinkReset=function(e,t){return r(this,void 0,void 0,(function*(){return i.post(`/app/preview/checkLinkID/${e}/${t}/${o.AppTypes.RP}`,{})}))},t.getAppShareLink=function(e,t){return r(this,void 0,void 0,(function*(){return i.get(`/appShare/getShareLink/${e}/rp?invite=${t}`)}))},t.getAppPublicShareLink=function(e){return r(this,void 0,void 0,(function*(){return i.get(`/appShare/public/getShareLink/${e}/rp`)}))},t.resetAppPublicShareLink=function(e){return r(this,void 0,void 0,(function*(){return i.patch(`/appShare/resetLink/${e}/rp`,{})}))},t.patchAppShareLink=function(e,t,n){return r(this,void 0,void 0,(function*(){return i.patch(`/appShare/patch/${e}/${t}`,{onlyShareThisModel:n})}))},t.getEmbedShareLink=function(e){const{appID:t,module:n,linkType:r,linkParams:o}=e;return i.put(`${i.rpBaseUrl}/appShareLink/getEmbedShareLink/${t}/${n}`,{linkType:r,linkParams:o})},t.resetEmbedShareLink=function(e){const{appID:t,module:n,linkType:r,linkParams:o}=e;return i.put(`${i.rpBaseUrl}/appShareLink/resetEmbedShareLink/${t}/${n}`,{linkType:r,linkParams:o})}},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.getPrototypeInfo=t.getMixedAppList=void 0;const o=n(58);t.getMixedAppList=function(e){return r(this,void 0,void 0,(function*(){return o.get("/app/prototype/all/"+e)}))},t.getPrototypeInfo=function(e,t){return r(this,void 0,void 0,(function*(){return o.get(`/app/prototype/${e}/${t}`)}))}},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.getUserInfo=void 0;const o=n(427);function i(){return r(this,void 0,void 0,(function*(){return Promise.reject()}))}t.getUserInfo=i,t.default=Object.assign(Object.assign({},o),{getUserInfo:i})},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});const o=n(299);t.default=Object.assign(Object.assign({},o),{getTeamInfo:function(){return r(this,void 0,void 0,(function*(){return Promise.reject()}))}})},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});const o=n(298),i=n(113);t.default=Object.assign({},o,{getAppByShareID:function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{var r;const o=null===(r=i.getOfflineDemoData())||void 0===r?void 0:r.app;(null==o?void 0:o.shareID)===e?t(o):n()})}))}})},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});const o=n(426),i=n(113);t.default=Object.assign(Object.assign({},o),{getAllPreviewArtboardsByNodeID:function(e){return r(this,void 0,void 0,(function*(){return new Promise((t,n)=>{var r;const o=null===(r=i.getOfflineDemoData())||void 0===r?void 0:r.artboard;if(o){t(o[e])}else n()})}))}})},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});const o=n(428),i=n(429),a=n(113);t.default=Object.assign(Object.assign({},o.default),{lib:Object.assign(Object.assign({},i),{getLibs:function(){return r(this,void 0,void 0,(function*(){return new Promise((e,t)=>{var n;const r=null===(n=a.getOfflineDemoData())||void 0===n?void 0:n.libs;r?e(r):t()})}))}})})},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2),a=n(7),s=n(17),l=n(28),c=n(68),u=n(18),d=n(84),h=n(8),p=n(30),f=n(136),m=n(29),g=n(136),v=n(172),y=n(14),b=n(42),w=n(20),C=n(130),_=n(75),x=n(16),S=n(6),k=n(43),P=n(106),T=n(4),E=n(22),O=n(36),M=n(1221),A=n(213),D=n(1246);n(1248);class I extends r.Component{constructor(e){super(e),this.tableEditor=r.createRef(),this.selectBox=r.createRef(),this.valueEditor=r.createRef(),this.minWidth=C.MinCellWidth,this.minHeight=C.MinCellHeight,this.keyPressed=!1,this.cells=[],this.firstClickTimer=0,this.setCells=e=>{e&&(this.cells.find(t=>t===e)||this.cells.push(e))},this.focus=()=>{var e;null===(e=this.tableEditor.current)||void 0===e||e.focus()},this.scrollToEditor=()=>{var e,t;const n=null===(e=this.context.uiManager.workSpace)||void 0===e?void 0:e.dom,r=this.tableEditor.current;if(!n||!r)return;const o=n.getBoundingClientRect(),i=r.getBoundingClientRect(),a=o.left-i.left,s=o.right-i.right,l=o.top-i.top,c=o.bottom-i.bottom;let u=0;a>0?u=a:s<0&&(u=Math.max(s,a));let d=0;l>0?d=l:c<0&&(d=Math.max(c,l)),null===(t=this.context.uiManager.workSpace)||void 0===t||t.movePageBy({x:u,y:d})},this.handleWheel=e=>(e.stopPropagation(),e.preventDefault(),!1),this.handleTableEditorContextMenu=e=>{e.stopPropagation(),e.preventDefault()},this.handleFillChange=e=>{const{tableValue:t,selectArea:n}=this.state;if(n){const r=f.setFill(t,n,e);this.doSubmit(r)}},this.handleHeightChange=e=>{const{tableValue:t,selectRows:n}=this.state;if(n.length){const r=f.setRowsHeight(t,n,e);this.doSubmit(r)}},this.handleWidthChange=e=>{const{tableValue:t,selectColumns:n}=this.state;if(n.length){const r=f.setColumnsWidth(t,n,e),o=this.props.comp.updateTextCompSize(r);this.doSubmit(r,o)}},this.handleTextAlignChange=e=>{const{tableValue:t,selectArea:n}=this.state;if(n){const r=f.setTextAlign(t,n,e),o=this.props.comp.updateTextCompAlign(r);this.doSubmit(r,o)}},this.handleVerticalAlignChange=e=>{const{tableValue:t,selectArea:n}=this.state;if(n){const r=f.setVerticalAlign(t,n,e);this.doSubmit(r)}},this.handleBorderChange=(e,t,n)=>{const{tableValue:r,selectArea:o}=this.state;if(o){const i={width:e,color:t},a=f.setBorder(r,o,i,n);this.doSubmit(a)}},this.doSubmit=(e,t)=>{const{onChangesSubmit:n,comp:r}=this.props,o=r.getNewPatchesWithFixChildrenPosition(t);n&&n(e,o)},this.getStyleOnEditorMove=e=>{const t={};return e&&(t.transform=`translate(${e.x}px, ${e.y}px) translateZ(0)`),t},this.updateSelectComps=e=>{this.selectedComps=e},this.setSelecArea=(e,t)=>{if(e){f.resetSelectAreaOrigin(e);const n=this.props.comp.getCompsInArea(e);this.context.uiManager.tableEditor&&(this.context.uiManager.tableEditor.selectArea=e),this.selectedComps=n,this.setState({selectArea:e},t)}else this.context.uiManager.tableEditor&&(this.context.uiManager.tableEditor.selectArea=void 0),this.selectedComps=[],this.setState({selectArea:void 0},t)},this.setSelectRows=e=>{const t=h.depthClone(e).sort((e,t)=>e-t);this.context.uiManager.tableEditor&&(this.context.uiManager.tableEditor.selectRows=t),this.setState({selectRows:t})},this.setSelectColumns=e=>{const t=h.depthClone(e).sort((e,t)=>e-t);this.context.uiManager.tableEditor&&(this.context.uiManager.tableEditor.selectColumns=t),this.setState({selectColumns:t})},this.clearRowsAndColumns=()=>{this.setState({selectedAll:!1}),this.setSelectColumns([]),this.setSelectRows([])},this.selectAllCells=()=>{const{rows:e,columns:t,showHeader:n}=this.state.tableValue,r={start:{row:n?-1:0,column:0},end:{row:e.length-1,column:t.length-1}};this.clearRowsAndColumns();const o=t.map((e,t)=>t),i=e.map((e,t)=>t);n&&i.push(-1),this.setState({selectedAll:!0}),this.setSelectRows(i),this.setSelectColumns(o),this.setSelecArea(r)},this.clearSelectArea=()=>{this.clearRowsAndColumns(),this.setSelecArea(void 0)},this.handleContextMenu={cell:e=>{this.setState({menuPosition:{x:e.pageX,y:e.pageY},menuType:"cell"})},column:e=>{this.setState({menuPosition:{x:e.pageX,y:e.pageY},menuType:"column"})},row:e=>{this.setState({menuPosition:{x:e.pageX,y:e.pageY},menuType:"row"})}},this.cleanCellsContent=()=>{const{selectArea:e}=this.state;if(e){const t=[];for(let n=e.start.row;n<=e.end.row;n++)for(let r=e.start.column;r<=e.end.column;r++)t.push({row:n,column:r});const{newValue:n,childrenPatches:r}=this.props.comp.cleanContent(t);this.doSubmit(n,r)}},this.convertCellsContent=e=>{const{selectArea:t}=this.state;if(t){const n=[];for(let e=t.start.row;e<=t.end.row;e++)for(let r=t.start.column;r<=t.end.column;r++)n.push({row:e,column:r});const{newValue:r,childrenPatches:o}=this.props.comp.convertCellContentType(n,e);this.doSubmit(r,o)}},this.handlePaste=e=>{var t;const n=document.activeElement;if(!(null===(t=this.tableEditor.current)||void 0===t?void 0:t.contains(n)))return;const{selectArea:r,tableValue:o}=this.state;if(!r)return;let i;if(i=e?v.parseClipboarExcelToTable(e):b.default.tableClipboardData,!i)return;const{cells:a}=i;if(!a.length)return;if(!a[0].length)return;const s={row:a.length,column:a[0].length},l=g.TableClipboardHelper.getPasteAreas(o,r,s);if(!l||!l.pasteAreas.length)return void console.warn("行列数超过最大值或可粘贴区为空");const{addRows:c,addColumns:u,pasteAreas:d}=l,{newValue:p,childrenPatches:m}=this.props.comp.doPasteData(i,d,c,u),y=h.depthClone(d).reduce((e,t)=>f.uniteSelectArea(e,t));this.setSelecArea(y),this.doSubmit(p,m)},this.handleKeyDown=e=>{const{keyCode:t}=e,n=d.isControlKeyPressed(e);switch(t){case O.default.VK_BACKSPACE:case O.default.VK_DEL:e.stopPropagation(),this.cleanCellsContent();break;case O.default.VK_A:n&&(e.stopPropagation(),this.selectAllCells());break;case O.default.VK_C:n&&(e.stopPropagation(),this.handleCopyCells());break;case O.default.VK_V:n&&e.stopPropagation()}},this.handleEditorMouseDown=e=>{e.buttons!==_.MouseButtons.Left&&e.stopPropagation()},this.handleCopyCells=()=>{const{tableValue:e,selectArea:t}=this.state;if(!t)return;const{selectedComps:n}=this.props.comp;b.default.tableClipboardData=f.TableClipboardHelper.buildTableClipboardData(e,t,n),v.copy(v.ClipboardType.Table_Copy)},this.handleWidthDrag=e=>{if(this.state.editorBounds)return;const{tableValue:t,selectColumns:n}=this.state,{columns:r}=t,o=r[e].width;let i=0;for(let t=0;t<=e;t++)i+=r[t].width;this.setState({cursor:"ew-resize"}),c.dragDelegate((e,t)=>{this.operate="resizeWidth";const{dragSize:n,linePosition:r}=this.getChangesInSizeDrag(o,i,t.x,this.minWidth);this.dragSize=n,this.lineX=r,this.forceUpdate()},(i,a)=>{this.operate=void 0,a.x&&(r.forEach((t,r)=>{(n.includes(r)&&n.includes(e)||r===e)&&(t.width=Math.max(o+a.x/this.props.scale,this.minWidth))}),this.setState({tableValue:t},()=>{const e=this.props.comp.updateTextCompSize(t);this.doSubmit(t,e)})),this.setState({cursor:void 0})})},this.getChangesInSizeDrag=(e,t,n,r)=>{const{scale:o}=this.props,i=n/o,a=e+i<r;return{dragSize:a?r:e+i,linePosition:a?t+r-e:t+i}},this.handleHeightDrag=e=>{if(this.state.editorBounds)return;const{tableValue:t,selectRows:n}=this.state,{rows:r,headerHeight:o,showHeader:i}=t;let a=o;-1!==e&&(a=r[e].height);let s=0;for(let t=-1;t<=e;t++)-1===t?i&&(s+=o):s+=r[t].height;this.setState({cursor:"ns-resize"}),c.dragDelegate((e,t)=>{this.operate="resizeHeight";const{dragSize:n,linePosition:r}=this.getChangesInSizeDrag(a,s,t.y,this.minHeight);this.dragSize=n,this.lineY=r,this.forceUpdate()},(o,i)=>{this.operate=void 0,i.y&&(r.forEach((t,r)=>{(n.includes(r)&&n.includes(e)||r===e)&&(t.height=Math.max(a+i.y/this.props.scale,this.minHeight))}),(-1===e||n.includes(-1)&&n.includes(e))&&(t.headerHeight=Math.max(a+i.y/this.props.scale,this.minHeight)),this.setState({tableValue:t},()=>{this.doSubmit(t)})),this.setState({cursor:void 0})})},this.handleCellAutoFitContent=(e,t,n)=>{const{tableValue:r}=this.state,{rows:o,columns:i}=r;"horizontal"===n?o.forEach((t,n)=>{e===n&&(t.height=this.getRowMinHeight(e))}):"vertical"===n&&i.forEach((e,n)=>{t===n&&(e.width=this.getColMinWidth(t))}),this.setState({tableValue:r},()=>{this.doSubmit(r)})},this.handleDragToAddRows=e=>{if(e.button!==_.MouseButton.Left)return;const{comp:t,scale:n}=this.props,{tableValue:r}=this.state,o=r.rows.length-1,i=f.getRowHeight(r,o);let a=!0;this.setState({cursor:"pointer"}),c.dragDelegate((e,t)=>{t.y&&(a=!1),this.rowAddOffset=h.max(t.y/n,0),this.forceUpdate()},(e,r)=>{this.operate=void 0;let s=Math.ceil(h.max(r.y,0)/n/i);if(a&&(s=1),this.rowAddOffset=void 0,s){const{newValue:e,childrenPatches:n}=t.pushRows([o],s);this.clearSelectArea(),this.setState({tableValue:e,cursor:void 0},()=>{this.doSubmit(e,n)})}else this.setState({cursor:void 0})})},this.handleDragToAddColumns=e=>{if(e.button!==_.MouseButton.Left)return;const{comp:t,scale:n}=this.props,{tableValue:r}=this.state,o=r.columns.length-1,i=f.getColumnWidth(r,o);let a=!0;this.setState({cursor:"pointer"}),c.dragDelegate((e,t)=>{t.x&&(a=!1),this.columnAddOffset=h.max(t.x/n,0),this.forceUpdate()},(e,r)=>{this.operate=void 0;let s=Math.ceil(h.max(r.x,0)/n/i);if(a&&(s=1),this.columnAddOffset=void 0,s){const{newValue:e,childrenPatches:n}=t.pushColumns([o],s);this.clearSelectArea(),this.setState({tableValue:e,cursor:void 0},()=>{this.doSubmit(e,n)})}else this.setState({cursor:void 0})})},this.handleMouseMove=e=>{const{pageX:t,pageY:n}=e;this.cursorPosition={x:t,y:n}},this.handleMouseUp=()=>{this.operate=void 0},this.handleMouseDown=e=>{var t;const{pageX:n,pageY:r}=e,{editorBounds:o}=this.state,i=this.tableEditor.current;if(i.contains(e.target)||o)return void this.closeMenu();if(null===(t=this.context.uiManager.statePanel)||void 0===t?void 0:t.isContainerPagePoint(n,r))return void this.closeMenu();let a=l.create(i.getBoundingClientRect());if(a=l.inflate(a,{left:5,top:5}),l.isContainerPoint(a,{left:n,top:r}))return void this.closeMenu();let s=document.querySelector(".popup-with-body");if(s){const t=s.getBoundingClientRect(),o=s.contains(e.target),i=l.isContainerPoint(t,{left:n,top:r});if(o||i)return void this.closeMenu()}if(s=document.querySelector(".right-panel"),s){const e=s.getBoundingClientRect();if(l.isContainerPoint(e,{left:n,top:r}))return}this.context.uiManager.closeTableEditor()},this.handleWindowKeyDown=e=>{e.keyCode===O.default.VK_TAB&&e.preventDefault()},this.handleWindowKeyUpCapture=()=>{this.keyPressed=!1,this.shiftKey=!1,"shiftSelect"===this.operate&&(this.operate=void 0)},this.handleKeyDownCapture=e=>{var t;const{keyCode:n}=e;e.shiftKey&&(this.shiftKey=!0);const r=!!(null===(t=this.tableEditor.current)||void 0===t?void 0:t.contains(document.activeElement)),{editorBounds:o}=this.state;if(!this.keyPressed)switch(this.keyPressed=!0,n){case O.default.VK_TAB:this.isTextEditorFocused?(e.preventDefault(),this.doNextCellEditing()):!o&&r&&(e.preventDefault(),this.selectedRight());break;case O.default.VK_RIGHT:!o&&r&&(e.preventDefault(),this.selectedRight());break;case O.default.VK_LEFT:!o&&r&&(e.preventDefault(),this.selectedLeft());break;case O.default.VK_UP:!o&&r&&(e.preventDefault(),this.selectedUpper());break;case O.default.VK_ENTER:this.isTextEditorFocused&&!e.altKey?(e.preventDefault(),this.doNextCellEditing(!1)):!o&&r&&(e.preventDefault(),this.selectedLower());break;case O.default.VK_DOWN:!o&&r&&(e.preventDefault(),this.selectedLower())}},this.doNextCellEditing=(e=!0)=>{if(!this.editCellPosition)return;const{tableValue:t}=this.state,{rows:n,columns:r}=t,o=h.depthClone(this.editCellPosition);let i=void 0,s=f.findCell(t,o);const l=n.length-1,c=r.length-1;do{e?o.column<c?o.column+=1:o.row<l&&(o.column=0,o.row+=1):o.row<l?o.row+=1:o.column<c&&(o.row=t.showHeader?-1:0,o.column+=1),s=f.findCell(t,o),s&&a.isUndefined(s.mergedBy)&&(i=o)}while(!(o.column===c&&o.row===l||s&&a.isUndefined(s.mergedBy)));if(!i||!s)return;this.exitTextEditor();const u=f.getAreaOfCell(t,s,i);this.setSelecArea(u,()=>{this.handleContentEdit()})},this.exitTextEditor=()=>{var e;null===(e=this.valueEditor.current)||void 0===e||e.doTextEditorExit()},this.handleAllSelectorMouseDown=()=>{if(this.state.editorBounds)return;const{coreEditor:e}=this.context;this.clearSelectArea(),c.dragDelegate((t,n)=>{if(!e)return;const{scale:r,doTablehidden:o}=this.props;o(!0),this.setState({editorPosition:{x:Math.floor(n.x/r),y:Math.floor(n.y/r)}})},()=>{const{comp:t,doTablehidden:n}=this.props,{position:r}=t,{editorPosition:o}=this.state;if(!o||!o.x&&!o.y||!e)return void this.selectAllCells();const i={x:r.x+o.x,y:r.y+o.y};n(!1),this.setState({editorPosition:void 0}),e.positionChange(i)})},this.handleCellMouseDown=(e,t,n)=>{if(this.state.editorBounds||this.isSelectedAll)return;const{selectArea:r,tableValue:o}=this.state;if(n.button===_.MouseButton.Left||!f.isCellSelected(e,t,r))if(this.operate=this.shiftKey?"shiftSelect":"cellSelect","shiftSelect"===this.operate&&r){const{start:n,end:i}=r;this.startRow=h.min(e,n.row),this.startColumn=h.min(t,n.column);const a=h.max(e,i.row),s=h.max(t,i.column);this.clearRowsAndColumns();const l={start:{row:this.startRow,column:this.startColumn},end:{row:a,column:s}};f.toRealAreaOfSelectArea(o,l),this.setSelecArea(l)}else{this.startCell={row:e,column:t};const n=f.findCell(o,{row:e,column:t});if(n){const r=f.getAreaOfCell(o,n,{row:e,column:t});this.clearRowsAndColumns(),this.setSelecArea(r)}}},this.handleColumnMouseDown=(e,t)=>{if(!this.state.editorBounds)if(this.state.selectColumns.includes(e))t.button!==_.MouseButton.Left||this.isSelectedAll||(this.operate="columnsDrag",this.doRowOrColumnDragging());else if(this.operate=this.shiftKey?"shiftSelect":"columnsSelect","shiftSelect"===this.operate)this.doColumnShiftSelect(e);else{const t=this.selectColumns(e,e);this.startColumn=e,this.clearRowsAndColumns(),this.setSelectColumns([e]),this.setSelecArea(t)}},this.doColumnsSelect=(e,t)=>{this.startColumn=e,this.clearRowsAndColumns();const n=this.selectColumns(e,t),r=new Array(t-e+1).fill(1).map((t,n)=>e+n);this.setSelectColumns(r),this.setSelecArea(n)},this.doColumnShiftSelect=e=>{if(this.isSelectedAll)return;const{selectRows:t,selectColumns:n,selectArea:r}=this.state;if(t.length)this.doColumnsSelect(0,e);else if(n.length)this.doColumnsSelect(h.min(e,n[0]),h.max(e,n[n.length-1]));else if(r){const{start:t,end:n}=r;this.doColumnsSelect(h.min(e,t.column),h.max(e,n.column))}},this.handleColumnMouseEnter=e=>{switch(this.operate){case"columnsSelect":{const t=this.selectColumns(this.startColumn||0,e);this.clearRowsAndColumns();const n=new Array(t.end.column-t.start.column+1).fill("").map((e,n)=>t.start.column+n);this.setSelectColumns(n),this.setSelecArea(t);break}}},this.handleRowMouseDown=(e,t)=>{if(!this.state.editorBounds)if(this.state.selectRows.includes(e))t.button!==_.MouseButton.Left||this.isSelectedAll||(this.operate="rowsDrag",this.doRowOrColumnDragging());else if(this.operate=this.shiftKey?"shiftSelect":"rowsSelect","shiftSelect"===this.operate)this.doRowShiftSelect(e);else{const t=this.selectRows(e,e);this.startRow=e,this.clearRowsAndColumns(),this.setSelectRows([e]),this.setSelecArea(t)}},this.doRowShiftSelect=e=>{if(this.isSelectedAll)return;const{selectRows:t,selectColumns:n,selectArea:r,tableValue:{showHeader:o}}=this.state;if(n.length)this.doRowsSelect(o?-1:0,e);else if(t.length)this.doRowsSelect(h.min(e,t[0]),h.max(e,t[t.length-1]));else if(r){const{start:t,end:n}=r;this.doRowsSelect(h.min(e,t.row),h.max(e,n.row))}},this.doRowsSelect=(e,t)=>{this.startRow=e,this.clearRowsAndColumns();const n=this.selectRows(e,t),r=new Array(t-e+1).fill(1).map((t,n)=>e+n);this.setSelectRows(r),this.setSelecArea(n)},this.handleRowMouseEnter=e=>{switch(this.operate){case"rowsSelect":{const t=this.selectRows(this.startRow||0,e),n=new Array(Math.abs(e-(this.startRow||0))+1).fill("").map((e,n)=>t.start.row+n);this.clearRowsAndColumns(),this.setSelectRows(n),this.setSelecArea(t);break}}},this.handleCellMouseEnter=(e,t)=>{switch(this.operate){case"cellSelect":{const n={start:Object.assign({},this.startCell||{row:0,column:0}),end:{row:e,column:t}};f.resetSelectAreaOrigin(n),f.toRealAreaOfSelectArea(this.state.tableValue,n),this.clearRowsAndColumns(),this.setSelecArea(n);break}case"columnsSelect":{const e=this.selectColumns(this.startColumn||0,t);this.clearRowsAndColumns();const n=new Array(e.end.column-e.start.column+1).fill("").map((t,n)=>e.start.column+n);this.setSelectColumns(n),this.setSelecArea(e);break}case"rowsSelect":{const t=this.selectRows(this.startRow||0,e),n=new Array(Math.abs(e-(this.startRow||0))+1).fill("").map((e,n)=>t.start.row+n);this.clearRowsAndColumns(),this.setSelectRows(n),this.setSelecArea(t);break}}},this.handleSelectedCellByPosition=e=>{const{tableValue:t}=this.state,n=this.cells.find(t=>{if(!t)return!1;const n=l.create(t.getBoundingClientRect());return l.isContainerPoint(n,{top:e.y,left:e.x},!0)}),r={row:0,column:0};if(n){const{column:e,row:t}=n.dataset,o=parseInt(e||"0"),i=parseInt(t||"0");r.column=isNaN(o)?0:o,r.row=isNaN(i)?0:i}const o=f.findCell(t,r);if(o){const e=f.getAreaOfCell(t,o,r);this.setSelecArea(e)}},this.doRowOrColumnDragging=()=>{const{tableValue:e,selectArea:t}=this.state;if("rowsDrag"!==this.operate&&"columnsDrag"!==this.operate)return;if(!t||-1===t.start.row&&"rowsDrag"===this.operate)return;this.setState({cursor:"grabbing"});const n="rowsDrag"===this.operate;c.dragDelegate((r,o)=>{const{scale:i}=this.props,a={x:Math.floor(o.x/i),y:Math.floor(o.y/i)},{left:s,top:l,width:c,height:u}=f.getBoundsOfSelectArea(e,t),d=f.getTableSizeFromValue(e),p=n?0:(null==a?void 0:a.x)||0,m=n&&(null==a?void 0:a.y)||0,g=e.showHeader?e.headerHeight:0,v=h.max(h.min(d.width-c,s+p),0),y=h.max(h.min(d.height-u,l+m),g);this.dragOffset={x:v-s,y:y-l};const b=n?t.start.row:t.start.column,w=n?t.end.row:t.end.column,C=n?this.dragOffset.y:this.dragOffset.x;this.newDragIndex=f.getNewIndexAfterMoved(e,b,w,C,n),this.newDragIndex===b&&(this.newDragIndex=void 0),this.forceUpdate()},()=>{var r,o;if(a.isNumber(this.newDragIndex)){const i=n?t.start.row:t.start.column,a=n?t.end.row:t.end.column,{enable:s,text:l}=n?f.canMoveRows(e,i,a,this.newDragIndex):f.canMoveColumns(e,i,a,this.newDragIndex);if(l&&(null===(o=null===(r=this.context)||void 0===r?void 0:r.uiManager)||void 0===o||o.updateAlert(l)),s){const{comp:e}=this.props,{newValue:t,childrenPatches:r}=n?e.moveRows(i,a,this.newDragIndex):e.moveColumns(i,a,this.newDragIndex);this.doSubmit(t,r),this.clearSelectArea()}this.newDragIndex=void 0}this.dragOffset=void 0,this.setState({cursor:void 0})})},this.closeMenu=()=>{this.state.menuPosition&&this.setState({menuPosition:void 0})},this.handleContentEdit=()=>{const{selectArea:e}=this.state;if(!e||!this.selectBox.current)return;const t=e.start,n=f.findCell(this.state.tableValue,t);if(!n)return;const r=f.getAreaOfCell(this.state.tableValue,n,t),o=f.getBoundsOfSelectArea(this.state.tableValue,r),i=this.props.comp.components.find(e=>e.row===t.row&&e.column===t.column);i&&(this.selectedComps=[i]),this.editCellPosition=t,this.setState({editorBounds:o})},this.handleValueChange=e=>{const{tableValue:t}=this.state;if(!this.editCellPosition)return;const n=f.findCell(t,this.editCellPosition);if(!n)return;const r=f.getAreaOfCell(t,n,this.editCellPosition),o=f.getBoundsOfSelectArea(t,r).width-2*C.DefaultCellPadding;if(1===this.selectedComps.length){const n=this.selectedComps[0];n.type===S.CText?this.editText(e,n,t,o):this.editOther(n,e)}else this.createText(t,e,o)},this.handleCellDragAreaMouseDown=(e,t,n,r)=>{r.stopPropagation(),"vertical"===n?this.handleWidthDrag(t):"horizontal"===n&&this.handleHeightDrag(e)},this.doCellDragAreaInSelected=(e,t)=>{const{selectArea:n}=this.state;if(!n)return!0;const{start:r,end:o}=n;return!!a.isEqual(r,o)||("right"===e?!(t>=r.column&&t<o.column):"bottom"===e?!(t>=r.row&&t<o.row):void 0)},this.createText=(e,t,n)=>{if(!this.editCellPosition||!t)return;const r=A.makeText(p.getNewID(),(""+t).replace(/@/g,"@@"));r.row=this.editCellPosition.row,r.column=this.editCellPosition.column;const o=f.findCell(e,this.editCellPosition);o&&(r.properties.textFormat.textAlign=o.style.textAlign,r.properties.textFormat.verticalAlign=o.style.verticalAlign,r.properties.textFormat.wrap=!0,r.size=this.getTextSize(""+r.value,r.properties,n),r.autoSize=!1,r.position={x:0,y:0});const{patches:i}=this.props.comp.addComponents([r]);this.doSubmit(e,i[this.props.comp.ownerArtboardID])},this.editOther=(e,t)=>{var n,r;if(e.isSealed&&e.lib){const r=k.getComponent(e.lib);if(null==r?void 0:r.isTextComp){const r=m.getTextCompInSealed(e);if(r)return void(null===(n=this.context.coreEditor)||void 0===n||n.setComponentValue(r,t))}}else null===(r=this.context.coreEditor)||void 0===r||r.setValue(e.type,t,[e])},this.editText=(e,t,n,r)=>{if(this.editCellPosition){if(!e){const{newValue:e,childrenPatches:t}=this.props.comp.cleanContent([this.editCellPosition]);return this.selectedComps=[],void this.doSubmit(e,t)}{const o=t.setValue(e),i=this.getTextSize(""+e,t.properties,r);if(i.width!==t.size.width||i.height!==t.size.height){const e=t.setSize(i);o.do[t.id].push(...e.do),o.undo[t.id].push(...e.undo)}this.doSubmit(n,o)}}},this.handleValueEditorExit=()=>{this.focus(),this.setState({editorBounds:void 0},()=>{this.editCellPosition=void 0})},this.renderAllSelector=()=>r.createElement("div",{className:i.default("all-selector",{actived:this.isSelectedAll,selected:this.state.selectedAll}),onMouseDown:this.handleAllSelectorMouseDown}),this.renderColumnSelector=()=>{const{columns:e}=this.state.tableValue;return r.createElement("div",{className:"column-selector",onContextMenu:this.handleContextMenu.column},e.map((e,t)=>r.createElement(r.Fragment,{key:t},r.createElement("div",{className:i.default("column-item",{selected:this.state.selectColumns.includes(t),actived:this.activedColumns.includes(t)}),onMouseDown:this.handleColumnMouseDown.bind(this,t),onMouseEnter:this.handleColumnMouseEnter.bind(this,t),style:{width:e.width}},f.index2String(t)),r.createElement("div",{className:"right-border"},r.createElement("div",{className:"handle",onMouseDown:this.handleWidthDrag.bind(this,t)})))))},this.renderRowSelector=()=>{const{rows:e,showHeader:t,headerHeight:n}=this.state.tableValue;return r.createElement("div",{className:"row-selector",onContextMenu:this.handleContextMenu.row},t&&r.createElement(r.Fragment,null,r.createElement("div",{className:i.default("row-item",{selected:this.state.selectRows.includes(-1),actived:this.activedRows.includes(-1)}),onMouseDown:this.handleRowMouseDown.bind(this,-1),onMouseEnter:this.handleRowMouseEnter.bind(this,-1),style:{height:n,lineHeight:n+"px"}},1),r.createElement("div",{className:"bottom-border"},r.createElement("div",{className:"handle",onMouseDown:this.handleHeightDrag.bind(this,-1)}))),e.map((e,n)=>r.createElement(r.Fragment,{key:n},r.createElement("div",{className:i.default("row-item",{selected:this.state.selectRows.includes(n),actived:this.activedRows.includes(n)}),onMouseDown:this.handleRowMouseDown.bind(this,n),onMouseEnter:this.handleRowMouseEnter.bind(this,n),style:{height:e.height,lineHeight:e.height+"px"}},t?n+2:n+1),r.createElement("div",{className:"bottom-border"},r.createElement("div",{className:"handle",onMouseDown:this.handleHeightDrag.bind(this,n)})))))},this.renderTableInfoTips=()=>{if(!this.columnAddOffset&&!this.rowAddOffset)return null;if(!this.cursorPosition)return null;const{tableValue:e}=this.state,{rows:t,columns:n,showHeader:i}=e,a=h.min(C.MaxColumnsCount-n.length,Math.ceil((this.columnAddOffset||0)/C.DefaultCellWidth)),s=h.min(C.MaxRowsCount-t.length,Math.ceil((this.rowAddOffset||0)/C.DefaultCellHeight)),l=t.length+s+(i?1:0),c=n.length+a,{x:u,y:d}=this.cursorPosition;return o.createPortal(r.createElement("div",{className:"table-info-tips",style:{top:d-10,left:u+10}},T.default("editor.tableInfo",l,c)),document.body)},this.renderCursor=()=>{const{cursor:e}=this.state;return e?o.createPortal(r.createElement("div",{className:i.default("table-editor-cursor",e)}),document.body):null},this.renderDynRows=e=>{if(!this.rowAddOffset)return null;const{tableValue:t}=this.state,{rows:n,columns:o}=t,i=n.length-1,a=f.getRowHeight(t,i),s=h.min(C.MaxRowsCount-n.length,Math.ceil(this.rowAddOffset/a));if(!s)return null;const l=[];l.push(0),o.forEach(e=>{l.push((l[l.length-1]||0)+e.width)});return r.createElement(r.Fragment,null,l.map((t,n)=>r.createElement("line",{className:"dyn-line",key:"col-"+n,x1:t+.5,x2:t+.5,y1:e,y2:a*s+e,strokeWidth:1,strokeDasharray:"5,5"})),new Array(s).fill(1).map((t,n)=>r.createElement("line",{className:"dyn-line",key:"row-"+n,x1:0,x2:l[l.length-1],y1:a*(n+1)+e+.5,y2:a*(n+1)+e+.5,strokeWidth:1,strokeDasharray:"5,5"})))},this.renderDynColumns=e=>{if(!this.columnAddOffset)return null;const{tableValue:t}=this.state,{rows:n,columns:o,showHeader:i,headerHeight:a}=t,s=o.length-1,l=f.getColumnWidth(t,s),c=h.min(C.MaxColumnsCount-o.length,Math.ceil(this.columnAddOffset/l));if(!c)return null;const u=[];u.push(0),i&&u.push(a),n.forEach(e=>{u.push((u[u.length-1]||0)+e.height)});return r.createElement(r.Fragment,null,u.map((t,n)=>r.createElement("line",{className:"dyn-line",key:"row-"+n,x1:e,x2:e+l*c,y1:t+.5,y2:t+.5,strokeWidth:1,strokeDasharray:"5,5"})),new Array(c).fill(1).map((t,n)=>r.createElement("line",{className:"dyn-line",key:"col-"+n,x1:l*(n+1)+e+.5,x2:l*(n+1)+e+.5,y1:0,y2:u[u.length-1],strokeWidth:1,strokeDasharray:"5,5"})))},this.renderContentArea=()=>{const{rows:e,columns:t,showHeader:n,headerHeight:o}=this.state.tableValue,{width:s,height:l}=f.getTableSizeFromValue(this.state.tableValue),c=`M ${this.lineX||0} -30 V ${l}`,u=`M -30 ${this.lineY||0} H ${s}`,d={x:0,y:0};"resizeHeight"===this.operate?(d.x=-50,d.y=(this.lineY||0)+4):"resizeWidth"===this.operate&&(d.x=(this.lineX||0)-8,d.y=-40);const h=x.parseColorToString(w.BlueColor);return r.createElement("div",{className:"content-area",style:{width:s,height:l}},r.createElement("table",{onContextMenu:this.handleContextMenu.cell,onDoubleClick:this.handleContentEdit,className:"table-grid"},r.createElement("tbody",null,n&&r.createElement("tr",{style:{height:o}},t.map((e,t)=>r.createElement("td",{ref:this.setCells,key:t,onMouseDown:this.handleCellMouseDown.bind(this,-1,t),onMouseEnter:this.handleCellMouseEnter.bind(this,-1,t),"data-row":-1,"data-column":t,style:{width:e.width}}))),e.map((e,n)=>r.createElement("tr",{key:n,style:{height:e.height}},t.map((e,t)=>r.createElement("td",{className:"cell-drag-wrapper",ref:this.setCells,key:t,onMouseDown:this.handleCellMouseDown.bind(this,n,t),onMouseEnter:this.handleCellMouseEnter.bind(this,n,t),"data-row":n,"data-column":t,style:{width:e.width}},r.createElement("span",{className:"right-drag-area",onMouseDown:this.handleCellDragAreaMouseDown.bind(this,n,t,"vertical")}),r.createElement("span",{className:"bottom-drag-area",onMouseDown:this.handleCellDragAreaMouseDown.bind(this,n,t,"horizontal")}))))))),r.createElement("div",{className:i.default("row addBtn",{actived:!a.isUndefined(this.rowAddOffset)}),style:{top:l+8+(this.rowAddOffset||0)},onMouseDown:this.handleDragToAddRows},r.createElement(E.Icon,{cls:"layer_plus",tips:a.isUndefined(this.rowAddOffset)?T.default("editor.dragToAddRows"):""})),r.createElement("div",{className:i.default("column addBtn",{actived:!a.isUndefined(this.columnAddOffset)}),style:{left:s+8+(this.columnAddOffset||0)},onMouseDown:this.handleDragToAddColumns},r.createElement(E.Icon,{cls:"layer_plus",tips:a.isUndefined(this.columnAddOffset)?T.default("editor.dragToAddColumns"):""})),this.renderSelectArea(),this.renderDraggingArea(),this.renderBorderOnMoving(),("resizeHeight"===this.operate||"resizeWidth"===this.operate||"rowsDrag"===this.operate||"columnsDrag"===this.operate||!!this.rowAddOffset||!!this.columnAddOffset)&&r.createElement("svg",{className:i.default("svg",this.operate),style:{width:s,height:l,overflow:"visible"},version:"1.1",xmlns:"http://www.w3.org/2000/svg"},"resizeHeight"===this.operate&&r.createElement("path",{d:u,stroke:h,strokeWidth:2}),"resizeWidth"===this.operate&&r.createElement("path",{d:c,stroke:h,strokeWidth:2}),("resizeHeight"===this.operate||"resizeWidth"===this.operate)&&r.createElement("text",{x:d.x,y:d.y,fill:h},Math.round(this.dragSize||0)),this.renderDynRows(l),this.renderDynColumns(s),this.renderDragingLine()),("resizeHeight"===this.operate||"resizeWidth"===this.operate)&&r.createElement("div",{className:i.default("over",this.operate)}))},this.renderSelectArea=()=>{const{selectArea:e,tableValue:t}=this.state;if(!e||!e.start||!e.end)return null;const{left:n,top:o,width:i,height:a}=f.getBoundsOfSelectArea(t,e);return r.createElement("div",{ref:this.selectBox,className:"select-box",style:{left:n,top:o,width:i,height:a}})},this.renderDraggingArea=()=>{var e,t;const{selectArea:n,tableValue:o}=this.state;if(!n||!n.start||!n.end||"rowsDrag"!==this.operate&&"columnsDrag"!==this.operate)return null;const{left:i,top:a,width:s,height:l}=f.getBoundsOfSelectArea(o,n);return r.createElement("div",{className:"dragging-area",style:{left:i+((null===(e=this.dragOffset)||void 0===e?void 0:e.x)||0),top:a+((null===(t=this.dragOffset)||void 0===t?void 0:t.y)||0),width:s,height:l}})},this.renderBorderOnMoving=()=>{const{editorPosition:e,tableValue:t}=this.state;if(!e)return null;const{columns:n,rows:o,showHeader:i}=t,a={start:{row:i?-1:0,column:0},end:{row:o.length-1,column:n.length-1}},{left:s,top:l,width:c,height:u}=f.getBoundsOfSelectArea(t,a);return r.createElement("div",{className:"moving-border",style:{left:s,top:l,width:c,height:u}})},this.getNewLineData=e=>{const{tableValue:t,selectArea:n}=this.state;if(!n||a.isUndefined(this.newDragIndex))return;const r=e?n.start.row:n.start.column,o=this.newDragIndex-r,i={start:{row:n.start.row+(e?o:0),column:n.start.column+(e?0:o)},end:{row:n.end.row+(e?o:0),column:n.end.column+(e?0:o)}},s=f.getTableSizeFromValue(t),l=f.getBoundsOfSelectArea(t,i);return{startPoint:{x:e?0:o<0?l.left:l.right,y:e?o<0?l.top:l.bottom:0},endPoint:{x:e?s.width:o<0?l.left:l.right,y:e?o<0?l.top:l.bottom:s.height}}},this.renderDragingLine=()=>{if("columnsDrag"!==this.operate&&"rowsDrag"!==this.operate)return null;const{selectArea:e}=this.state;if(!e)return null;const t="rowsDrag"===this.operate,n=this.getNewLineData(t);return n?r.createElement("line",{x1:n.startPoint.x,x2:n.endPoint.x,y1:n.startPoint.y,y2:n.endPoint.y,stroke:x.parseColorToString(w.BlueColor),strokeWidth:2}):null},this.state={tableValue:e.value,selectRows:[],selectColumns:[],selectedAll:!1,menuType:"cell"}}componentDidMount(){window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),window.addEventListener("keyup",this.handleWindowKeyUpCapture,{capture:!0}),window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("mousewheel",this.handleWheel),document.addEventListener("paste",this.handlePaste),this.context.uiManager.tableEditor={selectArea:this.state.selectArea,selectRows:this.state.selectRows,selectColumns:this.state.selectColumns,setRowsHeight:this.handleHeightChange,setColumnsWidth:this.handleWidthChange,setTextAlign:this.handleTextAlignChange,setVerticalAlign:this.handleVerticalAlignChange,setCellsBorder:this.handleBorderChange,setFill:this.handleFillChange},this.focus(),this.context.uiManager.updateApplicationBar(),this.context.uiManager.updateRightPanel(),setTimeout(()=>{this.props.doubleClickPoint&&this.handleSelectedCellByPosition(this.props.doubleClickPoint)},100)}getRowMinHeight(e){const t=this.props.comp.components.filter(t=>t.row===e).map(e=>e.size.height+2*C.DefaultCellPadding);return Math.max(...t,C.MinCellHeight)}getColMinWidth(e){const t=this.props.comp.components.filter(t=>t.column===e).map(e=>e.size.width+2*C.DefaultCellPadding);return Math.max(...t,C.MinCellWidth)}componentWillUnmount(){var e;this.context.uiManager.closeTableEditor(),this.context.uiManager.tableEditor=void 0,null===(e=this.context.uiManager.workSpace)||void 0===e||e.focus(),this.selectedComps=[],window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),window.removeEventListener("keyup",this.handleWindowKeyUpCapture,{capture:!0}),window.removeEventListener("mousewheel",this.handleWheel),document.removeEventListener("paste",this.handlePaste)}UNSAFE_componentWillReceiveProps(e){h.isEqualDate(this.props.value,e.value)||this.setState({tableValue:e.value});const t=e.comp.getCompsInArea(this.state.selectArea),n=t.map(e=>e.id),r=this.selectedComps.map(e=>e.id);a.isEqual(n,r)||(this.selectedComps=t)}get isSelectedAll(){const{tableValue:{columns:e,rows:t,showHeader:n},selectArea:r}=this.state,o={start:{row:n?-1:0,column:0},end:{row:t.length-1,column:e.length-1}};return h.isEqualDate(o,r)}get activedRows(){const{selectArea:e}=this.state;if(!e)return[];const{start:t,end:n}=e;return new Array(n.row-t.row+1).fill("").map((e,n)=>n+t.row)}get activedColumns(){const{selectArea:e}=this.state;if(!e)return[];const{start:t,end:n}=e;return new Array(n.column-t.column+1).fill("").map((e,n)=>n+t.column)}get selectedComps(){return this.props.comp.selectedComps}set selectedComps(e){this.restoreLastSelCellComponentsState(),this.props.comp.selectedComps=e,this.context.uiManager.updateRightPanel(),this.context.uiManager.updateApplicationBar()}restoreLastSelCellComponentsState(){var e;const{comp:t}=this.props,n=[];for(const e of t.selectedComps)e.toJSON()._currentState&&n.push({comp:e,stateID:void 0});null===(e=this.context.coreEditor)||void 0===e||e.switchState(n)}selectedUpper(){const{tableValue:e,selectArea:t}=this.state;if(!t)return;const{rows:n,showHeader:r}=e,o=h.depthClone(t.start);let i=void 0,s=f.findCell(e,o);const l=r?-1:0,c=n.length-1;do{o.row>l?o.row-=1:o.column>0&&(o.row=c,o.column-=1),s=f.findCell(e,o),s&&a.isUndefined(s.mergedBy)&&(i=o)}while(!(0===o.column&&o.row===l||s&&a.isUndefined(s.mergedBy)));if(!i||!s)return;const u=f.getAreaOfCell(e,s,i);this.setSelecArea(u),this.focus()}selectedLower(){const{tableValue:e,selectArea:t}=this.state;if(!t)return;const{rows:n,columns:r,showHeader:o}=e,i=h.depthClone(t.start);let s=void 0,l=f.findCell(e,i);const c=n.length-1,u=r.length-1,d=o?-1:0;do{i.row<c?i.row+=1:i.column<u&&(i.row=d,i.column+=1),l=f.findCell(e,i),l&&a.isUndefined(l.mergedBy)&&(s=i)}while(!(i.column===u&&i.row===c||l&&a.isUndefined(l.mergedBy)));if(!s||!l)return;const p=f.getAreaOfCell(e,l,s);this.setSelecArea(p),this.focus()}selectedLeft(){const{tableValue:e,selectArea:t}=this.state;if(!t)return;const{rows:n,showHeader:r}=e,o=h.depthClone(t.start);let i=void 0,s=f.findCell(e,o);const l=r?-1:0,c=n.length-1;do{o.column>0?o.column-=1:o.row>l&&(o.column=c,o.row-=1),s=f.findCell(e,o),s&&a.isUndefined(s.mergedBy)&&(i=o)}while(!(0===o.column&&o.row===l||s&&a.isUndefined(s.mergedBy)));if(!i||!s)return;const u=f.getAreaOfCell(e,s,i);this.setSelecArea(u),this.focus()}selectedRight(){const{tableValue:e,selectArea:t}=this.state;if(!t)return;const{rows:n,columns:r}=e,o=h.depthClone(t.start);let i=void 0,s=f.findCell(e,o);const l=n.length-1,c=r.length-1;do{o.column<c?o.column+=1:o.row<l&&(o.column=0,o.row+=1),s=f.findCell(e,o),s&&a.isUndefined(s.mergedBy)&&(i=o)}while(!(o.column===c&&o.row===l||s&&a.isUndefined(s.mergedBy)));if(!i||!s)return;const u=f.getAreaOfCell(e,s,i);this.setSelecArea(u),this.focus()}get isTextEditorFocused(){var e;return!!(null===(e=this.valueEditor.current)||void 0===e?void 0:e.focus)&&!!this.state.editorBounds}getTextSize(e,t,n){const r=y.StyleHelper.initCSSStyleParser(t),{width:o,height:i}=u.measureTextSize(r.getTextStyle(),e,{isMultiText:!0,isRich:!0,wrap:!0,defaultWidth:n});return{width:o,height:i}}selectColumns(e,t){const{tableValue:{rows:n,showHeader:r}}=this.state,o=r?-1:0,i=n.length-1;return{start:{row:o,column:Math.min(e,t)},end:{row:i,column:Math.max(e,t)}}}selectRows(e,t){const{tableValue:{columns:n}}=this.state;return{start:{row:Math.min(e,t),column:0},end:{row:Math.max(e,t),column:n.length-1}}}render(){var e;const{tableValue:t,menuPosition:n,menuType:o,selectArea:i,selectedAll:a,selectRows:l,selectColumns:c,editorBounds:u,editorPosition:d}=this.state,{rows:h,columns:p,showHeader:f,headerHeight:m}=t,g=p.map(e=>e.width).reduce((e,t)=>e+t);let v=h.map(e=>e.height).reduce((e,t)=>e+t);f&&(v+=m);let y=this.selectedComps[0];if(!y&&u){const t=A.makeText("");t.value="",t.row=null!==(e=null==i?void 0:i.start.row)&&void 0!==e?e:0,t.column=(null==i?void 0:i.start.column)||0,y=new s.UIComponent(t,this.props.comp)}const b=this.getStyleOnEditorMove(d);return r.createElement(r.Fragment,null,r.createElement("div",{ref:this.tableEditor,className:"table-editor",style:b,tabIndex:0,onContextMenu:this.handleTableEditorContextMenu,onKeyDown:this.handleKeyDown,onMouseDown:this.handleEditorMouseDown},r.createElement("div",{className:"row",style:{width:g+30,height:32}},this.renderAllSelector(),this.renderColumnSelector()),r.createElement("div",{className:"row",style:{width:g+30,height:v}},this.renderRowSelector(),this.renderContentArea())),u&&r.createElement(M.default,{ref:this.valueEditor,bounds:u,component:y,onChange:this.handleValueChange,onExit:this.handleValueEditorExit,useInTable:!0}),n&&r.createElement(D.default,{comp:this.props.comp,tableValue:t,selectArea:i,selectRows:l,selectColumns:c,selectedAll:a,type:o,position:n,onMenuClose:this.closeMenu,onSelectedCompsUpdate:this.updateSelectComps,onSelectedCleared:this.clearSelectArea,onCellsContentCleared:this.cleanCellsContent,onCellsContentConvert:this.convertCellsContent,onConfirm:this.context.uiManager.updateConfirm,onCopyCells:this.handleCopyCells,onPasteCells:this.handlePaste,onSubmit:this.doSubmit}),this.renderCursor(),this.renderTableInfoTips())}}t.default=I,I.contextType=P.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(8),i=n(16),a=n(132),s=n(48),l=n(56),c=n(55),u=n(29),d=n(301),h=n(50),p=n(14),f=n(75),m=n(6),g=n(43),v=n(430),y=n(17),b=n(106),w=n(282),C=n(1222),_=n(1224),x=n(1233),S=n(431),k=n(1237),P=n(1240);n(1245);class T extends r.Component{constructor(e){super(e),this.richTextEditor=r.createRef(),this.pureTextEditor=r.createRef(),this.doTextEditorExit=()=>{const e=this.richTextEditor.current,t=this.pureTextEditor.current;e&&e.cancel(),t&&d.changeFocus()},this.handleRichEditorChange=e=>{const{onChange:t,onExit:n}=this.props;t(e),n()},this.handleRichContextMenu=e=>{this.props.useInTable&&(e.stopPropagation(),e.preventDefault())},this.handleRichMouseDown=e=>{e.button===f.MouseButton.Right&&this.props.useInTable&&e.stopPropagation()},this.handleRichMouseUp=()=>{var e;null===(e=this.richTextEditor.current)||void 0===e||e.focus()},this.renderRichTextEditor=e=>{const{component:t,bounds:{left:n,top:o,width:a,height:s},useInTable:l}=this.props,{properties:u}=t,d=h.upgradeTextProperValue(u.textFormat),f=(null==d?void 0:d.fontSize)||14,m=(null==d?void 0:d.lineHeightEx)||20,g=p.StyleHelper.initCSSStyleParser(u),v=Object.assign({},g.getTextStyle());v.fontSize=f/c.FontBoxScale,m&&(v.lineHeight=m/c.FontBoxScale+"px");const b={};if(t.parent instanceof y.UITableComponent){const{row:e,column:n}=t.toJSON(),{value:r}=t.parent,o=r.cells[e][n].style.fill;o&&(b.background=i.parseColorToString(o))}return r.createElement("div",{className:"value-editor rich-editor",style:Object.assign(Object.assign({},b),{width:2*a,minHeight:2*s,left:n,top:o,transform:`scale(${c.FontBoxScale})`,transformOrigin:"left top"}),onContextMenu:this.handleRichContextMenu,onMouseDown:this.handleRichMouseDown,onMouseUp:this.handleRichMouseUp},r.createElement(w.default,{ref:this.richTextEditor,ownerComp:t,align:"left",onValueChanged:this.handleRichEditorChange,onSelectChanged:()=>{},style:v,className:"",value:e,useInTable:l}))},this.computedPureTextEditor=()=>{const{component:e,bounds:t}=this.props;if(!e.isContainer)return{position:{left:t.left,top:t.top},size:{width:400,height:30},fontSize:c.DefaultFontSize,textAlign:s.TextAlign.left};const n=e,r=n.components.find(e=>"text"===e.type),o=n.fontSize,i=e.isSealed?s.TextAlign.left:n.textAlign,a=r&&r.size||{width:10,height:10},l={width:e.isSealed?300:a.width,height:e.isSealed?30:a.height},u=r&&r.position||{x:0,y:0},d=u.x<0?t.left:t.left+u.x,h=u.y<0?t.top:t.top+(t.height-a.height)/2;return{position:{left:e.isSealed?t.left:d,top:e.isSealed?t.top:h},size:l,fontSize:o,textAlign:i}},this.renderPureTextEditor=()=>{const{component:e}=this.props;let t=e;if(e.isSealed){const n=u.getTextCompInSealed(e);n&&(t=n)}const{value:n,properties:o,type:i}=t,{multiText:s,inputModel:l}=o;let c,d="text";l&&l.value===a.InputModel.numeric?(c=n,d="number"):c=n;let h=300;i===m.CQRCode&&(h=500);const{position:p,size:f,fontSize:g,textAlign:v}=this.computedPureTextEditor();return r.createElement(x.default,{ref:this.pureTextEditor,hocRef:this.pureTextEditor,position:p,size:f,textAlign:v,fontSize:g,maxlength:h,applyStyle:t.componentType===m.CTextArea||t.componentType===m.CInput,value:c,valueType:d,wrap:!!s&&s.wrap,onChange:this.props.onChange,onClose:this.props.onExit,triggerCloseContainer:this.props.triggerCloseContainer})},this.renderBooleanEditor=()=>{const{component:e,bounds:t}=this.props,{coreEditor:n}=this.context;let o=!1;const i=g.getComponentValueEditorInfo(e.type,e.lib);return i&&i.getValue&&(o=i.getValue(e)),r.createElement(C.default,{position:{left:t.left,top:t.top},size:{width:t.width,height:t.height},value:o,onClose:this.props.onExit,triggerCloseContainer:this.props.triggerCloseContainer,onChange:t=>{if(n&&i&&i.setValue){const r=i.setValue(e,t);r&&n.update(r)}}})},this.renderListItemPureTextValuesEditor=()=>{const{component:e,bounds:t}=this.props,{coreEditor:n}=this.context;let i=v.getListItemsValue(e);return r.createElement(x.default,{position:{left:t.left,top:t.top},size:{width:o.max(t.width,300),height:o.max(t.height,300)},value:i,wrap:!0,onChange:t=>{n&&n.setListItemsValue(e,t.trim(),e.lib)},onClose:this.props.onExit,triggerCloseContainer:this.props.triggerCloseContainer})},this.renderSelector=e=>{const{onExit:t,onSelect:n,component:{size:o}}=this.props;return r.createElement(S.default,{type:e,onCancel:t,onSelect:n,compSize:o})},this.renderSnapshotEditor=()=>{const{onExit:e,onSelectSnapshot:t,component:{size:n}}=this.props;return r.createElement(k.default,{compSize:n,onSelectSnapshot:t,onCancel:e})},this.renderTreeValueEditor=()=>{const{component:e,bounds:t}=this.props,{coreEditor:n}=this.context;return r.createElement(P.default,{comp:e,coreEditor:n,bounds:t,onClose:this.props.onExit})},this.renderNothing=()=>{const{onExit:e}=this.props;return e(),null},this.state={},this.selfRef=r.createRef()}get focus(){var e,t,n;const r=!!(null===(e=this.richTextEditor.current)||void 0===e?void 0:e.focused),o=!!(null===(n=null===(t=this.pureTextEditor.current)||void 0===t?void 0:t.domRef.current)||void 0===n?void 0:n.contains(document.activeElement));return r||o}renderItemValueEditor(){const{component:e,bounds:t,onOpenIconLibrariesPanel:n}=this.props,{coreEditor:o}=this.context;return r.createElement(_.default,{comp:e,coreEditor:o,sourceBounds:t,onOpenIconLibrariesPanel:n,onClose:this.props.onExit})}render(){const{component:e}=this.props;let t,n=e.value||e.text;if(e.isContainer&&e.lib){const r=g.getComponent(e.lib);r&&(r.isList&&"tree"!==r.type?t=l.default.ItemValue:r.isTextComp?r.value?(t=r.value.type,r.value.getValue&&(n=r.value.getValue(e))):t=l.default.PureText:"tree"===r.type&&(t=l.default.Tree))}else t=g.getComponentSupportValueEditorType(e.type,e.lib);switch(t){case l.default.RichText:return this.renderRichTextEditor(n);case l.default.PureText:return this.renderPureTextEditor();case l.default.Bool:return this.renderBooleanEditor();case l.default.ListItemPureTextValues:return this.renderListItemPureTextValuesEditor();case l.default.Image:return this.renderSelector(t);case l.default.Snapshot:return this.renderSnapshotEditor();case l.default.Video:case l.default.Svg:return this.renderSelector(t);case l.default.ItemValue:return this.renderItemValueEditor();case l.default.Tree:return this.renderTreeValueEditor();default:return this.renderNothing()}}}T.defaultProps={textAlign:s.TextAlign.left},T.contextType=b.default,t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(22);n(1223);const i=n(4);class a extends r.Component{constructor(){super(...arguments),this.onClick=()=>{this.props.onChange(!this.props.value)}}render(){const e=Object.assign({},this.props.position,this.props.size);return r.createElement("div",{ref:this.props.forwardedRef,onClick:this.onClick,className:"boolean-editor",style:e},r.createElement("span",{className:"tips"},i.default("tips.clickCompnentToSwitchState")))}}t.default=o.withAutoClose(a)},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(4),a=n(8),s=n(84),l=n(22),c=n(17),u=n(29),d=n(43),h=n(6),p=n(6),f=n(1225);n(1232);const m=n(18),g=n(14),v=n(76),y=n(106),b=n(24),w=n(36),C=n(62);class _ extends r.Component{constructor(e){super(e),this.valueComps=[],this.targetComp=void 0,this.contentDom=r.createRef(),this.scrollBar=r.createRef(),this.handleValueChanged=(e,t)=>{if("string"!=typeof t||t.trim())this.doChangeItemValue(e,t),this.setState({editIndex:void 0}),this.contentDom.current&&this.contentDom.current.focus();else{if(this.removeTimer)return;this.removeTimer=window.setTimeout(()=>{clearTimeout(this.removeTimer),this.removeTimer=void 0,this.doRemoveItem(e)},0)}},this.handleEditNext=(e,t,n)=>{setTimeout(()=>{const r=e+t;r===this.containerComp.components.length?n&&this.doAppendItem():this.setState({editIndex:r,selectedIndex:r},()=>{this.doSetCompSelectItem(r),this.doScroll()})},0)},this.handleAppendItem=()=>{this.doAppendItem()},this.handleRemoveItem=()=>{this.doRemoveItem(this.state.selectedIndex)},this.handleMouseEnterItem=e=>{var t;const{comp:n}=this.props;null===(t=this.context.uiManager.projectTree)||void 0===t||t.refresh(n.components[e])},this.handleMoveItemIndex=(e,t)=>{this.doMoveItemIndex(e,t)},this.handleKeyDown=e=>{let t=this.props.comp,n=!1;t instanceof c.UISelectPanelComponent&&!t.canRemoveChildren&&(n=!0);const{selectedIndex:r,editIndex:o}=this.state;if(void 0!==r&&void 0===o){if(e.keyCode===w.default.VK_ENTER)return e.stopPropagation(),void(s.isControlKeyPressed(e)?this.doAppendItem():this.setState({editIndex:r}));if(e.keyCode===w.default.VK_DEL||e.keyCode===w.default.VK_BACKSPACE)return e.stopPropagation(),void(n||this.doRemoveItem(r));if([w.default.VK_UP,w.default.VK_DOWN,w.default.VK_LEFT,w.default.VK_RIGHT].includes(e.keyCode)&&e.stopPropagation(),s.isControlKeyPressed(e)){if(e.keyCode==w.default.VK_UP){if(0===r)return;this.doMoveItemIndex(r,r-1)}else if(e.keyCode==w.default.VK_DOWN){if(r===this.valueComps.length-1)return;this.doMoveItemIndex(r,r+2)}}else s.isControlKeyPressed(e)||(e.keyCode===w.default.VK_UP?0!==r&&this.setState({selectedIndex:r-1},()=>{this.doScroll(),this.doSetCompSelectItem(this.state.selectedIndex)}):e.keyCode===w.default.VK_DOWN&&r!==this.valueComps.length-1&&this.setState({selectedIndex:r+1},()=>{this.doScroll(),this.doSetCompSelectItem(this.state.selectedIndex)}))}},this.handleItemClick=e=>{this.setState({selectedIndex:e},()=>{this.doSetCompSelectItem(this.state.selectedIndex)}),o.isUndefined(this.state.editIndex)||-1===this.state.editIndex||this.setState({editIndex:void 0})},this.handleExitItemValueEditor=e=>{e===this.state.editIndex&&this.setState({editIndex:void 0})},this.handleItemChecked=(e,t)=>{var n;const{coreEditor:r,comp:o}=this.props,i=this.containerComp.components[e];if("score"===(null===(n=o.lib)||void 0===n?void 0:n.type)){let n=[],i=[];t?(n=o.components.slice(0,e+1),i=o.components.slice(e+1)):i=o.components.slice(e);const a=new C.ArtboardPatchesClass;n&&n.forEach(e=>{a.coverPatches(r.getChangeCompGeneralPropertiesPatches(e,"selected",!0))}),i&&i.forEach(e=>{a.coverPatches(r.getChangeCompGeneralPropertiesPatches(e,"selected",!1))}),r.updateSingleArtboard(o.ownerArtboardID,a)}else r.setComponentGeneralProperties(i,"selected",t)},this.handleMoveItem=e=>{const{selectedIndex:t}=this.state;if(!o.isUndefined(t)){let n=t;n="up"===e?Math.max(0,t-1):Math.min(this.valueComps.length,t+2),t!==n&&this.doMoveItemIndex(t,n)}},this.handleInteractionDragger=(e,t)=>{var n,r,o;const i=null===(n=this.containerComp)||void 0===n?void 0:n.components[t];i&&(this.handleItemClick(t),null===(o=null===(r=this.context.uiManager.workSpace)||void 0===r?void 0:r.page)||void 0===o||o.startFindInteractionTarget(e,i))},this.doRemoveItem=e=>{const{coreEditor:t}=this.props,n=this.containerComp,r=n.components[e];let o=Math.max(0,e-1);n.type===h.CContentPanel&&(o=void 0),this.setState({selectedIndex:o,editIndex:void 0},()=>{this.doScroll(),this.doSetCompSelectItem(o)}),n.type===h.CContentPanel?t.removeContentPanelItem(n,r.value):n.components.length>1&&t.removeSealedChildComponents([r],n),this.focus()},this.doMoveItemIndex=(e,t)=>{const{coreEditor:n}=this.props,r=this.containerComp;n.moveChildOrder(e,t,r),t<e?this.setState({selectedIndex:t},()=>{this.doScroll(),this.doSetCompSelectItem(this.state.selectedIndex)}):t>e&&this.setState({selectedIndex:t-1},()=>{this.doScroll(),this.doSetCompSelectItem(this.state.selectedIndex)})},this.getValue=e=>{const{comp:t,coreEditor:n}=this.props;let r=!1;if(t.type===h.CContentPanel){let t=n.doc.getFragmentNameByID(e.value);return""===t&&(t=i.default("property.interaction.invalidFragment"),r=!0),{value:t,invalid:r}}return{value:e.value,invalid:r}},this.handleAfterDrag=e=>{e.stopPropagation(),this.props.onMouseUp&&this.props.onMouseUp(e)},this.setTargetComp=e=>{o.set(this,"targetComp",e)},this.flatComps(e.comp),this._valueType=this.getValueType();const t=this.valueComps.length>0?0:void 0;this.state={position:{left:e.sourceBounds.left,top:e.sourceBounds.top},selectedIndex:t}}get valueType(){return this._valueType}componentDidMount(){if(this.contentDom.current&&(this.contentDom.current.focus(),this.adjustPosition(),this.context.uiManager.valueEditor=this,this.valueComps.length&&"string"===this._valueType)){const{selectedIndex:e}=this.state;o.isUndefined(e)||this.doSetCompSelectItem(e),this.setState({editIndex:e})}}UNSAFE_componentWillReceiveProps(e){this.flatComps(e.comp)}componentWillUnmount(){var e,t;this.context.actionFinderManager.updateSource(void 0),clearTimeout(this.removeTimer),this.context.uiManager.valueEditor=void 0,this.props.comp.selectedItem=void 0,null===(e=this.context.uiManager.interactionPanel)||void 0===e||e.refresh(),null===(t=this.context.uiManager.projectTree)||void 0===t||t.refresh()}setValue(e){const{selectedIndex:t}=this.state;if(this.containerComp instanceof c.UISelectPanelComponent&&this.targetComp&&this.props.coreEditor.setComponentValue(this.targetComp,e),o.isNumber(t)&&-1!==t){const n=this.valueComps[t];n&&this.props.coreEditor.setComponentValue(n,e)}}adjustPosition(){if(this.props.forwardedRef){const e=this.props.forwardedRef.current;if(e){const{width:t,height:n,right:r,bottom:o}=e.selfRef.current.getBoundingClientRect();let{left:i,top:a}=this.state.position;const s=window.innerHeight,l=window.innerWidth;o>s&&(a=Math.round(a-n)),r>l&&(i=Math.round(l-t)),i===this.state.position.left&&a===this.state.position.top||this.setState({position:{left:i,top:a}})}}}flatComps(e){this.valueComps=[],this.containerComp=e;const{type:t}=e;if(t===h.CContentPanel||t===h.CSelectPanel)return void this.valueComps.push(...e.components);if(!e.isSealed)return;if(t===h.CSelect){const e=this.containerComp.getComponentByAlias("list",!0);if(!e)return;this.containerComp=e}const n=[],r=(e,t)=>{t.push(...e.components),e.components.forEach(e=>{e.isContainer&&r(e,t)})};this.containerComp.components.forEach(e=>{const t=[];n.push(t),t.push(e),e.isContainer&&r(e,t)}),n.forEach(e=>{let t=void 0,n=void 0,r=void 0;e.forEach(e=>{!t&&h.isTextType(e.type)&&(t=e),n||e.type!==h.CIcon||(n=e),r||e.type!==h.CImage||(r=e)});const o=t||n||r;this.valueComps.push(o)})}getValueType(){if(this.valueComps.length){const e=this.valueComps[0];if(this.props.comp.type===h.CSelectPanel)return"custom";if(e){const{type:t}=e;if(h.isTextType(t)||this.props.comp.type===h.CContentPanel)return"string";if(h.CIcon===t)return"icon";if(h.CImage===t)return"image"}}return"other"}doScroll(){const{selectedIndex:e}=this.state;if(this.scrollBar.current&&void 0!==e){const t=this.scrollBar.current,n=t.getScrollTop(),r=30*e,o=r+30,i=t.getClientHeight();r-n>=i?t.scrollTop(o-i+n):o-n<=0&&t.scrollTop(r)}}doSetCompSelectItem(e){var t;const{comp:n}=this.props;if(o.isUndefined(e))n.selectedItem=void 0;else if(n.type===h.CSelect){const t=n.getComponentByAlias("list",!0);t&&(n.selectedItem=t.components[e])}else n.selectedItem=n.components[e];null===(t=this.context.uiManager.interactionPanel)||void 0===t||t.refresh()}getTextCompData(e){if(h.isTextType(e.type))return e;const t=e=>{if(!e)return null;let n=null;for(let t=0;t<e.length;t++)if(h.isTextType(e[t].type)){n=e[t];break}if(!n)for(let r=0;r<e.length&&(e[r].components&&(n=t(e[r].components)),!n);r++);return n};return t(e.components)}resetItemValue(e){var t;if(this.calcAppendItemState(e),"string"===this._valueType){const n=this.getTextCompData(e);if(n){let e,r="",o=n.value;for(;o&&o.length&&/\d/.test(o[o.length-1]);)r=`${o[o.length-1]}${r}`,o=o.substring(0,o.length-1);e=r?parseInt(r.trim(),10)+1:1;let i=`${o}${e}`;const s=a.depthClone(n.properties),l=this.props.comp.properties;if(null===(t=s.textStyle)||void 0===t?void 0:t.ref){const e=s.textStyle.ref.replace("@properties.","");s.textStyle=l[e]}for(;this.valueComps.find(e=>!!e&&e.value===i);)e++,i=`${o}${e}`;if(n.value=m.transBlankChart(i),n.autoSize){const e=g.StyleHelper.initCSSStyleParser(s);n.size.width=m.measureTextSize(Object.assign({},e.getTextStyle()),i,{isRich:p.isRichText(n.type)}).width}}}}calcAppendItemState(e){const t=this.containerComp,{select:n}=t;if("child"===(null==n?void 0:n.target)){const{minCount:r,maxCount:o}=n,{components:i}=t,a=i.reduce((e,t)=>e+(t.selected?1:0),0);a>=o?(e.selected=!1,e.states&&e.states[b.PredefinedStates.checked]&&(e.states[b.PredefinedStates.checked].enabled=!1),e._currentState===b.PredefinedStates.checked&&(e._currentState="")):a<r&&(e.selected||(e.selected=!0),e.states||(e.states={}),e.states[b.PredefinedStates.checked]||(e.states[b.PredefinedStates.checked]={enabled:!0,properties:{}}))}}doAppendItem(){const{coreEditor:e}=this.props,t=this.containerComp;let n;if(t.components.length)n=a.depthClone(t.components[t.components.length-1].toJSON());else if(t.lib){d.getComponent(t.lib)&&(n=d.makeComponentItem(t.lib.id,t.lib.type,""))}if(n){this.resetItemValue(n);const r=u.resetID([n]);u.resetInteractionTargetID([n],r),u.resetValueMap([n],r);const o=t.components.length;"string"===this._valueType&&this.state.editIndex!==o&&this.setState({editIndex:o}),e.appendChildren([n],t),this.state.selectedIndex!==o&&this.setState({selectedIndex:o},()=>{this.doScroll(),this.doSetCompSelectItem(this.state.selectedIndex)})}}doChangeItemValue(e,t){const{coreEditor:n}=this.props,r=this.valueComps[e];if(r){if(h.isTextType(r.type)&&""===t.trim())return;if(t!==r.value){let e=void 0;this.props.comp.type===h.CSelect&&(e={size:r.size}),n.setComponentValue(r,t,e)}}}focus(){var e;null===(e=this.contentDom.current)||void 0===e||e.focus()}renderToolBar(){const{comp:e}=this.props,{selectedIndex:t}=this.state,n=e instanceof c.UISelectPanelComponent&&!e.canAddChildren;let a=o.isUndefined(t)||-1===t||e instanceof c.UISelectPanelComponent&&!e.canRemoveChildren;return r.createElement("div",{className:"value-item-editor-toolbar"},e.type!==h.CContentPanel?r.createElement(l.Icon,{tips:`${i.default("editor.append")} (${v.getShortCutKey("Enter",{ctrlKey:!0})})`,cls:"layer_plus",disabled:n,onClick:this.handleAppendItem}):r.createElement("div",null),r.createElement("div",{className:"right-opertation"},r.createElement(l.Icon,{tips:`${i.default("editor.up")} (${v.getShortCutKey("↑",{ctrlKey:!0})})`,cls:"icon_arrow_up",disabled:o.isUndefined(t)||t<1,onClick:this.handleMoveItem.bind(this,"up")}),r.createElement(l.Icon,{tips:`${i.default("editor.down")} (${v.getShortCutKey("↓",{ctrlKey:!0})})`,cls:"icon_arrow_down",disabled:o.isUndefined(t)||-1===t||t>=this.valueComps.length-1,onClick:this.handleMoveItem.bind(this,"down")}),r.createElement(l.Icon,{tips:`${i.default("general.delete")} (${v.getShortCutKey("Delete")})`,cls:"demo_delete",disabled:a,onClick:this.handleRemoveItem})))}render(){var e,t;const{editIndex:n,position:i,selectedIndex:a}=this.state,s=this.valueComps.length,c=30*Math.min(s,6),{comp:u,onOpenIconLibrariesPanel:d,onMouseDown:p,onMouseUp:m}=this.props;if(!s)return null;let{components:g}=u;u.type===h.CSelect&&(g=(null===(e=g.find(e=>"drop-down"===e.alias))||void 0===e?void 0:e.components[0]).components);const{select:v}=u,y=(null===(t=u.lib)||void 0===t?void 0:t.type)||u.type,b=!["content-panel","score"].includes(y);let w=!1;"child"===(null==v?void 0:v.target)&&(w=-1===v.maxCount||o.isUndefined(v.maxCount));let C=!1,_=!1,x=!1;return u.type===h.CContentPanel&&(x=!0,_=!0,C=!0),r.createElement(l.FloatPanel,{ref:this.props.forwardedRef,className:"editor-item-value-editor",style:i,onMouseDown:p,onMouseUp:m},r.createElement("div",{ref:this.contentDom,className:"item-value-editor-content",tabIndex:-1,onKeyDown:this.handleKeyDown,onDragEnd:this.handleAfterDrag},this.renderToolBar(),r.createElement("div",{className:"item-value-list",style:{height:c}},r.createElement(l.ScrollBars,{ref:this.scrollBar,hiddenHorizontalScrollBar:!0},this.valueComps.map((e,t)=>{const{value:o,invalid:i}=this.getValue(e),s=g[t],l=Object.keys(s.interactions).length>0;return r.createElement(f.default,{key:e.id,coreEditor:this.props.coreEditor,comp:e,value:o,type:this._valueType,index:t,hasInteraction:l,checked:this.containerComp.components[t].selected,isMultiSelect:w,atLeastOne:_,hideDragger:C,disabledValueChange:x,selected:a===t,autoStartEditor:n===t,moveable:b,invalid:i,onMouseEnter:this.handleMouseEnterItem,onMoveItem:this.handleMoveItemIndex,onChangeValue:this.handleValueChanged,onEditNext:this.handleEditNext,onClick:this.handleItemClick,onChecked:this.handleItemChecked,setTargetComp:this.setTargetComp,onInteractionDragger:this.handleInteractionDragger,onOpenIconLibrariesPanel:d,onExitEditor:this.handleExitItemValueEditor})})))))}}_.contextType=y.default;const x=l.withAutoClose(_);class S extends r.Component{constructor(){super(...arguments),this.timeID=void 0,this.handleMouseDown=()=>{clearTimeout(this.timeID),this.panel.current&&(this.panel.current.preventClose=!0)},this.handleMouseUp=()=>{this.timeID=window.setTimeout(()=>{this.panel.current&&(this.panel.current.preventClose=!1)})},this.panel=r.createRef()}componentDidMount(){this.context.uiManager.listItemValueEditorPanel=this}componentWillUnmount(){this.context.uiManager.listItemValueEditorPanel=void 0,clearTimeout(this.timeID)}get preventClose(){return!!this.panel.current&&!!this.panel.current.preventClose}set preventClose(e){this.panel.current&&(this.panel.current.preventClose=e)}render(){return r.createElement(x,Object.assign({ref:this.panel},this.props,{onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown}))}}t.default=S,S.contextType=y.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(22),a=n(18),s=n(106),l=n(36),c=n(1226);n(1231);class u extends r.Component{constructor(e){super(e),this.self=r.createRef(),this.doShowCustomValueEditor=()=>{const e=this.self.current;if(!e)return;const{left:t,top:n,right:r,bottom:o}=e.getBoundingClientRect(),i=window.innerHeight-420,a=window.innerWidth-620;let s=r;s>a&&(s=t-620),s<0&&(s=a);let l=n;l>i&&(l=o-420),l<0&&(l=i),this.setState({showCustomEditorPanel:!0,clickPoint:{left:s,top:l}})},this.handleDragStart=e=>{e.stopPropagation();const{index:t}=this.props;e.dataTransfer.setData("drag-component-item",""+t),e.dataTransfer.setDragImage(e.target,e.nativeEvent.offsetX,e.nativeEvent.offsetY),e.dataTransfer.effectAllowed="move"},this.handleDragOver=e=>{e.stopPropagation();const{types:t}=e.dataTransfer;if(t.length&&"drag-component-item"===t[0]){e.preventDefault(),e.dataTransfer.dropEffect="move";const t=e.target,{clientHeight:n}=t,{offsetY:r}=e.nativeEvent,o=r<n/2,i=!o;this.setState({overTop:o,overBottom:i})}},this.handleDragLeave=e=>{e.stopPropagation(),this.setState({overTop:!1,overBottom:!1})},this.handleDrop=e=>{e.stopPropagation();const{overBottom:t,overTop:n}=this.state;this.setState({overTop:!1,overBottom:!1});const r=e.dataTransfer.getData("drag-component-item");if(r){const e=parseInt(r,10),{index:o,onMoveItem:i}=this.props;let a=o;if(n&&a>=e&&a-e<=1)return;if(t&&a<=e&&e-a<=1)return;e!==a&&(t&&(a+=1),i(e,a))}},this.handleDragEnd=e=>{e.dataTransfer.clearData("drag-component-item")},this.handleInputEnter=e=>{if(this.setState({editing:!1,value:void 0}),e.trim()){const{onEditNext:e,index:t}=this.props;e(t,1,!0)}},this.handleInputBlur=e=>{this.setState({editing:!1,value:void 0});const{onChangeValue:t,index:n}=this.props;t(n,e)},this.handleInputChange=e=>{this.setState({value:e})},this.handleStartEditing=()=>{this.setState({editing:!0},()=>{"custom"===this.props.type&&this.doShowCustomValueEditor()})},this.handleClick=()=>{const{index:e,onClick:t}=this.props;t(e);const{showCustomEditorPanel:n}=this.state;!this.stopClick&&n&&this.setState({showCustomEditorPanel:!1},()=>{this.props.onExitEditor(e)})},this.handleMouseEnter=()=>{const{index:e,onMouseEnter:t}=this.props;t(e)},this.handleMouseLeave=()=>{var e;null===(e=this.context.uiManager.projectTree)||void 0===e||e.refresh()},this.handleInputKeyDown=e=>{const{onEditNext:t,index:n}=this.props;e.keyCode===l.default.VK_DOWN?t(n,1):e.keyCode===l.default.VK_UP&&t(n,-1)},this.handleCheckedChange=e=>{this.doStopClick(),this.doSelectChange(e)},this.handleRadioClick=()=>{this.doStopClick();const{checked:e,atLeastOne:t}=this.props;t&&e||this.doSelectChange(!e)},this.stopClick=!1,this.handleInteractionDraggerMouseDown=e=>{e.stopPropagation(),e.preventDefault();const{onInteractionDragger:t,index:n}=this.props;t&&t(e,n)},this.renderStringValue=e=>{const{disabledValueChange:t}=this.props,{editing:n,value:o}=this.state;let s=o||"";return void 0===o&&(s=e),n&&!t?r.createElement(i.Input,{autoFocus:!0,autoSelectWhenFocus:!0,submitWithBlur:!0,value:s,maxlength:100,onEnter:this.handleInputEnter,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown}):r.createElement("label",{onDoubleClick:this.handleStartEditing},a.transBlankChart(s))},this.renderImageValue=e=>r.createElement("img",{src:e}),this.renderIconValue=e=>{const{iconCode:t,fontName:n}=e;return r.createElement("label",{style:{fontFamily:n},onDoubleClick:this.doubleClickChangeIcon.bind(this)},String.fromCharCode(t))},this.renderCustomValue=()=>{const{comp:e}=this.props;return r.createElement("label",{onDoubleClick:this.handleStartEditing},e.displayName)},this.renderOtherValue=e=>r.createElement("label",{className:o.default({invalid:this.props.invalid}),dangerouslySetInnerHTML:{__html:e}}),this.state={editing:e.autoStartEditor}}componentDidMount(){const{editing:e}=this.state,{type:t}=this.props;e&&"custom"===t&&this.doShowCustomValueEditor()}UNSAFE_componentWillReceiveProps(e){e.autoStartEditor&&e.autoStartEditor!==this.props.autoStartEditor&&(this.setState({editing:!0,value:e.value}),"custom"===e.type&&this.doShowCustomValueEditor()),!e.selected&&this.state.showCustomEditorPanel&&this.setState({showCustomEditorPanel:!1})}doStopClick(){const{showCustomEditorPanel:e}=this.state;e&&(this.stopClick=!0,setTimeout(()=>{this.stopClick=!1}))}doSelectChange(e){const{index:t,onChecked:n}=this.props;n(t,e)}doubleClickChangeIcon(){const{onOpenIconLibrariesPanel:e}=this.props;e&&e()}renderValue(){const{type:e,value:t}=this.props;switch(e){case"string":return this.renderStringValue(t);case"image":return this.renderImageValue(t);case"icon":return this.renderIconValue(t);case"other":return this.renderOtherValue(t);case"custom":return this.renderCustomValue();default:return null}}renderSelect(){const{isMultiSelect:e,checked:t}=this.props;return e?r.createElement(i.CheckBox,{checked:t,onChange:this.handleCheckedChange}):r.createElement(i.Radio,{checked:!!t,onClick:this.handleRadioClick})}renderDragger(){const{hideDragger:e,hasInteraction:t}=this.props;return e?null:r.createElement("div",{className:o.default("interaction-dragger",{interaction:t}),onMouseDown:this.handleInteractionDraggerMouseDown})}renderCustomItemValueEditor(){return this.state.showCustomEditorPanel?r.createElement(c.default,{comp:this.props.comp,point:this.state.clickPoint,coreEditor:this.props.coreEditor,checked:this.props.checked,onOpenIconLibrariesPanel:this.props.onOpenIconLibrariesPanel,setTargetComp:this.props.setTargetComp}):null}render(){const{type:e,selected:t,moveable:n,hasInteraction:i}=this.props,{overBottom:a,overTop:s,editing:l,showCustomEditorPanel:c}=this.state;return r.createElement("div",{draggable:!l&&n&&!c,className:o.default("value-item",{"over-top":s,"over-bottom":a,"interaction-flag":i,selected:t},e),onDragStart:this.handleDragStart,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop,onDragEnd:this.handleDragEnd,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,ref:this.self},this.renderSelect(),this.renderValue(),this.renderDragger(),this.renderCustomItemValueEditor())}}u.contextType=s.default,u.defaultProps={moveable:!0},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(8),i=n(57),a=n(84),s=n(18),l=n(22),c=n(154),u=n(36),d=n(4),h=n(17),p=n(56),f=n(6),m=n(24),g=n(6),v=n(295),y=n(431);n(1230);class b extends r.Component{constructor(e){super(e),this.compContent=r.createRef(),this.contentSize={width:0,height:0},this.inputRef=r.createRef(),this.doSelectComp=e=>{const{treeItems:t,selComp:n}=this.state;if(n===e)return;const r=t=>{var n;t.selected=t.data===e,(null===(n=t.children)||void 0===n?void 0:n.length)&&t.children.forEach(r)};r(t),this.props.setTargetComp(e),this.setState({selComp:e})},this.handleComponentClick=(e,t)=>{e.stopPropagation();const{selComp:n}=this.state;n!==t&&this.doSelectComp(t)},this.handleComponentDoubleClick=(e,t)=>{const{selComp:n,editingComp:r}=this.state;n===t&&r===t||this.doSelectComp(t),[g.CImage,g.CVideo,g.CAudio].includes(t.type)?this.setState({showFileSelectorDialog:!0}):t.type===g.CIcon&&this.props.onOpenIconLibrariesPanel&&this.props.onOpenIconLibrariesPanel()},this.handleBgClick=()=>{this.setState({selComp:void 0,editingComp:void 0})},this.handleTextValueChanged=(e,t,n)=>{console.log(e,t,n)},this.handleCloseFileSelect=()=>{this.setState({showFileSelectorDialog:!1})},this.handleFileSelect=e=>{this.props.coreEditor.setComponentValue(this.state.selComp,e)},this.handleCompTreeItemClick=(e,t)=>{this.doSelectComp(t)},this.handleWheel=e=>{e.stopPropagation(),a.isControlKeyPressed(e)&&e.preventDefault();const{position:{top:t,left:n},containerSize:r}=this.state,{deltaX:s,deltaY:l,shiftKey:c}=e,u=l>0?-1:1,d=o.min(o.abs(l)||30,30),h={x:c?d*u:0,y:c?0:d*u};i.isMacOS&&(h.x=0-s,h.y=0-l);let p=n+h.x,f=t+h.y;const m=r.width,g=r.height;h.x<0?p=m<this.contentSize.width?o.max(p,20):o.max(p,this.contentSize.width-m-20):h.x>0&&(p=m<this.contentSize.width?o.min(p,this.contentSize.width-20-m):o.min(p,20)),h.y<0?f=g<this.contentSize.height?o.max(f,20):o.max(f,this.contentSize.height-g-20):h.y>0&&(f=g<this.contentSize.height?o.min(f,this.contentSize.height-20-g):o.min(f,20)),this.setState({position:{left:p,top:f}})},this.handlePanelClick=e=>{e.stopPropagation()},this.renderComponent=(e,t)=>{const{selComp:n,editingComp:o}=this.state,i=n===e||e===o,a=e===n||e===o,s=t?t.x:0,l=t?t.y:0;return r.createElement(v.default,{key:e.id,comp:e,scale:1,isPreview:!1,revision:"0",offsetX:s,offsetY:l,selected:i,valueEditing:!1,forceHover:a,isParentActivated:!0,customValueEditing:!0,onClick:this.handleComponentClick,onDoubleClick:this.handleComponentDoubleClick,onValueEdited:this.handleTextValueChanged},e instanceof h.UIContainerComponent&&e.components.map(e=>this.renderComponent(e)))},this.renderComponentContent=()=>{const{position:{left:e,top:t}}=this.state,{comp:n}=this.props,o={transform:`translate(${e}px, ${t}px)`},{position:{x:i,y:a}}=n;return r.createElement("div",{className:"comp-content",style:o,key:n.id},this.renderComponent(n,{x:-i,y:-a}))},this.submitTextNewValue=e=>{let t=this.state.editingComp||this.state.selComp;if(t){this.props.checked?this.props.coreEditor.switchState([{comp:t,stateID:m.PredefinedStates.checked}]):this.props.coreEditor.switchState([{comp:t,stateID:m.PredefinedStates.normal}]);(g.isTextType(t.type)?t.value!==e:t.text!==e)&&this.props.coreEditor.setCompTextValue(t,e,{wrap:!0})}},this.handleTextBlur=e=>{const t=e.currentTarget.value;this.submitTextNewValue(t)},this.handleTextKeyDown=e=>{if(e.keyCode!==u.default.VK_ESCAPE&&e.stopPropagation(),e.keyCode===u.default.VK_ENTER){const t=e.currentTarget.value;this.submitTextNewValue(t)}},this.renderTreeItem=e=>r.createElement("div",null,r.createElement("label",null,e.displayName));const{size:t}=e.comp;this.state={treeItems:this.parserCompTree(e.comp),position:{left:0,top:0},containerSize:{width:t.width,height:t.height}}}componentDidMount(){if(this.compContent.current){const{comp:{size:e}}=this.props,{width:t,height:n}=this.compContent.current.getBoundingClientRect();this.contentSize={width:t,height:n};let r=20,i=20;t>e.width&&(r=o.round((t-e.width)/2)),n>e.height&&(i=o.round((n-e.height)/2)),this.setState({position:{left:r,top:i}}),this.compContent.current.addEventListener("wheel",this.handleWheel,{passive:!1})}}componentWillUnmount(){var e;null===(e=this.compContent.current)||void 0===e||e.removeEventListener("wheel",this.handleWheel)}parserCompTree(e){const t=(e,n)=>{const r={data:e,selected:!1,expand:!0,isLeaf:!(e instanceof h.UIContainerComponent),parent:n};return e instanceof h.UIContainerComponent&&(r.children=e.components.map(e=>t(e,r))),r};return t(e)}renderFileSelector(){const{showFileSelectorDialog:e,editingComp:t}=this.state;if(!e||!t)return null;const{type:n,size:o}=t;let i=void 0;switch(n){case g.CImage:i=p.default.Image;break;case g.CVideo:i=p.default.Video;break;case g.CAudio:i=p.default.Audio}return i?r.createElement(y.default,{type:i,compSize:o,onSelect:this.handleFileSelect,onCancel:this.handleCloseFileSelect}):null}renderCompValue(){const{selComp:e}=this.state;if(!e)return null;const{type:t,text:n,value:o}=e;let i=n;return n||"string"!=typeof o||(i=o),i=s.getPureText(i),r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},(f.isTextType(t)||f.isShapeText(t)||f.isRichText(t))&&r.createElement(l.TextArea,{className:"selection-group-item-text-value",ref:this.inputRef,autoFocus:!0,autoSelectWhenFocus:!0,value:i,onBlur:this.handleTextBlur,onKeyDown:this.handleTextKeyDown}),t===g.CIcon&&r.createElement(l.Link,{theme:"dark",onClick:()=>{this.props.onOpenIconLibrariesPanel&&this.props.onOpenIconLibrariesPanel()}},d.default("selectionGroup.iconEditButton")),t===g.CImage&&r.createElement(l.Link,{theme:"dark",onClick:()=>{this.setState({showFileSelectorDialog:!0,editingComp:e})}},d.default("selectionGroup.imageEditButton")))}render(){const{treeItems:e}=this.state;return r.createElement(l.FloatPanel,{className:"custom-item-value-editor",float:!1,point:this.props.point,onClick:this.handlePanelClick},r.createElement("div",{className:"custom-item-value-editor-content"},r.createElement(l.Tree,{className:"custom-item-editor-tree",items:e,onItemClick:this.handleCompTreeItemClick,itemHeight:30,itemRender:this.renderTreeItem,prefixIndent:10,theme:c.ComponentTheme.dark}),r.createElement("div",{className:"custom-item-comp-content"},r.createElement("div",{className:"comp-editor-content",onClick:this.handleBgClick,ref:this.compContent},this.renderComponentContent()),r.createElement("div",{className:"comp-editor-value"},this.renderCompValue()))),this.renderFileSelector())}}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(22),i=n(4);n(1228);class a extends r.Component{constructor(e){super(e),this.handleConfirm=()=>{const{onClose:e}=this.props;return e(),!0},this.handleCancel=()=>{const{onClose:e}=this.props;return e(),!0}}render(){const{title:e,width:t,onClose:n,alertContent:a}=this.props;return r.createElement("div",null,r.createElement(o.Dialog,{title:e,width:t,onClose:n,backFade:!0},r.createElement("div",{className:"alert-content"},r.createElement("div",{className:"content-text"},a),r.createElement("div",{className:"button-bar footer-without-separator"},r.createElement(o.Button,{theme:"dialog",onClick:n,activated:!0},i.default("general.ok"))))))}}a.defaultProps={width:500},t.default=a},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PureTextEditor=void 0;const r=n(0),o=n(22),i=n(1234),a=n(8),s=n(36),l=n(75);n(1236);class c extends r.Component{constructor(e){super(e),this.inputDom=r.createRef(),this.cancel=()=>{var e;const{value:t,onChange:n}=this.props,r=null===(e=this.inputDom.current)||void 0===e?void 0:e.value;r!==t&&n(r||"")},this.handleInputBlur=e=>{const{onClose:t,onChange:n,value:r}=this.props;let o=e;if("number"==typeof r){let e=""+o;"."===e[e.length-1]&&(e=e.substring(0,e.length-1),o=parseFloat(e))}e!==r&&n(o),t()},this.handleTextAreaKeyDown=e=>{const{value:t,onClose:n,onChange:r}=this.props;if((e.ctrlKey||e.metaKey)&&e.keyCode===s.default.VK_ENTER){const o=e.target.value;o!==t&&r(o),n()}e.stopPropagation()},this.handleTextAreaInput=e=>{this.setState({value:e})},this.handleMouseWheel=e=>{e.stopPropagation()},this.handleInputChange=e=>{const{valueType:t}=this.props;return"number"===t?a.validateNumberText(e):e},this.handleMouseDown=e=>{var t;e.button===l.MouseButton.Right&&(e.stopPropagation(),(null===(t=this.props.hocRef)||void 0===t?void 0:t.current)&&(this.props.hocRef.current.isModal=!0))},this.handleContextMenu=()=>{var e;(null===(e=this.props.hocRef)||void 0===e?void 0:e.current)&&(this.props.hocRef.current.isModal=!1)},this.handleEditorContextMenu=e=>{e.stopPropagation(),e.preventDefault()},this.state={value:e.value||"",areaTopWhenScroll:0}}render(){const{wrap:e,value:t,valueType:n,size:a,position:s,textAlign:l,fontSize:c,maxlength:u}=this.props,{value:d}=this.state;return r.createElement("div",{className:"pure-text-editor",style:s,ref:this.props.forwardedRef,onContextMenu:this.handleEditorContextMenu,onWheel:this.handleMouseWheel},e&&a&&r.createElement(i.default,{ref:this.inputDom,width:a.width,height:a.height,value:t,onKeyDown:this.handleTextAreaKeyDown,onChange:this.handleTextAreaInput,autoFocus:!0,autoSelectWhenFocus:!0}),!e&&a&&r.createElement(o.Input,{ref:this.inputDom,autoFocus:!0,autoSelectWhenFocus:!0,submitWithBlur:!0,maxlength:u,value:""+d,filterChar:"number"===n?"-0123456789.":void 0,width:a.width,style:{height:a.height},textAlign:l,fontSize:c,them:this.props.applyStyle?"no-border-padding":"normal",onKeyDown:e=>{e.stopPropagation()},onKeyUp:e=>{e.stopPropagation()},onBlur:this.handleInputBlur,onValidate:this.handleInputChange,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu}))}}t.PureTextEditor=c,t.default=o.withAutoClose(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(22);n(1235);class i extends r.Component{constructor(e){super(e),this.textareaDom=r.createRef(),this.scrollDom=r.createRef(),this.handleAreaBlur=()=>{const{onChange:e}=this.props;e&&e(this.value)},this.handleAreaChange=e=>{const t=e.currentTarget.value,{onChange:n}=this.props;this.setState({areaVal:t},()=>{this.scrollDom.current&&this.scrollDom.current.scrollToBottom()}),n&&n(t)},this.handleScrollBar=e=>{if(e.stopPropagation(),e.preventDefault(),this.scrollDom.current&&this.textareaDom.current){const e=this.scrollDom.current.getScrollTop();this.setState({scrollDomTop:e}),this.textareaDom.current.scrollTo(0,e)}},this.state={areaVal:e.value,scrollDomTop:0}}get value(){return this.state.areaVal}componentDidMount(){const{autoFocus:e,autoSelectWhenFocus:t}=this.props;e&&this.textareaDom.current&&(this.textareaDom.current.focus(),t&&this.textareaDom.current.select())}render(){const{width:e,height:t,onKeyDown:n}=this.props,{areaVal:i,scrollDomTop:a}=this.state;let s=!1;return i.lastIndexOf("\n")===i.length-1&&(s=!0),r.createElement("div",{style:{width:e,height:t},className:"pure-textarea-editor"},r.createElement(o.ScrollBars,{style:{height:t},onScroll:this.handleScrollBar,ref:this.scrollDom},r.createElement("div",{className:"pure-textarea-editor-support"},i,s&&r.createElement("br",null)),r.createElement("textarea",{ref:this.textareaDom,className:"pure-textarea-editor-area",value:i,style:{top:a},onChange:this.handleAreaChange,onKeyDown:n,onBlur:this.handleAreaBlur})))}}t.default=i},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(187),i=n(2),a=n(4),s=n(22),l=n(299),c=n(154),u=n(290),d=n(300),h=n(42),p=n(291),f=n(1238);n(1239);class m extends r.Component{constructor(e){super(e),this.isHuaWei={DEV_MODE:!1,isPrivateDeployment:!1,isOfflineDemo:!0}.isHuaWei,this.originTeams=[],this.originProjects=[],this.originPages=[],this.selectorPaddingWidth=32,this.searchBoxHeightInPopPanel=60,this.allowShowRange=8,this.treeItemLineHeight=30,this.getSnapshotTeamsData=()=>{l.getSnapshotTeams().then(e=>{this.originTeams=e;const t=this.originTeams.find(e=>{var t,n;return e.id===(null===(n=null===(t=this.props.app)||void 0===t?void 0:t.teamInfo)||void 0===n?void 0:n.id)});this.setState({teams:this.originTeams,selectedTeam:t?{id:t.id,text:t.name}:null},()=>{t&&this.getSnapshotProjectsData(t.id)})}).catch(e=>{window.debug&&console.log(e)})},this.getSnapshotProjectsData=e=>{l.getSnapshotProjects(e).then(e=>{this.originProjects=s.builderTreeItemData(e,e=>{var t,n;return{data:e,expand:!0,isLeaf:!(null===(t=e.children)||void 0===t?void 0:t.length),selected:e._id===(null===(n=this.state.selectedProject)||void 0===n?void 0:n._id),children:e.children,marked:!1,matched:!1,editing:!1}});const t=e.find(e=>e._id===this.props.app.appID);this.setState({projects:this.originProjects,selectedProject:t},()=>{t&&this.getSnapshotPageData(t._id)})}).catch(e=>{window.debug&&console.log(e)})},this.getSnapshotPageData=(e,t)=>{l.getSnapshotPage(e,t).then(e=>{this.originPages=s.builderTreeItemData(e,e=>{var t,n;return{data:e,expand:!0,isLeaf:!(null===(t=e.children)||void 0===t?void 0:t.length),selected:e.id===(null===(n=this.state.selectedPage)||void 0===n?void 0:n.id),children:e.children,marked:!1,matched:!1,editing:!1}}),this.setState({pages:this.originPages})}).catch(e=>{window.debug&&console.log(e)})},this.addNewSnapshotPageData=(e,t,n)=>{l.addNewSnapshotPage(e,t,n).then(()=>{}).catch(e=>{window.debug&&console.log(e)})},this.changeFitComp=e=>{this.setState({fitComp:!e})},this.getScaleSize=()=>{const{compSize:e}=this.props,{originSize:t}=this.state,n={width:e.width,height:e.height},r=Object.assign({},t||{width:150,height:150});let o={height:150,width:150};if(!n||!r)return;const i=r.height/r.width;if(i>n.height/n.width){if(r.height<n.height)return r;o.height=n.height,o.width=o.height/i}else{if(r.width<n.width)return r;o.width=n.width,o.height=n.width*i}return o},this.handleCancel=()=>{const{onCancel:e}=this.props,{holdRetio:t,fitComp:n}=this.state;h.default.fileUploadOption={holdRetio:t,fitComp:n},e&&e()},this.handleOKBtnClick=e=>{e.stopPropagation(),this.doSubmit()},this.handleSubmit=()=>{this.doSubmit()},this.handlePagesSearch=e=>{const t=this.originPages.filter(t=>t.data.name.toLowerCase().includes(e.toLowerCase()));this.setState({pages:e?t:this.originPages})},this.handleTeamsSearch=e=>{const t=this.originTeams.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()));this.setState({teams:e?t:this.originTeams})},this.handleProjectsSearch=e=>{const t=this.originProjects.filter(t=>t.data.name.toLowerCase().includes(e.toLowerCase()));this.setState({projects:e?t:this.originProjects})},this.toggleTeamSelectorPanel=e=>{this.doCalcPopUpPanelPosition(e),this.setState({showTeamPanel:!this.state.showTeamPanel,showProjectPanel:!1,teams:this.originTeams})},this.toggleProjectSelectorPanel=e=>{this.doCalcPopUpPanelPosition(e),this.setState({showTeamPanel:!1,showProjectPanel:!this.state.showProjectPanel,projects:this.originProjects})},this.doCalcPopUpPanelPosition=e=>{e.stopPropagation();const{left:t,top:n,width:r,height:o}=e.currentTarget.getBoundingClientRect();this.setState({point:{x:t+this.selectorPaddingWidth,y:n+o},popUpPanelWidth:r-2*this.selectorPaddingWidth,popUpPanelHeight:this.treeItemLineHeight*this.allowShowRange+this.searchBoxHeightInPopPanel})},this.handleTeamSelect=(e,t)=>{t.stopPropagation(),this.getSnapshotProjectsData(e.id),this.setState({selectedTeam:e,selectedProject:null,showTeamPanel:!1,pages:[],url:""})},this.handleProjectTreeItemClick=(e,t)=>{t.type===d.AppTypes.App&&(this.getSnapshotPageData(t._id),this.setState({selectedProject:t,showProjectPanel:!1,url:""}))},this.handlePageTreeItemClick=(e,t)=>{t.isGroup||this.setState({selectedPage:t,url:t.imageURL,originSize:t.size})},this.doSubmit=()=>{const{url:e,originSize:t,fitComp:n,selectedPage:r,holdRetio:o}=this.state,{compSize:i,app:a,onSelectSnapshot:s}=this.props;if(!e||!s||!t)return;p.default.isFromConfirm=!0;const l={url:e,sourceID:null==r?void 0:r.id,moduleType:u.ModuleType.Design};if(s){let e;e=n?o?this.getScaleSize():{height:i.height,width:i.width}:t,s(l,e),this.handleCancel()}this.addNewSnapshotPageData(a.appID,null==r?void 0:r.id)},this.doPanelClose=()=>{this.setState({showTeamPanel:!1,showProjectPanel:!1})},this.renderTreeItem=e=>r.createElement(s.Tooltip,{text:e.name.length>16?e.name:"",popupClassName:"snapshot-tooltip"},r.createElement("div",{className:"project-tree-item"},(e.isGroup||e.type===d.AppTypes.AppSet)&&r.createElement(s.Icon,{theme:"tag",cls:"icon_tree_group"}),e.name)),this.renderImgPreview=()=>{const{url:e}=this.state;return r.createElement("div",{className:"preview-file",style:{backgroundImage:`url(${e})`}})},this.renderNoContent=()=>r.createElement("div",{className:"no-content"},r.createElement("div",null,r.createElement("img",{src:f,alt:"no-content"}),r.createElement("p",null,a.default("resource.componentsText.noContent")))),this.renderDialogContent=()=>{const{url:e,fitComp:t,uploading:n,uploadProgress:o,selectedTeam:l,selectedProject:u,teams:d,pages:h,projects:p,point:f,showTeamPanel:m,showProjectPanel:g,popUpPanelWidth:v,popUpPanelHeight:y}=this.state,b=d.map(e=>({id:e.id,text:e.name}));return r.createElement("div",{className:"snapshot-wrapper"},r.createElement("div",{className:"left-wrapper"},r.createElement(s.SearchBox,{onChange:this.handlePagesSearch}),h.length>0?r.createElement(s.Tree,{className:"snapshot-page-tree",items:h,itemRender:this.renderTreeItem,onItemClick:this.handlePageTreeItemClick,prefixIndent:10,theme:c.ComponentTheme.light}):this.renderNoContent()),r.createElement("div",{className:"right-wrapper"},r.createElement("div",{className:"selector-box"},this.isHuaWei&&r.createElement(r.Fragment,null,r.createElement("div",{className:"team-selector team-selector-1",onClick:this.toggleTeamSelectorPanel},r.createElement("p",null,l?l.text:a.default("resource.componentsText.selectTeam")),r.createElement(s.Icon,{cls:"tag_downarrow",className:"team-arrow"})),m&&r.createElement(s.PopupPanel,{className:"snapshot-float-panel",position:f,width:v,height:y,onClose:this.doPanelClose},r.createElement(s.SearchBox,{onChange:this.handleTeamsSearch}),b.length>0?b.map(e=>r.createElement("p",{key:e.id,onClick:this.handleTeamSelect.bind(this,e),className:"team-item"},e.text)):this.renderNoContent())),r.createElement("div",{className:i.default({"team-selector":!0,"selector-no-flex":!this.isHuaWei}),onClick:this.toggleProjectSelectorPanel},r.createElement("p",{className:i.default({"no-flex":!this.isHuaWei,"set-display":!this.isHuaWei})},u?u.name:a.default("resource.componentsText.selectProject")),r.createElement(s.Icon,{cls:"tag_downarrow",className:i.default({"team-arrow":!0,"no-flex":!this.isHuaWei})})),g&&r.createElement(s.PopupPanel,{className:"snapshot-float-panel",position:f,width:v,height:y,onClose:this.doPanelClose},r.createElement(s.SearchBox,{onChange:this.handleProjectsSearch}),p.length>0?r.createElement(s.Tree,{className:"snapshot-project-tree",items:p,itemRender:this.renderTreeItem,onItemClick:this.handleProjectTreeItemClick,theme:c.ComponentTheme.light,prefixIndent:10}):this.renderNoContent())),r.createElement("div",{className:"file-selector"},r.createElement("div",{className:i.default({"file-box":!0})},n?r.createElement(s.ProgressBar,{className:"upload-progressbar",progress:o}):this.renderImgPreview()),r.createElement("div",{className:"button-bar footer-without-separator"},r.createElement(s.CheckBox,{theme:"light",id:"value",checked:!t,text:a.default("editor.applyOriginalSize"),onChange:this.changeFitComp}),r.createElement(s.Button,{theme:"dialog",width:60,activated:!!e,disabled:!e,onClick:this.handleOKBtnClick},a.default("general.ok")),r.createElement(s.Button,{theme:"dialog",onClick:this.handleCancel},a.default("general.cancel"))))))},this.state={currentSize:{height:0,width:0},originFile:void 0,url:void 0,fitComp:h.default.fileUploadOption.fitComp,holdRetio:h.default.fileUploadOption.holdRetio,uploadProgress:0,uploading:!1,selectedTeam:null,selectedProject:null,selectedPage:null,teams:[],projects:[],pages:[],showTeamPanel:!1,showProjectPanel:!1,point:null,popUpPanelWidth:0,popUpPanelHeight:0}}componentDidMount(){var e;const{app:t}=this.props;this.isHuaWei?this.getSnapshotTeamsData():this.getSnapshotProjectsData(null===(e=t.teamInfo)||void 0===e?void 0:e.id)}render(){return r.createElement(r.Fragment,null,r.createElement(s.Dialog,{title:a.default("resource.componentsText.snapshotTitle"),titleClassName:"snapshot-title",width:900,height:680,backFade:!0,allowDrag:!0,contentClassName:"snapshot-content",onClose:this.handleCancel,onSubmit:this.handleSubmit},this.renderDialogContent()))}}t.default=o.connect(e=>({app:e.app}))(m)},function(e,t,n){e.exports=n.p+"assets/09aab499067f9346330ec09236ebed42.png"},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(22),i=n(1241),a=n(155),s=n(106),l=n(214),c=n(84),u=n(7),d=n(30),h=n(176),p=n(76),f=n(4),m=n(8),g=n(36);n(1244);class v extends r.Component{constructor(e){super(e),this.contentDom=r.createRef(),this.mapIdWithIndex={},this.scrollBar=r.createRef(),this.avlTree=new h.AvlTree,this.doSubmit=e=>{const{coreEditor:t}=this.props;t.updateSingleArtboard(t.activeArtboard.artboardID,e)},this.dowAddNewToNext=e=>{const t=d.getNewID(),{comp:n}=this.props,r=n.findTreeNode(e),o=n.insertNewNodeAsSibling(r,t);this.doSubmit(o);const i=n.findTreeNodeIndexById(t);this.setState({selectedIndex:i,editIndex:i},()=>{this.doScroll();const e=Object.keys(this.mapIdWithIndex)[this.state.selectedIndex];this.doSetCompSelectItem(this.state.selectedIndex,e)})},this.doAddNewToRoot=e=>{const t=d.getNewID(),{comp:n}=this.props,r=n.addNewNodeToRoot(t);this.doSubmit(r);const o=Object.keys(this.mapIdWithIndex).length;e!==o-1&&this.setState({selectedIndex:o-1,editIndex:o-1},()=>{this.doScroll();const e=Object.keys(this.mapIdWithIndex)[this.state.selectedIndex];this.doSetCompSelectItem(this.state.selectedIndex,e)})},this.doNodeUp=e=>{const{comp:t}=this.props,n=t.findTreeNode(e);if(n){const e=t.doMoveNodeUp(n);if(e){this.doSubmit(e);const r=t.findTreeNodeIndexById(n);this.setState({selectedIndex:r})}}},this.doNodeDown=e=>{const{comp:t}=this.props,n=t.findTreeNode(e);if(n){const e=t.doMoveNodeDown(n);if(e){this.doSubmit(e);const r=t.findTreeNodeIndexById(n);this.setState({selectedIndex:r})}}},this.doRemoveNode=e=>{const{comp:t}=this.props,n=t.findTreeNode(e);if(n){const r=t.deleteNode(n);this.doSubmit(r);const o=e===Object.keys(this.mapIdWithIndex).length-1?e-1:e;this.setState({selectedIndex:o,editIndex:void 0},()=>{const e=Object.keys(this.mapIdWithIndex)[this.state.selectedIndex];this.doSetCompSelectItem(this.state.selectedIndex,e)})}},this.doScroll=()=>{const{selectedIndex:e}=this.state;if(this.scrollBar.current&&void 0!==e){const t=this.scrollBar.current,n=t.getScrollTop(),r=30*e,o=r+30,i=t.getClientHeight();r-n>=i?t.scrollTop(o-i+n):o-n<=0&&t.scrollTop(r)}},this.doSetCompSelectItem=(e,t)=>{const{comp:n}=this.props;this.setState({selectedIndex:e},()=>{var e;n.selectedItem=n.getItemCompById(t),null===(e=this.context.uiManager.interactionPanel)||void 0===e||e.refresh()})},this.handleItemClick=e=>{const t=this.mapIdWithIndex[e];t!==this.state.selectedIndex&&this.doSetCompSelectItem(t,e),u.isUndefined(this.state.editIndex)||this.setState({editIndex:void 0})},this.handleItemDoubleClick=e=>{const t=this.mapIdWithIndex[e];this.setState({editIndex:t})},this.handleEditNext=(e,t,n)=>{setTimeout(()=>{const r=this.mapIdWithIndex[e.id],o=r+t;o===Object.keys(this.mapIdWithIndex).length?n&&this.dowAddNewToNext(r):this.setState({selectedIndex:o,editIndex:o},()=>{this.doSetCompSelectItem(o,e.id),this.doScroll()})},0)},this.handleValueChanged=(e,t)=>{const n=e.modifyTextPatches(t);this.doSubmit(n),this.contentDom.current&&this.contentDom.current.focus(),this.setState({editIndex:void 0})},this.handleDropEnd=(e,t,n)=>{if(n===a.DropMode.None)return;const{comp:r}=this.props,{relation:o,expandACollapseIcon:i}=r.value,{tree:s,treeRelation:c}=a.createAvlTreeWithTreeData(m.depthClone(o)),u=s.get(e),d=s.get(t);if(u&&d){const e=r.getChildLevel(u),t=r.getNodeLevel(d);if(n===a.DropMode.Child&&e+t>l.MaxInsertLevel)return;if((n===a.DropMode.Before||n===a.DropMode.After)&&e+t>l.MaxInsertLevel+1)return;a.moveNode(c,u,d,n);const o=a.parseTreeData(c);this.props.coreEditor.setValue("tree",{expandACollapseIcon:i,relation:o})}},this.handleExpandClick=e=>{const{comp:t}=this.props,n=t.modifyExpandState(e);this.doSubmit(n),this.setState({editIndex:void 0})},this.handleSelectClick=e=>{const{comp:t}=this.props,n=t.doDefaultChecked(e);this.doSubmit(n),this.setState({editIndex:void 0})},this.handleInteractionDragger=(e,t)=>{var n,r;const{comp:o}=this.props,i=o.components.find(e=>e.id===t);i&&(null===(r=null===(n=this.context.uiManager.workSpace)||void 0===n?void 0:n.page)||void 0===r||r.startFindInteractionTarget(e,i)),this.setState({editIndex:void 0})},this.handleKeyDown=e=>{const{selectedIndex:t}=this.state;if(void 0!==t){if(e.keyCode===g.default.VK_ENTER)return e.stopPropagation(),void(c.isControlKeyPressed(e)?setTimeout(()=>{this.dowAddNewToNext(t)},0):this.setState({selectedIndex:t,editIndex:t}));if(e.keyCode===g.default.VK_BACKSPACE||e.keyCode===g.default.VK_DEL)return e.stopPropagation(),void this.doRemoveNode(t);if([37,38,39,40].includes(e.keyCode)&&e.stopPropagation(),c.isControlKeyPressed(e))if(e.keyCode==g.default.VK_UP){if(0===t)return;this.doNodeUp(t)}else e.keyCode==g.default.VK_DOWN&&this.doNodeDown(t);else c.isControlKeyPressed(e)||(e.keyCode===g.default.VK_UP?0!==t&&this.setState({selectedIndex:t-1},()=>{this.doScroll();const e=Object.keys(this.mapIdWithIndex)[t];this.doSetCompSelectItem(this.state.selectedIndex,e)}):e.keyCode===g.default.VK_DOWN&&t!==Object.keys(this.mapIdWithIndex).length-1&&this.setState({selectedIndex:t+1},()=>{this.doScroll();const e=Object.keys(this.mapIdWithIndex)[t];this.doSetCompSelectItem(this.state.selectedIndex,e)}))}},this.handleAddNewToRoot=e=>{setTimeout(()=>{const{selectedIndex:e}=this.state;this.doAddNewToRoot(e)},0)},this.handleAddNewToNext=()=>{setTimeout(()=>{const{selectedIndex:e}=this.state;this.dowAddNewToNext(e)},0)},this.hanleApendChild=e=>{const{comp:t}=this.props,{selectedIndex:n}=this.state,r=d.getNewID(),o=t.findTreeNode(n);if(o){const e=t.insertNewNode(o,r);this.doSubmit(e)}},this.handleMoveUp=e=>{const{selectedIndex:t}=this.state;this.doNodeUp(t)},this.handleMoveDown=e=>{const{selectedIndex:t}=this.state;this.doNodeDown(t)},this.handleRemoveItem=e=>{const{selectedIndex:t}=this.state;this.doRemoveNode(t)},this.renderToolbar=()=>{const{selectedIndex:e}=this.state,{comp:t}=this.props,{relation:n}=t.value,i=t.findTreeNode(e),a=this.avlTree.get(i),s=null==a?void 0:a.parent,c=s?s.data.children:n;let d=0,h=0;(null==c?void 0:c.length)&&void 0!==e&&(d=this.mapIdWithIndex[c[0].id],h=this.mapIdWithIndex[c[c.length-1].id]);const m=(a&&t.getNodeLevel(a)||0)<l.MaxInsertLevel&&a,g=1==n.length&&0===e;return r.createElement("div",{className:"value-item-editor-toolbar"},r.createElement("div",{className:"left-operation"},r.createElement(o.Icon,{tips:`${f.default("editor.append")} (${p.getShortCutKey("Enter",{ctrlKey:!0})})`,cls:"layer_plus",onClick:this.handleAddNewToNext,size:16}),r.createElement(o.Icon,{tips:""+f.default("editor.addChild"),cls:"icon_add_subitem",disabled:!m,onClick:this.hanleApendChild,size:16}),r.createElement(o.Icon,{tips:`${f.default("editor.up")} (${p.getShortCutKey("↑",{ctrlKey:!0})})`,cls:"icon_arrow_up",disabled:u.isUndefined(e)||e<=d,onClick:this.handleMoveUp,size:16}),r.createElement(o.Icon,{tips:`${f.default("editor.down")} (${p.getShortCutKey("↓",{ctrlKey:!0})})`,cls:"icon_arrow_down",disabled:u.isUndefined(e)||-1===e||e>=h,onClick:this.handleMoveDown,size:16})),r.createElement("div",{className:"right-opertation"},r.createElement(o.Icon,{tips:`${f.default("general.delete")} (${p.getShortCutKey("Delete")})`,cls:"demo_delete",disabled:u.isUndefined(e)||-1===e||g,onClick:this.handleRemoveItem,size:16})))},this.renderChild=(e,t)=>e.map(e=>this.renderItem(e,t)),this.renderItem=(e,t)=>{var n;const{comp:o}=this.props,{selectedIndex:a,editIndex:s}=this.state,l=o.getItemCompById(e.data.id);if(!l)return;const c=o.findTreeNode(a)===e.data.id;let d=!u.isUndefined(s)&&o.findTreeNode(s)===e.data.id;return r.createElement(i.default,{key:e.data.id,item:e,level:t,itemComp:l,selected:c,autoStartEditor:d,draggable:u.isUndefined(s),onInteractionDragger:this.handleInteractionDragger,onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,onEditNext:this.handleEditNext,onChangeValue:this.handleValueChanged,onDropEnd:this.handleDropEnd,onExpandClick:this.handleExpandClick,onSelectClick:this.handleSelectClick},(null===(n=e.children)||void 0===n?void 0:n.length)&&e.data.expand&&this.renderChild(e.children,t+1))},this.renderTree=()=>{const{comp:{value:e}}=this.props,{relation:t}=e,{tree:n,treeRelation:r}=a.createAvlTreeWithTreeData(t);return this.avlTree=n,r.map(e=>this.renderItem(e,0))},this.state={position:{left:e.bounds.left,top:e.bounds.top},selectedIndex:0,editIndex:0},this.mapIdWithIndex=e.comp.mapIDWithIndex()}componentDidMount(){this.context.uiManager.listItemValueEditorPanel=this}componentWillUnmount(){this.context.uiManager.listItemValueEditorPanel=void 0}UNSAFE_componentWillReceiveProps(e){this.mapIdWithIndex=e.comp.mapIDWithIndex()}render(){const{position:e}=this.state;return r.createElement(o.FloatPanel,{ref:this.props.forwardedRef,className:"editor-tree-value-editor",style:e},r.createElement("div",{ref:this.contentDom,className:"tree-value-editor-content",tabIndex:-1,onKeyDown:this.handleKeyDown},this.renderToolbar(),r.createElement("div",{style:{height:320}},r.createElement(o.ScrollBars,{ref:this.scrollBar,hiddenHorizontalScrollBar:!0},r.createElement("ul",{style:{marginTop:1}},this.renderTree())))))}}v.contextType=s.default;const y=o.withAutoClose(v);class b extends r.Component{constructor(){super(...arguments),this.panel=r.createRef()}componentDidMount(){this.context.uiManager.listItemValueEditorPanel=this}componentWillUnmount(){this.context.uiManager.listItemValueEditorPanel=void 0}get preventClose(){return!!this.panel.current&&!!this.panel.current.preventClose}set preventClose(e){this.panel.current&&(this.panel.current.preventClose=e)}render(){return r.createElement(y,Object.assign({ref:this.panel},this.props))}}t.default=b,b.contextType=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(633),i=n(634),a=n(1242),s=n(2),l=n(18),c=n(155),u=n(22),d=n(36);n(1243);class h extends r.Component{constructor(e){super(e),this.dragDom=r.createRef(),this.handleInteractionDraggerMouseDown=e=>{e.stopPropagation(),e.preventDefault();const{onInteractionDragger:t,item:n}=this.props;t&&t(e,n.data.id)},this.handleStartEditing=e=>{e.stopPropagation();const{onItemDoubleClick:t,itemComp:n}=this.props;t&&t(n.id)},this.handleInputEnter=e=>{if(this.setState({editing:!1}),e.trim()){const{onEditNext:e,itemComp:t}=this.props;e(t,1,!0)}},this.handleInputBlur=e=>{const{onChangeValue:t,itemComp:n}=this.props;t(n,e),this.setState({editing:!1,text:void 0})},this.handleInputChange=e=>{this.setState({text:e})},this.handleInputKeyDown=e=>{const{onEditNext:t,itemComp:n}=this.props;e.keyCode===d.default.VK_DOWN?t(n,1):e.keyCode===d.default.VK_UP&&t(n,-1)},this.handleExpandclick=e=>{var t;e.stopPropagation();const{onExpandClick:n,item:r}=this.props;(null===(t=r.children)||void 0===t?void 0:t.length)&&n(r.data.id)},this.handleSelectClick=e=>{e.stopPropagation();const{onSelectClick:t,item:n}=this.props;t(n.data.id)},this.state={dropMode:c.DropMode.None,editing:e.autoStartEditor,text:e.itemComp.getText()}}componentDidMount(){this.props.connectDragPreview(i.getEmptyImage())}UNSAFE_componentWillReceiveProps(e){e.autoStartEditor&&this.props.autoStartEditor!==e.autoStartEditor&&this.setState({editing:!0,text:e.itemComp.getText()})}renderText(e){const{editing:t}=this.state;return t?r.createElement(u.Input,{autoFocus:!0,autoSelectWhenFocus:!0,submitWithBlur:!0,value:e,maxlength:100,onEnter:this.handleInputEnter,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown}):r.createElement("label",{onDoubleClick:this.handleStartEditing,className:"tree-node-text"},l.transBlankChart(e))}renderDragger(){const{editing:e}=this.state;if(!e)return r.createElement("div",{className:"interaction-dragger",onMouseDown:this.handleInteractionDraggerMouseDown})}renderMain(){var e;const{itemComp:t,item:n,onItemClick:o,isOver:i,selected:a,level:l}=this.props,{dropMode:d}=this.state,h=t.getText(),p=Object.keys(t.interactions).length>0;return r.createElement("div",{className:s.default("tree-editor-drag-item",{["tree-node-drop-at-"+d]:i&&d!==c.DropMode.None,interaction:p}),onClick:null==o?void 0:o.bind(this,n.data.id)},r.createElement("div",{className:s.default("list-tree-item",{selected:a}),style:{maxWidth:165-16*(l-1)}},r.createElement("div",{className:"item-icon",onClick:this.handleExpandclick},(null===(e=n.children)||void 0===e?void 0:e.length)&&r.createElement(u.Icon,{size:16,cls:n.data.expand?"tag_downarrow":"Right"})),this.renderText(h)))}render(){const{children:e,itemComp:t,selected:n,level:o}=this.props,{connectDragSource:i,connectDropTarget:a}=this.props,l=0===o?32:16;return a(i(r.createElement("li",{className:"list-tree-li",ref:this.dragDom},r.createElement("div",{className:"list-tree-select",style:{left:-16*(o-1)-(0===o?8:24)},onClick:this.handleSelectClick},r.createElement(u.Radio,{checked:!!t.selected})),r.createElement("div",{className:"list-tree-action"},this.renderDragger()),r.createElement("div",{className:s.default("list-tree-bg",{selected:n}),style:{marginLeft:-32-16*o,width:`calc(100% + ${32+16*o}px)`}}),r.createElement("div",{style:{paddingLeft:l}},this.renderMain(),r.createElement("div",{className:"tree-editor-children"},r.createElement("ul",null,e))))))}}const p={canDrag:(e,t)=>e.draggable,beginDrag:(e,t)=>({data:e.item,type:a.COMP_TREE_NODE}),endDrag:(e,t,n)=>{if(!t.didDrop())return;const r=t.getItem().data;if(!r)return;const o=t.getDropResult(),{data:i,dropMode:a}=o;r.data.id!==i.data.id&&n.props.onDropEnd&&n.props.onDropEnd(r.data.id,i.data.id,a)}},f={canDrop:(e,t)=>{const n=t.getItem().data,r=e.item;return!c.isParentDrag(n,r)&&(n.data.id!==r.data.id&&!!t.isOver({shallow:!0}))},drop:(e,t,n)=>({data:e.item,dropMode:n.decoratedRef.current.state.dropMode}),hover:(e,t,n)=>{var r;if(!t.canDrop())return;if(!t.isOver())return;const o=null===(r=n.dragDom.current)||void 0===r?void 0:r.getBoundingClientRect(),i=t.getClientOffset();o&&i&&i.x>o.left+48?n.setState({dropMode:c.DropMode.Child}):o&&i&&i.y<o.top+15?n.setState({dropMode:c.DropMode.Before}):n.setState({dropMode:c.DropMode.After})}};const m=o.DragSource(a.COMP_TREE_NODE,p,(function(e,t){return{isDragging:t.isDragging(),connectDragPreview:e.dragPreview(),connectDragSource:e.dragSource()}}))(h);t.default=o.DropTarget([a.COMP_TREE_NODE],f,(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver({shallow:!0})}}))(m)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMP_TREE_NODE=t.DS_RESOURCE=t.FILE=t.ICON=t.COMPONENT=void 0;const r=n(634);t.COMPONENT=Symbol(),t.ICON=Symbol(),t.FILE=r.NativeTypes.FILE,t.DS_RESOURCE=Symbol(),t.COMP_TREE_NODE=Symbol()},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(149),i=n(22),a=n(136),s=n(4),l=n(172);n(1247);class c extends r.Component{constructor(e){super(e),this.menuData=e=>{const{selectArea:t,tableValue:n,selectRows:r,selectColumns:o}=this.props;let i=[...r],c=[...o];if("cell"===e&&t){const{rows:e,columns:n}=a.getRowsAndColumnsOfSelectArea(t);i=e,c=n}switch(e){case"cell":{const e=-1===(null==t?void 0:t.start.row);return[{id:"copy",text:s.default("general.copy"),disabled:!1},{id:"paste",text:s.default("general.paste"),disabled:!l.hasTableClipboarDataInStorage()},{id:"1",text:"-"},{id:"2",text:s.default("editor.row"),children:[{id:"unshiftRow",text:s.default("editor.unshiftRow"),hidden:!1,disabled:e},{id:"unshiftRows",text:s.default("editor.unshiftRows"),hidden:!1,disabled:e},{id:"pushRow",text:s.default("editor.pushRow"),hidden:!1,disabled:!1},{id:"pushRows",text:s.default("editor.pushRows"),hidden:!1,disabled:!1},{id:"deletRows",text:s.default("editor.deletRows"),hidden:!1,disabled:!i.length||!a.canRemoveRows(n,i)}]},{id:"3",text:s.default("editor.column"),children:[{id:"unshiftColumn",text:s.default("editor.unshiftColumn"),hidden:!1,disabled:!1},{id:"unshiftColumns",text:s.default("editor.unshiftColumns"),hidden:!1,disabled:!1},{id:"pushColumn",text:s.default("editor.pushColumn"),hidden:!1,disabled:!1},{id:"pushColumns",text:s.default("editor.pushColumns"),hidden:!1,disabled:!1},{id:"deletColumns",text:s.default("editor.deletColumns"),hidden:!1,disabled:!c.length||!a.canRemoveColumns(n,c)}]},{id:"4",text:"-"},{id:"mergeCells",text:s.default("editor.mergeCells"),hidden:!t||!n||!a.canMergeCells(n,t)},{id:"splitCells",text:s.default("editor.splitCells"),hidden:!t||!n||!a.canSplitCells(n,t)},{id:"cleanStyle",text:s.default("editor.cleanStyle"),hidden:!t||!n},{id:"cleanContent",text:s.default("editor.cleanContent"),hidden:!t||!n},{id:"5",text:"-"},{id:"contentType",text:s.default("editor.contentType"),children:[{id:"convertToText",text:s.default("editor.convertToText"),hidden:!t||!n},{id:"convertToCheckBox",text:s.default("editor.convertToCheckBox"),hidden:!t||!n}]}]}case"column":return[{id:"unshiftColumn",text:s.default("editor.unshiftColumn"),hidden:!1,disabled:!1},{id:"unshiftColumns",text:s.default("editor.unshiftColumns"),hidden:!1,disabled:!1},{id:"pushColumn",text:s.default("editor.pushColumn"),hidden:!1,disabled:!1},{id:"pushColumns",text:s.default("editor.pushColumns"),hidden:!1,disabled:!1},{id:"",text:"-"},{id:"deletColumns",text:s.default("general.delete"),hidden:!1,disabled:!c.length||!a.canRemoveColumns(n,c)}];case"row":{const e=-1===(null==t?void 0:t.start.row);return[{id:"unshiftRow",text:s.default("editor.unshiftRow"),hidden:!1,disabled:e},{id:"unshiftRows",text:s.default("editor.unshiftRows"),hidden:!1,disabled:e},{id:"pushRow",text:s.default("editor.pushRow"),hidden:!1,disabled:!1},{id:"pushRows",text:s.default("editor.pushRows"),hidden:!1,disabled:!1},{id:"",text:"-"},{id:"deletRows",text:s.default("general.delete"),hidden:!1,disabled:!i.length||!a.canRemoveRows(n,i)}]}}},this.handleItemClick=e=>{const{type:t,tableValue:n,comp:r,selectArea:i,selectRows:l,selectColumns:c,onSubmit:u,onSelectedCleared:d,onCellsContentCleared:h,onCellsContentConvert:p,onConfirm:f,onCopyCells:m,onPasteCells:g}=this.props;let v=[...l],y=[...c];if("cell"===t&&i){const{rows:e,columns:t}=a.getRowsAndColumnsOfSelectArea(i);v=e,y=t}switch(e.id){case"copy":m();break;case"paste":g();break;case"mergeCells":if(i&&a.canMergeCells(n,i))if(r.selectedComps.length>1)f({type:"msg",massage:s.default("alert.makeSureToMergeCells"),buttonMode:"activeCancel",onClickMsgOk:()=>{const{newValue:e,childrenPatches:t}=r.mergeCells(i);u&&u(e,t),f(void 0)},onClose:()=>{f(void 0)}});else{const{newValue:e,childrenPatches:t}=r.mergeCells(i);u&&u(e,t)}break;case"splitCells":if(i&&a.canSplitCells(n,i)){const{newValue:e,childrenPatches:t}=r.splitCells(i);u&&u(e,t)}break;case"cleanStyle":if(i){const e=[];for(let t=i.start.row;t<=i.end.row;t++)for(let n=i.start.column;n<=i.end.column;n++)e.push({row:t,column:n});const{newValue:t,childrenPatches:n}=r.cleanStyle(e);u&&u(t,n)}break;case"cleanContent":h&&h();break;case"convertToText":i&&h&&p(o.CellTypes.Text);break;case"convertToCheckBox":i&&h&&p(o.CellTypes.CheckBox);break;case"convertToRadio":i&&h&&p(o.CellTypes.Radio);break;case"unshiftColumn":if(i){const{newValue:e,childrenPatches:t}=r.unshiftColumns(y,1);d&&d(),u&&u(e,t)}break;case"unshiftColumns":if(i){const{newValue:e,childrenPatches:t}=r.unshiftColumns(y,3);d&&d(),u&&u(e,t)}break;case"pushColumn":if(i){const{newValue:e,childrenPatches:t}=r.pushColumns(y,1);d&&d(),u&&u(e,t)}break;case"pushColumns":if(i){const{newValue:e,childrenPatches:t}=r.pushColumns(y,3);d&&d(),u&&u(e,t)}break;case"deletColumns":if(y.length){const{newValue:e,childrenPatches:t}=r.removeColumns(y);d&&d(),u&&u(e,t)}break;case"unshiftRow":if(v.length&&!v.includes(-1)){const{newValue:e,childrenPatches:t}=r.unshiftRows(v,1);d&&d(),u&&u(e,t)}break;case"unshiftRows":if(v.length&&!v.includes(-1)){const{newValue:e,childrenPatches:t}=r.unshiftRows(v,3);d&&d(),u&&u(e,t)}break;case"pushRow":if(v.length){const{newValue:e,childrenPatches:t}=r.pushRows(v,1);d&&d(),u&&u(e,t)}break;case"pushRows":if(v.length){const{newValue:e,childrenPatches:t}=r.pushRows(v,3);d&&d(),u&&u(e,t)}break;case"deletRows":if(v.length){const{newValue:e,childrenPatches:t}=r.removeRows(v);d&&d(),u&&u(e,t)}}}}render(){const{type:e,position:t,onMenuClose:n}=this.props;return r.createElement(i.PopupMenu,{position:t,items:this.menuData(e),onItemClick:this.handleItemClick,onClose:n,width:100})}}t.default=c},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckBoxCfg=t.onChildMove=void 0;const r=n(18),o=n(8),i=n(12),a=n(46),s=n(4),l=n(29),c=n(35),u=n(34),d=n(24),h=n(56),p=n(10),f=n(6),{width:m,height:g}=r.measureTextSize({fontSize:14,fontFamily:"Microsoft YaHei"},s.default("resource.components.checkbox")),v=Math.max(16,g);function y(e,t,n){var r;const a=l.getTextCompInSealed(t),s=t.properties,c=null===(r=s.layout)||void 0===r?void 0:r.horizontalGap,u=(null==n?void 0:n.length)?n[0]:void 0;if((null==u?void 0:u.type)===f.CPureText){const e=a.position,n=u.position.x-e.x,r=t.getCurrentPropertiesPath("properties/layout"),l=o.max(0,c+n),d=Object.assign(Object.assign({},s.layout),{horizontalGap:l});return{do:{[t.id]:[i.Ops.replace(r,d)]},undo:{[t.id]:[i.Ops.replace(r,s.layout)]}}}return null}t.onChildMove=y;t.CheckBoxCfg={type:"checkbox",name:s.default("resource.components.checkbox"),isTextComp:!0,thumb:{spriteIconClass:p.SpriteThumb.CheckBox.className,dragPosition:p.SpriteThumb.CheckBox.position},sizeMode:f.SizeMode.none,predefinedStates:[d.PredefinedStates.checked,d.PredefinedStates.disabled],value:{type:h.default.PureText},editor:{onChildMove:y,onPropertyUpdate:(e,t,n)=>{var r;if("iconSize"===t){const t=e.getComponentByAlias("icon",!0);if(t){const[o]=t.components,{size:a,id:s,position:l}=t,d=n.value.value,{id:h,size:p,position:f}=o,m=d/(null===(r=e.properties.iconSize)||void 0===r?void 0:r.value.value);if(!m)return null;const g=e.getCurrentPropertiesPath("/properties/iconSize"),v=e.getCurrentSizePath(),y=e.getCurrentPositionPath(),b=Object.assign(Object.assign({},a),{width:a.width*m,height:a.height*m}),w=Object.assign(Object.assign({},p),{width:d,height:d}),C={do:{[s]:[i.Ops.replace(v,b)],[h]:[i.Ops.replace(v,w)],[e.id]:[i.Ops.replace(g,Object.assign(Object.assign({},n),{value:Object.assign(Object.assign({},n.value),{value:d})}))]},undo:{[s]:[i.Ops.replace(v,a),i.Ops.replace(y+"/y",l.y)],[h]:[i.Ops.replace(v,p),i.Ops.replace(y,f)],[e.id]:[i.Ops.replace(g,e.properties.iconSize)]}},_=e.getComponentByAlias("selectIcon",!0);if(_){const{size:e}=_,t=Object.assign(Object.assign({},e),{width:e.width*m,height:e.height*m}),{position:n,rotate:r,size:o}=_.getResizeMySelfResult(u.getOffsetBySizeChange(e,t)),i=u.getNewPositionWhenCenter(_,n,o,b,{isLayoutCenterAtHorizontal:!0,isLayoutMiddleAtVertical:!0}),{patches:a}=_.parent.getPositionPatchesOfChildrenChanged([{id:_.id,type:u.ComponentChangeType.Edit,size:o,rotate:r,position:i}],!1);c.coverPatches(C,a)}return C}}return null}},interactions:{defaultEvent:a.EventTypes.checked},constraint:{text:{move:f.MoveMode.horizontal},icon:{move:f.MoveMode.neither,resize:f.SizeMode.none}},template:`\n {\n type: @@C.StackPanel,\n size: {\n width: ${m+24},\n height: ${v},\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties: {\n textStyle: {\n textAlign: @@TextAlign.left,\n color: @@SystemColors.DefaultTextColor,\n fontSize: 14,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n disabled: false,\n },\n layout:{\n direction: 'horizontal',\n verticalAlign: 'middle',\n horizontalGap: 10,\n disabledSwitch: true,\n disabled: false,\n },\n iconSize: {\n prop: 'number',\n name: '${s.default("property.propertyNames.iconSize")}',\n value: {\n min: 10,\n max: 100,\n value: 13\n },\n }\n },\n value: '${s.default("resource.components.checkbox")}',\n states:{\n disabled:{\n enabled: true,\n opacity: 30,\n properties:{},\n },\n checked:{\n enabled: true,\n properties:{},\n }\n },\n components: [\n {\n type: @@C.CanvasPanel,\n alias: 'icon',\n size: {\n width: 13,\n height: 13,\n lockedRatio:true,\n },\n position:{\n x: 0,\n y: ${Math.floor((v-16)/2)},\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties:{\n stroke: {\n color: "#AAAAAA",\n thickness: 1,\n disabled: false,\n },\n fill:{\n type: 'solid',\n color: {r: 255, g: 255, b: 255, a: 1},\n disabled: false,\n },\n },\n states:{\n checked: {\n enabled: true,\n name: '${s.default("property.propertyNames.checked")}',\n properties:{\n fill:{\n type: @@FillType.solid,\n color: @@SystemColors.DefaultSelectColor,\n disabled: false,\n },\n stroke:{disabled:true}\n },\n },\n },\n components: [\n {\n type: @@C.Path,\n alias:'selectIcon',\n position: {\n x: 3.5,\n y: 4.5,\n },\n size: {\n width: 6,\n height: 4,\n lockedRatio:true,\n },\n layout:{\n vertical: 'middle',\n horizontal: 'center',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties: {\n stroke: {\n cap:"butt",\n color:{a:1,b:255,g:255,r:255},\n disabled:false,\n join:"miter",\n position:"center",\n thickness:2\n },\n },\n value: {\n closed: false,\n data: [\n { handleIn: { x: 0, y: 0 }, handleOut: { x: 0, y: 0 }, point: { x: 0, y: 1 } },\n { handleIn: { x: 0, y: 0 }, handleOut: { x: 0, y: 0 }, point: { x: 2.5, y: 3.5 } },\n { handleIn: { x: 0, y: 0 }, handleOut: { x: 0, y: 0 }, point: { x: 6, y: 0 } },\n ],\n },\n hidden: true,\n states: {\n checked: {\n enabled: true,\n name: '${s.default("property.propertyNames.checked")}',\n hidden: false,\n properties:{\n \n },\n },\n },\n },\n ],\n },\n {\n type: @@C.PureText,\n alias: 'text',\n autoSize: true,\n canMove:{\n horizontal:true,\n vertical:false,\n },\n size: {\n width: ${m},\n height: ${g},\n },\n position:{\n x: 24,\n y: ${Math.floor((v-g)/2)},\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left&right',\n fixedWidth: false,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n value: '@value',\n properties: {\n textStyle: {\n ref: '@properties.textStyle',\n },\n },\n },\n ],\n select: {\n target: 'self',\n enabled: true,\n reversible: true,\n },\n sealed: true,\n }\n `}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadioCfg=t.onChildMove=void 0;const r=n(8),o=n(24),i=n(56),a=n(6),s=n(4),l=n(18),c=n(12),u=n(46),d=n(29),h=n(10),p=n(6);function f(e,t,n){var o;const i=d.getTextCompInSealed(t),a=t.properties,s=null===(o=a.layout)||void 0===o?void 0:o.horizontalGap,l=(null==n?void 0:n.length)?n[0]:void 0;if((null==l?void 0:l.type)===p.CPureText){const e=i.position,n=l.position.x-e.x,o=t.getCurrentPropertiesPath("properties/layout"),u=r.max(0,s+n),d=Object.assign(Object.assign({},a.layout),{horizontalGap:u});return{do:{[t.id]:[c.Ops.replace(o,d)]},undo:{[t.id]:[c.Ops.replace(o,a.layout)]}}}return null}t.onChildMove=f;const{width:m,height:g}=l.measureTextSize({fontSize:14,fontFamily:"Microsoft YaHei"},s.default("resource.components.radio")),v=Math.max(16,g);t.RadioCfg={type:"radio",name:s.default("resource.components.radio"),isTextComp:!0,thumb:{spriteIconClass:h.SpriteThumb.Radio.className,dragPosition:h.SpriteThumb.Radio.position},sizeMode:a.SizeMode.none,predefinedStates:[o.PredefinedStates.checked,o.PredefinedStates.disabled],editor:{onPropertyUpdate:(e,t,n)=>{if("iconSize"===t){const t=e.getComponentByAlias("icon",!0);if(t){const[r]=t.components,{size:o,id:i,position:a}=t,{size:s}=e,l=n.value,u=l.value,d=(s.height-u)/2,h=Math.round(.625*u),{id:p,size:f,position:m}=r,g=(u-h)/2,v=e.getCurrentPropertiesPath("/properties/iconSize"),y=e.getCurrentSizePath(),b=e.getCurrentPositionPath();return{do:{[i]:[c.Ops.replace(y,Object.assign(Object.assign({},o),{width:u,height:u})),c.Ops.replace(b+"/y",d)],[p]:[c.Ops.replace(y,Object.assign(Object.assign({},f),{width:h,height:h})),c.Ops.replace(b,{x:g,y:g})],[e.id]:[c.Ops.replace(v,Object.assign(Object.assign({},n),{value:Object.assign(Object.assign({},l),{value:u})}))]},undo:{[i]:[c.Ops.replace(y,o),c.Ops.replace(b+"/y",a.y)],[p]:[c.Ops.replace(y,f),c.Ops.replace(b,m)],[e.id]:[c.Ops.replace(v,e.properties.iconSize)]}}}}return null},onChildMove:f},interactions:{defaultEvent:u.EventTypes.checked},value:{type:i.default.PureText},constraint:{generalText:{move:a.MoveMode.horizontal},icon:{move:a.MoveMode.neither},innerCircle:{resize:a.SizeMode.none}},template:`\n {\n type: @@C.StackPanel,\n size: {\n width: ${m+24},\n height: ${v},\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties: {\n textStyle: {\n textAlign: @@TextAlign.left,\n color: @@SystemColors.DefaultTextColor,\n fontSize: 14,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n disabled: false,\n },\n layout:{\n direction: 'horizontal',\n verticalAlign: 'middle',\n horizontalGap: 10,\n disabledSwitch: true,\n disabled: false,\n },\n iconSize: {\n prop: 'number',\n name: '${s.default("property.propertyNames.iconSize")}',\n value: {\n min: 10,\n max: 100,\n value: 13\n },\n } \n },\n value: '${s.default("resource.components.radio")}',\n states:{\n checked:{\n enabled: true,\n properties:{},\n },\n disabled:{\n enabled: true,\n opacity: 30,\n properties:{},\n },\n },\n components: [\n {\n type: @@C.CanvasPanel,\n alias: 'icon',\n size: {\n width: 13,\n height: 13,\n },\n position:{\n x: 0,\n y: ${(v-13)/2},\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties:{\n fill:{\n type: 'solid',\n color: {r: 255, g: 255, b: 255, a: 1},\n disabled: false,\n },\n stroke: {\n color: "#AAAAAA",\n thickness: 1,\n disabled: false,\n },\n radius:{\n topLeft: 100,\n topRight: 100,\n bottomLeft: 100,\n bottomRight: 100,\n isPercent: true,\n hidden: true,\n },\n },\n components: [\n {\n type: @@C.Rect,\n alias:'innerCircle',\n position: {\n x: 3,\n y: 3,\n },\n size: {\n width: 7,\n height: 7,\n },\n layout:{\n vertical: 'middle',\n horizontal: 'center',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties: {\n fill: {\n disabled: false,\n type: 'solid',\n color: @@SystemColors.DefaultSelectColor,\n },\n radius:{\n topLeft: 100,\n topRight: 100,\n bottomLeft: 100,\n bottomRight: 100,\n isPercent: true,\n hidden: true,\n },\n },\n value: {\n iconCode: 59977,\n fontName: 'boldIconFont',\n },\n hidden: true,\n states: {\n checked: {\n enabled: true,\n name: '${s.default("resource.components.radio")}',\n hidden: false,\n },\n },\n },\n ],\n },\n {\n type: @@C.PureText,\n alias: 'generalText',\n autoSize: true,\n size: {\n width: ${m},\n height: ${g},\n },\n position:{\n x: 24,\n y: ${Math.floor((v-g)/2)},\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left&right',\n fixedWidth: false,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n value: '@value',\n properties: {\n textStyle: {\n ref: '@properties.textStyle',\n },\n },\n },\n ],\n select: {\n target: 'self',\n enabled: true,\n reversible: false,\n },\n sealed: true,\n }\n `}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListCfg=void 0;const r=n(18),o=n(12),i=n(4),a=n(62),s=n(14),l=n(53),c=n(24),u=n(56),d=n(10),h=n(6);var p=s.StyleHelper.initCSSStyleParser;t.ListCfg={type:"list",name:i.default("resource.components.list"),thumb:{spriteIconClass:d.SpriteThumb.List.className,dragPosition:d.SpriteThumb.List.position},isList:!0,predefinedStates:[c.PredefinedStates.disabled],value:{type:u.default.ListItemPureTextValues},initialization:function(e,t){const n=l.isMobileAppType(e)?48:30;let r=0;t.components.forEach(e=>{e.size=Object.assign(Object.assign({},e.size),{height:n}),e.position=Object.assign(Object.assign({},e.position),{y:r}),r+=n;const[t]=e.components;t.size.height=n-4,t.position.y=Math.round((n-t.size.height)/2)}),t.properties.cell.rowHeight=n},editor:{onResize:function(e,t){const n={do:{},undo:{}};return e.components.forEach(e=>{const r=e.getFirstChildComponentByType(h.CPureText);if(r){const{size:e,position:i}=r,a=Math.max(0,t.width-2*i.x);n.do[r.id]=[o.Ops.replace("./size",Object.assign(Object.assign({},e),{width:a})),o.Ops.replace("./position",Object.assign(Object.assign({},i),{left:(t.width-a)/2}))],n.undo[r.id]=[o.Ops.replace("./size",e),o.Ops.replace("./position",i)]}}),n},onResizeChildren:function(e,t,n){var r;const o=new a.ArtboardPatchesClass;if(n[0].size.height!==t.height){const n={rowHeight:t.height,ratioHeight:!!(null===(r=e.properties.cell)||void 0===r?void 0:r.rowHeight)};o.coverPatches(e.getPatchesWhenSetCellProperty(n))}return o},onPropertyUpdate:function(e,t,n){if("textStyle"===t){const t=e,i=e.properties.cell.rowHeight,a=p({}).getTextStyleEx(n),s=r.measureTextSize(a,"lp").height,l={do:{},undo:{}};return t.components.forEach(e=>{const t=e.components[0],{size:n,position:r}=t;l.do[t.id]=[o.Ops.replace("./size",Object.assign(Object.assign({},n),{height:s})),o.Ops.replace("./position",Object.assign(Object.assign({},r),{y:Math.round((i-s)/2)}))],l.undo[t.id]=[o.Ops.replace("./size",n),o.Ops.replace("./position",r)]}),l}return null}},constraint:{text:{resize:h.SizeMode.none}},item:`\n {\n type: @@C.CanvasPanel,\n size: {\n width: 300,\n height: 48,\n },\n position:{\n x: 0,\n y: {2}\n },\n properties:{\n fill: {\n ref: '@properties.fill',\n },\n },\n states: {\n checked: {\n enabled: true,\n name: '${i.default("property.propertyNames.checked")}',\n properties: {\n fill: {\n ref: '@properties.fill2',\n },\n },\n },\n },\n components: [\n {\n type: @@C.PureText,\n alias: 'text',\n autoSize: false,\n position: {\n x: 16,\n y: 2,\n },\n size: {\n width: 268,\n height: 44,\n },\n layout:{\n vertical: 'middle',\n horizontal: 'auto',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties:{\n textStyle:{\n ref:'@properties.textStyle',\n },\n },\n states:{\n checked:{\n enabled: true,\n properties:{\n textStyle:{\n ref:'@properties.selectTextStyle'\n }\n },\n },\n },\n value: '{0}',\n },\n ],\n selected: {1},\n }\n `,itemArgs:[{type:"string",value:i.default("resource.componentsText.newItem")},{type:"boolean",value:!1},{type:"number",value:0}],template:`\n {\n type: @@C.ListLayoutPanel,\n size: {\n width: 300,\n height: 200,\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties: {\n layout: {\n hidden: true,\n direction: 'vertical',\n verticalAlign: 'top',\n horizontalAlign: 'center',\n horizontalGap: 0,\n verticalGap: 0,\n },\n container: {\n scroll: true,\n showScroll: true,\n disabled: false,\n },\n separator:{\n thickness: 1,\n disabled: false,\n color: @@SystemColors.DefaultStrokeColor,\n },\n cell:{\n name: '${i.default("property.propertyNames.lineHeight")}',\n rowHeight: 48,\n ratioHeight: false,\n },\n layout:{\n direction:'vertical',\n verticalGap:0,\n },\n padding:{\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n disabled:false\n },\n fill: {\n name: '${i.default("property.propertyNames.bgcolor")}',\n type: @@FillType.solid,\n color: @@SystemColors.DefaultWhiteFillColor,\n disabled: false,\n },\n fill2: {\n name: '${i.default("property.propertyNames.checkedColor")}',\n prop: 'fill',\n type: @@FillType.solid,\n color: @@SystemColors.DisabledDarkFillColor,\n disabled: false,\n },\n stroke:{\n thickness: 1,\n color: @@SystemColors.DefaultStrokeColor1,\n disabled: false,\n },\n textStyle:{\n textAlign: @@TextAlign.left,\n fontSize: 14,\n color: @@SystemColors.DefaultTextColor,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n disabled: false,\n },\n selectTextStyle:{\n prop: 'textStyle',\n name: '${i.default("property.propertyNames.checkedText")}',\n textAlign: @@TextAlign.left,\n fontSize: 14,\n color: @@SystemColors.DefaultTextColor,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n disabled: false,\n },\n },\n states:{\n disabled:{\n enabled: false,\n opacity: 30,\n properties:{\n \n },\n },\n },\n components: [\n @@ITEM-${i.default("resource.componentsText.listItemText")} 1|true|0,\n @@ITEM-${i.default("resource.componentsText.listItemText")} 2|false|48,\n @@ITEM-${i.default("resource.componentsText.listItemText")} 3|false|96,\n ],\n value: '',\n select: {\n enabled: true,\n target: 'child',\n maxCount: 1,\n minCount: 1,\n reversible: false,\n autoUnselect: true,\n },\n sealed: true,\n }\n `}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadioGroupCfg=void 0;const r=n(18),o=n(46),i=n(4),a=n(24),s=n(56),l=n(10),c=n(6),u=n(434),d=[i.default("resource.componentsText.optionText")+" 1",i.default("resource.componentsText.optionText")+" 2",i.default("resource.componentsText.optionText")+" 3"],h=d.map(e=>r.measureTextSize({fontSize:14,fontFamily:"Microsoft YaHei"},e));t.RadioGroupCfg={type:"radio-button-group",name:i.default("resource.components.radioButtonGroup"),thumb:{spriteIconClass:l.SpriteThumb.RadioGroup.className,dragPosition:l.SpriteThumb.RadioGroup.position},isList:!0,predefinedStates:[a.PredefinedStates.disabled],value:{type:s.default.ListItemPureTextValues},constraint:{pureText:{move:c.MoveMode.horizontal},iconWrapper:{move:c.MoveMode.neither},outerEllipse:{move:c.MoveMode.neither},innerEllipse:{move:c.MoveMode.neither}},editor:{onChildMove:u.onChildMove},interactions:{defaultEvent:o.EventTypes.checked},item:`\n {\n type: @@C.StackPanel,\n size: {\n width: {3},\n height: ${h[0].height},\n },\n properties: {\n layout:{\n direction: 'horizontal',\n horizontalGap: 8,\n verticalAlign: 'middle',\n disabledSwitch: true,\n disabled: false,\n },\n },\n value: '',\n components: [\n {\n type: @@C.CanvasPanel,\n alias:'iconWrapper',\n size: {\n width: 13,\n height: 13,\n },\n position:{\n x: 0, y: 3,\n },\n layout:{\n vertical: 'auto',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n components: [\n {\n type: @@C.Ellipse,\n alias:'outerEllipse',\n position: {\n x: 0,\n y: 0,\n },\n size:{width: 13, height: 13},\n layout:{\n vertical: 'top&bottom',\n horizontal: 'left&right',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties: {\n fill: {\n type: @@FillType.solid,\n color: @@SystemColors.WhiteColor,\n disabled: false,\n },\n stroke: {\n thickness: 1,\n color: "#AAAAAA",\n disabled: false,\n position: 'inner',\n },\n },\n },\n {\n type: @@C.Ellipse,\n alias:'innerEllipse',\n position: {\n x: 3,\n y: 3,\n },\n size:{width: 7, height: 7,lockedRatio:true},\n layout:{\n vertical: 'middle',\n horizontal: 'center',\n fixedWidth: true,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n properties: {\n fill: {\n disabled: true,\n type: @@FillType.solid,\n color: @@SystemColors.TransparentColor,\n },\n stroke: {\n thickness: 1,\n color: @@SystemColors.BlackColor,\n disabled: true,\n },\n },\n states: {\n checked: {\n enabled: true,\n name: '${i.default("property.propertyNames.checked")}',\n properties: {\n fill: {\n disabled: false,\n type: @@FillType.solid,\n color: @@SystemColors.DarkGrayColor,\n },\n },\n },\n },\n },\n ],\n },\n {\n type: @@C.PureText,\n alias:'pureText',\n autoSize: true,\n size: {\n width: {2},\n height: ${h[0].height},\n },\n position: {x: 20, y: 2},\n layout:{\n vertical: 'auto',\n horizontal: 'left&right',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties: {\n textStyle: {\n ref: '@properties.textStyle1',\n },\n },\n value: '{0}',\n states: {\n checked: {\n name: '${i.default("property.propertyNames.checked")}',\n enabled: true,\n properties: {\n textStyle: {\n ref: '@properties.textStyle2',\n },\n },\n },\n },\n },\n ],\n selected: {1},\n }\n `,template:`\n {\n type: @@C.GridPanel,\n size: {\n width: 86,\n height: 92,\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties: {\n cell:{\n columnCount:1\n },\n layout: {\n direction: 'vertical',\n verticalAlign: 'top',\n horizontalAlign: 'left',\n verticalGap: 10,\n horizontalGap: 10,\n disabledSwitch:true,\n },\n textStyle1: {\n name: '${i.default("property.propertyNames.defaultText")}',\n prop: 'textStyle',\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n color: @@SystemColors.DefaultTextColor,\n disabled: false,\n },\n textStyle2: {\n name: '${i.default("property.propertyNames.checkedText")}',\n prop: 'textStyle',\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n color: @@SystemColors.DefaultTextColor,\n disabled: false,\n },\n },\n states:{\n disabled:{\n enabled: false,\n properties:{\n textStyle1: {\n prop: 'textStyle',\n color: @@SystemColors.DisabledTextColor,\n },\n textStyle2: {\n prop: 'textStyle',\n color: @@SystemColors.DisabledTextColor,\n },\n },\n },\n }, \n value: '',\n components: [\n ${d.map((e,t)=>`@@ITEM-${e}|${0===t}|${h[t].width}|${h[t].width+26},`).join("\n")}\n ],\n select: {\n target: 'child',\n enabled: true,\n maxCount: 1,\n minCount: 1,\n reversible: false,\n autoUnselect: true,\n },\n sealed: true,\n }\n `,itemArgs:[{type:"string",value:i.default("resource.componentsText.optionText")},{type:"boolean",value:!1}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwitchCfg=void 0;const r=n(8),o=n(12),i=n(40),a=n(46),s=n(35),l=n(52),c=n(4),u=n(62),d=n(24),h=n(56),p=n(10),f=n(6);t.SwitchCfg={type:"switch",name:c.default("resource.components.switch"),thumb:{spriteIconClass:p.SpriteThumb.Switch.className,dragPosition:p.SpriteThumb.Switch.position},predefinedStates:[d.PredefinedStates.checked,d.PredefinedStates.disabled],value:{type:h.default.Bool,getValue:e=>e.selected,setValue:(e,t)=>{const n=[],r=[];return t?(n.push(o.Ops.replace("/selected",!0)),r.push(o.Ops.replace("/selected",!1))):(n.push(o.Ops.replace("/selected",!1)),r.push(o.Ops.replace("/selected",!0))),{do:{[e.id]:n},undo:{[e.id]:r}}}},constraint:{roundedRect:{move:f.MoveMode.neither}},template:`\n {\n type: @@C.CanvasPanel,\n size: { width: 50, height: 30,lockedRatio:false },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties: {\n background: {\n prop:'fill',\n name: '${c.default("property.propertyNames.bgcolor")}',\n type: @@FillType.solid,\n color: @@SystemColors.DisabledDarkFillColor,\n disabled: false,\n },\n buttonColor: {\n name: '${c.default("property.propertyNames.buttonColor")}',\n prop: 'fill',\n type: @@FillType.solid,\n color: @@SystemColors.WhiteColor,\n disabled: false,\n },\n radius: {\n prop: 'radius',\n topLeft: 100,\n topRight: 100,\n bottomRight: 100,\n bottomLeft: 100,\n isPercent: true,\n disabled: false,\n hidden:true,\n },\n backgroundStroke: {\n prop:'stroke',\n thickness: 1,\n color: @@SystemColors.BlackColor,\n disabled: true,\n },\n shadow:{\n disabled: true,\n prop:'shadow',\n x: 0,\n y: 3,\n blur: 6,\n color: @@SystemColors.ShadowColor,\n },\n },\n value: '',\n components: [\n { \n type: @@C.Rect,\n alias:'roundedRect',\n size:{width: 50, height: 30},\n layout:{\n horizontal: @@HorizontalAlign.LeftAndRight,\n vertical: @@VerticalAlign.TopAndBottom,\n fixedWidth: false,\n fixedHeight: false,\n auto: true,\n responsive: true,\n },\n properties: {\n radius: { ref: '@properties.radius' },\n fill: { ref: '@properties.background', },\n stroke: { ref: '@properties.backgroundStroke' },\n },\n },\n {\n type: @@C.Ellipse,\n alias: 'button',\n position:{\n x: 2,\n y:2,\n },\n layout:{\n horizontal: @@HorizontalAlign.Left,\n vertical: @@VerticalAlign.Middle,\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n size: { width:26, height: 26, lockedRatio: true },\n properties: {\n fill: { ref: '@properties.buttonColor' },\n stroke: { ref: '@properties.backgroundStroke' },\n },\n },\n ],\n states: {\n checked: {\n enabled: false,\n name: '${c.default("property.propertyNames.checked")}',\n properties: {\n background: {\n props: 'fill',\n type: @@FillType.solid,\n color: '#009DFF',\n },\n },\n },\n },\n select: {\n target: 'self',\n enabled: true,\n reversible: true,\n },\n selected: false,\n sealed: true,\n }\n `,editor:{onChildSelectedChange:function(e,t,n){const r={do:{},undo:{}};return e.components.filter(e=>"ellipse"===e.type).forEach(t=>{const o=e.size.width-t.size.width-2,a=n?o:2,l=t.getPositionPatches(Object.assign(Object.assign({},t.position),{x:a}));s.coverPatches(r,l);const c=n?i.HorizontalAlign.Right:i.HorizontalAlign.Left,u=t.getLayoutChangePatches(Object.assign(Object.assign({},t.layout),{horizontal:c}));s.coverPatches(r,u)}),r},onResize:function(e,t){const n={do:{},undo:{}},i=e.getSuchChild(e=>e.type===f.CEllipse)[0],a=i.id;if(i){const c=r.notSameNumber(t.height,e.size.height),d=r.notSameNumber(t.width,e.size.width);d&&!c&&(n.do[a]=[],n.undo[a]=[]);const h=i.size,p=h.width/h.height,f=h.height*(t.height/e.size.height),m=f*p,g={height:f,width:m};if(e.selected){let r;if(d&&!c)r=Object.assign(Object.assign({},i.position),{x:i.position.x+t.width-e.size.width});else if(c){const n=e.size.width-i.position.x-i.size.width;r={x:t.width-m-n,y:i.position.y}}r&&s.coverPatches(n,(new u.ArtboardPatchesClass).getAttrChangePatches(i.id,i.getCurrentPositionPath(),{oldVal:i.position,newVal:r}))}else if(d&&c){const e=i.getCurrentSizePath(),r=l.getCenter({x:0,y:0},t);n.do[a]=[o.Ops.replace(""+e,Object.assign(Object.assign({},i.size),g))],n.undo[a]=[o.Ops.replace(""+e,h)];const c=l.getNWPoint(r,g,0),u=Object.assign(Object.assign({},i.position),{y:c.y});s.coverPatches(n,i.getPositionPatches(u))}s.coverPatches(n,(new u.ArtboardPatchesClass).getAttrChangePatches(i.id,i.getCurrentSizePath(),{oldVal:i.size,newVal:g}))}return n}},preview:{onTriggerState:function(e,t,n){if("checked"===n||"unchecked"===n){const t=e.getComponentByAlias("button",!0),r={},{position:i,size:a}=t,{size:s}=e,l=Object.assign({},i);return l.x="checked"===n?s.width-i.x-a.width:s.width-(i.x+a.width),r[t.id]=[o.Ops.replace("/position",l)],r}return null}},interactions:{transformEventName:e=>e===a.EventTypes.checked?c.default("property.interaction.triggerconditions.on"):e===a.EventTypes.unChecked?c.default("property.interaction.triggerconditions.off"):e===a.EventTypes.toggleCheck?c.default("property.interaction.triggerconditions.toggle"):"",sort:e=>{const t=[],n=e.filter(e=>{const n=e.id;return![a.EventTypes.checked,a.EventTypes.unChecked,a.EventTypes.toggleCheck].includes(n)||(t.push(e),!1)});return n.unshift(...t),n},defaultEvent:a.EventTypes.checked}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreadCrumbsCfg=void 0;const r=n(18),o=n(8),i=n(12),a=n(4),s=n(62),l=n(157),c=n(116),u=n(24),d=n(10),h=n(6),p=a.default("resource.componentsText.breadCrumbsText"),{height:f}=r.measureTextSize({fontSize:14},p+" 2"),m=Math.max(f,20),g=`\n {\n type: @@C.StackPanel,\n layout:{\n horizontal: @@HorizontalAlign.Auto,\n vertical: @@VerticalAlign.TopAndBottom,\n fixedWidth: false,\n fixedHeight: false,\n auto: true,\n responsive: true,\n },\n properties:{\n layout:{\n disabled: false,\n direction: 'horizontal',\n verticalAlign: 'middle',\n horizontalGap: 4,\n disabledSwitch: false,\n }\n },\n position:{x:0, y: 0},\n size:{width: {1} + 15, height: ${m}},\n components:[\n {\n type: @@C.PureText,\n alias:"text",\n size: {\n width: {1},\n height: ${f},\n },\n autoSize: true,\n position:{x: 0, y: ${Math.round((m-f)/2)}},\n layout: {\n vertical: @@VerticalAlign.Middle,\n horizontal: @@HorizontalAlign.LeftAndRight,\n fixedWidth: true,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n properties: {\n textStyle: {\n ref: '@properties.textStyle'\n },\n shadow:{\n ref: '@properties.shadow',\n }\n },\n states: {\n @@PredefinedStates.hover: {\n enabled: true,\n properties: {\n textStyle: {\n ref: '@properties.hoverTextStyle'\n }\n }\n }\n },\n value: '{0}'\n },\n { \n type: @@C.Icon,\n alias:'icon',\n size:{\n width: 12,\n height: 12,\n },\n position:{\n x: {1} - 5, y: ${Math.round((m-12)/2)},\n },\n layout:{\n vertical: @@VerticalAlign.Middle,\n horizontal: @@HorizontalAlign.Left,\n auto: true,\n fixedWidth: false,\n fixedHeight: false,\n responsive: true,\n },\n properties:{\n icon:{\n ref: '@properties.icon',\n },\n shadow:{\n ref: '@properties.shadow',\n }\n },\n value: {\n iconCode: 59796,\n fontName: 'boldIconFont',\n }, \n },\n ]\n }`,v=`{\n type: @@C.StackPanel,\n size: {width: 300,height: ${m}},\n position: {x: 0, y: 0},\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true, \n auto: true,\n responsive: true,\n },\n properties:{\n layout:{\n direction: 'horizontal',\n horizontalGap: 10,\n verticalAlign: 'middle',\n disabledSwitch: true,\n },\n textStyle:{\n color: @@SystemColors.DefaultTextColor,\n textAlign: @@TextAlign.left,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n fontSize: 14,\n },\n hoverTextStyle:{\n disabled: false,\n prop: 'textStyle',\n name: '${a.default("property.propertyNames.hoverTextStyle")}',\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n color: @@SystemColors.RedColor,\n fontStyle:{ underline: true, bold: false, strike: false, italic: false },\n },\n icon:{\n color: @@SystemColors.DefaultTextColor,\n },\n shadow: {\n disabled: true,\n hidden: false,\n x: 1,\n y: 1,\n blur: 2,\n color: @@SystemColors.TextShadowColor,\n },\n },\n components:[\n ${y=p,y.split("|").map(e=>`@@ITEM-${e}|${r.measureTextSize({fontSize:14},e).width}`).join(",")}\n ],\n select:{\n target: 'child',\n enabled: true,\n maxCount: 1,\n minCount: 0,\n reversible: false,\n autoUnselect: true,\n },\n sealed: true,\n }`;var y;t.BreadCrumbsCfg={name:a.default("resource.components.breadCrumbs"),type:"breadCrumbs",thumb:{spriteIconClass:d.SpriteThumb.BreadCrumbs.className,dragPosition:d.SpriteThumb.BreadCrumbs.position},constraint:{text:{resize:h.SizeMode.none,move:h.MoveMode.neither},icon:{move:h.MoveMode.horizontal}},editor:{onChildMove:function(e,t,n){var r;const a=n&&1===n.length&&"icon"===n[0].alias,d=new s.ArtboardPatchesClass;if(a){const t=n[0],a=t.position,s=t.parent,h=l.getFinalPositionWhenMove([t],e)[0].position,p=s.getCurrentPropertiesPath("properties/layout"),f=s.id,m=h.x-a.x,g=s.properties,v=Object.assign(Object.assign({},g.layout),{horizontalGap:o.max(0,(null===(r=g.layout)||void 0===r?void 0:r.horizontalGap)+m)}),y=(new c.ComponentPatchesClass).getAttrChangePatches(f,p,{oldVal:g,newVal:v}),b=d.getPatchesByCompChange(f,y),{id:w,currentStateID:C,states:_}=s;if(C&&C!==u.PredefinedStates.normal&&!_[C]){const e="./states/"+C;b.do[w].unshift(i.Ops.add(e,{enabled:!0,properties:{}})),b.undo[w].push(i.Ops.remove(e))}return b}return null}},sizeMode:h.SizeMode.none,isList:!0,item:g,template:v,itemArgs:[{type:"string",value:"Item"},{type:"number",value:r.measureTextSize({fontSize:14},"Item 2").width}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentsCfg=void 0;const r=n(18),o=n(206),i=n(4),a=n(14),s=n(24),l=n(10),c=n(6);t.SegmentsCfg=Object.assign(Object.assign({},function(e){const{type:t,name:n,thumb:o,values:l,gap:u,itemSize:d,radiusIsApplyToAllItem:h}=e,p=a.StyleHelper.initCSSStyleParser({textStyle:{fontSize:14,fontFamily:"Microsoft YaHei"}}),{width:f,height:m}=r.measureTextSize(p.getTextStyle(),i.default("resource.componentsText.optionText")+" 2");return{type:t,name:n,thumb:o,isList:!0,predefinedStates:[s.PredefinedStates.disabled],constraint:{text:{resize:c.SizeMode.none,move:c.MoveMode.neither}},item:`{\n type: @@C.CanvasPanel,\n position:{x: {2}, y: 0},\n layout:{\n vertical: @@VerticalAlign.TopAndBottom,\n horizontal: @@HorizontalAlign.Auto,\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n size: {width: ${d.width}, height: ${d.height}},\n selected:{1},\n properties:{\n fill: { ref: '@properties.background' },\n },\n states: {\n @@PredefinedStates.checked: {\n enabled: true,\n properties: {\n fill: {\n ref: '@properties.fill2',\n },\n },\n },\n }, \n components:[\n {\n type: @@C.PureText,\n alias:'text',\n autoSize: true,\n position:{\n x: ${Math.round(d.width-f)/2}, \n y: ${Math.round((d.height-m)/2)},\n },\n size: {width: ${f}, height: ${m}},\n layout: {\n vertical: 'middle',\n horizontal: 'center',\n fixedWidth: true,\n fixedHeight: true,\n auto: false,\n responsive: true,\n },\n properties:{\n textStyle: { ref: '@properties.textStyle' },\n },\n states: {\n @@PredefinedStates.checked: {\n enabled: true,\n properties: {\n textStyle: { ref: '@properties.textStyle2' },\n },\n },\n },\n value:'{0}',\n }]\n }`,template:`{\n type: @@C.ListLayoutPanel,\n size: {width: ${d.width*l.length+(u||0)*(l.length-1)}, height: ${d.height}},\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties: {\n layout: {\n hidden: true,\n direction: 'horizontal',\n verticalAlign: 'middle',\n horizontalGap: ${u}\n },\n cell:{\n hidden: true,\n ratioWidth: true,\n },\n background: {\n prop:'fill',\n type: @@FillType.solid,\n color: @@SystemColors.DefaultWhiteFillColor,\n disabled: false,\n },\n fill2: {\n prop: 'fill',\n name: '${i.default("property.propertyNames.checkedBgcolor")}',\n type: @@FillType.solid,\n color: @@SystemColors.DefaultSelectColor,\n disabled: false,\n },\n separator: {\n thickness: 1,\n color:@@SystemColors.DefaultSelectColor,\n disabled: false,\n },\n textStyle: {\n color: @@SystemColors.DefaultSelectColor,\n fontSize: 14,\n textAlign:@@TextAlign.center,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n },\n textStyle2: {\n color: @@SystemColors.WhiteColor,\n textAlign: @@TextAlign.center,\n fontSize: 14,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n prop: 'textStyle',\n name: '${i.default("property.propertyNames.checkedText")}',\n },\n radius:{\n isPercent: true,\n topLeft: 100,\n topRight: 100,\n bottomRight: 100,\n bottomLeft: 100,\n disabled: false,\n },\n stroke:{\n thickness: 1,\n color:@@SystemColors.DefaultStrokeColor1,\n disabled: false,\n }\n },\n states:{\n disabled:{\n enabled: false,\n opacity: 30,\n properties:{\n \n },\n },\n },\n components:[\n ${l.map((t,n)=>{const r=e.itemSize.width*n;return h?`@@ITEM-${t}|${0===n}|${r},`:0===n?`@@ITEM-${t}|true|${r},`:(l.length,`@@ITEM-${t}|false|${r},`)}).join("\n")}\n ],\n sealed: true,\n select: {\n target: 'child',\n enabled: true,\n maxCount: 1,\n minCount: 0,\n reversible: false,\n autoUnselect: true,\n },\n }`,itemArgs:[{type:"string",value:l[0]},{type:"boolean",value:!1},{type:"number",value:0}]}}({type:"segments-control",name:i.default("resource.components.segmentsControl"),values:[i.default("resource.componentsText.optionText")+" 1",i.default("resource.componentsText.optionText")+" 2",i.default("resource.componentsText.optionText")+" 3"],thumb:{spriteIconClass:l.SpriteThumb.SegmentControls.className,dragPosition:l.SpriteThumb.SegmentControls.position},radius:5,gap:0,itemSize:{width:75,height:30}})),{editor:{onAddChildren:function(e,t){if(e.properties.radius)return null;const n=e.components.length-1,r=e.components[n],i=r.properties.radius,a={bottomLeft:0,bottomRight:0,topLeft:0,topRight:0,isPercent:!1},s={bottomLeft:0,bottomRight:5,topLeft:0,topRight:5,isPercent:!1};return t.forEach((e,n)=>{const r=n<t.length-1;e.properties.radius=r?a:s}),r.setProperty(o.RadiusPropertyName,Object.assign(Object.assign({},i),{topRight:0,bottomRight:0}))},onRemoveChildren:function(e,t){if(e.properties.radius)return null;const n=e.components[0],r=e.components[e.components.length-1],i=e.components.filter(e=>!t.includes(e.id));let a=void 0,s=void 0;t.includes(n.id)&&(a=i[0]),t.includes(r.id)&&(s=i[i.length-1]);let l=null;const c=n.properties.radius,{topLeft:u,bottomLeft:d}=c,h=Math.max(u||0,d||0);if(1===i.length)a&&(l=a.setProperty(o.RadiusPropertyName,Object.assign(Object.assign({},c),{topLeft:h,topRight:h,bottomRight:h,bottomLeft:h}))),s&&(l=s.setProperty(o.RadiusPropertyName,Object.assign(Object.assign({},c),{topLeft:h,topRight:h,bottomRight:h,bottomLeft:h})));else if(a||s){if(l={do:{},undo:{}},a){const e=a.setProperty(o.RadiusPropertyName,Object.assign({},c));l.do[a.id]=e.do[a.id],l.undo[a.id]=e.undo[a.id]}if(s){const e=Object.assign({},r.properties.radius),t=s.setProperty(o.RadiusPropertyName,e);t.do[s.id]&&(l.do[s.id]=t.do[s.id],l.undo[s.id]=t.undo[s.id])}}return l}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressBarCfg=void 0;const r=n(4),o=n(34),i=n(24),a=n(10),s=n(6);t.ProgressBarCfg={type:"progressBar",name:r.default("resource.components.progressBar"),thumb:{spriteIconClass:a.SpriteThumb.Progress.className,dragPosition:a.SpriteThumb.Progress.position},predefinedStates:[i.PredefinedStates.disabled],constraint:{progress:{move:s.MoveMode.neither,resize:s.SizeMode.none}},template:`{\n type: @@C.CanvasPanel,\n size:{width: 300,height: 3},\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n sealed: true,\n properties: {\n fill: {\n name: '${r.default("property.propertyNames.trackFill")}',\n type: @@FillType.solid,\n color: @@SystemColors.SilverWhiteColor,\n disabled: false,\n },\n stroke: {\n name: '${r.default("property.propertyNames.trackStyle")}',\n thickness: 1,\n color: @@SystemColors.GrayColor,\n disabled: true,\n },\n indicatorColor: {\n prop: 'fill',\n name: '${r.default("property.propertyNames.indicatorColor")}',\n type: @@FillType.solid,\n color: @@SystemColors.DeepBlueColor,\n disabled: false,\n },\n radius: {\n topLeft: 100,\n topRight: 100,\n bottomLeft: 100,\n bottomRight: 100,\n isPercent: true,\n disabled: false,\n },\n progress:{\n prop: 'number',\n name: '${r.default("property.propertyNames.progress")}',\n value:{\n max: 100,\n min: 0,\n value: 70,\n unit: '%'\n }\n },\n },\n states:{\n disabled:{\n enabled: false,\n properties:{\n indicatorColor: {\n type: @@FillType.solid,\n color: @@SystemColors.HalfTransparentDarkGreenColor,\n },\n },\n },\n },\n components: [\n {\n type: @@C.Rect,\n alias: 'progress',\n layout:{\n horizontal: 'left',\n vertical: 'top&bottom',\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n position:{x: 0, y: 0},\n size: {width: ${Math.round(210)}, height: 3},\n properties: {\n fill: { ref: '@properties.indicatorColor' },\n radius: { ref: '@properties.radius' },\n stroke: {\n disabled: true,\n },\n },\n }],\n }`,editor:{onPropertyUpdate:function(e,t,n){if("progress"===t){const t=n.value,{width:r}=e.size,i=e,a=i.getComponentByAlias("progress",!0);if(a){const{position:e,size:n}=a,s=r-2*e.x,l=Math.round(s*t.value/100),{patches:c}=i.getPositionPatchesOfChildrenChanged([{type:o.ComponentChangeType.Edit,id:a.id,position:e,size:Object.assign(Object.assign({},n),{width:l}),rotate:0}],!1);return c}}return null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabsCfg=void 0;const r=n(18),o=n(12),i=n(48),a=n(4),s=n(14),l=n(24),c=n(10);var u=s.StyleHelper.initCSSStyleParser;const d=n(6);function h(e,t,n){if(t===i.TextPropertyName){const t=e,i=n,a=u({}).doGetTextStyle(i),s={do:{},undo:{}};return t.components.forEach(e=>{const t=e,n=t.getComponentByAlias("text"),{size:i,position:l}=n,c=n.value,{width:u,height:d}=r.measureTextSize(a,c,{}),{size:h}=t,p=Math.round((h.width-u)/2),f=Math.round((h.height-d)/2);s.do[n.id]=[o.Ops.replace("./size",Object.assign(Object.assign({},i),{width:u,height:d})),o.Ops.replace("./position",{x:p,y:f})],s.undo[n.id]=[o.Ops.replace("./size",i),o.Ops.replace("./position",l)]}),s}return null}function p(){return null}t.TabsCfg=function(e){const{type:t,name:n,thumb:o,values:i,itemSize:c}=e,u=s.StyleHelper.initCSSStyleParser({textStyle:{fontSize:14,fontFamily:"Microsoft YaHei"}}),{width:f,height:m}=r.measureTextSize(u.getTextStyle(),a.default("resource.componentsText.optionText")+" 2");return{type:t,name:n,thumb:o,isList:!0,editor:{onAddChildren:p,onPropertyUpdate:h},constraint:{text:{resize:d.SizeMode.none}},template:`\n {\n type: @@C.ListLayoutPanel,\n sealed: true,\n size: { width: 270, height: 30},\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n select:{\n target: 'child',\n minCount: 1,\n maxCount: 1,\n reversible: false,\n autoUnselect: true,\n enabled: true,\n },\n properties: {\n layout: {\n hidden: true,\n direction: 'horizontal',\n vertical: 'middle',\n horizontal: 'center',\n horizontalGap: 0,\n verticalGap: 0,\n disabled: false,\n },\n cell:{\n ratioWidth: true,\n hidden: true,\n },\n background: {\n prop:'fill',\n type: @@FillType.solid,\n color: @@SystemColors.DefaultWhiteFillColor,\n disabled: false,\n },\n fill2: {\n prop: 'fill',\n name: '${a.default("property.propertyNames.checkedBgcolor")}',\n type: @@FillType.solid,\n color: @@SystemColors.DefaultWhiteFillColor,\n disabled: false,\n },\n separator: {\n thickness: 1,\n color:@@SystemColors.DefaultSelectColor,\n disabled: true,\n },\n separatorRatio: {\n prop: 'number',\n type: 'number',\n name: '${a.default("property.propertyNames.separatorRatio")}',\n value: {\n value: 100,\n unit: '%',\n }\n },\n textStyle: {\n disabled: false,\n color: @@SystemColors.DefaultSelectColor,\n fontSize: 14,\n textAlign:@@TextAlign.center,\n fontFamily: 'Microsoft YaHei',\n fontStyle: { underline: false, bold: false, strike: false, italic: false },\n },\n textStyleChecked: {\n prop: 'textStyle',\n name: '${a.default("property.propertyNames.checkedText")}',\n color: @@SystemColors.DeepBlueColor,\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n textAlign:@@TextAlign.center,\n disabled: false,\n },\n fillChecked: {\n prop: 'fill',\n name: '${a.default("property.propertyNames.checkedUnderbar")}',\n type: @@FillType.solid,\n color: @@SystemColors.DeepBlueColor,\n disabled: false,\n },\n },\n components: [\n ${i.map((e,t)=>0===t?`@@ITEM-${e}|true|0,`:(i.length,`@@ITEM-${e}|false|${c.width*t},`)).join("\n")}\n ]\n }\n `,item:`\n {\n type: @@C.CanvasPanel,\n properties:{\n fill: { ref: '@properties.background' },\n },\n size: {\n width: ${c.width}, \n height: ${c.height}\n },\n position:{\n x: {2},\n y: 0,\n },\n selected: {1},\n states: {\n @@PredefinedStates.checked: {\n enabled: true,\n properties: {\n fill: {\n ref: '@properties.fill2',\n },\n },\n },\n }, \n layout:{\n vertical: @@VerticalAlign.TopAndBottom,\n horizontal: @@HorizontalAlign.Auto,\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n components: [\n {\n type: @@C.PureText,\n alias:'text',\n position:{\n x: ${Math.round((c.width-f)/2)}, \n y: 7\n },\n autoSize: true,\n size: {\n width: ${f}, \n height: ${m}\n },\n layout: {\n vertical: @@VerticalAlign.Middle,\n horizontal: @@HorizontalAlign.Center,\n fixedWidth: false,\n fixedHeight: false,\n auto: false,\n responsive: true,\n },\n properties:{\n textStyle: { ref: '@properties.textStyle' },\n },\n states: {\n @@PredefinedStates.checked: {\n enabled: true,\n properties: {\n textStyle: { ref: '@properties.textStyleChecked' },\n },\n },\n },\n value:'{0}',\n \n },\n {\n type: @@C.Rect,\n size: {width: 40, height: 4},\n alias: 'indicator',\n position:{\n x: ${Math.round((c.width-40)/2)},\n y: ${c.height-4},\n },\n layout: {\n vertical: 'bottom',\n horizontal: 'center',\n auto: false,\n fixedWidth: true,\n fixedHeight: true,\n responsive: true,\n },\n properties: {\n fill:{\n type: 'solid',\n color: {r: 255, g: 255, b: 255, a: 0},\n disabled: true,\n },\n radius:{\n disabled: true,\n topLeft: 0,\n topRight: 0,\n bottomLeft: 0,\n bottomRight: 0,\n isPercent: false,\n }\n },\n states: {\n @@PredefinedStates.checked: {\n enabled: true,\n properties: {\n fill: { ref: '@properties.fillChecked',},\n },\n },\n }, \n }\n ]\n }\n `,itemArgs:[{type:"string",value:a.default("resource.componentsText.optionText")},{type:"boolean",value:!1},{type:"number",value:0}],predefinedStates:[l.PredefinedStates.disabled]}}({type:"selectTab",name:a.default("resource.components.selectTab"),thumb:{spriteIconClass:c.SpriteThumb.TabBar.className,dragPosition:c.SpriteThumb.TabBar.position},values:[a.default("resource.componentsText.optionText")+" 1",a.default("resource.componentsText.optionText")+" 2",a.default("resource.componentsText.optionText")+" 3"],itemSize:{width:90,height:30}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleProgressBarCfg=void 0;const r=n(12),o=n(4),i=n(10),a=n(6);t.CircleProgressBarCfg={type:"circleProgressBar",name:o.default("resource.components.circleProgressBar"),thumb:{spriteIconClass:i.SpriteThumb.CircleProgress.className,dragPosition:i.SpriteThumb.CircleProgress.position},sizeMode:a.SizeMode.ratio,predefinedStates:[],constraint:{progressBar:{move:a.MoveMode.neither,resize:a.SizeMode.none},track:{move:a.MoveMode.neither,resize:a.SizeMode.none}},template:`{\n type: @@C.CanvasPanel,\n size: {\n width: 100,\n height: 100,\n lockedRatio: true,\n },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n properties:{\n trackStyle: {\n prop: 'stroke',\n name: '${o.default("property.propertyNames.trackStyle")}',\n thickness: 6,\n color: @@SystemColors.DefaultDarkFillColor,\n disabled: false,\n cap:'round'\n },\n progressStyle: {\n prop: 'stroke',\n name: '${o.default("property.propertyNames.progressStyle")}',\n thickness: 6,\n color: "#009DFF",\n disabled: false,\n cap:'round'\n },\n progress:{\n prop: 'number',\n name: '${o.default("property.propertyNames.progress")}',\n disabled: false,\n value: {\n min: 0,\n max: 100,\n value: 66,\n step: 1,\n unit: '%',\n },\n }\n },\n components:[{\n type: @@C.Arc,\n alias:'track',\n size: {\n width: 100,\n height: 100,\n },\n layout:{\n vertical: @@VerticalAlign.TopAndBottom,\n horizontal: @@HorizontalAlign.LeftAndRight,\n fixedWidth: false,\n fixedHeight: false,\n auto: true,\n responsive: true,\n },\n properties:{\n stroke: {ref: '@properties.trackStyle'},\n angle:{\n prop:'number',\n value:{\n value: 100,\n },\n hidden:true,\n }\n },\n },{\n type: @@C.Arc,\n alias:'progressBar',\n size: {width: 100, height: 100},\n layout:{\n vertical: @@VerticalAlign.TopAndBottom,\n horizontal: @@HorizontalAlign.LeftAndRight,\n fixedWidth: false,\n fixedHeight: false,\n auto: true,\n responsive: true,\n },\n properties: {\n stroke: {ref: '@properties.progressStyle'},\n angle:{\n ref: '@properties.progress'\n },\n },\n }],\n sealed: true,\n }`,editor:{onPropertyUpdate:function(e,t,n){let o=void 0,i=void 0;const a=e.properties;if("trackStyle"===t?(o=e.getCurrentPropertiesPath("/properties/progressStyle"),i=a.progressStyle):"progressStyle"===t&&(o=e.getCurrentPropertiesPath("/properties/trackStyle"),i=a.trackStyle),o&&i){const t=n;if(i.thickness!==t.thickness){const n=Object.assign(Object.assign({},i),{thickness:t.thickness});return{do:{[e.id]:[r.Ops.replace(o,n)]},undo:{[e.id]:[r.Ops.replace(o,i)]}}}}return null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCfg=void 0;const r=n(12),o=n(4),i=n(24),a=n(10);t.ScoreCfg={type:"score",name:o.default("resource.components.score"),thumb:{spriteIconClass:a.SpriteThumb.Score.className,dragPosition:a.SpriteThumb.Score.position},isList:!0,item:"{\n type: @@C.Icon,\n selected: false,\n position:{\n x: {0},\n y: 0,\n },\n size: {\n width: 12,\n height: 12,\n lockedRatio: true,\n },\n properties: {\n icon: {\n ref: '@properties.color',\n },\n },\n states:{\n checked:{\n enabled: true,\n properties:{},\n value: {fontName: 'lightIconFont',iconCode: 60682,}\n }\n },\n value: {fontName: 'lightIconFont',iconCode: 60686,},\n }",template:`{\n type: @@C.StackPanel,\n size: { width: 100, height: 12 },\n layout:{\n vertical: 'middle',\n horizontal: 'left',\n fixedWidth: true,\n fixedHeight: true,\n auto: true,\n responsive: true,\n },\n sealed: true,\n properties: {\n layout: {\n hidden: false,\n disabled: false,\n direction: 'horizontal',\n horizontalGap: 10,\n verticalAlign: 'middle',\n disabledSwitch: true,\n },\n color: {\n prop: 'icon',\n name: '${o.default("property.propertyNames.color")}',\n color: @@SystemColors.DefaultSelectColor,\n },\n iconSize: {\n prop: 'number',\n name: '${o.default("property.propertyNames.iconSize")}',\n value:{\n min: 10,\n max: 100,\n step: 1,\n value: 12,\n },\n }\n },\n components: [\n ${new Array(5).fill("",0,5).map((e,t)=>"@@ITEM-"+22*t).join("\n,")},\n ],\n select: {\n target: 'child',\n minCount: 0,\n maxCount: -1,\n autoUnselect: false,\n reversible: true,\n enabled: true,\n },\n }`,editor:{onPropertyUpdate:function(e,t,n){if("iconSize"===t){const t=e,o=n.value;return t.components.reduce((e,t)=>({do:Object.assign(Object.assign({},e.do),{[t.id]:[r.Ops.replace("/size",Object.assign(Object.assign({},t.size),{width:o.value,height:o.value}))]}),undo:Object.assign(Object.assign({},e.undo),{[t.id]:[r.Ops.replace("/size",t.size)]})}),{do:{},undo:{}})}return null},onChildSelectedChange:function(e,t){const n=e.components,r=n.indexOf(t),o={do:{},undo:{}};for(let e=0;e<r;e++){const t=n[e],r=t.changeStateEnabled(i.PredefinedStates.checked,!0);r&&(o.do[t.id]=r.do,o.undo[t.id]=r.undo)}for(let e=r+1;e<n.length;e++){const t=n[e],r=t.changeStateEnabled(i.PredefinedStates.checked,!1);r&&(o.do[t.id]=r.do,o.undo[t.id]=r.undo)}return Object.keys(o.do).length?o:null}},preview:{onTriggerState:function(e,t,n,o){const i=e,a={};if("checked"===n){for(let e=0;e<o;e++){const t=i.components[e];a[t.id]=[r.Ops.replace("/selected",!0),r.Ops.replace("/_currentState","checked")],t.states.checked&&a[t.id].push(r.Ops.replace("/states/checked/enabled",!0))}for(let e=o+1;e<i.components.length;e++){const t=i.components[e];a[t.id]=[r.Ops.replace("/selected",!1),r.Ops.replace("/_currentState",void 0)],t.states.checked&&a[t.id].push(r.Ops.replace("/states/checked/enabled",!1))}}else if("unchecked"===n)if(i.components.some((e,t)=>e.selected&&t>o)){for(let e=0;e<o+1;e++){const t=i.components[e];a[t.id]=[r.Ops.replace("/selected",!0),r.Ops.replace("/_currentState","checked")],t.states.checked&&a[t.id].push(r.Ops.replace("/states/checked/enabled",!0))}for(let e=o+1;e<i.components.length;e++){const t=i.components[e];a[t.id]=[r.Ops.replace("/selected",!1),r.Ops.replace("/_currentState",void 0)],t.states.checked&&a[t.id].push(r.Ops.replace("/states/checked/enabled",!1))}}else for(let e=0;e<i.components.length;e++){const t=i.components[e];a[t.id]=[r.Ops.replace("/selected",!1),r.Ops.replace("/_currentState",void 0)],t.states.checked&&a[t.id].push(r.Ops.replace("/states/checked/enabled",!1))}return Object.keys(a).length?a:null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HotAreaCfg=void 0;const r=n(4),o=n(10),i=n(6);t.HotAreaCfg={type:"hot-area",name:""+r.default("resource.components.hotArea"),predefinedStates:[],sizeMode:i.SizeMode.custom,isTextComp:!1,shortCut:"H",thumb:{spriteIconClass:o.SpriteThumb.Hotspot.className,dragPosition:o.SpriteThumb.Hotspot.position},preview:{init:e=>{const{fill:t,stroke:n}=e.properties;t&&(t.disabled=!0),n&&(n.disabled=!0)}},template:"{\n type: @@C.Path,\n size: { width: 100, height: 100 },\n properties: {\n fill: {\n hidden: true,\n disabled: false,\n type: @@FillType.solid,\n color: { r: 254, g: 64, b: 102, a: .1 },\n },\n stroke: {\n disabled: false,\n hidden: true,\n thickness: 1,\n position: 'inner',\n color: { r: 254, g: 64, b: 102, a: .6 },\n },\n },\n value: {\n data: [{\n point: { x: 0, y: 0 },\n handleIn: { x: 0, y: 0 },\n handleOut: { x: 0, y: 0 },\n }, {\n point: { x: 100, y: 0 },\n handleIn: { x: 0, y: 0 },\n handleOut: { x: 0, y: 0 },\n }, {\n point: { x: 100, y: 100 },\n handleIn: { x: 0, y: 0 },\n handleOut: { x: 0, y: 0 },\n }, {\n point: { x: 0, y: 100 },\n handleIn: { x: 0, y: 0 },\n handleOut: { x: 0, y: 0 },\n }],\n closed: true,\n },\n }"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(398),i=n(107),a={id:"container",name:r.default("resource.components.container"),components:[i.CanvasPanelConfig,o.ContentPanelConfig]};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(1264),i=n(1265),a=n(1266),s=n(1267),l=n(1268),c=n(1269),u=n(1270),d=n(1271),h=n(1272),p=n(1273),f=n(1274),m=n(1275),g=n(1276),v=n(1277),y=n(1278),b=n(1279),w=n(1280),C=n(1281),_=n(1282),x=n(1283),S=n(1284),k=n(1285),P=n(1286),T=n(1287),E=n(1288),O=n(1289),M=n(1290),A=n(1291),D=n(1292),I=n(1293),L=n(1294),N=n(1295),j=n(1296),R=n(1297),z=n(1298),F=n(1299),B=n(1300),H=n(1301),V=n(1302),Y=n(1303),W=n(1304),U=n(1305),K=n(1306),G=n(1307),q=n(1308),$=n(1309),X=n(1310),J=n(1311),Z=n(1312),Q=n(1313),ee=n(1314),te=n(1315),ne=n(1316),re=n(1317),oe=n(1318),ie=n(1319),ae=n(1320),se=n(1321),le=n(1322),ce={id:"flow",name:r.default("resource.components.flow"),components:[i.default,l.default,a.default,_.default,S.default,M.default,w.default,h.default,x.default,o.default,u.default,c.default,p.default,f.default,s.default,m.default,d.default,k.default,g.default,v.default,y.default,A.default,te.default,b.default,P.default,T.default,O.default,E.default,D.default,L.default,I.default,N.default,ne.default,oe.default,re.default,le.default,se.default,ie.default,J.default,Z.default,Q.default,ee.default,Y.default,W.default,U.default,V.default,H.default,K.default,ae.default,G.default,B.default,z.default,R.default,C.default,F.default,j.default,q.default,$.default,X.default]};t.default=ce},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.ellipse"),type:"ellipse",thumb:{spriteIconClass:o.SpriteThumb.Ellipse.className,dragPosition:o.SpriteThumb.Ellipse.position},template:i.getShapeData(r.default("resource.flow.ellipse"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:50,y:0},handleIn:{x:-28,y:0},handleOut:{x:28,y:0}},{point:{x:100,y:30},handleIn:{x:0,y:-16},handleOut:{x:0,y:16}},{point:{x:50,y:60},handleIn:{x:28,y:0},handleOut:{x:-28,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:16},handleOut:{x:0,y:-16}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rectangle"),type:"rectangle",thumb:{spriteIconClass:o.SpriteThumb.Rectangle.className,dragPosition:o.SpriteThumb.Rectangle.position},template:i.getShapeData(r.default("resource.flow.rectangle"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.diamond"),type:"diamond",thumb:{spriteIconClass:o.SpriteThumb.Diamond.className,dragPosition:o.SpriteThumb.Diamond.position},template:i.getShapeData(r.default("resource.flow.diamond"),i.DefaultFlowShapeSize.size100_60,{data:[{point:{x:50,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:50,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.pentagon"),type:"pentagon",thumb:{spriteIconClass:o.SpriteThumb.pentagon.className,dragPosition:o.SpriteThumb.pentagon.position},template:i.getShapeData(r.default("resource.flow.pentagon"),{width:100,height:100},{data:[{point:{x:80,y:100},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:100},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:38},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:50,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:38},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.parallelogram"),type:"parallelogram",thumb:{spriteIconClass:o.SpriteThumb.parallelogram.className,dragPosition:o.SpriteThumb.parallelogram.position},template:i.getShapeData(r.default("resource.flow.parallelogram"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:20,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:80,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.triangle"),type:"triangle",thumb:{spriteIconClass:o.SpriteThumb.Triangle.className,dragPosition:o.SpriteThumb.Triangle.position},template:i.getShapeData(r.default("resource.flow.triangle"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:50,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.semicircle"),type:"semicircle",thumb:{spriteIconClass:o.SpriteThumb.Semicircle.className,dragPosition:o.SpriteThumb.Semicircle.position},template:i.getShapeData(r.default("resource.flow.semicircle"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:-36}},{point:{x:50,y:0},handleIn:{x:-28,y:0},handleOut:{x:28,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:-36},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.octagon"),type:"octagon",thumb:{spriteIconClass:o.SpriteThumb.Octagon.className,dragPosition:o.SpriteThumb.Octagon.position},template:i.getShapeData(r.default("resource.flow.octagon"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:15,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:15,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:45,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:45,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.keying"),type:"keying",thumb:{spriteIconClass:o.SpriteThumb.Keying.className,dragPosition:o.SpriteThumb.Keying.position},template:i.getShapeData(r.default("resource.flow.keying"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:7,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:-18},handleOut:{x:0,y:18}},{point:{x:7,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:93,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:30},handleIn:{x:0,y:18},handleOut:{x:0,y:-18}},{point:{x:93,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rightTriangle"),type:"rightTriangle",thumb:{spriteIconClass:o.SpriteThumb.RightTriangle.className,dragPosition:o.SpriteThumb.RightTriangle.position},template:i.getShapeData(r.default("resource.flow.rightTriangle"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.trapezoid"),type:"trapezoid",thumb:{spriteIconClass:o.SpriteThumb.trapezoid.className,dragPosition:o.SpriteThumb.trapezoid.position},template:i.getShapeData(r.default("resource.flow.trapezoid"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:20,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:80,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.hexagon"),type:"hexagon",thumb:{spriteIconClass:o.SpriteThumb.Hexagon.className,dragPosition:o.SpriteThumb.Hexagon.position},template:i.getShapeData(r.default("resource.flow.hexagon"),{width:60,lockedRatio:!1,height:53},{data:[{point:{x:15,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:26.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:15,y:53},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:45,y:53},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:26.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:45,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.drop"),type:"drop",thumb:{spriteIconClass:o.SpriteThumb.Drop.className,dragPosition:o.SpriteThumb.Drop.position},template:i.getShapeData(r.default("resource.flow.drop"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:21},handleIn:{x:0,y:-18.5},handleOut:{x:0,y:18.5}},{point:{x:30,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:21},handleIn:{x:0,y:18.5},handleOut:{x:0,y:-18.5}},{point:{x:30,y:0},handleIn:{x:13,y:0},handleOut:{x:-13,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.heart"),type:"heart",thumb:{spriteIconClass:o.SpriteThumb.Heart.className,dragPosition:o.SpriteThumb.Heart.position},template:i.getShapeData(r.default("resource.flow.heart"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:13.5,y:0},handleIn:{x:8,y:0},handleOut:{x:-8,y:0}},{point:{x:0,y:17.5},handleIn:{x:-1.5,y:-13},handleOut:{x:1.5,y:13}},{point:{x:30,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:17.5},handleIn:{x:-1.5,y:13},handleOut:{x:1.5,y:-13}},{point:{x:46.5,y:0},handleIn:{x:8,y:0},handleOut:{x:-8,y:0}},{point:{x:30,y:7.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.sector"),type:"sector",thumb:{spriteIconClass:o.SpriteThumb.Sector.className,dragPosition:o.SpriteThumb.Sector.position},template:i.getShapeData(r.default("resource.flow.sector"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:11.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:11.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:0},handleIn:{x:20,y:0},handleOut:{x:-20,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.cloud"),type:"cloud",thumb:{spriteIconClass:o.SpriteThumb.Cloud.className,dragPosition:o.SpriteThumb.Cloud.position},template:i.getShapeData(r.default("resource.flow.cloud"),i.DefaultFlowShapeSize.size100_60,{data:[{point:{x:30,y:2},handleIn:{x:12.5,y:-3.5},handleOut:{x:-12.5,y:3.5}},{point:{x:18,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:29},handleIn:{x:0,y:-13},handleOut:{x:0,y:13}},{point:{x:14.5,y:46},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:23,y:57},handleIn:{x:-10.5,y:-5},handleOut:{x:13.5,y:4}},{point:{x:43,y:54.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:60},handleIn:{x:-13,y:.5},handleOut:{x:13,y:-.5}},{point:{x:74,y:52},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:92,y:50},handleIn:{x:-6.5,y:7},handleOut:{x:6.5,y:-7}},{point:{x:92.5,y:36},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:98.5,y:20},handleIn:{x:4,y:10.5},handleOut:{x:-4,y:-10.5}},{point:{x:80.5,y:11.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:66.5,y:0},handleIn:{x:11,y:0},handleOut:{x:-11,y:0}},{point:{x:51.5,y:5.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.beveledRectangle"),type:"beveledRectangle",thumb:{spriteIconClass:o.SpriteThumb.Beveledrectangle.className,dragPosition:o.SpriteThumb.Beveledrectangle.position},template:i.getShapeData(r.default("resource.flow.beveledRectangle"),i.shapeDefaultSize100_60,{data:[{point:{x:5,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:95,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:55},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:95,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:5,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:55},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.punchedCard"),type:"punchedCard",thumb:{spriteIconClass:o.SpriteThumb.PunchedCard.className,dragPosition:o.SpriteThumb.PunchedCard.position},template:i.getShapeData(r.default("resource.flow.punchedCard"),{width:100,height:60},{data:[{point:{x:10,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.roundRectangle"),type:"roundRectangle",thumb:{spriteIconClass:o.SpriteThumb.RoundRectangle.className,dragPosition:o.SpriteThumb.RoundRectangle.position},template:i.getShapeData(r.default("resource.flow.roundRectangle"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:5},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:5},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:5},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0},radius:5}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.circle"),type:"circle",thumb:{spriteIconClass:o.SpriteThumb.Circle.className,dragPosition:o.SpriteThumb.Circle.position},template:i.getShapeData(r.default("resource.flow.circle"),{width:100,height:100},{data:[{point:{x:50,y:0},handleIn:{x:-28,y:0},handleOut:{x:28,y:0}},{point:{x:100,y:50},handleIn:{x:0,y:-28},handleOut:{x:0,y:28}},{point:{x:50,y:100},handleIn:{x:28,y:0},handleOut:{x:-28,y:0}},{point:{x:0,y:50},handleIn:{x:0,y:28},handleOut:{x:0,y:-28}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.start"),type:"start",thumb:{spriteIconClass:o.SpriteThumb.Start.className,dragPosition:o.SpriteThumb.Start.position},template:i.getShapeData(r.default("resource.flow.start"),{width:100,lockedRatio:!1,height:40},{data:[{point:{x:20,y:0},handleIn:{x:-12,y:0},handleOut:{x:0,y:0}},{point:{x:80,y:0},handleIn:{x:0,y:0},handleOut:{x:12,y:0}},{point:{x:100,y:20},handleIn:{x:0,y:-12},handleOut:{x:0,y:12}},{point:{x:80,y:40},handleIn:{x:12,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:40},handleIn:{x:0,y:0},handleOut:{x:-12,y:0}},{point:{x:0,y:20},handleIn:{x:0,y:12},handleOut:{x:0,y:-12}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.star"),type:"star",thumb:{spriteIconClass:o.SpriteThumb.Star.className,dragPosition:o.SpriteThumb.Star.position},template:i.getShapeData(r.default("resource.flow.star"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:17,y:37},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:23},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:22,y:23},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:38,y:23},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:23},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:43,y:37},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:49,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:46},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:11,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.squareSpeechBubble"),type:"squareSpeechBubble",thumb:{spriteIconClass:o.SpriteThumb.SquareSpeechBubble.className,dragPosition:o.SpriteThumb.SquareSpeechBubble.position},template:i.getShapeData(r.default("resource.flow.squareSpeechBubble"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:50},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:10,y:50},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:15,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:50},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:50},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.roundedSpeechBubble"),type:"roundedSpeechBubble",thumb:{spriteIconClass:o.SpriteThumb.RoundedSpeechBubble.className,dragPosition:o.SpriteThumb.RoundedSpeechBubble.position},template:i.getShapeData(r.default("resource.flow.roundedSpeechBubble"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:0,y:30},handleIn:{x:0,y:-22},handleOut:{x:0,y:9.5}},{point:{x:13,y:50},handleIn:{x:-7,y:-4.5},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:22,y:55},handleIn:{x:0,y:0},handleOut:{x:8.5,y:3.5}},{point:{x:50,y:60},handleIn:{x:-7.5,y:0},handleOut:{x:16.5,y:0}},{point:{x:100,y:30},handleIn:{x:0,y:22},handleOut:{x:0,y:-22}},{point:{x:50,y:0},handleIn:{x:22,y:0},handleOut:{x:-22,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rightArrowButton"),type:"rightArrowButton",thumb:{spriteIconClass:o.SpriteThumb.RightArrowButton.className,dragPosition:o.SpriteThumb.RightArrowButton.position},template:i.getShapeData(r.default("resource.flow.rightArrowButton"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.leftArrowButton"),type:"leftArrowButton",thumb:{spriteIconClass:o.SpriteThumb.LeftArrowButton.className,dragPosition:o.SpriteThumb.LeftArrowButton.position},template:i.getShapeData(r.default("resource.flow.leftArrowButton"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.ready"),type:"ready",thumb:{spriteIconClass:o.SpriteThumb.Ready.className,dragPosition:o.SpriteThumb.Ready.position},template:i.getShapeData(r.default("resource.flow.ready"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:23,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:23,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:77,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:77,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.sectorDiagram"),type:"sectorDiagram",thumb:{spriteIconClass:o.SpriteThumb.SectorDiagram.className,dragPosition:o.SpriteThumb.SectorDiagram.position},template:i.getShapeData(r.default("resource.flow.sectorDiagram"),{width:60,lockedRatio:!1,height:45},{data:[{point:{x:0,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:15,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:40},handleIn:{x:-9,y:0},handleOut:{x:9,y:-0}},{point:{x:45,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:0},handleIn:{x:20,y:0},handleOut:{x:-20,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.cross"),type:"cross",thumb:{spriteIconClass:o.SpriteThumb.Cross.className,dragPosition:o.SpriteThumb.Cross.position},template:i.getShapeData(r.default("resource.flow.cross"),i.DefaultFlowShapeSize.size60_60,{data:[{point:{x:20,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rightArrow"),type:"rightArrow",thumb:{spriteIconClass:o.SpriteThumb.RightArrow.className,dragPosition:o.SpriteThumb.RightArrow.position},template:i.getShapeData(r.default("resource.flow.rightArrow"),{width:60,lockedRatio:!1,height:45},{data:[{point:{x:0,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:22.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.leftArrow"),type:"leftArrow",thumb:{spriteIconClass:o.SpriteThumb.LeftArrow.className,dragPosition:o.SpriteThumb.LeftArrow.position},template:i.getShapeData(r.default("resource.flow.leftArrow"),{width:60,lockedRatio:!1,height:45},{data:[{point:{x:60,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:22.5},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:15},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.horizontalDoubleArrow"),type:"horizontalDoubleArrow",thumb:{spriteIconClass:o.SpriteThumb.HorizontalDoubleArrow.className,dragPosition:o.SpriteThumb.HorizontalDoubleArrow.position},template:i.getShapeData(r.default("resource.flow.horizontalDoubleArrow"),{width:60,lockedRatio:!1,height:40},{data:[{point:{x:40,y:12},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:28},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:28},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:12},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.limitCycle"),type:"limitCycle",thumb:{spriteIconClass:o.SpriteThumb.LimitCycle.className,dragPosition:o.SpriteThumb.LimitCycle.position},template:i.getShapeData(r.default("resource.flow.limitCycle"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:10,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:90,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.manualInput"),type:"manualInput",thumb:{spriteIconClass:o.SpriteThumb.ManualInput.className,dragPosition:o.SpriteThumb.ManualInput.position},template:i.getShapeData(r.default("resource.flow.manualInput"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.punchedTape"),type:"punchedTape",thumb:{spriteIconClass:o.SpriteThumb.PunchedTape.className,dragPosition:o.SpriteThumb.PunchedTape.position},template:i.getShapeData(r.default("resource.flow.punchedTape"),{width:100,height:60},{data:[{point:{x:100,y:50},handleIn:{x:0,y:0},handleOut:{x:-17,y:-13}},{point:{x:50,y:50},handleIn:{x:17,y:-13},handleOut:{x:-17,y:13}},{point:{x:0,y:50},handleIn:{x:17,y:13},handleOut:{x:0,y:0}},{point:{x:0,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:50,y:10},handleIn:{x:-17,y:13},handleOut:{x:17,y:-13}},{point:{x:100,y:10},handleIn:{x:-17,y:-13},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.offPageConnector"),type:"offPageConnector",thumb:{spriteIconClass:o.SpriteThumb.OffPageConnector.className,dragPosition:o.SpriteThumb.OffPageConnector.position},template:i.getShapeData(r.default("resource.flow.offPageConnector"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.display"),type:"display",thumb:{spriteIconClass:o.SpriteThumb.Display.className,dragPosition:o.SpriteThumb.Display.position},template:i.getShapeData(r.default("resource.flow.display"),i.DefaultFlowShapeSize.size100_60,{data:[{point:{x:86,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:30},handleIn:{x:0,y:-18},handleOut:{x:0,y:18}},{point:{x:86,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.externalData"),type:"externalData",thumb:{spriteIconClass:o.SpriteThumb.ExternalData.className,dragPosition:o.SpriteThumb.ExternalData.position},template:i.getShapeData(r.default("resource.flow.externalData"),{width:95,lockedRatio:!1,height:60},{data:[{point:{x:12,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:-18},handleOut:{x:0,y:18}},{point:{x:12,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:95,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:86,y:30},handleIn:{x:0,y:18},handleOut:{x:0,y:-18}},{point:{x:95,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.manualOperation"),type:"manualOperation",thumb:{spriteIconClass:o.SpriteThumb.ManualOperation.className,dragPosition:o.SpriteThumb.ManualOperation.position},template:i.getShapeData(r.default("resource.flow.manualOperation"),{width:100,lockedRatio:!1,height:60},{data:[{point:{x:80,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.upGrid"),type:"upGrid",thumb:{spriteIconClass:o.SpriteThumb.UpGrid.className,dragPosition:o.SpriteThumb.UpGrid.position},template:i.getShapeData(r.default("resource.flow.upGrid"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.leftGrid"),type:"leftGrid",thumb:{spriteIconClass:o.SpriteThumb.LeftGrid.className,dragPosition:o.SpriteThumb.LeftGrid.position},template:i.getShapeData(r.default("resource.flow.leftGrid"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.classicTab"),type:"classicTab",thumb:{spriteIconClass:o.SpriteThumb.ClassicTab.className,dragPosition:o.SpriteThumb.ClassicTab.position},template:i.getShapeData(r.default("resource.flow.classicTab"),{width:60,height:60},{data:[{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:36,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.queueData"),type:"queueData",thumb:{spriteIconClass:o.SpriteThumb.QueueData.className,dragPosition:o.SpriteThumb.QueueData.position},template:i.getShapeData(r.default("resource.flow.queueData"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:60},handleIn:{x:16,y:0},handleOut:{x:-16,y:0}},{point:{x:0,y:30},handleIn:{x:0,y:16},handleOut:{x:0,y:-16}},{point:{x:30,y:0},handleIn:{x:-16,y:0},handleOut:{x:16,y:-0}},{point:{x:60,y:30},handleIn:{x:0,y:-16},handleOut:{x:0,y:16}},{point:{x:45,y:55},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:55},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.delay"),type:"delay",thumb:{spriteIconClass:o.SpriteThumb.Delay.className,dragPosition:o.SpriteThumb.Delay.position},template:i.getShapeData(r.default("resource.flow.delay"),i.DefaultFlowShapeSize.size100_60,{data:[{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:30},handleIn:{x:0,y:-30},handleOut:{x:0,y:30}},{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(10),o=n(13);t.default={name:"APQC",type:"APQC",thumb:{spriteIconClass:r.SpriteThumb.APQC.className,dragPostion:r.SpriteThumb.APQC.position},template:o.getShapeData("APQC",o.shapeDefaultSize100_60,{data:[{point:{x:50,y:0},handleIn:{x:30,y:0},handleOut:{x:-30,y:0}},{point:{x:0,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.document"),type:"document",thumb:{spriteIconClass:o.SpriteThumb.Document.className,dragPosition:o.SpriteThumb.Document.position},template:i.getShapeData(r.default("resource.flow.document"),{width:100,height:57},{data:[{point:{x:100,y:50},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:50,y:50},handleIn:{x:26,y:-15},handleOut:{x:-26,y:15}},{point:{x:0,y:50},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13),a=n(23);t.default={name:r.default("resource.flow.collate"),type:"collate",thumb:{spriteIconClass:o.SpriteThumb.Collate.className,dragPosition:o.SpriteThumb.Collate.position},template:i.getShapeData(r.default("resource.flow.collate"),i.DefaultFlowShapeSize.size100_60,{data:[{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:100,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0},!1,{stroke:{position:a.StrokePosition.center}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.leftBracket"),type:"leftBracket",thumb:{spriteIconClass:o.SpriteThumb.LeftBracket.className,dragPosition:o.SpriteThumb.LeftBracket.position},template:i.getShapeData(r.default("resource.flow.leftBracket"),{width:10,lockedRatio:!1,height:60},{data:[{point:{x:10,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:10,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1},!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rightBracket"),type:"rightBracket",thumb:{spriteIconClass:o.SpriteThumb.RightBracket.className,dragPosition:o.SpriteThumb.RightBracket.position},template:i.getShapeData(r.default("resource.flow.rightBracket"),{width:10,lockedRatio:!1,height:60},{data:[{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:10,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:10,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1},!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.leftBrace"),type:"leftBrace",thumb:{spriteIconClass:o.SpriteThumb.LeftBrace.className,dragPosition:o.SpriteThumb.LeftBrace.position},template:i.getShapeData(r.default("resource.flow.leftBrace"),{width:10,lockedRatio:!1,height:60},{data:[{point:{x:10,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:6,y:55},handleIn:{x:0,y:5},handleOut:{x:0,y:-5}},{point:{x:6,y:35},handleIn:{x:0,y:5},handleOut:{x:0,y:-5}},{point:{x:0,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:6,y:25},handleIn:{x:0,y:5},handleOut:{x:0,y:-5}},{point:{x:6,y:5},handleIn:{x:0,y:5},handleOut:{x:0,y:-5}},{point:{x:10,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1},!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rightBrace"),type:"rightBrace",thumb:{spriteIconClass:o.SpriteThumb.RightBrace.className,dragPosition:o.SpriteThumb.RightBrace.position},template:i.getShapeData(r.default("resource.flow.rightBrace"),{width:10,lockedRatio:!1,height:60},{data:[{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:4,y:55},handleIn:{x:0,y:5},handleOut:{x:0,y:-5}},{point:{x:4,y:35},handleIn:{x:0,y:5},handleOut:{x:-0,y:-5}},{point:{x:10,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:4,y:25},handleIn:{x:0,y:5},handleOut:{x:0,y:-5}},{point:{x:4,y:5},handleIn:{x:0,y:5},handleOut:{x:0,y:-5}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!1},!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.pieChart"),type:"pieChart",thumb:{spriteIconClass:o.SpriteThumb.PieChart.className,dragPosition:o.SpriteThumb.PieChart.position},template:i.getShapeData(r.default("resource.flow.pieChart"),{width:60,height:60},{data:[{point:{x:30,y:0},handleIn:{x:17.861111111111143,y:0},handleOut:{x:-5.63637824774537,y:0}},{point:{x:15.18942044768238,y:3.108665348368105},handleIn:{x:4.346757530964339,y:-2.572783330740093},handleOut:{x:3.1338359527485977,y:5.650498503815581}},{point:{x:30,y:30},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:2.816089257290855,y:16.682623331072413},handleIn:{x:2.488542256158439,y:1.1513011707071423},handleOut:{x:-1.8892328270171106,y:3.9328165022656645}},{point:{x:0,y:30},handleIn:{x:0,y:-4.137916003080873},handleOut:{x:0,y:14.431216931216788}},{point:{x:30,y:60},handleIn:{x:-18.77730946450555,y:0},handleOut:{x:18.77730946450555,y:0}},{point:{x:60,y:30},handleIn:{x:0,y:13.835978835978773},handleOut:{x:0,y:-13.835978835978887}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.upArrow"),type:"upArrow",thumb:{spriteIconClass:o.SpriteThumb.UpArrow.className,dragPosition:o.SpriteThumb.UpArrow.position},template:i.getShapeData(r.default("resource.flow.upArrow"),{width:45,lockedRatio:!1,height:60},{data:[{point:{x:15,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:15,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:45,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:22.5,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.verticalDoubleArrow"),type:"verticalDoubleArrow",thumb:{spriteIconClass:o.SpriteThumb.VerticalDoubleArrow.className,dragPosition:o.SpriteThumb.VerticalDoubleArrow.position},template:i.getShapeData(r.default("resource.flow.verticalDoubleArrow"),{width:40,lockedRatio:!1,height:60},{data:[{point:{x:12,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:12,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:28,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:28,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:40,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:20,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.downArrow"),type:"downArrow",thumb:{spriteIconClass:o.SpriteThumb.DownArrow.className,dragPosition:o.SpriteThumb.DownArrow.position},template:i.getShapeData(r.default("resource.flow.downArrow"),{width:45,height:60},{data:[{point:{x:15,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:15,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:30,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:45,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:22.5,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:40},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rightAngle"),type:"rightAngle",thumb:{spriteIconClass:o.SpriteThumb.RightAngle.className,dragPosition:o.SpriteThumb.RightAngle.position},template:i.getShapeData(r.default("resource.flow.rightAngle"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:0},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:50,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:10,y:10},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:10,y:50},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.dataBase"),type:"dataBase",thumb:{spriteIconClass:o.SpriteThumb.Database.className,dragPosition:o.SpriteThumb.Database.position},template:i.getShapeData(r.default("resource.flow.dataBase"),i.DefaultFlowShapeSize.size60_80,{data:[{point:{x:0,y:12},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:68},handleIn:{x:0,y:0},handleOut:{x:0,y:7.2}},{point:{x:30,y:80},handleIn:{x:-18,y:0},handleOut:{x:18,y:0}},{point:{x:60,y:68},handleIn:{x:0,y:7.2},handleOut:{x:0,y:0}},{point:{x:60,y:12},handleIn:{x:0,y:0},handleOut:{x:0,y:-7.2}},{point:{x:30,y:0},handleIn:{x:18,y:0},handleOut:{x:-18,y:0}},{point:{x:0,y:12},handleIn:{x:0,y:-7.2},handleOut:{x:0,y:7.2}},{point:{x:30,y:24},handleIn:{x:-18,y:0},handleOut:{x:18,y:0}},{point:{x:60,y:12},handleIn:{x:0,y:7.2},handleOut:{x:0,y:0}}],closed:!1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.rightTurn"),type:"rightTurn",thumb:{spriteIconClass:o.SpriteThumb.RightTurn.className,dragPosition:o.SpriteThumb.RightTurn.position},template:i.getShapeData(r.default("resource.flow.rightTurn"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:15,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:0},handleIn:{x:-26,y:0},handleOut:{x:26,y:0}},{point:{x:50,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:50,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:42.5,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:35,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:35,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:13},handleIn:{x:10,y:0},handleOut:{x:-10,y:0}},{point:{x:15,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(13);t.default={name:r.default("resource.flow.leftTurn"),type:"leftTurn",thumb:{spriteIconClass:o.SpriteThumb.LeftTurn.className,dragPosition:o.SpriteThumb.LeftTurn.position},template:i.getShapeData(r.default("resource.flow.leftTurn"),{width:60,lockedRatio:!1,height:60},{data:[{point:{x:45,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:60,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:35,y:0},handleIn:{x:26,y:0},handleOut:{x:-26,y:0}},{point:{x:10,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:10,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:0,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:17.5,y:60},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:35,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:45},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:25,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}},{point:{x:35,y:13},handleIn:{x:-10,y:0},handleOut:{x:10,y:0}},{point:{x:45,y:20},handleIn:{x:0,y:0},handleOut:{x:0,y:0}}],closed:!0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1324),o=n(1325),i=n(1326),a=n(1327),s=n(1328),l=n(4);t.default={id:"comment",name:""+l.default("resource.components.comment"),components:[r.default,o.default,i.default,a.default,s.default]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10);t.default={thumb:{spriteIconClass:o.SpriteThumb.Arrow.className,dragPosition:o.SpriteThumb.Arrow.position},type:"arrow",lib:"extension",shortCut:"W",name:""+r.default("resource.components.arrow"),template:"{\n type: @@C.Line,\n size: {width: 150, height: 0},\n properties: {\n line: {\n startArrow: true,\n endArrow: true,\n startPointType: @@LinePointType.solidDot,\n endPointType: @@LinePointType.solidArrow,\n },\n stroke: {\n thickness: 1,\n color: @@SystemColors.DeepBlueColor,\n cap: @@StrokeLineCap.Butt,\n join: @@StrokeLineJoin.Miter,\n disabled: false,\n },\n textFormat: {\n disabled: false,\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n textAlign: @@TextAlign.center,\n color: @@defaultTextColor,\n fontStyle: {\n bold: false,\n italic: false,\n underline: false,\n strike: false,\n },\n verticalAlign: @@TextVerticalAlign.middle,\n letterSpace: 0,\n wrap: true,\n isMulti: true,\n },\n shadow: {\n disabled: true,\n x: 0,\n y: 3,\n blur: 6,\n color: { r: 0, g: 0, b: 0, a: 1},\n },\n },\n value: {\n startPoint:{\n x: 0, y: 0,\n },\n endPoint:{\n x: 150,\n y: 0\n }\n }\n }"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(47),i=n(10);t.default={type:"callOut",name:""+r.default("resource.components.callOut"),thumb:{spriteIconClass:i.SpriteThumb.CallOut.className,dragPosition:i.SpriteThumb.CallOut.position},isTextComp:!0,predefinedStates:["hover","pressed","disabled"],editor:{onValidateAllowEditor:()=>"value"},initialization:(e,t,n,r)=>{const{size:{width:i,height:a}}=t;if(r){const e={x:r.width/i,y:r.height/a},n=t.value;t.value=o.scalePath(n,e)}},shortCut:"C",template:"{\n type: @@C.Path,\n size: {\n width: 30,\n height: 30,\n lockedRatio: true,\n },\n layout: {\n vertical: @@VerticalAlign.Auto,\n horizontal: @@HorizontalAlign.Auto,\n fixedWidth: false,\n fixedHeight: false,\n auto: true,\n responsive: true\n },\n properties: {\n fill: {\n disabled: false,\n type: @@FillType.solid,\n color: @@SystemColors.DeepBlueColor,\n },\n stroke: {\n thickness: 2,\n color: { r: 0, g: 157, b: 255, a: 1 },\n disabled: true\n },\n textFormat: {\n disabled: false,\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n textAlign: @@TextAlign.center,\n color: { r: 255, g: 255, b: 255, a: 1 },\n fontStyle: { bold: true, italic: false, underline: false, strike: false },\n letterSpace: 0,\n wrap: true,\n isMulti: true,\n },\n shadow: {\n disabled: false,\n x: 0,\n y: 2,\n blur: 4,\n color: {r: 0, g: 0, b: 0, a: 0.3}\n },\n },\n text: '1',\n value: {\n data: [\n { \n point: { x: 15, y: 0 },\n handleIn: { x: -8.399999999999965, y: 0 },\n handleOut: { x: 8, y: 0 }\n },\n {\n point: { x: 30, y: 15 },\n handleIn: { x: 0, y: -8.400000000000027 },\n handleOut: { x: 0, y: 8 }\n },\n {\n point: { x: 15, y: 30 },\n handleIn: { x: 8, y: 0 },\n handleOut: { x: -8.399999999999965, y: 0 }\n },\n {\n point: { x: 0, y: 15 },\n handleIn: { x: 0, y: 8 },\n handleOut: { x: 0, y: -8.400000000000027 }\n }\n ],\n closed: true\n }\n }"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(47),i=n(10);t.default={type:"stickNote",name:""+r.default("resource.components.stickNote"),thumb:{spriteIconClass:i.SpriteThumb.StickNote.className,dragPosition:i.SpriteThumb.StickNote.position},predefinedStates:["hover","pressed","disabled"],isTextComp:!0,shortCut:"S",editor:{onValidateAllowEditor:()=>"value"},initialization:(e,t,n,r)=>{const{size:{width:i,height:a}}=t;if(r){const e={x:r.width/i,y:r.height/a},n=t.value;t.value=o.scalePath(n,e)}},template:`{\n type: @@C.Path,\n size: {\n width: 150,\n height: 180\n },\n layout: {\n vertical: @@VerticalAlign.Auto,\n horizontal: @@HorizontalAlign.Auto,\n fixedWidth: false,\n fixedHeight: false,\n auto: true,\n responsive: true\n },\n properties: {\n fill: {\n disabled: false,\n type: @@FillType.solid,\n color: { r: 255, g: 223, b: 37, a: 1}\n },\n stroke:{\n hidden: true,\n thickness: 0,\n },\n textFormat: {\n disabled: false,\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n textAlign: @@TextAlign.left,\n color: { r: 0, g: 0, b: 0, a: 1 },\n fontStyle: { bold: false, italic: false, underline: false, strike: false },\n wrap: true,\n isMulti: true,\n verticalAlign: @@TextVerticalAlign.top,\n },\n padding:{\n hidden: false,\n disabled: false,\n left: 10,\n right: 10,\n top: 10,\n bottom: 10,\n },\n shadow: {\n disabled: false,\n x: 0,\n y: 2,\n blur: 4,\n color: { r: 0, g: 0, b: 0, a: 0.3 }\n },\n overflow: {\n prop: 'boolean',\n hidden: true,\n value: false,\n }\n },\n value: {\n data: [\n {\n point: {\n x: 0,\n y: 0\n },\n handleIn: {\n x: 0,\n y: 0\n },\n handleOut: {\n x: 0,\n y: 0\n }\n },\n {\n point: {\n x: 150,\n y: 0\n },\n handleIn: {\n x: 0,\n y: 0\n },\n handleOut: {\n x: 0,\n y: 0\n }\n },\n {\n point: {\n x: 150,\n y: 180\n },\n handleIn: {\n x: 0,\n y: 0\n },\n handleOut: {\n x: 0,\n y: 0\n }\n },\n {\n point: {\n x: 0,\n y: 180\n },\n handleIn: {\n x: 0,\n y: 0\n },\n handleOut: {\n x: 0,\n y: 0\n }\n }\n ],\n closed: true\n },\n text: '${r.default("resource.components.stickNote")}',\n }`}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6),o=n(4),i=n(47),a=n(12),s=n(56),l=n(10),c={type:"drops",name:""+o.default("resource.components.drop"),thumb:{spriteIconClass:l.SpriteThumb.Drops.className,dragPosition:l.SpriteThumb.Drops.position},shortCut:"D",predefinedStates:["hover","pressed","disabled"],isTextComp:!0,initialization:(e,t,n,o)=>{var a;const s=t.size;if(o){const e={x:o.width/s.width,y:o.height/s.height},n=t=>{const n=[];if(t.type===r.CPath){const e=t.value;n.push(e)}else t.type===r.CCompoundPath&&n.push(...t.value);const o=n.map(t=>i.scalePath(t,e));o.length&&(t.type===r.CPath?t.value=o[0]:t.type===r.CCompoundPath&&(t.value=[...o]))};n(t),null===(a=t.components)||void 0===a||a.forEach(t=>{n(t),t.size.width*=e.x,t.size.height*=e.y,t.position.x*=e.x,t.position.y*=e.y}),t.properties.padding&&(t.properties.padding.bottom=Math.round(o.height/3))}},value:{type:s.default.RichText,getValue:e=>e.text,setValue:(e,t)=>{const{text:n}=e,r=e.getCurrentPropertiesPath("/text");return{do:{[e.id]:[a.Ops.replace(r,t)]},undo:{[e.id]:[a.Ops.replace(r,n)]}}}},editor:{onValidateAllowEditor:()=>"value"},property:{disabledFlip:!0},template:"{\n type: @@C.Path,\n connectors: [],\n layout: {\n responsive: true,\n auto: true,\n fixedWidth: false,\n fixedHeight: false,\n horizontal: 'auto',\n vertical: 'auto'\n },\n properties: {\n fill: {\n disabled: false,\n type: @@FillType.solid,\n color: @@SystemColors.DeepBlueColor,\n },\n stroke: {\n thickness: 1,\n color: { r: 119, g: 119, b: 119, a: 1 },\n disabled: true\n },\n textFormat:{\n disabled: false,\n fontFamily: 'Microsoft YaHei',\n fontSize: 14,\n textAlign: @@TextAlign.center,\n color: {r: 255, g: 255, b: 255, a: 1},\n fontStyle: {\n bold: true,\n italic: false,\n underline: false,\n strike: false,\n },\n letterSpace: 0,\n wrap: true,\n isMulti: true, \n },\n shadow: {\n disabled: false,\n blur: 4,\n x: 0,\n y: 2,\n color: {r: 0, g: 0, b: 0, a: 0.3}\n },\n padding:{\n hidden: true,\n top: 0,\n bottom: 13,\n left: 0,\n right: 0\n },\n },\n size: {\n width: 30,\n height: 40\n },\n value: {\n data: [\n {\n point: { x: 15, y: 0},\n handleIn: { x: -5, y: 0},\n handleOut: { x: 4, y: 0}\n }, \n {\n point: { x: 30, y: 15 },\n handleIn: { x: 0, y: -12 },\n handleOut: { x: 0, y: 12 }\n }, {\n point: { x: 15, y: 40 },\n handleIn: { x: 0, y: 0 },\n handleOut: { x: 0, y: 0 }\n }, {\n point: { x: 0, y: 15 },\n handleIn: { x: 0, y: 12 },\n handleOut: { x: 0, y: -12 }\n }\n ],\n closed: true\n },\n text: '',\n }"};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4),o=n(10),i=n(6),a=n(381);t.default={hidden:!window.debug,type:i.CSnapshot,name:r.default("resource.components.snapshot"),thumb:{spriteIconClass:o.SpriteThumb.Snapshot.className,dragPosition:o.SpriteThumb.Snapshot.position},editor:{onValueUpdate:a.updateSnapshotValue}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(178);t.default=(()=>{let e=document.getElementById("paperCanvas");return e||(e=document.createElement("canvas"),e.id="paperCanvas",e.style.position="fixed",e.style.top="-100000px",e.style.left="-100000px",e.style.width="100%",e.style.height="100%",document.body.appendChild(e)),window.paper||(window.paper=r,window.paper.setup(e)),window.paper})()},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"Node",(function(){return re})),n.d(t,"Parser",(function(){return B})),n.d(t,"Position",(function(){return L})),n.d(t,"SourceLocation",(function(){return N})),n.d(t,"TokContext",(function(){return ae})),n.d(t,"Token",(function(){return Oe})),n.d(t,"TokenType",(function(){return g})),n.d(t,"defaultOptions",(function(){return R})),n.d(t,"getLineInfo",(function(){return j})),n.d(t,"isIdentifierChar",(function(){return m})),n.d(t,"isIdentifierStart",(function(){return f})),n.d(t,"isNewLine",(function(){return k})),n.d(t,"keywordTypes",(function(){return w})),n.d(t,"lineBreak",(function(){return x})),n.d(t,"lineBreakG",(function(){return S})),n.d(t,"nonASCIIwhitespace",(function(){return P})),n.d(t,"parse",(function(){return Ne})),n.d(t,"parseExpressionAt",(function(){return je})),n.d(t,"tokContexts",(function(){return se})),n.d(t,"tokTypes",(function(){return _})),n.d(t,"tokenizer",(function(){return Re})),n.d(t,"version",(function(){return Le}));var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},o="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",i={5:o,"5module":o+" export import",6:o+" const class extends export import super"},a=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",c=new RegExp("["+s+"]"),u=new RegExp("["+s+l+"]");s=l=null;var d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function p(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function f(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,d)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&(p(e,d)||p(e,h)))))}var g=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function v(e,t){return new g(e,{beforeExpr:!0,binop:t})}var y={beforeExpr:!0},b={startsExpr:!0},w={};function C(e,t){return void 0===t&&(t={}),t.keyword=e,w[e]=new g(e,t)}var _={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",y),semi:new g(";",y),colon:new g(":",y),dot:new g("."),question:new g("?",y),questionDot:new g("?."),arrow:new g("=>",y),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",y),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),relational:v("</>/<=/>=",7),bitShift:v("<</>>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:v("%",10),star:v("*",10),slash:v("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:v("??",1),_break:C("break"),_case:C("case",y),_catch:C("catch"),_continue:C("continue"),_debugger:C("debugger"),_default:C("default",y),_do:C("do",{isLoop:!0,beforeExpr:!0}),_else:C("else",y),_finally:C("finally"),_for:C("for",{isLoop:!0}),_function:C("function",b),_if:C("if"),_return:C("return",y),_switch:C("switch"),_throw:C("throw",y),_try:C("try"),_var:C("var"),_const:C("const"),_while:C("while",{isLoop:!0}),_with:C("with"),_new:C("new",{beforeExpr:!0,startsExpr:!0}),_this:C("this",b),_super:C("super",b),_class:C("class",b),_extends:C("extends",y),_export:C("export"),_import:C("import",b),_null:C("null",b),_true:C("true",b),_false:C("false",b),_in:C("in",{beforeExpr:!0,binop:7}),_instanceof:C("instanceof",{beforeExpr:!0,binop:7}),_typeof:C("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:C("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:C("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,"g");function k(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var P=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,T=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,E=Object.prototype,O=E.hasOwnProperty,M=E.toString;function A(e,t){return O.call(e,t)}var D=Array.isArray||function(e){return"[object Array]"===M.call(e)};function I(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var L=function(e,t){this.line=e,this.column=t};L.prototype.offset=function(e){return new L(this.line,this.column+e)};var N=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function j(e,t){for(var n=1,r=0;;){S.lastIndex=r;var o=S.exec(e);if(!(o&&o.index<t))return new L(n,t-r);++n,r=o.index+o[0].length}}var R={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function z(e){var t={};for(var n in R)t[n]=e&&A(e,n)?e[n]:R[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),D(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return D(t.onComment)&&(t.onComment=function(e,t){return function(n,r,o,i,a,s){var l={type:n?"Block":"Line",value:r,start:o,end:i};e.locations&&(l.loc=new N(this,a,s)),e.ranges&&(l.range=[o,i]),t.push(l)}}(t,t.onComment)),t}function F(e,t){return 2|(e?4:0)|(t?8:0)}var B=function(e,t,n){this.options=e=z(e),this.sourceFile=e.sourceFile,this.keywords=I(i[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var o="";if(!0!==e.allowReserved){for(var a=e.ecmaVersion;!(o=r[a]);a--);"module"===e.sourceType&&(o+=" await")}this.reservedWords=I(o);var s=(o?o+" ":"")+r.strict;this.reservedWordsStrict=I(s),this.reservedWordsStrictBind=I(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},H={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};B.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},H.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},H.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},H.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},H.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},H.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},H.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},B.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},B.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},B.parse=function(e,t){return new this(t,e).parse()},B.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},B.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(B.prototype,H);var V=B.prototype,Y=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function W(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}V.strictDirective=function(e){for(;;){T.lastIndex=e,e+=T.exec(this.input)[0].length;var t=Y.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){T.lastIndex=e+t[0].length;var n=T.exec(this.input),r=n.index+n[0].length,o=this.input.charAt(r);return";"===o||"}"===o||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||"!"===o&&"="===this.input.charAt(r+1))}e+=t[0].length,T.lastIndex=e,e+=T.exec(this.input)[0].length,";"===this.input[e]&&e++}},V.eat=function(e){return this.type===e&&(this.next(),!0)},V.isContextual=function(e){return this.type===_.name&&this.value===e&&!this.containsEsc},V.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},V.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},V.canInsertSemicolon=function(){return this.type===_.eof||this.type===_.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},V.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},V.semicolon=function(){this.eat(_.semi)||this.insertSemicolon()||this.unexpected()},V.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},V.expect=function(e){this.eat(e)||this.unexpected()},V.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},V.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},V.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},V.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},V.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var U=B.prototype;U.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==_.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,o=Object.keys(this.undefinedExports);r<o.length;r+=1){var i=o[r];this.raiseRecoverable(this.undefinedExports[i].start,"Export '"+i+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var K={kind:"loop"},G={kind:"switch"};U.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;T.lastIndex=this.pos;var t=T.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(f(r,!0)){for(var o=n+1;m(this.input.charCodeAt(o),!0);)++o;var i=this.input.slice(n,o);if(!a.test(i))return!0}return!1},U.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;T.lastIndex=this.pos;var e=T.exec(this.input),t=this.pos+e[0].length;return!(x.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&m(this.input.charAt(t+8)))},U.parseStatement=function(e,t,n){var r,o=this.type,i=this.startNode();switch(this.isLet(e)&&(o=_._var,r="let"),o){case _._break:case _._continue:return this.parseBreakContinueStatement(i,o.keyword);case _._debugger:return this.parseDebuggerStatement(i);case _._do:return this.parseDoStatement(i);case _._for:return this.parseForStatement(i);case _._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case _._class:return e&&this.unexpected(),this.parseClass(i,!0);case _._if:return this.parseIfStatement(i);case _._return:return this.parseReturnStatement(i);case _._switch:return this.parseSwitchStatement(i);case _._throw:return this.parseThrowStatement(i);case _._try:return this.parseTryStatement(i);case _._const:case _._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(i,r);case _._while:return this.parseWhileStatement(i);case _._with:return this.parseWithStatement(i);case _.braceL:return this.parseBlock(!0,i);case _.semi:return this.parseEmptyStatement(i);case _._export:case _._import:if(this.options.ecmaVersion>10&&o===_._import){T.lastIndex=this.pos;var a=T.exec(this.input),s=this.pos+a[0].length,l=this.input.charCodeAt(s);if(40===l||46===l)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),o===_._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var c=this.value,u=this.parseExpression();return o===_.name&&"Identifier"===u.type&&this.eat(_.colon)?this.parseLabeledStatement(i,c,u,e):this.parseExpressionStatement(i,u)}},U.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(_.semi)||this.insertSemicolon()?e.label=null:this.type!==_.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var o=this.labels[r];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(n||"loop"===o.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},U.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},U.parseDoStatement=function(e){return this.next(),this.labels.push(K),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(_._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(_.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},U.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(_.parenL),this.type===_.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===_._var||this.type===_._const||n){var r=this.startNode(),o=n?"let":this.value;return this.next(),this.parseVar(r,!0,o),this.finishNode(r,"VariableDeclaration"),(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===_._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var i=new W,a=this.parseExpression(!0,i);return this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===_._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,i),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(i,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))},U.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,$|(n?0:X),!1,t)},U.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(_._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},U.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},U.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(_.braceL),this.labels.push(G),this.enterScope(0);for(var n=!1;this.type!==_.braceR;)if(this.type===_._case||this.type===_._default){var r=this.type===_._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(_.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},U.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var q=[];U.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===_._catch){var t=this.startNode();if(this.next(),this.eat(_.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLVal(t.param,n?4:2),this.expect(_.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(_._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},U.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},U.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(K),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},U.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},U.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},U.parseLabeledStatement=function(e,t,n,r){for(var o=0,i=this.labels;o<i.length;o+=1){i[o].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===_._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var l=this.labels[s];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},U.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},U.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(_.braceL),e&&this.enterScope(0);this.type!==_.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},U.parseFor=function(e,t){return e.init=t,this.expect(_.semi),e.test=this.type===_.semi?null:this.parseExpression(),this.expect(_.semi),e.update=this.type===_.parenR?null:this.parseExpression(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},U.parseForIn=function(e,t){var n=this.type===_._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(_.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},U.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(_.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===_._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(_.comma))break}return e},U.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var $=1,X=2;U.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===_.star&&t&X&&this.unexpected(),e.generator=this.eat(_.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&$&&(e.id=4&t&&this.type!==_.name?null:this.parseIdent(),!e.id||t&X||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(F(e.async,e.generator)),t&$||(e.id=this.type===_.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,t&$?"FunctionDeclaration":"FunctionExpression")},U.parseFunctionParams=function(e){this.expect(_.parenL),e.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},U.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),o=!1;for(r.body=[],this.expect(_.braceL);this.type!==_.braceR;){var i=this.parseClassElement(null!==e.superClass);i&&(r.body.push(i),"MethodDefinition"===i.type&&"constructor"===i.kind&&(o&&this.raise(i.start,"Duplicate constructor in the same class"),o=!0))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},U.parseClassElement=function(e){var t=this;if(this.eat(_.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var o=t.start,i=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===_.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(o,i),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var o=this.eat(_.star),i=!1;o||(this.options.ecmaVersion>=8&&r("async",!0)?(i=!0,o=this.options.ecmaVersion>=9&&this.eat(_.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key,s=!1;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),o&&this.raise(a.start,"Constructor can't be a generator"),i&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor",s=e),this.parseClassMethod(n,o,i,s),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},U.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,"MethodDefinition")},U.parseClassId=function(e,t){this.type===_.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},U.parseClassSuper=function(e){e.superClass=this.eat(_._extends)?this.parseExprSubscripts():null},U.parseExport=function(e,t){if(this.next(),this.eat(_.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(_._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===_._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|$,!1,n)}else if(this.type===_._class){var o=this.startNode();e.declaration=this.parseClass(o,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==_.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,a=e.specifiers;i<a.length;i+=1){var s=a[i];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},U.checkExport=function(e,t,n){e&&(A(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},U.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var r=0,o=t.properties;r<o.length;r+=1){var i=o[r];this.checkPatternExport(e,i)}else if("ArrayPattern"===n)for(var a=0,s=t.elements;a<s.length;a+=1){var l=s[a];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},U.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var o=r[n];this.checkPatternExport(e,o.id)}},U.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},U.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(_.braceL);!this.eat(_.braceR);){if(n)n=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},U.parseImport=function(e){return this.next(),this.type===_.string?(e.specifiers=q,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===_.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},U.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===_.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(_.comma))return e}if(this.type===_.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(_.braceL);!this.eat(_.braceR);){if(t)t=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var o=this.startNode();o.imported=this.parseIdent(!0),this.eatContextual("as")?o.local=this.parseIdent():(this.checkUnreserved(o.imported),o.local=o.imported),this.checkLVal(o.local,2),e.push(this.finishNode(o,"ImportSpecifier"))}return e},U.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},U.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var J=B.prototype;J.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,o=e.properties;r<o.length;r+=1){var i=o[r];this.toAssignable(i,t),"RestElement"!==i.type||"ArrayPattern"!==i.argument.type&&"ObjectPattern"!==i.argument.type||this.raise(i.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},J.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var o=e[r];o&&this.toAssignable(o,t)}if(n){var i=e[n-1];6===this.options.ecmaVersion&&t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return e},J.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},J.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==_.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},J.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case _.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(_.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case _.braceL:return this.parseObj(!0)}return this.parseIdent()},J.parseBindingList=function(e,t,n){for(var r=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(_.comma),t&&this.type===_.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===_.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),r.push(i),this.type===_.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),r.push(a)}return r},J.parseBindingListItem=function(e){return e},J.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(_.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},J.checkLVal=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Identifier":2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(A(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),0!==t&&5!==t&&this.declareName(e.name,t,e.start);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,o=e.properties;r<o.length;r+=1){var i=o[r];this.checkLVal(i,t,n)}break;case"Property":this.checkLVal(e.value,t,n);break;case"ArrayPattern":for(var a=0,s=e.elements;a<s.length;a+=1){var l=s[a];l&&this.checkLVal(l,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var Z=B.prototype;Z.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,o=e.key;switch(o.type){case"Identifier":r=o.name;break;case"Literal":r=String(o.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===i&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=o.start):this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[r="$"+r];if(a)("init"===i?this.strict&&a.init||a.get||a.set:a.init||a[i])&&this.raiseRecoverable(o.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[i]=!0}}},Z.parseExpression=function(e,t){var n=this.start,r=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===_.comma){var i=this.startNodeAt(n,r);for(i.expressions=[o];this.eat(_.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(i,"SequenceExpression")}return o},Z.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,o=-1,i=-1;t?(o=t.parenthesizedAssign,i=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new W,r=!0);var a=this.start,s=this.startLoc;this.type!==_.parenL&&this.type!==_.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,a,s)),this.type.isAssign){var c=this.startNodeAt(a,s);return c.operator=this.value,c.left=this.type===_.eq?this.toAssignable(l,!1,t):l,r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.left.start&&(t.shorthandAssign=-1),this.checkLVal(l),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),o>-1&&(t.parenthesizedAssign=o),i>-1&&(t.trailingComma=i),l},Z.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(_.question)){var i=this.startNodeAt(n,r);return i.test=o,i.consequent=this.parseMaybeAssign(),this.expect(_.colon),i.alternate=this.parseMaybeAssign(e),this.finishNode(i,"ConditionalExpression")}return o},Z.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,o=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||o.start===n&&"ArrowFunctionExpression"===o.type?o:this.parseExprOp(o,n,r,-1,e)},Z.parseExprOp=function(e,t,n,r,o){var i=this.type.binop;if(null!=i&&(!o||this.type!==_._in)&&i>r){var a=this.type===_.logicalOR||this.type===_.logicalAND,s=this.type===_.coalesce;s&&(i=_.logicalAND.binop);var l=this.value;this.next();var c=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1),c,u,i,o),h=this.buildBinary(t,n,e,d,l,a||s);return(a&&this.type===_.coalesce||s&&(this.type===_.logicalOR||this.type===_.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,n,r,o)}return e},Z.buildBinary=function(e,t,n,r,o,i){var a=this.startNodeAt(e,t);return a.left=n,a.operator=o,a.right=r,this.finishNode(a,i?"LogicalExpression":"BinaryExpression")},Z.parseMaybeUnary=function(e,t){var n,r=this.start,o=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var i=this.startNode(),a=this.type===_.incDec;i.operator=this.value,i.prefix=!0,this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(i.argument):this.strict&&"delete"===i.operator&&"Identifier"===i.argument.type?this.raiseRecoverable(i.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(i,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(r,o);s.operator=this.value,s.prefix=!1,s.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(s,"UpdateExpression")}}return!t&&this.eat(_.starstar)?this.buildBinary(r,o,n,this.parseMaybeUnary(null,!1),"**",!1):n},Z.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var o=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1)),o},Z.parseSubscripts=function(e,t,n,r){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,i=!1;;){var a=this.parseSubscript(e,t,n,r,o,i);if(a.optional&&(i=!0),a===e||"ArrowFunctionExpression"===a.type){if(i){var s=this.startNodeAt(t,n);s.expression=a,a=this.finishNode(s,"ChainExpression")}return a}e=a}},Z.parseSubscript=function(e,t,n,r,o,i){var a=this.options.ecmaVersion>=11,s=a&&this.eat(_.questionDot);r&&s&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(_.bracketL);if(l||s&&this.type!==_.parenL&&this.type!==_.backQuote||this.eat(_.dot)){var c=this.startNodeAt(t,n);c.object=e,c.property=l?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,l&&this.expect(_.bracketR),a&&(c.optional=s),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(_.parenL)){var u=new W,d=this.yieldPos,h=this.awaitPos,p=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1,u);if(o&&!s&&!this.canInsertSemicolon()&&this.eat(_.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=p,this.parseArrowExpression(this.startNodeAt(t,n),f,!0);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=p||this.awaitIdentPos;var m=this.startNodeAt(t,n);m.callee=e,m.arguments=f,a&&(m.optional=s),e=this.finishNode(m,"CallExpression")}else if(this.type===_.backQuote){(s||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,n);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},Z.parseExprAtom=function(e){this.type===_.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case _._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==_.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==_.dot&&this.type!==_.bracketL&&this.type!==_.parenL&&this.unexpected(),this.finishNode(t,"Super");case _._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case _.name:var r=this.start,o=this.startLoc,i=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!i&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(_._function))return this.parseFunction(this.startNodeAt(r,o),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(_.arrow))return this.parseArrowExpression(this.startNodeAt(r,o),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===_.name&&!i)return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(_.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,o),[a],!0)}return a;case _.regexp:var s=this.value;return(t=this.parseLiteral(s.value)).regex={pattern:s.pattern,flags:s.flags},t;case _.num:case _.string:return this.parseLiteral(this.value);case _._null:case _._true:case _._false:return(t=this.startNode()).value=this.type===_._null?null:this.type===_._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case _.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case _.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(_.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case _.braceL:return this.parseObj(!1,e);case _._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case _._class:return this.parseClass(this.startNode(),!1);case _._new:return this.parseNew();case _.backQuote:return this.parseTemplate();case _._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case _.parenL:return this.parseDynamicImport(e);case _.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},Z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(_.parenR)){var t=this.start;this.eat(_.comma)&&this.eat(_.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Z.parseParenExpression=function(){this.expect(_.parenL);var e=this.parseExpression();return this.expect(_.parenR),e},Z.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i,a=this.start,s=this.startLoc,l=[],c=!0,u=!1,d=new W,h=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==_.parenR;){if(c?c=!1:this.expect(_.comma),o&&this.afterTrailingComma(_.parenR,!0)){u=!0;break}if(this.type===_.ellipsis){i=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===_.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(_.parenR),e&&!this.canInsertSemicolon()&&this.eat(_.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(n,r,l);l.length&&!u||this.unexpected(this.lastTokStart),i&&this.unexpected(i),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,l.length>1?((t=this.startNodeAt(a,s)).expressions=l,this.finishNodeAt(t,"SequenceExpression",f,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},Z.parseParenItem=function(e){return e},Z.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Q=[];Z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(_.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,o=this.startLoc,i=this.type===_._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,o,!0),i&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(_.parenL)?e.arguments=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Q,this.finishNode(e,"NewExpression")},Z.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===_.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===_.backQuote,this.finishNode(n,"TemplateElement")},Z.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===_.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(_.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Z.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===_.name||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},Z.parseObj=function(e,t){var n=this.startNode(),r=!0,o={};for(n.properties=[],this.next();!this.eat(_.braceR);){if(r)r=!1;else if(this.expect(_.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(_.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,o,t),n.properties.push(i)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Z.parseProperty=function(e,t){var n,r,o,i,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(_.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===_.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===_.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===_.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(o=this.start,i=this.startLoc),e||(n=this.eat(_.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(_.star),this.parsePropertyName(a,t)):r=!1,this.parsePropertyValue(a,e,n,r,o,i,t,s),this.finishNode(a,"Property")},Z.parsePropertyValue=function(e,t,n,r,o,i,a,s){if((n||r)&&this.type===_.colon&&this.unexpected(),this.eat(_.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===_.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===_.comma||this.type===_.braceR||this.type===_.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=o),e.kind="init",t?e.value=this.parseMaybeDefault(o,i,e.key):this.type===_.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,i,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},Z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(_.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(_.bracketR),e.key;e.computed=!1}return e.key=this.type===_.num||this.type===_.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Z.parseMethod=function(e,t,n){var r=this.startNode(),o=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|F(t,r.generator)|(n?128:0)),this.expect(_.parenL),r.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},Z.parseArrowExpression=function(e,t,n){var r=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(16|F(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")},Z.parseFunctionBody=function(e,t,n){var r=t&&this.type!==_.braceL,o=this.strict,i=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(i=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var s=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!o&&!i&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,5),e.body=this.parseBlock(!1,void 0,i&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},Z.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},Z.checkParams=function(e,t){for(var n={},r=0,o=e.params;r<o.length;r+=1){var i=o[r];this.checkLVal(i,1,t?null:n)}},Z.parseExprList=function(e,t,n,r){for(var o=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(_.comma),t&&this.afterTrailingComma(e))break;var a=void 0;n&&this.type===_.comma?a=null:this.type===_.ellipsis?(a=this.parseSpread(r),r&&this.type===_.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),o.push(a)}return o},Z.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},Z.parseIdent=function(e,t){var n=this.startNode();return this.type===_.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},Z.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===_.semi||this.canInsertSemicolon()||this.type!==_.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(_.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Z.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")};var ee=B.prototype;ee.raise=function(e,t){var n=j(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ee.raiseRecoverable=ee.raise,ee.curPosition=function(){if(this.options.locations)return new L(this.curLine,this.pos-this.lineStart)};var te=B.prototype,ne=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};te.enterScope=function(e){this.scopeStack.push(new ne(e))},te.exitScope=function(){this.scopeStack.pop()},te.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},te.declareName=function(e,t,n){var r=!1;if(2===t){var o=this.currentScope();r=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o.var.indexOf(e)>-1,o.lexical.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var i=this.currentScope();r=this.treatFunctionsAsVar?i.lexical.indexOf(e)>-1:i.lexical.indexOf(e)>-1||i.var.indexOf(e)>-1,i.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var s=this.scopeStack[a];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],3&s.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},te.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},te.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},te.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},te.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var re=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new N(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},oe=B.prototype;function ie(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}oe.startNode=function(){return new re(this,this.start,this.startLoc)},oe.startNodeAt=function(e,t){return new re(this,e,t)},oe.finishNode=function(e,t){return ie.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},oe.finishNodeAt=function(e,t,n,r){return ie.call(this,e,t,n,r)};var ae=function(e,t,n,r,o){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!o},se={b_stat:new ae("{",!1),b_expr:new ae("{",!0),b_tmpl:new ae("${",!1),p_stat:new ae("(",!1),p_expr:new ae("(",!0),q_tmpl:new ae("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ae("function",!1),f_expr:new ae("function",!0),f_expr_gen:new ae("function",!0,!1,null,!0),f_gen:new ae("function",!1,!1,null,!0)},le=B.prototype;le.initialContext=function(){return[se.b_stat]},le.braceIsBlock=function(e){var t=this.curContext();return t===se.f_expr||t===se.f_stat||(e!==_.colon||t!==se.b_stat&&t!==se.b_expr?e===_._return||e===_.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===_._else||e===_.semi||e===_.eof||e===_.parenR||e===_.arrow||(e===_.braceL?t===se.b_stat:e!==_._var&&e!==_._const&&e!==_.name&&!this.exprAllowed):!t.isExpr)},le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},le.updateContext=function(e){var t,n=this.type;n.keyword&&e===_.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},_.parenR.updateContext=_.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===se.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},_.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?se.b_stat:se.b_expr),this.exprAllowed=!0},_.dollarBraceL.updateContext=function(){this.context.push(se.b_tmpl),this.exprAllowed=!0},_.parenL.updateContext=function(e){var t=e===_._if||e===_._for||e===_._with||e===_._while;this.context.push(t?se.p_stat:se.p_expr),this.exprAllowed=!0},_.incDec.updateContext=function(){},_._function.updateContext=_._class.updateContext=function(e){!e.beforeExpr||e===_.semi||e===_._else||e===_._return&&x.test(this.input.slice(this.lastTokEnd,this.start))||(e===_.colon||e===_.braceL)&&this.curContext()===se.b_stat?this.context.push(se.f_stat):this.context.push(se.f_expr),this.exprAllowed=!1},_.backQuote.updateContext=function(){this.curContext()===se.q_tmpl?this.context.pop():this.context.push(se.q_tmpl),this.exprAllowed=!1},_.star.updateContext=function(e){if(e===_._function){var t=this.context.length-1;this.context[t]===se.f_expr?this.context[t]=se.f_expr_gen:this.context[t]=se.f_gen}this.exprAllowed=!0},_.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==_.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ce="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ue=ce+" Extended_Pictographic",de={9:ce,10:ue,11:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic"},he="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",pe="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",fe=pe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",me={9:pe,10:fe,11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ge={};function ve(e){var t=ge[e]={binary:I(de[e]+" "+he),nonBinary:{General_Category:I(he),Script:I(me[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}ve(9),ve(10),ve(11);var ye=B.prototype,be=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ge[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function we(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Ce(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function _e(e){return e>=65&&e<=90||e>=97&&e<=122}function xe(e){return _e(e)||95===e}function Se(e){return xe(e)||ke(e)}function ke(e){return e>=48&&e<=57}function Pe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Te(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ee(e){return e>=48&&e<=55}be.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},be.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},be.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var o=n.charCodeAt(e);if(!t&&!this.switchU||o<=55295||o>=57344||e+1>=r)return o;var i=n.charCodeAt(e+1);return i>=56320&&i<=57343?(o<<10)+i-56613888:o},be.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var o,i=n.charCodeAt(e);return!t&&!this.switchU||i<=55295||i>=57344||e+1>=r||(o=n.charCodeAt(e+1))<56320||o>57343?e+1:e+2},be.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},be.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},be.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},be.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ye.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var o=n.charAt(r);-1===t.indexOf(o)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(o,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},ye.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},ye.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},ye.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},ye.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},ye.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},ye.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},ye.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},ye.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},ye.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return-1!==o&&o<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},ye.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},ye.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},ye.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},ye.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},ye.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},ye.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},ye.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ce(t)&&(e.lastIntValue=t,e.advance(),!0)},ye.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Ce(n);)e.advance();return e.pos!==t},ye.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},ye.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},ye.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},ye.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=we(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=we(e.lastIntValue);return!0}return!1},ye.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return f(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},ye.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return m(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},ye.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},ye.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},ye.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},ye.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},ye.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},ye.regexp_eatZero=function(e){return 48===e.current()&&!ke(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},ye.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},ye.regexp_eatControlLetter=function(e){var t=e.current();return!!_e(t)&&(e.lastIntValue=t%32,e.advance(),!0)},ye.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,o=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(o&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(i-55296)+(s-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(o&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;o&&e.raise("Invalid unicode escape"),e.pos=r}return!1},ye.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},ye.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},ye.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},ye.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o),!0}return!1},ye.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){A(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},ye.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},ye.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";xe(t=e.current());)e.lastStringValue+=we(t),e.advance();return""!==e.lastStringValue},ye.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Se(t=e.current());)e.lastStringValue+=we(t),e.advance();return""!==e.lastStringValue},ye.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},ye.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},ye.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},ye.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Ee(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},ye.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},ye.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!ke(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},ye.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},ye.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ke(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},ye.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Pe(n=e.current());)e.lastIntValue=16*e.lastIntValue+Te(n),e.advance();return e.pos!==t},ye.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},ye.regexp_eatOctalDigit=function(e){var t=e.current();return Ee(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},ye.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var o=e.current();if(!Pe(o))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Te(o),e.advance()}return!0};var Oe=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new N(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Me=B.prototype;function Ae(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function De(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}Me.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Oe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Me.getToken=function(){return this.next(),new Oe(this)},"undefined"!=typeof Symbol&&(Me[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===_.eof,value:t}}}}),Me.curContext=function(){return this.context[this.context.length-1]},Me.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(_.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Me.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Me.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Me.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(S.lastIndex=n;(e=S.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},Me.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!k(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Me.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&P.test(String.fromCharCode(e))))break e;++this.pos}}},Me.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Me.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(_.ellipsis)):(++this.pos,this.finishToken(_.dot))},Me.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(_.assign,2):this.finishOp(_.slash,1)},Me.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?_.star:_.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=_.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(_.assign,n+1):this.finishOp(r,n)},Me.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(_.assign,3);return this.finishOp(124===e?_.logicalOR:_.logicalAND,2)}return 61===t?this.finishOp(_.assign,2):this.finishOp(124===e?_.bitwiseOR:_.bitwiseAND,1)},Me.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(_.assign,2):this.finishOp(_.bitwiseXOR,1)},Me.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!x.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(_.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(_.assign,2):this.finishOp(_.plusMin,1)},Me.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(_.assign,n+1):this.finishOp(_.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(_.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Me.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(_.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_.arrow)):this.finishOp(61===e?_.eq:_.prefix,1)},Me.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(_.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(_.assign,3);return this.finishOp(_.coalesce,2)}}return this.finishOp(_.question,1)},Me.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_.parenL);case 41:return++this.pos,this.finishToken(_.parenR);case 59:return++this.pos,this.finishToken(_.semi);case 44:return++this.pos,this.finishToken(_.comma);case 91:return++this.pos,this.finishToken(_.bracketL);case 93:return++this.pos,this.finishToken(_.bracketR);case 123:return++this.pos,this.finishToken(_.braceL);case 125:return++this.pos,this.finishToken(_.braceR);case 58:return++this.pos,this.finishToken(_.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(_.prefix,1)}this.raise(this.pos,"Unexpected character '"+De(e)+"'")},Me.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Me.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var o=this.input.slice(n,this.pos);++this.pos;var i=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(i);var s=this.regexpState||(this.regexpState=new be(this));s.reset(n,o,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var l=null;try{l=new RegExp(o,a)}catch(e){}return this.finishToken(_.regexp,{pattern:o,flags:a,value:l})},Me.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,o=n&&48===this.input.charCodeAt(this.pos),i=this.pos,a=0,s=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&95===u)o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=u;else{if((d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;s=u,a=a*e+d}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=t&&this.pos-i!==t?null:a},Me.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Ae(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,n)},Me.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var o=Ae(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,o)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i,a=(i=this.input.slice(t,this.pos),n?parseInt(i,8):parseFloat(i.replace(/_/g,"")));return this.finishToken(_.num,a)},Me.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Me.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(k(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(_.string,t)};var Ie={};Me.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Ie)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Me.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ie;this.raise(e,t)},Me.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==_.template&&this.type!==_.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(_.template,e)):36===n?(this.pos+=2,this.finishToken(_.dollarBraceL)):(++this.pos,this.finishToken(_.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(k(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Me.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(_.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Me.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return De(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(e){var n=this.pos-1;return this.invalidStringToken(n,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(r,8);return o>255&&(r=r.slice(0,-1),o=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(o)}return k(t)?"":String.fromCharCode(t)}},Me.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Me.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if(m(o,r))this.pos+=o<=65535?1:2;else{if(92!==o)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?f:m)(a,r)||this.invalidStringToken(i,"Invalid Unicode escape"),e+=De(a),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Me.readWord=function(){var e=this.readWord1(),t=_.name;return this.keywords.test(e)&&(t=w[e]),this.finishToken(t,e)};var Le="7.4.1";function Ne(e,t){return B.parse(e,t)}function je(e,t,n){return B.parseExpressionAt(e,t,n)}function Re(e,t){return B.tokenizer(e,t)}B.acorn={Parser:B,version:Le,defaultOptions:R,Position:L,SourceLocation:N,getLineInfo:j,Node:re,TokenType:g,tokTypes:_,keywordTypes:w,TokContext:ae,tokContexts:se,isIdentifierChar:m,isIdentifierStart:f,Token:Oe,isNewLine:k,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:P}},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyBoardCode=void 0,t.KeyBoardCode={SPACEKEY:32,ESCKEY:27,F2:113,ENTER:13,DELETE:46,BACKSPACE:8,TABKEY:9,CTRLKEY:17,METAKEY:91,ALTKET:18,SHIFTKEY:16,GKEY:71,LKEY:76,MKEY:77,UPKEY:38,DOWNKEY:40,LEFTKEY:37,RIGHTKEY:39,KeyA:65,KeyB:66,KeyC:67,KeyD:68,KeyE:69,KeyF:70,KeyG:71,KeyH:72,KeyI:73,KeyJ:74,KeyK:75,KeyL:76,KeyM:77,KeyN:78,KeyO:79,KeyP:80,KeyQ:81,KeyR:82,KeyS:83,KeyT:84,KeyU:85,KeyV:86,KeyW:87,KeyX:88,KeyY:89,KeyZ:90}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DimensionHelper=void 0;const r=n(7),o=n(8),i=n(28),a=n(373),s=n(17),l=n(419);var c,u;!function(e){e.Left="Left",e.Top="Top",e.Right="Right",e.Bottom="Bottom",e.Contain="Contain",e.Intersect="Intersect",e.None="None"}(c||(c={})),function(e){e.Left="Left",e.Top="Top",e.Right="Right",e.Bottom="Bottom",e.Center="Center",e.Middle="Middle"}(u||(u={})),function(e){let t,n,d,h,p,f,m,g;!function(e){e.LeftAlignCompLeft="LeftAlignCompLeft",e.LeftAlignCompCenter="LeftAlignCompLeft",e.LeftAlignCompRight="LeftAlignCompRight",e.CenterAlignCompLeft="CenterAlignCompLeft",e.CenterAlignCompCenter="CenterAlignCompCenter",e.CenterAlignCompRight="CenterAlignCompRight",e.RightAlignCompLeft="RightAlignCompLeft",e.RightAlignCompCenter="RightAlignCompCenter",e.RightAlignCompRight="RightAlignCompRight",e.TopAlignCompTop="TopAlignCompTop",e.TopAlignCompMiddle="TopAlignCompMiddle",e.TopAlignCompBottom="TopAlignCompBottom",e.MiddleAlignCompTop="MiddleAlignCompTop",e.MiddleAlignCompMiddle="MiddleAlignCompMiddle",e.MiddleAlignCompBottom="MiddleAlignCompBottom",e.BottomAlignCompTop="BottomAlignCompTop",e.BottomAlignCompMiddle="BottomAlignCompMiddle",e.BottomAlignCompBottom="BottomAlignCompBottom"}(t||(t={})),function(e){e.LeftAlignArtboardLeft="LeftAlignArtboardLeft",e.LeftAlignArtboardCenter="LeftAlignArtboardCenter",e.LeftAlignArtboardRight="LeftAlignArtboardRight",e.CenterAlignArtboardLeft="CenterAlignArtboardLeft",e.CenterAlignArtboardCenter="CenterAlignArtboardCenter",e.CenterAlignArtboardRight="CenterAlignArtboardRight",e.RightAlignArtboardLeft="RightAlignArtboardLeft",e.RightAlignArtboardCenter="RightAlignArtboardCenter",e.RightAlignArtboardRight="RightAlignArtboardRight",e.TopAlignArtboardTop="TopAlignArtboardTop",e.TopAlignArtboardMiddle="TopAlignArtboardMiddle",e.TopAlignArtboardBottom="TopAlignArtboardBottom",e.MiddleAlignArtboardTop="MiddleAlignArtboardTop",e.MiddleAlignArtboardMiddle="MiddleAlignArtboardMiddle",e.MiddleAlignArtboardBottom="MiddleAlignArtboardBottom",e.BottomAlignArtboardTop="BottomAlignArtboardTop",e.BottomAlignArtboardMiddle="BottomAlignArtboardMiddle",e.BottomAlignArtboardBottom="BottomAlignArtboardBottom"}(n||(n={})),function(e){e.LeftAlignContainerLeft="LeftAlignContainerLeft",e.LeftAlignContainerCenter="LeftAlignContainerCenter",e.LeftAlignContainerRight="LeftAlignContainerRight",e.CenterAlignContainerLeft="CenterAlignContainerLeft",e.CenterAlignContainerCenter="CenterAlignContainerCenter",e.CenterAlignContainerRight="CenterAlignContainerRight",e.RightAlignContainerLeft="RightAlignContainerLeft",e.RightAlignContainerCenter="RightAlignContainerCenter",e.RightAlignContainerRight="RightAlignContainerRight",e.TopAlignContainerTop="TopAlignContainerTop",e.TopAlignContainerMiddle="TopAlignContainerMiddle",e.TopAlignContainerBottom="TopAlignContainerBottom",e.MiddleAlignContainerTop="MiddleAlignContainerTop",e.MiddleAlignContainerMiddle="MiddleAlignContainerMiddle",e.MiddleAlignContainerBottom="MiddleAlignContainerBottom",e.BottomAlignContainerTop="BottomAlignContainerTop",e.BottomAlignContainerMiddle="BottomAlignContainerMiddle",e.BottomAlignContainerBottom="BottomAlignContainerBottom"}(d||(d={})),function(e){e.LeftAlignGrid="LeftAlignGrid",e.RightAlignGrid="RightAlignGrid",e.TopAlignGrid="TopAlignGrid",e.BottomAlignGrid="BottomAlignGrid"}(h||(h={})),function(e){e.LeftAlignLayout="LeftAlignLayout",e.RightAlignLayout="RightAlignLayout",e.TopAlignLayout="TopAlignLayout",e.BottomAlignLayout="BottomAlignLayout"}(p||(p={})),function(e){e.TopSameAlign="TopSameAlign",e.BottomSameAlign="BottomSameAlign",e.LeftSameAlign="LeftSameAlign",e.RightSameAlign="RightSameAlign"}(f||(f={})),function(e){e.TopSizeAlign="TopSizeAlign",e.BottomSizeAlign="BottomSizeAlign",e.LeftSizeAlign="LeftSizeAlign",e.RightSizeAlign="RightSizeAlign"}(m||(m={})),function(e){e.LeftAlignGuide="LeftAlignGuide",e.RightAlignGuide="RightAlignGuide",e.TopAlignGuide="TopAlignGuide",e.BottomAlignGuide="BottomAlignGuide"}(g||(g={}));const v=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),n),d),h),p),f),m),g);let y;!function(e){e.Left="Left",e.Center="Center",e.Right="Right",e.Top="Top",e.Middle="Middle",e.Bottom="Bottom"}(y||(y={})),e.ADSORPTION_CAPACITY=5;e.utils=new class{constructor(){this.adsorptionDistance={comp:e.ADSORPTION_CAPACITY,grid:e.ADSORPTION_CAPACITY,layout:e.ADSORPTION_CAPACITY,pen:e.ADSORPTION_CAPACITY},this.comBoundsCache={},this.artboardSize={width:0,height:0},this.judgeAlignBlockLineWithTwoPart=(e,t,n,r,i,a)=>{const s=this.adsorptionDistance.layout,l={isAlign:!1,newDistance:e[r]};let c=o.floor(e[r]/a);const u=e[r]-c*a;let d=u<i/2;!d&&!(!d&&u<i+s)&&u>i+s&&(c++,d=!0);const h=a*c+(d?0:i),p=h+n;return this.judgeLineInArtboard(h,r)&&o.isMoreOrLess(t,p,s)&&(l.isAlign=!0,l.newDistance=p),l},this.judgeAlignBlockLineWithTwoPartSpecial=(e,t)=>{const{totalWidth:n,columns:{gutterOnOutside:r,gutterWidth:i,columnsCount:a},offset:s}=t,c=this.adsorptionDistance.layout,{blockArr:u,afterSplitOffset:d}=l.computedSplitWidthAndOffset(n,a,i,r),h=l.computedLayoutColLine(u,s+d,r,i);let p=!1,f=0,m=!1,g=0,v=0;for(;v<h.length;){const t=h[v];o.isMoreOrLess(e.left,t,c)&&(p=!0,f=t),o.isMoreOrLess(e.right,t,c)&&(m=!0,g=t),v++}return{alignLeft:p,newLeft:f,alignRight:m,newRight:g}},this.parseBoundsToMap=e=>{const t=i.center(e);return new Map([[y.Left,e.left],[y.Center,t.left],[y.Right,e.right],[y.Top,e.top],[y.Middle,t.top],[y.Bottom,e.bottom]])},this.moveAlignGuides=(e,t,n,a,l)=>{const c=i.offsetBounds(e,{left:0-t.left,top:0-t.top});let u=n;for(;!(u instanceof s.UIFragment);)u=u.parent;const d=u,h=c.left,p=c.right,f=c.top,m=c.bottom,v=o.round(h),b=o.round(p),w=o.round(f),C=o.round(m);let _=void 0,x=void 0,S=void 0,k=void 0;l&&(l.includes(y.Left)||(_=h),l.includes(y.Right)||(x=p),l.includes(y.Top)||(S=f),l.includes(y.Bottom)||(k=m));const P=(null==a?void 0:a.ignoreHorizontalAlign)?[]:d.horizontalGuides.map(e=>e.graduationValue),T=(null==a?void 0:a.ignoreVerticalAlign)?[]:d.verticalGuides.map(e=>e.graduationValue),E=this.adsorptionDistance.comp;if(T.length)for(let e=0;e<=E;e++){if(void 0===_){let t=v-e;T.includes(t)?_=t:(t=v+e,T.includes(t)&&(_=t))}if(void 0===x){let t=b-e;T.includes(t)?x=t:(t=b+e,T.includes(t)&&(x=t))}if(void 0!==_&&void 0!==x)break}if(P.length)for(let e=0;e<=E;e++){if(void 0===S){let t=w-e;P.includes(t)?S=t:(t=w+e,P.includes(t)&&(S=t))}if(void 0===k){let t=C-e;P.includes(t)?k=t:(t=C+e,P.includes(t)&&(k=t))}if(void 0!==S&&void 0!==k)break}let O,M,A,D;O=!r.isUndefined(_),M=!r.isUndefined(x),A=!r.isUndefined(S),D=!r.isUndefined(k),l&&(l.includes(y.Left)||(O=!1),l.includes(y.Right)||(M=!1),l.includes(y.Top)||(A=!1),l.includes(y.Bottom)||(D=!1));const I=[];return O&&I.push({type:g.LeftAlignGuide,distance:h-_}),M&&I.push({type:g.RightAlignGuide,distance:p-x}),A&&I.push({type:g.TopAlignGuide,distance:f-S}),D&&I.push({type:g.BottomAlignGuide,distance:m-k}),I},this.computedHorizontalBetweenBounds=(e,t)=>{const n=o.min(e.right,t.right),r=o.max(e.left,t.left),i=o.min(e.top,t.top),a=o.max(e.bottom,t.bottom);return{left:n,right:r,top:i,bottom:a,width:r-n,height:a-i}},this.computedVerticalBetweenBounds=(e,t)=>{const n=o.min(e.left,t.left),r=o.max(e.right,t.right),i=o.min(e.bottom,t.bottom),a=o.max(e.top,t.top);return{left:n,right:r,top:i,bottom:a,width:r-n,height:a-i}},this.judgePositionAlginComp=(e,t)=>{if(o.between(e.left,{min:t.left,max:t.right},!0)||o.between(e.right,{min:t.left,max:t.right},!0)||e.left<=t.left&&e.right>=t.right){if(t.bottom<=e.top)return c.Top;if(t.top>e.bottom)return c.Bottom}if(o.between(e.top,{min:t.top,max:t.bottom},!0)||o.between(e.bottom,{min:t.top,max:t.bottom},!0)||e.top<=t.top&&e.bottom>=t.bottom){if(t.right<=e.left)return c.Left;if(t.left>e.right)return c.Right}return i.isContainer(t,e,!0)?c.Contain:i.isIntersect(e,t)?c.Intersect:c.None},this.parseResizeDirection=e=>{switch(e){case a.Direction.nw:return[y.Top,y.Left];case a.Direction.n:return[y.Top];case a.Direction.ne:return[y.Top,y.Right];case a.Direction.e:return[y.Right];case a.Direction.se:return[y.Bottom,y.Right];case a.Direction.s:return[y.Bottom];case a.Direction.sw:return[y.Bottom,y.Left];case a.Direction.w:return[y.Left];default:return[]}}}cacheComponentBounds(e,t,n=!1){this.clear();const r=e=>{e.components.forEach(e=>{e.isConnector||e.hidden&&t||(this.comBoundsCache[e.id]={component:e,bounds:i.round(e.getViewBoundsInPage())},n&&e instanceof s.UIContainerComponent&&!e.isSealed&&r(e))}),!e.isArtboard&&e instanceof s.UIPanelComponent&&(this.comBoundsCache[e.id]={component:e,bounds:i.round(e.getViewBoundsInPage())})};r(e)}clear(){this.comBoundsCache={}}judgeLineInArtboard(e,t){const{width:n,height:r}=this.artboardSize;let o=!1;return"left"!==t&&"right"!==t||(o=e>=0&&e<=n),"top"!==t&&"bottom"!==t||(o=e>=0&&e<=r),o}judgeAlignBlockLine(e,t,n,r,i,a=!0,s){const l=e[r],c={isAlign:!1,newDistance:l},u=o.floor(l/i),d=i*(l-i*u<i/2?u:u+1),h=d+n,p=this.judgeLineInArtboard(d,r);return a&&!p||!o.isMoreOrLess(t,h,s||this.adsorptionDistance.comp)||(c.isAlign=!0,c.newDistance=h),c}testAlignGrid(e,t,n){const{left:r,top:o}=t;let a=Object.assign({},e),s=!1,l=!1;if(null==n?void 0:n.visible){const t=n.blockSize,c={left:e.left,top:e.top},u=i.offsetBounds(e,{left:0-r,top:0-o}),{isAlign:d,newDistance:h}=this.judgeAlignBlockLine(u,e.left,r,"left",t,!0,this.adsorptionDistance.grid),{isAlign:p,newDistance:f}=this.judgeAlignBlockLine(u,e.right,r,"right",t,!0,this.adsorptionDistance.grid),{isAlign:m,newDistance:g}=this.judgeAlignBlockLine(u,e.top,o,"top",t,!0,this.adsorptionDistance.grid),{isAlign:v,newDistance:y}=this.judgeAlignBlockLine(u,e.bottom,o,"bottom",t,!0,this.adsorptionDistance.grid);d&&(c.left=h,s=!0),!d&&p&&(c.left=f-a.width,s=!0),m&&(c.top=g,l=!0),!m&&v&&(c.top=y-e.height,l=!0),a=i.setLocation(e,c)}return{bounds:a,leftAlignGrid:s,topAlignGrid:l}}testPixelAlign(t,n,r){const{left:o,top:a}=n;let s=Object.assign({},t),l=!1,c=!1;if(null==r?void 0:r.visible){const n=r.blockSize,u={left:t.left,top:t.top},d=i.offsetBounds(t,{left:0-o,top:0-a}),{isAlign:h,newDistance:p}=this.judgeAlignBlockLine(d,t.left,o,"left",n,!1,e.ADSORPTION_CAPACITY),{isAlign:f,newDistance:m}=this.judgeAlignBlockLine(d,t.top,a,"top",n,!1,e.ADSORPTION_CAPACITY);h&&(u.left=p,l=!0),f&&(u.top=m,c=!0),s=i.setLocation(t,u)}return{bounds:s,leftAlignGrid:l,topAlignGrid:c}}testAlignLayout(e,t,n){const{left:r,top:o}=t;let a=Object.assign({},e),s=!1,l=!1;if(null==n?void 0:n.visible){const{columns:{visible:t},rows:{visible:c,gutterHeight:u,rowHeight:d,drawAllLines:h}}=n,p=i.offsetBounds(e,{left:0-r,top:0-o}),f={left:e.left,top:e.top};if(t){const{alignLeft:t,newLeft:o,alignRight:i,newRight:a}=this.judgeAlignBlockLineWithTwoPartSpecial(p,n);t&&(f.left=o+r,s=!0),!t&&i&&(f.left=a-e.width+r,s=!0)}if(c)if(h){const{isAlign:t,newDistance:n}=this.judgeAlignBlockLine(p,e.top,o,"top",u,!0,this.adsorptionDistance.layout);t&&(f.top=n,l=!0);const{isAlign:r,newDistance:i}=this.judgeAlignBlockLine(p,e.bottom,o,"bottom",u,!0,this.adsorptionDistance.layout);r&&(f.top=i-e.height,l=!0)}else{const t=u*(d+1),n=u*d,{isAlign:r,newDistance:i}=this.judgeAlignBlockLineWithTwoPart(p,e.top,o,"top",n,t),{isAlign:a,newDistance:s}=this.judgeAlignBlockLineWithTwoPart(p,e.bottom,o,"bottom",n,t);r&&(f.top=i,l=!0),!r&&a&&(f.top=s-e.height,l=!0)}a=i.setLocation(e,f)}return{bounds:a,leftAlignLayout:s,topAlignLayout:l}}calcAdsorptionDistanceByScale(t){let n=e.ADSORPTION_CAPACITY,r=2;t>l.showPixelGridScaleValue?n=0:t>=2?n=o.floor(e.ADSORPTION_CAPACITY*o.ceil(t/e.ADSORPTION_CAPACITY)/t):t<.8?(n=o.ceil(5/t),r=.5):t>=.8&&(r=1),this.adsorptionDistance.comp=n,this.adsorptionDistance.grid=n*r,this.adsorptionDistance.layout=n*r,this.adsorptionDistance.pen=t<1?Math.max(Math.round(e.ADSORPTION_CAPACITY*t),2):t>=1&&t<=3?Math.max(5,Math.round(e.ADSORPTION_CAPACITY*t/2)):10}set scale(e){this.calcAdsorptionDistanceByScale(e)}creatingCompsMovingAlign(e,t,n,r,o){const a=i.initBoundsWithPositionAndSize(n,{width:0,height:0}),s=this.testAlignInfo({activeContainer:e,selectCompIDs:[],targetBounds:a,offset:t,grid:r,layout:o}),{vertical:l,horizontal:c,diff:u}=this.chooseAlignType(s,["Left","Top"]),d=i.offsetBounds(a,u);return{bounds:d,normalAlign:this.parseNormalAlignInfo(l,c,d),sameAlign:[],sameSize:[]}}computedAlignWithConfig(e,t,n){return e.reduce((e,r)=>{const{target:i,compare:a,type:s,bounds:l}=r,c=t.get(i),u=n.get(a);return void 0!==c&&void 0!==u&&o.isMoreOrLess(u,c,this.adsorptionDistance.comp)&&e.push({type:s,distance:c-u,bounds:l}),e},[])}getAlignInfoByConfig(e,t,n){const r=this.parseBoundsToMap(e),o=this.parseBoundsToMap(t);return this.computedAlignWithConfig(n,r,o)}filterIgnoreAlign(e,t){const{ignoreHorizontalAlign:n,ignoreVerticalAlign:r}=t;return e.filter(e=>!(n&&["Left","Right","Center"].includes(e.target)||r&&["Top","Bottom","Middle"].includes(e.target)))}moveAlignComp(e,t,n){let r=[{target:y.Left,compare:y.Left,type:v.LeftAlignCompLeft},{target:y.Left,compare:y.Center,type:v.LeftAlignCompCenter},{target:y.Left,compare:y.Right,type:v.LeftAlignCompRight},{target:y.Center,compare:y.Left,type:v.CenterAlignCompLeft},{target:y.Center,compare:y.Center,type:v.CenterAlignCompCenter},{target:y.Center,compare:y.Right,type:v.CenterAlignCompRight},{target:y.Right,compare:y.Left,type:v.RightAlignCompLeft},{target:y.Right,compare:y.Center,type:v.RightAlignCompCenter},{target:y.Right,compare:y.Right,type:v.RightAlignCompRight},{target:y.Top,compare:y.Top,type:v.TopAlignCompTop},{target:y.Top,compare:y.Middle,type:v.TopAlignCompMiddle},{target:y.Top,compare:y.Bottom,type:v.TopAlignCompBottom},{target:y.Middle,compare:y.Top,type:v.MiddleAlignCompTop},{target:y.Middle,compare:y.Middle,type:v.MiddleAlignCompMiddle},{target:y.Middle,compare:y.Bottom,type:v.MiddleAlignCompBottom},{target:y.Bottom,compare:y.Top,type:v.BottomAlignCompTop},{target:y.Bottom,compare:y.Middle,type:v.BottomAlignCompMiddle},{target:y.Bottom,compare:y.Bottom,type:v.BottomAlignCompBottom}];return r=this.filterIgnoreAlign(r,n).map(e=>(e.bounds=t,e)),this.getAlignInfoByConfig(e,t,r)}moveAlignArtboard(e,t,n){let r=[{target:y.Left,compare:y.Left,type:v.LeftAlignArtboardLeft},{target:y.Left,compare:y.Center,type:v.LeftAlignArtboardCenter},{target:y.Left,compare:y.Right,type:v.LeftAlignArtboardRight},{target:y.Center,compare:y.Left,type:v.CenterAlignArtboardLeft},{target:y.Center,compare:y.Center,type:v.CenterAlignArtboardCenter},{target:y.Center,compare:y.Right,type:v.CenterAlignArtboardRight},{target:y.Right,compare:y.Left,type:v.RightAlignArtboardLeft},{target:y.Right,compare:y.Center,type:v.RightAlignArtboardCenter},{target:y.Right,compare:y.Right,type:v.RightAlignArtboardRight},{target:y.Top,compare:y.Top,type:v.TopAlignArtboardTop},{target:y.Top,compare:y.Middle,type:v.TopAlignArtboardMiddle},{target:y.Top,compare:y.Bottom,type:v.TopAlignArtboardBottom},{target:y.Middle,compare:y.Top,type:v.MiddleAlignArtboardTop},{target:y.Middle,compare:y.Middle,type:v.MiddleAlignArtboardMiddle},{target:y.Middle,compare:y.Bottom,type:v.MiddleAlignArtboardBottom},{target:y.Bottom,compare:y.Top,type:v.BottomAlignArtboardTop},{target:y.Bottom,compare:y.Middle,type:v.BottomAlignArtboardMiddle},{target:y.Bottom,compare:y.Bottom,type:v.BottomAlignArtboardBottom}];return r=this.filterIgnoreAlign(r,n).map(e=>(e.bounds=t,e)),this.getAlignInfoByConfig(e,t,r)}moveAlignContainer(e,t,n){let r=[{target:y.Left,compare:y.Left,type:v.LeftAlignContainerLeft},{target:y.Left,compare:y.Center,type:v.LeftAlignContainerCenter},{target:y.Left,compare:y.Right,type:v.LeftAlignContainerRight},{target:y.Center,compare:y.Left,type:v.CenterAlignContainerLeft},{target:y.Center,compare:y.Center,type:v.CenterAlignContainerCenter},{target:y.Center,compare:y.Right,type:v.CenterAlignContainerRight},{target:y.Right,compare:y.Left,type:v.RightAlignContainerLeft},{target:y.Right,compare:y.Center,type:v.RightAlignContainerCenter},{target:y.Right,compare:y.Right,type:v.RightAlignContainerRight},{target:y.Top,compare:y.Top,type:v.TopAlignContainerTop},{target:y.Top,compare:y.Middle,type:v.TopAlignContainerMiddle},{target:y.Top,compare:y.Bottom,type:v.TopAlignContainerBottom},{target:y.Middle,compare:y.Top,type:v.MiddleAlignContainerTop},{target:y.Middle,compare:y.Middle,type:v.MiddleAlignContainerMiddle},{target:y.Middle,compare:y.Bottom,type:v.MiddleAlignContainerBottom},{target:y.Bottom,compare:y.Top,type:v.BottomAlignContainerTop},{target:y.Bottom,compare:y.Middle,type:v.BottomAlignContainerMiddle},{target:y.Bottom,compare:y.Bottom,type:v.BottomAlignContainerBottom}];return r=this.filterIgnoreAlign(r,n).map(e=>(e.bounds=t,e)),this.getAlignInfoByConfig(e,t,r)}moveAlignGrid(e,t,n,o,a){const{left:s,top:l}=t,c=n.blockSize,u=i.offsetBounds(e,{left:0-s,top:0-l});let d=[];return[{compareDistance:e.left,offsetNum:s,direction:"left"},{compareDistance:e.right,offsetNum:s,direction:"right"},{compareDistance:e.top,offsetNum:l,direction:"top"},{compareDistance:e.bottom,offsetNum:l,direction:"bottom"}].filter(e=>!(o.ignoreHorizontalAlign&&["left","right"].includes(e.direction)||o.ignoreVerticalAlign&&["top","bottom"].includes(e.direction))).forEach(t=>{const{compareDistance:n,offsetNum:o,direction:i}=t;if(a&&!(null==a?void 0:a.includes(r.capitalize(i))))return;const{isAlign:s,newDistance:l}=this.judgeAlignBlockLine(u,n,o,i,c,!0,this.adsorptionDistance.grid);if(s){let t=h.LeftAlignGrid;"right"===i?t=h.RightAlignGrid:"top"===i?t=h.TopAlignGrid:"bottom"===i&&(t=h.BottomAlignGrid),d.push({type:t,distance:e[i]-l})}}),d}horizontalMoveAlignLayout(e,t,n){let r=[];const{left:o,top:a}=t,s=i.offsetBounds(e,{left:0-o,top:0-a}),{alignLeft:l,newLeft:c,alignRight:u,newRight:d}=this.judgeAlignBlockLineWithTwoPartSpecial(s,n);return l&&r.push({type:p.LeftAlignLayout,distance:e.left-c-o}),u&&r.push({type:p.RightAlignLayout,distance:e.right-d-o}),r}verticalMoveAlignLayout(e,t,n){let r=[];const{rows:{gutterHeight:o,rowHeight:a,drawAllLines:s}}=n,{left:l,top:c}=t,u=i.offsetBounds(e,{left:0-l,top:0-c});if(s){const{isAlign:t,newDistance:n}=this.judgeAlignBlockLine(u,e.top,c,"top",o),{isAlign:i,newDistance:a}=this.judgeAlignBlockLine(u,e.bottom,c,"bottom",o);t&&r.push({type:p.TopAlignLayout,distance:e.top-n}),i&&r.push({type:p.BottomAlignLayout,distance:e.bottom-a})}else{const t=o*(a+1),n=o*a,{isAlign:i,newDistance:s}=this.judgeAlignBlockLineWithTwoPart(u,e.top,c,"top",n,t),{isAlign:l,newDistance:d}=this.judgeAlignBlockLineWithTwoPart(u,e.bottom,c,"bottom",n,t);i&&r.push({type:p.TopAlignLayout,distance:e.top-s}),l&&r.push({type:p.BottomAlignLayout,distance:e.bottom-d})}return r}classifyCompByDirection(e,t,n){const r=this.judgePositionAlginComp(e,t);r===c.Left&&n.left.push(t),r===c.Right&&n.right.push(t),r===c.Top&&n.top.push(t),r===c.Bottom&&n.bottom.push(t)}sortByDirection(e,t,n){let r=t;switch(t){case"left":r="right";break;case"right":r="left";break;case"top":r="bottom";break;case"bottom":r="top"}e.sort((e,t)=>{const o=e[r],i=t[r];return o>i?n?-1:1:o<i?n?1:-1:0})}sameSpaceAlign(e,t){let n=[],r={left:[],right:[],top:[],bottom:[]};for(let n in e){const a=n,s=o.depthClone(e[a]);s.push(t),this.sortByDirection(s,a,["left","top"].includes(a));let l=0,c=1,u=0;for(;l<s.length;){if(c>=s.length){l++,c=l+1;continue}const e=s[l],t=s[c];if(this.judgePositionAlginComp(e,t).toLocaleLowerCase()!==a)c++;else{let n=i.empty(),s=0,d=!1;"top"===a||"bottom"===a?(n=this.computedVerticalBetweenBounds(e,t),s=n.height):(n=this.computedHorizontalBetweenBounds(e,t),s=n.width),0===l&&(u=s,d=!0),o.isMoreOrLess(s,u,this.adsorptionDistance.comp)&&r[a].push({compare:t,bounds:n,distance:u-s,isMove:d}),l++,c=l+1}}}return Object.keys(r).forEach(e=>{const t=r[e];let i=t.find(e=>e.isMove);const a=t.reduce((e,t)=>{const{distance:n,isMove:r}=t;return r?e:o.min(e,o.abs(n))},1/0);let s=t.filter(e=>o.abs(e.distance)===a&&!e.isMove);const l=s.map(e=>e.distance);if(l.includes(0-a)&&l.includes(a)&&(s=s.filter(e=>e.distance===a)),s.length&&i){let t=s[0].distance,r=f.LeftSameAlign;"right"===e?(r=f.RightSameAlign,t=0-t):"top"===e?r=f.TopSameAlign:"bottom"===e&&(r=f.BottomSameAlign,t=0-t);const o=[i,...s].map(e=>e.bounds);n.push({type:r,distance:t,bounds:i.compare,sameBounds:o})}}),n}sameSizeAlignByDirection(e,t,n){let r=[];return n.forEach(n=>{const i=n.toLowerCase();let a=[];a="left"===i||"right"===i?[...e.left,...e.right]:[...e.top,...e.bottom],a.forEach(e=>{"left"===i||"right"===i?o.isMoreOrLess(e.width,t.width,this.adsorptionDistance.comp)&&r.push({type:v[n+"SizeAlign"],distance:"left"===i?o.round(e.width-t.width):o.round(t.width-e.width),bounds:e}):o.isMoreOrLess(e.height,t.height,this.adsorptionDistance.comp)&&r.push({type:v[n+"SizeAlign"],distance:"top"===i?o.round(e.height-t.height):o.round(t.height-e.height),bounds:e})})}),r}testAlignInfo(e,t){const{activeContainer:n,selectCompIDs:r,targetBounds:a,offset:s,grid:l,layout:c,alignConfig:u,ignoreHorizontalAlign:d,ignoreVerticalAlign:h}=e,p=n.components.filter(e=>!e.isConnector&&!r.includes(e.id)),f={ignoreHorizontalAlign:d,ignoreVerticalAlign:h};let m=[],g={left:[],right:[],top:[],bottom:[]};if(p.forEach(e=>{const t=this.comBoundsCache[e.id];if(t){const e=this.moveAlignComp(a,t.bounds,f);this.classifyCompByDirection(a,t.bounds,g),m.push(...e)}}),null==t?void 0:t.length){const e=this.sameSizeAlignByDirection(o.depthClone(g),a,t);m.push(...e)}else if(null==u?void 0:u.testEquidistant){const e=this.sameSpaceAlign(g,a);m.push(...e)}const v=this.comBoundsCache[n.id];if(v){const e=this.moveAlignContainer(a,v.bounds,f);m.push(...e)}const y=i.initBoundsWithPositionAndSize({x:s.left,y:s.top},this.artboardSize),b=this.moveAlignArtboard(a,y,f);if(m.push(...b),null==l?void 0:l.visible){const e=this.moveAlignGrid(a,s,l,f,t);m.push(...e)}if(null==c?void 0:c.visible){const{columns:{visible:e},rows:{visible:t}}=c,n=e&&!d?this.horizontalMoveAlignLayout(a,s,c):[],r=t&&!h?this.verticalMoveAlignLayout(a,s,c):[];m.push(...n,...r)}return e.ignoreGuides||m.push(...this.moveAlignGuides(a,s,n,f,t)),m}getAlignTypeByLineType(e,t){const n=new RegExp("^"+e);return t.filter(e=>n.test(e.type))}classifyAlignType(e){let t=new Map;for(let n in y){const r=n;let o=this.getAlignTypeByLineType(r,e);if(t.has(r)){const e=t.get(r);o.unshift(...e)}t.set(r,o)}return t}getMinAbsDistance(e){return e.reduce((e,t)=>{const{distance:n}=t;return Math.min(e,o.abs(n))},1/0)}doChooseAlignType(e){const t=this.getMinAbsDistance(e);let n=e.filter(e=>o.abs(e.distance)===t);const r=n.map(e=>e.distance);return r.includes(0-t)&&r.includes(t)&&(n=n.filter(e=>e.distance===t)),n}chooseAlignType(e,t){if(null==t?void 0:t.length){const n=new RegExp(`^(${t.join("|")})`);e=e.filter(e=>n.test(e.type)||e.type.indexOf("SizeAlign")>-1)}let n=this.classifyAlignType(e);for(let[e,t]of n){const r=this.doChooseAlignType(t);n.set(e,r)}let r=[],o=[];for(let e in y){const t=e,i=n.get(t);(null==i?void 0:i.length)&&(["Left","Center","Right"].includes(t)?r.push(...i):o.push(...i))}const i=this.doChooseAlignType(r),a=this.doChooseAlignType(o);return{horizontal:i,vertical:a,diff:{left:0-(i.length?i[0].distance:0),top:0-(a.length?a[0].distance:0)}}}getAlignByType(e,t,n){const r=new RegExp(`^${e}.*${t}$`);return n.filter(e=>r.test(e.type))}classifyHorizontalAlign(e,t,n,r){const i=this.getAlignByType(e,t,r),a={before:[],after:[],min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY};let s=n.top,l=n.bottom;return i.forEach(e=>{if(e.bounds){const t=this.judgePositionAlginComp(n,e.bounds);t===c.Top?a.before.push(e.bounds):t===c.Bottom&&a.after.push(e.bounds),s=o.min(s,e.bounds.top),l=o.max(l,e.bounds.bottom)}}),i.length&&(a.min=s,a.max=l,a.before.sort((e,t)=>t.bottom-e.bottom),a.after.sort((e,t)=>e.top-t.top)),a}classifyVerticalAlign(e,t,n,r){const i=this.getAlignByType(e,t,r),a={before:[],after:[],min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY};let s=n.left,l=n.right;return i.forEach(e=>{if(e.bounds){const t=this.judgePositionAlginComp(n,e.bounds);t===c.Left?a.before.push(e.bounds):t===c.Right&&a.after.push(e.bounds),s=o.min(s,e.bounds.left),l=o.max(l,e.bounds.right)}}),i.length&&(a.min=s,a.max=l,a.before.sort((e,t)=>t.left-e.left),a.after.sort((e,t)=>e.right-t.right)),a}parseNormalAlignInfo(e,t,n){return[{direction:"horizontal",targetDirection:u.Left,compareDirection:u.Left,alignInfos:t},{direction:"horizontal",targetDirection:u.Left,compareDirection:u.Center,alignInfos:t},{direction:"horizontal",targetDirection:u.Left,compareDirection:u.Right,alignInfos:t},{direction:"horizontal",targetDirection:u.Center,compareDirection:u.Left,alignInfos:t},{direction:"horizontal",targetDirection:u.Center,compareDirection:u.Center,alignInfos:t},{direction:"horizontal",targetDirection:u.Center,compareDirection:u.Right,alignInfos:t},{direction:"horizontal",targetDirection:u.Right,compareDirection:u.Left,alignInfos:t},{direction:"horizontal",targetDirection:u.Right,compareDirection:u.Center,alignInfos:t},{direction:"horizontal",targetDirection:u.Right,compareDirection:u.Right,alignInfos:t},{direction:"vertical",targetDirection:u.Top,compareDirection:u.Top,alignInfos:e},{direction:"vertical",targetDirection:u.Top,compareDirection:u.Middle,alignInfos:e},{direction:"vertical",targetDirection:u.Top,compareDirection:u.Bottom,alignInfos:e},{direction:"vertical",targetDirection:u.Middle,compareDirection:u.Top,alignInfos:e},{direction:"vertical",targetDirection:u.Middle,compareDirection:u.Middle,alignInfos:e},{direction:"vertical",targetDirection:u.Middle,compareDirection:u.Bottom,alignInfos:e},{direction:"vertical",targetDirection:u.Bottom,compareDirection:u.Top,alignInfos:e},{direction:"vertical",targetDirection:u.Bottom,compareDirection:u.Middle,alignInfos:e},{direction:"vertical",targetDirection:u.Bottom,compareDirection:u.Bottom,alignInfos:e}].reduce((e,t)=>{const{targetDirection:r,compareDirection:i,alignInfos:a,direction:s}=t;let l={before:[],after:[],min:0,max:0};l="horizontal"===s?this.classifyHorizontalAlign(r,i,n,a):this.classifyVerticalAlign(r,i,n,a);const c=e[r];return isFinite(l.min)&&isFinite(l.max)&&(e[r]=c?o.merge(c,l):l),e},{})}testMovingAlign(e){const{targetBounds:t,isKeyMove:n}=e;n&&(this.adsorptionDistance.comp=0);const r=this.testAlignInfo(e),{vertical:o,horizontal:a,diff:s}=this.chooseAlignType(r),l=i.offsetBounds(t,s),c=this.parseNormalAlignInfo(o,a,l),u=[...o,...a].filter(e=>e.type.indexOf("SameAlign")>-1).map(e=>{const{sameBounds:t,bounds:n}=e;if((null==t?void 0:t.length)&&n){let r=t[0];r=e.type===v.TopSameAlign||e.type===v.BottomSameAlign?this.computedVerticalBetweenBounds(l,n):this.computedHorizontalBetweenBounds(l,n),t.splice(0,1,r)}return e});return{bounds:l,normalAlign:c,sameAlign:u,sameSize:[]}}testResizingAlign(e,t,n,r,i,a,s){const l=this.parseResizeDirection(r),c=this.testAlignInfo({activeContainer:e,selectCompIDs:t,targetBounds:n,offset:i,grid:a,layout:s},l),{vertical:u,horizontal:d,diff:h}=this.chooseAlignType(c,l),p=o.depthClone(n),f=[...u,...d],m=this.classifyAlignType(f);l.forEach(e=>{const t=m.get(e);if(null==t?void 0:t.length){const{left:t,top:n}=h;e===y.Left?(p.left+=t,p.width-=t):e===y.Right?(p.right+=t,p.width+=t):e===y.Top?(p.top+=n,p.height-=n):e===y.Bottom&&(p.bottom+=n,p.height+=n)}});const g=this.parseNormalAlignInfo(u,d,p),v=f.filter(e=>e.type.indexOf("SizeAlign")>-1&&e.bounds).map(e=>e.bounds);return{bounds:p,normalAlign:g,sameAlign:[],sameSize:v}}}}(t.DimensionHelper||(t.DimensionHelper={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(178),o=n(178),i=n(47),a=n(435);class s{constructor(e){this.path=e}execute(){throw new Error("未重写execute方法!")}undo(){throw new Error("未重写undo方法!")}}class l{constructor(e){this.path=e,this.unStack=[],this.undoIndex=-1}execute(e){this.unStack.splice(this.undoIndex+1),this.unStack.push(e),this.undoIndex++,e.execute()}undo(e){if(-1!==this.undoIndex){const t=this.unStack[this.undoIndex];e(t.type),this.undoIndex--,t.undo()}}redo(){if(this.undoIndex<this.unStack.length-1){this.undoIndex++;this.unStack[this.undoIndex].execute()}}}class c extends s{constructor(e,t,n,r,o){super(n),this.seg=e,this.index=t,this.prevSeg1=r,this.prevSeg2=o,this.done=!0;const i=this.index<=0?this.path.segments.length-1:this.index-1,a=this.path.segments[i],s=this.path.segments[this.index];a&&s&&(this.curPrevHandleOut=a.handleOut.clone(),this.curNextHandleIn=s.handleIn.clone())}execute(){var e;o.project&&o.project.deselectAll(),(null===(e=this.seg)||void 0===e?void 0:e.point)&&(this.insertSeg=new r.Segment(this.seg.point),this.path.activeSegment=this.path.insert(this.index,this.insertSeg),this.insertSeg.handleIn=this.seg.handleIn.clone(),this.insertSeg.handleOut=this.seg.handleOut.clone(),this.path.activeSegment.selected=!0,this.done||(this.insertSeg.previous.handleOut=this.curPrevHandleOut,this.insertSeg.next.handleIn=this.curNextHandleIn,this.done=!0))}undo(){o.project&&o.project.deselectAll(),this.insertSeg&&"number"==typeof this.insertSeg.index?this.insertSeg&&this.insertSeg.remove():this.path.segments[this.index].remove();const e=this.index<=0?this.path.segments.length-1:this.index-1;this.prevSeg1&&this.prevSeg2&&this.done&&(this.path.segments[e].handleOut=this.prevSeg1.handleOut,this.path.segments[this.index].handleIn=this.prevSeg2.handleIn,this.done=!1),this.path.lastSegment&&(this.path.lastSegment.previous?this.path.activeSegment=this.path.lastSegment.previous:this.path.activeSegment=this.path.firstSegment,this.path.activeSegment.selected=!0)}}class u extends s{constructor(e,t,n,r){super(n),this.seg=e,this.index=t,this.dSeg=r}execute(){o.project&&o.project.deselectAll(),this.path.activeSegment=this.path.insert(this.index,this.seg),this.path.activeSegment.selected=!0}undo(){o.project&&o.project.deselectAll(),"number"==typeof this.seg.index?this.seg.remove():this.path.segments&&this.path.segments[this.index].remove(),this.path.lastSegment&&(this.path.lastSegment===this.dSeg?this.path.lastSegment.previous&&(this.path.activeSegment=this.path.lastSegment.previous):this.path.activeSegment=this.path.lastSegment),this.path.activeSegment&&(this.path.activeSegment.selected=!0)}}class d extends s{constructor(e,t,n){super(e),this.prevIndex=t,this.radius=n,this.prevSegs=[];const r=this.path.segments;r&&t.forEach(e=>{if(r[e]){const t=r[e].clone();t.radius=r[e].radius,this.prevSegs.push({index:e,seg:t})}else this.prevSegs.push({index:e,seg:void 0})})}execute(){const e=this.path.segments;e&&e.forEach((e,t)=>{this.prevIndex.includes(t)&&(e.radius=this.radius)})}undo(){const e=this.path.segments;e&&e.forEach((e,t)=>{if(this.prevIndex.includes(t)){const n=this.prevSegs.find(e=>e.index===t);(null==n?void 0:n.seg)&&(e.radius=n.seg.radius)}})}}class h extends s{constructor(e,t,n){super(e),this.prevIndex=t,this.segType=n,this.prevSegs=[];const r=this.path.segments;r&&t.forEach(e=>{if(r[e]){const t=r[e].clone();t.type=r[e].type,this.prevSegs.push({index:e,seg:t})}else this.prevSegs.push({index:e,seg:void 0})})}execute(){const e=this.path.segments;e&&e.forEach((e,t)=>{var n,o;if(this.prevIndex.includes(t)){if(i.getSegType(e)!==this.segType)switch(this.segType){case a.SegType.Straight:e.handleIn=new r.Point(0,0),e.handleOut=new r.Point(0,0);break;case a.SegType.Mirrored:if(e.smooth(),e.handleOut){const t=e.handleOut.x,n=e.handleOut.y;e.handleIn=new r.Point(-t,-n)}break;case a.SegType.Asymmetric:if(!e.isSmooth()&&(e.smooth(),e.handleOut)){const t=e.handleOut.x,n=e.handleOut.y;e.handleIn=new r.Point(-t,-n)}break;case a.SegType.Disconnected:if((!(null===(n=e.handleIn)||void 0===n?void 0:n.length)||!(null===(o=e.handleOut)||void 0===o?void 0:o.length))&&(e.smooth(),e.handleOut)){const t=e.handleOut.x,n=e.handleOut.y;e.handleIn=new r.Point(-t,-n)}}e.type=this.segType}})}undo(){const e=this.path.segments;e&&e.forEach((e,t)=>{if(this.prevIndex.includes(t)){const n=this.prevSegs.find(e=>e.index===t);(null==n?void 0:n.seg)&&(e.type=n.seg.type,e.handleIn=n.seg.handleIn,e.handleOut=n.seg.handleOut)}})}}class p extends s{constructor(e,t){if(super(e),this.dSeg=t,this.prevSegs=[],this.prevIndex=[],this.path.segments){const e=this.path.segments.filter(e=>{if(e.selected)return this.prevIndex.push(e.index),!0});this.prevSegs=e.map(e=>e.clone())}}execute(){var e,t,n;const r=this.path.segments.filter(e=>this.prevIndex.includes(e.index)),i=Math.min(...this.prevIndex),a=Math.max(...this.prevIndex),s=null===(e=this.path.segments[i])||void 0===e?void 0:e.next,l=null===(t=this.path.segments[a])||void 0===t?void 0:t.previous;r.map(e=>e.remove()),"number"==typeof(null==s?void 0:s.index)&&s!==this.dSeg?this.path.activeSegment=s:"number"==typeof(null==l?void 0:l.index)?this.path.activeSegment=l:this.path.lastSegment!==this.dSeg?this.path.activeSegment=this.path.lastSegment:this.path.firstSegment&&(this.path.activeSegment=this.path.firstSegment),null===(n=o.project)||void 0===n||n.deselectAll(),this.path.activeSegment&&(this.path.activeSegment.selected=!0)}undo(){o.project&&o.project.deselectAll(),this.prevSegs&&this.prevSegs.length>0&&this.prevSegs.map((e,t)=>{const n=this.path.insert(this.prevIndex[t],e);n.selected=!0,this.path.activeSegment=n})}}class f extends s{constructor(e,t){super(e),this.path.activeSegment&&(this.curSeg=this.path.activeSegment.clone(),this.prevSeg=t,this.index=this.path.activeSegment.index)}execute(){this.curSeg&&this.path.segments&&"number"==typeof this.index&&(this.curSeg.selected=!0,this.path.segments[this.index].handleIn=this.curSeg.handleIn,this.path.segments[this.index].handleOut=this.curSeg.handleOut,i.updateSegType(this.path.segments[this.index]))}undo(){this.prevSeg&&this.path.segments&&"number"==typeof this.index&&(this.path.segments[this.index].handleIn=this.prevSeg.handleIn,this.path.segments[this.index].handleOut=this.prevSeg.handleOut,this.path.segments[this.index].type=this.prevSeg.type)}}class m extends s{constructor(e){super(e)}toggleType(){if(this.path.activeSegment){const e=this.path.activeSegment.handleIn,t=this.path.activeSegment.handleOut;if(e&&t&&t.isClose(e,2)){this.path.activeSegment.smooth();const n=t.x,o=t.y;this.path.activeSegment.handleIn=new r.Point(-n,-o),this.path.activeSegment.isSmooth()&&!e.isClose(t,2)||(this.path.activeSegment.handleIn=new r.Point(-35,0),this.path.activeSegment.handleOut=new r.Point(35,0)),this.path.activeSegment.type=a.SegType.Mirrored}else this.path.activeSegment.handleIn=this.path.activeSegment.handleOut=null,this.path.activeSegment.type=a.SegType.Straight}}execute(){this.toggleType()}undo(){this.toggleType()}}class g extends s{constructor(e){super(e)}execute(){this.path.closePath()}undo(){this.path.closed=!1}}class v extends s{constructor(e,t){super(e),this.done=!0,this.selectedSegsIndex=[],this.point=t.clone(),this.path.segments.map(e=>{e.selected&&this.selectedSegsIndex.push(e.index)}),this.path.activeSegment&&(this.activeIndex=this.path.activeSegment.index)}execute(){this.done||(o.project&&o.project.deselectAll(),this.path.segments.map(e=>{this.selectedSegsIndex.includes(e.index)&&(e.point=e.point.add(this.point),e.selected=!0)}),"number"==typeof this.activeIndex&&(this.path.activeSegment=this.path.segments[this.activeIndex]),this.done=!0)}undo(){this.done&&(o.project&&o.project.deselectAll(),this.path.segments.map(e=>{this.selectedSegsIndex.includes(e.index)&&(e.point=e.point.subtract(this.point),this.path.activeSegment=e,e.selected=!0)}),"number"==typeof this.activeIndex&&(this.path.activeSegment=this.path.segments[this.activeIndex]),this.done=!1)}}t.default=class{constructor(e){this.path=e,this.undoManager=new l(e)}undo(e){this.undoManager.undo(e)}redo(){this.undoManager.redo()}insertSegment(e,t,n,r,o){const i=new c(e,t,n,r,o);this.undoManager.execute(i)}addSegment(e,t,n,r){const o=new u(e,t,n,r);this.undoManager.execute(o)}removeSegment(e,t){const n=new p(e,t);this.undoManager.execute(n)}removeSelectedSegments(e,t){const n=new p(e,t);this.undoManager.execute(n)}setSelectedSegmentsRadius(e,t){var n;const r=[];null===(n=e.segments)||void 0===n||n.forEach(e=>{e.selected&&r.push(e.index)});const o=new d(e,r,t);this.undoManager.execute(o)}setSelectedSegmentsType(e,t){var n;const r=[];null===(n=e.segments)||void 0===n||n.forEach(e=>{e.selected&&r.push(e.index)});const o=new h(e,r,t);this.undoManager.execute(o)}handlesMove(e,t){if(this.path.activeSegment){const n=this.path.activeSegment.handleIn,r=this.path.activeSegment.handleOut;if(n.equals(t.handleIn)&&r.equals(t.handleOut))return;const o=new f(e,t);this.undoManager.execute(o)}}togglePointType(e){if(this.path.activeSegment){const t=new m(e);this.undoManager.execute(t)}}closePath(e){const t=new g(e);this.undoManager.execute(t)}keyDownMove(e,t){const n=new v(e,t);this.undoManager.execute(n)}pointsMove(e,t){const n=new v(e,t);this.undoManager.execute(n)}}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(133),o=n(52),i=n(1338);class a extends i.default{constructor(){super(...arguments),this.getOriginPositionAccordingRotatingInfo=(e,t,n)=>{const r=Math.sqrt(Math.pow(n.height/2,2)+Math.pow(n.width/2,2)),o=Math.PI-Math.atan(n.height/n.width),i=o-t/180*Math.PI,a=e.x-r*Math.cos(i),s=-e.y-r*Math.sin(i);return{x:a+r*Math.cos(o),y:-(s+r*Math.sin(o))}}}getBoxPointsInParent(e){let t=o.getRectPoints({x:0,y:0},e||this.size);t=this.rotatePointsInBox(t);const n=this.position;return r.offsetPoints(t,{x:n.x,y:n.y})}getBoxPointsInArtboard(e=!0){let t=o.getRectPoints({x:0,y:0},this.size);return t=this.rotatePoints(t,e),t}rotatePointsInBox(e){let t=e;const n=this.size,r={x:n.width/2,y:n.height/2};return this.rotate&&(t=o.centerRotatePoints(e,r,this.rotate)),t}recoveryRotatedPoints(e){const t=[];let n=this;for(;n;)t.push(n),n=n.parent;let i=e;for(n=t.pop();n;){const e=n.size,a=n.position,s={x:a.x+e.width/2,y:a.y+e.height/2};n.rotate&&(i=o.centerRotatePoints(i,s,-n.rotate)),i=r.offsetPoints(i,{x:-a.x,y:-a.y}),n=t.pop()}return i}rotatePoints(e,t=!1){let n=this.rotatePointsInBox(e);if("artboard"===this.data.type&&t)return n;const o=this.position;return n=r.offsetPoints(n,{x:o.x,y:o.y}),this.parent&&(n=this.parent.rotatePoints(n,t)),n}getRotateAngleInRoot(){const e=this.getBoxPointsInArtboard(!1),t=r.getCenterPoint(e),n=(e[1].x+e[2].x)/2,o=(e[1].y+e[2].y)/2;return Math.atan2(o-t.y,n-t.x)/Math.PI*180%360}getRotateCenterBounds(){const e=this.getBoxPointsInArtboard(!1),t=r.getCenterPoint(e),n=this.size,o=t.x-n.width/2,i=t.y-n.height/2;return{left:o,top:i,width:n.width,height:n.height,right:o+n.width,bottom:i+n.height}}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28),o=n(40),i=n(12),a=n(29),s=n(1339),l=n(6),c=n(1340),u=n(17);class d extends c.default{constructor(e,t,n){super(e,t,n),this.parent=t}get isInCanvasPanel(){return!!this.parent&&(!!this.parent.isArtboard||(this.parent instanceof u.UIPanelComponent||this.parent.componentType===l.CCanvasPanel))}get isLayoutCenterAtHorizontal(){const e=this.data.layout;return this.isInCanvasPanel&&e.responsive&&!e.auto&&e.horizontal===o.HorizontalAlign.Center}get isLayoutMiddleAtVertical(){const e=this.data.layout;return this.isInCanvasPanel&&e.responsive&&!e.auto&&e.vertical===o.VerticalAlign.Middle}getRootNode(){let e=this;for(;e.parent;)e=e.parent;return e}setAnchors(e){let t=this.getCurrentPropertiesPath("anchors");const n={do:[{op:"replace",path:t,value:e}],undo:[{op:"replace",path:t,value:this.data.layout}]},r=this.size;return r.width!==this.data.size.width&&(t=this.getCurrentSizePath()+"/width",n.do.push(i.Ops.replace(t,r.width)),n.undo.push(i.Ops.replace(t,this.data.size.width))),r.height!==this.data.size.height&&(t=this.getCurrentSizePath()+"/height",n.do.push(i.Ops.replace(t,r.height)),n.undo.push(i.Ops.replace(t,this.data.size.height))),n}setSize(e){const t=this.getCurrentSizePath();return{do:[{op:"replace",path:t,value:e}],undo:[{op:"replace",path:t,value:this.data.size}]}}get parentSize(){return this.parent?this.parent.size:{width:0,height:0}}getViewBoundsInParent(){return a.getBoundsInParent({position:this.position,size:this.size,rotate:this.rotate})}getViewBoundsInArtboard(){return a.getCompBoundsInArtboard(this)}getViewBoundsInPage(){return a.getCompBoundsInPage(this)}getViewBoundsInScreen(e,t=1){let n=this.getViewBoundsInPage();return n=r.scale(n,t),n=r.offsetBounds(n,e),n}intersectBounds(e,t,n){let o;const i=this.id,a=s.default.get(i);if(a?o=a:(o="page"===t?this.getViewBoundsInPage():this.getViewBoundsInArtboard(),s.default.set(i,o)),n)return r.isContainer(e,o);if("line"===this.data.type&&!this.rotate){let{startPoint:t,endPoint:n}=this.value;t=t||{x:0,y:0},n=n||{x:this.data.size.width,y:this.data.size.height};const i={x:o.left,y:o.top},a=r.offsetPoint(t,i),s=r.offsetPoint(n,i);return r.isIntersetLine(e,{start:a,end:s})}return 0===o.height?(o.height=1,o.top=o.top-.5,o.bottom=o.bottom+.5):0===o.width&&(o.width=1,o.left=o.left-.5,o.right=o.right+.5),r.isIntersect(e,o)}isPointAt(e,t,n){const o=this.getViewBoundsInScreen(t,n),{type:i}=this.data;if("line"===i){let{startPoint:t,endPoint:i}=this.value;t=t||{x:0,y:0},i=i||{x:this.data.size.width,y:this.data.size.height};const a={x:t.x*n+o.left,y:t.y*n+o.top},s={x:i.x*n+o.left,y:i.y*n+o.top},l=r.initBoundsWithPositionAndSize({x:e.left-5,y:e.top-5},{width:10,height:10});return r.isIntersetLine(l,{start:a,end:s})}{let t=o;return t.height<n&&(t=r.inflate(t,{top:n/2,left:0})),t.height<=1&&(t=r.inflate(t,{left:0,top:.5})),t.width<n&&(t=r.inflate(t,{top:0,left:n/2})),t.width<=1&&(t=r.inflate(t,{left:.5,top:0})),r.isContainerPoint(t,e)}}move(e){const t=[],n=[],{left:r,top:o}=e,a=this.position;return n.push(i.Ops.replace("/position/x",a.x)),n.push(i.Ops.replace("/position/y",a.y)),t.push(i.Ops.replace("/position/x",a.x+r)),t.push(i.Ops.replace("/position/y",a.y+o)),{do:t,undo:n}}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(436);const o=new class{constructor(){this._limit=1e3,this._map=new r.LRUMap(this._limit)}clear(){this._map.clear()}get(e){return this._map.get(e)}set(e,t){this._map.set(e,t)}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(8),i=n(24),a=n(55),s=n(6),l=n(50),c=n(158);t.default=class{constructor(e,t,n){this.parent=t,this.isPreview=n,this.getStatePath=(e,t)=>{let n=t;return"/"===n[0]&&(n=n.substring(1)),`/states/${e}/${n}`},this._data=e,this.updateSymbolData()}updateSymbolData(){}mergeState(e,t){return o.merge(e,t,(e,t,n)=>["anchors","size","colorStops","color","radius","dashArray","data","cells","rows","columns"].includes(e)?Array.isArray(n)?[...n]:"object"==typeof n?Object.assign({},n):n:"value"===e&&(Array.isArray(n)||Array.isArray(t))?[...n||t]:"properties"===e?l.mergeProperties(t,n):"relation"===e?t:void 0)}getFontSize(){let e=a.DefaultFontSize;const{textStyle:t,textFormat:n}=this.properties;return e=n?n.fontSize||e:(null==t?void 0:t.fontSize)||e,e}get data(){return this._data}get $data(){return this.data}get componentType(){return this.data.type}get symbolInfo(){return this._data.symbol}get version(){return""+this.data.v}get lib(){return this.data.lib}get fontSize(){return this.getFontSize()}get lineHeight(){return Math.round(1.4*this.fontSize)}get text(){return this.applyDefaultStateValueOnly?this.data.text||"":this.currentState.text||""}get _currentState(){var e,t;const{_currentState:n}=this.data;return n||(this.data.disabled?i.PredefinedStates.disabled:r.isUndefined(this.data.selected)?(null===(t=null===(e=this.parent)||void 0===e?void 0:e.parent)||void 0===t?void 0:t.$data.type)!==s.CContentPanel&&this.parent?this.parent._currentState:void 0:this.data.selected?i.PredefinedStates.checked:i.PredefinedStates.unchecked)}get currentState(){let e=this._currentState;if(r.isUndefined(e)||!this.hasState(e))return this.data;const t=this.data.states[e];return this.mergeState(this.data,t)}get properties(){const e=this.data.properties,t=this.currentState.properties||e;return t.placeholder&&this.applyDefaultStateValueOnly&&(t.placeholder=e.placeholder),t}get realID(){return this.data._id}get id(){return"artboard"===this.data.type?"ROOT":this.data._id}get ownerArtboardID(){let e=this;for(;e.parent;)e=e.parent;return e.realID}get name(){return this.data.name||null}get alias(){return this.data.alias}get rotate(){return this.currentState.rotate||0}get lockedRatio(){return this.data.size.lockedRatio||!1}get layout(){return this.data.layout}get position(){return this.currentState.position||this.data.position}get size(){const e=this.currentState.size,t=this.data.size;return e||t}get flip(){return this.data.flip}get hidden(){let e=!!this.currentState.hidden;return this.isPreview&&!e&&this.parent&&(e=this.parent.hidden),e}get disabled(){return!!this.data.disabled||!!this.parent&&this.parent.disabled}chainedVersion(){if("artboard"===this.data.type)return"$";let e="0";return this.data.v&&(e=this.data.v.toString(32)),this.parent&&(e+=this.parent.chainedVersion()),e}get _scale(){return Object.assign({x:1,y:1},this.currentState._scale||this.data._scale)}get value(){return this.applyDefaultStateValueOnly?this.data.value:this.currentState.value}get opacity(){const e=this.currentState.opacity;return r.isUndefined(e)?100:e}get _animation(){return this.data._animation}get interactions(){return this.data.interaction}get autoSize(){return this.data.autoSize||!1}get states(){return this.data.states||{}}get locked(){return this.data.locked}get selected(){return this.data.selected||!1}get remark(){return this.data.remark}getCurrentPath(e){if(!e)return this.data._currentState?"/states/"+this.data._currentState:"";let t=this.data._currentState;if(t||(this.data.disabled?t="disabled":this.data.selected&&(t="checked")),t){if(this.data.states[t])return`/states/${t}/${e}`;console.warn(`/states/${t}/${e}`,"这个属性路径不存在,请先判断")}return"/"+e}getValuePath(e){return[s.CCompoundPath,s.CPath].includes(e)?"/value":this.getCurrentPropertiesPath("value")}getCurrentPropertiesPath(e){const t=e.replace(/^\/*/,""),n="/"+t;if(this.applyDefaultStateValueOnly&&/^(text|value|properties\/placeholder)\/?$/.test(t))return n;const o=this.currentStateID,a=this.data._currentState;return o&&o!==i.PredefinedStates.normal?`./states/${this.currentStateID}/${t}`:r.isUndefined(o)&&o!==i.PredefinedStates.normal&&a!==i.PredefinedStates.normal?this.disabled&&this.states.disabled?"./states/disabled/"+t:this.data.selected&&this.states.checked?"./states/checked/"+t:n:n}getFlipPath(e){return e===c.IFlipModel.Horizontal?"./flip/horizontal":"./flip/vertical"}getCurrentSizePath(e){return!this.currentStateID||[s.CPath,s.CCompoundPath].includes(this.componentType)||this.currentStateID===i.PredefinedStates.normal||!e&&i.isPredefinedState(this.currentStateID)?"/size":`/states/${this.currentStateID}/size`}getCurrentPositionPath(e){return!this.currentStateID||this.currentStateID===i.PredefinedStates.normal||[s.CPath,s.CCompoundPath].includes(this.componentType)||!e&&i.isPredefinedState(this.currentStateID)?"/position":`/states/${this.currentStateID}/position`}getCurrentRotatePath(){return!this.currentStateID||[s.CPath,s.CCompoundPath].includes(this.componentType)||i.isPredefinedState(this.currentStateID)?"/rotate":`/states/${this.currentStateID}/rotate`}get currentStateID(){const{disabled:e,selected:t,_currentState:n,states:r}=this.data;if(n!==i.PredefinedStates.normal)return n||(e&&r[i.PredefinedStates.disabled]?i.PredefinedStates.disabled:t&&r[i.PredefinedStates.checked]?i.PredefinedStates.checked:void 0)}getCurrentStateIDByPreview(){let e=this.data._currentState;return e||(this.data.disabled?e=i.PredefinedStates.disabled:this.data.selected&&(e=i.PredefinedStates.checked)),e}hasState(e){return!!this.states&&!r.isUndefined(this.states[e])}hasActiveState(e){if(e===i.PredefinedStates.normal)return!0;if(this.states){const t=this.states[e];if(!r.isUndefined(t))return t.enabled}return!1}get applyDefaultStateValueOnly(){return{DEV_MODE:!1,isPrivateDeployment:!1,isOfflineDemo:!0}.isHuaWei}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28),o=n(8),i=n(12),a=n(369),s=n(95),l=n(85),c=n(17),u=n(114),d=n(35),h=n(34),p=n(96),f=n(6),m=n(277),g=n(40),v=n(6),y=n(62),b=n(116),w=n(7);class C extends c.UIComponent{constructor(e,t,n){super(e,t,n),this.parent=t,this.isPreview=n,this.isContainer=!0,this.isActived=!1,this.updateBoundsOfChildUsingRefTextStyle=(e,t)=>{const n={do:{},undo:{}};return this.components.forEach(r=>{var o,i,a,s,l;if(r.isContainer){const o=r.updateBoundsOfChildUsingRefTextStyle(e,t);d.coverPatches(n,o)}else{const c=null===(a=null===(i=null===(o=r.currentState)||void 0===o?void 0:o.properties)||void 0===i?void 0:i.textStyle)||void 0===a?void 0:a.ref;if((null===(l=m.CompTextStyleNameConfig[(null===(s=r.lib)||void 0===s?void 0:s.type)||r.type])||void 0===l?void 0:l.entireTextStyleName)===e){if(c&&c.includes("@properties")){const e=r.value,{textFormat:o,multiText:i}=r.properties,a={textFormat:t};o||(a.textFormat=Object.assign(Object.assign({},t),i||{}));const s=r.updateBoundsWithTextChange(e,a);d.coverPatches(n,s)}}else{const o="@properties."+e;if(c&&c===o){const{textFormat:e,multiText:o}=r.properties,i=r.value,a={textFormat:t};e||(a.textFormat=Object.assign(Object.assign({},t),o||{}));const s=r.updateBoundsWithTextChange(i,a);d.coverPatches(n,s)}}}}),n},this.updateResponsiveLayout=e=>{var t;const n={do:{[this.id]:[i.Ops.replace("/layout/responsive",e)]},undo:{[this.id]:[i.Ops.replace("/layout/responsive",null===(t=this.layout)||void 0===t?void 0:t.responsive)]}};let r;return this.isSealed&&(r=!0),this.type===f.CSelectPanel&&(r=!1),r||this.components.forEach(t=>{var r;if(t.isContainer){const r=t.updateResponsiveLayout(e);d.coverPatches(n,r)}else n.do[t.id]=[i.Ops.replace("/layout/responsive",e)],n.undo[t.id]=[i.Ops.replace("/layout/responsive",null===(r=t.layout)||void 0===r?void 0:r.responsive)]}),n},this.getChildWhichTypeIsText=()=>{const e=this.components;let t=[];return e.forEach(e=>{e.isContainer?t=t.concat(e.getChildWhichTypeIsText()):e.type===f.CText&&t.push(e)}),t},this.isContainerChild=e=>{let t=e.parent;for(;t;){if(t===this)return!0;t=t.parent}return!1},this.hasConnector=()=>this.components.filter(e=>e.isContainer?e.hasConnector():e.isConnector).length>0,this.components=[],this.doAfterCreate(),this.doCreateChildren()}afterAppendComponents(e){var t,n;const r=null===(n=null===(t=this.libData)||void 0===t?void 0:t.editor)||void 0===n?void 0:n.onAddChildren;return r?r(this,e):null}afterRemoveComponents(e){var t,n;const r=null===(n=null===(t=this.libData)||void 0===t?void 0:t.editor)||void 0===n?void 0:n.onRemoveChildren;return r?r(this,e):null}get version(){const e=super.version,t=this.components.map(e=>e.version);return t.unshift(e),t.join("-")}getCompForAdvanceEditor(){let e,t=[],n=this.libData;if(e=(null==n?void 0:n.isList)||this.isSealed&&this.type===v.CSelectPanel?this.components[0].toJSON():this.toJSON(),t.push(e),this.type===f.CSelect&&this.components[1]){let e=w.get(this.components[1],"components[0].components[0]");e&&t.push(e.toJSON())}return t}getComponentByAlias(e,t=!0){if(e){let n=this.components.find(t=>t.alias===e);if(!n&&t)for(let r=0,o=this.components.length;r<o;r++){const o=this.components[r];if(o.isContainer&&(n=o.getComponentByAlias(e,t),n))break}return n}}get componentsExceptConnector(){return this.components.filter(e=>!e.isConnector)}get compType(){var e;return(null===(e=this.libData)||void 0===e?void 0:e.type)||this.type}removeComponents(e){const t=e.filter(e=>!e.isConnector),{innerConnectComps:n,roundConnectComps:r,aloneConnectComps:o}=p.getInnerOrAroundConnect(this,e.map(e=>e.id)),a=[...t,...n,...o],s=a.map(e=>e.id),l=o.map(e=>e.id),c={do:{},undo:{}};r.filter(e=>!l.includes(e.id)).forEach(e=>{p.modifyConnectPatch(e,{x:0,y:0},c)});const u={do:{[this.id]:[i.Ops.removeChildren(s)]},undo:{[this.id]:a.map(e=>i.Ops.addChildren(""+this.components.findIndex(t=>t===e),[e.toJSON()]))}},h={[this.ownerArtboardID]:d.mergePatches(c,u)},f=this.afterRemoveComponents(e.map(e=>e.id));return f&&d.coverPatches(h[this.ownerArtboardID],f),{patches:h,newActiveGroup:this}}doAfterCreate(){}doCreateChildren(){this.data.components&&(this.components=l.makeComponents(this.data.components,this,this.isPreview))}getSuchChild(e,t=!0){const n=this.components;let r=[];return t?n.forEach(n=>{n.isContainer?r=r.concat(n.getSuchChild(e,t)):e(n)&&r.push(n)}):n.forEach(t=>{e(t)&&r.push(t)}),r}refreshComponents(){this.data.components&&(this.data.components.forEach((e,t)=>{const n=this.components.findIndex(t=>t.id===e._id);if(t===n){const n=this.components[t];return void(n instanceof c.UISymbolComponent?e.type===f.CSymbol?n.updateSymbolBounds():this.components.splice(t,1,l.makeUIComponent(e,this,this.isPreview)):e.type!==n.type&&this.components.splice(t,1,l.makeUIComponent(e,this,this.isPreview)))}if(-1===n)return void this.components.splice(t,0,l.makeUIComponent(e,this,this.isPreview));const r=this.components[n];this.components.splice(n,1),this.components.splice(t,0,r)}),this.components.forEach((e,t)=>{if(!this.data.components)return;this.data.components.find(t=>e.id===t._id)?e instanceof C&&e.refreshComponents():delete this.components[t]}),this.components=this.components.filter(e=>void 0!==e))}doChangeZOrderBefor(e,t){const n=e.length;if(0===n)return null;const r=[];this.components.forEach(t=>{e.includes(t.id)&&r.push(t.id)});const o=this.components.findIndex(e=>e.id===r[0]),s=1===n?o:this.components.findIndex(e=>e.id===r[n-1]);if(0===o&&(t===a.default.sendToBack||t===a.default.backForward))return null;if(s===this.components.length-1&&(t===a.default.frontForward||t===a.default.bringToFront))return null;const l=[...this.components],c=[...r];c.reverse(),t===a.default.bringToFront||t===a.default.backForward?r.forEach(e=>{const n=l.findIndex(t=>t.id===e),r=l[n];l.splice(n,1),t===a.default.bringToFront?l.push(r):l.splice(n-1,0,r)}):c.forEach(e=>{const n=l.findIndex(t=>t.id===e),r=l[n];l.splice(n,1),t===a.default.sendToBack?l.unshift(r):l.splice(n+1,0,r)});const u="artboard"===this.type?"ROOT":this.id,d={do:{[u]:[]},undo:{[u]:[]}};return(-1!==[a.default.bringToFront,a.default.frontForward].indexOf(t)?c:r).forEach(e=>{const t=this.components.findIndex(t=>t.id===e),n=l.findIndex(t=>t.id===e);d.do[u].push(i.Ops.move("/components/"+n,"/components/"+t)),d.undo[u].push(i.Ops.move("/components/"+t,"/components/"+n))}),{comps:l,patches:d}}doChangeZOrder(e,t){const n=this.doChangeZOrderBefor(e,t);return n?{patches:{[this.ownerArtboardID]:n.patches}}:{patches:null}}moveChildOrder(e,t){let n=e,r=t;r>n&&r--;const o="artboard"===this.type?"ROOT":this.id;return{do:{[o]:[i.Ops.move("/components/"+r,"/components/"+n)]},undo:{[o]:[i.Ops.move("/components/"+n,"/components/"+r)]}}}getFirstChildComponentByType(e){return this.components.find(t=>t.type===e)}getComponentByPoint(e,t){return this.getChildrenByPagePoint({x:e.left,y:e.top},{isRecursive:null==t?void 0:t.isRecursive,allowSealedChild:null==t?void 0:t.enterSealedComp,enterSymbol:null==t?void 0:t.enterSymbol,ignoreHiddenComp:null==t?void 0:t.ignoreHiddenComp})||void 0}getChildrenByPagePoint(e,t){const n=o.flatArray(this.components,e=>e.isContainer&&(null==t?void 0:t.isRecursive)?e.isSealed&&!(null==t?void 0:t.allowSealedChild)||e.isSymbol&&!(null==t?void 0:t.enterSymbol)?null:e.components:null).reverse(),{x:i,y:a}=e,s=[];for(let e=0;e<n.length;e++){if(n[e].hidden&&(null==t?void 0:t.ignoreHiddenComp))continue;const o=n[e].getViewBoundsInPage();if(r.isContainerPoint(o,{left:i,top:a}))return n[e];const l=n[e].parent;l===this||s.includes(l)||s.push(l)}const l=[...s],c=e=>{e.parent===this||l.includes(e.parent)||(l.push(e.parent),c(e.parent))};s.forEach(c);for(let e=0;e<l.length;e++){const t=l[e].getViewBoundsInPage();if(r.isContainerPoint(t,{left:i,top:a}))return l[e]}return null}resizeChildren(e,t,n){return this.resizeChildrenBase(e,t,n,!0)}resizeChildrenWithoutUpdateSelf(e,t,n){return this.resizeChildrenBase(e,t,n,!1)}resizeChildrenBase(e,t,n,r=!0){let o={do:{},undo:{}};const a=s.getViewBoundsOfComponents(e),{offset:l,backupAllCompsLayout:p,willRemoveComps:m}=t,w=p||u.collectComponentsLayout(e,a),C=e.reduce((e,t)=>e=e&&t.layout.responsive,!0),_={width:a.width+l.right-l.left,height:a.height+l.bottom-l.top},x=Object.assign({container:{before:{position:{x:a.left,y:a.top},size:{width:a.width,height:a.height}},after:{position:{x:a.left+l.left,y:a.top+l.top},size:_},isResponsive:C,isResizeMySelf:!0!==n.isScale&&1===e.length},scale:{h:_.width/(a.width||1),v:_.height/(a.height||1)}},n);if(e.length>1){const e=Math.abs(_.width-a.width)>1;!C&&n.shift&&(e?x.scale.v=x.scale.h:x.scale.h=x.scale.v)}const S=e.map(e=>{let t=w.get(e);this.type===f.CCompoundPath&&(t={responsive:!0,auto:!1,horizontal:g.HorizontalAlign.LeftAndRight,vertical:g.VerticalAlign.TopAndBottom,fixedHeight:!1,fixedWidth:!1});const n=e.resizeHandler2(l,t,x,p);return n.patches&&d.coverPatches(o,n.patches),n.position=h.getNewPositionWhenCenter(e,n.position,n.size,e.parent.size),{id:e.id,type:h.ComponentChangeType.Edit,position:n.position,size:n.size,rotate:n.rotate}}),k=r?this.getPositionPatchesOfChildrenChanged(S,!0,m):c.UIPanelComponent.prototype.getPositionPatchesOfChildrenChanged.bind(this)(S,!0);return k.patches&&d.coverPatches(o,k.patches),e.forEach(e=>{if([f.CText,f.CParagraph].includes(e.type)){const{multiText:t,textFormat:n}=e.properties;if((n||t)&&!(n||t).wrap){const r=e.getCurrentPropertiesPath("properties/"+(n?"textFormat":"multiText")),a=Object.assign(Object.assign({},n||t),{wrap:!0}),s=i.Ops.replace(r,a),l=i.Ops.replace(r,t);o.do[e.id]?(o.do[e.id].push(s),o.undo[e.id].push(l)):(o.do[e.id]=[s],o.undo[e.id]=[l])}}const t=e.autoSize;if([v.CText,v.CPureText].includes(e.type)&&t){const n=(new y.ArtboardPatchesClass).getPatchesByCompChange(e.id,(new b.ComponentPatchesClass).getAttrChangePatches(e.id,"./autoSize",{oldVal:t,newVal:!t}));d.coverPatches(o,n)}const r=(n.scalePercent||100)/100;if(n.changeShadow){const t=this.getShadowPatches(e,r);t&&d.coverPatches(o,t)}if(n.changeRadius){const t=this.getRadiusPatches(e,r);t&&d.coverPatches(o,t);const n=this.getThicknessPatches(e,r);n&&d.coverPatches(o,n)}const a=this.getScaleTextFormatPatches(e,r);a&&d.coverPatches(o,a)}),e.forEach(e=>{const t=S.find(t=>t.id===e.id);if("symbol"===e.type){const t=h.extractDynamicInfoFromPatch(o);e.components.forEach(e=>{var n;const r=null===(n=t[e.id])||void 0===n?void 0:n.size;if(r){const t=e.getSealedCompSpecialResizePatches(r);t&&(o=d.assignPatches(o,t))}})}const n=e.getSealedCompSpecialResizePatches(t.size);n&&(o=d.assignPatches(o,n))}),o}getShadowPatches(e,t){if(!e.properties.shadow)return;const n=o.scaleObjectValue(Object.assign({},e.properties.shadow),t,{filter:e=>Math.round(e)});return(new y.ArtboardPatchesClass).getPatchesByCompChange(e.id,(new b.ComponentPatchesClass).getAttrChangePatches(e.id,"./properties/shadow",{oldVal:e.properties.shadow,newVal:n}))}getThicknessPatches(e,t){const n=e.properties.stroke;if(n)return n.thickness=Math.round(n.thickness*t),(new y.ArtboardPatchesClass).getPatchesByCompChange(e.id,(new b.ComponentPatchesClass).getAttrChangePatches(e.id,"./properties/stroke",{oldVal:e.properties.stroke,newVal:n}))}getRadiusPatches(e,t){if(!e.properties.radius)return;const n=o.scaleObjectValue(Object.assign({},e.properties.radius),t,{filter:e=>Math.round(e)});return(new y.ArtboardPatchesClass).getPatchesByCompChange(e.id,(new b.ComponentPatchesClass).getAttrChangePatches(e.id,"./properties/radius",{oldVal:e.properties.radius,newVal:n}))}getScaleTextFormatPatches(e,t){if(!e.properties.textFormat)return;const n=Object.assign({},e.properties.textFormat),{fontSize:r,lineHeight:i,lineHeightEx:a,letterSpace:s}=n;return r&&(n.fontSize=o.betweenNumber(Math.round(r*t),{min:8,max:300})),i&&(n.lineHeight=o.betweenNumber(Math.round(i*t),{min:0,max:999})),a&&(n.lineHeightEx=o.betweenNumber(Math.round(a*t),{min:0,max:999})),s&&(n.letterSpace=o.betweenNumber(Math.round(s*t),{min:0,max:20})),(new y.ArtboardPatchesClass).getPatchesByCompChange(e.id,(new b.ComponentPatchesClass).getAttrChangePatches(e.id,"./properties/textFormat",{oldVal:e.properties.textFormat,newVal:n}))}temporaryAddChild(e,t){const n=this.components.map(e=>e.id),r=e.filter(e=>!n.includes(e.id));void 0!==t?this.components.splice(t,0,...r):r.forEach(e=>{this.components.push(e)})}temporaryRemoveChild(e){e.map(e=>e.id).forEach(e=>{const t=this.components.findIndex(t=>t.id===e);-1!==t&&this.components.splice(t,1)})}get interactions(){if(this.isSealed){const e=this.libData;if((null==e?void 0:e.isList)&&this.selectedItem)return this.selectedItem.interactions}return super.interactions}}t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(40),o=n(12),i=n(28),a=n(8),s=n(17),l=n(114),c=n(35),u=n(34),d=n(96),h=n(6);class p extends s.UIContainerComponent{addComponents(e,t=-1){return{patches:{[this.ownerArtboardID]:{do:{[this.id]:[o.Ops.addChildren(""+t,e)]},undo:{[this.id]:[o.Ops.removeChildren(e.map(e=>e._id))]}}}}}getPositionPatchesOfChildrenChanged(e,t=!1){const n={do:{},undo:{}};return u.updateEditComponentsPatches(this.components,e,{x:0,y:0},n),d.updateConnectComponentPatches(this,e,n),{patches:n}}resizeHandler2(e,t,n,o){const{size:s}=this,d=a.depthClone(n),p=super.resizeHandler2(u.getAdjustedZeroOffset(e),t,d),f=this.getRealOffsetForChild(e,p);if(a.sameNumber(f.right,f.left)&&a.sameNumber(f.top,f.bottom))return{position:p.position,size:p.size,rotate:this.rotate};const m=o||l.collectComponentsLayout(this.componentsExceptConnector,i.createBoundsBySize(this.size)),g={do:{},undo:{}},v=this.getCoordinateOffset(p),y={container:{before:{position:{x:0,y:0},size:s},after:{position:this.getLeftTopChangeForChildren(p),size:p.size},isResponsive:this.layout.responsive},shift:n.shift,scale:{h:p.size.width/s.width,v:p.size.height/s.height}},b=this.isInSuchParent(e=>e.isSealed);if(this.components.length>0&&(b||this.layout.responsive||this.isSealed)){const e=this.components.filter(e=>!e.isConnector).map(e=>{const t=e.resizeHandler2(f,m.get(e),y);t.patches&&c.coverPatches(g,t.patches);let n={x:t.position.x+v.x,y:t.position.y+v.y};const o=m.get(e);let i;return 1===this.components.length&&this.type===h.CSymbol&&e.type===h.CLine&&(i={isLayoutMiddleAtVertical:o.vertical===r.VerticalAlign.Middle,isLayoutCenterAtHorizontal:o.horizontal===r.HorizontalAlign.Center}),n=u.getNewPositionWhenCenter(e,n,t.size,p.size,i),{id:e.id,type:u.ComponentChangeType.Edit,position:n,size:t.size,rotate:t.rotate}}),t=this.getPositionPatchesOfChildrenChanged(e);t.patches&&c.coverPatches(g,t.patches)}return{position:p.position,size:p.size,rotate:this.rotate,patches:g}}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(219),i=n(35),a=n(17),s=n(34);class l extends a.UIContainerComponent{constructor(){super(...arguments),this.canMoveChildren=!1}doAfterCreate(){super.refreshComponents(),o.reArrangeComponentsOfStackPanel(this.data)}doRefreshBefore(){super.refreshComponents(),o.reArrangeComponentsOfStackPanel(this.data)}refreshComponents(){this.doRefreshBefore(),super.refreshComponents()}moveChildren(e){return{[this.ownerArtboardID]:{do:{},undo:{}}}}addComponents(e,t=-1){const n={[this.ownerArtboardID]:{do:{[this.id]:[r.Ops.addChildren("-1",e)]},undo:{[this.id]:[r.Ops.removeChildren(e.map(e=>e._id))]}}},o=this.afterAppendComponents(e);return o&&i.coverPatches(n[this.ownerArtboardID],o),{patches:n}}getPositionPatchesOfChildrenChanged(e,t=!1){const n={do:{},undo:{}};return s.updateEditComponentsPatches(this.components,e,{x:0,y:0},n),{patches:n}}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8),o=n(12),i=n(95),a=n(17),s=n(29),l=n(28),c=n(35),u=n(34),d=n(114),h=n(96),p=n(24),f=n(52),m=n(6),g=n(30),v=n(158);class y extends a.UIContainerComponent{constructor(){super(...arguments),this.adjustSelfPosition=({x:e,y:t})=>{const n={do:{},undo:{}},o=this.parent,a=this.position;if(0!==e||0!==t){const s={x:e,y:t},l=a.x+e,c=a.y+t,u={x:0,y:0};if(o.isGroup){const e=o.components.filter(e=>e!==this);let{left:t,top:n}=i.getViewBoundsOfComponents(e)||{left:a.x,top:a.y};l<0?(s.x=-a.x,u.x=l):(u.x=r.min(t,l),u.x<0&&(s.x=0)),c<0?(s.y=-a.y,u.y=c):(u.y=r.min(n,c),u.y<0&&(s.y=0))}if(0!==s.x||0!==s.y){const{do:e,undo:t}=this.move({left:s.x,top:s.y,right:-s.x,bottom:-s.y});n.do[this.id]=e,n.undo[this.id]=t}if(o.isGroup&&(0!==u.x||0!==u.y)){o.components.filter(e=>e!==this).forEach(e=>{const{do:t,undo:r}=e.move({left:-u.x,top:-u.y,right:u.x,bottom:u.y});n.do[e.id]=t,n.undo[e.id]=r});const{do:e,undo:t}=this.parent.adjustSelfPosition(u);Object.keys(e).forEach(r=>{n.do[r]=e[r],n.undo[r]=t[r]})}}return n},this.refreshPatchesWithNewChildren=(e,t={do:{},undo:{}})=>{var n;const i=this.parent,u=(null===(n=this.parent)||void 0===n?void 0:n.type)===m.CGroup;if(1===e.length){const n=r.depthClone(e[0]);n._id=g.getNewID(),n.position=new a.UIComponent(n,this).getPositionWithoutParent(),n.rotate=(n.rotate||0)+this.rotate;const s=this.removeSelfPatches();c.mergePatches(t,s);const l={do:{[i.id]:[o.Ops.addChildren("-1",[n])]},undo:{[i.id]:[o.Ops.removeChildren([n._id])]}};if(c.mergePatches(t,l),u){const e=this.parent.components.map(e=>r.depthClone(e.toJSON()));r.removeItemFromArray(e,e.find(e=>e._id===this.id)),e.push(n),this.parent.refreshPatchesWithNewChildren(e,t)}return}const d=l.union(...e.map(e=>{const{size:t,rotate:n,position:r}=e;return s.getBoundsInParent({size:t,rotate:n||0,position:r})})),h=this.getCurrentSizePath(),p=this.getCurrentPositionPath(),v=s.mapVectorToTargetCoordinates({x:d.left,y:d.top},this.rotate),y=this.getBoxPointsInParent()[0],b={x:y.x+v.x,y:y.y+v.y},w=Object.assign(Object.assign({},this.size),{width:d.width,height:d.height}),C=f.getCenter(b,w,this.rotate),_=f.getNWPoint(C,w,0),x={do:{[this.id]:[o.Ops.replace(h,w),o.Ops.replace(p,_)]},undo:{[this.id]:[o.Ops.replace(h,this.size),o.Ops.replace(p,this.position)]}};if(c.mergePatches(t,x),d.left||d.top){const n={do:{},undo:{}};e.forEach(e=>{const t=this.components.find(t=>t.id===e._id);if(t){const r=t.getCurrentPositionPath(),i={x:e.position.x-d.left,y:e.position.y-d.top};n.do[t.id]=[o.Ops.replace(r,i)],n.undo[t.id]=[o.Ops.replace(r,t.position)]}}),c.mergePatches(t,n)}if(u){const e=r.depthClone(i.components.map(e=>{const t=r.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t})),n=e.find(e=>e._id===this.id);n&&(n.size=w,n.position=_),i.refreshPatchesWithNewChildren(e,t)}}}get isGroup(){return!0}getSelfSize(){return super.size}fixedSize(e){this._sizeBeforeEdit=e?Object.assign({},this.size):void 0}getGroupMaskSize(){var e;return null!==(e=this._sizeBeforeEdit)&&void 0!==e?e:this.size}getChildrenBounds(){const e=this.getSelfSize(),t=this.components.filter(e=>!e.isConnector).map(e=>{const{position:t,size:n,rotate:r}=e;return s.getBoundsInParent({position:t,size:n,rotate:r||0})});return t.length?l.union(...t):l.createBoundsBySize(e)}doGetSize(){const e=this.getChildrenBounds();return{width:r.round(e.width),height:r.round(e.height)}}clearCacheSizeWithPreview(){this.cacheSize=void 0,this.clearChildGroupCacheSizeWithPreview()}clearChildGroupCacheSizeWithPreview(){this.components.forEach(e=>{e instanceof y&&e.clearCacheSizeWithPreview()})}get size(){if(this.isPreview){const{realSize:e}=this.toJSON();return e?(this.clearCacheSizeWithPreview(),e):(this.cacheSize||(this.cacheSize=this.doGetSize()),this.cacheSize)}return this.doGetSize()}addComponents(e,t=-1){const n={do:{[this.id]:[o.Ops.addChildren(""+t,e)]},undo:{[this.id]:[o.Ops.removeChildren(e.map(e=>e._id))]}},r=e.map(e=>function(e){const{_id:t,position:n,size:r,rotate:o,value:i}=e;return{id:t,type:u.ComponentChangeType.Add,position:n,size:r,value:i,rotate:o||0}}(e)),i=this.getPositionPatchesOfChildrenChanged(r,!0);return c.coverPatches(n,i.patches),{patches:{[this.ownerArtboardID]:n}}}flipHandler(e,t){const n=super.flipHandler(e,t),r=i.getViewBoundsOfComponents(this.components);return this.components.forEach(o=>{const i=e===v.IFlipModel.Horizontal?"horizontal":"vertical";[o.flipHandler(e,!(o.flip&&o.flip[i])),v.getPositionPatchesWhenFlip(o,e,t,r)].forEach(e=>{c.coverPatches(n,e)})}),n}replaceComponents(e,t){const n=this.components.findIndex(e=>{var n;return e.id===(null===(n=t[0])||void 0===n?void 0:n.id)}),r={do:{[this.id]:[o.Ops.addChildren(""+n,e)]},undo:{[this.id]:[o.Ops.removeChildren(e.map(e=>e._id))]}},i=e.map(e=>new a.UIComponent(e));this.temporaryAddChild(i);const s=this.doNormalRemove(t);this.temporaryRemoveChild(i);const l=r;c.coverPatches(r,s.patches[this.ownerArtboardID]);const d=e.map(e=>{const{_id:t,position:n,size:r,rotate:o}=e;return{id:t,type:u.ComponentChangeType.Add,position:n,size:r,rotate:o||0}}).concat(t.map(e=>{const{id:t,position:n,size:r,rotate:o}=e;return{id:t,type:u.ComponentChangeType.Removed,position:n,size:r,rotate:o||0}})),h=this.getPositionPatchesOfChildrenChanged(d,!0);return c.coverPatches(l,h.patches),{patches:{[this.ownerArtboardID]:l}}}doRemoveOfOnlyLastOne(e){const t=this.parent,n=t.components.findIndex(e=>e===this),i=t.components[n],a=this.components.filter(e=>!e.isConnector).filter(t=>!e.map(e=>e.id).includes(t.id)).shift(),s=r.depthClone(a.toJSON());s.rotate=a.rotate,s.position=a.getPositionWithoutParent(),s.rotate+=a.parent.rotate;const l=[{id:s._id,type:u.ComponentChangeType.Add,rotate:s.rotate,position:s.position,size:s.size},{id:this.id,type:u.ComponentChangeType.Removed,rotate:this.rotate,position:this.position,size:this.size}],d={do:{[t.id]:[o.Ops.removeChildren([this.id]),o.Ops.addChildren(""+n,[s])]},undo:{[t.id]:[o.Ops.removeChildren([a.id]),o.Ops.addChildren(""+n,[this.toJSON()])]}},p=h.removeConnectWhenDelete(t,[i]);if(c.mergePatches(d,p),!t.isArtboard){const e=t.getPositionPatchesOfChildrenChanged(l,!0);c.coverPatches(d,e.patches)}return{patches:{[this.ownerArtboardID]:d},newActiveGroup:t}}doNormalRemove(e){const t={do:{[this.id]:[o.Ops.removeChildren(e.map(e=>e.id))]},undo:{[this.id]:e.map(e=>o.Ops.addChildren(""+this.components.findIndex(t=>t===e),[e.toJSON()]))}},n=e.filter(e=>!e.isConnector).map(e=>{const{id:t,position:n,size:r,rotate:o}=e;return{id:t,type:u.ComponentChangeType.Removed,position:n,size:r,rotate:o}}),r=this.getPositionPatchesOfChildrenChanged(n,!0);return c.coverPatches(t,r.patches),{patches:{[this.ownerArtboardID]:t}}}removeComponents(e){let t;const n=e.filter(e=>!e.isConnector),r=e.map(e=>e.id),{innerConnectComps:o,aloneConnectComps:i}=h.getInnerOrAroundConnect(this,r);if((e=[...n,...o,...i]).length===this.components.length)return this.parent.removeComponents([this]);if(this.components.length-e.length==1){if(this.components.filter(t=>!e.map(e=>e.id).includes(t.id)).shift().isConnector)return this.parent.removeComponents([this]);t=this.doRemoveOfOnlyLastOne(e)}else{t=this.doNormalRemove(e);const n=1===e.length,r=e[0].isGroup;n&&r&&e[0].isActived&&(t.newActiveGroup=e[0].parent)}return t}getPositionPatchesOfChildrenChanged(e,t=!1){const n={do:{},undo:{}},o=e.filter(e=>e.type!==u.ComponentChangeType.Removed).map(e=>{const{size:t,position:n,rotate:r}=e;return s.getBoundsInParent({size:t,position:n,rotate:r})}),i=e.map(e=>e.id),a=this.components.filter(e=>!i.includes(e.id)&&!e.isConnector),d=a.map(e=>e.getViewBoundsInParent()),m=l.union(...o.concat(d));let g=m.left,v=m.top;const y={width:m.width,height:m.height};if(1===e.length){if(e[0].type===u.ComponentChangeType.Edit){const t=this.components.find(t=>e.find(e=>e.id===t.id));t.currentStateID&&!p.isPredefinedState(t.currentStateID)&&(g=0,v=0)}}u.updateEditComponentsPatches(this.components,e,{x:g,y:v},n),e.filter(e=>e.type===u.ComponentChangeType.Add).forEach(e=>{e.position.x=g?e.position.x-g:e.position.x,e.position.y=v?e.position.y-v:e.position.y}),u.updateUnChangedComponentsPatches(a,{x:g,y:v},n),h.updateConnectComponentPatches(this,e,n,{x:g,y:v},!0);let b={x:g,y:v};const w={width:r.round(y.width),height:r.round(y.height)},C=this.getBoxPointsInParent()[0],_=s.mapVectorToTargetCoordinates(b,this.rotate);let x={x:C.x+_.x,y:C.y+_.y};const S=f.getCenter(x,w,this.rotate);let k=f.getNWPoint(S,w,0);if(k=u.getNewPositionWhenCenter(this,k,w,this.parent.size),b={x:k.x-this.position.x,y:k.y-this.position.y},t&&this.parent){const e=this.parent.getPositionPatchesOfChildrenChanged([{id:this.id,type:u.ComponentChangeType.Edit,position:k,size:y,rotate:this.rotate}],!0);e.patches&&c.coverPatches(n,e.patches)}return{patches:n,position:b,size:y,rotate:this.rotate}}getNewChildInfoAndUpdatePatches(e,t,n,r){return this.components.filter(e=>!e.isConnector).map(o=>{const i=o.resizeHandler2(t,n.get(o),r);return i.patches&&c.coverPatches(e,i.patches),{id:o.id,type:u.ComponentChangeType.Edit,position:{x:i.position.x,y:i.position.y},size:i.size,rotate:i.rotate}})}getRealChildrenResizeOptions(e,t){const n=r.depthClone(e),{size:o,position:i}=t;return r.sameNumber(o.height,this.size.height)&&(n.container.after.size.height=this.size.height),r.sameNumber(o.width,this.size.width)&&(n.container.after.size.width=this.size.width),r.sameNumber(i.x,0)&&(n.container.after.position.x=0),r.sameNumber(i.y,0)&&(n.container.after.position.y=0),n}resizeHandler2(e,t,n,o){const{position:i,size:a}=this,s=r.depthClone(n),p=super.resizeHandler2(u.getAdjustedZeroOffset(e),t,s),f=u.getAdjustedZeroOffset(this.getRealOffsetForChild(e,p));if(r.sameNumber(f.right,f.left)&&r.sameNumber(f.top,f.bottom))return{position:p.position,size:p.size,rotate:this.rotate};const m=o||d.collectComponentsLayout(this.componentsExceptConnector,l.createBoundsBySize(this.size)),g={do:{},undo:{}},v={container:{before:{position:{x:0,y:0},size:a},after:{position:this.getLeftTopChangeForChildren(p),size:p.size},isResponsive:this.layout.responsive},shift:n.shift,scale:{h:p.size.width/a.width,v:p.size.height/a.height}},y=this.getNewChildInfoAndUpdatePatches(g,f,m,v);let b=this.getPositionPatchesOfChildrenChanged(y);const w=this.getRealChildrenResizeOptions(v,b);b=this.getPositionPatchesOfChildrenChanged(this.getNewChildInfoAndUpdatePatches(g,f,m,w)),b.patches&&c.coverPatches(g,b.patches);const C=h.resetConnectPatchWhenResize(this,this.components,y);return c.coverPatches(g,C),{position:{x:i.x+b.position.x,y:i.y+b.position.y},size:b.size,rotate:b.rotate,patches:g}}}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(17),i=n(34),a=n(35),s=n(114),l=n(28),c=n(32),u=n(85);class d extends o.UIPanelComponent{constructor(e,t,n){super(e,void 0,n),this.doc=t,this.isPreview=n,this.isMain=!1,this.isArtboard=!0,this.updateSize=(e,t,n)=>{const r={do:{},undo:{}},o=i.getOffsetBySizeChange(e,t),c=n||s.collectComponentsLayout(this.componentsExceptConnector,l.createBoundsBySize(e)),u={container:{before:{position:{x:0,y:0},size:this.size},after:{position:{x:0,y:0},size:t},isResponsive:!0},shift:!1,scale:{h:t.width/this.size.width,v:t.height/this.size.height}};if(this.components.length>0){const e=this.components.filter(e=>!e.isConnector).map(e=>{const n=e.resizeHandler2(o,c.get(e),u);n.patches&&a.coverPatches(r,n.patches);let s={x:n.position.x,y:n.position.y};return s=i.getNewPositionWhenCenter(e,s,n.size,t),{id:e.id,type:i.ComponentChangeType.Edit,position:s,size:n.size,rotate:n.rotate}}),n=this.getPositionPatchesOfChildrenChanged(e);n.patches&&a.coverPatches(r,n.patches)}return r},this.artboardID=e._id,this.dynamicInfo={}}get position(){return this.dynamicInfo.position||this.data.position}get size(){return this.dynamicInfo.size||this.data.size}get $data(){return this.data}get background(){return!this.$data.background||r.isEmpty(this.$data.background)?{disabled:!1,type:c.FillType.solid,color:{r:255,g:255,b:255,a:1}}:this.$data.background}get document(){return this.doc}getViewBoundsInParent(){const{width:e,height:t}=this.size;return{left:0,top:0,right:e,bottom:t,width:e,height:t}}forceRefreshComponents(){this.components=this.data.components.map(e=>u.makeUIComponent(e,this,this.isPreview))}get guides(){return this.toJSON().guides}get horizontalGuides(){var e;return(null===(e=this.guides)||void 0===e?void 0:e.horizontal)||[]}get verticalGuides(){var e;return(null===(e=this.guides)||void 0===e?void 0:e.vertical)||[]}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17);class o extends r.UIFragment{constructor(e,t,n){super(e,t,n),this.isPreview=n,this.isMain=!0,this.artboardID=e._id,this.dynamicInfo={}}get position(){return this.dynamicInfo.position||this.data.position}get size(){return this.dynamicInfo.size||this.data.size}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(219),o=n(17),i=n(12),a=n(85),s=n(35),l=n(34),c=n(29),u=n(28);class d extends o.UIContainerComponent{constructor(e,t,n){super(e,t,n),this.parent=t,this.isPreview=n,this.canMoveChildren=!1,e.components?this.components=a.makeComponents(e.components,this,n):this.components=[],r.reArrangeComponentOfWrapPanel(e)}refreshComponents(){super.refreshComponents(),r.reArrangeComponentOfWrapPanel(this.data)}addComponents(e,t=-1){const n={do:{[this.id]:[i.Ops.addChildren("-1",e)]},undo:{[this.id]:[i.Ops.removeChildren(e.map(e=>e._id))]}},r=this.components.map(e=>e.toJSON()).concat(e),{layout:o}=this.properties,{direction:a}=o||{direction:"horizontal",verticalAlign:"middle",horizontalAlign:"center"};let l=0,c=0,u=0;const d=this.size,{width:h,height:p}=d;"vertical"===a?c=p:u=h;let f=0;r.forEach(e=>{const t=e.size;"vertical"===a?(f+=t.height,f>p?(f=0,u+=l,l=0):l=Math.max(l,t.width)):(f+=t.width,f>h?(f=0,c+=l,l=0):l=Math.max(l,t.height))}),u===h&&c===p||(n.do[this.id].push(i.Ops.replace("",Object.assign(Object.assign({},d),{height:c,width:u}))),n.undo[this.id].push(i.Ops.replace("",d)));const m=this.afterAppendComponents(e);return m&&s.coverPatches(n,m),{patches:{[this.ownerArtboardID]:n}}}moveChildren(e,t){return{[this.ownerArtboardID]:{do:{},undo:{}}}}getPositionPatchesOfChildrenChanged(e,t=!1){const n={do:{},undo:{}},r=e.filter(e=>e.type!==l.ComponentChangeType.Removed).map(e=>{const{size:t,position:n,rotate:r}=e;return c.getBoundsInParent({size:t,position:n,rotate:r})}),o=e.map(e=>e.id),i=this.components.filter(e=>!o.includes(e.id)),a=i.map(e=>e.getViewBoundsInParent()),d=u.union(...r.concat(a)),h=d.left,p=d.top;l.updateEditComponentsPatches(this.components,e,{x:h,y:p},n),e.filter(e=>e.type===l.ComponentChangeType.Add).forEach(e=>{e.position.x=h?e.position.x-h:e.position.x,e.position.y=p?e.position.y-p:e.position.y}),l.updateUnChangedComponentsPatches(i,{x:h,y:p},n);const f={x:h,y:p},m={width:d.width,height:d.height};if(t&&this.parent){const e=this.position,t=this.parent.getPositionPatchesOfChildrenChanged([{id:this.id,type:l.ComponentChangeType.Edit,position:{x:e.x+h,y:e.y+p},size:m,rotate:0}],!0);t.patches&&s.coverPatches(n,t.patches)}return{patches:n,position:f,size:m,rotate:0}}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(17),i=n(85),a=n(32),s=n(8),l=n(34),c=n(35),u=n(96),d=n(29),h=n(6);class p extends o.UIContainerComponent{constructor(e,t,n){super(e,t,n),this.parent=t,this.isPreview=n,this.canMoveChildren=!1,e.components?this.components=i.makeComponents(e.components,this,n):this.components=[]}loadContentByPreview(e){const{components:t,document:n}=this;t.forEach(t=>{const r=t,o=t.value;let l=this,c=e.includes(o);if(!c)for(;l;){if(l.parent instanceof p&&l.value===o){c=!0;break}l=l.parent}if(c)return;const u=s.depthClone(n.getFragmentData(o));if(!d.getParentByFilter(t,e=>{var t;return(null===(t=e.parent)||void 0===t?void 0:t.type)===h.CContentPanel&&e.value===o})&&u.components){const t=u.components.map(e=>i.makeUIComponent(e,r,this.isPreview));r.components=t;const n=u.background;r.toJSON().properties.fill=n,"{}"==JSON.stringify(n)&&(r.toJSON().properties.fill={color:{r:255,g:255,b:255,a:1},type:a.FillType.solid,disabled:!1}),this.filterContentPanelInComps(t).forEach(t=>{t.loadContentByPreview([...e,o])})}})}filterContentPanelInComps(e){const t=[],n=e=>{e.forEach(e=>{e instanceof p?t.push(e):e instanceof o.UIContainerComponent&&e.components.length&&n(e.components)})};return n(e),t}refreshComponents(){var e;this.isPreview&&(null===(e=this.toJSON().components)||void 0===e||e.forEach(e=>{var t;if(null===(t=e.components)||void 0===t?void 0:t.length)for(let t=e.components.length-1;t>=0;t--)e.components[t]||e.components.splice(t,1)})),super.refreshComponents()}resizeHandler2(e,t,n){const r=super.resizeHandler2(e,t,n),o={do:{},undo:{}},{position:i,size:a,rotate:s}=r;if(this.components.length>0){const e=this.components.map(e=>({id:e.id,type:l.ComponentChangeType.Edit,position:{x:0,y:0},size:r.size,rotate:e.rotate})),{patches:t}=this.getPositionPatchesOfChildrenChanged(e,!1);c.coverPatches(o,t);const n=u.resetConnectPatchWhenResize(this,this.components,e);c.coverPatches(o,n)}return{position:i,size:a,rotate:s,patches:o}}addComponents(e,t=-1){const n=this.properties.fill;return e.forEach(e=>{e.position={x:0,y:0},e.size=Object.assign({},this.data.size),n&&(e.properties.fill=s.depthClone(n))}),{patches:{[this.ownerArtboardID]:{do:{[this.id]:[r.Ops.addChildren(""+t,e)]},undo:{[this.id]:[r.Ops.removeChildren(e.map(e=>e._id))]}}}}}removeComponents(e){const t={do:{[this.id]:[r.Ops.removeChildren(e.map(e=>e.id))]},undo:{[this.id]:e.map(e=>r.Ops.addChildren(""+this.components.findIndex(t=>t===e),[e.toJSON()]))}};return{patches:{[this.ownerArtboardID]:t}}}setProperty(e,t){const n=super.setProperty(e,t);if(e===a.FillPropertyName){const{fill:e}=this.properties;this.components.forEach(o=>{o.properties.fill?(n.do[o.id]=[r.Ops.replace("/properties/fill",t)],n.undo[o.id]=[r.Ops.replace("/properties/fill",e)]):(n.do[o.id]=[r.Ops.add("/properties/fill",t)],n.undo[o.id]=[r.Ops.remove("/properties/fill")])})}return n}getPositionPatchesOfChildrenChanged(e,t){const n={do:{},undo:{}};return l.updateEditComponentsPatches(this.components,e,{x:0,y:0},n),{patches:n}}moveValue(e,t){const n=this.value;if(!n)return null;const o=[...n],i=t>e?t-1:t;if(i<0||i>=o.length||e<0||e>=o.length)return null;if(i===e)return null;const a=o[e];return o.splice(e,1),o.splice(i,0,a),{do:{[this.id]:[r.Ops.replace("./value",o)]},undo:{[this.id]:[r.Ops.replace("./value",n)]}}}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(131),o=n(17),i=n(12),a=n(377),s=n(34),l=n(8),c=n(35),u=n(1350),d=n(52),h=n(378),p=n(62),f=n(116);class m extends o.UIStackPanelComponent{constructor(e,t,n){if(super(e,t,n),this.parent=t,this.isPreview=n,n){const{layout:e}=this.properties;let t=0,n=0;const r=e&&e.direction||"vertical",o=(null==e?void 0:e.verticalGap)||0,i=(null==e?void 0:e.horizontalGap)||0;this.components.forEach(e=>{"vertical"===r?(e.toJSON().position.x=0,e.toJSON().position.y=n,n+=e.toJSON().size.height+o):(e.toJSON().position.y=0,e.toJSON().position.x=t,t+=e.toJSON().size.width+i)})}}doAfterCreate(){}resizeHandler2(e,t,n,r){const{position:o,size:i}=this;if(0===e.left&&0===e.right&&0===e.top&&0===e.bottom)return{size:i,position:o,rotate:this.rotate};const a=super.resizeHandler2(e,t,n),u=this.getRealOffsetForChild(e,a);if(l.sameNumber(u.right,u.left)&&l.sameNumber(u.top,u.bottom))return{position:a.position,size:a.size,rotate:this.rotate};const d={do:{},undo:{}},h=this.getCoordinateOffset(a),{layout:p,cell:f}=this.properties,{left:m,right:g}=this.padding;if("vertical"===p.direction)if(f.ratioHeight){const t=this.components.map((t,n)=>{let r,o=l.depthClone(u);const i=this.components.length,f=((null==p?void 0:p.verticalGap)||0)*(i-1);r=(a.size.height-f)/i-t.size.height,l.isNotEqual0(e.bottom)&&(o.bottom=r),l.isNotEqual0(e.top)&&(o.top=-r);const m=t.resizeMySelf(o,!1);return m.patches&&c.coverPatches(d,m.patches),(l.isNotEqual0(e.top)||l.isNotEqual0(e.bottom))&&(m.position={x:t.position.x,y:t.position.y+r*n+e.top}),{id:t.id,type:s.ComponentChangeType.Edit,position:{x:m.position.x+h.x,y:m.position.y+h.y},size:m.size,rotate:m.rotate}}),n=this.getPositionPatchesOfChildrenChanged(t);n.patches&&c.coverPatches(d,n.patches)}else{const e=this.components.map(e=>{const t=Object.assign(Object.assign({},u),{top:0,bottom:0}),n=e.resizeMySelf(t,!1);n.patches&&c.coverPatches(d,n.patches),(l.isNotEqual0(u.top)||l.isNotEqual0(u.left))&&(n.position={x:e.position.x+u.left,y:e.position.y+u.top});const r={x:n.position.x+h.x,y:n.position.y+h.y};return{id:e.id,type:s.ComponentChangeType.Edit,position:r,size:n.size,rotate:n.rotate}}),t=this.getPositionPatchesOfChildrenChanged(e);t.patches&&c.coverPatches(d,t.patches)}else if(f.ratioWidth){const e={x:0,width:m};let t=0;const n=this.components.length,r=p&&p.horizontalGap||0,o=r*(n-1),i=(a.size.width-o-m-g)/n,f=i%1,v=i-f,y=this.components.map((n,o)=>{let i=v-n.size.width;t+=f,t>=1&&(t-=1,i+=1);let a=l.depthClone(u);l.isNotEqual0(u.right)&&(a.right=i),l.isNotEqual0(u.left)&&(a.left=-i),l.isNotEqual0(u.left)&&l.isNotEqual0(u.right)&&(a.left=0,a.right=i);const{position:p,size:m,rotate:g,patches:y}=n.resizeMySelf(a,!1);return y&&c.coverPatches(d,y),p.x=e.x+e.width+(0===o?0:r),e.x=p.x,e.width=m.width,{id:n.id,type:s.ComponentChangeType.Edit,position:{x:p.x,y:p.y+h.y},size:m,rotate:g}}),b=this.getPositionPatchesOfChildrenChanged(y);b.patches&&c.coverPatches(d,b.patches)}else{const t=this.components.map(t=>{const n={left:0,right:0,top:e.top,bottom:e.bottom},r=t.resizeMySelf(n,!1);return r.patches&&c.coverPatches(d,r.patches),l.isNotEqual0(u.left)&&(r.position={x:r.position.x+u.left,y:r.position.y}),{id:t.id,type:s.ComponentChangeType.Edit,position:{x:r.position.x+h.x,y:r.position.y+h.y},size:r.size,rotate:r.rotate}}),n=this.getPositionPatchesOfChildrenChanged(t);n.patches&&c.coverPatches(d,n.patches)}return{position:a.position,size:a.size,rotate:this.rotate,patches:d}}getPositionPatchesOfChildrenChanged(e,t=!1){const n={do:{},undo:{}};return s.updateEditComponentsPatches(this.components,e,{x:0,y:0},n),{patches:n}}doRefreshBefore(){}get textAlign(){let e="center";const t=this.data.properties.textStyle;return t&&t.textAlign&&(e=t.textAlign),e}setProperty(e,t){const n=super.setProperty(e,t),r={[h.PaddingPropertyName]:this.getPatchesWhenSetPadding.bind(this),[a.LayoutPropertyName]:this.getPatchesWhenSetLayoutProperty.bind(this),[u.CellPropertyName]:this.getPatchesWhenSetCellProperty.bind(this)};if(r[e]){const o=r[e](t);o&&c.coverPatches(n,o)}return n}getPatchesWhenSetPadding(e){var t,n,r;const o={do:{},undo:{}};let{disabled:i}=e,a=e.left||0,l=e.top||0,u=e.right||0,d=e.bottom||0;const h=this.properties,{layout:p}=h;i&&(a=0,l=0,u=0,d=0);const f=this.size.width,m=(null===(t=h.layout)||void 0===t?void 0:t.verticalGap)||0;if("vertical"===(null===(n=null==h?void 0:h.layout)||void 0===n?void 0:n.direction)){const e={y:0,height:l||0},t=this.components.map((t,n)=>{const{size:{width:r}}=t,i=t.position.x,l={left:(a||0)-i,top:0,right:f-i-r-(u||0),bottom:0},{position:d,size:h,rotate:p,patches:g}=t.resizeMySelf(l,!1);g&&c.coverPatches(o,g);const v=Object.assign(Object.assign({},d),{y:e.y+e.height+(0===n?0:m)});return e.y=v.y,e.height=h.height,{id:t.id,type:s.ComponentChangeType.Edit,position:v,size:h,rotate:p}}),{patches:n}=this.getPositionPatchesOfChildrenChanged(t,!0);c.coverPatches(o,n)}else if(null===(r=h.cell)||void 0===r?void 0:r.ratioWidth){const e=p&&p.horizontalGap||0,t=this.components.length,n=e*(t-1),r=(this.size.width-n-a-u)/t,i=r%1,h=r-i,f={x:0,width:a};let m=0;const g=this.components.map((t,n)=>{let r=h-t.size.width;m+=i,m>=1&&(m-=1,r+=1);const a={left:0,right:r,top:l-this.padding.top,bottom:-(d-this.padding.bottom)},{position:u,size:p,rotate:g,patches:v}=t.resizeMySelf(a,!1);return u.x=f.x+f.width+(0===n?0:e),f.width=p.width,f.x=u.x,v&&c.coverPatches(o,v),{id:t.id,type:s.ComponentChangeType.Edit,position:u,size:p,rotate:g}}),{patches:v}=this.getPositionPatchesOfChildrenChanged(g,!0);c.coverPatches(o,v)}return o}getPatchesWhenSetCellProperty(e){var t,n,r,o;const i={do:{},undo:{}},a=this.properties;if("vertical"===(null===(t=null==a?void 0:a.layout)||void 0===t?void 0:t.direction)){const{rowHeight:t}=e,r={y:(null===(n=a.padding)||void 0===n?void 0:n.top)||0,height:0},o=this.components.map(e=>{var n;const o={left:0,top:0,right:0,bottom:t-e.size.height},{position:l,size:u,rotate:d,patches:h}=e.resizeMySelf(o,!1);return l.y=r.y+r.height+((null===(n=null==a?void 0:a.layout)||void 0===n?void 0:n.verticalGap)||0),r.y=l.y,r.height=u.height,h&&c.coverPatches(i,h),{id:e.id,type:s.ComponentChangeType.Edit,position:l,size:u,rotate:d}}),{patches:l}=this.getPositionPatchesOfChildrenChanged(o,!0);c.coverPatches(i,l)}if("horizontal"===(null===(r=null==a?void 0:a.layout)||void 0===r?void 0:r.direction)){const{columnWidth:t}=e,n={x:(null===(o=a.padding)||void 0===o?void 0:o.left)||0,width:0},r=this.components.map(e=>{const r={left:0,top:0,right:t-e.size.width,bottom:0},{position:o,size:l,rotate:u,patches:d}=e.resizeMySelf(r,!1);return o.x=n.x+n.width+(a.layout.horizontalGap||0),n.x=o.x,n.width=l.width,d&&c.coverPatches(i,d),{id:e.id,type:s.ComponentChangeType.Edit,position:o,size:l,rotate:u}}),{patches:l}=this.getPositionPatchesOfChildrenChanged(r,!0);c.coverPatches(i,l);const u={oldVal:this.size,newVal:{height:this.size.height,width:t*this.components.length}};t&&c.coverPatches(i,(new p.ArtboardPatchesClass).getPatchesByCompChange(this.id,(new f.ComponentPatchesClass).getAttrChangePatches(this.id,this.getCurrentSizePath(),u)))}return i}getPatchesWhenSetLayoutProperty(e){var t,n,o,i,a;const u={do:{},undo:{}},d=this.properties;if("vertical"===(null===(t=null==d?void 0:d.layout)||void 0===t?void 0:t.direction))if(null===(n=null==d?void 0:d.cell)||void 0===n?void 0:n.ratioHeight)r.ok("false","暂时没提供列表等分宽高时,调整行距的");else{const{verticalGap:t}=e,n={y:(null===(o=d.padding)||void 0===o?void 0:o.top)||0,height:0},r=this.components.map((e,r)=>{const{position:o,size:i,rotate:a}=e,c=l.depthClone(o);return c.y=n.y+n.height+(0===r?0:t||0),n.y=c.y,n.height=i.height,{id:e.id,type:s.ComponentChangeType.Edit,position:c,size:i,rotate:a}}),{patches:i}=this.getPositionPatchesOfChildrenChanged(r,!0);c.coverPatches(u,i)}if("horizontal"===(null===(i=null==d?void 0:d.layout)||void 0===i?void 0:i.direction)){const t=e.horizontalGap||0;if(null===(a=null==d?void 0:d.cell)||void 0===a?void 0:a.ratioWidth){const{layout:e}=d,n=e.horizontalGap||0,r=(this.components.length-1)*n,{left:o,right:i}=this.padding,a=(this.size.width-r-o-i)/this.components.length,l=a-a%1,h={x:0,width:o},p=this.components.map((e,n)=>{const r={left:0,right:l-e.size.width,top:0,bottom:0},{position:o,size:i,rotate:a,patches:d}=e.resizeMySelf(r,!1);d&&c.coverPatches(u,d);const p=n===this.components.length-1?1:0;return o.x=h.x+h.width+(0===n?0:t),h.x=o.x,h.width=i.width+p,{id:e.id,type:s.ComponentChangeType.Edit,position:o,size:i,rotate:a}}),{patches:f}=this.getPositionPatchesOfChildrenChanged(p,!0);c.coverPatches(u,f);const m=this.getContainerSizePatchesWhenSetHorizontalGap(t);c.coverPatches(u,m)}else{const e={x:0,width:0},n=this.components.map(n=>{const{position:r,size:o,rotate:i}=n,a=l.depthClone(r);return a.x=e.x+e.width+(t||0),e.x=a.x,e.width=o.width,{id:n.id,type:s.ComponentChangeType.Edit,position:a,size:o,rotate:i}}),{patches:r}=this.getPositionPatchesOfChildrenChanged(n,!0);c.coverPatches(u,r)}}return u}getContainerSizePatchesWhenSetHorizontalGap(e){var t;const n={do:{},undo:{}},r=l.depthClone(this.size),o=(null===(t=this.properties.layout)||void 0===t?void 0:t.horizontalGap)||0;r.width=(this.components.length-1)*(e-o)+this.size.width;const a=this.getCurrentSizePath(),s=[],c=[];return s.push(i.Ops.replace(""+a,Object.assign(Object.assign({},this.size),r))),c.push(i.Ops.replace(""+a,this.size)),n.do[this.id]=s,n.undo[this.id]=c,n}addComponents(e,t=-1){var n;const r={[this.ownerArtboardID]:{do:{[this.id]:[i.Ops.addChildren(""+t,e)]},undo:{[this.id]:[i.Ops.removeChildren(e.map(e=>e._id))]}}},{layout:o,cell:a,padding:l}=this.properties,u=(null==o?void 0:o.horizontalGap)||0,h=e[0];if("vertical"===o.direction){const t={do:{},undo:{}};if(a.ratioHeight){const n=this.components,i=n.length+e.length,a=this.components.length*(o.verticalGap||0),l=(this.size.height-a)/i;n.forEach((e,n)=>{const r={left:0,right:0,top:0,bottom:l-e.size.height},{position:o,size:i,rotate:a,patches:u}=e.resizeMySelf(r,!1);u&&c.coverPatches(t,u);const d=l-e.size.height;o.y=e.position.y+d*n;const h=this.getPositionPatchesOfChildrenChanged([{id:e.id,type:s.ComponentChangeType.Edit,position:o,size:i,rotate:a}],!0);c.coverPatches(t,h.patches)}),h.position.y=this.size.height-l,h.size.height=l,c.coverPatches(r[this.ownerArtboardID],t)}else{const e=this.components.reduce((e,t)=>e+=t.size.height,0),t=(this.components.length+1)*(o.verticalGap||0);h.position.y=e+t+(l&&l.top||0)}}else{const t={do:{},undo:{}};if(a.ratioWidth){const i=this.components,a=i.length+e.length,l=o.horizontalGap||0,u=this.components.length*l,{left:p,right:f}=this.padding,m=(this.size.width-u-p-f)/a,g=m%1,v=m-g;let y=0;const b={preCompX:0,preCompWidth:p};i.forEach((e,n)=>{let r=v-e.size.width;y+=g,y>=1&&(y-=1,r+=1);const o={left:0,right:r,top:0,bottom:0},{position:i,size:a,rotate:u,patches:d}=e.resizeMySelf(o,!1);d&&c.coverPatches(t,d),i.x=b.preCompX+b.preCompWidth+(0===n?0:l),b.preCompX=i.x,b.preCompWidth=a.width;const h=this.getPositionPatchesOfChildrenChanged([{id:e.id,type:s.ComponentChangeType.Edit,position:i,size:a,rotate:u}],!0);c.coverPatches(t,h.patches)}),h.position.x=b.preCompX+b.preCompWidth+l,h.size.width=v+(y>=1?1:0),null===(n=h.components)||void 0===n||n.forEach(e=>{if("center"===e.layout.horizontal){const t=d.getCenter({x:0,y:0},h.size);e.position.x=d.getNWPoint(t,e.size,0).x}}),c.coverPatches(r[this.ownerArtboardID],t)}else{const e=this.components.reduce((e,t)=>e+=t.size.height,0),t=(this.components.length-1)*(u||0);h.position.x=e+t}}const p=this.afterAppendComponents(e);return p&&c.coverPatches(r[this.ownerArtboardID],p),{patches:r}}addComponentsWhenContainerEmpty(e){const t={[this.ownerArtboardID]:{do:{[this.id]:[i.Ops.addChildren("-1",e)]},undo:{[this.id]:[i.Ops.removeChildren(e.map(e=>e._id))]}}},{layout:n,cell:r}=this.properties,o=e,a=n.horizontalGap||0;if("vertical"===n.direction)if(r.ratioHeight){const e={preCompX:0,preCompWidth:0};o.forEach(t=>{const{position:n,size:r}=t;n.x=e.preCompX+e.preCompWidth+a,t.size.height=this.size.height/o.length,e.preCompX=n.x,e.preCompWidth=r.width})}else{const e={preCompX:0,preCompWidth:0};o.forEach(t=>{const{position:n,size:r}=t;n.x=e.preCompX+e.preCompWidth+a,e.preCompX=n.x,e.preCompWidth=r.width})}else{const o={do:{},undo:{}};if(r.ratioWidth){const r=e,i=n.horizontalGap||0,a={preCompX:0,preCompWidth:0};r.forEach(e=>{const{position:t,size:n}=e;t.x=a.preCompX+a.preCompWidth+i,a.preCompX=t.x,a.preCompWidth=n.width}),c.coverPatches(t[this.ownerArtboardID],o)}else{const t=this.components.reduce((e,t)=>e+=t.size.height,0),r=this.components.length*(n.horizontalGap||0);e[0].position.x=t+r}}return t}removeComponents(e){const t={do:{},undo:{}},n=[i.Ops.removeChildren(e.map(e=>e.id))],r=e.map(e=>i.Ops.addChildren(""+this.components.findIndex(t=>t===e),[e.toJSON()]));t.do[this.id]=n,t.undo[this.id]=r;const{layout:o,cell:a,padding:l}=this.properties,{left:u,right:d}=this.padding,h=o&&o.verticalGap||0,p=o&&o.horizontalGap||0;if("vertical"===(null==o?void 0:o.direction))if(null==a?void 0:a.ratioHeight){const n=this.components.filter(t=>!e.find(e=>e.id===t.id)),r=(n.length-1)*(o.verticalGap||0),i=(this.size.height-r)/n.length,a=n.map((e,n)=>{const r={left:0,right:0,top:0,bottom:i-e.size.height},{position:a,size:l,rotate:u,patches:d}=e.resizeMySelf(r,!1);return d&&c.coverPatches(t,d),a.y=i*n+(o.verticalGap||0)*n,{id:e.id,type:s.ComponentChangeType.Edit,position:a,size:l,rotate:u}}),{patches:l}=this.getPositionPatchesOfChildrenChanged(a);c.coverPatches(t,l)}else{const n={preCompY:l&&l.top||0,preCompHeight:0},r=this.components.filter(t=>!e.find(e=>e.id===t.id)).map((e,t)=>{const r={x:e.position.x,y:n.preCompY+n.preCompHeight+(0===t?0:h)};return n.preCompY=r.y,n.preCompHeight=e.size.height,{id:e.id,type:s.ComponentChangeType.Edit,size:e.size,position:r,rotate:e.rotate}}),{patches:o}=this.getPositionPatchesOfChildrenChanged(r);c.coverPatches(t,o)}else{const n=this.components.filter(t=>!e.find(e=>e.id===t.id)),r=(n.length-1)*(o.horizontalGap||0),i=(this.size.width-r-u-d)/n.length,a=i%1,l=i-a;let h=0;const f={preCompX:0,preCompWidth:u},m=n.map((e,n)=>{let r=l-e.size.width;h+=a,h>=1&&(h-=1,r+=1);const o={left:0,right:r,top:0,bottom:0},{position:i,size:u,rotate:d,patches:m}=e.resizeMySelf(o,!1);return m&&c.coverPatches(t,m),i.x=f.preCompX+f.preCompWidth+(0===n?0:p),f.preCompX=i.x,f.preCompWidth=u.width,{id:e.id,type:s.ComponentChangeType.Edit,position:i,size:u,rotate:d}}),{patches:g}=this.getPositionPatchesOfChildrenChanged(m);c.coverPatches(t,g)}const f={[this.ownerArtboardID]:t},m=this.afterRemoveComponents(e.map(e=>e.id));return m&&m.do&&c.coverPatches(f[this.ownerArtboardID],m),{patches:f,newActiveGroup:this}}moveChildOrder(e,t){const n=super.moveChildOrder(e,t);if(e!==t){const r=this.components.map(e=>e.position);l.moveArrayItem([...this.components],e,t).forEach((e,t)=>{const o=[i.Ops.replace("/position",r[t])],a=[i.Ops.replace("/position",e.position)];n.do[e.id]?(n.do[e.id].push(...o),n.undo[e.id].push(...a)):(n.do[e.id]=o,n.undo[e.id]=a)})}return n}}t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CellPropertyName=void 0,t.CellPropertyName="cell"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNewCreatedSGData=t.getNewSizeOfSelectionGroup=t.getNewChildOfSG=void 0;const r=n(12),o=n(17),i=n(29),a=n(7),s=n(34),l=n(30),c=n(400),u=n(62),d=n(35),h=n(40),p=n(8),f=n(24),m=n(4);class g extends o.UIPanelComponent{constructor(){super(...arguments),this.canMoveChildren=!1}get canAddChildren(){var e,t;const n=this.properties;let r=(null===(e=n.cell)||void 0===e?void 0:e.rowCount)||0,o=(null===(t=n.cell)||void 0===t?void 0:t.columnCount)||0;return!(r>1&&o>1)&&!(1===r&&1===o)}get canRemoveChildren(){var e,t;if(0===this.components.length)return!1;const n=this.properties;let r=(null===(e=n.cell)||void 0===e?void 0:e.rowCount)||0,o=(null===(t=n.cell)||void 0===t?void 0:t.columnCount)||0;return 1===r&&o>2||1===o&&r>2}get setting(){return{rowCount:a.defaultTo(a.get(this,"properties.cell.rowCount"),1),columnCount:a.defaultTo(a.get(this,"properties.cell.columnCount"),1),rowHeight:a.defaultTo(a.get(this,"properties.cell.rowHeight"),1),columnWidth:a.defaultTo(a.get(this,"properties.cell.columnWidth"),1),rowGap:a.defaultTo(a.get(this,"properties.cell.rowGap"),1),columnGap:a.defaultTo(a.get(this,"properties.cell.columnGap"),1)}}doAfterCreate(){}doRefreshBefore(){}resizeHandler2(e,t,n,r){var o,i,l;const c=super.resizeHandler2(e,t,n,r),h=this.components[0],{rowCount:f,columnCount:m,rowGap:g,columnGap:v}=this.setting,b=m>1&&this.components[1],w=f>1&&this.components[m];let C=c.patches;const _=new u.ArtboardPatchesClass;if(C){d.coverPatches(_,C);let e=a.cloneDeep(this.properties.cell);const t=s.extractDynamicInfoFromPatch(C),n=null===(o=t[h.id])||void 0===o?void 0:o.size;let r=(null===(i=t[h.id])||void 0===i?void 0:i.size)||h.size,u=(null===(l=t[h.id])||void 0===l?void 0:l.position)||h.position;if(n&&!a.isEqual(n,h.size)&&(e.rowHeight=n.height,e.columnWidth=n.width),b){const n=a.get(t[b.id],"position");if(n){const t=n.x-u.x-r.width;t!==v&&(e.columnGap=p.round(t))}}if(w){const n=a.get(t[w.id],"position");if(n){const t=n.y-u.y-r.height;t!==g&&(e.rowGap=p.round(t))}}const f=y({width:e.columnWidth||1,height:e.rowHeight||1},Object.assign(Object.assign({},this.setting),e));c.size=f,d.coverPatches(_,this.setProperty("cell",Object.assign(Object.assign({},this.setting),e)))}return Object.assign(Object.assign({},c),{patches:_})}addComponents(e,t=-1){let n=super.addComponents(e,t);const{rowCount:r,columnCount:o,rowHeight:i,columnWidth:a,rowGap:s,columnGap:l}=this.setting,c=1===r&&o>1,h=(r||0)>1&&1===o,p=this.components;let f=p[p.length-1],m=c?f.position.x:f.position.y,g=c?f.size.width:f.size.height,v=c?l||0:s||0;e.forEach(e=>{const t=m+g+v;c&&(e.position.x=t),h&&(e.position.y=t),m=t,g=c?e.size.width:e.size.height});const y=c?r:r+1,b=c?o+1:o,w=(new u.ArtboardPatchesClass).getAttrChangePatches(this.id,"/properties/cell",{oldVal:this.properties.cell,newVal:Object.assign(Object.assign({},this.properties.cell),{rowCount:y,columnCount:b})});d.coverPatches(n.patches[this.ownerArtboardID],w);const C=this.getSizePatches({columnCount:b,rowCount:y,rowGap:s,columnGap:l},{width:a,height:i});return d.coverPatches(n.patches[this.ownerArtboardID],C),n}removeComponents(e){const{rowCount:t,columnCount:n,rowHeight:r,columnWidth:o,rowGap:i,columnGap:s}=this.setting;let l=super.removeComponents(e);const c=1===t&&(n||0)>1,h=(t||0)>1&&1===n,p=c?t:t-1,f=c?n-1:n,m=this.components.filter(t=>!e.find(e=>t.id===e.id));let g=m[0],v=c?g.position.x:g.position.y,y=c?g.size.width:g.size.height,b=c?s||0:i||0;m.forEach((e,t)=>{const n=0===t?0:v+y+b,r=a.cloneDeep(e.position);c&&(r.x=n),h&&(r.y=n),v=n,y=c?e.size.width:e.size.height,d.coverPatches(l.patches[this.ownerArtboardID],(new u.ArtboardPatchesClass).getAttrChangePatches(e.id,e.getCurrentPositionPath(),{oldVal:e.position,newVal:r}))});const w=(new u.ArtboardPatchesClass).getAttrChangePatches(this.id,"/properties/cell",{oldVal:this.properties.cell,newVal:Object.assign(Object.assign({},this.properties.cell),{rowCount:p,columnCount:f})});d.coverPatches(l.patches[this.ownerArtboardID],w);const C=this.getSizePatches({columnCount:f,rowCount:p,rowGap:i,columnGap:s},{width:o,height:r});return d.coverPatches(l.patches[this.ownerArtboardID],C),l}getSizePatches(e,t){return(new u.ArtboardPatchesClass).getAttrChangePatches(this.id,this.getCurrentSizePath(),{oldVal:this.size,newVal:y(t,e)})}moveChildren(e){return{[this.ownerArtboardID]:{do:{},undo:{}}}}setProperty(e,t,n){const{columnGap:r,rowGap:o,rowCount:i,columnCount:a,rowHeight:s,columnWidth:l}=this.properties.cell,{columnGap:c,rowGap:h,columnCount:p,rowCount:f,rowHeight:m,columnWidth:g}=t;let v=super.setProperty(e,t,n);if("cell"===e){let e=void 0!==p&&p!==a,t={rowGap:h||o||0,columnGap:c||r||0,columnCount:p||a||3,rowCount:f||i||1};if(void 0!==f&&f!==i||e){const e=this.reCreateChildren(this.components[0].toJSON(),t);d.coverPatches(v,e)}else{if(void 0!==c&&c!==r||void 0!==h&&h!==o||m!==s||g!==l){const e=g||l||1,n=m||s||1;this.components.forEach((t,r)=>{const o=Math.floor(r/(a||1)),i=r%(a||1)*(e+(c||0)),p=o*(n+(h||0));let f=(new u.ArtboardPatchesClass).getAttrChangePatches(t.id,t.getCurrentPositionPath(),{oldVal:t.position,newVal:{x:i,y:p}});if(d.coverPatches(v,f),m!==s||g!==l){let r=(new u.ArtboardPatchesClass).getAttrChangePatches(t.id,t.getCurrentSizePath(),{oldVal:t.size,newVal:{height:n,width:e}});d.coverPatches(v,r)}});const r=y({height:n,width:e},t);d.coverPatches(v,(new u.ArtboardPatchesClass).getAttrChangePatches(this.id,this.getCurrentSizePath(),{oldVal:this.size,newVal:r}))}}}return v}reCreateChildren(e,t){e.selected=!1;const n=v(t,e),r=new u.ArtboardPatchesClass,{patches:o}=super.addComponents(n),{patches:i}=super.removeComponents(this.components),a=this.ownerArtboardID,s=(new u.ArtboardPatchesClass).getAttrChangePatches(this.id,this.getCurrentSizePath(),{oldVal:this.size,newVal:y(e.size,t)});return[o,i].forEach(e=>d.coverPatches(r,e[a])),d.coverPatches(r,s),r}switchSelectState(e,t){const n={do:{},undo:{}};return(t?this.components:[e]).forEach(o=>{const a=i.flattComps(o);let s="";e===o&&t&&(s=f.PredefinedStates.checked),a.forEach(e=>{n.do[e.id]=[r.Ops.replace("./_currentState",s)],n.undo[e.id]=[r.Ops.replace("./_currentState",e.toJSON()._currentState)]})}),n}}function v(e,t){const{rowCount:n,rowGap:r,columnCount:o,columnGap:s}=e,l=i.getTwoDimensionalArray(n,o,t),c=a.flatten(i.updateChildrenPositionByGrid(l,r,s)).map(e=>{const t=a.cloneDeep(e);return t.layout.responsive=!0,delete t._currentState,t}),u=e=>{var t;e.autoSize=!1,null===(t=e.components)||void 0===t||t.map(u)};return c.map(u),i.setDefaultStatusOfSelectionGroupChild(c,f.PredefinedStates.checked),c}function y(e,t){return{width:e.width*t.columnCount+t.columnGap*(t.columnCount-1),height:e.height*t.rowCount+t.rowGap*(t.rowCount-1)}}t.default=g,t.getNewChildOfSG=v,t.getNewSizeOfSelectionGroup=y,t.getNewCreatedSGData=function(e,t,n){e.selected=!1;const r={width:e.size.width,height:e.size.height};let{width:o,height:i}=y(r,t);const a=v(t,e),s={name:m.default("resource.components.selectPanel"),position:n,size:{width:o,height:i},layout:{horizontal:h.HorizontalAlign.LeftAndRight,vertical:h.VerticalAlign.TopAndBottom,auto:!0,responsive:!0,fixedHeight:!1,fixedWidth:!1},properties:{layout:{direction:"horizontal",verticalAlign:"top",horizontalAlign:"center",horizontalGap:0,verticalGap:0,hidden:!0},cell:{columnCount:t.columnCount,rowCount:t.rowCount,rowGap:t.rowGap,columnGap:t.columnGap,rowHeight:e.size.height,columnWidth:e.size.width}},components:a,sealed:!0,select:{enabled:!0,target:"child",maxCount:1,minCount:1,reversible:!1,autoUnselect:!0}};return c.makeSelectPanel(l.getNewID(),s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8),o=n(18),i=n(28),a=n(28),s=n(96),l=n(14),c=n(17),u=n(105);class d extends c.UIComponent{constructor(){super(...arguments),this.cachedPathVersion="",this.cachedPaths=[],this.newPosition={x:0,y:0},this.newSize={width:0,height:0},this.oldRealStartPoint={x:0,y:0},this.oldRealEndPoint={x:0,y:0},this.parseStyle=()=>{const e=l.StyleHelper.initCSSStyleParser(this.properties);return Object.assign(Object.assign({},e.getTextStyle()),{whiteSpace:"pre-wrap",outline:"none"})}}chainedVersion(){let e=super.version;const t=this.parent;if(!t)return e;const n=this.getStartCompID(),r=this.getEndCompID();return t.components.filter(e=>!e.isConnector&&(e.id===n||e.id===r)).reduce((e,t)=>e+t.version,e)}get position(){return this.doSearch(),this.newPosition}get size(){return this.doSearch(),this.newSize}get paths(){const{path:e}=this.value;return e||[]}get catchPaths(){return this.cachedPaths}set catchPaths(e){this.cachedPaths=[...e]}get line(){const{arrow:e,line:t}=this.properties,n=(null==t?void 0:t.startArrow)||!1,r=!!(null==e?void 0:e.value)||(null==t?void 0:t.endArrow)||!1;return{startArrow:n,startPointType:n&&(null==t?void 0:t.startPointType)||u.LinePointType.none,endArrow:r,endPointType:(null==e?void 0:e.value)?u.LinePointType.solidArrow:r&&(null==t?void 0:t.endPointType)||u.LinePointType.none}}getStartCompID(){const{startPoint:e}=this.value;return e.id}getEndCompID(){const{endPoint:e}=this.value;return e.id}getStartPoint(e){const{startPoint:t}=this.value,n=this.parent;return n?e?s.getRealPoint(n,t):s.getSearchPoint(n,t):{x:0,y:0}}getEndPoint(e){const{endPoint:t}=this.value,n=this.parent;return n?e?s.getRealPoint(n,t):s.getSearchPoint(n,t):{x:0,y:0}}getStartDirection(){const{startPoint:e}=this.value;return e.direction}getEndDirection(){const{endPoint:e}=this.value;return e.direction}isAloneLineAfterDelete(e){const t=this.parent;if(!t)return!0;const{startPoint:n,endPoint:r}=this.value,o=t.components.find(e=>e.id===n.id),i=t.components.find(e=>e.id===r.id);return(e.includes(r.id)||e.includes(n.id))&&(!o||!i)||n.id===r.id&&e.includes(n.id)||e.includes(n.id)&&e.includes(r.id)}parseProperties(){const e=Object.assign({},this.newPosition),{opacity:t}=this,n=this.properties,{stroke:o,textStyle:i}=n,a=l.StyleHelper.initCSSStyleParser(n),s=l.StyleHelper.parseSVGStroke(o),{strokeWidth:c,stroke:u,strokeDasharray:d}=s,h=this.hidden?"#fdaf32":u,p=r.min(20,c&&!this.hidden?c:this.hidden?2:1),f=this.hidden?"3,4":d;return r.depthClone({position:e,strokeStyle:s,strokeColor:h,strokeWidth:p,strokeDashArray:f,textStyle:i,bgFill:a.getFillStyle(),opacity:t,line:this.line})}computedTextInfo(e){const t=s.getMidpointWithPath(this.cachedPaths),n=this.parseStyle(),r=Number(n.fontSize)||0;let i={width:0,height:0};const a=e||this.text;a&&(i=o.measureTextSize(n,a,{isMultiText:!0,wrap:!1,isRich:!0}),i.width>100&&(i=o.measureTextSize(n,a,{defaultWidth:100,isMultiText:!0,wrap:!0,isRich:!0}))),r<12&&r&&(i={width:i.width/(r/12),height:i.height/(r/12)});return{midpoint:t,textCss:n,textSize:i,textPosition:{x:Math.floor(t.x-i.width/2-this.newPosition.x),y:Math.floor(t.y-i.height/2-this.newPosition.y)}}}pointBetweenTwoPoints(e){const t=e[0],n=e[1],r=e[2];return t.x===n.x&&t.x===r.x?(r.y>t.y&&r.y<n.y||r.y<t.y&&r.y>n.y||r.y===t.y)&&t.y!==n.y:t.y===n.y&&t.y===r.y?(r.x>t.x&&r.x<n.x||r.x<t.x&&r.x>n.x||r.x===t.x)&&t.x!==n.x:void 0}getOffSetBetweenPoints(e,t){return{x:r.round(e.x-t.x),y:r.round(e.y-t.y)}}doSearch(){if(this.chainedVersion()===this.cachedPathVersion)return this.cachedPaths;let e=[];const t=this.getStartPoint(!0),n=this.getEndPoint(!0);if(this.paths.length)e=[...this.paths];else{const o=this.parent,i=this.getStartPoint(),a=this.getEndPoint(),l=this.getOffSetBetweenPoints(t,this.oldRealStartPoint),c=this.getOffSetBetweenPoints(n,this.oldRealEndPoint);if((0!==l.x||0!==l.y)&&r.sameNumber(l.x,c.x)&&r.sameNumber(l.y,c.y))e=s.offsetPointArray(this.cachedPaths,{offsetX:l.x,offsetY:l.y});else{const{planner:r,bigBounds:l,scaleNum:c}=s.getPathPlannerOfContainer(o);e=s.searchPathByPlanner(i,a,r,l,c),e.length||(e=s.searchPathBySelf(i,a)),e.unshift(t.x,t.y),e.push(n.x,n.y)}}return e=s.removePathPointByLine(e,{removeSamePoint:!0}),e=s.judgeExtendWithPut(e),this.newPosition=s.getPositionByPaths(e),this.newSize=s.getSizeByPaths(e),this.cachedPathVersion=this.chainedVersion(),this.cachedPaths=[...e],this.oldRealStartPoint={x:t.x,y:t.y},this.oldRealEndPoint={x:n.x,y:n.y},e}searchPaths(){return this.doSearch()}searchPathsByPoint(e,t){const n={x:e.x,y:e.y},r={x:t.x,y:t.y},o=s.getSearchPointByRealPoint(n,e.direction),i=s.getSearchPointByRealPoint(r,t.direction),{planner:a}=s.getPathPlannerOfContainer(this.parent),l=[];if(a.search(o.x,o.y,i.x,i.y,l),!l.length){const e={x:o.x,y:i.y};let t=[o.x,o.y,e.x,e.y,i.x,i.y];n.x===r.x||n.y===r.y?t=[]:(this.pointBetweenTwoPoints([i,e,r])&&t.splice(4),this.pointBetweenTwoPoints([o,e,n])&&t.splice(0,2)),l.push(...t)}return l.unshift(n.x,n.y),l.push(r.x,r.y),{newPosition:s.getPositionByPaths(l),newSize:s.getSizeByPaths(l)}}intersectBounds(e,t,n){if(n)return super.intersectBounds(e,t,n);const r=this.parent;let o;o="page"===t?r.getViewBoundsInPage():r.getViewBoundsInArtboard();const i=s.convertPointArrayToPoint(this.cachedPaths),l=[],{left:c,top:u}=o;for(let e=1,t=i.length;e<t;e++){const t=i[e-1],n=i[e];l.push({start:{x:t.x+c,y:t.y+u},end:{x:n.x+c,y:n.y+u}})}return l.some(t=>a.isIntersetLine(e,t))}resetConnectPointWhenGroup(e,t){const n=this.getStartPoint(!0),o=this.getEndPoint(!0),i=r.depthClone(this.data),{startPoint:a,endPoint:l,path:c}=i.value,u=r.depthClone(a),d=r.depthClone(l),h=r.depthClone(c);return a&&t.includes(a.id)||(u.id="",u.direction=""),u.x=r.round(n.x-e.left),u.y=r.round(n.y-e.top),l&&t.includes(l.id)||(d.id="",d.direction=""),d.x=r.round(o.x-e.left),d.y=r.round(o.y-e.top),i.value.startPoint=u,i.value.endPoint=d,(null==h?void 0:h.length)&&(i.value.path=s.offsetPointArray(h,{offsetX:0-e.left,offsetY:0-e.top})),i}resetConnectPointWhenUnGroup(){const e=this.getStartPoint(!0),t=this.getEndPoint(!0),n=this.parent.getViewBoundsInParent(),o=r.depthClone(this.data),{startPoint:i,endPoint:a,path:l}=o.value,c=r.depthClone(i),u=r.depthClone(a),d=r.depthClone(l);return c.x=r.round(e.x+n.left-1),c.y=r.round(e.y+n.top-1),u.x=r.round(t.x+n.left-1),u.y=r.round(t.y+n.top-1),o.value.startPoint=c,o.value.endPoint=u,(null==d?void 0:d.length)&&(o.value.path=s.offsetPointArray(d,{offsetX:n.left,offsetY:n.top})),o}modifyConnectPointByDiff(e,t){var n;const o=this.getStartPoint(!0),i=this.getEndPoint(!0),a=r.depthClone(this.data),{startPoint:l,endPoint:c}=a.value;return a.value.startPoint={id:(null==t?void 0:t.start)?"":l.id,direction:(null==t?void 0:t.start)?"":l.direction,x:o.x+e.x,y:o.y+e.y},a.value.endPoint={id:(null==t?void 0:t.end)?"":c.id,direction:(null==t?void 0:t.end)?"":c.direction,x:i.x+e.x,y:i.y+e.y},(null===(n=this.paths)||void 0===n?void 0:n.length)&&(a.value.path=s.offsetPointArray(this.paths,{offsetX:e.x,offsetY:e.y})),a}pointAtPath(e,t=8){const n=(n,o)=>{let a;const{left:s,top:l,right:c,bottom:u}=i.getBoundsWithPoints([n,o]);return a=r.sameNumber(n.y,o.y)?i.init({left:s,top:l-t},{left:c,top:u+t}):i.init({left:s-t,top:l},{left:c+t,top:u}),i.isContainerPoint(a,{left:e.x,top:e.y})};if(this.cachedPaths){const e=s.convertPointArrayToPoint(this.cachedPaths);let t=e[0].x,o=e[0].y;e.forEach(e=>{t=r.min(t,e.x),o=r.min(o,e.y)}),e.forEach(e=>{e.x-=t,e.y-=o});let i=0;for(;i<e.length-1;){const t=n(e[i],e[i+1]);if(t)return t;i++}}return!1}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17),o=n(12),i=n(34),a=n(6),s=n(8),l=n(35),c=n(376),u=n(47),d=n(30),h=n(29),p=n(52),f=n(158),m=n(95);class g extends r.UIContainerComponent{constructor(){super(...arguments),this.removeComponents=e=>{var t,n;let r;const i=this.parent,c=(null===(t=this.parent)||void 0===t?void 0:t.type)===a.CCompoundPath,u=(null===(n=this.parent)||void 0===n?void 0:n.type)===a.CGroup,h=this.components.filter(t=>!e.map(e=>e.id).includes(t.id));if(0==h.length){const e=i.components.map(e=>s.depthClone(e.toJSON()));s.removeItemFromArray(e,e.find(e=>e._id===this.id));let t,n={do:{},undo:{}};if(e.length>1&&(n=this.removeSelfPatches()),c){const{newActiveGroup:r}=this.parent.refreshPatchesWithNewChildren(e,n);t=r}else u&&(this.parent.refreshPatchesWithNewChildren(e,n),1===e.length&&(t=this.parent.parent));r={patches:{[this.ownerArtboardID]:n},newActiveGroup:t||this.parent}}else if(1===h.length){const e=h[0],t=s.depthClone(e.toJSON());t._id=d.getNewID(),t.position=e.getPositionWithoutParent(),t.rotate=(t.rotate||0)+this.rotate;const n=this.removeSelfPatches(),a={do:{[i.id]:[o.Ops.addChildren("-1",[t])]},undo:{[i.id]:[o.Ops.removeChildren([t._id])]}};if(l.mergePatches(n,a),c){const e=this.parent.components.map(e=>s.depthClone(e.toJSON()));s.removeItemFromArray(e,e.find(e=>e._id===this.id)),e.push(t),this.parent.refreshPatchesWithNewChildren(e,n)}else if(u){const e=this.parent.components.map(e=>s.depthClone(e.toJSON()));s.removeItemFromArray(e,e.find(e=>e._id===this.id)),e.push(t),this.parent.refreshPatchesWithNewChildren(e,n)}r={patches:{[this.ownerArtboardID]:n},newActiveGroup:this.parent}}else{const t={do:{[this.id]:[o.Ops.removeChildren(e.map(e=>e.id))]},undo:{[this.id]:[o.Ops.addChildren(""+h.length,e.map(e=>e.toJSON()))]}},{patches:n}=this.refreshPatchesWithNewChildren(h.map(e=>e.toJSON()));r={patches:{[this.ownerArtboardID]:l.mergePatches(t,n)},newActiveGroup:this}}return r},this.refreshPatchesWithNewChildrenBynamicInfo=(e,t={do:{},undo:{}})=>{var n,i,f,m,g;const v=this.parent,y=(null===(n=this.parent)||void 0===n?void 0:n.type)===a.CCompoundPath,b=(null===(i=this.parent)||void 0===i?void 0:i.type)===a.CGroup;let w;if(e.length>1&&(w=this),1===e.length){const n=s.depthClone(e[0]);n._id=d.getNewID(),n.position=new r.UIComponent(n,this).getPositionWithoutParent(),n.rotate=(n.rotate||0)+this.rotate;const i=this.removeSelfPatches();l.mergePatches(t,i);const a={do:{[v.id]:[o.Ops.addChildren("-1",[n])]},undo:{[v.id]:[o.Ops.removeChildren([n._id])]}};if(l.mergePatches(t,a),y||b){const e=s.depthClone(this.parent.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t}));if(s.removeItemFromArray(e,e.find(e=>e._id===this.id)),e.push(n),y){const{newActiveGroup:n}=this.parent.refreshPatchesWithNewChildrenBynamicInfo(e,t);w=w||n}else this.parent.refreshPatchesWithNewChildren(e,t),1===e.length&&(w=this.parent.parent)}return{patches:t,newActiveGroup:w}}const C=(null===(f=this.properties.compoundModel)||void 0===f?void 0:f.componentOperation)||c.CompoundOperation.Unite,_=u.compoundPath(e,C);if(!_){const e=this.removeSelfPatches();if(l.mergePatches(t,e),w=this.parent,y||b){const e=s.depthClone(this.parent.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t}));if(s.removeItemFromArray(e,e.find(e=>e._id===this.id)),y){const{newActiveGroup:n}=this.parent.refreshPatchesWithNewChildrenBynamicInfo(e,t);w=w||n}else this.parent.refreshPatchesWithNewChildren(e,t),1===e.length&&(w=this.parent.parent)}return{patches:t,newActiveGroup:w}}const x={x:(null==_?void 0:_.position.x)||0,y:(null==_?void 0:_.position.y)||0},S=[];e.forEach(e=>{const n=t.do[e._id]||[],r=t.undo[e._id]||[],i=e.position,a={x:i.x-x.x,y:i.y-x.y};if(x.x||x.y){const t=this.components.find(t=>t.id===e._id);t||S.push(e);const i=(null==t?void 0:t.getCurrentPositionPath())||"position";n.push(o.Ops.replace(i,a)),r.push(o.Ops.replace(i,(null==t?void 0:t.position)||e.position))}n.length>0&&(t.do[e._id]=n,t.undo[e._id]=r)});const k=null===(m=t.do[this.id])||void 0===m?void 0:m.find(e=>o.Ops.isAddChildrenOperation(e));if(k){k.value.forEach(e=>{S.find(t=>t._id===e._id)&&(e.position={x:e.position.x-x.x,y:e.position.y-x.y})})}const P=h.mapVectorToTargetCoordinates(_.position,this.rotate),T=this.getBoxPointsInParent()[0],E={x:T.x+P.x,y:T.y+P.y},O=p.getCenter(E,_.size,this.rotate),M=p.getNWPoint(O,_.size,0),A=this.getCurrentSizePath(),D=this.getCurrentPositionPath(),I=this.getValuePath(this.type),L={do:{[this.id]:[o.Ops.replace(A,_.size),o.Ops.replace(D,M),o.Ops.replace(I,_.value)]},undo:{[this.id]:[o.Ops.replace(A,this.size),o.Ops.replace(D,this.position),o.Ops.replace(I,this.value)]}};l.mergePatches(t,L);const N=this.updateRadialGradientPatchesWithNewSize(_.size);if(l.mergePatches(t,N),y||b){const e=s.depthClone(this.parent.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t})),n=e.find(e=>e._id===this.id),r=h.mapVectorToTargetCoordinates(_.position,this.rotate),o=this.getBoxPointsInParent()[0],i={x:o.x+r.x,y:o.y+r.y},a=p.getCenter(i,_.size,this.rotate),l=p.getNWPoint(a,_.size,0);if(n.position=l,n.size=_.size,n.value=_.value,y){const{newActiveGroup:n}=this.parent.refreshPatchesWithNewChildrenBynamicInfo(e,t);w=w||n}else this.parent.refreshPatchesWithNewChildren(e,t),1===e.length&&(w=null===(g=this.parent)||void 0===g?void 0:g.parent)}return{patches:t,newActiveGroup:w}},this.refreshPatchesWithNewChildren=(e,t={do:{},undo:{}})=>{var n,i,f,m;const g=this.parent,v=(null===(n=this.parent)||void 0===n?void 0:n.type)===a.CCompoundPath,y=(null===(i=this.parent)||void 0===i?void 0:i.type)===a.CGroup;let b;if(e.length>1&&(b=this),1===e.length){const n=s.depthClone(e[0]);n._id=d.getNewID(),n.position=new r.UIComponent(n,this).getPositionWithoutParent(),n.rotate=(n.rotate||0)+this.rotate;const i=this.removeSelfPatches();l.mergePatches(t,i);const a={do:{[g.id]:[o.Ops.addChildren("-1",[n])]},undo:{[g.id]:[o.Ops.removeChildren([n._id])]}};if(l.mergePatches(t,a),v||y){const e=this.parent.components.map(e=>s.depthClone(e.toJSON()));if(s.removeItemFromArray(e,e.find(e=>e._id===this.id)),e.push(n),v){const{newActiveGroup:n}=this.parent.refreshPatchesWithNewChildren(e,t);b=b||n}else this.parent.refreshPatchesWithNewChildren(e,t),1===e.length&&(b=this.parent.parent)}return{patches:t,newActiveGroup:b}}const w=(null===(f=this.properties.compoundModel)||void 0===f?void 0:f.componentOperation)||c.CompoundOperation.Unite,C=u.compoundPath(e,w);if(!C){const e=this.removeSelfPatches();if(l.mergePatches(t,e),b=this.parent,v||y){const e=this.parent.components.map(e=>s.depthClone(e.toJSON()));if(s.removeItemFromArray(e,e.find(e=>e._id===this.id)),v){const{newActiveGroup:n}=this.parent.refreshPatchesWithNewChildren(e,t);b=b||n}else this.parent.refreshPatchesWithNewChildren(e,t),1===e.length&&(b=this.parent.parent)}return{patches:t,newActiveGroup:b}}const _={x:(null==C?void 0:C.position.x)||0,y:(null==C?void 0:C.position.y)||0},x=[];e.forEach(e=>{const n=t.do[e._id]||[],r=t.undo[e._id]||[],i=e.position,a={x:i.x-_.x,y:i.y-_.y};if(_.x||_.y){const t=this.components.find(t=>t.id===e._id);t||x.push(e);const i="/position";n.push(o.Ops.replace(i,a)),r.push(o.Ops.replace(i,(null==t?void 0:t.position)||e.position))}n.length>0&&(t.do[e._id]=n,t.undo[e._id]=r)});const S=null===(m=t.do[this.id])||void 0===m?void 0:m.find(e=>o.Ops.isAddChildrenOperation(e));if(S){S.value.forEach(e=>{x.find(t=>t._id===e._id)&&(e.position={x:e.position.x-_.x,y:e.position.y-_.y})})}const k=h.mapVectorToTargetCoordinates(C.position,this.rotate),P=this.getBoxPointsInParent()[0],T={x:P.x+k.x,y:P.y+k.y},E=p.getCenter(T,C.size,this.rotate);C.position=p.getNWPoint(E,C.size,0);const O=this.getCurrentSizePath(),M=this.getCurrentPositionPath(),A=this.getValuePath(this.type),D={do:{[this.id]:[o.Ops.replace(O,C.size),o.Ops.replace(M,C.position),o.Ops.replace(A,C.value)]},undo:{[this.id]:[o.Ops.replace(O,this.size),o.Ops.replace(M,this.position),o.Ops.replace(A,this.value)]}};l.mergePatches(t,D);const I=this.updateRadialGradientPatchesWithNewSize(C.size);if(l.mergePatches(t,I),v||y){const e=this.parent.components.map(e=>s.depthClone(e.toJSON())),n=e.find(e=>e._id===this.id);if(n.position=C.position,n.size=C.size,n.value=C.value,v){const{newActiveGroup:n}=this.parent.refreshPatchesWithNewChildren(e,t);b=b||n}else this.parent.refreshPatchesWithNewChildren(e,t),1===e.length&&(b=this.parent.parent)}return{patches:t,newActiveGroup:b}},this.doUpdateCompoundPathValue=e=>{const t=this.currentState.size||this.data.size;if(e.width===t.width&&e.height===t.height)return null;const n=e.width/(t.width||1),r=e.height/(t.height||1),i=e=>({x:e.x*n,y:e.y*r}),a=this.currentState.value||this.data.value,l=s.depthClone(a);l.forEach(e=>{e.data=e.data.map(e=>{const{point:t,handleOut:n,handleIn:r}=e;return{point:i(t),handleIn:i(r),handleOut:i(n)}})});const c=this.getValuePath(this.type);return{do:{[this.id]:[o.Ops.replace(c,l)]},undo:{[this.id]:[o.Ops.replace(c,a)]}}}}replaceComponents(e,t){const n={do:{},undo:{}},r=this.components.findIndex(e=>{var n;return e.id===(null===(n=t[0])||void 0===n?void 0:n.id)}),i={do:{[this.id]:[o.Ops.addChildren(""+r,e)]},undo:{[this.id]:[o.Ops.removeChildren(e.map(e=>e._id))]}};l.mergePatches(n,i);const a={do:{[this.id]:[o.Ops.removeChildren(t.map(e=>e.id))]},undo:{[this.id]:[o.Ops.addChildren(""+r,t.map(e=>e.toJSON()))]}};l.mergePatches(n,a);const s=this.components.filter(e=>!t.some(t=>t.id===e.id)).map(e=>e.toJSON()).concat(e);return this.refreshPatchesWithNewChildren(s,n),{patches:{[this.ownerArtboardID]:n}}}doChangeZOrder(e,t){const n=this.doChangeZOrderBefor(e,t);if(!n)return{patches:null};const{patches:r,comps:o}=n,i=s.depthClone(o.map(e=>e.toJSON())),{newActiveGroup:a,patches:c}=this.refreshPatchesWithNewChildren(i);return a&&a.id!==this.id?(r.do=c.do,r.undo=c.undo):l.mergePatches(r,c),{patches:{[this.ownerArtboardID]:r},newContainer:a}}getPositionPatchesOfChildrenChanged(e,t,n){var r,d,f;const m=this.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t}),g=this.components.filter(t=>!e.find(e=>e.id===t.id)&&!t.isConnector),v=this.parent,y=(null===(r=this.parent)||void 0===r?void 0:r.type)===a.CCompoundPath,b=(null===(d=this.parent)||void 0===d?void 0:d.type)===a.CGroup,w={do:{},undo:{}};m.forEach(t=>{const n=e.find(e=>e.id===t._id);if(n){const e={x:n.size.width/t.size.width,y:n.size.height/t.size.height};if(t.rotate=n.rotate,t.size=Object.assign(Object.assign({},n.size),{lockedRatio:t.size.lockedRatio}),t.position=n.position,n.value)t.value=n.value;else{const r=n.value||t.value;if(t.type===a.CPath)t.value=u.onPathValueZoom(r,e);else if(t.type===a.CCompoundPath){t.value=r.map(t=>u.onPathValueZoom(t,e));this.components.find(e=>e.id===t._id).updateChildrenOfCompoundPathByZoom(e,w,!0)}}}});const C=(null===(f=this.properties.compoundModel)||void 0===f?void 0:f.componentOperation)||c.CompoundOperation.Unite,_=u.compoundPath(m,C),x={do:{},undo:{}};if(m.forEach(e=>{const t=this.components.find(t=>t.id===e._id),n=t.getCurrentPositionPath(),r=t.getCurrentSizePath(),i=t.getCurrentRotatePath(),a={x:e.position.x-((null==_?void 0:_.position.x)||0),y:e.position.y-((null==_?void 0:_.position.y)||0)};if(x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace(n,a)],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace(n,t.position)],!s.isEqualDate(e.size,t.size)){x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace(r,e.size)],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace(r,t.size)];const n=t.updateRadialGradientPatchesWithNewSize(e.size);x.do[e._id]=[...x.do[e._id]||[],...n.do[e._id]||[]],x.undo[e._id]=[...x.undo[e._id]||[],...n.undo[e._id]||[]]}s.isEqualDate(e.rotate,t.rotate)||(x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace(i,e.rotate)],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace(i,t.rotate)]),s.isEqualDate(e.value,t.value)||(x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace("/value",e.value)],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace("/value",t.value)])}),l.mergePatches(w,x),i.updateUnChangedComponentsPatches(g,{x:(null==_?void 0:_.position.x)||0,y:(null==_?void 0:_.position.y)||0},w),_){const e=this.getValuePath(this.type),t=this.getCurrentSizePath(),n=this.getCurrentPositionPath(),r=h.mapVectorToTargetCoordinates(_.position,this.rotate),i=this.getBoxPointsInParent()[0],a={x:i.x+r.x,y:i.y+r.y},c=p.getCenter(a,_.size,this.rotate),u=p.getNWPoint(c,_.size,0),d={do:{[this.id]:[o.Ops.replace(e,_.value),o.Ops.replace(t,_.size),o.Ops.replace(n,u)]},undo:{[this.id]:[o.Ops.replace(e,this.value),o.Ops.replace(t,this.size),o.Ops.replace(n,this.position)]}};l.mergePatches(w,d);const f=this.updateRadialGradientPatchesWithNewSize(_.size);if(l.mergePatches(w,f),y||b){const e=s.depthClone(v.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t})),t=e.find(e=>e._id===this.id);t.value=_.value,t.size=_.size;const n=h.mapVectorToTargetCoordinates(_.position,this.rotate),r=this.getBoxPointsInParent()[0],o={x:r.x+n.x,y:r.y+n.y},i=p.getCenter(o,_.size,this.rotate),a=p.getNWPoint(i,_.size,0);t.position=a,y?v.refreshPatchesWithNewChildrenBynamicInfo(e,w):v.refreshPatchesWithNewChildren(e,w)}}else{n&&n.push(this);const e=this.getValuePath(this.type),t=this.getCurrentSizePath(),r={do:{[this.id]:[o.Ops.replace(e,[]),o.Ops.replace(t,{width:0,height:0})]},undo:{[this.id]:[o.Ops.replace(e,this.value),o.Ops.replace(t,this.size)]}};if(l.mergePatches(w,r),y||b){const e=v.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t});s.removeItemFromArray(e,e.find(e=>e._id===this.id)),y?v.refreshPatchesWithNewChildrenBynamicInfo(e,w):this.parent.refreshPatchesWithNewChildren(e,w)}}return{patches:w}}getPatchesOfChildrenChangedAndAdd(e,t){var n,r,d;const f=this.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t}),m=this.components.filter(t=>!e.find(e=>e.id===t.id)&&!t.isConnector),g=this.parent,v=(null===(n=this.parent)||void 0===n?void 0:n.type)===a.CCompoundPath,y=(null===(r=this.parent)||void 0===r?void 0:r.type)===a.CGroup,b={do:{},undo:{}},w=t.filter(({type:e,lib:t})=>"hot-area"!==(null==t?void 0:t.type)&&[a.CCompoundPath,a.CPath].includes(e));w.forEach(e=>{e.disabled=!1,e.selected=!1,e._currentState=void 0}),f.forEach(t=>{const n=e.find(e=>e.id===t._id);if(n){const e={x:n.size.width/t.size.width,y:n.size.height/t.size.height};if(t.rotate=n.rotate,t.size=Object.assign(Object.assign({},n.size),{lockedRatio:t.size.lockedRatio}),t.position=n.position,n.value)t.value=n.value;else{const r=n.value||t.value;if(t.type===a.CPath)t.value=u.onPathValueZoom(r,e);else if(t.type===a.CCompoundPath){t.value=r.map(t=>u.onPathValueZoom(t,e));this.components.find(e=>e.id===t._id).updateChildrenOfCompoundPathByZoom(e,b,!0)}}}});const C=(null===(d=this.properties.compoundModel)||void 0===d?void 0:d.componentOperation)||c.CompoundOperation.Unite,_=u.compoundPath([...f,...t],C),x={do:{},undo:{}};if(f.forEach(e=>{const t=this.components.find(t=>t.id===e._id),n=t.getCurrentPositionPath(),r=t.getCurrentSizePath(),i=t.getCurrentRotatePath(),a={x:e.position.x-((null==_?void 0:_.position.x)||0),y:e.position.y-((null==_?void 0:_.position.y)||0)};if(x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace(n,a)],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace(n,t.position)],!s.isEqualDate(e.size,t.size)){const n=t.updateRadialGradientPatchesWithNewSize(e.size);x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace(r,e.size),...n.do[e._id]||[]],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace(r,t.size),...n.undo[e._id]||[]]}s.isEqualDate(e.rotate,t.rotate)||(x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace(i,e.rotate)],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace(i,t.rotate)]),s.isEqualDate(e.value,t.value)||(x.do[e._id]=[...x.do[e._id]||[],o.Ops.replace("/value",e.value)],x.undo[e._id]=[...x.undo[e._id]||[],o.Ops.replace("/value",t.value)])}),l.mergePatches(b,x),i.updateUnChangedComponentsPatches(m,{x:(null==_?void 0:_.position.x)||0,y:(null==_?void 0:_.position.y)||0},b),w&&_){const e={do:{[this.id]:[o.Ops.addChildren("-1",w.map(e=>(e.position={x:e.position.x-_.position.x,y:e.position.y-_.position.y},e)))]},undo:{[this.id]:[o.Ops.removeChildren(t.map(e=>e._id))]}};l.mergePatches(b,e)}if(_){const e=this.getValuePath(this.type),t=this.getCurrentSizePath(),n=this.getCurrentPositionPath(),r=h.mapVectorToTargetCoordinates(_.position,this.rotate),i=this.getBoxPointsInParent()[0],a={x:i.x+r.x,y:i.y+r.y},c=p.getCenter(a,_.size,this.rotate),u=p.getNWPoint(c,_.size,0),d=this.updateRadialGradientPatchesWithNewSize(_.size),f={do:{[this.id]:[o.Ops.replace(e,_.value),o.Ops.replace(t,_.size),o.Ops.replace(n,u),...d.do[this.id]||[]]},undo:{[this.id]:[o.Ops.replace(e,this.value),o.Ops.replace(t,this.size),o.Ops.replace(n,this.position),...d.undo[this.id]||[]]}};if(l.mergePatches(b,f),v||y){const e=s.depthClone(g.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t})),t=e.find(e=>e._id===this.id);t.value=_.value,t.size=_.size,t.position=u,v?g.refreshPatchesWithNewChildrenBynamicInfo(e,b):g.refreshPatchesWithNewChildren(e,b)}}else{const e=this.getValuePath(this.type),t=this.getCurrentSizePath(),n={do:{[this.id]:[o.Ops.replace(e,[]),o.Ops.replace(t,{width:0,height:0})]},undo:{[this.id]:[o.Ops.replace(e,this.value),o.Ops.replace(t,this.size)]}};if(l.mergePatches(b,n),v||y){const e=g.components.map(e=>{const t=s.depthClone(e.toJSON());return t.position=e.position,t.size=e.size,t.rotate=e.rotate,t.value=e.value,t});s.removeItemFromArray(e,e.find(e=>e._id===this.id)),v?g.refreshPatchesWithNewChildrenBynamicInfo(e,b):g.refreshPatchesWithNewChildren(e,b)}}return{patches:b}}addComponents(e,t=-1){const n=e.filter(({type:e,lib:t})=>"hot-area"!==(null==t?void 0:t.type)&&[a.CCompoundPath,a.CPath].includes(e));if(!n.length)return{patches:{}};n.forEach(e=>{e.disabled=!1,e.selected=!1,e._currentState=void 0});const r={do:{[this.id]:[o.Ops.addChildren(""+t,n)]},undo:{[this.id]:[o.Ops.removeChildren(e.map(e=>e._id))]}},i=s.depthClone(this.components.map(e=>e.toJSON()));i.push(...n);const{newActiveGroup:c,patches:u}=this.refreshPatchesWithNewChildren(i);return c&&c.id!==this.id?(r.do=u.do,r.undo=u.undo):l.mergePatches(r,u),{patches:{[this.ownerArtboardID]:r},newActiveGroup:c}}updateChildrenOfCompoundPathByZoom(e,t,n){if(1===e.x&&1===e.y)return;this.components.filter(e=>[a.CCompoundPath,a.CPath].includes(e.type)).forEach(r=>{const c=s.depthClone(r.toJSON());n&&(c.position=r.position,c.value=r.value,c.size=r.size);const d=c.value,h=Object.assign(Object.assign({},c.size),{width:c.size.width*e.x,height:c.size.height*e.y}),p=Object.assign(Object.assign({},c.position),{x:c.position.x*e.x,y:c.position.y*e.y}),f=r.getCurrentSizePath(),m=r.getCurrentPositionPath();let g=d;const v=[a.CCompoundPath,a.CPath].includes(r.type)?"/value":r.getCurrentPropertiesPath("/value");r.type===a.CPath?g=u.onPathValueZoom(d,e):r.type===a.CCompoundPath?g=d.map(t=>u.onPathValueZoom(t,e)):r.type===a.CLine&&(g=i.getLineValueByZoom(d,e));const y={do:{[r.id]:[o.Ops.replace(f,h),o.Ops.replace(m,p),o.Ops.replace(v,g)]},undo:{[r.id]:[o.Ops.replace(f,c.size),o.Ops.replace(m,c.position),o.Ops.replace(v,d)]}};l.mergePatches(t,y);const b=r.updateRadialGradientPatchesWithNewSize(h);l.mergePatches(t,b),r.type===a.CCompoundPath&&r.updateChildrenOfCompoundPathByZoom(e,t,n)})}flipHandler(e,t){const n=super.flipHandler(e,t),r=m.getViewBoundsOfComponents(this.components);return this.components.forEach(t=>{const o=e===f.IFlipModel.Horizontal?"horizontal":"vertical",i=!(t.flip&&t.flip[o]),a=t.flipHandler(e,i),s=f.getPositionPatchesWhenFlip(t,e,i,r);l.coverPatches(n,s),l.coverPatches(n,a)}),n}}t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(176),o=n(17),i=n(302),a=n(85),s=n(1355),l=n(12);class c extends o.UIPanelComponent{constructor(e,t,n){super(e,t,n),this.parent=t,this.isPreview=n,this.updateSymbolData()}get isGroup(){return!this.isSymbol}get symbolData(){return this._symbolData}set symbolData(e){this._symbolData=e}buildTree(){const e=t=>{var n;this.symbolDataTree.insert(t._id,t),null===(n=t.components)||void 0===n||n.forEach(e)};this.isPreview&&(this.symbolDataTree||(this.symbolDataTree=new r.AvlTree((e,t)=>e.localeCompare(t))),e(this.data))}get resourceData(){const{symbol:e}=super.data;if(!e)return;const{libID:t,masterID:n}=e;return i.default.getSymbolData(t,n)}get symbolSizeVersion(){var e;return(null===(e=this.resourceData)||void 0===e?void 0:e.value.sizeVersion)||0}updateSymbolData(){var e;const{symbol:t}=super.data;if(t){const{libID:n,masterID:r}=t,o=i.default.getSymbolData(n,r);if(this.isPreview?this._symbolData||(this.symbolData=null==o?void 0:o.value):(4===(null==o?void 0:o.state)&&(this._isLostSymbol=!0),o&&o.updatedAt!==(null===(e=this._symbolData)||void 0===e?void 0:e.updatedAt)&&(this.symbolData=Object.assign(Object.assign({},o.value),{updatedAt:o.updatedAt}))),this._symbolData)return void(s.updateSymbolDataByComp(super.data,this._symbolData)&&(this._symbolData.v=Math.round(100*Math.random())));this._isLostSymbol=!0}}get size(){const{size:e,sizeVersion:t}=super.data;if(!this.resourceData)return e;const{size:n,sizeVersion:r}=this.resourceData.value;return(r||0)<(t||0)?e:n}loadSymbolDataByPreview(){var e;if(!this.isPreview)return;if(this._symbolData)return;const{symbol:t}=super.data;if(t){const{libID:n,masterID:r}=t;this.symbolData=null===(e=i.default.getSymbolData(n,r))||void 0===e?void 0:e.value}}resetSymbolInteraction(){if(!this._symbolData)return;const e=super.data,t={},n=e=>{var r;e.masterID&&(t[e.masterID]=e.interaction),null===(r=e.components)||void 0===r||r.forEach(n)};n(e);const r=e=>{var n;const o=e.interaction;if(o){Object.keys(o).forEach(n=>{const r=o[n];null==r||r.actions.forEach(r=>{var o,i;if("component"===r.type&&!t[r.target]){const a=null===(i=null===(o=t[e._id][n])||void 0===o?void 0:o.actions.find(e=>e._id===r._id))||void 0===i?void 0:i.target;a&&(r.target=a)}})})}null===(n=e.components)||void 0===n||n.forEach(r)};r(this._symbolData)}patchSymbolData(e,t){if(this.isPreview&&this.symbolDataTree){const n=this.symbolDataTree.get(e);n&&l.applyOperations(n,t)}}get data(){if(this._symbolData){const{_id:e,name:t,type:n,position:r,layout:o,rotate:i,opacity:a,hidden:s,locked:l,disabled:c,selected:u,symbol:d,states:h,_currentState:p,_scale:f,_animation:m,alias:g,remark:v,v:y,sizeVersion:b}=super.data;return Object.assign(Object.assign({},this._symbolData),{_id:e,name:t,type:n,position:r,layout:o,rotate:i,opacity:a,hidden:s,locked:l,disabled:c,selected:u,symbol:d,states:h,_currentState:p,_scale:f,_animation:m,remark:v,alias:g,v:y,sizeVersion:b})}return Object.assign(Object.assign({},super.data),{hidden:this.isPreview})}updateSymbolBounds(){this.updateSymbolData()}refreshComponents(){var e;this.updateSymbolData(),(null===(e=this._symbolData)||void 0===e?void 0:e.components)?this.components=this._symbolData.components.map(e=>a.makeUIComponent(e,this,this.isPreview)):super.refreshComponents(),this.isPreview&&this.buildTree()}resizeHandler2(e,t,n,r){const o=super.resizeHandler2(e,t,n,r);return this._symbolData&&o.patches&&Object.keys(o.patches).length&&(this._symbolData.v=Math.round(100*Math.random())),o}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateSymbolDataByComp=void 0;const r=n(40),o=n(219),i=n(6),a=n(114),s=n(28),l=n(28),c=n(29),u=n(34),d=n(85),h=n(43),p=n(8),f=n(35),m=(e,t,n)=>{var g,v,y,b;const{size:w}=e,{type:C}=t,_=a.getCompsLayoutByData([e],s.createBoundsBySize(n)).get(e._id),x=c.getBoundsOffsetBySizeChange(n,t.size),S={container:{before:{position:{x:0,y:0},size:n},after:{position:{x:0,y:0},size:t.size},isResponsive:t.layout.responsive},shift:!1,scale:{h:t.size.width/n.width,v:t.size.height/n.height}};if(C===i.CStackPanel)o.reArrangeComponentsOfStackPanel(t,t.properties.layout);else if(C===i.CWrapPanel)o.reArrangeComponentOfWrapPanel(t);else if(C===i.CGridPanel)o.reArrangeGridPanel(t);else{if(e.sealed){let t={do:{},undo:{}};const{position:n,size:r,patches:o}=d.makeUIComponent(e).resizeHandler2(x,_,S);o&&f.coverPatches(t,o);const i=h.getLibData((null===(g=e.lib)||void 0===g?void 0:g.type)||""),a=p.depthClone(e.size);if(i){const n=null===(v=i.editor)||void 0===v?void 0:v.onResize;if(n){e.size=a;const o=n(d.makeUIComponent(e),r);e.size=r,t=f.assignPatches(t,o||{do:{},undo:{}})}}const s=u.getCompAndItsChildren([e]),l=u.extractDynamicInfoFromPatch(t);return s.forEach(e=>{const t=e._id,n=l[t];if(n){const{position:t,size:r,rotate:o}=n;t&&(e.position=t),r&&(e.size=r),o&&(e.rotate=o)}}),e.position=n,void(e.size=r)}{e.type===i.CLine&&t.type===i.CSymbol&&1===(null===(y=t.components)||void 0===y?void 0:y.length)&&(p.sameNumber(e.size.height,0)&&(_.vertical=r.VerticalAlign.Middle),p.sameNumber(e.size.width,0)&&(_.horizontal=r.HorizontalAlign.Center));const{position:n,size:o,rotate:a}=u.getResizeResultByParentChange(e,x,_,S),s=l.initBoundsWithPositionAndSize(n,o),c=d.makeUIComponent(e),h=c.updateValueOrPropertiesWithBoundsChanged(s),f={do:{},undo:{}},m=[],g=[];if(h&&(h.do[c.id].forEach(e=>{m.push(e)}),h.undo[c.id].forEach(e=>{g.push(e)})),m.length>0){const e=f.do[c.id],t=f.undo[c.id];f.do[c.id]=e?[...e,...m]:m,f.undo[c.id]=t?[...t,...g]:g}if(c.type===i.CCompoundPath){const e=c.currentState.size||c.size,t={x:s.width/(e.width||1),y:s.height/(e.height||1)};c.updateChildrenOfCompoundPathByZoom(t,f)}const v=u.extractDynamicInfoFromPatch(f),b=u.getCompAndItsChildren([c]);e.position=n,e.size=o,e.rotate=a,u.setCompData(b,v)}}null===(b=e.components)||void 0===b||b.forEach(t=>m(t,e,w))};t.updateSymbolDataByComp=function(e,t){var n;const{size:r,sizeVersion:o}=e,{size:{width:i,height:a},sizeVersion:s}=t;return!((o||0)<=(s||0))&&((r.width!==i||r.height!==a)&&(t.size=Object.assign({},r),null===(n=t.components)||void 0===n||n.forEach(e=>{m(e,t,{width:i,height:a})}),!0))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(219),o=n(17),i=n(12),a=n(85),s=n(35),l=n(34),c=n(29),u=n(28);class d extends o.UIContainerComponent{constructor(e,t,n){super(e,t,n),this.parent=t,this.isPreview=n,this.canMoveChildren=!1,e.components?this.components=a.makeComponents(e.components,this,n):this.components=[],r.reArrangeGridPanel(e)}refreshComponents(){super.refreshComponents(),r.reArrangeGridPanel(this.data)}addComponents(e,t=-1){const n={do:{[this.id]:[i.Ops.addChildren("-1",e)]},undo:{[this.id]:[i.Ops.removeChildren(e.map(e=>e._id))]}},o=this.toJSON(),a=r.getCellInfo(o,e),l=r.getGridChildrenPosition(o);e.forEach(e=>{const t=e._id,n=a.cells.find(e=>e.id===t);if(n){const{rowIndex:t,columnIndex:r}=n,o=l[`${t}-${r}`];e.position=o}});let c=0,u=0;const d=this.size,{width:h,height:p}=d;if(c=a.containerSize.height,u=a.containerSize.width,u!==h||c!==p){const e=this.getCurrentSizePath();n.do[this.id].push(i.Ops.replace(e,Object.assign(Object.assign({},d),{height:c,width:u}))),n.undo[this.id].push(i.Ops.replace(e,d))}const f=this.afterAppendComponents(e);return f&&s.coverPatches(n,f),{patches:{[this.ownerArtboardID]:n}}}moveChildren(e,t){return{[this.ownerArtboardID]:{do:{},undo:{}}}}getPositionPatchesOfChildrenChanged(e,t=!1){const n={do:{},undo:{}},r=e.filter(e=>e.type!==l.ComponentChangeType.Removed).map(e=>{const{size:t,position:n,rotate:r}=e;return c.getBoundsInParent({size:t,position:n,rotate:r})}),o=e.map(e=>e.id),i=this.components.filter(e=>!o.includes(e.id)),a=i.map(e=>e.getViewBoundsInParent()),d=u.union(...r.concat(a)),h=d.left,p=d.top;l.updateEditComponentsPatches(this.components,e,{x:h,y:p},n),e.filter(e=>e.type===l.ComponentChangeType.Add).forEach(e=>{e.position.x=h?e.position.x-h:e.position.x,e.position.y=p?e.position.y-p:e.position.y}),l.updateUnChangedComponentsPatches(i,{x:h,y:p},n);const f={x:h,y:p},m={width:d.width,height:d.height};if(t&&this.parent){const e=this.position,t=this.parent.getPositionPatchesOfChildrenChanged([{id:this.id,type:l.ComponentChangeType.Edit,position:{x:e.x+h,y:e.y+p},size:m,rotate:0}],!0);t.patches&&s.coverPatches(n,t.patches)}return{patches:n,position:f,size:m,rotate:0}}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17),o=n(14),i=n(155),a=n(12),s=n(214),l=n(35),c=n(8),u=n(303),d=n(205),h=n(4);class p extends r.UIContainerComponent{constructor(e,t,n){super(e,t,n),this.parent=t,this.isPreview=n}get isShowExpandIcon(){var e;return!!(null===(e=this.properties.showExpandIcon)||void 0===e?void 0:e.value)}get isShowNodeIcon(){var e;return!!(null===(e=this.properties.showNodeIcon)||void 0===e?void 0:e.value)}get isShowCheckbox(){var e;return!!(null===(e=this.properties.showSelectBox)||void 0===e?void 0:e.value)}getPositionPatchesOfChildrenChanged(e,t){return{patches:{do:{},undo:{}}}}addComponents(e,t=-1){const n={do:{[this.id]:[a.Ops.addChildren("-1",e)]},undo:{[this.id]:[a.Ops.removeChildren(e.map(e=>e._id))]}};return{patches:{[this.ownerArtboardID]:n}}}createNewItemCompByNode(e,t,n,r){const o=this.getItemCompById(e),a=d.deepClone(o.$data),s=u.cloneComponents(a.components||[],o,{x:0,y:0});return s.forEach(e=>{e.alias===i.TreeItemAlias.NodeIcon&&(e.value={iconCode:n?60433:60472,fontName:"lightIconFont"}),e.alias===i.TreeItemAlias.NodeText&&(e.value=`${h.default("property.component.tree.itemText")} ${r+1}`)}),a.components=s,a._id=t,a.selected=!1,a}modifyValueWhenPropertyChange(e,t){const n=this.properties[e],r=t,o=i.diffrentWithProperty(n,r);let a={do:{},undo:{}};"treeExpand"===e&&this.getExpandPatches(o,r,a);const s=this.getCompColumnType(e);return o.includes("iconColor")&&this.getIconColorPatches(s,r,a),o.includes("iconSize")&&this.getIconSizeColorPatches(s,r,a),"textStyle"===e&&this.getTextVersionPatches(a),"itemCheckedTextStyle"===e&&this.getTextVersionPatchesWhenChecked(a),a}getTextVersionPatchesWhenChecked(e){this.components.forEach(t=>{t.selected&&this.modifyTextVersionPatches(t,e)})}modifyTextVersionPatches(e,t){const n=e.modifyTextCompVersion();l.mergePatches(t,n)}getTextVersionPatches(e){this.components.forEach(t=>{this.modifyTextVersionPatches(t,e)})}getIconSizeColorPatches(e,t,n){this.components.forEach(r=>{const o=r.modifyCompSizePatches(e,{width:t.iconSize,height:t.iconSize});l.mergePatches(n,o)})}getIconColorPatches(e,t,n){this.components.forEach(r=>{const o=r.modifyCompColorPatches(e,t.iconColor);l.mergePatches(n,o)})}getCompColumnType(e){let t=i.TreeItemColumn.Expand;return"treeNode"===e?t=i.TreeItemColumn.Node:"treeCheckbox"===e&&(t=i.TreeItemColumn.CheckBox),t}getExpandPatches(e,t,n){if(e.includes("chooseExpandType")){const e=s.defaultSelectIcon.find(e=>e.id===t.chooseExpandType);if((null==e?void 0:e.value)&&2===e.value.length){this.components.forEach(t=>{const r=t.getComponentByAlias(i.TreeItemAlias.ExpandIcon);n.do[r.id]=[a.Ops.replace("/value",e.value[1]),a.Ops.replace("/states/checked/value",e.value[0])],n.undo[r.id]=[a.Ops.replace("/value",r.value),a.Ops.replace("/states/checked/value",r.states.checked.value)]});const{expandACollapseIcon:t,relation:r}=this.value;t.iconMode="font",t.expand.icon=e.value[0],t.collapse.icon=e.value[1],n.do[this.id]=[a.Ops.replace("/value",{expandACollapseIcon:t,relation:r})],n.undo[this.id]=[a.Ops.replace("/value",this.value)]}}}parseProperties(){var e,t,n,r;const{properties:i,size:a,padding:s}=this,l=o.StyleHelper.initCSSStyleParser(i),c=null===(e=i.levelIndent)||void 0===e?void 0:e.value.value,u=null===(t=i.itemLineHeight)||void 0===t?void 0:t.value.value,d=o.StyleHelper.parserFill(i.itemCheckedFill),h=i.treeExpand.isShow||!1,p=(null===(n=i.treeNode)||void 0===n?void 0:n.isShow)||!1,f=(null===(r=i.treeCheckbox)||void 0===r?void 0:r.isShow)||!1;return{fill:Object.assign({},l.getFillStyle()),stroke:Object.assign({},l.getStrokeStyle()),textStyle:Object.assign({},l.getTextStyle()),lineHeight:u,intention:c,checkedFill:d,showExpandIcon:h,showNodeIcon:p,showSelectBox:f,size:a,padding:s}}getItemCompById(e){return this.components.find(t=>t.id===e)}treeValuePathes(e){let t={do:{},undo:{}};return t.do[this.id]=[a.Ops.replace("/value",e)],t.undo[this.id]=[a.Ops.replace("/value",this.value)],t}addTreeItemComp(e,t){const n=this.treeValuePathes(e),r={do:{[this.id]:[a.Ops.addChildren("-1",t)]},undo:{[this.id]:[a.Ops.removeChildren(t.map(e=>e._id))]}};return l.mergePatches(n,r)}deleteTreeItemComp(e,t){const n=this.treeValuePathes(e),r={do:{[this.id]:[a.Ops.removeChildren(t.map(e=>e._id))]},undo:{[this.id]:[a.Ops.addChildren("-1",t)]}};return l.mergePatches(n,r)}addNewNodeToRoot(e){const{relation:t,expandACollapseIcon:n}=this.value,r=t.length,o=Object.assign(Object.assign({},s.newRelationData),{id:e,index:r});t.push(o);const i=t[0].id,a=this.createNewItemCompByNode(i,e,!0,r);return this.addTreeItemComp({expandACollapseIcon:n,relation:t},[a])}getNodeLevel(e){let t=e.parent,n=1;for(;t;)n++,t=t.parent;return n}getChildLevel(e){const t=i.treeToArr([e.data]).map(e=>e.path.split(",").length);return Math.max(...t)}insertNewNode(e,t){var n;const{relation:r,expandACollapseIcon:o}=this.value,{tree:a,treeRelation:l}=i.createAvlTreeWithTreeData(c.depthClone(r)),u=a.get(e);if(this.getNodeLevel(u)>=s.MaxInsertLevel)return{do:{},undo:{}};const d=(null===(n=u.children)||void 0===n?void 0:n.length)||0,h={data:Object.assign(Object.assign({},s.newRelationData),{id:t,index:d}),parent:u};i.insertToTreeChild(h,u);const p=i.parseTreeData(l),f=this.createNewItemCompByNode(e,t,!1,d);return this.addTreeItemComp({expandACollapseIcon:o,relation:p},[f])}insertNewNodeAsSibling(e,t){var n,r;const{relation:o,expandACollapseIcon:a}=this.value,{tree:s,treeRelation:l}=i.createAvlTreeWithTreeData(c.depthClone(o)),u=s.get(e),d=(null===(r=null===(n=u.parent)||void 0===n?void 0:n.children)||void 0===r?void 0:r.length)||o.length,h=u.data.index+1,p={data:Object.assign(Object.assign({},u.data),{children:[],id:t,index:h}),parent:u.parent};i.insertToTreeSibling(l,p,u);const f=i.parseTreeData(l),m=this.createNewItemCompByNode(e,t,!u.parent,d);return this.addTreeItemComp({expandACollapseIcon:a,relation:f},[m])}deleteNode(e){const{relation:t,expandACollapseIcon:n}=this.value,{tree:r,treeRelation:o}=i.createAvlTreeWithTreeData(c.depthClone(t)),a=r.get(e);if(!a.parent&&1===t.length)return{do:{},undo:{}};i.deleteToTree(o,a);const s=i.parseTreeData(o),l=this.getItemCompById(e).$data;return this.deleteTreeItemComp({expandACollapseIcon:n,relation:s},[l])}modifyExpandState(e){const{relation:t,expandACollapseIcon:n}=this.value,{tree:r,treeRelation:o}=i.createAvlTreeWithTreeData(c.depthClone(t)),s=r.get(e),u=s.data.expand;s.data.expand=!u;const d=i.parseTreeData(o),h=this.treeValuePathes({expandACollapseIcon:n,relation:d});let p={do:{},undo:{}};const f=this.getItemCompById(s.data.id).expandComp;return p.do[f.id]=[a.Ops.replace("/selected",!u)],p.undo[f.id]=[a.Ops.replace("/selected",u)],l.mergePatches(h,p)}mapIDWithIndex(){const{relation:e}=this.value,t=i.treeToArr(e);let n={};return t.forEach((e,t)=>{n[e.id]=t}),n}findTreeNode(e){const{relation:t}=this.value,n=i.treeToArr(t)[e];return null==n?void 0:n.id}findTreeNodeIndexById(e){const{relation:t}=this.value;return i.treeToArr(t).findIndex(t=>t.id===e)}doDefaultChecked(e){let t={do:{},undo:{}};return this.components.forEach(n=>{n.selected?(t.do[n.id]=[a.Ops.replace("/selected",!1)],t.undo[n.id]=[a.Ops.replace("/selected",!0)]):n.id===e&&(t.do[n.id]=[a.Ops.replace("/selected",!0)],t.undo[n.id]=[a.Ops.replace("/selected",!1)]),(n.selected||n.id===e)&&this.modifyTextVersionPatches(n,t)}),t}doMoveNodeUp(e){const{relation:t,expandACollapseIcon:n}=this.value,{tree:r,treeRelation:o}=i.createAvlTreeWithTreeData(c.depthClone(t)),a=r.get(e);if(i.keyUpMoveToTree(o,a)){const e=i.parseTreeData(o);return this.treeValuePathes({expandACollapseIcon:n,relation:e})}}doMoveNodeDown(e){const{relation:t,expandACollapseIcon:n}=this.value,{tree:r,treeRelation:o}=i.createAvlTreeWithTreeData(c.depthClone(t)),a=r.get(e);if(i.keyDownMoveToTree(o,a)){const e=i.parseTreeData(o);return this.treeValuePathes({expandACollapseIcon:n,relation:e})}}}t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UITreeItemComponent=void 0;const r=n(17),o=n(6),i=n(214),a=n(155),s=n(12),l=n(210),c=n(30),u=n(283),d=n(18);class h extends r.UIPanelComponent{getIcon(e){return e?"image"===e.type?{type:"image",icon:null==e?void 0:e.value}:{type:"icon",icon:null==e?void 0:e.value}:{type:"image",icon:""}}get isCheckedBox(){return this.checkBoxComp.selected}get expandComp(){return this.getComponentByAlias(a.TreeItemAlias.ExpandIcon)}get checkBoxComp(){return this.getComponentByAlias(a.TreeItemAlias.CheckBox)}get nodeComp(){return this.getComponentByAlias(a.TreeItemAlias.NodeIcon)}get textComp(){return this.getComponentByAlias(a.TreeItemAlias.NodeText)}getExpandIcon(){const e=this.components.find(e=>e.column===a.TreeItemColumn.Expand);return this.getIcon(e)}getNodeIcon(){const e=this.components.find(e=>e.column===a.TreeItemColumn.Node);return this.getIcon(e)}getText(){const e=this.components.find(e=>e.column===a.TreeItemColumn.Text);return e?e.value:""}modifyCompValuePathes(e,t,n){let r={do:{},undo:{}};const a=this.components.find(t=>t.column===e);if(a)if((null==a?void 0:a.type)===o.CIcon&&"string"!=typeof n||(null==a?void 0:a.type)===o.CImage&&"string"==typeof n)r.do[a.id]=[s.Ops.replace("/value",n)],r.undo[a.id]=[s.Ops.replace("/value",a.value)];else{r.do[this.id]=[s.Ops.removeChildren([(null==a?void 0:a.id)||""])],r.undo[this.id]=[s.Ops.addChildren(""+a.column,[a.$data])];const e=c.getNewID();if("string"==typeof n)r.do[this.id]=[s.Ops.addChildren(""+a.column,[l.makeImage(e)])],r.undo[this.id]=[s.Ops.removeChildren([e])];else{const n=t?i.defaultExpandIcon.expand:i.defaultExpandIcon.collapse;r.do[this.id]=[s.Ops.addChildren(""+a.column,[u.makeIcon(e,{value:n})])],r.undo[this.id]=[s.Ops.removeChildren([e])]}}return r}modifyCompColorPatches(e,t){let n={do:{},undo:{}},r=this.components.find(t=>t.column===e);return e===a.TreeItemColumn.CheckBox&&(r=r.getComponentByAlias(a.TreeItemAlias.CheckBoxIcon)),r&&r.type===o.CIcon&&(n.do[r.id]=[s.Ops.replace("/properties/icon",{color:t})],n.undo[r.id]=[s.Ops.replace("/properties/icon",r.properties.icon)]),n}modifyCompSizePatches(e,t){let n={do:{},undo:{}};const r=this.components.find(t=>t.column===e);if(r&&(n.do[r.id]=[s.Ops.replace("/size",t)],n.undo[r.id]=[s.Ops.replace("/size",r.size)],e===a.TreeItemColumn.CheckBox)){const e=r.getComponentByAlias(a.TreeItemAlias.CheckBoxIcon);n.do[e.id]=[s.Ops.replace("/size",t)],n.undo[e.id]=[s.Ops.replace("/size",e.size)]}return n}modifyTextPatches(e){let t={do:{},undo:{}};const n=this.textComp,{width:r,height:o}=d.measureTextSize(n.properties.textStyle,e);return n&&e!==n.value&&(t.do[n.id]=[s.Ops.replace("/value",e),s.Ops.replace("/size",{width:r,height:o})],t.undo[n.id]=[s.Ops.replace("/value",n.value),s.Ops.replace("/size",n.size)]),t}modifyTextCompVersion(){let e={do:{},undo:{}};const t=this.textComp,n=t.$data.v,r=n+1;return e.do[t.id]=[s.Ops.replace("/v",r)],e.undo[t.id]=[s.Ops.replace("/v",n)],e}}t.UITreeItemComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(148),o=n(7),i=n(17),a=n(12),s=n(149),l=n(136),c=n(136),u=n(35),d=n(30),h=n(14),p=n(8),f=n(18),m=n(130),g=n(6),v=n(34);class y extends i.UIContainerComponent{constructor(){super(...arguments),this.selectedComps=[],this.getCompsInArea=e=>e?this.components.filter(t=>l.isCellSelected(t.row,t.column,e)):[],this.updateTextCompSize=e=>{const t={do:{},undo:{}};return this.components.filter(e=>e.type===g.CText).forEach(n=>{const r={row:n.row,column:n.column},o=l.findCell(e,r);if(!o)return;const i=this.getTextSizePatches(e,n,o,r);u.coverPatches(t,i)}),t},this.updateTextCompAlign=e=>{const t={do:{},undo:{}};return this.components.filter(e=>e.type===g.CText).forEach(n=>{const r={row:n.row,column:n.column},o=l.findCell(e,r);if(!o)return;const i=n.getCurrentPropertiesPath("properties/textFormat"),s=p.depthClone(n.properties.textFormat);s&&(s.textAlign=o.style.textAlign);const c={do:{[n.id]:[a.Ops.replace(i,s)]},undo:{[n.id]:[a.Ops.replace(i,n.properties.textFormat)]}};u.coverPatches(t,c)}),t},this.updateTextComps=(e,t,n)=>{const r={do:{},undo:{}};return this.components.filter(e=>e.type===g.CText&&!(null==n?void 0:n.includes(e.id))).map(e=>{const n={comp:e,row:e.row,column:e.column},r=null==t?void 0:t.find(t=>t.id===e.id);return r&&(n.column=r.column,n.row=r.row),n}).forEach(t=>{const{comp:n,row:o,column:i}=t,s={row:o,column:i},c=l.findCell(e,s);if(!c)return;const d=this.getTextSizePatches(e,n,c,s);u.coverPatches(r,d);const h=n.getCurrentPropertiesPath("properties/textFormat"),f=p.depthClone(n.properties.textFormat);f&&(f.textAlign=c.style.textAlign);const m={do:{[n.id]:[a.Ops.replace(h,f)]},undo:{[n.id]:[a.Ops.replace(h,n.properties.textFormat)]}};u.coverPatches(r,m)}),r},this.getNewPatchesWithFixChildrenPosition=e=>{var t;const n=null!=e?e:{do:{},undo:{}},r=Object.keys(null!==(t=null==e?void 0:e.do)&&void 0!==t?t:{}),o=[];if(this.components.forEach(e=>{const{id:t,position:{x:n,y:i}}=e;(r.includes(t)||n||i)&&o.push(t)}),o.length){const e={do:{},undo:{}};o.forEach(t=>{e.do[t]=[a.Ops.replace("/position",{x:0,y:0})],e.undo[t]=[]}),u.mergePatches(n,e)}return n}}addComponents(e,t=-1){return{patches:{[this.ownerArtboardID]:{do:{[this.id]:[a.Ops.addChildren(""+t,e)]},undo:{[this.id]:[a.Ops.removeChildren(e.map(e=>e._id))]}}}}}getPositionPatchesOfChildrenChanged(e){const t={do:{},undo:{}};return v.updateEditComponentsPatches(this.components,e,{x:0,y:0},t),{patches:t}}doUpdateTableValues(e){const t=this.data.size,n={width:e.width-t.width,height:e.height-t.height},r={do:{},undo:{}},o=l.updateValueWithTableSizeDiff(this.data.value,n),i=this.setValue(o);return u.coverPatches(r,i),r}getTextSizePatches(e,t,n,r){const o=h.StyleHelper.initCSSStyleParser(t.properties),i=l.getAreaOfCell(e,n,r),s={isMultiText:!0,isRich:!0,wrap:!0,defaultWidth:l.getBoundsOfSelectArea(e,i).width-2*m.DefaultCellPadding},{width:c,height:u}=f.measureTextSize(o.getTextStyle(),""+t.value,s),d=t.getCurrentSizePath();return{do:{[t.id]:[a.Ops.replace(d,Object.assign(Object.assign({},t.size),{width:c,height:u}))]},undo:{[t.id]:[a.Ops.replace(d,t.size)]}}}splitCells(e){const t=this.value,n=l.splitCells(t,e);return{newValue:n,childrenPatches:this.updateTextComps(n)}}mergeCells(e){const t=this.value,n=l.mergeCells(t,e),r={do:{},undo:{}},o=this.getCompsInArea(e).sort((e,t)=>e.column-t.column).sort((e,t)=>e.row-t.row);if(o.length){const t=o[0],i={row:t.row,column:t.column};r.do[t.id]=[...r.do[t.id]||[],a.Ops.replace("/row",e.start.row),a.Ops.replace("/column",e.start.column)],r.undo[t.id]=[...r.undo[t.id]||[],a.Ops.replace("/row",t.row),a.Ops.replace("/column",t.column)],this.selectedComps=[t];const s=l.findCell(n,e.start),c=l.findCell(n,i);s&&c&&(s.data=p.depthClone(c.data),s.dataSource=p.depthClone(c.dataSource),s.type=c.type);const d=o.filter(e=>e.id!==t.id);if(d.length){const{patches:e}=this.removeComponents(d);u.coverPatches(r,e[this.ownerArtboardID])}const h=this.updateTextComps(n,[{id:t.id,row:e.start.row,column:e.start.column}],d.map(e=>e.id));u.coverPatches(r,h)}return{newValue:n,childrenPatches:r}}unshiftRows(e,t){const n=this.value,r=p.min(t,m.MaxRowsCount-n.rows.length),o=e.sort((e,t)=>e-t)[0],i={do:{},undo:{}},s=[];this.components.forEach(e=>{e.row>=o&&(i.do[e.id]=[...i.do[e.id]||[],a.Ops.replace("/row",e.row+r)],i.undo[e.id]=[...i.undo[e.id]||[],a.Ops.replace("/row",e.row)],s.push({id:e.id,row:e.row+r,column:e.column}))});const c=l.unshiftRows(n,o,r),d=this.updateTextComps(c,s);return u.coverPatches(i,d),{newValue:c,childrenPatches:i}}pushRows(e,t){const n=this.value,r=p.min(t,m.MaxRowsCount-n.rows.length),o=e.sort((e,t)=>t-e)[0]+1,i={do:{},undo:{}},s=[];o<n.rows.length&&this.components.forEach(e=>{e.row>=o&&(i.do[e.id]=[...i.do[e.id]||[],a.Ops.replace("/row",e.row+r)],i.undo[e.id]=[...i.undo[e.id]||[],a.Ops.replace("/row",e.row)],s.push({id:e.id,row:e.row+r,column:e.column}))});const c=l.pushRows(n,o,r),d=this.updateTextComps(c,s);return u.coverPatches(i,d),{newValue:c,childrenPatches:i}}unshiftColumns(e,t){const n=this.value,r=p.min(t,m.MaxColumnsCount-n.columns.length),o=e.sort((e,t)=>e-t)[0],i={do:{},undo:{}},s=[];this.components.forEach(e=>{e.column>=o&&(i.do[e.id]=[...i.do[e.id]||[],a.Ops.replace("/column",e.column+r)],i.undo[e.id]=[...i.undo[e.id]||[],a.Ops.replace("/column",e.column)],s.push({id:e.id,row:e.row,column:e.column+r}))});const c=l.unshiftColumns(n,o,r),d=this.updateTextComps(c,s);return u.coverPatches(i,d),{newValue:c,childrenPatches:i}}pushColumns(e,t){const n=this.value,r=p.min(t,m.MaxColumnsCount-n.columns.length),o=e.sort((e,t)=>t-e)[0]+1,i={do:{},undo:{}},s=[];o<n.columns.length&&this.components.forEach(e=>{e.column>=o&&(i.do[e.id]=[...i.do[e.id]||[],a.Ops.replace("/column",e.column+r)],i.undo[e.id]=[...i.undo[e.id]||[],a.Ops.replace("/column",e.column)],s.push({id:e.id,row:e.row,column:e.column+r}))});const c=l.pushColumns(n,o,r),d=this.updateTextComps(c,s);return u.coverPatches(i,d),{newValue:c,childrenPatches:i}}removeRows(e){const t=this.value,n=Array.from(new Set(e)).sort((e,t)=>t-e),r={do:{},undo:{}},o=[],i=[];this.components.forEach(e=>{if(n.includes(e.row))o.push(e);else{const t=n.filter(t=>t<e.row).length;t&&(r.do[e.id]=[...r.do[e.id]||[],a.Ops.replace("/row",e.row-t)],r.undo[e.id]=[...r.undo[e.id]||[],a.Ops.replace("/row",e.row)],i.push({id:e.id,row:e.row-t,column:e.column}))}});const{patches:s}=this.removeComponents(o);u.coverPatches(r,s[this.ownerArtboardID]);let c=p.depthClone(t);n.forEach(e=>{e<-1||e>=t.rows.length||(c=l.removeRow(c,e))});const d=this.updateTextComps(c,i,o.map(e=>e.id));return u.coverPatches(r,d),{newValue:c,childrenPatches:r}}removeColumns(e){const t=this.value,n=Array.from(new Set(e)).sort((e,t)=>t-e),r={do:{},undo:{}},o=[],i=[];this.components.forEach(e=>{if(n.includes(e.column))i.push(e);else{const t=n.filter(t=>t<e.column).length;t&&(r.do[e.id]=[...r.do[e.id]||[],a.Ops.replace("/column",e.column-t)],r.undo[e.id]=[...r.undo[e.id]||[],a.Ops.replace("/column",e.column)],o.push({id:e.id,row:e.row,column:e.column-t}))}});const{patches:s}=this.removeComponents(i);u.coverPatches(r,s[this.ownerArtboardID]);let c=p.depthClone(t);n.forEach(e=>{e<0||e>=t.columns.length||(c=l.removeColumn(c,e))});const d=this.updateTextComps(c,o,i.map(e=>e.id));return u.coverPatches(r,d),{newValue:c,childrenPatches:r}}moveRows(e,t,n){const r=n-e,o=p.depthClone(this.value),{columns:i}=o,s={start:{row:e,column:0},end:{row:t,column:i.length-1}},c=n<e,u={start:{row:c?n:t+1,column:0},end:{row:c?e-1:t+n-e,column:i.length-1}},d={do:{},undo:{}};this.components.forEach(n=>{const o={row:n.row,column:n.column};let i=0;l.isCellSelected(o.row,o.column,s)?i=r:l.isCellSelected(o.row,o.column,u)&&(i=Math.sign(r)*(e-t-1)),i&&(d.do[n.id]=[...d.do[n.id]||[],a.Ops.replace("/row",n.row+i)],d.undo[n.id]=[...d.undo[n.id]||[],a.Ops.replace("/row",n.row)])});return{newValue:l.moveRows(o,e,t,n),childrenPatches:d}}moveColumns(e,t,n){const r=n-e,o=p.depthClone(this.value),{rows:i,showHeader:s}=o,c={start:{row:s?-1:0,column:e},end:{row:i.length-1,column:t}},u=n<e,d={start:{row:s?-1:0,column:u?n:t+1},end:{row:i.length-1,column:u?e-1:t+n-e}},h={do:{},undo:{}};this.components.forEach(n=>{const o={row:n.row,column:n.column};let i=0;l.isCellSelected(o.row,o.column,c)?i=r:l.isCellSelected(o.row,o.column,d)&&(i=Math.sign(r)*(e-t-1)),i&&(h.do[n.id]=[...h.do[n.id]||[],a.Ops.replace("/column",n.column+i)],h.undo[n.id]=[...h.undo[n.id]||[],a.Ops.replace("/column",n.column)])});return{newValue:l.moveColumns(o,e,t,n),childrenPatches:h}}cleanStyle(e){const t=p.depthClone(this.value),n={do:{},undo:{}};return e.forEach(e=>{const r=l.findCell(t,e),i=this.components.find(t=>t.row===e.row&&t.column===e.column);if(r){if(r.mergeAcross+r.mergeDown){const n=l.getAreaOfCell(t,r,e);l.getAllCellsOfSelectArea(t,n).forEach(e=>{e.cell.style=p.depthClone(m.DefalutCellStyle)})}else r.style=p.depthClone(m.DefalutCellStyle);if(i){const e=l.formatCompPropertiesAndValue(i,r.style);if(e){const{newProperties:t,newValue:r}=e;if(Object.keys(t).forEach(e=>{const r=t[e];if(r){const t=i.setProperty(e,r);u.coverPatches(n,t)}}),!o.isUndefined(r)){const e=i.setValue(r);u.coverPatches(n,e)}}}}}),{newValue:t,childrenPatches:n}}cleanContent(e){const t=p.depthClone(this.value),n=[];e.forEach(e=>{const r=l.findCell(t,e),o=this.components.filter(t=>t.row===e.row&&t.column===e.column);o.length&&n.push(...o),r&&(r.data=p.depthClone(m.DefaultCell.data),r.type=p.depthClone(m.DefaultCell.type),r.dataSource=p.depthClone(m.DefaultCell.dataSource))});const{patches:r}=this.removeComponents(n);return{newValue:t,childrenPatches:r[this.ownerArtboardID]}}convertCellContentType(e,t){const n=p.depthClone(this.value),o=[],i=[];e.forEach(e=>{const a=l.findCell(n,e);if(null==a?void 0:a.mergedBy)return;const c=this.components.filter(t=>t.row===e.row&&t.column===e.column),u=(null==a?void 0:a.type)||s.CellTypes.Text;let d=t!==u;const h={text:""};if(c.length&&d){o.push(...c);const e=c[0];h.text=r(e.value||"",{allowedTags:[],allowedAttributes:{}});const{properties:t}=e,n=e.type===g.CText?t.textFormat:t.textStyle;Object.assign(h,n)}if(d){const r=l.makeCompInTable(t,h,n,e);r&&i.push(r),a&&(a.data=p.depthClone(m.DefaultCell.data),a.type=p.depthClone(t),a.dataSource=p.depthClone(m.DefaultCell.dataSource))}});const{patches:a}=this.removeComponents(o),{patches:c}=this.addComponents(i),d=a[this.ownerArtboardID];return u.coverPatches(d,c[this.ownerArtboardID]),{newValue:n,childrenPatches:d}}doPasteData(e,t,n,r){const i={do:{},undo:{}};let a=p.jsonClone(this.value);const{cells:s,rowHeights:h,colWidths:f,components:m}=e,g=o.isNumber(null==m?void 0:m.length);if(!s.length||!s[0].length||!t.length)return{newValue:a,childrenPatches:i};const v=[];n&&(a=l.pushRows(a,a.rows.length,n)),r&&(a=l.pushColumns(a,a.columns.length,r));const y=p.jsonClone(t).reduce((e,t)=>l.uniteSelectArea(e,t));a=l.splitCells(a,y),t.forEach(e=>{const t=e.start,n=l.getAllCellsOfSelectArea(a,e);c.TableClipboardHelper.setPasteAreaRowAndColumnSize(a,e,h,f),n.forEach(e=>{const{cell:n,position:r}=e,o=r.row-t.row,i=r.column-t.column,c=s[o][i];if(!c)return;const{mergeAcross:u,mergeDown:h,data:f,style:y,dataSource:b,type:w,mergedBy:C}=c;if(n.mergeAcross=u,n.mergeDown=h,n.data=f,n.style=y,n.dataSource=b,n.type=w,C){const[e,r]=C;n.mergedBy=[e+t.column,r+t.row]}if(g){const e=null==m?void 0:m.find(e=>e.row===o&&e.column===i);if(e){const t=p.jsonClone(e);t._id=d.getNewID(),t.row=r.row,t.column=r.column,v.push(t)}}else if(f.text){const e=l.makeCompInTable(w,{text:f.text},a,r);e&&v.push(e)}})});const b=this.components.filter(e=>l.isCellSelected(e.row,e.column,y)),{patches:w}=this.removeComponents(b);u.coverPatches(i,w[this.ownerArtboardID]);const{patches:C}=this.addComponents(v);return u.coverPatches(i,C[this.ownerArtboardID]),{newValue:a,childrenPatches:i}}}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSymbolDataFormComps=t.getSymbolInfoFormComps=t.couldStrokePositionEdite=t.getIntegratedPropertiesGroups=t.hasTypeInComps=t.getIntegratedOpacity=t.getIntegratedProperties=t.getIntegratedRotate=t.getIntegratedCompSize=t.getIntegratedMinSize=t.getCompDataIntegratedPosition=t.getIntegratedPosition=void 0;const r=n(173),o=n(8),i=n(32),a=n(279),s=n(206),l=n(23),c=n(48),u=n(104),d=n(34),h=n(6),p=n(50),f=n(47),m=n(207);t.getIntegratedPosition=e=>{const t=e.map(e=>e.getViewBoundsInParent()),n=t.reduce((e,t)=>o.min(e,t.top),Number.POSITIVE_INFINITY),r=t.reduce((e,t)=>o.min(e,t.left),Number.POSITIVE_INFINITY);return{x:o.round(2*r)/2,y:o.round(2*n)/2}},t.getCompDataIntegratedPosition=e=>{const t=e.map(e=>e.position),n=t.reduce((e,t)=>o.min(e,t.y),Number.POSITIVE_INFINITY);return{x:t.reduce((e,t)=>o.min(e,t.x),Number.POSITIVE_INFINITY),y:n}},t.getIntegratedMinSize=e=>({width:Math.min(...e.map(e=>d.getMinSizeOfComp(e).width)),height:Math.min(...e.map(e=>d.getMinSizeOfComp(e).height))}),t.getIntegratedCompSize=e=>{var t,n,r,o;let i=e.filter(e=>!e.autoSize);0===i.length&&(i=e);const a=i.filter(e=>{var t,n;return e.size.width===(null===(n=null===(t=i[0])||void 0===t?void 0:t.size)||void 0===n?void 0:n.width)}).length===i.length,s=i.filter(e=>{var t,n;return e.size.height===(null===(n=null===(t=i[0])||void 0===t?void 0:t.size)||void 0===n?void 0:n.height)}).length===i.length,l=i.filter(e=>!0===e.size.lockedRatio).length===i.length;return{width:a?null===(n=null===(t=i[0])||void 0===t?void 0:t.size)||void 0===n?void 0:n.width:void 0,height:s?null===(o=null===(r=i[0])||void 0===r?void 0:r.size)||void 0===o?void 0:o.height:void 0,lockedRatio:l}},t.getIntegratedRotate=e=>{var t,n;const r=e.filter(e=>e.canRotate),o=r.filter(e=>{var t;return e.rotate===(null===(t=r[0])||void 0===t?void 0:t.rotate)}).length===r.length,i=r.length?null===(t=r[0])||void 0===t?void 0:t.rotate:null===(n=e[0])||void 0===n?void 0:n.rotate;return o?i:void 0},t.getIntegratedProperties=(e,t)=>{if(0===t.length)return;if(1===e.length){const t=e[0].properties;return Object.keys(t).forEach(e=>{t[e]||(t[e]={})}),t}const n=e[0],o={},i=n.properties;return t.forEach(t=>{let n=i[t];if(r.isUndefined(n)||n||(n={}),n){const r=n.prop||t;o[t]=g(e,t,r)}}),o};const g=(e,t,n)=>{let u=void 0;const d=[i.FillPropertyName,a.ShadowPropertyName,s.RadiusPropertyName,l.StrokePropertyName];let h=e;d.includes(""+n)&&(h=e.filter(e=>{var n;return!0!==(null===(n=e.properties[t])||void 0===n?void 0:n.disabled)}));const p=h.length;h.length||(h=e);const f=h[0].properties[t];if(!r.isUndefined(f)){if("[object Object]"===Object.prototype.toString.call(f)){u=Object.assign({},f);Object.keys(f).forEach(e=>{u[e]=f[e],h.forEach(n=>{const r=n.properties[t];r&&!o.isEqualDate(r[e],f[e])&&(u[e]=void 0)})})}else if(o.isBaseData(f)){const e=h.filter(e=>e.properties[t]===f).length===h.length;u=e?h[0].properties[t]:void 0}if(d.includes(""+n)&&(p===e.length?u.disabled=!1:u.disabled=0===p||void 0),n===c.TextPropertyName){let e=Object.assign({},f.fontStyle);const n=["bold","italic","underline","strike"];h.forEach(r=>{const o=r.properties[t].fontStyle;n.forEach(t=>{o&&e?e[t]!==o[t]&&(e[t]=void 0):e=void 0})}),u=Object.assign(Object.assign({},u),{fontStyle:e})}return u}};function v(e){const t=e.reduce((e,t)=>{const{isSymbol:n,symbolInfo:r}=t,o=e.every(e=>e.masterID!==(null==r?void 0:r.masterID));return n&&r&&o&&e.push(r),e},[]);if(1===t.length)return t[0]}t.getIntegratedOpacity=e=>e.filter(t=>t.opacity===(e[0]&&e[0].opacity)).length===e.length?e[0]&&e[0].opacity:void 0,t.hasTypeInComps=(e,t)=>e.some(e=>e.type===t),t.getIntegratedPropertiesGroups=e=>{const t=[],n=[],r=[],o=[];if(e.forEach(e=>{e.type!==u.TextFormatExPropertyName&&e.type!==c.TextPropertyName||o.push(e),p.shapeProps.includes(e.name)?t.push(e):p.textProps.includes(e.name)?n.push(e):r.push(e)}),!n.find(e=>!e.name||e.name===u.TextFormatExPropertyName||e.name===c.TextPropertyName)){const e=o.filter(e=>e.type===u.TextFormatExPropertyName||e.type===c.TextPropertyName);if(e.length){let t=e.find(e=>e.name===e.type);t||(e.sort((e,t)=>e.name<t.name?1:e.name<t.name?-1:0),t=e[0]);const o=r.indexOf(t);-1!==o&&r.splice(o,1),n.push(t)}}return{shapeGroup:t,textGroup:n,extendedGroup:r}},t.couldStrokePositionEdite=e=>{if(e.find(e=>![h.CRect,h.CEllipse,h.CPolygon,h.CPath,h.CCompoundPath].includes(e.type)))return!1;if(e.filter(e=>e.type===h.CPath).find(e=>!f.isClosedPathWithArea(e.value)))return!1;return!e.filter(e=>e.type===h.CCompoundPath).find(e=>e.value.find(e=>!f.isClosedPathWithArea(e)))},t.getSymbolInfoFormComps=v,t.getSymbolDataFormComps=function(e,t){const n=v(e);if(!n)return;const{masterID:r,libID:o}=n;return m.getComponentByID(r,{libID:o,libraries:t})}},function(e,t,n){var r=n(1362),o=n(306),i=n(440),a=n(221)("socket.io-client");e.exports=t=l;var s=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=r(e),l=o.source,c=o.id,u=o.path,d=s[c]&&u in s[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(a("ignoring socket cache for %s",l),n=i(l,t)):(s[c]||(a("new io instance for %s",l),s[c]=i(l,t)),n=s[c]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=l,t.Manager=n(440),t.Socket=n(446)},function(e,t,n){var r=n(437),o=n(221)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),n=r(e));n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443"));n.path=n.path||"/";var i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port,n.href=n.protocol+"://"+i+(t&&t.port===n.port?"":":"+n.port),n}},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=a[l];n=o.call(e,i),a.splice(l,1),l--}return n})),t.formatArgs.call(e,a);var c=r.log||t.log||console.log.bind(console);c.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(305),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(1365)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(102))},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=a[l];n=o.call(e,i),a.splice(l,1),l--}return n})),t.formatArgs.call(e,a);var c=r.log||t.log||console.log.bind(console);c.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(305),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){var r=n(438),o=n(439),i=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.deconstructPacket=function(e){var t=[],n=e.data,i=e;return i.data=function e(t,n){if(!t)return t;if(o(t)){var i={_placeholder:!0,num:n.length};return n.push(t),i}if(r(t)){for(var a=new Array(t.length),s=0;s<t.length;s++)a[s]=e(t[s],n);return a}if("object"==typeof t&&!(t instanceof Date)){a={};for(var l in t)a[l]=e(t[l],n);return a}return t}(n,t),i.attachments=t.length,{packet:i,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(r(t))for(var o=0;o<t.length;o++)t[o]=e(t[o],n);else if("object"==typeof t)for(var i in t)t[i]=e(t[i],n);return t}(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,i=e;!function e(l,c,u){if(!l)return l;if(a&&l instanceof Blob||s&&l instanceof File){n++;var d=new FileReader;d.onload=function(){u?u[c]=this.result:i=this.result,--n||t(i)},d.readAsArrayBuffer(l)}else if(r(l))for(var h=0;h<l.length;h++)e(l[h],h,l);else if("object"==typeof l&&!o(l))for(var p in l)e(l[p],p,l)}(i),n||t(i)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(u(e,a,a+16383>s?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
|
|
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
|
t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=f,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(1371),e.exports.parser=n(160)},function(e,t,n){var r=n(441),o=n(159),i=n(224)("engine.io-client:socket"),a=n(445),s=n(160),l=n(437),c=n(222);function u(e,t){if(!(this instanceof u))return new u(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=l(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=l(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=u,u.priorWebsocketSuccess=!1,o(u.prototype),u.protocol=s.protocol,u.Socket=u,u.Transport=n(310),u.transports=n(441),u.parser=n(160),u.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var e;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},u.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},u.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;u.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),h(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,r.emit("upgradeError",a)}})))}function a(){n||(n=!0,h(),t.close(),t=null)}function s(n){var o=new Error("probe error: "+n);o.transport=t.name,a(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function l(){s("transport closed")}function c(){s("socket closed")}function d(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),a())}function h(){t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",l),r.removeListener("close",c),r.removeListener("upgrading",d)}u.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",s),t.once("close",l),this.once("close",c),this.once("upgrading",d),t.open()},u.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},u.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(i('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else i('packet received with socket readyState "%s"',this.readyState)},u.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},u.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},u.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){i("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},u.prototype.ping=function(){var e=this;this.sendPacket("ping",(function(){e.emit("ping")}))},u.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},u.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(i("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},u.prototype.write=u.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},u.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},u.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()}function t(){e.onClose("forced close"),i("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},u.prototype.onError=function(e){i("socket error %j",e),u.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},u.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){i('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},u.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~a(this.transports,e[n])&&t.push(e[n]);return t}},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){var r=n(308),o=n(442),i=n(159),a=n(223),s=n(224)("engine.io-client:polling-xhr"),l=n(309);function c(){}function u(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function d(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(e.exports=u,e.exports.Request=d,a(u,o),u.prototype.supportsBinary=!0,u.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new d(e)},u.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",(function(e){o.onError("xhr post error",e)})),this.sendXhr=r},u.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},i(d.prototype),d.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{s("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.extraHeaders[o])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},s("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)},d.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},d.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},d.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},d.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete d.requests[this.index],this.xhr=null}},d.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},d.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},d.prototype.abort=function(){this.cleanup()},d.requestsCount=0,d.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",h);else if("function"==typeof addEventListener){addEventListener("onpagehide"in l?"pagehide":"unload",h,!1)}function h(){for(var e in d.requests)d.requests.hasOwnProperty(e)&&d.requests[e].abort()}},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)i[s]=o[a];return i.buffer}},function(e,t){function n(){}e.exports=function(e,t,r){var o=!1;return r=r||n,i.count=e,0===e?t():i;function i(e,n){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,t(e),t=r):0!==i.count||o||t(null,n)}}},function(e,t){
|
|
|
/*! https://mths.be/utf8js v2.1.2 by @mathias */
|
|
|
var n,r,o,i=String.fromCharCode;function a(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function s(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(e,t){return i(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return i(e);var n="";return 0==(4294965248&e)?n=i(e>>6&31|192):0==(4294901760&e)?(s(e,t)||(e=65533),n=i(e>>12&15|224),n+=l(e,6)):0==(4292870144&e)&&(n=i(e>>18&7|240),n+=l(e,12),n+=l(e,6)),n+=i(63&e|128)}function u(){if(o>=r)throw Error("Invalid byte index");var e=255&n[o];if(o++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function d(e){var t,i;if(o>r)throw Error("Invalid byte index");if(o==r)return!1;if(t=255&n[o],o++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|u())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|u()<<6|u())>=2048)return s(i,e)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|u()<<12|u()<<6|u())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=a(e),o=r.length,i=-1,s="";++i<o;)s+=c(r[i],n);return s},decode:function(e,t){var s=!1!==(t=t||{}).strict;n=a(e),r=n.length,o=0;for(var l,c=[];!1!==(l=d(s));)c.push(l);return function(e){for(var t,n=e.length,r=-1,o="";++r<n;)(t=e[r])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(c)}}},function(e,t){!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(t){var n,r,o,i,a,s=.75*t.length,l=t.length,c=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(n=0;n<l;n+=4)r=e.indexOf(t[n]),o=e.indexOf(t[n+1]),i=e.indexOf(t[n+2]),a=e.indexOf(t[n+3]),d[c++]=r<<2|o>>4,d[c++]=(15&o)<<4|i>>2,d[c++]=(3&i)<<6|63&a;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(e,t){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),o=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),i=n&&n.prototype.append&&n.prototype.getBlob;function a(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function s(e,t){t=t||{};var r=new n;return a(e).forEach((function(e){r.append(e)})),t.type?r.getBlob(t.type):r.getBlob()}function l(e,t){return new Blob(a(e),t||{})}"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,l.prototype=Blob.prototype),e.exports=r?o?Blob:l:i?s:void 0},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=a[l];n=o.call(e,i),a.splice(l,1),l--}return n})),t.formatArgs.call(e,a);var c=r.log||t.log||console.log.bind(console);c.apply(e,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(305),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){var r=n(442),o=n(223),i=n(309);e.exports=u;var a,s=/\n/g,l=/\\n/g;function c(){}function u(e){r.call(this,e),this.query=this.query||{},a||(a=i.___eio=i.___eio||[]),this.index=a.length;var t=this;a.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=c)}),!1)}o(u,r),u.prototype.supportsBinary=!1,u.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},u.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},u.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),i=document.createElement("textarea"),a=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=a,o.method="POST",o.setAttribute("accept-charset","utf-8"),i.name="d",o.appendChild(i),document.body.appendChild(o),this.form=o,this.area=i}function c(){u(),t()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),e=e.replace(l,"\\\n"),this.area.value=e.replace(s,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}},function(e,t,n){(function(t){var r,o,i=n(310),a=n(160),s=n(222),l=n(223),c=n(444),u=n(224)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{o=n(1384)}catch(e){}var d=r||o;function h(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=o),i.call(this,e)}e.exports=h,l(h,i),h.prototype.name="websocket",h.prototype.supportsBinary=!0,h.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new d(e,t):new d(e):new d(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},h.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},h.prototype.write=function(e){var n=this;this.writable=!1;for(var r=e.length,o=0,i=r;o<i;o++)!function(e){a.encodePacket(e,n.supportsBinary,(function(o){if(!n.usingBrowserWebSocket){var i={};if(e.options&&(i.compress=e.options.compress),n.perMessageDeflate)("string"==typeof o?t.byteLength(o):o.length)<n.perMessageDeflate.threshold&&(i.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(o):n.ws.send(o,i)}catch(e){u("websocket closed before onclose event")}--r||s()}))}(e[o]);function s(){n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0)}},h.prototype.onClose=function(){i.prototype.onClose.call(this)},h.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},h.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||(e.b64=1),(e=s.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},h.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===h.prototype.name)}}).call(this,n(307).Buffer)},function(e,t){},function(e,t){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startAFKCheck=t.isAfk=t.addAFKListener=t.heartbeat=void 0;let r=Date.now();const o=[];function i(){return Date.now()-r>=36e5}t.heartbeat=function(){r=Date.now()},t.addAFKListener=function(e){o.push(e)},t.isAfk=i,t.startAFKCheck=function(){let e=setInterval(()=>{i()&&o.length>0&&(clearInterval(e),o.forEach(e=>{e()}))},5e3)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fakeSocket=void 0,t.fakeSocket={on:()=>{},emit:()=>{},disconnect:()=>{},io:{opts:{transports:[]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.offlineDemoManager=void 0;class r{constructor(){this.addListener=(e,t,n)=>{this._id=e,this._reject=n,this._resolve=t},this.reject=(e,t)=>{e===this._id&&this._reject&&this._reject(t)},this.resolve=(e,t)=>{e===this._id&&this._resolve&&this._resolve(t)}}static get init(){return new r}}t.offlineDemoManager=r.init},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArtboardMetaPatch=void 0,t.getArtboardMetaPatch=function(e){const t={};return e.forEach(e=>{if("replace"===e.op){const n=e.path.replace("/","");t[n]=e.value}}),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1392),o=n(8),i=n(95),a=n(29),s=n(12),l=n(397),c=n(17);class u extends r.default{doDetachSymbolFromComp(e){const t=o.depthClone(e.toJSON()),n=e.parent.components.indexOf(e),r=this.activeContainer.id,i=e.components;if(1===i.length){const o=i[0],l=o.getPositionWithoutParent(),c=(t.rotate||0)+o.rotate,u=o.toJSON(),d=Object.assign(Object.assign({},u),{_id:e.id,position:l,rotate:c,v:t.v}),h={[o.id]:e.id};return a.resetInteractionTargetID([d],h),this.resetInfoWhenCompIsLine(o,d),{do:{[r]:[s.Ops.removeChildren([e.id]),s.Ops.addChildren(""+n,[d])]},undo:{[r]:[s.Ops.removeChildren([d._id]),s.Ops.addChildren(""+n,[t])]}}}const l=Object.assign(Object.assign({},t),{type:"group",components:t.components});return{do:{[r]:[s.Ops.removeChildren([e.id]),s.Ops.addChildren(""+n,[l])]},undo:{[r]:[s.Ops.removeChildren([l._id]),s.Ops.addChildren(""+n,[t])]}}}detachSymbolWithSelectedComps(){const e=this.firstSelectedComponent;if(e instanceof c.UISymbolComponent){const t=this.doDetachSymbolFromComp(e);this.updateSingleArtboard(this.activeArtboard.artboardID,t),this.selectByIDs([e.id],!1)}}detachSymbolOfDocument(e,t){const n=[],r=o=>{o.components.forEach(o=>{const{symbol:i}=o.toJSON();o instanceof c.UISymbolComponent&&i.libID===e&&i.masterID===t?n.push(o):o instanceof c.UIContainerComponent&&r(o)})};r(this.doc.mainArtboard),this.doc.fragments.forEach(e=>r(e));const o={};n.forEach(e=>{const t=this.doDetachSymbolFromComp(e),n=e.ownerArtboardID;o[n]||(o[n]={do:{},undo:{}});const r=o[n];Object.keys(t.do).forEach(e=>{r.do[e]?(r.do[e].push(...t.do[e]),r.undo[e].push(...t.undo[e])):(r.do[e]=t.do[e],r.undo[e]=t.undo[e])})}),this.update(o)}relatedSymbolToSelectedComps(e,t,n,r){const c=i.getViewBoundsOfComponents(n),{left:u,top:d}=c,h=n.map(e=>o.depthClone(e.toJSON()));h.forEach(e=>{e.masterID=e._id,e.symbol=void 0,e.layout.auto=!0,e.layout.responsive=!0;const{x:t,y:n}=e.position;e.position={x:t-u,y:n-d}}),h.forEach(a.writeMasterID);const p=a.resetID(h);a.resetInteractionTargetID(h,p),a.resetValueMap(h,p);const f=l.makeSymbol(c,h);f.masterID=t,f.symbol={libID:e,masterID:t},r&&(f.name=r);const m=n[0].parent,g={do:{[m.id]:[s.Ops.removeChildren(n.map(e=>e.id)),s.Ops.addChildren(""+this.activeArtboard.components.findIndex(e=>{var t;return e.id===(null===(t=n[0])||void 0===t?void 0:t.id)}),[f])]},undo:{[m.id]:[s.Ops.removeChildren([f._id]),s.Ops.addChildren(""+m.components.indexOf(n[0]),n.map(e=>e.toJSON()))]}};this.clearSelected(),this.updateSingleArtboard(this.activeArtboard.artboardID,g),this.selectByIDs([f._id],!1)}applySymbolToDocument(e,t){}}t.default=u},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});const o=n(7),i=n(1393),a=n(17),s=n(43),l=n(12),c=n(6),u=n(14),d=n(18),h=n(1402),p=n(432),f=n(8),m=n(116),g=n(35),v=n(62),y=n(24),b=n(28),w=n(29);function C(e){var t;const{type:n,lib:r}=e;return n===c.CSelectPanel||Boolean(r&&(null===(t=s.getComponent(r))||void 0===t?void 0:t.isList))}const _=(e,t,n,r,i,a=".")=>{const s=Object.keys(e);Object.keys(t).forEach(e=>{-1===s.indexOf(e)&&s.push(e)}),s.forEach(s=>{const l=e[s],c=t[s],u=`${a}/properties/${s}`,d={old:l,new:c};if(!l)return void r.doAddOperation(u,c);const h=null==l?void 0:l.ref,f=Boolean(h);if(c&&f||function(e,t,n){const{new:r,old:i}=e;if(!p.isSameProperty(i,r)){const e=o.assign(o.cloneDeep(i),r);n.doReplaceOperationByPath(t,i,e)}}(d,u,r),c&&f&&(!c.ref||1!==Object.keys(c).length)){const e=h.replace("@properties.",""),t=n.properties[e],r=function(e,t){return Object.assign(Object.assign({},e),{ref:void 0,prop:t.prop,name:t.name})}(c,t);i.mergeNewValueToPatches("./properties/"+e,t,r)}})};function x(e,t,n){t.do.length&&(e.do[n]=t.do,e.undo[n]=t.undo)}function S(e,t){return e.find(e=>e.path===t)}class k extends i.default{constructor(){super(...arguments),this.isListSealedComp=!1,this.updateVerticalListContainerAndSiblings=(e,t,n)=>{var r;const o=e.id,i=e.getCurrentSizePath(),a=e.size,s={oldVal:a,newVal:{height:a.height,width:t.width}},l=(new m.ComponentPatchesClass).getAttrChangePatches(o,i,s);g.coverPatches(n,(new v.ArtboardPatchesClass).getPatchesByCompChange(o,l));const c={rowHeight:t.height,ratioHeight:null===(r=e.properties.cell)||void 0===r?void 0:r.ratioHeight},u=e.getPatchesWhenSetCellProperty(c);g.coverPatches(n,u)}}doBuilterOptWithTemplate(e,t,n,r,i=!1){const a=new m.ComponentPatchesClass;if(e.type===c.CPath){const n="value";a.doReplaceOperationByPath("./"+n,o.get(e,n),o.get(t,n))}["name","hidden","opacity","size"].forEach(n=>{a.doReplaceOperationByPath("./"+n,o.get(e,n),o.get(t,n))});const s=this.firstSelectedComponent;if(!this.isListSealedComp||!r){const{position:n}=e;a.doReplaceOperationByPath("./position",n,t.position)}if(i||a.doReplaceOperationByPath("./layout",e.layout,t.layout),!i&&e.type===c.CPureText){const n=function(e,t){const n=u.StyleHelper.initCSSStyleParser(e).getTextStyle(),{width:r,height:o}=d.measureTextSize(n,t,{isMultiText:!1,wrap:!1});return{width:r,height:o}}(t.properties,function(e,t){let n=e.value;return"@value"===n&&(n=t.value),n}(e,s));a.doReplaceOperationByPath("./size",e.size,Object.assign(Object.assign({},e.size),{newSize:n}))}return _(e.properties,t.properties,s,a,n),this.updateCompatchesByDataInStates(e,t,a,n,i),a.value}updateCompatchesByDataInStates(e,t,n,i,a){var s;const u=this.firstSelectedComponent,d=e.properties,h=e.states;if(h&&t.states){const v=(f=h,g=t.states,o.uniq(Object.keys(f).concat(Object.keys(g))));o.remove(v,e=>"normal"===e);const y=null===(s=u.libData)||void 0===s?void 0:s.isList;v.forEach(o=>{const s=h[o],f=t.states[o];if(!f)return;const g=Boolean(!s);if(g&&y&&p.updatePatchesBaseOnNewStateInTempState(f,o,n),g&&!y){const{newData:e,refProp:t}=function(e,t){const{properties:n}=e,o=r(e,["properties"]),i=Object.assign(Object.assign({},o),{properties:{},enabled:!0}),a={};return n&&Object.keys(n).forEach(e=>{const r=t[e];(null==r?void 0:r.ref)?(a[e]=Object.assign(Object.assign({},n[e]),{ref:void 0,prop:r.prop,name:r.name}),i.properties[e]={ref:"@properties/"+e}):i.properties[e]=Object.assign(Object.assign({},n[e]),{ref:void 0})}),{newData:i,refProp:a}}(f,d);m.doAddOperationByNewValue("./states/"+o,e,n);const a=Object.keys(t);if(!a.length||!f)return;if(!u.states[o]){const e="./states/"+o;i.isPathExistedInPatches(e)||i.addOperation({do:l.Ops.add(e,{properties:{},enabled:!0}),undo:l.Ops.remove(e)})}a.forEach(e=>{const n=`./states/${e}/properties/${e}`;i.isPathExistedInPatches(n)||i.addOperation({do:l.Ops.add(n,t[e]),undo:l.Ops.remove(n)})})}const v=e.type;if(s&&!a&&function(e,t,n,r,o){r.doReplaceOperationByPath(`./states/${e}/opacity`,t.opacity,n.opacity),r.doReplaceOperationByPath(`./states/${e}/hidden`,t.hidden,n.hidden),r.doReplaceOperationByPath(`./states/${e}/position`,t.position,n.position),r.doReplaceOperationByPath(`./states/${e}/rotate`,t.rotate,n.rotate),[c.CText,c.CPureText,c.CParagraph].includes(o)||r.doReplaceOperationByPath(`./states/${e}/size`,t.size,n.size)}(o,s,f,n,v),s){n.doReplaceOperationByPath(`./states/${o}/opacity`,s.opacity,f.opacity),n.doReplaceOperationByPath(`./states/${o}/hidden`,s.hidden,f.hidden);const e=s.properties,t=f.properties;if(!t)return;Object.keys(t).forEach(r=>{const a=r,s=t[a],c=e&&e[a],h=d[a];if(c){if(c.ref){const e=c.ref.replace("@properties.",""),t=u.properties[e],n="./properties/"+e;if(!i.isPathExistedInPatches(n)&&!p.isSameProperty(t,s)){const e=Object.assign(Object.assign(Object.assign({},t),s),{prop:t.prop,name:t.name});i.addOperation({do:l.Ops.replace(n,e),undo:l.Ops.replace(n,t)})}}c.ref||p.isSameProperty(c,s)||n.doReplaceOperationByPath(`./states/${o}/properties/${a}`,c,s)}else p.isSameProperty(h,s)||(e?n.doReplaceOperationByPath(`./states/${o}/properties/${a}`,c,s):m.doAddOperationByNewValue(`./states/${o}/properties`,{propName:s},n))})}})}var f,g}applyStyle(e,t){var n,r;this.isListSealedComp=!1;const i=this.firstSelectedComponent;if(!(null==i?void 0:i.isSealed))return;this.isListSealedComp=C(i);const s=this.getArtBoardPatchesWhenStyleEditEnd(i,e);if(t&&t instanceof a.UIListLayoutSealedComponent){const r=e[0].size,o=(null===(n=t.properties.layout)||void 0===n?void 0:n.direction)||"";"vertical"===o&&this.updateVerticalListContainerAndSiblings(t,r,s),"horizontal"===o&&this.updateHorizontalListContainerAndSiblings(t,r,s)}if(t&&t.type===c.CSelect){const n=e[0].size;o.isEqual(n,t.size)||g.coverPatches(s,(new v.ArtboardPatchesClass).getAttrChangePatches(t.id,t.getCurrentSizePath(),{oldVal:t.size,newVal:n}))}if(i instanceof a.UISelectPanelComponent){const t=i.properties.cell;let n;if(e[0]&&"group"===e[0].type){const t=e[0].components,{height:r,width:o}=b.union(...t.map(e=>{const{size:t,rotate:n,position:r}=e;return w.getBoundsInParent({size:t,rotate:n||0,position:r})}));n={height:r,width:o}}else n=e[0].size;const r=Object.assign(Object.assign({},t),{rowHeight:n.height,columnWidth:n.width});g.coverPatches(s,i.setProperty("cell",r))}if(i.type===c.CSelectPanel){const t=e[0].states,n=Object.keys(t).filter(e=>y.isPredefinedState(e));n.length&&(null===(r=i.toJSON().components)||void 0===r||r.forEach(e=>{const{_id:t}=e;n.forEach(n=>{const r=s.do[t],o=s.undo[t];let i=void 0,a=void 0;if(e.states[n]){if(!e.states[n].enabled){const e=`./states/${n}/enabled`;i=l.Ops.replace(e,!0),a=l.Ops.replace(e,!1)}}else{const e="./states/"+n;i=l.Ops.add(e,{enabled:!0}),a=l.Ops.remove(e)}i&&a&&(r?(r.push(i),o.push(a)):(s.do[t]=[i],s.undo[t]=[a]))})}))}f.isNotEmpty(s)&&this.updateSingleArtboard(i.ownerArtboardID,s)}updateHorizontalListContainerAndSiblings(e,t,n){const r=e.id,o=e.getCurrentSizePath();let i={oldVal:e.size,newVal:{width:e.components.length*t.width,height:t.height}};g.coverPatches(n,(new v.ArtboardPatchesClass).getAttrChangePatches(r,o,i)),e.components.forEach((e,r)=>{let o=e.position;const i={x:r*t.width,y:o.y};let a=e.id;g.coverPatches(n,(new v.ArtboardPatchesClass).getAttrChangePatches(a,e.getCurrentPositionPath(),{oldVal:o,newVal:i}))})}getArtBoardPatchesWhenStyleEditEnd(e,t){const n=e.toJSON(),r=function(e){const t=C(e),n=e.type===c.CSelect,r=[];if(t&&!n)r.push(...e.toJSON().components);else if(t&&n){let t=o.get(e,"components[0]"),n=o.get(e,"components[1].components[0].components");r.push(t,...n)}else r.push(e.toJSON());return r}(e),i=function(e){const t=[];return e.forEach(e=>{h.flatChild(e,t)}),t}(t),a={do:{},undo:{}},s=new m.ComponentPatchesClass,l=[];return null==r||r.forEach(t=>{(function(e,t,n){var r;const o=[];return e?h.flatChild(t,o,n):(o.push({comp:t}),null===(r=t.components)||void 0===r||r.forEach(e=>h.flatChild(e,o,t))),o})(this.isListSealedComp,t,n).forEach((n,r)=>{const a=n.comp,c=o.get(a,"_id")||o.get(a,"id"),u=n.parent,d=i[r].comp,h=this.doBuilterOptWithTemplate(a,d,s,u===e.toJSON(),c===t._id);l.push([h,c])})}),l.forEach(([e,t])=>{x(a,e,t)}),function(e,t,n){if(t.do.length)if(function(e,t){return e.do[t]}(e,n)){const r=e.do[n],o=e.undo[n];t.do.forEach(e=>{S(r,e.path)||r.push(e)}),t.undo.forEach(e=>{S(o,e.path)||o.push(e)})}else x(e,t,n)}(a,s,e.id),a}}t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HandleCreator=void 0;const r=n(1394),o=n(35);t.HandleCreator=class{constructor(e,t,n,r=!0){this.actions=e,this.active=r,this.autoRevert=t,this.parallel=n}};class i extends r.default{addAction(e,t,n){if(this.hasSelectLockedComps)return!1;const r=n||this.firstSelectedComponent;if(!r)return!1;const i=r.addInteractionAction(e,t);return i&&this.update(o.convertUIOperationToPagePatches(r,i)),!0}replaceActions(e,t,n,r){if(this.hasSelectLockedComps)return!1;const i=r||this.firstSelectedComponent;if(!i)return!1;const a=i.replaceInteractionActions(e,t,n);return a&&this.update(o.convertUIOperationToPagePatches(i,a)),!0}moveSingleActions(e,t,n,r){if(this.hasSelectLockedComps)return!1;const i=r||this.firstSelectedComponent;if(!i)return!1;const a=i.moveSingleInteractionActions(e,t,n);return a&&this.update(o.convertUIOperationToPagePatches(i,a)),!0}removeAction(e,t,n){if(this.hasSelectLockedComps)return;const r=n||this.firstSelectedComponent;if(!r)return;const i=r.removeInteractionAction(e,t);i&&this.update(o.convertUIOperationToPagePatches(r,i))}removeAllAction(e,t){if(this.hasSelectLockedComps)return;const n=t||this.firstSelectedComponent;if(!n)return;const r=n.removeAllInteractionActions(e);r&&this.update(o.convertUIOperationToPagePatches(n,r))}moveAction(e,t,n,r){if(this.hasSelectLockedComps)return;const i=r||this.firstSelectedComponent;if(!i)return;const a=i.moveInteractionAction(e,t,n);a&&this.update(o.convertUIOperationToPagePatches(i,a))}tagEventActive(e){if(this.hasSelectLockedComps)return;const t=this.firstSelectedComponent;if(!t)return;const n=t.markUpInteractionActive(e);n&&this.update(o.convertUIOperationToPagePatches(t,n))}tagEventParallel(e,t){if(this.hasSelectLockedComps)return;const n=t||this.firstSelectedComponent;if(!n)return;const r=n.markUpInteractionParallel(e);r&&this.update(o.convertUIOperationToPagePatches(n,r))}tagEventAutoRevert(e,t){if(this.hasSelectLockedComps)return;const n=t||this.firstSelectedComponent;if(!n)return;const r=n.markUpInteractionAutoRevert(e);r&&this.update(o.convertUIOperationToPagePatches(n,r))}modifyActionParams(e,t,n){if(this.hasSelectLockedComps)return;const r=this.firstSelectedComponent;if(!r)return;const i=r.modifyInteractionActionParams(e,t,n);i&&this.update(o.convertUIOperationToPagePatches(r,i))}modifyActionData(e,t,n,r){if(this.hasSelectLockedComps)return;const i=r||this.firstSelectedComponent;if(!i)return;const a=i.modifyInteractionActionData(e,t,n);a&&this.update(o.convertUIOperationToPagePatches(i,a))}removeAndModifyAction(e,t,n,r,i){if(this.hasSelectLockedComps)return;const a=i||this.firstSelectedComponent;if(!a)return;const s=a.modifyInteractionActionData(e,n,r),l=a.removeInteractionAction(e,t);let c=null;c=s&&l?{do:[...s.do,...l.do],undo:[...l.undo,...s.undo]}:s||l,c&&this.update(o.convertUIOperationToPagePatches(a,c))}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(8),i=n(133),a=n(28),s=n(18),l=n(40),c=n(12),u=n(29),d=n(370),h=n(151),p=n(17),f=n(52),m=n(220),g=n(1395),v=n(95),y=n(35),b=n(34),w=n(114),C=n(96),_=n(14),x=n(6),S=n(157),k=n(43),P=n(430),T=n(17),E=n(62),O=n(1401),M=n(6);class A extends g.default{get selectedBoxPoints(){return u.getSelectionBoxPoints(this.selectedComponents)}get selectionFrameType(){var e,t,n;const r=this.selectedComponentList;if(1===r.length){const o=r[0];let i;i=(null===(e=o.libData)||void 0===e?void 0:e.sizeMode)?o.libData.sizeMode:null===(t=null==o?void 0:o.constraintInSealedComp)||void 0===t?void 0:t.resize;let a=o.alias;if(this.isAdvancedEditor&&a){const e=null===(n=this.originContainer)||void 0===n?void 0:n.constraint;i=e&&e[a]&&e[a].resize}if(void 0!==i)return u.getSelectionFrameTypeByConstraint(i)}if(r.every(e=>e.type===x.CText)){if(r.length>1){return u.allCompsSatisfy(r,e=>{const{textFormat:t,multiText:n}=e.properties,r=t||n;return!!(null==r?void 0:r.vertical)})?h.default.topMiddle_to_bottomMiddle:h.default.leftMiddle_to_rightMiddle}return r[0].selectFrameType}return this.activeContainer instanceof p.UIListLayoutSealedComponent?h.default.none:this.hasOnlyOneSelectedComponents?this.firstSelectedComponent.selectFrameType:h.default.box}get selectionFrameRotate(){return this.hasOnlyOneSelectedComponents?this.firstSelectedComponent.rotate:0}get canDoCompMoveOperation(){const{selectedComponentList:e,hasSelectLockedComps:t,canMove:n}=this,{horizontal:r,vertical:o}=n;return!(!r&&!o||t||-1===e.findIndex(e=>!e.isConnector))}dragResizeSingleLineComp(e,t,n){const r=b.getResizeSingLinePatch(e,t,n);this.update({[this.activeArtboard.artboardID]:r})}rotate(e){if(!this.hasOnlyOneSelectedComponents)return;const t=this.firstSelectedComponent;if(t.rotate===e)return;const n=this.activeContainer.getPositionPatchesOfChildrenChanged([{id:t.id,type:b.ComponentChangeType.Edit,position:t.position,size:t.size,rotate:e}],!0);this.update({[this.activeArtboard.artboardID]:n.patches})}moveSelectedComps(e,t,n){const r=n&&n.willRemoveComps,o=S.getFinalPositionWhenMove(t,e,null==n?void 0:n.needRoundedPosition);let i;return i=this.activeContainer.type===x.CCompoundPath?this.activeContainer.getPositionPatchesOfChildrenChanged(o,!0,r):this.activeContainer.getPositionPatchesOfChildrenChanged(o,!0),{[this.activeArtboard.artboardID]:i.patches}}movingSelectedComps(e,t,n){const r=S.getFinalPositionWhenMove(t,e,null==n?void 0:n.needRoundedPosition),o=T.UIPanelComponent.prototype.getPositionPatchesOfChildrenChanged.bind(this.activeContainer)(r,!0).patches;return{[this.activeArtboard.artboardID]:o}}resizeSelectedComps(e,t,n){return this.activeContainer.resizeChildren(e,t,n)}resizingSelectedComps(e,t,n){return this.activeContainer.resizeChildrenWithoutUpdateSelf(e,t,n)}moveCompsInSealedComp(e,t=this.selectedCompsExcludeConnector){var n,r,o;if(t[0].isInSuchParent(e=>e.isSealed)){const i=t[0].nearestSealedComponent,a=null===(n=i.lib)||void 0===n?void 0:n.type;if(a){const t=null===(o=null===(r=k.getLibData(a))||void 0===r?void 0:r.editor)||void 0===o?void 0:o.onChildMove;return t&&t(e,i)}}}moveSelectedToOtherArtboard(e,t,n){const r=[...this.doc.fragments,this.doc.mainArtboard];let o,i;for(let e=0,a=r.length;e<a;e++){const a=r[e];if(a.artboardID===t&&(o=a),a.artboardID===n&&(i=a),o&&i)break}if(o&&i){const{patches:t}=o.removeComponents(this.selectedComponentList),n=this.selectedComponentList.map(e=>e.id),{innerConnectComps:r}=C.getInnerOrAroundConnect(this.activeContainer,n),a=r.map(t=>t.modifyConnectPointByDiff(e)),s=[...this.selectedComponentList.filter(e=>!e.isConnector).map(t=>{const n=Object.assign(Object.assign({},t.toJSON()),{_currentState:void 0}),{x:r,y:o}=t.currentState.position||t.$data.position;return n.position={x:r+e.x,y:o+e.y},t.isLayoutMiddleAtVertical&&(n.position.y=i.size.height/2-t.size.height/2),t.isLayoutCenterAtHorizontal&&(n.position.x=i.size.width/2-t.size.width/2),n}),...a],{patches:l}=i.addComponents(s),c=Object.keys(l).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:l[t]}),t);this.setActiveArtboard(i);const u=s.map(e=>e._id);this.update(c);const d=i.components.filter(e=>u.includes(e.id));this.select(d,!1)}}layoutItemChange(e,t){if(!m.default.allowChildrenAnchorsChange(this.activeContainer.toJSON()))return;if(["horizontal","vertical"].includes(e))return;const n=this.selectedComponentList,r={},o={},i=w.collectComponentsLayout(n,a.createBoundsBySize(n[0].parent.size)),s={do:r,undo:o};n.forEach(n=>{const a=n.layout;if(a[e]!==t){if("responsive"===e){const e=n.updateResponsiveLayout(t);y.coverPatches(s,e)}if(r[n.id]=[...r[n.id]||[],c.Ops.replace("/layout/"+e,t)],o[n.id]=[...o[n.id]||[],c.Ops.replace("/layout/"+e,a[e])],"fixedWidth"===e&&t&&a.horizontal===l.HorizontalAlign.LeftAndRight&&(r[n.id]=[...r[n.id]||[],c.Ops.replace("/layout/horizontal",l.HorizontalAlign.Left)],o[n.id]=[...o[n.id]||[],c.Ops.replace("/layout/horizontal",a.horizontal)]),"fixedHeight"===e&&t&&a.vertical===l.VerticalAlign.TopAndBottom&&(r[n.id]=[...r[n.id]||[],c.Ops.replace("/layout/vertical",l.VerticalAlign.Top)],o[n.id]=[...o[n.id]||[],c.Ops.replace("/layout/vertical",a.vertical)]),"auto"===e&&!t){const e=i.get(n);e&&(r[n.id]=[...r[n.id]||[],c.Ops.replace("/layout/vertical",e.vertical),c.Ops.replace("/layout/horizontal",e.horizontal),c.Ops.replace("/layout/fixedWidth",e.fixedWidth),c.Ops.replace("/layout/fixedHeight",e.fixedHeight)],o[n.id]=[...o[n.id]||[],c.Ops.replace("/layout/vertical",a.vertical),c.Ops.replace("/layout/horizontal",a.horizontal),c.Ops.replace("/layout/fixedWidth",a.fixedWidth),c.Ops.replace("/layout/fixedHeight",a.fixedHeight)])}}}),this.update({[this.activeArtboard.artboardID]:s})}anchorsChange(e,t){if(!m.default.allowChildrenAnchorsChange(this.activeContainer.toJSON()))return;const n=this.selectedComponentList,i={},a={};n.forEach(n=>{const s=n.layout,d=Object.assign(Object.assign({},u.getAnchors(s)),{[e]:t}),h=f.getCenter({x:0,y:0},n.parent.size),p=Object.assign({},n.position),m=n.getCurrentPositionPath();"center"===e&&t?(d.left=!1,d.right=!1,p.x=o.round(f.getNWPoint(h,n.size,0).x)):"middle"===e&&t&&(d.top=!1,d.bottom=!1,p.y=o.round(f.getNWPoint(h,n.size,0).y));const g=u.getLayoutDirection(d);s.fixedHeight&&("top"===e&&g.vertical===l.VerticalAlign.TopAndBottom?g.vertical=l.VerticalAlign.Top:"bottom"===e&&g.vertical===l.VerticalAlign.TopAndBottom&&(g.vertical=l.VerticalAlign.Bottom)),s.fixedWidth&&("left"===e&&g.horizontal===l.HorizontalAlign.LeftAndRight?g.horizontal=l.HorizontalAlign.Left:"right"===e&&g.horizontal===l.HorizontalAlign.LeftAndRight&&(g.horizontal=l.HorizontalAlign.Right)),g.horizontal!==s.horizontal&&(i[n.id]=[...i[n.id]||[],c.Ops.replace("/layout/horizontal",g.horizontal)],a[n.id]=[...a[n.id]||[],c.Ops.replace("/layout/horizontal",s.horizontal)]),g.vertical!==s.vertical&&(i[n.id]=[...i[n.id]||[],c.Ops.replace("/layout/vertical",g.vertical)],a[n.id]=[...a[n.id]||[],c.Ops.replace("/layout/vertical",s.vertical)]),r.isEqual(n.position,p)||(i[n.id]||(i[n.id]=[],a[n.id]=[]),i[n.id].push(c.Ops.replace(m,p)),a[n.id].push(c.Ops.replace(m,n.position)))}),this.update({[this.activeArtboard.artboardID]:{do:i,undo:a}})}positionChange(e){if(!this.hasSelectedComponents)return;const t=this.selectedComponentList;let n=[];n=t.length>1?t.map(n=>{const{left:r,top:o}=v.getViewBoundsOfComponents(t),i=O.Vector(e).subtract({x:r,y:o}),a=O.Vector(n.position).add(i);return{id:n.id,type:b.ComponentChangeType.Edit,size:n.size,rotate:n.rotate||0,position:a}}):t.map(t=>u.getCompChangeByNewPosition(t,e));const{patches:r}=this.activeContainer.getPositionPatchesOfChildrenChanged(n,!0);if(this.activeContainer.type===x.CCompoundPath){const e=o.depthClone(this.activeContainer.components.map(e=>e.toJSON()));n.forEach(t=>{const n=e.find(e=>e._id===t.id);n.position=t.position,n.size=t.size,n.rotate=t.rotate});const{newActiveGroup:t,patches:i}=this.activeContainer.refreshPatchesWithNewChildren(e);t&&t.id!==this.activeContainer.id?(r.do=i.do,r.undo=i.undo,this.setActiveContainer(t)):y.mergePatches(r,i)}this.update({[this.activeArtboard.artboardID]:r})}insertListType(e){const t=this.selectedComponentList.reduce((t,n)=>{const r=n.type===x.CText?""+n.value:n.text,o=s.insertOrderedList(r,e);if(n.type===x.CText){if(t.do[n.id]=[{op:"replace",path:"/value",value:o}],t.undo[n.id]=[{op:"replace",path:"/value",value:o}],n.autoSize){const e=_.StyleHelper.initCSSStyleParser(n.properties),r=s.measureTextSize(Object.assign({},e.getTextStyle()),o,{wrap:!0,isMultiText:!0});t.undo[n.id].push({op:"replace",path:"/size",value:r}),t.do[n.id].push({op:"replace",path:"/size",value:r})}}else t.do[n.id]=[{op:"replace",path:"/text",value:o}],t.undo[n.id]=[{op:"replace",path:"/text",value:o}];return t},{do:{},undo:{}});this.update({[this.activeArtboard.artboardID]:t})}sizeChange(e,t){const n=this.selectedComponentList.filter(e=>!e.autoSize),r={do:{},undo:{}};0!==n.length&&(n.filter(e=>"line"!==e.type).forEach(n=>{const i=b.getMinSizeOfComp(n),a=n.size;let s={left:0,right:0,top:0,bottom:0};const{width:l,height:c}=a,u=l/c;let d=l,h=c;"width"===e&&(d=t[e]<i.width?i.width:t[e],a.lockedRatio&&(h=d/u)),"height"===e&&(h=t[e]<i.height?i.height:t[e],a.lockedRatio&&(d=h*u)),"all"===e&&(d=t.width||l,h=t.height||c);const p=o.notSameNumber(l,d),f=o.notSameNumber(c,h);p&&(s.right=d-l),f&&(s.bottom=h-c);const m=n.parent.resizeChildren([n],{offset:s},{shift:!1});y.coverPatches(r,m),this.update({[this.activeArtboard.artboardID]:r})}),n.filter(e=>"line"===e.type).forEach(n=>{const r=n.getBoxPointsInArtboard(!1),{startPoint:i,endPoint:a}=n.value,s=(i.y-a.y)/(i.x-a.x),l=t.width-n.size.width,c=t.height-n.size.height;let u;u=s===1/0?o.isNotEqual0(l)?h.SelectionPoints.rightTop:h.SelectionPoints.leftBottom:s===-1/0?h.SelectionPoints.leftBottom:0===s?h.SelectionPoints.rightTop:s>0?h.SelectionPoints.rightBottom:"width"===e?h.SelectionPoints.rightTop:h.SelectionPoints.leftBottom;let d=r[u],p={x:d.x,y:d.y};"width"===e?p.x=d.x+l:p.y=d.y+c;const m=n.size.lockedRatio||!1,g=f.dragResizePoint(r,u,p,m),v=b.isDragStartOrEndPoint(n,r,u);this.dragResizeSingleLineComp(n,r,{newPoints:g,dragIndex:u,dragStartOrEndPointInfo:v})}))}revertOriginSize(){const e=this.firstSelectedComponent;if(!e||e.locked)return;const{type:t}=e;if(t!==M.CImage)return;const{value:n}=e;if(!n)return;const r=new Image;r.onload=()=>{const{width:e,height:t}=r;this.sizeChange("all",{lockedRatio:!0,width:e,height:t})},r.src=n}activeAnchors(e){const t=this.selectedComponentList;if(!m.default.allowChildrenAnchorsChange(this.activeContainer.toJSON()))return;const n={do:{},undo:{}};t.forEach(t=>{const r=t.setAnchors(e);n.do[t.id]=r.do,n.undo[t.id]=r.undo}),this.updateSingleArtboard(this.activeArtboard.artboardID,n)}lockSizeRatio(e){const t={do:{},undo:{}};this.selectedComponentList.filter(e=>e.canSetSizeLockRatio).forEach(n=>{if(!n.autoSize){const r=n.setSize(Object.assign(Object.assign({},n.toJSON().size),{lockedRatio:e}));t.do[n.id]=r.do,t.undo[n.id]=r.undo}}),this.updateSingleArtboard(this.activeArtboard.artboardID,t)}align(e){if(this.selectedComponentList.length)if(1===this.selectedComponentList.length){const t=this.selectedComponentList[0],n=t.parent,{size:r}=n,i=t.getViewBoundsInParent(),a={height:t.getViewBoundsInParent().height,width:t.getViewBoundsInParent().width};let s=o.depthClone(i);switch(e){case d.default.left:s.left=0;break;case d.default.center:s.left=r.width/2-i.width/2;break;case d.default.right:s.left=r.width-i.width;break;case d.default.top:s.top=0;break;case d.default.middle:s.top=r.height/2-i.height/2;break;case d.default.bottom:s.top=r.height-i.height}const l=f.getCenter({x:s.left,y:s.top},a,0),c=f.getNWPoint(l,t.size,0);t.isLayoutCenterAtHorizontal&&(c.x=t.position.x),t.isLayoutMiddleAtVertical&&(c.y=t.position.y);const u={id:t.id,type:b.ComponentChangeType.Edit,position:c,size:t.size,rotate:t.rotate},{patches:h}=this.activeContainer.getPositionPatchesOfChildrenChanged([u],!0);if(this.activeContainer.type===x.CCompoundPath){const e=o.depthClone(this.activeContainer.components.map(e=>e.toJSON())),t=e.find(e=>e._id===u.id);t.position=u.position,t.size=u.size,t.rotate=u.rotate;const{newActiveGroup:n,patches:r}=this.activeContainer.refreshPatchesWithNewChildren(e);n&&n.id!==this.activeContainer.id?(h.do=r.do,h.undo=r.undo,this.setActiveContainer(n)):y.mergePatches(h,r)}this.updateSingleArtboard(this.activeArtboard.artboardID,h)}else{const t=[...this.selectedComponents],n=t[0];t.shift();let{x:r,y:a}=n.position,{width:s,height:l}=n.size,c=i.getDeltaForOrderRotate(s,l,0,n.rotate),u=r+s+c.right,h=a+l+c.bottom;r+=c.left,a+=c.top,t.forEach(e=>{const t=e.position,n=e.size;c=i.getDeltaForOrderRotate(n.width,n.height,0,e.rotate),u=o.max(u,t.x+n.width+c.right),h=o.max(h,t.y+n.height+c.bottom),r=o.min(r,t.x+c.left),a=o.min(a,t.y+c.top)}),s=u-r,l=h-a;const p=o.round(r+s/2),f=o.round(a+l/2);t.unshift(n);const m=t.filter(e=>!(e.isLayoutMiddleAtVertical||e.isLayoutCenterAtHorizontal)).map(t=>{const{size:n,position:s,rotate:l}=t,c={x:0,y:0},m=i.getDeltaForOrderRotate(n.width,n.height,0,l);switch(e){case d.default.left:c.x=r-(s.x+m.left);break;case d.default.center:c.x=p-o.round(s.x+m.left+(n.width-m.left+m.right)/2);break;case d.default.right:c.x=u-(s.x+(n.width+m.right));break;case d.default.top:c.y=a-(s.y+m.top);break;case d.default.middle:c.y=f-o.round(s.y+m.top+(n.height-m.top+m.bottom)/2);break;case d.default.bottom:c.y=h-(s.y+(n.height+m.bottom))}return{id:t.id,type:b.ComponentChangeType.Edit,position:{x:t.position.x+c.x,y:t.position.y+c.y},size:t.size,rotate:t.rotate}}),{patches:g}=this.activeContainer.getPositionPatchesOfChildrenChanged(m,!0);if(this.activeContainer.type===x.CCompoundPath){const e=o.depthClone(this.activeContainer.components.map(e=>e.toJSON()));m.forEach(t=>{const n=e.find(e=>e._id===t.id);n.position=t.position,n.size=t.size,n.rotate=t.rotate});const{newActiveGroup:t,patches:n}=this.activeContainer.refreshPatchesWithNewChildren(e);t&&t.id!==this.activeContainer.id?(g.do=n.do,g.undo=n.undo,this.setActiveContainer(t)):y.mergePatches(g,n)}this.updateSingleArtboard(this.activeArtboard.artboardID,g)}}sameGap(e){const t=[...this.selectedComponents];if(!t.length)return;const n=t[0].getViewBoundsInArtboard();let{width:r,height:i}=n,a=n.left,s=n.top,l=a+r,c=s+i,d=0,h=0;t.forEach(e=>{const t=e.getViewBoundsInArtboard(),n=t.height,r=t.width,i={x:t.left,y:t.top};a=o.min(a,i.x),s=o.min(s,i.y),l=o.max(l,i.x+r),c=o.max(c,i.y+n),d+=r,h+=n}),r=l-a,i=c-s;const p=o.round((r-d)/(t.length-1)),m=o.round((i-h)/(t.length-1));t.sort((t,n)=>{const r=t.positionRelativeToArtboard,o=n.positionRelativeToArtboard;switch(e){case"vertical":return r.y-o.y;case"horizontal":return r.x-o.x;default:return 0}});const g=t[0].getViewBoundsInArtboard(),v=g.left,w=g.top,C=g.width,_=g.height;t.shift(),a=v+C+p,s=w+_+m;const S=t.filter(e=>!(e.isLayoutMiddleAtVertical||e.isLayoutCenterAtHorizontal)).map(t=>{const n={x:0,y:0},r=t.getViewBoundsInArtboard();let o={x:r.left,y:r.top},i={width:r.width,height:r.height};const l=f.getCenter(o,i,0);"vertical"===e?(n.y=s-o.y,s=s+i.height+m):(n.x=a-o.x,a=a+i.width+p);const c={x:l.x+n.x,y:l.y+n.y},d=u.tansPointInArtBoardToGroup([c],t.parent)[0],h=f.getNWPoint(d,t.size,0);return{id:t.id,type:b.ComponentChangeType.Edit,position:h,size:t.size,rotate:t.rotate}}),{patches:k}=this.activeContainer.getPositionPatchesOfChildrenChanged(S,!0);if(this.activeContainer.type===x.CCompoundPath){const e=o.depthClone(this.activeContainer.components.map(e=>e.toJSON()));S.forEach(t=>{const n=e.find(e=>e._id===t.id);n.position=t.position,n.size=t.size,n.rotate=t.rotate});const{newActiveGroup:t,patches:n}=this.activeContainer.refreshPatchesWithNewChildren(e);t&&t.id!==this.activeContainer.id?(k.do=n.do,k.undo=n.undo,this.setActiveContainer(t)):y.mergePatches(k,n)}this.updateSingleArtboard(this.activeArtboard.artboardID,k)}sameSize(e){const t=[...this.selectedComponents];let{width:n,height:r}=t[0].size,i=n,a=n,s=r,c=r;t.forEach(e=>{const t=v.getViewBoundsOfComponents([e]);i=o.min(i,t.width),a=o.max(a,t.width),s=o.min(s,t.height),c=o.max(c,t.height)});const u=[];t.forEach(t=>{const n={left:0,right:0,top:0,bottom:0},r=v.getViewBoundsOfComponents([t]);switch(e){case"minWidth":n.right=i-r.width;break;case"minHeight":n.bottom=s-r.height;break;case"maxWidth":n.right=a-r.width;break;case"maxHeight":n.bottom=c-r.height}u.push(n)});const d={do:{},undo:{}},h=t.map((e,t)=>{const n=u[t],r=v.getViewBoundsOfComponents([e]),o={fixedWidth:!1,fixedHeight:!1,horizontal:l.HorizontalAlign.LeftAndRight,vertical:l.VerticalAlign.TopAndBottom},i={container:{before:{position:{x:r.left,y:r.top},size:{width:r.width,height:r.height}},after:{position:{x:r.left+n.left,y:r.top+n.top},size:{width:r.width+n.right-n.left,height:r.height+n.bottom-n.top}},isResponsive:!0},shift:!1,scale:{h:(r.width+n.right-n.left)/r.width,v:(r.height+n.bottom-n.top)/r.height}},a=e.resizeHandler2(n,o,i);return a.patches&&y.coverPatches(d,a.patches),{id:e.id,type:b.ComponentChangeType.Edit,size:a.size,position:a.position,rotate:a.rotate}}),p=this.activeContainer.getPositionPatchesOfChildrenChanged(h,!0);y.coverPatches(d,p.patches),this.updateSingleArtboard(this.activeArtboard.artboardID,d)}notifyCompsToReRender(e,t,n){e.length<=10?S.reRenderComps(e,t,n):(e.forEach(e=>e.updateVision()),this.notifyUpdateListener())}zoomComponent(e,t,n){const r=b.getOffsetByNewSizeAndFixPoint(e,Object.assign({},t),n.transformOrigin,this.selectedComponentList,!0),o=this.activeContainer.resizeChildren(this.selectedComponentList,{offset:r},{shift:!0,isScale:!0,changeRadius:n.changeRadius,changeShadow:n.changeShadow,scalePercent:n.scalePercent});this.update({[this.activeArtboard.artboardID]:o})}handleCompsToBeDeleted(e){const t={do:{},undo:{}};e.forEach(e=>{var n;if(null===(n=e.parent)||void 0===n?void 0:n.isArtboard){const n=S.convertRemovedComponentsToAddOps(e.parent,[e]);t.do[e.parent.id]=[...t.do[e.parent.id]||[],c.Ops.removeChildren([e.id])],t.undo[e.parent.id]=[...t.undo[e.parent.id]||[],...n],this.setActiveContainer(e.parent)}else{const n=e.parent.removeComponents([e]);n&&y.mergePatches(t,n.patches[this.activeArtboard.artboardID])}}),this.update({[this.activeArtboard.artboardID]:t})}setListItemsValue(e,t,n){const r=P.setListItemsValue(e,t.trim(),n);r&&this.update(r)}createSelectionGroup(e){const t=this.firstSelectedComponent;if(!t)return;const n=t;let o=r.cloneDeep(n.toJSON());o.selected=!1;let i=this.activeContainer;const a=T.getNewCreatedSGData(o,e,t.position),s=new E.ArtboardPatchesClass,{patches:l}=i.addComponents([a],i.components.findIndex(e=>e.id===t.id)),{patches:c}=i.removeComponents([t]),u=this.activeArtboard.artboardID;[l,c].forEach(e=>y.coverPatches(s,e[u])),this.update({[u]:s}),this.selectByIDs([a._id],!1)}}t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1396),o=n(157);class i extends r.default{constructor(e,t,n,r){super(e,t,n,r)}get canUndo(){return this.undoStack.length>0}get canRedo(){return this.redoStack.length>0}undo(){if(!this.canUndo)return!1;const e=this.undoStack.pop();if(!e)return!1;let t=this.activeContainer.id;this.applyOperations(e,this.redoStack),this.refreshSelectedComponents();let n=this.doc.getComponentByID(t),r=this.activeContainer.parent,o=void 0;for(;!n&&r&&!r.isArtboard;){if(t=r.id,n=this.doc.getComponentByID(t),n){o=r;break}r=r.parent}return o||(o=this.activeArtboard),o&&o!==this.activeContainer&&this.setActiveContainer(o),this.invertListener&&this.invertListener(),this.doResetActiveWithUndoRedo(e),!0}redo(){if(!this.canRedo)return!1;const e=this.redoStack.pop();return!!e&&(this.applyOperations(e,this.undoStack),this.refreshSelectedComponents(),this.doResetActiveWithUndoRedo(e),this.invertListener&&this.invertListener(),!0)}doResetActiveWithUndoRedo(e){const t=this.activeContainer;o.getIsRemovingCurrentActiveContainer(e,t.id)&&this.setActiveContainer(this.activeContainer.parent)}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(17),i=n(6),a=n(6),s=n(95),l=n(399),c=n(12),u=n(157),d=n(1397),h=n(8),p=n(29),f=n(220),m=n(35),g=n(34),v=n(96),y=n(47),b=n(30),w=n(173),C=n(52),_=n(43),x=n(23),S=n(6),k=n(209),P=n(28);class T extends d.default{constructor(e,t,n,r){super(e,t,n,r),this.closePath=()=>{if(1!==this.selectedComponents.size)return!1;if(!S.isBasicComp(this.selectedComponentList[0].type))return!1;const e=this.selectedComponentList[0];if(e.type===i.CPath){const t={do:{},undo:{}},n=e.value,{size:r,position:o,properties:{polygon:i}}=e,a=h.depthClone(n);a.closed=!a.closed;const s=h.depthClone(e.toJSON());s.value=a,s.rotate=0;const l=y.getPathItemOfComp(s),{bounds:u}=l,d=Object.assign({},r),p=Object.assign({},o);w.isNumber(null==u?void 0:u.width)&&(d.width=null==u?void 0:u.width),w.isNumber(null==u?void 0:u.height)&&(d.height=null==u?void 0:u.height);const f=(null==u?void 0:u.left)||0,g=(null==u?void 0:u.top)||0,v={x:r.width/2,y:r.height/2},b={x:f+d.width/2,y:g+d.height/2},_=C.centerRotatePoints([b],v,e.rotate)[0],S={x:_.x-b.x+f,y:_.y-b.y+g};if(w.isNumber(null==u?void 0:u.left)&&(p.x+=S.x,a.data.forEach(e=>e.point.x-=null==u?void 0:u.left)),w.isNumber(null==u?void 0:u.top)&&(p.y+=S.y,a.data.forEach(e=>e.point.y-=null==u?void 0:u.top)),t.do[e.id]=[c.Ops.replace("./value",a),c.Ops.replace("./position",p),c.Ops.replace("./size",d)],t.undo[e.id]=[c.Ops.replace("./value",n),c.Ops.replace("./position",o),c.Ops.replace("./size",r)],i&&(t.do[e.id].push(c.Ops.remove("./properties/polygon")),t.undo[e.id].push(c.Ops.add("./properties/polygon",i))),!y.isClosedPathWithArea(n)){const n=e.updatePathStrokePositionOfAllState(x.StrokePosition.center);n&&m.mergePatches(t,n)}this.update({[this.activeContainer.ownerArtboardID]:t})}else{const t=k.componentToSvgValue(e.toJSON());if(!t)return;const{data:n}=t;if(!n.length)return;const r={width:e.size.width,height:e.size.height,left:e.position.x,top:e.position.y,right:e.position.x+e.size.width,bottom:e.position.y+e.size.height};n[0].closed=!1,this.applyPathData(n[0],r,e.position)}},this.convertToPath=(e="phone")=>{if(!this.couldConvertToPath)return!1;const t=[...this.selectedComponentList];if(!t.length)return!1;const n=t.map(t=>{var n;const r=_.makeComponent("basic",i.CPath,e),{name:o,properties:a,opacity:s,layout:l,row:c,column:u,rotate:d,position:h}=t;r.name=o||_.getDefaultComponentName(r.type,r.lib),Object.keys(a).filter(e=>!y.supportedPathProperties.includes(e)).forEach(e=>delete a[e]),r.properties=a,r.opacity=s,r.layout=l,r.row=c,r.column=u;const p=k.componentToSvgValue(t.toJSON()),f=(null==p?void 0:p.data[0])||{data:[],closed:!1},{newValue:m,newSize:g,newPosition:v}=y.resetPathValueRotate(f,d,h);return(null===(n=t.parent)||void 0===n?void 0:n.type)!==i.CTable?r.position=v:r.position={x:0,y:0},r.value=m,r.size=g,r.rotate=0,r}),r=[];this.activeContainer.components.filter(e=>e.isConnector).forEach(e=>{const n=e,o=n.getStartCompID(),i=n.getEndCompID(),a=o&&t.some(e=>e.id===o),s=i&&t.some(e=>e.id===i);(a||s)&&r.push(n)});const a=t.concat(r),s=u.convertRemovedComponentsToAddOps(this.activeContainer,a);let l={};if(this.activeContainer instanceof o.UIGroupComponent||this.activeContainer instanceof o.UICompoundPathComponent)l=this.activeContainer.replaceComponents(n,a).patches;else{const e=this.activeContainer.components.findIndex(e=>{var t;return e.id===(null===(t=a[0])||void 0===t?void 0:t.id)});l={[this.activeContainer.ownerArtboardID]:{do:{[this.activeContainer.id]:[c.Ops.removeChildren(a.map(e=>e.id)),c.Ops.addChildren(""+e,n)]},undo:{[this.activeContainer.id]:[...s,c.Ops.removeChildren(n.map(e=>e._id))]}}}}m.sortPatches(l[this.activeContainer.ownerArtboardID]),this.update(l),this.selectByIDs(n.map(e=>e._id),!1)},this.compoundPath=e=>{if(0===this.selectedComponents.size)return!1;if(this.activeContainer.isSealed||!f.default.allowChildrenStructureChange(this.activeContainer))return!1;if(this.hasSelectLockedComps)return!1;const t=this.selectedComponentList.map(e=>e.id),n=this.activeContainer.components.filter(e=>{var n;return t.includes(e.id)&&"hot-area"!==(null===(n=e.lib)||void 0===n?void 0:n.type)&&[a.CPath,a.CCompoundPath].includes(e.type)});if(n.length<2)return!1;const r=y.compoundPath(n.map(e=>e.toJSON()),e),s=this.activeContainer.components,l=[];s.filter(e=>e.isConnector).forEach(e=>{const t=e,r=t.getStartCompID(),o=t.getEndCompID(),i=r&&n.some(e=>e.id===r),a=o&&n.some(e=>e.id===o);(i||a)&&l.push(t)});const u=[...n,...l],d=s.filter(e=>!u.find(t=>t.id===e.id));let p=this.activeContainer;const g={do:{},undo:{}};if(this.activeContainer.type===i.CCompoundPath){const e=this.activeContainer.parent;if(0!==d.length||r)if(0===d.length&&r){r.position=new o.UIComponent(r,this.activeContainer).getPositionWithoutParent(),r.rotate=(r.rotate||0)+this.activeContainer.rotate;const t=this.activeContainer.removeSelfPatches();m.mergePatches(g,t);const n={do:{[e.id]:[c.Ops.addChildren("-1",[r])]},undo:{[e.id]:[c.Ops.removeChildren([r._id])]}};let a;if(m.mergePatches(g,n),e.type===i.CCompoundPath){const t=h.depthClone(e.components.map(e=>e.toJSON()));h.removeItemFromArray(t,t.find(e=>e._id===this.activeContainer.id)),t.push(r);const{newActiveGroup:n}=e.refreshPatchesWithNewChildren(t,g);a=n}p=a||e}else if(1!==d.length||r){const e=h.depthClone(this.activeContainer.components.map(e=>e.toJSON()));if(u.forEach(t=>{m.mergePatches(g,t.removeSelfPatches()),h.removeItemFromArray(e,e.find(e=>e._id===t.id))}),r){const e={do:{[this.activeContainer.id]:[c.Ops.addChildren("-1",[r])]},undo:{[this.activeContainer.id]:[c.Ops.removeChildren([r._id])]}};m.mergePatches(g,e)}r&&e.push(r);const{newActiveGroup:t}=this.activeContainer.refreshPatchesWithNewChildren(e,g);p=t||this.activeContainer}else{const t=d[0].toJSON();t.position=new o.UIComponent(t,this.activeContainer).getPositionWithoutParent(),t.rotate=(t.rotate||0)+this.activeContainer.rotate,t._id=b.getNewID();const n=this.activeContainer.removeSelfPatches();m.mergePatches(g,n);const r={do:{[e.id]:[c.Ops.addChildren("-1",[t])]},undo:{[e.id]:[c.Ops.removeChildren([t._id])]}};let a;if(m.mergePatches(g,r),e.type===i.CCompoundPath){const n=h.depthClone(e.components.map(e=>e.toJSON()));h.removeItemFromArray(n,n.find(e=>e._id===this.activeContainer.id)),n.push(t);const{newActiveGroup:r}=e.refreshPatchesWithNewChildren(n,g);a=r}p=a||e}else if(e.components.length>2){const t=this.activeContainer.removeSelfPatches();let n;if(m.mergePatches(g,t),e.type===i.CCompoundPath){const t=h.depthClone(e.components.map(e=>e.toJSON()));h.removeItemFromArray(t,t.find(e=>e._id===this.activeContainer.id));const{newActiveGroup:r}=e.refreshPatchesWithNewChildren(t,g);n=r}p=n||e}else if(2===e.components.length)if(e.type===i.CCompoundPath){const t=h.depthClone(e.components.map(e=>e.toJSON()));h.removeItemFromArray(t,t.find(e=>e._id===this.activeContainer.id));const{newActiveGroup:n}=e.refreshPatchesWithNewChildren(t,g);p=n||e}else if(e.type===i.CGroup){const t=e.removeSelfPatches();m.mergePatches(g,t);const n=h.depthClone(e.components.map(e=>e.toJSON()));h.removeItemFromArray(n,n.find(e=>e._id===this.activeContainer.id)),n[0].position=new o.UIComponent(n[0],e).getPositionWithoutParent(),n[0].rotate=(n[0].rotate||0)+e.rotate,n[0]._id=b.getNewID();const r={do:{[e.parent.id]:[c.Ops.addChildren("-1",n)]},undo:{[e.parent.id]:[c.Ops.removeChildren(n.map(e=>e._id))]}};m.mergePatches(g,r),p=e.parent}}else if(this.activeContainer.type===i.CGroup){const e=this.activeContainer.parent;if(0!==d.length||r)if(0===d.length&&r){r.position=new o.UIComponent(r,this.activeContainer).getPositionWithoutParent(),r.rotate=(r.rotate||0)+this.activeContainer.rotate;const t=this.activeContainer.removeSelfPatches();m.mergePatches(g,t);const n={do:{[e.id]:[c.Ops.addChildren("-1",[r])]},undo:{[e.id]:[c.Ops.removeChildren([r._id])]}};m.mergePatches(g,n),p=e}else if(1!==d.length||r){if(u.forEach(e=>{m.mergePatches(g,e.removeSelfPatches())}),r){const e={do:{[this.activeContainer.id]:[c.Ops.addChildren("-1",[r])]},undo:{[this.activeContainer.id]:[c.Ops.removeChildren([r._id])]}};m.mergePatches(g,e)}}else{const t=d[0].toJSON();t.position=new o.UIComponent(t,this.activeContainer).getPositionWithoutParent(),t.rotate=(t.rotate||0)+this.activeContainer.rotate,t._id=b.getNewID();const n=this.activeContainer.removeSelfPatches();m.mergePatches(g,n);const r={do:{[e.id]:[c.Ops.addChildren("-1",[t])]},undo:{[e.id]:[c.Ops.removeChildren([t._id])]}};m.mergePatches(g,r),p=e}else if(e.components.length>2){const t=this.activeContainer.removeSelfPatches();p=e,m.mergePatches(g,t)}else if(2===e.components.length&&e.type===i.CGroup){const t=e.removeSelfPatches();m.mergePatches(g,t);const n=h.depthClone(e.components.map(e=>e.toJSON()));h.removeItemFromArray(n,n.find(e=>e._id===this.activeContainer.id)),n[0].position=new o.UIComponent(n[0],e).getPositionWithoutParent(),n[0].rotate=(n[0].rotate||0)+e.rotate,n[0]._id=b.getNewID();const r={do:{[e.parent.id]:[c.Ops.addChildren("-1",n)]},undo:{[e.parent.id]:[c.Ops.removeChildren(n.map(e=>e._id))]}};m.mergePatches(g,r),p=e.parent}}else if(u.forEach(e=>{const t=e.removeSelfPatches();m.mergePatches(g,t)}),r){const e={do:{[this.activeContainer.id]:[c.Ops.addChildren("-1",[r])]},undo:{[this.activeContainer.id]:[c.Ops.removeChildren([r._id])]}};m.mergePatches(g,e)}return m.sortPatches(g),this.update({[this.activeContainer.ownerArtboardID]:g}),p&&this.setActiveContainer(p),r?this.selectByIDs([r._id],!1):this.selectByIDs([],!1),!0},this.dividePath=()=>{if(0===this.selectedComponents.size)return!1;if(this.activeContainer.isSealed||!f.default.allowChildrenStructureChange(this.activeContainer))return!1;if(this.hasSelectLockedComps)return!1;const e=this.selectedComponentList.filter(e=>e.type===i.CCompoundPath);if(!e.length)return!1;const t=this.activeContainer.components,n=[];t.filter(e=>e.isConnector).forEach(t=>{const r=t,o=r.getStartCompID(),i=r.getEndCompID(),a=o&&e.some(e=>e.id===o),s=i&&e.some(e=>e.id===i);(a||s)&&n.push(r)});const r=[];e.forEach(e=>{const t=(e.toJSON().components||[]).map(e=>h.depthClone(e));t.forEach(t=>{t.position=new o.UIComponent(t,e).getPositionWithoutParent(),t.rotate=(t.rotate||0)+e.rotate}),r.push(...t)});const s=u.convertRemovedComponentsToAddOps(this.activeContainer,e),l=u.convertRemovedComponentsToAddOps(this.activeContainer,n),d={[this.activeContainer.ownerArtboardID]:{do:{[this.activeContainer.id]:[c.Ops.removeChildren(e.map(e=>e.id)),c.Ops.removeChildren(n.map(e=>e.id)),c.Ops.addChildren("-1",r)]},undo:{[this.activeContainer.id]:[...s,...l,c.Ops.removeChildren(r.map(e=>e._id))]}}};if(this.activeContainer.type===a.CCompoundPath){const n=h.depthClone(t.filter(e=>e.type===a.CCompoundPath||e.type===a.CPath).map(e=>e.toJSON()));e.forEach(e=>{const t=n.find(t=>t._id===e.id);h.removeItemFromArray(n,t)}),n.push(...r),this.activeContainer.refreshPatchesWithNewChildren(n,d[this.activeContainer.ownerArtboardID])}return m.sortPatches(d[this.activeContainer.ownerArtboardID]),this.update(d),this.selectByIDs(r.map(e=>e._id),!1),!0}}addComponents(e,t){const{artboardID:n,autoSelect:r,index:i}=t||{};this.resetCloneOffset();let a=this.activeContainer;if((a instanceof o.UIStackPanelComponent||a instanceof o.UIWrapPanelComponent||a instanceof o.UIGridPanelComponent)&&e.some(e=>"panel"!==e.type))return;if(this.restoreToOriginalState(),n&&this.activeArtboard.artboardID!==n){const e=[this.doc.mainArtboard,...this.doc.fragments].find(e=>e.artboardID===n);e&&(this.setActiveArtboard(e),a=e)}const s=a.select;let l=e;if(s&&"child"===s.target){const{maxCount:t}=s;if(-1!==t){let n=a.components.reduce((e,t)=>(t.toJSON().selected&&e++,e),0);l=e.map(e=>{const r=h.depthClone(e);return r.selected&&n++,n>=t&&(r.selected=!1),r})}}l.forEach(e=>p.updateCompDataBaseOnContainer(a,e));const{patches:c,newActiveGroup:u}=a.addComponents(l,i);u&&this.setActiveContainer(u),r&&(this.blockNoticeUpdate=!0),this.update(c),this.blockNoticeUpdate=!1,r&&(this.selectByIDs(e.map(e=>e._id),!1),this.notifyUpdateListener(),this.pushArtboardSelectedInfo())}appendChildren(e,t){const n=t.select;let r=e;if(n&&"child"===n.target){const{maxCount:o}=n;if(-1!==o){let n=t.components.reduce((e,t)=>(t.toJSON().selected&&e++,e),0);r=e.map(e=>{const t=h.depthClone(e);return t.selected&&n++,n>=o&&(t.selected=!1),t})}}const{patches:o}=t.addComponents(r);this.update(o)}removeSelectedComponent(){if(!this.hasSelectedComponents)return!1;if(this.hasSelectLockedComps)return!1;if(!f.default.allowChildrenStructureChange(this.activeContainer,"remove"))return!1;const e=this.activeContainer.removeComponents(this.selectedComponentList);return e.newActiveGroup&&this.setActiveContainer(e.newActiveGroup),this.selectByIDs([],!1),this.update(e.patches),!0}removeSealedChildComponents(e,t){const n=t.components.length,r=t.components[n-1].toJSON(),i=t.removeComponents(e),{patches:a}=i,s=this.activeArtboard.artboardID,l=t.id,c=[],u=t.select;if(n-e.length==0){const e=h.depthClone(r);(e=>{if("child"===u.target&&u.maxCount>0){e.selected=!0;const{states:t}=e;t?t.checked||(t.checked={enabled:!0,properties:{}}):e.states={checked:{enabled:!0,properties:{}}}}})(e);const n=p.resetID([e]);let i;if(p.resetInteractionTargetID([e],n),p.resetValueMap([e],n),t instanceof o.UIListLayoutSealedComponent)i=t.addComponentsWhenContainerEmpty([e]);else{const{patches:n}=t.addComponents([e]);i=n}a[s].do[l].push(...i[s].do[l]),a[s].undo[l].push(...i[s].undo[l]),c.push(e._id)}else if("child"===u.target&&u.maxCount>0){if(0===t.components.filter(t=>!e.includes(t)&&t.selected).length){let n=t.components.indexOf(e[0]),r=t.components.indexOf(e[e.length-1]),o=n;if(n>r&&(n=r,r=o),o=n-1,o<0&&(o=r+1),o>=t.components.length)for(;o>n;o<r){const n=t.components[o];if(!e.includes(n))break}if(o>=0&&o<t.components.length){const e=t.components[o];if(e){const t=e.modifyGeneralProperties("selected",!0);m.mergePatches(a[this.activeArtboard.artboardID],t)}}}}this.update(a),t===this.activeContainer&&(c.length?this.selectByIDs(c,!1):this.clearSelected())}group(){if(0===this.selectedComponents.size)return!1;if(this.activeContainer.isSealed||!f.default.allowChildrenStructureChange(this.activeContainer))return!1;if(this.hasSelectLockedComps)return!1;if(this.activeContainer.type===i.CCompoundPath)return!1;const e=[],t=this.activeContainer.components,n=this.activeContainer.components.filter(e=>!this.selectedComponents.has(e)),r=this.selectedComponentList.filter(e=>!(e.isConnector&&e.isAloneLineAfterDelete(n.map(e=>e.id))));if(1===r.length)return!1;n.filter(e=>e.isConnector).forEach(t=>{const n=t,o=n.getStartCompID(),i=n.getEndCompID(),a=o&&r.some(e=>e.id===o),s=i&&r.some(e=>e.id===i);a&&r.push(t),!o&&s&&e.push(n)});const o=s.getViewBoundsOfComponents(r.filter(e=>!e.isConnector));if(!o)return!1;r.sort((e,n)=>t.indexOf(e)-t.indexOf(n));const a=this.activeContainer,d=l.makeGroup(o,r.map(e=>{if(e.isConnector){return e.resetConnectPointWhenGroup(o,r.map(e=>e.id))}e.resetCenterAnchorWhenGroup(r);const t=e.resetPositionWhenGroup(o);return t._currentState=void 0,t})),h=r.reduce((e,t)=>Math.max(e,this.activeContainer.components.indexOf(t)),-1),p=this.activeContainer.components.slice(0,h).filter(e=>!r.find(t=>t.id===e.id)).length,m=u.convertRemovedComponentsToAddOps(a,r),g=u.convertRemovedComponentsToAddOps(a,e),y=v.updateConnectByDiff(this.activeContainer,this.selectedComponentList,{offsetX:0-o.left,offsetY:0-o.top},!0),b={[this.activeContainer.ownerArtboardID]:{do:Object.assign({[a.id]:[c.Ops.removeChildren(r.map(e=>e.id)),c.Ops.removeChildren(e.map(e=>e.id)),c.Ops.addChildren(""+p,[d])]},y.do),undo:Object.assign({[a.id]:[c.Ops.removeChildren([d._id]),...m,...g]},y.undo)}};return this.update(b),this.selectByIDs([d._id],!1),!0}doUnGroup(e){const t=e.parent,n=t.components.findIndex(t=>t===e),i=e.rotate;let s=e;for(;s instanceof o.UIComponent&&!s.isArtboard;)s=s.parent;const l=e.components.map(e=>{if(e.type===a.CLine){const t=r.cloneDeep(e.toJSON());return this.resetInfoWhenCompIsLine(e,t),t}{if(e.isConnector){return e.resetConnectPointWhenUnGroup()}const t=e.resetPositionWhenUnGroup();return t.rotate=e.rotate+i||0,t}}),u=l.map(e=>{const{_id:t,position:n,size:r,rotate:o}=e;return{id:t,type:g.ComponentChangeType.Add,position:n,size:r,rotate:o||0}});u.push({id:e.id,type:g.ComponentChangeType.Removed,position:e.position,size:e.size,rotate:e.rotate||0});const d=[],h=[];t.components.forEach((t,n)=>{t.isConnector&&t.isAloneLineAfterDelete([e.id])&&(d.push({index:n,comp:t.toJSON()}),h.push(t.id))});const p={do:{[t.id]:[c.Ops.removeChildren([e.id,...h]),c.Ops.addChildren(""+n,l)]},undo:{[t.id]:[c.Ops.removeChildren(l.map(e=>e._id)),c.Ops.addChildren(""+n,[e.toJSON()]),...d.map(e=>c.Ops.addChildren(""+e.index,[e.comp]))]}};if(!t.isArtboard){const e=this.activeContainer.getPositionPatchesOfChildrenChanged(u,!0);m.coverPatches(p,e.patches)}return{patches:p,ids:l.map(e=>e._id)}}unGroup(){if(!this.hasOnlyOneSelectedComponents)return!1;const e=this.firstSelectedComponent;if(!e)return!1;if(!e.isGroup)return!1;if(e.locked)return!1;if(!f.default.allowChildrenStructureChange(this.activeContainer))return!1;if(this.activeContainer.type===i.CCompoundPath)return!1;const t=e;if(!t.parent)return!1;const{patches:n,ids:r}=this.doUnGroup(t),o={[this.activeContainer.ownerArtboardID]:n};return this.update(o),this.selectByIDs(r,!1),!0}unGroupMore(){if(!this.hasSelect()||this.hasSelectLockedComps)return;const e=this.selectedComponentList;if(1===e.length)return void this.unGroup();const t=[],n=[];if(e.forEach(e=>{e instanceof o.UIGroupComponent?n.push(e):t.push(e)}),!n.length)return;const r=t.map(e=>e.id),i={do:{},undo:{}};n.reverse().forEach(e=>{const{patches:{do:t,undo:n},ids:o}=this.doUnGroup(e);Object.keys(t).forEach(e=>{i.do[e]?i.do[e].push(...t[e]):i.do[e]=[...t[e]]}),Object.keys(n).forEach(e=>{i.undo[e]?i.undo[e].push(...n[e]):i.undo[e]=[...n[e]]}),r.push(...o)}),this.updateSingleArtboard(this.activeArtboard.artboardID,i),this.selectByIDs(r,!1)}get isSelectCompoundPath(){var e;return 1===this.selectedComponents.size&&!this.hasSelectLockedComps&&(null===(e=this.firstSelectedComponent)||void 0===e?void 0:e.type)===a.CCompoundPath}get isOnlySelectCompoundPath(){return!!this.selectedComponentList.length&&this.selectedComponentList.every(e=>e.type===a.CCompoundPath)&&!this.hasSelectLockedComps}get couldConvertToPath(){if(this.selectedComponents.size<1)return!1;if(this.activeContainer.isSealed||!f.default.allowChildrenStructureChange(this.activeContainer))return!1;if(this.hasSelectLockedComps)return!1;const e=this.selectedComponentList.every(e=>!!f.default.allowPathEditor(e)||e.type===a.CCompoundPath&&1===e.value.length),t=this.selectedComponentList.some(e=>f.default.allowPathEditor(e)&&e.rotate),n=this.selectedComponentList.some(e=>e.type===a.CCompoundPath&&1===e.value.length);return e&&(t||n)}get couldCompoundPath(){if(this.hasSelectLockedComps)return!1;const e=this.selectedComponentList.filter(e=>{var t;return"hot-area"!==(null===(t=e.lib)||void 0===t?void 0:t.type)&&[a.CPath,a.CCompoundPath].includes(e.type)}).length;return e>1&&e===this.selectedComponentList.length}refreshSelectedComponents(){const e=this.selectedComponentList.map(e=>e.id);this.selectedComponents.clear(),e.forEach(e=>{const t=this.activeContainer.components.find(t=>t.id===e);t&&this.selectedComponents.add(t)})}changeZOrder(e){if(this.hasSelectLockedComps)return;const t=[...this.selectedComponents].map(e=>e.id),{patches:n,newContainer:r}=this.activeContainer.doChangeZOrder(t,e);n&&(this.selectedComponentList.forEach(e=>{e.toJSON().v=e.toJSON().v+Math.round(100*Math.random())}),r&&this.setActiveContainer(r),this.update(n))}moveChildOrder(e,t,n){if(this.hasSelectLockedComps)return;const r=n.moveChildOrder(e,t);if(n instanceof o.UIContentPanelComponent){const o=n.moveValue(e,t);o&&Object.keys(o.do).forEach(e=>{r.do[e]?(r.do[e].push(...o.do[e]),r.undo[e].push(...o.undo[e])):(r.do[e]=o.do[e],r.undo[e]=o.undo[e])})}this.updateSingleArtboard(this.activeArtboard.artboardID,r)}get isSelectTable(){return 1===this.selectedComponents.size&&!this.hasSelectLockedComps&&Array.from(this.selectedComponents)[0].type===i.CTable}get selectedTable(){return this.isSelectTable?this.selectedComponents.values().next().value:void 0}resetInfoWhenCompIsLine(e,t){var n;if(e.type!==a.CLine)return;const r=e.getBoxPointsInArtboard(!0),o=C.getAllResizePoints(r),i=C.getDragPoints(o,e.selectFrameType),{minX:s,minY:l}=g.getMinMaxXY(i);t.position=p.tansPointInArtBoardToGroup([{x:s,y:l}],null===(n=e.parent)||void 0===n?void 0:n.parent)[0];const c=P.getBoundsWithPoints(i),{leftTop:u,leftBottom:d,rightBottom:f,rightTop:m}=function(e){const{width:t,height:n}=e;return{leftTop:{x:0,y:0},rightTop:{x:t,y:0},rightBottom:{x:t,y:n},leftBottom:{x:0,y:n}}}({width:c.width,height:c.height}),v=t.value,{startPoint:y,endPoint:b}=v,w=h.sameNumber(y.x,0),_=h.sameNumber(y.y,0),x=w&&_,S=y.x===b.x,k=(((e.parent.rotate||0)+36e5)%360+C.getAngleOfLine(y,b))%360;x&&!S?k<90||360===k?(t.value.startPoint=u,t.value.endPoint=f):k>=90&&k<180?(t.value.startPoint=m,t.value.endPoint=d):k>=180&&k<270?(t.value.startPoint=f,t.value.endPoint=u):k>=270&&k<360&&(t.value.startPoint=d,t.value.endPoint=m):k<90||360===k?(t.value.startPoint=f,t.value.endPoint=u):k>=90&&k<180?(t.value.startPoint=d,t.value.endPoint=m):k>=180&&k<270?(t.value.startPoint=u,t.value.endPoint=f):k>=270&&k<360&&(t.value.startPoint=m,t.value.endPoint=d),t.rotate=0,t.size.width=c.width,t.size.height=c.height}}t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1398),o=n(30),i=n(24);class a extends r.default{addState(e,t){if(!this.hasOnlyOneSelectedComponents||this.hasSelectLockedComps)return;const n=this.firstSelectedComponent,r=n.addState(e,t);if(r){const t={do:{[n.id]:r.do},undo:{[n.id]:r.undo}};this.updateSingleArtboard(this.activeArtboard.artboardID,t),this.switchState([{comp:n,stateID:e}])}}removeState(e,t){if(!this.hasOnlyOneSelectedComponents||this.hasSelectLockedComps)return;const n=this.firstSelectedComponent;let r;if(r=n.removeState(e),r){const e={do:{[n.id]:r.do},undo:{[n.id]:r.undo}};this.switchState([{comp:n,stateID:t}]),this.updateSingleArtboard(this.activeArtboard.artboardID,e)}}restoreSelectedCompState(){if(!this.doc.artboards.find(e=>e._id===this.activeArtboard.artboardID))return;const e=this.selectedComponentList.map(e=>{let t=void 0;return e.selected?t=i.PredefinedStates.checked:e.disabled&&(t=i.PredefinedStates.disabled),{comp:e,stateID:t}});this.switchState(e)}switchState(e){if(!e.length)return;const t=e.reduce((e,t)=>{const{comp:n,stateID:r}=t,o=n.switchState(r);return Object.assign(Object.assign({},e),{[n.id]:o})},{});this.patch({[this.activeArtboard.artboardID]:t})}get currentStateID(){const e=this.firstSelectedComponent;return e&&e.currentStateID||""}modifyStateName(e,t){if(this.hasOnlyOneSelectedComponents&&!this.hasSelectLockedComps){const n=this.firstSelectedComponent,r=n.modifyStateName(e,t);this.updateSingleArtboard(this.activeArtboard.artboardID,{do:{[n.id]:r.do},undo:{[n.id]:r.undo}})}}changeStateEnabled(e,t){const n=this.selectedCompsExcludeConnector.reduce((n,r)=>{const o=r.changeStateEnabled(e,t);return(null==o?void 0:o.do.length)&&(n.do[r.id]=o.do),(null==o?void 0:o.undo.length)&&(n.undo[r.id]=o.undo),n},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,n)}cloneState(e,t){if(!this.hasOnlyOneSelectedComponents||this.hasSelectLockedComps)return;const n=this.firstSelectedComponent,r=t||o.getNewID(),i=n.cloneState(e,r);this.updateSingleArtboard(this.activeArtboard.artboardID,{do:{[n.id]:i.do},undo:{[n.id]:i.undo}}),this.switchState([{comp:n,stateID:r}])}resetDefaultState(e){const t=this.selectedCompsExcludeConnector.reduce((t,n)=>{const r=n.setDefaultState(e);return r.do.length&&(t.do[n.id]=r.do,t.undo[n.id]=r.undo),t},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,t)}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(131),o=n(7),i=n(18),a=n(220),s=n(17),l=n(1399),c=n(6),u=n(107),d=n(12),h=n(30),p=n(8),f=n(34),m=n(35),g=n(158),v=n(48),y=n(278),b=n(412),w=n(104),C=n(55),_=n(43),x=n(4),S=n(23),k=n(116),P=n(62),T=n(280),E=n(29),O=n(225),M=n(95);class A extends l.default{constructor(e,t,n,r){super(e,t,n,r),this.selectedTextCompAutoSize=()=>{if(this.hasSelectLockedComps)return;const e=this.selectedTextComp;if(!e.length)return;const t=e.reduce((e,t)=>{const{id:n,autoSize:r}=t,o=(new k.ComponentPatchesClass).getAttrChangePatches(n,"./autoSize",{oldVal:r,newVal:!r});return e.coverPatches((new P.ArtboardPatchesClass).getPatchesByCompChange(n,o)),e},new P.ArtboardPatchesClass),n=e.reduce((e,t)=>(!t.autoSize&&e.coverPatches(t.autoTextSize()),e),new P.ArtboardPatchesClass);this.updateSingleArtboard(e[0].ownerArtboardID,t.coverPatches(n))},this.refreshParent=e=>{e.parent&&(e.parent instanceof s.UIStackPanelComponent||e.parent instanceof s.UIWrapPanelComponent)&&e.parent.refreshComponents();const t=e.nearestSealedComponent;t&&(t instanceof s.UIStackPanelComponent||t instanceof s.UIWrapPanelComponent)&&t.refreshComponents()}}selectByRangeBounds(e,t,n=!1,r){var o;this.resetCloneOffset(),t||this.clearSelected();const{showHiddenArea:i=!0}=null!==(o=null==r?void 0:r.generalSettings)&&void 0!==o?o:{};this.activeContainer.components.forEach(t=>{const r=!i&&t.hidden;this.isSelectedByOthers(t.id)||t.locked||r||t.intersectBounds(e,"artboard",!n)&&this.selectedComponents.add(t)}),this.pushArtboardSelectedInfo(),this.notifyUpdateListener()}hasSelect(){return this.selectedComponents.size>0}restoreToOriginalState(){const e=this.selectedComponentList;if(e.length){const t=e.reduce((e,t)=>{if(t.toJSON()._currentState){let n=void 0;return t.disabled?n="disabled":t.selected&&(n="checked"),Object.assign(Object.assign({},e),{[t.id]:t.switchState(n)})}return e},{});Object.keys(t).length&&this.patch({[this.activeArtboard.artboardID]:t})}}changeLocked(e){const t=this.selectedComponentList;if(t.length){const n=t.filter(t=>t.locked!==e&&!t.isConnector);if(n){const t={do:{},undo:{}};n.reduce((t,n)=>{const r=n.changeLocked(e);return t.do[n.id]=r.do,t.undo[n.id]=r.undo,t},t),e&&n.length>1&&this.clearSelected(),this.updateSingleArtboard(this.activeArtboard.artboardID,t)}}}lockComp(e,t,n,r=!1){if(t.length){const o=t.filter(e=>!e.isConnector);o&&o.reduce((t,o)=>{if(!!o.locked!==e){const n=o.changeLocked(e);t.do[o.id]=n.do,t.undo[o.id]=n.undo}return o.isContainer&&r&&!o.isSealed&&!o.isCompoundPath&&o.components.length&&this.lockComp(e,o.components,n,r),t},n)}}lockAll(e){const t=this.activeArtboard.components,n={do:{},undo:{}};this.lockComp(e,t,n,!0),this.updateSingleArtboard(this.activeArtboard.artboardID,n)}select(e,t){if(r.ok(e.length>0,"必须要有选中的组件,如果需要清空,请使用 `clearSelected` 方法。"),r.ok(e.every(t=>t.parent===e[0].parent),"选中的组件必须父全部一样。"),this.restoreToOriginalState(),t||this.selectedComponents.clear(),this.hasSelectedComponents){if(this.activeContainer!==e[0].parent)return}else this.activeContainer!==e[0].parent&&(r.ok(e[0].parent,"被选中组件的父一定存在。"),this.activeContainer=e[0].parent,this.activeContainer.isArtboard&&this.setActiveArtboard(this.activeContainer));const n=e.filter(e=>!e.locked);0===n.length?e.forEach(e=>this.selectedComponents.add(e)):n.forEach(e=>this.selectedComponents.add(e)),this.pushArtboardSelectedInfo(),this.notifyUpdateListener()}selectAll(e){this.clearSelected();const t=this.activeContainer.components.filter(t=>!t.locked&&!this.isSelectedByOthers(t.id)&&(!t.hidden||t.hidden&&!e));t.length&&this.select(t,!1)}unSelect(e){e.length&&(e.forEach(e=>this.selectedComponents.delete(e)),this.pushArtboardSelectedInfo(),this.notifyUpdateListener())}clearSelected(){this.selectedComponents.size&&(this.restoreToOriginalState(),this.selectedComponents.clear(),this.pushArtboardSelectedInfo(),this.notifyUpdateListener())}doSetProperty(e,t,n,r){return e.reduce((e,r)=>{const{do:o,undo:i}=r.setProperty(t,p.depthClone(n));return Object.keys(o).forEach(t=>{e.do[t]=o[t],e.undo[t]=i[t]}),e},{do:{},undo:{}})}doSetValue(e,t,n){const r=1===e.length;return e.reduce((e,o)=>{var i;const a=o.libData;let s;return s=(null===(i=null==a?void 0:a.value)||void 0===i?void 0:i.setValue)?a.value.setValue(o,t):o.setValue(t,r?n:void 0),s&&Object.keys(s.do).forEach(t=>{e.do[t]=s.do[t],e.undo[t]=s.undo[t]}),e},{do:{},undo:{}})}doSetText(e,t){return e.reduce((e,n)=>{if(n.text!==t){const r=n.setText(t);e.do[n.id]=r.do[n.id],e.undo[n.id]=r.undo[n.id]}return e},{do:{},undo:{}})}setProperty(e,t,n){if(!this.hasSelect()||this.hasSelectLockedComps)return;let r=this.firstSelectedComponent.ownerArtboardID;const o=this.selectedComponentList,i=o.map(e=>e.id),a=o.filter(e=>e.type===c.CPath),s=e===T.PolygonPropertyName&&0!==a.length,l=this.doSetProperty(o,e,t,n);this.updateSingleArtboard(r,l),s&&this.selectByIDs(i,!1)}setSubProperty(e,t){if(!this.hasSelect()||this.hasSelectLockedComps)return;const n=this.selectedComponentList,r=e.replace(/[\\|\/]/g,".").split("."),i=r[0];r.shift();const a=r.join("."),s={do:{},undo:{}};n.forEach(e=>{let n=e.properties[i];if(n){const r=o.cloneDeep(n);o.update(r,a,()=>t),r.disabled=!1;const l=e.setProperty(i,r);m.coverPatches(s,l)}}),this.updateSingleArtboard(n[0].ownerArtboardID,s)}setCompTextValue(e,t,n){let r=void 0;c.isTextType(e.type)?e.value!==t&&(r=this.doSetValue([e],t,n)):e.text!==t&&(r=this.doSetText([e],t)),r&&(this.updateSingleArtboard(e.ownerArtboardID,r),[c.CText,c.CParagraph].includes(e.type)&&this.refreshParent(e))}setValue(e,t,n){const r=n||[...this.selectedComponents].filter(t=>t.type===e);if(!r||!r.length||this.hasSelectLockedComps)return;const o=this.doSetValue(r,t),i=r[0].ownerArtboardID;this.updateSingleArtboard(i,o),r.forEach(e=>{[c.CText,c.CParagraph].includes(e.type)&&this.refreshParent(e)})}setText(e){if(this.hasSelectLockedComps)return;const t=this.doSetText(this.selectedComponentList,e);this.updateSingleArtboard(this.activeArtboard.artboardID,t)}setRemark(e){const{selectedComponentList:t,activeArtboard:n}=this,r=t.reduce((t,n)=>{const r=n.setRemark(e);return t.do[n.id]=r.do[n.id],t.undo[n.id]=r.undo[n.id],t},{do:{},undo:{}});this.updateSingleArtboard(n.artboardID,r)}autoFillText(){if(this.hasSelectLockedComps)return;const e=this.selectedComponentList.filter(e=>a.default.allowTextEditor(e));if(e.length){const t={do:{},undo:{}},n=e.reduce((e,n)=>{let r,o=i.getParagraph();if([c.CText,c.CTextArea,c.CInput,c.CParagraph].includes(n.type)){let e=void 0;if(n.type===c.CText){const{properties:r,size:i}=n,{multiText:a,textFormat:s,textStyle:l}=r;o=n.resetValueWithNewFontStyle(o,s||Object.assign(Object.assign({},l),a||{})),e={wrap:!0,size:Object.assign({},i),autoFill:!0};const c=(null==s?void 0:s.wrap)||(null==a?void 0:a.wrap),u=(null==s?void 0:s.vertical)||(null==a?void 0:a.vertical);if(!c){const r=s?w.TextFormatExPropertyName:y.MultiTextPropertyName,o=s||a,l=n.setProperty(r,Object.assign(Object.assign({},o||{disabled:!1}),{wrap:!0}));Object.keys(l.do).forEach(e=>{t.do[e]?(t.do[e].push(...l.do[e]),t.undo[e].push(...l.undo[e])):(t.do[e]=l.do[e],t.undo[e]=l.undo[e])}),this.resetOptionSize(u,e,i)}}r=n.setValue(o,e)}else r=n.setText(o);return r.do[n.id].push({op:"replace",path:"./autoSize",value:!1}),r.undo[n.id].push({op:"replace",path:"./autoSize",value:n.autoSize}),Object.keys(r.do).forEach(t=>{e.do[t]?(e.do[t].push(...r.do[t]),e.undo[t].push(...r.undo[t])):(e.do[t]=r.do[t],e.undo[t]=r.undo[t])}),m.coverPatches(e,this.getAutoFillTextSizePatches(n)),e},t);this.updateSingleArtboard(this.activeArtboard.artboardID,n)}}resetOptionSize(e,t,n){e?t.size.height=Math.max(n.height,2300):t.size.width=Math.max(n.width,300)}getAutoFillTextSizePatches(e){const t={do:{},undo:{}};return(t.do[e.id]||(t.do[e.id]=[])).push(d.Ops.replace("./autoSize",!1)),(t.undo[e.id]||(t.undo[e.id]=[])).push(d.Ops.replace("./autoSize,",e.autoSize)),t}setComponentValue(e,t,n){const r=this.doSetValue([e],t,n);this.updateSingleArtboard(e.ownerArtboardID,r),[c.CText,c.CParagraph].includes(e.type)&&this.refreshParent(e)}doSetContentPanelRef(e){if(this.hasOnlyOneSelectedComponents){const t=this.firstSelectedComponent;if(t&&t.type===c.CContentPanel)return this.setContentPanelRefValue(e),!0}return!1}setContentPanelRefValue(e){if(this.hasOnlyOneSelectedComponents&&!this.hasSelectLockedComps){const t=this.firstSelectedComponent;if(t){let n;if(n=t.value?t.value:[],-1===n.indexOf(e)){n.push(e);const{patches:r}=t.addComponents([u.makeCanvas(h.getNewID(),{components:[],properties:{container:{showScroll:!0,scroll:!0,disabled:!1,hidden:!0}},value:e,selected:1===n.length})]),o=t.setValue(n);Object.keys(o.do).forEach(e=>{r[t.ownerArtboardID].do[e]?(r[t.ownerArtboardID].do[e].push(...o.do[e]),r[t.ownerArtboardID].undo[e].push(...o.undo[e])):(r[t.ownerArtboardID].do[e]=o.do[e],r[t.ownerArtboardID].undo[e]=o.undo[e])}),this.update(r)}}}}removeContentPanelItem(e,t){if(this.hasSelectLockedComps)return;const n=e.value,r=e.components,o=[],i=[];r.forEach(e=>{if(e.value===t){const r=n.indexOf(t);n.splice(r,1),o.push(e)}else i.push(e)});const{patches:a}=e.removeComponents(o),s=e.ownerArtboardID,l=e.id,c=e.setValue([...n]);if(a[s].do[l].push(...c.do[l]),a[s].undo[l].push(...c.undo[l]),i.length){let e=i.find(e=>e.selected);e||(e=i[0]),a[s].do[e.id]=[d.Ops.replace("/selected",!0)],a[s].undo[e.id]=[d.Ops.replace("/selected",!1)]}this.update(a)}setImageCompSize(e,t){if(this.hasSelectLockedComps)return;const n=[...this.selectedComponents];if(!n||!n.length)return;const r=n.reduce((n,r)=>{let o;if(o=r.isRefValue()?r.nearestSealedComponent:r,!o)return n;const i=o.setValue(e);if(t){const e=o.setSize(Object.assign(Object.assign({},t),{lockedRatio:o.size.lockedRatio}));i.do[r.id].push(...e.do),i.undo[r.id].push(...e.undo)}return{do:Object.assign(Object.assign({},n.do),{[o.id]:i.do[o.id]}),undo:Object.assign(Object.assign({},n.undo),{[o.id]:i.undo[o.id]})}},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,r)}setSnapshotCompInfo(e,t){const n=e.compID?[this.activeContainer.components.find(t=>t.id===e.compID)]:[],r=[...this.selectedComponents],o=(r.length>0?r:n).reduce((n,r)=>{let o;if(o=r.isRefValue()?r.nearestSealedComponent:r,!o)return n;const i=o.setValue(e);if(t){const e=o.setSize(Object.assign(Object.assign({},t),{lockedRatio:o.size.lockedRatio}));i.do[r.id].push(...e.do),i.undo[r.id].push(...e.undo)}return{do:Object.assign(Object.assign({},n.do),{[o.id]:i.do[o.id]}),undo:Object.assign(Object.assign({},n.undo),{[o.id]:i.undo[o.id]})}},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,o)}selectedChange(e){const t=[...this.selectedComponentList].filter(e=>e.select&&"self"===e.select.target);if(!t.length)return;const n=t.reduce((t,n)=>{if(n.selected===e)return t;const r=n.changeSelfSelected(e);return m.coverPatches(t,r),t},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,n)}setImage(e,t){const n={do:{},undo:{}},r=this.firstSelectedComponent,{id:o,size:{lockedRatio:i},properties:{image:a}}=r;m.coverPatches(n,r.setValue(e)),r.size.lockedRatio=!1;const s=this.activeContainer.resizeChildren([r],{offset:t},{shift:!1});m.coverPatches(n,s),i&&n.do[o].push(d.Ops.replace("./size/lockedRatio",i)),(null==a?void 0:a.clipBounds)&&(n.do[o].push(d.Ops.replace("./properties/image/clipBounds",void 0)),n.undo[o].push(d.Ops.replace("./properties/image/clipBounds",a.clipBounds))),this.updateSingleArtboard(this.activeArtboard.artboardID,n)}setGeneralProperties(e,t){if("name"!==e&&this.hasSelectLockedComps)return;const n=[...this.selectedComponentList].reduce((n,r)=>{if("size"===e&&r.autoSize)return n;if(!b.getSupportStates(r).find(t=>t.type===e)&&["disabled","selected"].includes(e))return n;const o=r.modifyGeneralProperties(e,t);return Object.keys(o.do).forEach(e=>{n.do[e]=o.do[e],n.undo[e]=o.undo[e]}),n},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,n)}setComponentGeneralProperties(e,t,n){if(e.locked)return;const r=this.getChangeCompGeneralPropertiesPatches(e,t,n);this.updateSingleArtboard(e.ownerArtboardID,r)}getChangeCompGeneralPropertiesPatches(e,t,n){const r=e.modifyGeneralProperties(t,n),o=e.nearestSealedComponent;if("selected"===t&&o&&o instanceof s.UISelectPanelComponent){const t=o.switchSelectState(e,!!n);m.coverPatches(r,t)}return r}applyPathData(e,t,n,r){if(this.hasOnlyOneSelectedComponents){const o=this.firstSelectedComponent;if(c.isBasicComp(o.type)){let i={do:{},undo:{}};const a=this.activeContainer,l=this.activeArtboard.artboardID,u=[];if(o.type===c.CPath){const r=o.setValue(e);i=o.parent.getPositionPatchesOfChildrenChanged([{id:o.id,type:f.ComponentChangeType.Edit,size:{width:t.width,height:t.height},position:n,rotate:o.rotate,value:e}],!0).patches,m.coverPatches(i,r)}else{const r=_.makeComponent("basic",c.CPath,"");r.name=o.name||x.default("resource.components.path"),r.value=e,r.position=n,r.text=o.text,r.rotate=o.rotate,r.size={width:t.width,height:t.height},r.remark=o.remark,r.opacity=o.opacity,r.flip=o.flip;const{fill:d,shadow:h,stroke:p,padding:f,textFormat:g,line:v}=o.properties;if(h&&(r.properties.shadow=h),p&&(r.properties.stroke=p),f&&(r.properties.padding=f),g&&(r.properties.textFormat=g),d&&(r.properties.fill=d),v&&(r.properties.line=v),o.type===c.CLine&&r.properties.fill&&(r.properties.fill.disabled=!0),r.properties.stroke&&(r.properties.stroke.position=(null==p?void 0:p.position)||S.StrokePosition.inner),a instanceof s.UIGroupComponent||a instanceof s.UICompoundPathComponent)i=a.replaceComponents([r],[o]).patches[l];else{const e=a.components.findIndex(e=>e.id===o.id),t=a.addComponents([r],e).patches[l];m.coverPatches(i,t);const n=a.removeComponents([o]).patches[l];m.coverPatches(i,n)}u.push(r._id)}if(r)if(a.type===c.CCompoundPath){const s=o.setValue(e);i=a.getPatchesOfChildrenChangedAndAdd([{id:o.id,type:f.ComponentChangeType.Edit,size:{width:t.width,height:t.height},position:n,rotate:o.rotate,value:e}],[r]).patches,m.coverPatches(i,s)}else{const{patches:e}=a.addComponents([r]),t=e[l];m.coverPatches(i,t)}this.updateSingleArtboard(o.ownerArtboardID,i),u.length&&this.selectByIDs(u,!1)}}}flipComponent(e,t){if(!this.selectedComponentList.length)return;const n=this.selectedComponentList,r={do:{},undo:{}},o=n.map(e=>e.id),i=g.getPatchesWhenFlip(n,e,t);if(m.coverPatches(r,i),m.coverPatches(r,E.getModifyFlipAttrPatches(n,e,t)),this.activeContainer.type===c.CCompoundPath){const e=f.extractDynamicInfoFromPatch(i),t=p.depthClone(this.activeContainer.components.map(e=>e.toJSON()));Object.keys(e).forEach(n=>{const r=t.find(e=>e._id===n);r&&(r.position=e[n].position||r.position,r.size=e[n].size||r.size,r.value=e[n].value||r.value,r.rotate=e[n].rotate||r.rotate)});const{newActiveGroup:n,patches:o}=this.activeContainer.refreshPatchesWithNewChildren(t);n&&n.id!==this.activeContainer.id?(r.do=o.do,r.undo=o.undo,this.setActiveContainer(n)):m.mergePatches(r,o)}this.update({[this.activeArtboard.artboardID]:r}),this.selectByIDs(o,!1)}quickSetFontStyle(e){var t,n;const r=this.selectedComponentList.filter(e=>!!e.properties.textStyle||!!e.properties.textFormat);if(!r.length)return;const o=(null===(t=r[0].properties.textStyle)||void 0===t?void 0:t.fontStyle)||(null===(n=r[0].properties.textFormat)||void 0===n?void 0:n.fontStyle)||{},i=r.reduce((t,n)=>{var r;const{properties:i}=n;let a={do:{},undo:{}};const{textFormat:s,textStyle:l}=i,c=(null===(r=s||l)||void 0===r?void 0:r.fontStyle)||{};return c[e]=!o[e],a=s?n.setProperty(w.TextFormatExPropertyName,Object.assign(Object.assign({},s),{fontStyle:c})):n.setProperty(v.TextPropertyName,Object.assign(Object.assign({},l),{fontStyle:c})),Object.keys(a.do).forEach(e=>{t.do[e]?(t.do[e].push(...a.do[e]),t.undo[e].push(...a.undo[e])):(t.do[e]=a.do[e],t.undo[e]=a.undo[e])}),t},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,i)}quickSetFontSize(e){const t=this.selectedComponentList.filter(e=>!!e.properties.textStyle||!!e.properties.textFormat);if(!t.length)return;const n=t.reduce((t,n)=>{var r;const{properties:o}=n,{textStyle:i,textFormat:a}=o;let s=(null===(r=a||i)||void 0===r?void 0:r.fontSize)||C.DefaultFontSize;s="plus"===e?Math.min(300,s+1):Math.max(C.MinFontSize,s-1);let l={do:{},undo:{}};return l=a?n.setProperty(w.TextFormatExPropertyName,Object.assign(Object.assign({},a),{fontSize:s})):n.setProperty(v.TextPropertyName,Object.assign(Object.assign({},i),{fontSize:s})),Object.keys(l.do).forEach(e=>{t.do[e]?(t.do[e].push(...l.do[e]),t.undo[e].push(...l.undo[e])):(t.do[e]=l.do[e],t.undo[e]=l.undo[e])}),t},{do:{},undo:{}});this.updateSingleArtboard(this.activeArtboard.artboardID,n)}changingProperty(e,t){this.selectedComponentList.forEach(n=>n.changingProperty(e,t))}changeComponentsBounds(e){const t={do:{},undo:{}};if(e.forEach(e=>{const n=this.activeContainer.components.find(t=>t.id===e.id),{position:r,id:o}=n,i={x:e.movedBounds.left-e.bounds.left,y:e.movedBounds.top-e.bounds.top};if(!p.sameNumber(i.x,0)||!p.sameNumber(i.y,0)){const e={x:r.x+i.x,y:r.y+i.y};t.do[o]=[d.Ops.replace("./position",e)],t.undo[o]=[d.Ops.replace("./position",r)]}}),Object.keys(t.do).length)this.updateSingleArtboard(this.activeArtboard.artboardID,t);else{const t=e.map(e=>e.id);this.selectedComponentList.forEach(e=>{t.includes(e.id)&&++e.toJSON().v}),this.select(this.selectedComponentList,!1)}}convertToPanel(){if(!this.canConvertToPanel)return;const e=M.getViewBoundsOfComponents(this.selectedComponentList);if(!e)return;const{left:t,top:n,width:r,height:o}=e,i=p.depthClone(u.DefaultCanvasData);i.position={x:t,y:n},i.size={width:r,height:o};try{i.properties.stroke.disabled=!0,i.properties.fill.disabled=!0}catch(e){window.debug&&console.log("[convert to panel] ",e)}i.name=x.default("resource.components.canvasPanel")+O.sessionOptions.convertCanvasPanelCount,O.sessionOptions.convertCanvasPanelCount=O.sessionOptions.convertCanvasPanelCount+1,i.components=this.selectedComponentList.map(t=>t.resetPositionWhenGroup(e));const a=u.makeCanvas(h.getNewID(),i),s=this.selectedComponentList.map(e=>e.$data),l={do:{[this.activeContainer.id]:[d.Ops.removeChildren(s.map(e=>e._id)),d.Ops.addChildren("-1",[a])]},undo:{[this.activeContainer.id]:[d.Ops.removeChildren([a._id]),d.Ops.addChildren("-1",s)]}};this.updateSingleArtboard(this.activeArtboard.artboardID,l),this.selectByIDs([a._id],!1)}detachPanel(){if(!this.canDetachPanel)return;const{oldData:e,newData:t}=this.selectedComponentList.reduce((e,t)=>{const{type:n,$data:r,components:o}=t;if(n!==c.CCanvasPanel)return e;const i=o.map(e=>Object.assign(Object.assign({},e.$data),{position:e.getPositionWithoutParent(),rotate:e.rotateRelativeToArtboard}));return e.oldData.push(r),e.newData.push(...i),e},{oldData:[],newData:[]}),n={do:{[this.activeContainer.id]:[d.Ops.removeChildren(e.map(e=>e._id)),d.Ops.addChildren("-1",t)]},undo:{[this.activeContainer.id]:[d.Ops.removeChildren(t.map(e=>e._id)),d.Ops.addChildren("-1",e)]}};this.updateSingleArtboard(this.activeArtboard.artboardID,n),this.selectByIDs(t.map(e=>e._id),!1)}}t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1400),o=n(6);class i extends r.default{constructor(e,t,n,r){super(e,t,n,r),this.activeArtboard=e.mainArtboard}restoreSelectedCompState(){}setActiveArtboard(e){this.activeArtboard!==e&&(this.activeArtboard!==this.deletingArtboard?this.restoreSelectedCompState():this.deletingArtboard=void 0,this.activeArtboard=e,this.activeContainer=e,this.selectedComponents.clear(),this.notifyUpdateListener())}isActiveArtboard(e){return this.activeArtboard===e}setActiveContainer(e){var t;(t=e.type,[o.CContentPanel].includes(t))||(e.locked||(this.activeContainer.isActived=!1,this.activeArtboard.components.forEach(e=>{e.toJSON().v=e.toJSON().v+100*Math.random()}),e.isActived=!0,this.activeContainer!==e&&this.restoreSelectedCompState(),this.activeContainer=e,this.selectedComponents.clear(),this.notifyUpdateListener()))}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17),o=n(304),i=n(12),a=n(225),s=n(6),l=n(303),c=n(96),u=n(34),d=n(366),h=n(17);t.default=class{constructor(e,t,n,r){this._socketOffline=!1,this.updatedAt=Date.now(),this.selectedComponents=new Set,this.blockNoticeUpdate=!1,this._isExample=!1,this.undoStack=[],this.redoStack=[],this.othersSelectedComponents={},this._cloneOffset={x:6,y:6},this._presetCloneOffset={x:6,y:6},this.resetCloneOffset=e=>{this._cloneOffset=e?Object.assign({},e):Object.assign({},this._presetCloneOffset)},this.doc=e,this.appID=t,this.nodeID=n,this.session=r,this.activeContainer=this.doc.mainArtboard}get socketOffline(){return this._socketOffline}set socketOffline(e){this._socketOffline=e}get isExample(){return this._isExample}set isExample(e){this._isExample=e}get isDataCache(){return this.socketOffline||this.isExample}get editorModel(){return d.EditorModel.normal}get isSymbolEditor(){return this.editorModel===d.EditorModel.symbol}get isAdvancedEditor(){return this.editorModel===d.EditorModel.theme}get isNormalEditor(){return this.editorModel===d.EditorModel.normal}get isComponentEditor(){return this.editorModel===d.EditorModel.component}get isSnapshotEditor(){var e;return(null===(e=[...this.selectedComponents][0])||void 0===e?void 0:e.type)===s.CSnapshot}get canGroup(){if(this.activeContainer.isSealed)return!1;if(this.activeContainer.type===s.CCompoundPath)return!1;if(this.selectedComponents.size<=1)return!1;const e=this.selectedComponents.size;return!this.activeContainer.isGroup||e<this.activeContainer.components.length}get canUnGroup(){return this.isSelectedOneGroup}get canRotate(){if(this.isAdvancedEditor||this.isSnapshotEditor)return!1;const e=[...this.selectedComponents].filter(e=>e.canRotate),t=e.filter(e=>e.isContainer&&e.hasConnector());return!!e.length&&!t.length}get canMove(){const e=this.selectedComponentList;if(1===e.length&&!this.isAdvancedEditor)return{horizontal:!e[0].isLayoutCenterAtHorizontal,vertical:!e[0].isLayoutMiddleAtVertical};if(1===e.length&&this.isAdvancedEditor&&this.activeContainer instanceof h.UIFragment)return{horizontal:!0,vertical:!0};const t=this.isAdvancedEditor&&this.originContainer||void 0;return l.getCompMoveInfo(e,t)}get canFlip(){if(!this.hasSelectLockedComps&&this.hasOnlyOneSelectedComponents){const e=this.firstSelectedComponent;if(e)return e.canFlip}return!1}get canMakeSelectionGroup(){let e=this.selectedComponentList;if(!this.hasOnlyOneSelectedComponents)return!1;return!u.getCompAndItsChildren(e).some(e=>e.isSealed||e.isSymbol)&&this.firstSelectedComponent.canMakeSelectionGroup}getCurrentSession(){return this.session}get currentSessionID(){return this.session.id}get undoRedoStackMaxLength(){return 1e3}get selectedComponentList(){const e=Array.from(this.selectedComponents).filter(e=>e.parent===this.activeContainer);if(1===e.length&&e[0].type===s.CTable){const t=e[0];if(t.selectedComps.length)return[...t.selectedComps]}return[...e]}get selectedTextComp(){return this.selectedComponentList.filter(e=>e.type===s.CText)}get selectedCompsExcludeConnector(){return this.selectedComponentList.filter(e=>!e.isConnector)}get selectedRoundConnctor(){const e=this.selectedComponentList.map(e=>e.id),{innerConnectComps:t,roundConnectComps:n}=c.getInnerOrAroundConnect(this.activeContainer,e);return[...t,...n]}get selectedIDs(){return this.selectedComponentList.map(e=>e.id)}get hasSelectedComponents(){return this.selectedComponents.size>0}get hasOnlyOneSelectedComponents(){return 1===this.selectedComponents.size}get hasSelectLockedComps(){return this.selectedComponentList.filter(e=>e.locked).length>0}get hasExcludeConnectorComps(){return this.selectedCompsExcludeConnector.length>0}get firstSelectedComponent(){return 0===this.selectedComponentList.length?null:this.selectedComponentList[0]}get isSelectedOneGroup(){if(this.hasOnlyOneSelectedComponents){return this.firstSelectedComponent.isGroup}return!1}doApplyOperations(e){this.patch(e)}doParserPagePatchesToPageOperations(e,t){t.length===this.undoRedoStackMaxLength&&t.splice(0,1);const n=i.reversePagePatches(e);return t.push(n),i.extractPageOperationsFromPagePatches(e)}applyOperations(e,t){const n=this.doParserPagePatchesToPageOperations(e,t);this.doApplyOperations(n),o.pushArtboardPatches({appID:this.appID,nodeID:this.nodeID,sessionID:this.session.id,patches:n})}patch(e){this.doc.patchArtboard(e,()=>{this.doc.updateAppDataManagerArtboardsByOperations(),this.notifyUpdateListener()})}selectByIDs(e,t,n){t||this.selectedComponents.clear(),e.length>0&&this.activeContainer.components.forEach(t=>{!t.locked&&e.includes(t.id)&&this.selectedComponents.add(t)}),n&&this.notifyUpdateListener(),this.pushArtboardSelectedInfo()}pushArtboardSelectedInfo(){const e=[];if(this.isEditingRoot)this.selectedComponents.forEach(t=>{e.push(t.id)});else{let t=this.activeContainer;for(;t.parent!==this.doc.mainArtboard&&t.parent;)t=t.parent;e.push(t.id)}o.pushArtboardSelect({appID:this.appID,nodeID:this.nodeID,sessionID:this.session.id,ids:e})}get isEditingRoot(){return this.activeContainer.isArtboard}selectedByWho(e){const t=this.getComponentSelectedSessionID(e);if(!t)return"";const n=a.getCoopers().find(e=>e.id===t);return n&&this.session.userID===n.userID?"":n?n.name||n.id:""}getComponentSelectedSessionID(e){return Object.keys(this.othersSelectedComponents).find(t=>this.othersSelectedComponents[t].includes(e))||""}isSelectedByOthers(e){return""!==this.selectedByWho(e)}updateOtherSelectedComponents(e,t){e!==this.session.id&&(this.othersSelectedComponents[e]=t,this.notifyUpdateListener())}syncOtherSelectedComponents(e){Object.keys(this.othersSelectedComponents).forEach(e=>{this.othersSelectedComponents[e]=[]}),Object.keys(e).forEach(t=>{t!==this.session.id&&(this.othersSelectedComponents[t]=e[t])}),this.notifyUpdateListener()}updateSingleArtboard(e,t){this.update({[e]:t})}update(e){this.validatePatches(e)&&(this.applyOperations(e,this.undoStack),this.redoStack.length=0)}validatePatches(e){return Object.keys(e).forEach(t=>{Object.keys(e[t].do).length||delete e[t]}),Object.keys(e).length}addUpdateListener(e){this.updateListener=e}removeUpdateListener(){this.updateListener=void 0}notifyUpdateListener(){this.updatedAt=Date.now(),this.blockNoticeUpdate||this.updateListener&&this.updateListener()}set presetCloneOffset(e){this._presetCloneOffset=e||{x:6,y:6}}get cloneOffset(){return this._cloneOffset}get canDetachPanel(){return!(this.hasOnlyOneSelectedComponents&&this.firstSelectedComponent instanceof r.UIContainerComponent&&0===this.firstSelectedComponent.components.length)&&this.selectedComponentList.some(e=>e.type===s.CCanvasPanel&&!e.isSealed)}get canConvertToPanel(){return this.hasSelectedComponents&&!this.hasSelectLockedComps&&!this.isAdvancedEditor}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector=void 0;const r=n(374),o=n(8);class i{constructor(e,t){this._y=t.y-e.y,this._x=t.x-e.x}static subtractionOfVectors(e,t){return{x:e.x-t.x,y:e.y-t.y}}get x(){return this._x}get y(){return this._y}round(){return a({x:o.round(this._x),y:o.round(this._y)})}add(e){return a({x:this._x+e.x,y:this._y+e.y})}subtract(e){return a({x:this._x-e.x,y:this._y-e.y})}scale(e){return a({x:this._x*e,y:this._y*e})}}function a(e,t=r.Point({x:0,y:0})){return new i(t,e)}t.Vector=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatChild=t.getArtboardData=t.getCompAdvanceArtboardSize=t.modifyChildProperties=t.resetCompData=void 0;const r=n(32),o=n(4),i=n(6),a=n(43),s=n(34);function l(e){return{height:e.size.height+100,width:e.size.width+100}}t.resetCompData=function(e,t,n){const{width:r,height:o}=n,{position:{x:i,y:a}}=e,{size:{width:l,height:c}}=t;t.position={x:Math.max(0,Math.min(i,r-l)),y:Math.max(0,Math.min(a,o-c))},t.position=s.getNewPositionWhenCenter(t,t.position,t.size,{width:r,height:o},{isLayoutMiddleAtVertical:!0,isLayoutCenterAtHorizontal:!0}),t.selected=t.disabled=!1,t._currentState=void 0},t.modifyChildProperties=(e,t)=>{Object.keys(e).forEach(n=>{const r=e[n];if(r.ref){const o=r.ref.replace("@properties.",""),i=t[o];i&&(e[n]=Object.assign(Object.assign({},i),{name:void 0,ref:r.ref}))}})},t.getCompAdvanceArtboardSize=l,t.getArtboardData=function(e,t,n,s){const c=t.type===i.CSelect,u=s[0],d={color:{r:255,g:255,b:255,a:1},type:r.FillType.solid,disabled:!1},h=t.compType,p=[Object.assign(Object.assign({},e),{guides:{vertical:[],horizontal:[]},_id:t.id,name:a.getDefaultComponentName(t.type,t.lib),appID:h,size:l(u),type:"main",position:n.position,components:[u],background:d})];if(c){const[,t]=s;p.push(Object.assign(Object.assign({},e),{_id:t._id,name:o.default("resource.components.dropDown"),appID:h,size:l(t),type:t.alias||"drop-down",position:{x:n.position.x+p[0].size.width+100,y:n.position.y},background:d,components:[t]}))}return p},t.flatChild=(e,n,r)=>{var o;n.push({comp:e,parent:r}),null===(o=e.components)||void 0===o||o.forEach(r=>t.flatChild(r,n,e))}},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.getAllPrototypeApps=t.cloneAppInfo=t.unStarAppInfo=t.starAppInfo=t.clearAppFromRecycle=t.restoreApp=t.getRecycle=t.moveAppToAppSet=t.removeAppSet=t.removeApp=t.renameAppSet=t.addApp=t.addAppSet=t.getAllAppSet=void 0;const o=n(58);t.getAllAppSet=function(e){return o.get(`/app/allAppAndAppSet/${e}?needArchivedApp=true&source=all&needAppSet=true`)},t.addAppSet=function(e){return r(this,void 0,void 0,(function*(){return o.put("/app/appSet",e)}))},t.addApp=function(e){return r(this,void 0,void 0,(function*(){return o.put(o.idocBaseUrl+"/app",e)}))},t.renameAppSet=function(e,t){return r(this,void 0,void 0,(function*(){return o.patch("/app/"+e,{name:t})}))},t.removeApp=function(e){return r(this,void 0,void 0,(function*(){return o.axDelete("/app/"+e)}))},t.removeAppSet=function(e,t){return r(this,void 0,void 0,(function*(){return o.axDelete(`/app/appSet/dismiss/${e}/${t}`)}))},t.moveAppToAppSet=function(e,t,n){return r(this,void 0,void 0,(function*(){return o.patch(`/app/appSet/${e}/${t}/add/${n}`,null)}))},t.getRecycle=function(e){return r(this,void 0,void 0,(function*(){return o.get("/team/recycle/"+e)}))},t.restoreApp=function(e){return r(this,void 0,void 0,(function*(){return o.patch("/app/restore/"+e,null)}))},t.clearAppFromRecycle=function(e){return r(this,void 0,void 0,(function*(){return o.axDelete("/app/thorough/"+e)}))},t.starAppInfo=function(e){return r(this,void 0,void 0,(function*(){return o.put("/appCollection/"+e,null)}))},t.unStarAppInfo=function(e){return r(this,void 0,void 0,(function*(){return o.axDelete("/appCollection/"+e)}))},t.cloneAppInfo=function(e){return r(this,void 0,void 0,(function*(){return o.put("/app/cloneApp",{appID:e})}))},t.getAllPrototypeApps=function(e){return o.get(`${o.idocBaseUrl}/app/prototype/all/${e}`)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8),o=n(57),i=n(92),a=n(46),s=n(312),l=n(313),c=n(227),u=n(49),d={appID:"",app:null,landmark:0,allNodes:[],message:"",showMsg:!1,isProjectExist:!0,linkID:""};t.default=function(e=d,t){var n;switch(t.type){case u.ActionType.Preview_GetApp:{const{app:n}=t.payload,{realNodes:r}=i.parseNodeToTreeByState(n.children);return Object.assign(Object.assign({},e),{app:Object.assign(Object.assign({},n),{appID:n.appID,children:r,tempChildren:[]}),appID:n.appID,allNodes:n.children})}case u.ActionType.Preview_LoadArtBoard:{const{pageID:n,artboards:r}=t.payload,o=new l.default(e.appID,r,n,e.allNodes);return o.doLoaded=!0,delete o.activeFragmentAction,Object.assign(Object.assign({},e),{currentTheater:o,skipHistory:[],landmark:void 0})}case u.ActionType.Preview_AfterSkipToPage:{const t=e.skipHistory;let n=e.landmark||0;const r=e.nextTheater,o=e.currentTheater;r&&(r.resetWorkerManager(),r.animationEffect=void 0,r.hasBack=!(!t||t.length<=n),r.hasNext=n>0),o&&(o.resetWorkerManager(),o.animationEffect=void 0,o.hasBack=!(!t||t.length<=n),o.hasNext=n>0);const i=r||o;return i.doLoaded=!0,setTimeout(()=>{i&&i.start(i.doc.mainArtboard,a.EventTypes.loaded)}),Object.assign(Object.assign({},e),{currentTheater:i,nextTheater:void 0,selectedPageID:r?r.doc.pageID:e.selectedPageID})}case u.ActionType.Preview_SelectNode:{const{nodeID:n,artBoards:r}=t.payload,o=new l.default(e.appID,r,n,e.allNodes);return o&&(o.resetWorkerManager(),o.doLoaded=!0),setTimeout(()=>{o.start(o.doc.mainArtboard,a.EventTypes.loaded)}),Object.assign(Object.assign({},e),{currentTheater:o,nextTheater:void 0,selectedPageID:t.payload.nodeID})}case u.ActionType.Preview_Exit:return d;case u.ActionType.Preview_beforeSkipToPage:{const{nextPageID:n,nextArtBoards:r,currentPageID:o,currentArtBoards:i,actionEffect:a}=t.payload.pageActionParam,s=new l.default(e.appID,i,o,e.allNodes),c=new l.default(e.appID,r,n,e.allNodes);s.animationEffect={animation:a.animation,params:a.params.effect},c.animationEffect={animation:a.animation,params:a.params.effect};const u=e.skipHistory||[];let d=e.landmark||0;d>0&&u.splice(0,d);const h={currentTheater:s,nextTheater:c,actionEffect:c.animationEffect};return u.length>0&&h.nextTheater.doc.pageID==u[0].nextTheater.doc.pageID||(u.unshift(h),d=0),delete s.activeFragmentAction,Object.assign(Object.assign({},e),{nextTheater:c,currentTheater:s,skipHistory:u,landmark:d})}case u.ActionType.Preview_goBackward:{const{actionEffect:n,callback:r}=t.payload,o=e.skipHistory;let i=e.landmark||0;if(!o||i>=o.length||i<0)break;const{currentTheater:a,nextTheater:u,actionEffect:d}=o[i],h=new l.default(e.appID,c.artboardList[a.doc.pageID],a.doc.pageID,e.allNodes),p=new l.default(e.appID,c.artboardList[u.doc.pageID],u.doc.pageID,e.allNodes),f={animation:d.animation,params:s.revertActionType(d.params)};return n&&(f.animation=n.animation,f.params=n.params.effect),h.animationEffect=f,p.animationEffect=f,delete h.activeFragmentAction,r&&r(h.doc.pageID),Object.assign(Object.assign({},e),{landmark:i+1,currentTheater:p,nextTheater:h})}case u.ActionType.Preview_goForward:{const n=e.skipHistory;let r=e.landmark||0;if(!n||r>n.length||r<1)break;const{currentTheater:o,nextTheater:i,actionEffect:a}=n[r-1],s=new l.default(e.appID,c.artboardList[o.doc.pageID],o.doc.pageID,e.allNodes),u=new l.default(e.appID,c.artboardList[i.doc.pageID],i.doc.pageID,e.allNodes);s.animationEffect={animation:a.animation,params:a.params},u.animationEffect={animation:a.animation,params:a.params},delete s.activeFragmentAction;const{callback:d}=t.payload;return d&&d(u.doc.pageID),Object.assign(Object.assign({},e),{landmark:r-1,currentTheater:s,nextTheater:u})}case u.ActionType.Preview_returnHome:{const{homeID:n,homeArtBoards:r}=t.payload,o=new l.default(e.appID,r,n,e.allNodes),i=n;return o.hasBack=!1,o.hasNext=!1,o.doLoaded=!0,delete o.activeFragmentAction,Object.assign(Object.assign({},e),{currentTheater:o,selectedPageID:i,landmark:0,skipHistory:[]})}case u.ActionType.Preview_showFragment:{const{action:o}=t.payload,i=e.currentTheater;if(i)if(o.isExit&&i.activeFragmentAction&&(null===(n=i.activeFragmentAction)||void 0===n?void 0:n.target)===o.target){const e=r.depthClone(o);e.params=i.activeFragmentAction.params,i.activeFragmentAction=e}else i.activeFragmentAction=o;return Object.assign(Object.assign({},e),{currentTheater:i})}case u.ActionType.Preview_showMessage:{const{message:n}=t.payload;return Object.assign(Object.assign({},e),{showMsg:!0,message:n})}case u.ActionType.Preview_hideMessage:return Object.assign(Object.assign({},e),{showMsg:!1,message:""});case u.ActionType.Preview_toLogIn:{const{shareID:n,openPage:r}=t.payload,i=e.linkID?"/"+e.linkID:"",a=r?"/"+r:"";let s=`/signin?next=${location.origin}/run/rp/${n}${i}${a}`;o.isMockRPD?window.open(s):location.href=s;break}case u.ActionType.Preview_PwdEnabled:if(e.app)return Object.assign(Object.assign({},e),{app:Object.assign(Object.assign({},e.app),{previewNeedPassword:t.payload})});break;case u.ActionType.Preview_ProjectExist:return Object.assign(Object.assign({},e),{isProjectExist:t.payload});case u.ActionType.Preview_setCurrLinkID:return Object.assign(Object.assign({},e),{linkID:t.payload.linkID})}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(17),o=n(1406);t.default=class{constructor(e,t){this.workerMap=new Map,this.fragmentCommandMap=new Map,this._extensionFeature={},this.handleWorkerFinish=()=>{this.onFinish&&this.onFinish()},this.handleWorkerExtensionWorkerStart=e=>{e.execute()},this.cachePatches={},this._doc=e,this._docTree=t}get doc(){return this._doc}get docTree(){return this._docTree}get extensionFeature(){return this._extensionFeature}refreshDocTree(e){this._docTree=e}createWorker(e,t){const n=e.interactions[t];return n?n.parallel?new o.ParallelWorker(this,e,t):new o.SequenceWorker(this,e,t):null}getWorker(e,t){const n=`${e instanceof r.UIFragment?e.artboardID:e.id}-${t}`;let o=this.workerMap.get(n)||null;return o?o.refreshCommands():(o=this.createWorker(e,t),o&&(o.onFinish=this.handleWorkerFinish,o.init(),this.workerMap.set(n,o))),o}initExtensionFeature(e){this._extensionFeature=Object.assign(this._extensionFeature,e)}patch(e){this.delayPatches(e)}delayPatches(e){if(!this._extensionFeature.patch)return;this.timer&&clearTimeout(this.timer);Object.keys(e).forEach(t=>{const n=this.cachePatches[t],r=e[t],o=Object.keys(r);o.length&&(n?o.forEach(e=>{const t=r[e];Object.keys(t).length&&(n[e]?n[e].push(...t):n[e]=t)}):this.cachePatches[t]=r)}),this.timer=window.setTimeout(()=>{Object.keys(this.cachePatches).length&&this._extensionFeature.patch(Object.assign({},this.cachePatches)),this.cachePatches={},this.timer=void 0},1)}startWorker(e,t){const n=this.getWorker(e,t);n&&(n.isRunning?n.runAgainAfterFinished():n.execute())}reset(){this.fragmentCommandMap.clear(),this.workerMap.clear()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceWorker=t.ParallelWorker=void 0;const r=n(1407);t.SequenceWorker=r.default;const o=n(1419);t.ParallelWorker=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(451),o=n(452),i=n(97);class a extends r.WorkerBase{start(){this.executeNext(this.nextCommand)}doFinishCommand(e){e instanceof o.default?this.finish():(e instanceof i.default&&e.startSubWorker(),this.doSkipToNextIndex(),this.isFinish?this.finish():this.isRunning&&this.executeNext(this.nextCommand))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkCommand=t.FragmentCommand=t.PageSkipCommand=t.ContentSwitchCommand=t.VisibleCommand=t.ScrollCommand=t.StateCommand=t.ScaleCommand=t.RotationCommand=t.ResizeCommand=t.MoveCommand=void 0;const r=n(1409);t.MoveCommand=r.default;const o=n(1410);t.ResizeCommand=o.default;const i=n(1411);t.RotationCommand=i.default;const a=n(1412);t.ScaleCommand=a.default;const s=n(1413);t.StateCommand=s.default;const l=n(1414);t.ScrollCommand=l.default;const c=n(1415);t.VisibleCommand=c.default;const u=n(1416);t.ContentSwitchCommand=u.default;const d=n(452);t.PageSkipCommand=d.default;const h=n(1417);t.FragmentCommand=h.default;const p=n(1418);t.LinkCommand=p.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(46),i=n(97);class a extends i.default{constructor(){super(...arguments),this.getMoveTargetPosition=e=>{const{params:t,target:{position:n}}=this.command,{x:r,y:o,fromCurrent:i}=t;return i?e?{x:n.x-r,y:n.y-o}:{x:n.x+r,y:n.y+o}:e?this.getCacheOriginParams("position"):{x:r,y:o}},this.initOperations=e=>{const{target:t}=this.command,{id:n,ownerArtboardID:o}=t;return{[o]:{[n]:[r.Ops.replace(this.getCurrentPath("position"),e),this.initAnimationOperation()]}}},this.run=()=>{this.patch(this.initOperations(this.getMoveTargetPosition(!1))),this.fulfilled=!0},this.revert=()=>{this.patch(this.initOperations(this.getMoveTargetPosition(!0))),this.fulfilled=!0}}get afterEvent(){return o.EventTypes.afterMove}cashOriginParams(){this.saveCacheOriginParams("position",this.command.target.position)}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(12),i=n(46),a=n(47),s=n(6),l=n(97);class c extends l.default{constructor(){super(...arguments),this.getTargetChanges=e=>{const{target:t,params:n}=this.command,{fromCurrent:o,height:i,width:l,transformOrigin:c}=n;if(!o&&e)return this.getCacheOriginParams("bounds");const{position:u,size:d,type:h,value:p}=t;let f=u.x,m=u.y,g=l,v=i;switch(o&&(g=e?d.width-l:d.width+l,v=e?d.height-i:d.height+i),c){case"center":f+=(d.width-g)/2;break;case"right":case"topRight":case"bottomRight":f=f+d.width-g}switch(c){case"center":m+=(d.height-v)/2;break;case"bottom":case"bottomLeft":case"bottomRight":m=m+d.height-v}const y=Object.assign(Object.assign({},d),{width:g,height:v});let b=void 0;if([s.CCompoundPath,s.CPath].includes(h)){const e=p,t={x:y.width/d.width,y:y.height/d.height};b=r.isArray(e)?e.map(e=>a.scalePath(e,t,!1)):a.scalePath(e,t,!1)}return{position:{x:f,y:m},size:y,value:b}},this.initOperation=({position:e,size:t,value:n})=>{const{target:r}=this.command,{id:i,ownerArtboardID:a,type:l}=r,c=[o.Ops.replace(this.getCurrentPath("position"),e),o.Ops.replace(this.getCurrentPath("size"),t),this.initAnimationOperation()];return l===s.CGroup&&c.push(o.Ops.replace("/realSize",t)),n&&c.unshift(o.Ops.replace(this.getCurrentPath("value"),n)),{[a]:{[i]:c}}},this.revert=()=>{this.patch(this.initOperation(this.getTargetChanges(!0))),this.fulfilled=!0},this.run=()=>{this.patch(this.initOperation(this.getTargetChanges(!1))),this.fulfilled=!0}}get afterEvent(){return i.EventTypes.afterResize}cashOriginParams(){this.saveCacheOriginParams("bounds",{size:this.command.target.size,position:this.command.target.position})}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(46),i=n(97);class a extends i.default{constructor(){super(...arguments),this.initOperation=e=>{const{target:t}=this.command,{id:n,ownerArtboardID:o}=t;return{[o]:{[n]:[r.Ops.replace(this.getCurrentPath("rotate"),e),this.initAnimationOperation()]}}},this.getTargetRotate=e=>{const{target:t,params:n}=this.command,{fromCurrent:r,rotate:o}=n,{rotate:i}=t;return r?e?i-o:i+o:e?this.getCacheOriginParams("rotate"):o},this.run=()=>{this.patch(this.initOperation(this.getTargetRotate(!1))),this.fulfilled=!0},this.revert=()=>{this.patch(this.initOperation(this.getTargetRotate(!0))),this.fulfilled=!0}}get afterEvent(){return o.EventTypes.afterRotate}cashOriginParams(){this.saveCacheOriginParams("rotate",this.command.target.rotate||0)}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(46),i=n(97);class a extends i.default{constructor(){super(...arguments),this.initOperation=({scale:e,position:t})=>{const{id:n,ownerArtboardID:o}=this.command.target;return{[o]:{[n]:[r.Ops.replace("/_scale",e),r.Ops.replace(this.getCurrentPath("position"),t),this.initAnimationOperation()]}}},this.getTargetScale=e=>{var t,n,r,o;const{fromCurrent:i,x:a,y:s,transformOrigin:l}=this.command.params;if(!i&&e)return this.getCacheOriginParams("scale");const{size:c,position:u,_scale:d}=this.command.target;let h=i?(null!==(t=null==d?void 0:d.x)&&void 0!==t?t:1)*a:a,p=i?(null!==(n=null==d?void 0:d.y)&&void 0!==n?n:1)*s:s;h=e?(null!==(r=null==d?void 0:d.x)&&void 0!==r?r:1)/a:h,p=e?(null!==(o=null==d?void 0:d.y)&&void 0!==o?o:1)/s:p;const f=c.width*h,m=c.height*p;let{x:g,y:v}=u;const y=f-c.width*d.x,b=m-c.height*d.y;switch(l){case"center":g-=y/2;break;case"right":case"topRight":case"bottomRight":g-=y}switch(l){case"center":v-=b/2;break;case"bottom":case"bottomLeft":case"bottomRight":v-=b}return{scale:{x:h,y:p},position:{x:g,y:v}}},this.run=()=>{this.patch(this.initOperation(this.getTargetScale(!1))),this.fulfilled=!0},this.revert=()=>{this.patch(this.initOperation(this.getTargetScale(!0))),this.fulfilled=!0}}get afterEvent(){return o.EventTypes.afterZoom}cashOriginParams(){const{target:{_scale:e,position:t}}=this.command;this.saveCacheOriginParams("scale",{scale:e,position:t})}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(24),i=n(97);class a extends i.default{constructor(){super(...arguments),this.cashOriginParams=()=>{const{target:e}=this.command;this.saveCacheOriginParams("state",e.currentStateID)},this.initOperation=e=>{const{target:t}=this.command,{id:n,ownerArtboardID:i}=t,a={[n]:[this.initAnimationOperation(),r.Ops.replace("/_currentState",e)]};if(o.isPredefinedState(e))switch(e){case o.PredefinedStates.checked:a[n].push(r.Ops.replace("/selected",!0),r.Ops.replace("/disabled",!1));break;case o.PredefinedStates.disabled:a[n].push(r.Ops.replace("/selected",!1),r.Ops.replace("/disabled",!0));break;default:a[n].push(r.Ops.replace("/selected",!1),r.Ops.replace("/disabled",!1))}else a[n].push(r.Ops.replace("/selected",!1),r.Ops.replace("/disabled",!1));return{[i]:a}},this.getTargetState=()=>{const{stateID:e}=this.command.params;return e===o.PredefinedStates.normal?"":e}}isStateEnabled(e){const t=this.command.target;if(o.isPredefinedState(e)||!e)return!0;return!!Object.keys(t.toJSON().states).filter(e=>!1!==t.toJSON().states[e].enabled).includes(e)}run(){const e=this.getTargetState();this.fulfilled=this.isStateEnabled(e),this.fulfilled&&this.patch(this.initOperation(e))}revert(){const e=this.getCacheOriginParams("state");this.fulfilled=this.isStateEnabled(e),this.fulfilled&&this.patch(this.initOperation(e))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8),o=n(301),i=n(42),a=n(97);class s extends a.default{constructor(){super(...arguments),this.cashOriginParams=()=>{},this.initScrollPromise=(e,t)=>{const{params:n,animate:{duration:i}}=this.command,{horizontal:a,vertical:s}=n;return new Promise(()=>{const n=o.getParentDomByFilter(e,e=>{var t;return!!(null===(t=e.parentElement)||void 0===t?void 0:t.classList.contains("dsm-c-rp-scrollbars"))});if(n){const l=n.getBoundingClientRect(),c=e.getBoundingClientRect(),u=n.scrollHeight*t,d=n.scrollWidth*t,h=n.scrollLeft*t,p=n.scrollTop*t,f={scrollHeight:u,scrollWidth:d,scrollLeft:h,scrollTop:p},m=o.getOffsetScrollToTarget(l,c,f),g=20,v=i/g||1;let y=a?m.x/v:0,b=s?m.y/v:0,w=h,C=p;const _=Math.ceil(h+m.x),x=Math.ceil(p+m.y);let S=0;const k=setInterval(()=>{w+=y,C+=b,w=y>=0?r.min(w,_):r.max(w,_),C=b>=0?r.min(C,x):r.max(C,x),n.scroll({left:w/t,top:C/t});!(b>=0?C>=x:C<=x)&&s||!(y>=0?w>=_:w<=_)&&a||clearInterval(k),S++,S>v+10&&clearInterval(k)},g)}})},this.run=()=>{const{target:e}=this.command,{id:t}=e,n=document.querySelectorAll(`[id="${t}"]`),r=i.default.previewScale/100;Promise.all(Array.from(n).map(e=>{this.initScrollPromise(e,r)})),this.fulfilled=!0}}revert(){this.run()}}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),o=n(46),i=n(97);class a extends i.default{constructor(){super(...arguments),this._visible=this.command.target.hidden}get afterEvent(){return this._visible?o.EventTypes.afterVisible:o.EventTypes.afterHide}cashOriginParams(){const{hidden:e,parent:t}=this.command.target;this.saveCacheOriginParams("visible",!e),this.saveCacheOriginParams("index",null==t?void 0:t.components.indexOf(this.command.target))}initOperation(e){const{params:t,target:n}=this.command,{forceFront:o}=t,{id:i,ownerArtboardID:a,parent:s}=n,l={[i]:[r.Ops.replace(this.getCurrentPath("hidden"),!e),this.initAnimationOperation()]};if(o){const t=s.components.indexOf(n),o=s.components.length,a=s.id;e?(l[a]=[r.Ops.move("./components/"+(o-1),"/components/"+t)],l[i].push(r.Ops.replace("/_bringFront",!0))):(l[a]=[r.Ops.move("/components/"+this.getCacheOriginParams("index"),"/components/"+t)],l[i].push(r.Ops.replace("/_bringFront",!1)))}return this._visible=e,{[a]:l}}getTargetVisible(){const{target:e,params:t}=this.command,{state:n}=t;return"hidden"!==n&&("show"===n||!!e.hidden)}run(){this.patch(this.initOperation(this.getTargetVisible())),this.fulfilled=!0}revert(){this.patch(this.initOperation(this.getCacheOriginParams("visible"))),this.fulfilled=!0}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(46),o=n(12),i=n(312),a=n(97);class s extends a.default{constructor(){super(...arguments),this.cashOriginParams=()=>{this.saveCacheOriginParams("index",this.getCurrentIndex())},this.getCurrentIndex=()=>{var e,t;const{target:n}=this.command,r=null!==(t=null===(e=n.toJSON().components)||void 0===e?void 0:e.findIndex(e=>e.selected))&&void 0!==t?t:0;return-1===r?0:r},this.getTargetIndex=()=>{const{params:e,target:t}=this.command,{target:n}=e,r=this.getCurrentIndex(),o=t.toJSON().components||[],i=o.length-1;let a=0;return a="@next"===n?r<i?r+1:0:"@prev"===n?r>0?r-1:i:o.findIndex(e=>e.value===n),a},this.cleanAnimation=()=>{var e;const t={},{target:n}=this.command;(null!==(e=n.toJSON().components)&&void 0!==e?e:[]).forEach(e=>{t[e._id]=[o.Ops.replace("./_animation",void 0)]}),this.patch({[n.ownerArtboardID]:t})},this.startSubWorker=()=>{var e,t;const n=this.getFragmentByIndex(this.getCurrentIndex());n&&(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(n,this.afterEvent))}}get afterEvent(){return r.EventTypes.loaded}initOperation(e,t){var n;const r=this.getCurrentIndex(),{target:a,params:s,animate:l}=this.command,{ownerArtboardID:c}=a,u=null!==(n=a.toJSON().components)&&void 0!==n?n:[],d=u[r],h=u[e],p=u.filter((t,n)=>n!==r&&n!==e),f={};p.forEach(e=>{f[e._id]=[o.Ops.replace("./selected",!1),o.Ops.replace("./_animation",void 0)]});const m=t?i.revertActionType(s.effect):s.effect,g={timing:l.effect,duration:l.duration,animationIterationCount:l.loop?"infinite":1};return{[c]:Object.assign(Object.assign({},f),{[d._id]:[o.Ops.replace("./selected",!1),o.Ops.replace("./_animation",Object.assign(Object.assign({},g),{name:"current-comp-"+m}))],[h._id]:[o.Ops.replace("./selected",!0),o.Ops.replace("./_animation",Object.assign(Object.assign({},g),{name:"next-comp-"+m}))]})}}getFragmentByIndex(e){var t;const n=(this.command.target.toJSON().components||[])[e],r=null==n?void 0:n.value;if(!r)return null;return null!==(t=this.doc.artboardsFragments.find(e=>e.artboardID===r))&&void 0!==t?t:null}run(){const e=this.getTargetIndex();this.fulfilled=-1!==e,this.fulfilled&&this.patch(this.initOperation(e,!1))}revert(){const e=this.getCacheOriginParams("index");this.fulfilled=-1!==e,this.fulfilled&&this.patch(this.initOperation(e,!0))}}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7),o=n(46);t.default=class{constructor(e,t){this.afterEvent=o.EventTypes.loaded,this.doExecute=e=>{const t=r.cloneDeep(this.action);e&&this.canRevert&&(t.isExit=!t.isExit),this.onBegin&&this.onBegin(t);const{animation:{duration:n}}=t;this.onFinish&&(n?window.setTimeout(()=>{this.onFinish&&this.onFinish(this)}):this.onFinish(this))},this.execute=e=>{const{animation:t}=this.action;t.delay?window.setTimeout(this.doExecute.bind(this,!!e),t.delay):this.doExecute(!!e)},this._worker=e,this.action=t}get afterTrigger(){var e;const{target:t}=this.action;return null!==(e=this._worker.doc.artboardsFragments.find(e=>e.artboardID===t))&&void 0!==e?e:null}get canRevert(){return!this.action.params.disabledAutoRevert}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(450);t.default=class{constructor(e,t){this.execute=()=>{const{params:{url:e,openWithSelf:t}}=this.action,n=t?"_self":"_blank";new r.Link(e).open(n),this.onFinish&&this.onFinish(this)},this._worker=e,this.action=t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(451);class o extends r.WorkerBase{start(){const e=[...this.commands];this.needRevertWorker&&e.reverse(),e.forEach(this.executeNext.bind(this))}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFound=t.hasNoSign=void 0,t.hasNoSign=e=>401===e,t.NotFound=e=>404===e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49),o={message:"",ioMessage:"",socketAvailable:!0,networkAvailable:!0,afk:!1,isOfflineSync:!1};t.default=function(e=o,t){switch(t.type){case r.ActionType.Global_Toast:{const{message:n,type:r}=t.payload;return Object.assign({},e,{message:n,messageType:r})}case r.ActionType.Global_IO_Message:return Object.assign({},e,{ioMessage:t.payload});case r.ActionType.Global_SOCKET_STATE_CHANGE:return e.socketAvailable!==t.payload?Object.assign({},e,{socketAvailable:t.payload}):e;case r.ActionType.Global_NETWORK_STATE_CHANGE:return e.networkAvailable!==t.payload?Object.assign({},e,{networkAvailable:t.payload}):e;case r.ActionType.Global_AFK:return e.afk?e:Object.assign({},e,{afk:!0});case r.ActionType.Global_Waiting:return Object.assign(Object.assign({},e),{waiting:t.payload});case r.ActionType.Global_Offline_Sync:return Object.assign(Object.assign({},e),{isOfflineSync:t.payload});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(208),o=n(49);var i;!function(e){e[e.access=0]="access",e[e.delete=4]="delete"}(i||(i={}));const a={libs:[]};function s(e,t){const n=e.findIndex(e=>e._id===t._id);return-1!==n&&e.splice(n,1,t),[...e]}function l(e){var t;const n=e.components,r=(null===(t=n.find(e=>e.state===i.delete))||void 0===t?void 0:t.children)||[],o=n.filter(e=>e.state===i.access);return Object.assign(Object.assign({},e),{components:o,componentsRecycle:r})}function c(e,...t){return[...e||[],...t]}function u(e,t){const{data:n,removeIDs:r,libs:o,type:i,libID:a}=t;return o.reduce((t,o)=>{const{_id:s,components:l}=o;return a===s&&(o.components=function(e,t){const{groups:n,type:r,removeIDs:o,data:i}=t;return n.reduce((t,n)=>{switch(r){case"add":n.children=function(e,t){const{componentID:n,components:r}=t;return r.reduce((t,r)=>{const{relations:o,_id:i}=r;return i===n&&(r.relations=[...o||[],...e]),t.push(r),t},[])}(i,{componentID:e,components:n.children});break;case"patch":n.children=function(e,t){const{componentID:n,components:r}=t;return r.reduce((t,r)=>{const{relations:o,_id:i}=r;return i===n&&(r.relations=null==o?void 0:o.reduce((t,n)=>{const{_id:r}=n,o=e.find(e=>e._id===r);return t.push(o||n),t},[])),t.push(r),t},[])}(i,{components:n.children,componentID:e});break;case"remove":n.children=function(e,t){const{componentID:n,components:r}=t;return r.reduce((t,r)=>{const{relations:o,_id:i}=r;return i===n&&(r.relations=null==o?void 0:o.filter(t=>!e.includes(t._id))),t.push(r),t},[])}(o,{components:n.children,componentID:e})}return t.push(n),t},[])}(e,{type:i,groups:l,removeIDs:r,data:n})),t.push(o),t},[])}t.default=function(e=a,t){var n;const{currentLib:d,libs:h}=e;switch(t.type){case o.ActionType.Lib_LoadLib:return Object.assign(Object.assign({},e),{isFail:!1,currentLib:l(t.payload)});case o.ActionType.Lib_LoadLibs:return Object.assign(Object.assign({},e),{libs:t.payload.map(e=>l(e)),isFail:!1});case o.ActionType.Lib_LoadError:return Object.assign(Object.assign({},e),{isFail:!0});case o.ActionType.Lib_UpdateLib:{const n=Object.assign({},d),{name:r,visibility:o}=t.payload;return"string"==typeof r&&(n.name=r),"string"==typeof o&&(n.visibility=o),Object.assign(Object.assign({},e),{currentLib:n,libs:s(h,n)})}case o.ActionType.Lib_AddLib:return h.push(t.payload),Object.assign(Object.assign({},e),{currentLib:t.payload,libs:[...h]});case o.ActionType.Lib_SwitchLib:{const n=h.find(e=>e._id===t.payload.libID);return Object.assign(Object.assign({},e),{currentLib:n||d})}case o.ActionType.Lib_AddColor:{let n=Object.assign({},d);const r=[...n.colors||[]];return Array.isArray(t.payload)?r.unshift(...t.payload):r.unshift(t.payload),n.colors=r,Object.assign(Object.assign({},e),{currentLib:n,libs:s(h,n)})}case o.ActionType.Lib_AddComponent:{const n=[...d.components],r=n.findIndex(e=>e._id===t.payload.groupID);if(-1!==r){const e=Object.assign({},n[r]);e.children=[t.payload,...e.children||[]]||!1,n.splice(r,1,e)}return d.components=n,Object.assign(Object.assign({},e),{currentLib:Object.assign({},d),libs:s(h,d)})}case o.ActionType.Lib_AddTypography:{let n=Object.assign({},d);return n.typographies=[t.payload,...n.typographies||[]],Object.assign(Object.assign({},e),{currentLib:n,libs:s(h,n)})}case o.ActionType.Lib_RemoveLibItem:{const{type:n,res:o}=t.payload,a=o._id;switch(n){case r.ResourceType.component:{const e=o.groupID,t=[...d.components],n=t.findIndex(t=>t._id===e),r=Object.assign({},t[n]),s=[...r.children||[]],l=s.findIndex(e=>e._id===a),u=s.splice(l,1)[0];r.children=s,t.splice(n,1,r),d.components=t,u.state=i.delete,d.componentsRecycle=c(null==d?void 0:d.componentsRecycle,u);break}case r.ResourceType.typography:{const e=[...d.typographies],t=e.findIndex(e=>e._id===a);e.splice(t,1),d.typographies=e;break}case r.ResourceType.color:{const e=[...d.colors],t=e.findIndex(e=>e._id===a);e.splice(t,1),d.colors=e;break}}return Object.assign(Object.assign({},e),{currentLib:Object.assign({},d),libs:s(h,d)})}case o.ActionType.Lib_PatchColorItem:{const n=[...d.colors],r=n.findIndex(e=>e._id===t.payload._id);return n.splice(r,1,t.payload),d.colors=n,Object.assign(Object.assign({},e),{currentLib:Object.assign({},d),libs:s(h,Object.assign({},d))})}case o.ActionType.Lib_PatchTypographyItem:{const n=[...d.typographies],r=n.findIndex(e=>e._id===t.payload._id);return n.splice(r,1,t.payload),d.typographies=n,Object.assign(Object.assign({},e),{currentLib:Object.assign({},d),libs:s(h,Object.assign({},d))})}case o.ActionType.Lib_PatchComponentItem:{const{_id:n,libID:r,groupID:o}=t.payload,i=h.find(e=>e._id===r);if(i){const r=[...i.components],a=r.find(e=>e._id===o);a.children=a.children||[];const l=a.children.findIndex(e=>e._id===n);return a.children.splice(l,1,t.payload),i.components=r,d&&i._id===d._id&&(d.components=r),Object.assign(Object.assign({},e),{currentLib:Object.assign({},d),libs:s(h,i)})}return e}case o.ActionType.Lib_ResourceItemIndexChanged:{const{type:n,res:o,newIndex:i}=t.payload;let a;const l=o._id;switch(n){case r.ResourceType.color:a=[...d.colors];break;case r.ResourceType.component:{const e=o;a=[...d.components.find(t=>t._id===e.groupID).children||[]];break}case r.ResourceType.typography:a=[...d.typographies]}if(a){const e=a.findIndex(e=>e._id===l);let t=i;t>e&&(t-=1);const o=a[e];switch(a.splice(e,1),a.splice(t,0,o),a.forEach((e,t)=>e.index=t),n){case r.ResourceType.typography:d.typographies=a;break;case r.ResourceType.component:{const e=o.groupID,t=d.components,n=t.findIndex(t=>t._id===e),r=t[n];r.children=a,t.splice(n,1,r),d.components=[...t];break}case r.ResourceType.color:d.colors=a}}return Object.assign(Object.assign({},e),{currentLib:Object.assign({},d),libs:s(h,Object.assign({},d))})}case o.ActionType.Lib_AddGroup:{const n=Object.assign({},d);return n.components=[...n.components,t.payload],Object.assign(Object.assign({},e),{libs:n?s(h,n):h,currentLib:n})}case o.ActionType.Lib_RenameGroup:{const r=Object.assign({},d),o=r.components.findIndex(e=>e._id===t.payload._id),i=Object.assign({},t.payload);return-1!==o&&(i.children=(null===(n=r.components[o])||void 0===n?void 0:n.children)||[],r.components.splice(o,1,i)),r.components=[...r.components],Object.assign(Object.assign({},e),{libs:r?s(h,r):h,currentLib:r})}case o.ActionType.Lib_RemoveGroup:{const{groupID:n}=t.payload,r=Object.assign({},d),o=r.components.findIndex(e=>e._id===n),a=[...r.components.map(e=>Object.assign({},e))],l=a.splice(o,1)[0];return r.components=a,l.children=l.children.map(e=>Object.assign(Object.assign({},e),{state:i.delete})),r.componentsRecycle=c(r.componentsRecycle,...l.children),Object.assign(Object.assign({},e),{currentLib:r,libs:s(h,r)})}case o.ActionType.Lib_MoveGroup:{const n=Object.assign({},d),r=[...n.components],{groupID:o,index:i}=t.payload,a=r.findIndex(e=>e._id===o),l=r[a];return r.splice(a,1),r.splice(i,0,l),n.components=r,Object.assign(Object.assign({},e),{currentLib:n,libs:s(h,n)})}case o.ActionType.Lib_ResetGroup:{const{groupID:n,components:r}=t.payload,o=r[0].groupID,i=[...d.components],a=i.find(e=>e._id===o),l=i.find(e=>e._id===n);for(let e=a.children.length-1;e>=0;e--){const t=a.children[e];r.includes(t)&&a.children.splice(e,1)}return a.children=[...a.children],r.forEach(e=>{e.groupID=n}),l.children=[...l.children||[],...r],d.components=i,Object.assign(Object.assign({},e),{currentLib:Object.assign({},d),libs:s(h,d)})}case o.ActionType.Lib_RemoveAfterMoveGroup:{const n=d,{removeGroupID:r,targetGroupID:o,comps:i}=t.payload,a=i.map(e=>Object.assign(Object.assign({},e),{groupID:o}));n.components.forEach(e=>{var t;e._id===o&&(e.children=(null===(t=e.children)||void 0===t?void 0:t.concat(a))||a)});const l=n.components.map(e=>e._id).indexOf(r);return n.components.splice(l,1)[0],n.components=[...n.components],Object.assign(Object.assign({},e),{currentLib:n,libs:s(h,n)})}case o.ActionType.Lib_RemoveComponents:{const{componentIDs:n}=t.payload,r=d,{componentsRecycle:o,groups:a}=r.components.reduce((e,t)=>{const{newComps:r,deleteComps:o}=t.children.reduce(({newComps:e,deleteComps:t},r)=>(n.includes(r._id)?t.push(Object.assign(Object.assign({},r),{state:i.delete})):e.push(r),{newComps:e,deleteComps:t}),{deleteComps:[],newComps:[]});return t.children=r,e.groups.push(t),e.componentsRecycle.push(...o),e},{groups:[],componentsRecycle:[]});return r.components=a,r.componentsRecycle=c(r.componentsRecycle,...o),Object.assign(Object.assign({},e),{currentLib:r,libs:s(h,r)})}case o.ActionType.Lib_AddRelations:{const{libID:n,componentID:r,data:o}=t.payload,i=u(r,{type:"add",libs:h,libID:n,data:o});return Object.assign(Object.assign({},e),{libs:i})}case o.ActionType.Lib_PatchRelations:{const{libID:n,componentID:r,data:o}=t.payload,i=u(r,{data:o,libID:n,type:"patch",libs:h});return Object.assign(Object.assign({},e),{libs:i})}case o.ActionType.Lib_RemoveRelations:{const{libID:n,componentID:r,relationIDs:o}=t.payload,i=u(r,{libID:n,removeIDs:o,libs:h,type:"remove"});return Object.assign(Object.assign({},e),{libs:i})}default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1424),o=n(49),i={userPreference:{userID:0,appID:"",_id:"",appLayoutAndGrid:{grid:r.defaultAppGridSettings,layout:r.defaultAppLayoutSettings},layoutAndGridColor:r.defaultLayoutAndGridColors,artboardsLayoutAndGrid:{},alignConfig:r.defaultAlignConfig,generalSettings:r.defaultGeneralSettings}};t.default=function(e=i,t){switch(t.type){case o.ActionType.User_Preference_Load:case o.ActionType.User_Preference_Patch:return Object.assign(Object.assign({},e),{userPreference:Object.assign(Object.assign({},e.userPreference),t.payload)});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGeneralSettings=t.defaultAlignConfig=t.defaultLayoutAndGridColors=t.defaultAppLayoutSettings=t.defaultAppGridSettings=void 0;const r=n(1425);t.defaultAppGridSettings={blockSize:20,thickEvery:10,visible:!1},t.defaultAppLayoutSettings={visible:!1,totalWidth:0,offset:0,columns:{visible:!0,gutterOnOutside:!0,gutterWidth:10,columnsCount:12},rows:{gutterHeight:12,rowHeight:5,visible:!1,drawAllLines:!1},viewMode:r.ViewMode.fill},t.defaultLayoutAndGridColors={thickColor:{r:224,g:32,b:32,a:.3},lightColor:{r:224,g:32,b:32,a:.1}},t.defaultAlignConfig={normalAlign:!0,testEquidistant:!0,markDistance:!0},t.defaultGeneralSettings={pasteOffset:{x:0,y:0},pasteAtTop:!0,showHiddenArea:!0,showLayerNameInPropertiesPanel:!0,enableCmdShiftGToUnGrouping:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewMode=void 0,function(e){e.fill="fill",e.stroke="stroke"}(t.ViewMode||(t.ViewMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49),o={artboards:{},waiting:!0};t.default=function(e=o,t){switch(t.type){case r.ActionType.Page_Revisions_Load:return Object.assign(Object.assign({},e),{revisions:t.payload,artboards:{}});case r.ActionType.Page_Revisions_loadArtboard:{const n=Object.assign({},e.artboards),{_id:r}=t.payload;return n[r]=t.payload,Object.assign(Object.assign({},e),{artboards:n})}case r.ActionType.Page_Revision_Switch:return Object.assign(Object.assign({},e),{artboards:{}});case r.ActionType.Page_Revision_Waring:return Object.assign(Object.assign({},e),{waiting:t.payload});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49),o={shareRunID:"",sharePassword:"",isLoadLink:!1,teamInfo:void 0,userInfo:void 0,validatePassword:sessionStorage.getItem("runValidatePass")||"",isPasswordValidate:!0,isValidateLinkPassDone:!1,validateResultAppID:"",previewNeedPassword:!1,linkID:"",nextLinkID:"",hasShareLinkReset:!1};t.default=function(e=o,t){switch(t.type){case r.ActionType.Share_GetTeamInfo:return Object.assign({},e,{teamInfo:t.payload});case r.ActionType.Share_GetUserInfo:return Object.assign({},e,{userInfo:t.payload});case r.ActionType.Share_GetRunLink:return Object.assign({},e,{isLoadLink:!1});case r.ActionType.Share_GetRunLinkDone:return Object.assign({},e,{shareRunID:t.payload._id,sharePassword:t.payload.password?t.payload.password:"",isLoadLink:!0});case r.ActionType.Share_SetLinkPassDone:return Object.assign({},e,{shareRunID:t.payload._id,sharePassword:t.payload.password?t.payload.password:""});case r.ActionType.Share_GetLinkPass:return Object.assign({},e,{isValidateLinkPassDone:!1});case r.ActionType.Share_GetLinkPassDone:return Object.assign({},e,{validateResultAppID:t.payload,isPasswordValidate:!0,isValidateLinkPassDone:!0});case r.ActionType.Share_ChangeValidatePassword:return sessionStorage.setItem("runValidatePass",t.payload),Object.assign({},e,{validatePassword:t.payload,isPasswordValidate:!0});case r.ActionType.Share_ValidatePasswordError:return Object.assign({},e,{validatePassword:"",isPasswordValidate:!1});case r.ActionType.Share_GetPwEnableDone:{const n=t.payload.previewNeedPassword;return Object.assign({},e,{previewNeedPassword:n,isProjectExist:t.payload})}case r.ActionType.Share_ChangePwEnableDone:{const n=t.payload;return Object.assign({},e,{previewNeedPassword:n})}case r.ActionType.Preview_resetLink:return Object.assign({},e,{nextLinkID:t.payload.linkID});case r.ActionType.Preview_hasShareLinkReset:return Object.assign({},e,{hasShareLinkReset:t.payload.hasShareLinkReset});case r.ActionType.Preview_setCurrLinkID:return Object.assign({},e,{linkID:t.payload.linkID});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1429),o=n(49),i={appID:"",publishShareID:"",shareID:"",shareAndInviteCode:"",onlyShareCurrentMode:!0,iframeShareLinkID:"",rpApps:[]};t.default=(e=i,t)=>{switch(t.type){case o.ActionType.ShareApp_GetLink:return t.payload.visibility===r.AppShareLinkVisibility.Private?Object.assign(Object.assign({},e),{shareID:t.payload.shortID}):Object.assign(Object.assign({},e),{shareAndInviteCode:t.payload.shortID,onlyShareCurrentMode:!!t.payload.onlyShareThisModel});case o.ActionType.ShareApp_GetPublicLink:return Object.assign(Object.assign({},e),{publishShareID:t.payload.shortID});case o.ActionType.ShareApp_Patch:return Object.assign(Object.assign({},e),{onlyShareCurrentMode:!!t.payload.onlyShareThisModel});case o.ActionType.ShareApp_ResetLink:return Object.assign(Object.assign({},e),{publishShareID:t.payload.shortID});case o.ActionType.ShareApp_LoadEmbedShareLink:{const{_id:n}=t.payload;return Object.assign(Object.assign({},e),{iframeShareLinkID:n})}case o.ActionType.App_LoadAllPrototypeApps:return Object.assign(Object.assign({},e),{rpApps:t.payload});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppShareLinkVisibility=void 0,function(e){e.Private="private",e.Public="internal",e.Iframe="Iframe"}(t.AppShareLinkVisibility||(t.AppShareLinkVisibility={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49),o={appUnReadCount:0,appUnReadCountSender:0,memberJoinAppNum:0,systemUnReadCount:0,teamUnReadCount:0};t.default=(e=o,t)=>{const{appUnReadCount:n,appUnReadCountSender:i,memberJoinAppNum:a}=e;switch(t.type){case r.ActionType.Message_Get_UnreadCount:return t.payload;case r.ActionType.Message_Read_App:return Object.assign(Object.assign({},e),{appUnReadCount:Math.max(0,n-1)});case r.ActionType.Message_Read_App_About_Me:return Object.assign(Object.assign({},e),{appUnReadCountSender:Math.max(0,i-1)});case r.ActionType.Message_Resolve_Join:return Object.assign(Object.assign({},e),{memberJoinAppNum:Math.max(0,a-1)});case r.ActionType.Message_Read_All:return Object.assign(Object.assign({},e),{appUnReadCount:0});case r.ActionType.Message_Read_All_About_Me:return Object.assign(Object.assign({},e),{appUnReadCountSender:0})}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(216),o=n(49),i={members:[],membersFromApp:[],parentMembersFromApp:[],invitation:{invitationID:"",role:r.Role.ROLE_GUEST},groupID:0,groupIDs:[],parentGroupIDs:[]};t.default=function(e=i,t){switch(t.type){case o.ActionType.Member_Load_All:return Object.assign(Object.assign({},e),{members:t.payload});case o.ActionType.Member_Load_App_Members:return Object.assign(Object.assign({},e),{membersFromApp:t.payload.members,parentMembersFromApp:t.payload.parents,groupIDs:t.payload.groups,parentGroupIDs:t.payload.parentGroups});case o.ActionType.Member_Update_App_Members:return Object.assign(Object.assign({},e),{membersFromApp:t.payload});case o.ActionType.Invitation_Load_Link:return Object.assign(Object.assign({},e),{invitation:t.payload});case o.ActionType.Invitation_Patch_Link:return Object.assign(Object.assign({},e),{invitation:Object.assign({},e.invitation,t.payload)});case o.ActionType.Invitation_Patch_Group:return Object.assign(Object.assign({},e),{groupID:t.payload})}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(163),i=n(1433),a=n(57),s=n(84);class l extends r.Component{componentDidMount(){a.isFireFox?window.addEventListener("DOMMouseScroll",this.handleWindowMouseWheel,{passive:!1}):window.addEventListener("mousewheel",this.handleWindowMouseWheel,{passive:!1})}componentWillUnmount(){a.isFireFox?window.addEventListener("DOMMouseScroll",this.handleWindowMouseWheel,{passive:!1}):window.addEventListener("mousewheel",this.handleWindowMouseWheel,{passive:!1})}handleWindowMouseWheel(e){s.isControlKeyPressed(e)&&e.preventDefault()}render(){return r.createElement(r.Fragment,null,r.createElement(o.HashRouter,null,r.createElement(o.Switch,null,r.createElement(o.Route,{exact:!0,path:"*",component:i.default}))))}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1434),i=n(454),a=o({loader:()=>Promise.resolve().then(()=>n(1436)),loading:()=>r.createElement(i.default,{size:"mini",theme:"light"})});t.default=e=>r.createElement(a,Object.assign({},e))},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(0),l=n(59),c=[],u=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function h(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=d(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(e){t.error=e}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function p(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function f(e,t){var d,h;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var f=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:p,webpack:null,modules:null},t),m=null;function g(){return m||(m=e(f.loader)),m.promise}return c.push(g),"function"==typeof f.webpack&&u.push((function(){if(e=f.webpack,"object"===r(n.m)&&e().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g();var e})),h=d=function(t){function n(r){o(this,n);var a=i(this,t.call(this,r));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),m=e(f.loader),a._loadModule()},g(),a.state={error:m.error,pastDelay:!1,timedOut:!1,loading:m.loading,loaded:m.loaded},a}return a(n,t),n.preload=function(){return g()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(f.modules)&&f.modules.forEach((function(t){e.context.loadable.report(t)})),m.loading){"number"==typeof f.delay&&(0===f.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){e.setState({pastDelay:!0})}),f.delay)),"number"==typeof f.timeout&&(this._timeout=setTimeout((function(){e.setState({timedOut:!0})}),f.timeout));var t=function(){e._mounted&&(e.setState({error:m.error,loaded:m.loaded,loading:m.loading}),e._clearTimeouts())};m.promise.then((function(){t()})).catch((function(e){t()}))}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?s.createElement(f.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?f.render(this.state.loaded,this.props):null},n}(s.Component),d.contextTypes={loadable:l.shape({report:l.func.isRequired})},h}function m(e){return f(d,e)}m.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return f(h,e)};var g=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function v(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return v(e)}))}g.propTypes={report:l.func.isRequired},g.childContextTypes={loadable:l.shape({report:l.func.isRequired}).isRequired},m.Capture=g,m.preloadAll=function(){return new Promise((function(e,t){v(c).then(e,t)}))},m.preloadReady=function(){return new Promise((function(e,t){v(u).then(e,e)}))},e.exports=m},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(4),i=n(187),a=n(456),s=n(53),l=n(301),c=n(1437),u=n(8),d=n(129),h=n(92),p=n(302),f=n(1438),m=n(17),g=n(228),v=n(207),y=n(113),b=n(1444),w=n(1778),C=n(454),_=n(1787);n(1794);class x extends r.Component{constructor(e){super(e),this.resourceLoading=!0,this.resLoaded=!1,this.mobileIndex=r.createRef(),this.webIndex=r.createRef(),this.appSymbolTheater=[],this.postMsgAfterPageDidMount=()=>{this.props.isStandalone&&this.postMessage(a.RpPreviewOption.PAGE_DIDMOUNT,void 0)},this.postMsgAfterPageChange=e=>{this.props.isStandalone&&this.postMessage(a.RpPreviewOption.PAGE_CHANGED,{pageID:e})},this.doBackward=()=>{this.props.dispatcher.goBackward(void 0,this.updateNodeIDInUrl)},this.doForward=()=>{this.props.dispatcher.goForward(this.updateNodeIDInUrl)},this.doHome=(e,t)=>{const{app:n,roleInTeam:r}=this.props,o=h.findNodeByID((null==n?void 0:n.children)||[],e);s.couldPagePreview(o,r)&&(this.props.dispatcher.goHome(e,t),this.updateNodeIDInUrl(e))},this.doBeginFragmentAction=e=>{this.props.dispatcher.showFragment(e),this.setState({reRender:!this.state.reRender})},this.doEndFragmentAction=e=>{const t=u.depthClone(e);t.isExit=!0,this.props.dispatcher.showFragment(t),this.setState({reRender:!this.state.reRender})},this.doScrollToComp=(e,t,n)=>{const r=document.querySelectorAll(`[id="${e}"]`),{horizontal:o,vertical:i}=t,a=Array.from(r).map(e=>new Promise(()=>{var t;const r=l.getParentDomByFilter(e,e=>{var t;return!!(null===(t=e.parentElement)||void 0===t?void 0:t.classList.contains("dsm-c-rp-scrollbars"))});if(r){const a=(null===(t=r.parentElement)||void 0===t?void 0:t.classList.contains("global-scroll"))?1:this.globalScale,s=e.getBoundingClientRect(),c=r.getBoundingClientRect(),d=r.scrollHeight*a,h=r.scrollWidth*a,p=r.scrollLeft*a,f=r.scrollTop*a,m={scrollHeight:d,scrollWidth:h,scrollLeft:p,scrollTop:f},g=l.getOffsetScrollToTarget(c,s,m),v=20,y=n/v||1;let b=o?g.x/y:0,w=i?g.y/y:0,C=p,_=f;const x=Math.ceil(p+g.x),S=Math.ceil(f+g.y);let k=0;const P=setInterval(()=>{C+=b,_+=w,C=b>=0?u.min(C,x):u.max(C,x),_=w>=0?u.min(_,S):u.max(_,S),r.scroll({left:C/a,top:_/a});!(w>=0?_>=S:_<=S)&&i||!(b>=0?C>=x:C<=x)&&o||clearInterval(P),k++,k>y+10&&clearInterval(P)},v)}}));Promise.all(a)},this.doSkipToPage=(e,t)=>{const{roleInTeam:n,app:r,dispatcher:o}=this.props;if(!r)return;const i=[],a=e=>{i.push(...e),e.forEach(e=>{"folder"!==e.type&&"page"!==e.type||a(e.children)})};a(r.children);let l=e.target;if("@home"===l){const e=h.getFirstPageNodeOfTree(r.children,e=>s.couldPagePreview(e,n));if(!s.couldPagePreview(e,n))return;l=e._id}if("@back"===l)return void o.goBackward(e,this.updateNodeIDInUrl);const c=h.getFirstPageNodeOfTree(r.children,e=>e._id===l&&s.couldPagePreview(e,n)),u=i.find(e=>e._id===t);c&&u&&(o.beforeSkipToPage(c,u,e),this.updateNodeIDInUrl(c._id))},this.doAfterSkip=()=>{this.props.dispatcher.afterSkip()},this.postMsgAfterPreviewChanged=()=>{this.postMessage(a.RpPreviewOption.URL_CHANGED,window.location.href)},this.handleLoadPage=e=>{this.props.dispatcher.loadPage(e);const{_id:t}=e;this.props.dispatcher.selectPage(t),this.updateNodeIDInUrl(t),this.postMsgAfterPreviewChanged()},this.updateNodeIDInUrl=e=>{},this.handleMsgPop=(e,t)=>{const n=this.props.dispatcher.showMessage;n&&n(e,t)},this.state={reRender:!1,pageID:e.pageID,checkLinkTimer:0}}get globalScale(){return this.mobileIndex.current?this.mobileIndex.current.globalScale:this.webIndex.current?this.webIndex.current.globalScale:1}componentDidMount(){this.postMsgAfterPageDidMount();const{pageID:e,app:t,dispatcher:n,setCurrLinkID:r}=this.props;r(),t?document.title=o.default("application.title",t.name):n.loadApp(e)}componentDidUpdate(e){const{resourceDispatcher:t,app:n,getSnapshotAllPages:r}=this.props;this.resourceLoading&&n&&(t.loadLib(n._id),this.resourceLoading=!1,r&&r(n._id)),this.props.nextTheater&&(this.props.nextTheater.onAfterSkipPage=this.doAfterSkip,this.postMsgAfterPageChange(this.props.nextTheater.doc.pageID)),e.currentTheater!==this.props.currentTheater&&(e.currentTheater&&e.currentTheater.removeUpdateListener(),this.props.currentTheater&&(this.props.currentTheater.addUpdateListener(()=>{this.forceUpdate()}),this.props.currentTheater.onSkipToPage=this.doSkipToPage,this.props.currentTheater.onScrollToComp=this.doScrollToComp,this.props.currentTheater.onBeginFragmentAction=this.doBeginFragmentAction,this.props.currentTheater.onEndFragmentAction=this.doEndFragmentAction,this.props.currentTheater.onBackward=this.doBackward,this.props.currentTheater.onForward=this.doForward,this.props.currentTheater.onHome=this.doHome,this.props.currentTheater.updateWorkerManagerExtensionFeature({onPageSkip:this.doSkipToPage.bind(this)})))}UNSAFE_componentWillReceiveProps(e){var t;const{linkID:n,match:r,checkShareLinkReset:i}=e;if(n&&!this.state.checkLinkTimer&&(this.setState({checkLinkTimer:1}),i(r.params.id,n)),e.currentTheater){const t=e.currentTheater.doc.pageID;t!==this.state.pageID&&this.setState({pageID:t})}if(null===(t=e.app)||void 0===t?void 0:t.name){const t=o.default("application.title",e.app.name);document.title!==t&&(document.title=t)}const{resource:a,currentTheater:s}=e;a.libs&&p.default.setLibs(a.libs),v.canUseSymbol()&&!this.resLoaded&&a.libs.length&&s&&(this.resLoaded=!0,s&&(this.doApplySymbol(s),this.forceUpdate())),this.resLoaded&&e.currentTheater&&(e.currentTheater&&this.doApplySymbol(e.currentTheater),e.currentTheater.refreshTree())}componentWillUnmount(){this.props.dispatcher.exit()}postMessage(e,t){window.parent&&window.parent.postMessage({event:e,payload:t},"*")}doApplySymbol(e){const{doc:t}=e;if(this.appSymbolTheater.includes(t.pageID))return;this.appSymbolTheater.push(t.pageID);let n=!1;const r=e=>{e.components.forEach(e=>{e instanceof m.UISymbolComponent&&(e.loadSymbolDataByPreview(),e.refreshComponents(),n=!0),e instanceof m.UIContainerComponent&&r(e)})};r(t.mainArtboard),t.fragments.forEach(r),n&&e.refreshTree()}render(){if(!this.props.isProjectExist)return r.createElement(_.default,{errorType:_.errorTypes.isExist});if(this.props.hasShareLinkReset)return r.createElement(_.default,{errorType:_.errorTypes.isLinkValid});if(!this.props.app)return r.createElement(C.default,{size:"mini",theme:"light"});const{app:e,appID:t,realAppID:n,currentTheater:o,nextTheater:i,pageID:a,message:l,showMsg:c,userInfo:u,waiting:d,roleInTeam:h}=this.props;return s.isMobileDevice()||s.isMobileApp?r.createElement(w.default,{ref:this.mobileIndex,app:e,userInfo:u,appID:t,currentPage:o,nextPage:i,role:h,onPageSelect:this.handleLoadPage}):r.createElement(b.default,{ref:this.webIndex,waiting:d,app:e,appID:t,realAppID:n,pageID:a,currentPage:o,nextPage:i,message:l,showMsg:c,userInfo:u,role:h,isOfflineDemo:!0,isStandalone:this.props.isStandalone,onPageSelect:this.handleLoadPage,onMsgPopup:this.handleMsgPop})}}t.default=i.connect((e,t)=>{var n,r;const o=null===(n=y.getOfflineDemoData())||void 0===n?void 0:n.app.shareID,i=t.match.params.linkID;return{waiting:e.global.waiting,app:e.preview.app,currentTheater:e.preview.currentTheater,nextTheater:e.preview.nextTheater,appID:o,realAppID:e.preview.appID,pageID:"",linkID:i,resource:e.resource,showMsg:e.preview.showMsg,message:e.preview.message,userInfo:e.share.userInfo,hasShareLinkReset:e.share.hasShareLinkReset,roleInTeam:null===(r=e.share.teamInfo)||void 0===r?void 0:r.roleInTeam,isStandalone:-1!==t.match.path.indexOf("/standalone/rp"),isProjectExist:e.preview.isProjectExist}},(e,t)=>{var n;const r=null===(n=y.getOfflineDemoData())||void 0===n?void 0:n.app.shareID,o=t.match.params.linkID;return d.saveToCahche("currentAppID",r),{dispatcher:c.default(r,e),resourceDispatcher:f.default(r,e),checkShareLinkReset:(t,n)=>{e(g.ShareThunkActions.checkShareLinkReset(t,n))},setCurrLinkID:()=>{e(g.PreviewThunkActions.setCurrLinkID(o))},getSnapshotAllPages:e=>{g.AppThunkActions.getSnapshotAllPages(e)}}})(x)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(227);t.default=function(e,t){return{loadApp:n=>{t(r.ThunkActions.getApp(e,n))},loadPage:e=>{t(r.ThunkActions.loadPage(e))},selectPage:e=>{t(r.ThunkActions.selectPageNode(e))},exit:()=>{t(r.ThunkActions.exit())},afterSkip:()=>{t(r.ThunkActions.afterPageSkip())},beforeSkipToPage:(e,n,o)=>{t(r.ThunkActions.beforeSkipToPage(e,n,o))},goBackward:(e,n)=>{t(r.ThunkActions.goBackward(e,n))},goForward:e=>{t(r.ThunkActions.goForward(e))},goHome:e=>{t(r.ThunkActions.goHome(e))},showFragment:e=>{t(r.ThunkActions.showFragment(e))},showMessage:(e,n=1e3)=>{t(r.ThunkActions.showMessage(e,n))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(208),o=n(228);t.default=function(e,t){return{loadLib:(n,r)=>{t(o.ResourceThunkActions.thunkLoadLib(n||e,r))},addLib:()=>{t(o.ResourceThunkActions.thunkAddLib(e))},switchLib:e=>{t(o.ResourceThunkActions.switchLib(e))},updateLib:(e,n)=>{t(o.ResourceThunkActions.thunkUpdateLib(e,n))},addColor:(e,n)=>{t(o.ResourceThunkActions.addColor(e,n))},addComponent:(e,n,r)=>{t(o.ResourceThunkActions.addComponent(e,n,r))},addTypography:(e,n)=>{t(o.ResourceThunkActions.addTypography(e,n))},removeResource:(e,n)=>{t(o.ResourceThunkActions.removeResourceItem(e,n))},patchResourceItem:(e,n,i,a)=>{switch(a){case r.ResourceType.color:t(o.ResourceThunkActions.patchColor(n,i));break;case r.ResourceType.typography:t(o.ResourceThunkActions.patchTypography(n,i));break;case r.ResourceType.component:t(o.ResourceThunkActions.patchComponent(n,i))}},changeResourceItemIndex:(e,n,r)=>{t(o.ResourceThunkActions.changeResourceIndex(e,n,r))},addGroup:(e,n)=>{t(o.ResourceThunkActions.addGroup(e,n))},removeGroup:(e,n)=>{t(o.ResourceThunkActions.removeGroup(e,n))},renameGroup:(e,n,r)=>{t(o.ResourceThunkActions.renameGroup(e,n,r))},moveGroup:(e,n,r)=>{t(o.ResourceThunkActions.moveGroup(e,n,r))},resetComponentsGroup:(e,n,r)=>{t(o.ResourceThunkActions.resetComponentsGroup(e,r,n))},removeAfterMoveGroup:(e,n,r,i)=>{t(o.ResourceThunkActions.removeAfterMoveGroup(e,n,r,i))},removeComponents:(e,n)=>{t(o.ResourceThunkActions.removeComponents(e,n))},addRelations:(e,n,r)=>{t(o.ResourceThunkActions.addRelations(e,n,r))},patchRelations:(e,n,r)=>{t(o.ResourceThunkActions.patchRelations(e,n,r))},removeRelations:(e,n,r)=>{t(o.ResourceThunkActions.removeRelations(e,n,r))}}}},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.ThunkActions=t.Actions=void 0;const o=n(108),i=n(42),a=n(302),s=n(161),l=n(226),c=n(49);t.Actions={loadLib:e=>c.createAction(c.ActionType.Lib_LoadLib,e),loadLibs:e=>c.createAction(c.ActionType.Lib_LoadLibs,e),loadError:()=>c.createAction(c.ActionType.Lib_LoadError),addLib:e=>c.createAction(c.ActionType.Lib_AddLib,e),updateLib:(e,t)=>c.createAction(c.ActionType.Lib_UpdateLib,Object.assign({libID:e},t)),addColor:e=>c.createAction(c.ActionType.Lib_AddColor,e),addTypography:e=>c.createAction(c.ActionType.Lib_AddTypography,e),addComponent:e=>c.createAction(c.ActionType.Lib_AddComponent,e),removeResourceItem:(e,t)=>c.createAction(c.ActionType.Lib_RemoveLibItem,{res:e,type:t}),patchColor:e=>c.createAction(c.ActionType.Lib_PatchColorItem,e),patchComponent:e=>c.createAction(c.ActionType.Lib_PatchComponentItem,e),patchTypography:e=>c.createAction(c.ActionType.Lib_PatchTypographyItem,e),replaceColorItem:e=>c.createAction(c.ActionType.Lib_PatchColorItem,e),replaceComponentItem:e=>c.createAction(c.ActionType.Lib_PatchComponentItem,e),replaceTypographyItem:e=>c.createAction(c.ActionType.Lib_PatchTypographyItem,e),resourceItemIndexChanged:(e,t,n)=>c.createAction(c.ActionType.Lib_ResourceItemIndexChanged,{type:e,res:t,newIndex:n}),switchLib:e=>c.createAction(c.ActionType.Lib_SwitchLib,{libID:e}),addGroup:e=>c.createAction(c.ActionType.Lib_AddGroup,e),removeGroup:(e,t)=>c.createAction(c.ActionType.Lib_RemoveGroup,{libID:e,groupID:t}),renameGroup:e=>c.createAction(c.ActionType.Lib_RenameGroup,e),moveGroup:(e,t,n)=>c.createAction(c.ActionType.Lib_MoveGroup,{libID:e,groupID:t,index:n}),moveComponentsGroup:(e,t,n)=>c.createAction(c.ActionType.Lib_ResetGroup,{libID:e,groupID:n,components:t}),removeAfterMoveGroup:(e,t,n,r)=>c.createAction(c.ActionType.Lib_RemoveAfterMoveGroup,{libID:e,removeGroupID:t,targetGroupID:n,comps:r}),removeComponents:(e,t)=>c.createAction(c.ActionType.Lib_RemoveComponents,{libID:e,componentIDs:t}),addRelations:(e,t,n)=>c.createAction(c.ActionType.Lib_AddRelations,{libID:e,componentID:t,data:n}),patchRelations:(e,t,n)=>c.createAction(c.ActionType.Lib_PatchRelations,{libID:e,componentID:t,data:n}),removeRelations:(e,t,n)=>c.createAction(c.ActionType.Lib_RemoveRelations,{libID:e,componentID:t,relationIDs:n})},t.ThunkActions={thunkLoadLib:(e,n=!1)=>a=>r(void 0,void 0,void 0,(function*(){o.default.ds.lib.getLibs(e,n).then(n=>{if(a(t.Actions.loadLibs(n)),n.length){const r=i.default.lastUsedDesignRepositoryID,o=n.find(e=>e._id===r&&e.visibility)||n.find(t=>t.appID===e)||n[0];o&&(a(t.Actions.loadLib(o)),a(l.Actions.refresh()))}}).catch(e=>{a(s.ThunkActions.thunkToast(e.message)),a(t.Actions.loadError())})})),thunkAddLib:e=>n=>r(void 0,void 0,void 0,(function*(){o.default.ds.lib.addLib(e).then(e=>n(t.Actions.addLib(e))).catch(e=>n(s.ThunkActions.thunkToast(e.message)))})),thunkUpdateLib:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){o.default.ds.lib.updateLib(e,n).then(n=>i(t.Actions.updateLib(e,n))).catch(e=>i(s.ThunkActions.thunkToast(e.message)))})),addColor:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){if(Array.isArray(n)){const r=n.map(t=>o.default.ds.resourceItem.color.add(e,t));Promise.all(r).then(e=>i(t.Actions.addColor(e))).catch(e=>i(s.ThunkActions.thunkToast(e.message)))}else o.default.ds.resourceItem.color.add(e,n).then(e=>i(t.Actions.addColor(e))).catch(e=>i(s.ThunkActions.thunkToast(e.message)))})),addTypography:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.typography.add(e,n).then(e=>i(t.Actions.addTypography(e))).catch(e=>i(s.ThunkActions.thunkToast(e.message)))})),addComponent:(e,n,i)=>l=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.component.add(e,i).then(e=>{l(t.Actions.addComponent(e)),n&&"symbol"===e.value.type&&a.default.relatedComponents(n,!0,e)}).catch(e=>l(s.ThunkActions.thunkToast(e.message)))})),removeResourceItem:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){let r;const{_id:l,libID:c}=e;r=o.default.ds.resourceItem[n].remove,r&&r(l).then(()=>{i(t.Actions.removeResourceItem(e,n)),a.default.afterResourceRemoved(c,l,n)}).catch(e=>i(s.ThunkActions.thunkToast(e.message)))})),patchColor:(e,n)=>(i,a)=>r(void 0,void 0,void 0,(function*(){const r=a().resource.currentLib.colors.find(t=>t._id===e),l=Object.assign(Object.assign({},r),n);i(t.Actions.replaceColorItem(l)),o.default.ds.resourceItem.color.patch(e,n).then(e=>{i(t.Actions.patchColor(e))}).catch(e=>{i(s.ThunkActions.thunkToast(e.message)),i(t.Actions.replaceColorItem(r))})})),patchComponent:(e,n)=>(i,a)=>r(void 0,void 0,void 0,(function*(){const r=a().resource.currentLib,c=n.groupID;let u;c?u=r.components.find(e=>e._id===c).children:(u=[],r.components.forEach(e=>{u.push(...e.children||[])}));const d=u.find(t=>t._id===e),h=Object.assign(Object.assign({},d),n);i(t.Actions.replaceComponentItem(h)),o.default.ds.resourceItem.component.patch(e,n).then(e=>{i(t.Actions.patchComponent(e)),i(l.Actions.refresh())}).catch(e=>{i(s.ThunkActions.thunkToast(e.message)),i(t.Actions.replaceComponentItem(d))})})),patchTypography:(e,n)=>(i,a)=>r(void 0,void 0,void 0,(function*(){const r=a().resource.currentLib.typographies.find(t=>t._id===e),l=Object.assign(Object.assign({},r),n);i(t.Actions.replaceTypographyItem(l)),o.default.ds.resourceItem.typography.patch(e,n).then(e=>{i(t.Actions.patchTypography(e))}).catch(e=>{i(s.ThunkActions.thunkToast(e.message)),i(t.Actions.replaceTypographyItem(r))})})),changeResourceIndex:(e,n,i)=>a=>r(void 0,void 0,void 0,(function*(){const{libID:r,_id:l}=n;let c;c=o.default.ds.resourceItem[e].move,c&&c(r,l,i).then(()=>{a(t.Actions.resourceItemIndexChanged(e,n,i))}).catch(e=>{a(s.ThunkActions.thunkToast(e.message))})})),switchLib:e=>n=>{n(t.Actions.switchLib(e))},addGroup:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){o.default.ds.group.addGroup(e,n).then(e=>i(t.Actions.addGroup(e))).catch(e=>i(s.ThunkActions.thunkToast(e.message)))})),removeGroup:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){o.default.ds.group.removeGroup(e,n).then(()=>{i(t.Actions.removeGroup(e,n))}).catch(e=>{i(s.ThunkActions.thunkToast(e.message))})})),renameGroup:(e,n,i)=>a=>r(void 0,void 0,void 0,(function*(){o.default.ds.group.renameGroup(e,n,i).then(e=>{a(t.Actions.renameGroup(e))}).catch(e=>a(s.ThunkActions.thunkToast(e.message)))})),moveGroup:(e,n,i)=>a=>r(void 0,void 0,void 0,(function*(){o.default.ds.group.moveGroup(e,n,i).then(()=>{a(t.Actions.moveGroup(e,n,i))}).catch(e=>{a(s.ThunkActions.thunkToast(e.message))})})),resetComponentsGroup:(e,n,i)=>a=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.component.resetGroup(e,n.map(e=>e._id),i).then(()=>{a(t.Actions.moveComponentsGroup(e,n,i))}).catch(e=>{a(s.ThunkActions.thunkToast(e.message))})})),removeAfterMoveGroup:(e,n,i,a)=>l=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.component.resetGroup(e,a.map(e=>e._id),i).then(()=>{o.default.ds.group.removeGroup(e,n).then(()=>{l(t.Actions.removeAfterMoveGroup(e,n,i,a))}).catch(e=>{l(s.ThunkActions.thunkToast(e.message))})}).catch(e=>{l(s.ThunkActions.thunkToast(e.message))})})),removeComponents:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.component.removeComponents(n).then(()=>{i(t.Actions.removeComponents(e,n))}).catch(e=>{i(s.ThunkActions.thunkToast(e.message))})})),addRelations:(e,n,i)=>a=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.component.addRelations(n,i).then(r=>{a(t.Actions.addRelations(e,n,r))}).catch(e=>{a(s.ThunkActions.thunkToast(e.message))})})),patchRelations:(e,n,i)=>a=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.component.patchRelations(n,i).then(()=>{a(t.Actions.patchRelations(e,n,i))}).catch(e=>{a(s.ThunkActions.thunkToast(e.message))})})),removeRelations:(e,n,i)=>a=>r(void 0,void 0,void 0,(function*(){o.default.ds.resourceItem.component.removeRelations(n,i).then(()=>{a(t.Actions.removeRelations(e,n,i))}).catch(e=>{a(s.ThunkActions.thunkToast(e.message))})}))}},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.ThunkActions=t.Actions=void 0;const o=n(108),i=n(49),a=n(161);t.Actions={loadUserPreference:e=>i.createAction(i.ActionType.User_Preference_Load,e),patchUserPreference:e=>i.createAction(i.ActionType.User_Preference_Patch,e)},t.ThunkActions={thunkLoadUserPreference:e=>n=>r(void 0,void 0,void 0,(function*(){o.default.userPreference.loadUserPreference(e).then(e=>{n(t.Actions.loadUserPreference(e))}).catch(e=>{a.ThunkActions.thunkToast(e)(n)})})),thunkPatchUserPreference:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){o.default.userPreference.patchUserPreference(e,n).then(e=>{i(t.Actions.patchUserPreference(e))}).catch(e=>{a.ThunkActions.thunkToast(e)(i)})}))}},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.ThunkActions=t.Actions=void 0;const o=n(108),i=n(49),a=n(226),s=n(161);t.Actions={loadPageRevisions:e=>i.createAction(i.ActionType.Page_Revisions_Load,e),revertRevisions:(e,t)=>i.createAction(i.ActionType.Page_Revisions_revert,{pageID:e,artboards:t}),loadArtboardRevision:e=>i.createAction(i.ActionType.Page_Revisions_loadArtboard,e),switchRevision:()=>i.createAction(i.ActionType.Page_Revision_Switch),waiting:e=>i.createAction(i.ActionType.Page_Revision_Waring,e)},t.ThunkActions={thunkLoadPageRevision:(e,n)=>i=>r(void 0,void 0,void 0,(function*(){i(t.Actions.waiting(!0)),o.default.app.getPageRevisions(e,n).then(r=>{if(i(t.Actions.waiting(!1)),r.revisions&&r.revisions.length){i(t.Actions.loadPageRevisions(r));const{artboards:o,snapshotID:a}=r.revisions[0],{id:s,revision:l}=o[0];"-"!==l&&t.ThunkActions.thunkLoadArtboardByRevision({appID:e,pageID:n,snapShortID:a,artboardID:s})(i)}}).catch(e=>{console.error(e),i(t.Actions.waiting(!1))})})),thunkRevertPageRevision:(e,t,n)=>i=>r(void 0,void 0,void 0,(function*(){o.default.app.reversionPageRevision(e,t,n).then(()=>{a.ThunkActions.thunkLoadRevisionPageData(e,t)(i)}).catch(e=>{s.ThunkActions.thunkToast(e.message)(i)})})),thunkLoadArtboardByRevision:e=>n=>r(void 0,void 0,void 0,(function*(){n(t.Actions.waiting(!0)),o.default.app.getArtboardDataByRevision(e).then(r=>{r._id=e.artboardID,n(t.Actions.loadArtboardRevision(r)),n(t.Actions.waiting(!1))}).catch(e=>{console.log(e),n(t.Actions.waiting(!1))})}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThunkActions=t.Actions=void 0;const r=n(1443),o=n(228),i=n(49);t.Actions={loadAllMembers:e=>i.createAction(i.ActionType.Member_Load_All,e),loadAppMembers:(e,t,n,r)=>i.createAction(i.ActionType.Member_Load_App_Members,{members:e,parents:t,groups:n,parentGroups:r}),updateAppMembers:e=>i.createAction(i.ActionType.Member_Update_App_Members,e),loadInvitation:e=>i.createAction(i.ActionType.Invitation_Load_Link,e),patchInvitation:e=>i.createAction(i.ActionType.Invitation_Patch_Link,e),changeInvitationGroup:e=>i.createAction(i.ActionType.Invitation_Patch_Group,e)},t.ThunkActions={loadAllMembers:e=>n=>{r.getTeamMember(e).then(e=>{n(t.Actions.loadAllMembers(e))}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(n))},loadAppMembers:(e,n)=>i=>{r.getAppMember(e).then(({appMembers:e,parentMembers:r,groups:o,parentGroups:a})=>{n&&n(),i(t.Actions.loadAppMembers(e.concat(r),r,o.concat(a),a))}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(i))},updateAppMembers:(e,n,i)=>a=>{r.updateAppMembers(e,n).then(e=>{a(t.Actions.updateAppMembers(e))}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(a)),r.updateAppGroups(e,i).catch(e=>o.GlobalThunkActions.thunkError(e.message)(a))},changeAppType:(e,t)=>n=>{r.modifyAppCompetence(e,t).then(()=>{o.AppThunkActions.patchAppInfo({visibility:t})(n)}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(n))},loadInvitation:(e,n,i)=>a=>{r.getAppInvitationLink(e,n,i).then(e=>{a(t.Actions.loadInvitation(e))}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(a))},changeInvitationTerm:(e,t)=>n=>{r.changeInvitationLink(e,{timeLimit:t}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(n))},changeInvitationRole:(e,n)=>i=>{r.changeInvitationLink(e,{role:n}).then(()=>{i(t.Actions.patchInvitation({role:n}))}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(i))},changeInvitationGroup:(e,n)=>i=>{r.changeInvitationLink(e,{groupID:n}).then(()=>{i(t.Actions.changeInvitationGroup(n))}).catch(e=>o.GlobalThunkActions.thunkError(e.message)(i))}}},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.changeInvitationLink=t.updateAppGroups=t.updateAppMembers=t.modifyAppCompetence=t.getAppInvitationLink=t.getAppMember=t.getTeamMember=void 0;const o=n(58);t.getTeamMember=function(e){return r(this,void 0,void 0,(function*(){return yield o.get(`${o.idocBaseUrl}/team/${e}/members`)}))},t.getAppMember=function(e){return r(this,void 0,void 0,(function*(){return yield o.get(`${o.idocBaseUrl}/app/${e}/members`)}))},t.getAppInvitationLink=function(e,t,n){return r(this,void 0,void 0,(function*(){return yield o.get(`${o.idocBaseUrl}/team/${e}/invitationLink?appID=${t}&role=${n}`)}))},t.modifyAppCompetence=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.patch(`${o.idocBaseUrl}/app/${e}`,{visibility:t})}))},t.updateAppMembers=function(e,t){return r(this,void 0,void 0,(function*(){return yield o.post(`${o.idocBaseUrl}/app/${e}/update-members`,{members:t})}))},t.updateAppGroups=function(e,t){return o.patch(`${o.idocBaseUrl}/app/updateAppGroup/${e}`,{groupIDs:t})},t.changeInvitationLink=function(e,t){return o.patch(`${o.idocBaseUrl}/team/invitationLink/${e}`,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(7),a=n(2),s=n(57),l=n(276),c=n(150),u=n(22),d=n(36),h=(n(171),n(456)),p=n(42),f=n(53),m=n(289),g=n(42),v=n(113),y=n(76),b=n(1445),w=n(1758),C=n(1762),_=n(1771),x=n(1773);n(1777);class S extends r.Component{constructor(e){super(e),this.viewPortDom=r.createRef(),this.leftPanel=r.createRef(),this.handleWindowFullscreenChange=()=>{this.setState({isFullscreen:!!document.fullscreenElement})},this.handleDesktopFullscreenChange=e=>{this.setState({isFullscreen:e})},this.messageListener=e=>{const{data:{event:t,payload:n}}=e;switch(t){case h.RpPreviewOption.PAGE_OPTION:{const e=f.getPreviewOptFromUrl(n);this.handleOptionChange(Object.assign({},this.state.option,e));break}case h.RpPreviewOption.SCALE_CHANGED:{const e=c.default.value(n.scale,100);e===this.state.scale||document.querySelector(".snapshot-preview-mask")||this.setScale(e);break}case h.RpPreviewOption.PAGE_CHANGED:{const e=n.pageID,{app:t,onPageSelect:r}=this.props,o=[],i=e=>{o.push(...e),e.forEach(e=>{"folder"!==e.type&&"page"!==e.type||i(e.children)})};i(t.children);const a=o.find(t=>t._id===e);a&&r(a);break}}},this.updateCurUrlSearchStr=()=>{const e=location.search,t=f.shareOptionToSearchStr(this.currentShareOpt);e&&i.isEqual(l.parseUrlSearch(e),l.parseUrlSearch(t))||history.replaceState(null,"",t)},this.handleChangeCollapse=()=>{const{collapse:e}=this.state;this.setState({collapse:!e},()=>{g.default.defaultShowControlPanel=e,this.updateCurUrlSearchStr()})},this.setScale=(e,t)=>{this.setState({scale:e,zoomByWheel:t},()=>{g.default.previewScale=this.state.scale})},this.handleChangeScale=(e,t)=>{document.querySelector(".snapshot-preview-mask")||this.setScale(e,t),this.props.isStandalone&&this.postMsgAfterScaleChange(e)},this.postMsgAfterScaleChange=e=>{window.parent&&this.props.isStandalone&&window.parent.postMessage({event:h.RpPreviewOption.SCALE_CHANGED,payload:{scale:e}},"*")},this.handleOptionChange=e=>{const{realAppID:t}=this.props,n=Object.assign(Object.assign({},this.state.option),e);this.isMobileType||delete n.mobileType,this.setState({option:n},()=>{const e=p.default.previewOption,r=e.find(e=>e.appID===t);r?r.option=n:(e.push({appID:t,option:n}),e.length>20&&e.shift()),p.default.previewOption=e,this.updateCurUrlSearchStr()})},this.handleKeyDown=e=>{var t,n;const{isStandalone:r}=this.props;if(r)return;const{keyCode:o}=e,i=e.target;if([d.default.VK_LEFT,d.default.VK_UP].includes(o)){if("TEXTAREA"===i.tagName)return;if("INPUT"===i.tagName&&o===d.default.VK_LEFT)return;null===(t=this.leftPanel.current)||void 0===t||t.goPage("last")}else if([d.default.VK_RIGHT,d.default.VK_DOWN].includes(o)){if("TEXTAREA"===i.tagName)return;if("INPUT"===i.tagName&&o===d.default.VK_RIGHT)return;null===(n=this.leftPanel.current)||void 0===n||n.goPage("next")}},this.renderMessage=()=>{const{message:e,showMsg:t}=this.props;if(t)return o.createPortal(r.createElement("div",{className:"rp-preview-massage"},r.createElement(u.Icon,{className:"alert-icon",cls:"icon_check_circle_fill"}),r.createElement("p",{className:"text"},e)),document.body)},this.selfRef=r.createRef(),this.state={collapse:this.defaultCollapse,scale:100,option:f.getDefaultOption(e.app),isFullscreen:!!document.fullscreenElement},g.default.defaultShowControlPanel=!this.defaultCollapse}componentDidMount(){this.updateCurUrlSearchStr();const e=["ctrl+f"];s.isMacOS&&e.push("ctrl+r"),y.listenerShortCut(e),this.props.isStandalone&&window.addEventListener("message",this.messageListener),document.addEventListener("fullscreenchange",this.handleWindowFullscreenChange)}componentWillUnmount(){y.unListenerShortCut(),window.removeEventListener("message",this.messageListener),document.removeEventListener("fullscreenchange",this.handleWindowFullscreenChange)}componentDidUpdate(){this.updateCurUrlSearchStr()}get defaultCollapse(){var e;return!!s.isShareFrame||!1===(null===(e=v.getOfflineDemoData())||void 0===e?void 0:e.config.showControllerPanel)}get currentShareOpt(){const{option:e}=this.state,t=Object.assign({showControllerPanel:g.default.defaultShowControlPanel},e);return this.isMobileType||delete t.mobileType,t}get globalScale(){return this.state.scale/100}get isMobileType(){const{appType:e}=this.props.app;return f.isMobileAppType(e)}renderContent(){const{app:e,appID:t,realAppID:n,nextPage:o,currentPage:i,pageID:l,userInfo:c,waiting:u,role:d,isStandalone:h,onMsgPopup:p,onPageSelect:g}=this.props,{scale:v,option:y,collapse:x,zoomByWheel:S,isFullscreen:k}=this.state,{mobileType:P}=y;return r.createElement("div",{className:a.default("preview-container",{mac:s.isMacOS,desktop:s.isMockRPD&&!s.isIframe&&!k}),onKeyDown:this.handleKeyDown,style:{top:m.larkPC&&!f.isMobileDevice()?37:0}},u&&r.createElement(_.default,null),!h&&r.createElement(b.default,{ref:this.leftPanel,collapse:x,onCollapseChange:this.handleChangeCollapse,app:e,option:y,mobileType:P,onOptionChange:this.handleOptionChange,onDefaultShowControlPanelChanged:this.updateCurUrlSearchStr,onPageSelect:g,selected:i?i.doc.pageID:"",userInfo:c,role:d}),r.createElement(C.default,{ref:this.viewPortDom,option:y,scale:v,zoomByWheel:S,page:i,advancePage:o,appType:e.appType,appSize:e.size,onAutoScale:this.handleChangeScale,isStandalone:h}),r.createElement(w.default,{hidden:h,app:e,appID:t,realAppID:n,pageID:l,option:y,showControllerPanel:!x,scale:v,onChangeScale:this.handleChangeScale,onMsgPopup:p,page:i,userInfo:c,role:d,isFullscreen:k}),this.renderMessage())}render(){const{app:e}=this.props;return r.createElement(x.default,{title:e.name,status:"maximized",onFullscreenChange:this.handleDesktopFullscreenChange},this.renderContent())}}S.defaultProps={},t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(84),s=n(57),l=n(68),c=n(22),u=n(229),d=n(36),h=n(4),p=n(215),f=n(42),m=n(53),g=n(92),v=(n(174),n(1756));n(1757);const y=s.isShareFrame?216:280;class b extends r.Component{constructor(e){super(e),this.isCtrKeyPressed=!1,this.disabledScroll=!1,this.initTreeData=()=>{const{selected:e,app:t}=this.props;let n=m.parseDataToRPTree(e||"",t.children,!0,this.shouldHidePage);return b.modifyTreeDataToSetSelectedNodeExpand(n),n},this.handleWindowKeydown=e=>{this.isCtrKeyPressed=a.isControlKeyPressed(e);const{keyCode:t}=e,n=e.target;if([d.default.VK_LEFT,d.default.VK_UP].includes(t)){if("TEXTAREA"===n.tagName)return;if("INPUT"===n.tagName&&t===d.default.VK_LEFT)return;this.goPage("last")}else if([d.default.VK_RIGHT,d.default.VK_DOWN].includes(t)){if("TEXTAREA"===n.tagName)return;if("INPUT"===n.tagName&&t===d.default.VK_RIGHT)return;this.goPage("next")}t===d.default.VK_ESCAPE&&this.state.showSearchBox&&this.setState({showSearchBox:!1})},this.handleWindowKeyup=e=>{this.isCtrKeyPressed=a.isControlKeyPressed(e)},this.handleOptionChange=()=>{const{onOptionChange:e}=this.props,{autoScreen:t,alwaysShowLinkArea:n,showLinkAreaWhenHovered:r,noBoundary:o}=this.state;e({autoScreen:t,alwaysShowLinkArea:n,showLinkAreaWhenHovered:r,noBoundary:o})},this.handleMobileTypeSelected=e=>{const{onOptionChange:t}=this.props;t({mobileType:e.id})},this.handleCollapseChange=()=>{const{onCollapseChange:e}=this.props;e&&e()},this.handleTreeItemClick=(e,t)=>{if(this.disabledScroll=!0,a.isControlKeyPressed(e)){const e=i.cloneDeep(this.state.treeData);c.modifyAllChilrenExpand(e,!this.isTreeExpand(e)),this.setState({treeData:e})}else{if("folder"===t.type)return void this.doChangeFolderCollapseState(t);this.props.onPageSelect(t)}},this.goPage=e=>{const{treeData:t,selected:n}=this.state;if(n){const r=b.getNodesByID(n,t,[])[0];if(r){const n=this.doDelayer(t),o=n.findIndex(e=>e._id===r.data._id);"last"===e&&o>0?this.props.onPageSelect(n[o-1]):"next"===e&&o<n.length-1&&this.props.onPageSelect(n[o+1])}}},this.doDelayer=(e,t=[])=>e.length?(e.forEach(e=>{"folder"!==e.data.type&&t.push(e.data),e.children&&this.doDelayer(e.children,t)}),t):t,this.handleItemExpandChanged=(e,t)=>{if(this.disabledScroll=!0,this.isCtrKeyPressed){const e=i.cloneDeep(this.state.treeData);c.modifyAllChilrenExpand(e,t),this.setState({treeData:e})}else this.doItemExpandChanged(e,t)},this.doItemExpandChanged=(e,t)=>{const{treeData:n}=this.state,r=e._id;if(r&&n){const e=b.getNodesByID(r,n,[]);e[0]&&(e[0].expand=t,e[0].children&&c.modifyAllChilrenExpand(e[0].children),this.setState({treeData:n}))}},this.handleStartDragSplit=()=>{const{width:e}=this.state,t=Math.round(window.innerWidth/2);this.setState({draggingSplit:!0});let n=e;l.dragDelegate((r,o)=>{n=Math.max(Math.min(e+o.x,t),y),this.setState({width:n})},()=>{this.setState({draggingSplit:!1}),f.default.previewControllPanelWidth=n})},this.handleSearchPage=e=>{const{selected:t,app:n}=this.props;let r=m.parseDataToRPTree(t||"",n.children,!1,this.shouldHidePage);e&&(r=c.searchTreeNodes(r,e,t=>-1!==t.name.toLowerCase().replace(/\s+/g,"").indexOf(e.toLowerCase().replace(/\s+/g,"")),!1));const{treeData:o,searchValue:a}=this.state;i.isEqual(r,o)&&a===e||this.setState({searchValue:e,treeData:r})},this.handleShowSearch=()=>{this.state.showSearchBox||this.setState({showSearchBox:!0})},this.handleCloseSearch=()=>{if(this.setState({showSearchBox:!1,searchValue:""}),this.state.searchValue){const{selected:e,app:t}=this.props;let n=m.parseDataToRPTree(e||"",t.children,!1,this.shouldHidePage);this.setState({treeData:n})}},this.handleNoBoundaryChange=e=>{this.setState({noBoundary:e},()=>{this.handleOptionChange()})},this.handleAutoScreenChange=e=>{this.setState({autoScreen:e},()=>{this.handleOptionChange()})},this.handleShowLinkChange=e=>{this.setState({showLinkAreaWhenHovered:e},()=>{this.handleOptionChange()})},this.handleAlwaysShowLinkChange=e=>{this.setState({alwaysShowLinkArea:e},()=>{this.handleOptionChange()})},this.renderTreeItem=e=>{const t="folder"===e.type;return r.createElement("div",{className:"tree-item-render"},t&&r.createElement(c.Icon,{cls:"icon_tree_group"}),r.createElement(c.Tooltip,{className:"item-name",text:e.name},e.name),e.hidden&&r.createElement(c.Icon,{cls:"icon_tree_unview"}))},this.handleBackToProject=()=>{},this.state={treeData:this.initTreeData(),selected:e.selected,showLinkAreaWhenHovered:!!e.option.showLinkAreaWhenHovered,alwaysShowLinkArea:!!e.option.alwaysShowLinkArea,autoScreen:!!e.option.autoScreen,noBoundary:!!e.option.noBoundary,width:Math.max(Math.min(Math.round(window.innerWidth/2),f.default.previewControllPanelWidth),y),searchValue:"",defaultShowControlPanel:f.default.defaultShowControlPanel},this.selfRef=r.createRef(),this.treeRef=r.createRef()}get shouldHidePage(){const{role:e}=this.props;return!m.shouldHiddenPageVisible(e)}componentDidMount(){window.addEventListener("keydown",this.handleWindowKeydown),window.addEventListener("keyup",this.handleWindowKeyup),s.isShareFrame&&this.handleAutoScreenChange(!0)}componentWillUnmount(){window.removeEventListener("keydown",this.handleWindowKeydown),window.removeEventListener("keyup",this.handleWindowKeyup)}componentDidUpdate(){var e;if(this.disabledScroll)return void(this.disabledScroll=!1);const t=c.findNode(this.state.treeData,e=>e.selected);t&&(null===(e=this.treeRef.current)||void 0===e||e.scrollToNode(t.data))}static getDerivedStateFromProps(e,t){const n=Object.assign({},t);if(!t.treeData||e.selected!==t.selected){if(e.selected&&n.treeData){const t=b.getNodesByID(e.selected,n.treeData,[],!0);let r=t.length?t[0]:void 0;if(r)for(r.selected=!0;r.parent;)r.parent.expand=!0,r=r.parent;const o=i.cloneDeep(n.treeData);n.treeData=o}n.selected=e.selected}return n}static getNodesByID(e,t,n,r){const o=(e,t,n)=>{t.forEach(t=>{r&&(t.selected=!1),t.data._id===e?(n.push(t),t.children&&o(e,t.children,n)):t.children&&o(e,t.children,n)})};return o(e,t,n),n}doChangeFolderCollapseState(e){const t=c.searchNodes(this.state.treeData,e._id,(e,t)=>e._id===t),n=(e,t)=>{t.push(...e),e.forEach(e=>{e.children&&n(e.children,t)})};if(t&&t.length){const r=[];n(t,r);const o=r.find(t=>t.data===e);o&&this.doItemExpandChanged(e,!o.expand)}}isTreeExpand(e){return e.some(e=>!e.isLeaf&&e.expand)}renderExpandHandle(){return this.props.collapse?r.createElement("div",{className:"expand-handle",onClick:this.props.onCollapseChange},r.createElement(c.Icon,{cls:"list",theme:"tag",tips:"目录"})):null}render(){const{app:{appType:e,children:t,name:n,username:i},mobileType:a,collapse:s,userInfo:l}=this.props,{showLinkAreaWhenHovered:d,alwaysShowLinkArea:f,autoScreen:y,noBoundary:b,width:w,draggingSplit:C,showSearchBox:_,searchValue:x,treeData:S}=this.state;return r.createElement("div",{className:o.default("preview-controller-panel",{collapse:s,dragging:C}),style:{width:w,marginLeft:s?-w:0}},this.renderExpandHandle(),r.createElement("div",{className:"preview-tool-bar"},r.createElement("div",{className:"collapse-button",onClick:this.handleCollapseChange},r.createElement(c.Icon,{size:18,cls:"close"})),r.createElement("div",{className:"project-name"},r.createElement(c.Tooltip,{text:n},r.createElement("label",{onClick:this.handleBackToProject,className:o.default("app-name",{disabled:!0})},n)),r.createElement("div",{className:"app-info"},!!l&&r.createElement(r.Fragment,null,r.createElement("span",{className:"author"},i),r.createElement("span",null," · ")),r.createElement("span",{className:"count"},h.default("application.pageCount2",g.getAllPageCount(t))))),r.createElement("div",{className:"option-check"},r.createElement(c.CheckBox,{theme:"light",checked:f,onChange:this.handleAlwaysShowLinkChange,text:h.default("preview.alwaysShowLinkArea")})),r.createElement("div",{className:"option-check"},r.createElement(c.CheckBox,{theme:"light",checked:d,onChange:this.handleShowLinkChange,text:h.default("preview.showLinkAreaWhenHovered")})),r.createElement("div",{className:"option-check"},r.createElement(c.CheckBox,{theme:"light",checked:y,onChange:this.handleAutoScreenChange,text:h.default("preview.autoScreen")})),r.createElement("div",{className:"option-check"},r.createElement(c.CheckBox,{theme:"light",checked:b,onChange:this.handleNoBoundaryChange,text:h.default("preview.noBoundary")}))),r.createElement("div",{className:"search-bar"},r.createElement("div",{className:"search-content",onClick:this.handleShowSearch},_?r.createElement(u.SearchInput,{autoFocus:!0,alwaysShowClose:!0,value:x,width:248,onStopSearch:this.handleCloseSearch,onChange:this.handleSearchPage}):r.createElement(u.Icon,{cls:"search",disableHover:!0})),!_&&m.isMobileAppType(e)&&r.createElement(c.Select,{theme:"light",data:p.MobileTypeList,disabled:b,placement:"left",selectedIndex:p.MobileTypeList.findIndex(e=>e.id===a),onSelect:this.handleMobileTypeSelected})),r.createElement("div",{className:"content",style:{width:w}},S.length?r.createElement(c.Tree,{ref:this.treeRef,items:S,onItemClick:this.handleTreeItemClick,onItemExpandChanged:this.handleItemExpandChanged,itemRender:this.renderTreeItem,prefixIndent:12,itemHeight:36,className:"tree-extension"}):r.createElement("div",{className:"no-page"},r.createElement("img",{className:"image",width:"64",src:v,alt:"project_empty"}),r.createElement("span",{className:"text"},h.default("tips.noSearchResultsWereFound")))),r.createElement("div",{className:o.default("split-dragger",{hidden:s}),onMouseDown:this.handleStartDragSplit}))}}b.defaultProps={},b.modifyTreeDataToSetSelectedNodeExpand=e=>{var t;const n=c.findNode(e,e=>!!e.selected);if(!n)return;const r=c.findRootNode(n);r.isLeaf||(r.expand=!0),(null===(t=r.children)||void 0===t?void 0:t.length)&&c.modifyAllChilrenExpand(r.children,!0)},t.default=b},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(1449);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(286)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(284)(!1);var r=n(285),o=r(n(457)),i=r(n(457)+"#iefix"),a=r(n(1450)),s=r(n(1451)),l=r(n(1452)+"#idoc_iconfont");t.push([e.i,'@font-face {font-family: "idoc_iconfont";\r\n src: url('+o+"); /* IE9 */\r\n src: url("+i+") format('embedded-opentype'), \r\n url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAJHgAAsAAAABTKwAAJGOAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCyWAqEnFiDoFABNgIkA4xQC4YqAAQgBYUpB61/W7EKcUfcfQ+EcjsAdfR7LzsbUXscCEcLzo7GsHEAkPkVlP3///+nJRtjGJx6gKTlcv32AzSXwL3nIaaCw9LNNGW6n4yLEt5pLm7uQsqgXGR2E1uv23KrG1ARUKVpU94pa9gbGThVyrCe0y7KeT2uh/zBiTMhuZEZ/BQdKmocDe0ZwNvt8k0JwGUf1XGekKz+NTgJF6sdmOVLiJzFu4DNvNQ/Imb72PVvq61ZZ7ZuHHajKZe5dukOjNibGk+dXf8LeWuXo6aXR3nMJ0G0mLf+lbxXaVRfYNuwF42OnkTPX2X99/5kZtcCEj4FlsIBC8cofCEGML6c46KGf/jD3z3/77IlknBiZRxNjSMsoDWx7nnZgv7958Dm1PyCsEJgdUEmZgT8mXPfdo0Sfdyjl9sHBrFYgArgxRJ0/tzw/Nx6fwHb2JoYo7YRKbERJfsjNyK3ERI5RAVJwWIfUcIgDcAamAwDFfEElNmnTEXFBsVq1DNPWQEEDMwz5DxfbNkaqIPbZmnlne0ZdVSYc/3n8dmgtfMvhPAzCyLR3ViBBA8ApdHGl08/5qCuRZqYfMHlumnbkFoIhbsniM+mz83/h9WbSWbe6iQHuGJI7alvv+7afhNLtslWDKkkRLDWKUSqBhxZvx8AP+wv3xD6hb7SvsAzZ4FIrl3S9l4QnFeXUd+3KfUYiyL4MnKhhoBTprV62vt2uvr5/xA4WJv3ZoJrCcy05a0kMgBgIAKu3PoeoquC9HRN4Zlod88TdZLdFJLgJL4v6isj8Z/vVbVmUKR3UwByTyW1e691W3771eoMhsVesUl0TDtKouwqNn+AX+B3gAFJFReApEiXFBUn7qmV5d1UTt/fnd52W14QzPQkyXQr4bk3kvk1tp/yomnD1e8P7EW6SteAuWSQZL+kYArY/gDw96ZqLSBIY9IRvJjpFIsmhe5CLK+p3v+7EPZjAQp/FySxAE0BJH0HKA0WoCQswxigIIrC0TJIBaeQdgFSXpDUeJdKgCMo++ZoX3LI1YWcq5B7u3NbXkh1eU3RH1V1cjyibw1gZ1sD348NsxiqoRlKOx4f5Pgc3RBlaaFs7btaLXH/Z6rWLkAq+FLIr3dITXlNyfl/ZsGZ2Vlwd7GkFksIBkBQBkDKWgRJIEgdAMF3C5i+B8ouSDnSlxKtu1wxKQVKl2PTyVflUFRXlVeUpzY0RPjpmJZXQrJ7tbavtykl5jqGh3vJICIi0kjTNK7J/b9rBrn2/0fHezc/WmKYLOS4iyLmKv8cjlnXzZ+rsY10ihQR6u+QuSw/29r9v5W+LIUdA0hC1mXBu24GYA/OXBvBN5ESsIEJHlY3AGPRfX4W2AIRzMSCA2xggJPImBgwWjIHG6qxmuDBf/zHu8yOAwosaPCwXrfykFxweLnoo0aG5BDdlPN6EtxYNOAaE1jWR1tnXaY/Z19rsL+RzzApODw+uBbg+N6xp360fh29D/3pz/4ViFGyZqbYbNhz48lHEIkCi5VbrrHZ3PPM7/kEX91b323xHp/63z/VqqlpMXNcdpzwefOTsNmKpjVMUWbzkoPWANch+z3qwLbH1350xi9+r5kNejHz8Pj28dOvHbzZQqeK/h9RB7x7K/NOwGSxOVyJTyIhgUamM5r3OYWEJxCRKDQG3svaxtzCspERtYmpWZ5ZQyNOOd21Dce6ta7fPsouLQ9IKXD2b7MtOnT2tbN3yLLVNtvtsFObr9q1apGnVInUGvFwNtBr6TKdVCJXKFVqjbhJCxaNyMNLYTKo/XKweHwBm0Nof/w1SwtFon2Loejte10mi83haj/89Mtv//sP8nBRYdHi4pLSsvKKJevWVlYVLF22fEXWyqLsagWysGZVTm3B6jW5kqqrL2ponJeSnJQok/x7+Yp0LF6TEBt39dr18eiYyKiIkEsXLob+c3zw5ImhgV5V34GDhw7v371nb0+YKOB0FgYG+W8X8+Xq3/vPZzB8dxlPprPyNc22btquz4s4icLAdz3HthRV0w1TUraBWK7KvCBzIfsaPneXcoinVrvT7b1aGvj8/9F4Mp3NF94uq/Vmu7vn3aOZl8OjY6qnnnvm5Pzi8mrn5Ob29O7+4fFpzVVrr75m3foNG+d9ue76GzZt3rJt+7BGPVfLF4qlcqWayabSyUQ8Fo38Bjftun/oa7CNkmztewEMfEW73AV7rcJPQrAIiIKfRcM3QAx8C8TCV0AdEKgLBcRBA+LhayABflQPfgAS4XsgCb4DkuFDIAU+B1LhEyANvgDS4Usgg4Tqw2dAA/gUaAgfA43gAyDzWmYM+AjIgreAJvA20BTeAZrBu0BzeANoQVayyVoO2cglcy3JQiuy1BpeA9rAU9rC00A7eAZoD88CHeA5oCOZ6kRmzoHHdIbHdYEndIUndVuO8QD3yof7dF/y8gDcoyfcrRfcpDdcow8Z6QvX6keO+sMFziUnA8hZAVwoDBcphIsNhEsMgksNJltDyM5QsjeMHBTBZYrhcsPhCiPgSiPhKqPgaqPhPGPgF2PhfOPgXOPhHBNgFyWwq1LYTRlsZyLsbhIsNBm2N4UMnUcGppLeNNKaTnQzSGYm6cwiqdkkMYfk5pLCPFIqJ5X5pHY+aSwgsQvgDeBCErmIWBYSzSIiuphIFhPZEqJYSkzLiGE5Ua2APVxCXCuJZxXxXUoClxHb5cRxBRFcCf9aDf+pgP9FYLE1BHAVQawlqKsJ5hr4zTqCW08IGwhpI/zuWkK5jtCuJ4wbCGsT4WwmvC3wh63wp23wl+3wtxvhHzfBr26GPd0Ce9kBe9sJ+9gF+7oV9nMb7O92OMAdcKA74SCVcLDdcIg9cKa74Ax3w6HugcPcCwvdB4e7H46wF45UBUfZBzt4AI724PXaIcCOHoZj7IdjPQLHefS47BjgeAfgBI/DTg7CiZ64PvoHcJIn4WSHYGeH4RRH4FRPHfVOA05zFE5XDVt5Brb0LGzhOdjc87CZF2BTL8LGXnq8DHy8Any8CoRNHPv41cCGXh3HrgE28jqs7zhs4I1R0k0MdAsDTWCg24B1vQPreRfW9h6s431Yywewig/hJeAkvACcgheBj2BVH8PDTsMDPoEHfQqP+Awe8jk86gu435dwi6/gVl/Dbb6B230Ld/gO7vQ93OUHuNmPcL2f4AZn4EY/w3V+gdX8Cqv7HyzHb7A8v8MK/oAV/Qkr+QtW9jcsw/9hKf6BefwLczkL86mFBQrA2QXBEgoFZxUallQYmKawMF3pwLalCzMUDmYqPMxSBJit9GCOIsJ4RYKtiwzbFAUmKCpMVDSYpOgwWTFgitKHqcoAxipDGKeMYKRiwihlDCMUC4YrEximTIfPDCMvcwxkgVErNkaLOIChijv6yRIDWWEgawxkg4FsMZAdoC+UPfRTDtADyhF6QjlBL6g50BvKGfpAuUB3KFfoBuUGXaF40BmKD12g3KETlAd0hPKEDlBeEKhuWKN6YM06Asuqo7C0ugaj1XUYo90ht3aPPLT75LE9IE/tIXluk+SlTZG2PSKv7TF5a9OjpCcg7+0p+WjPyGd7Tr7aC/LdXpKf9or8Ts/7Ggp9s/TQW0Cp76DS91DrB2j0I7T6Cbo6Az39TF5A+mXpuW+Avn4njyD9AQP9CUP9AyP9C2PVkgcQAUyIginR5BpEDMyoCwwJV5YeYE4iLEiCJcmwIhU6Ig3WpMOGDNhS/2hlANjREPY0ggOZcKQxnJAF12gKN2gOt2gBd8iGe+TCA1rCI1rBE1rDM9pAQTt4QXt4RSd4wznwjs7wgS7wia7whW7wg3z4RXeg6AEGPUGnN3D0AY1+wNMfBM4FkQEgUQAyYVAoBJWBp5eCACwTjmISAM0CIFkEBBcDzvJRq+UYLWrAaF0j4JvhSO5Ahju5ARme5NLwIceGLzkx/FL+k30JfySrEee1b7/9f/1h2y9PSWkBP/cU6gpdGsdjl+lx/IovnpNGJStHwrXb2pMG9pFS5znmBY0vmvXbJilw92QvmU7nVxRjO8nUodppX2nIQmJSNsljl/Vs6jLwocdOSl3EZiSamA7w+p46beORVgiN6uTayuyVzu+wkeIktvfJLcE8aSqRwZa/xBUi1EeUeiIyQ/hiyiSa33QJ88VuYJJgqqMkl+EnlEv2HofYjv7DaXpbQHiClJxZQqeLPtFjG5+llWp5ps6Obu+n/2eNnnlcxn2NJWpidG6r0BQxJq3oAcXmVUFUofWoxVjLlcPigShFrOwnMBgjJVha3EM7W1to6ryTZgyXCHZ7UHPDOd8qQQYLWngF3C4pQusaCdBMAd45KK6+n1N6Mn6IJF2M3x52m30PXPXGHa+SypQ4R9oWqLuKgF1pyLVi0zTby6NzI8dciFhdZpoeTNv0FGna1dOz9G/CJyitu1M7VRN3w+BZIjziXnyMcRx60bA7m+Epjb5rT6yxSfhrWf8y6gB2MnqOSQHM60dMWy2ArNeYVepHVu141K0Sg1VdAb/fHSY9r6pHA17HDJeORM6o8h56DD29o8wZWT1XuV5UiRJnGsnvETKkZzdXN27sN41fZ6wUus5kGE5KAE2LrBejAzNyJZEML94AO6JIOUYdoiTbChhAxJh5248WSsi3gUXasm6IuqJdNwUCCoWClmjeaXy01s9EW1nuFDvIiRYL1ynIRi6givpWYZSykIh7xZkcSY6vJ28446sG7K4oVGFbNSB3VB2sQL1H4M6jXYMLt1KIOz6yI8A9T0PGPOursh9eNYuqPw9Kvs+X+XzJsmELHI+XLvWRwhmd8cf+XzeoYhnQ7KZ4+K6swVnFay0UqjMBoTsuPy4H553SzEx+7/Ix4euFk9plrwhfjx2BEVMPHF6Q3nzAWlVFvqGhALQqeW1jT3kJbto8H0/6Q6qsawyXm7kmBfR/zfk4mlIehuCijTrm3ahlqeAusoo0J2DCVOLEReDj69O1d4SEy0VVKUMi9POqwuLAupgAZue8Ufb7ffBiqRy5ZNCBcyj1fUAD/b1T6MtcAyQdqoKKOSdBjW1hhibajeM0bnTSheEy5lhzxleuQKW2TbEpjayEbZArYPJWJaiotR9VJIYlkQdbJGEQpRGLicbth7NT2kd5ipd6Ve9L6h6Hzj9GqOaZEZy7nmX474jWF33caEEsRt4FHOsgKeqEZdi6nli+3CV6QTaY7ngmKpfajEACcfzi0GygRFNuROHAIsz5SVDduTqOpj5xFQqPZmzAa+eFyFXyFHoMgCZjtZQFt/DYLfcy9FqjIIoAiCOEuom3TmBnkBMWpM6Kobz8JslwGrv3GvITBXbSYAneYNKZxd2vuEB+GH9QjDEScKOD7rUtMoV18DETzHeX7v10E8GpaSIaAUZEgPz+/RiALPS6q9vjrVG9fTgJw0zTyDIuMjWbCBFwfT+G0AXirZAfSbDicBR1w0o7MTJJJBmtWKeRvXdNCSyUJF+JrNaQlqvKbdQFuID6PlEMol3RjxAxLuJ++1PHzUvkyg8n9l9djjmyWc1nsdVLVdhO/HsJtOKaQm6d/vvGyz9pnsA6Y8069KXMbNaIBOZMXiIDJ/HiUEw7Ayk51xdSnCSR633CZNn8rpxp+q8KTIPUWyHuY0KWPQBhiQBkhmr8nBoPJizGGuJIWKLM9zZ97/ngOat7LCthp7GsxdHW3n3A7eigFQQjFfZ6cHu8IAwNNLUnEE20CjaVUo2gZaum3bwnpNdxn1Er590z2RKTqLUeqaqLLam5M2mcNO0RnZDKb0auIFdWjMa2UFkfNWyiwP5IcOv++E0qRHCfTSueYBOav+19n5AIC4Ta2ct08GNG6xLCk7TINpVMeSgZWq5BmJSYE1nwifIy/WZ5LpMXxTWI9lCOa8B2uqFzl8bQihygv7/nQvxghyqRoBFlnA9dbAc9pUIZ8ZFeu/TptS/9bRqo4E0qO95/12e2nl1EbV8TcaBzxb/ygxg6QFw0hxx+6AaKSJhXMZ56stn+P41+n8eC3Pocp2V/R6w2iSi2j4mERISmAhKYyYt4N91VRad7O5FYXNsLg+lw9BX9C4WzXtim8oV6BuCTaYblyIyXWO3BJJTiPG9d/PWR73z3HJVb31Azsg3hJX6yN5iFDk0jiYBr0jkVX2YRHP4OlEZrNK2zMS3vKo7E7fsFQj6a6w1/+nb1u9/fau6IDifZgsu3hsWgoHlrtFnJPd8Pvh6whGaNqziqMKdljbkQDK+7q9kCJRzXDtOuaN+7S7E/ChoOW62Zwi/2V8HB5n1d5mAc8hq8TtYJfKui0pW0kgSxSTlLcu7P8OW01KtUew88izliF6d02LEKii8IXuUXgqld8g4VXJ1iRbMSSaRk8jnpgxNugF9epapacNkLH5ZDgZSSciUSebX3/XLIGa5jPlD5NXt5V/5/eHSUUWUyO6MePu1C/9zY+7DbVb2vtRPN70vOddp/iO1xAI9ceKPaR4Z/WQKQicHwKhngH0SGk98ft9udxzfzO/X6451X24PnMqZeIDPzwZJt8lZ7SsH7KoJHm61zGwlnadgWSpwUZToAuK5t+b4bYa0VYPwHaTTO+0MuMA9luaF/wsq7Gj1oeXGB6LRuTNtohO2ZFgaMnzL84j2BCdV+K9ZVA2LJLHtzmfZS6HWdw9lhz/txdYuQf/71++4Pqd139qaStnnAf65+rstt+f3hJoStoIz//Us4ze8KybiIKl6KMUB+AjqVYenUksx0FywDLjMjIE6ibCLdenfBjSscMdxsRfYn93eLOaKSmBTEjZQJhRoBXRSLSueLomeEM3+bSrvLktM7WRPKigeELQnOqrzmMM7KS3mEyv0Jc5sDKcl4yDlQ3LspvssGXhNNQ/HUPDGaN6dGDJZYQPEUXGSbsnh5+ftSoRrdGHF6dujSvDbvTql7fBmqr3mIOuxPkRQ46GyJ/RwWgYCQoIj1ndgOEfHDbs4UMNwA20ELml74wDLxFjapxAVw0+L1DGDI8aCQKyvAmrymC2hRvxVpzOkxoeTIfUT87nXnI51xiSQTNQAob6fbb3eiOVd2MxZIKgBs3deRg3EYehqjNijPxHKXoMx2kgdkyWd0dd9cvPfSYuHLCrV+EfmL2kcprn9v8+Lw7JvXqIpj7GtWj35JVCN+o5ppGTm7inK85Q+f90ucuHhNCovMXcXN4hotquY/fzHQOLHmS5j6j8w9MXAoxz/BBb6PI1rr/kApvENHeyf2sqAwFbdDzYCzScmKDXAUKPbT1NJY3Ed/k4qcb/EmrHNRoF/TVwiIfT9W9EiL95c2Rss3/DDdDpkPmgSOZAAA8kWySXp8UkjXmQbD9TVcri25bCwvYhxkgIt1qiz0fva4j5fX4hd/Fj9O8++n2Hczzg9nP8hAHpMbXCI3+jFuB1fffQQn2sGBSeJr919fpCeWV0LIda4r22uy1UgiNWm4jZPaarRF4ppecbl6DSXaMfMmRCGC26QO+QoAropxqP4qOY4SXwYt33orQxWqkCGhukd0avEBid/sAQqEINd/BDYP6rOHRyG481ueVtL5Ylq89bX/1tuhhrq+pP1vV1q4IrJ5D0+IJQudKB3GHWcw2yXWfziJPJoHWEzvpRC2u0aNdLuK6smOrAPc9jbi8HR72b/5hLrTTgzHaQ+MpC8xRd/f1XhZ5rm4Ju+yvYrgKZveMUcMG8KJGKJ+CfMInjIp67na6oxF2gF9owDlNjeJgGkNmqHps1dhAgsCrKHNplfbgPJeM7biV+1gUj7/+Mq0jdWeBcyTdRgtNKjSvfa1Fff80Ik0hKAXGu0MAwDyFcJkRmtWoXuLHEFHo0QubUb+6sU2VSPqDAN01oL4IvZUHDcxBUTcvxRqpD0KRu3SvNFnlm6zHtiQDTODH6jNST3bFAeJo6tuiCUzrL3k2z74IxNOnZ/pht4Uj11vF3LLsxzeBVzfVgbqBi1bIMEddTiRrnYipXR8JR+Bi9tDjkmz3+ciLe2z46VpfEv+u91yt/iLpzv8QsRfI/rUOFV/3pnMNBY8s3oONGI3GHq8I5rA7ZyrHxH8xY2DOC5bBTxUKKPwyxPRxIxImFGdJVqalhj6RnlrfSG1siuvvbRjj8tx7K/Wy5Ks+mq7sZ7r0lVI1pKd227Z3hQxmfi+tPIywjJvqzlCEAMEa38qmyo/AyMFEHH8Tjb5zE/+7hzSLB3NYN3WsJkjGp0lgJa9177ML9RaCbDmzsmvJG1AMLK9mV8cpkaC/Kl+Bk08P/jKhR97d2KFLe0DR52zZHw+YZH/8J772l40BtyLG+2M23cvdGZer3Dtw+GTjvhj+s6ibflBJuHObI8N4v9+bSCAD6fDmtsm/XeTmUGhoQ1Y2Y+BC2KQAxQi0dmEndMFA3hndoijtyBzP2USYCEefljZLY/y7fqVMdIRxgdJkdUytzsw54JHXS5UDyI9LeEAKigAbhZoQXlByWf8cmR1oYI7bEY+8dyo0QAPukAa9V7vyuR0eqN5o8gAN9+a3r3Qnd8I/Z0s9B63kz/NTRKc5nEEI8zoKLB/foC4XJJcK9/q0EXSk7dXYbV6sCO4CB+P+LKuvdtlFnwgwcP/dP01oWAOJeUobDYZ9CDDZNjZKzUthWYHHIf9+v3/2K3pPtLc9WXQ5JESD+mW5/yZyPJafEjzmdymdHE5X61gZqeDyUw1Oy8t+jy3916fqg6I1NsZsz/4qDc7fLDz2Cu0KcwMWvoG/z7EkGi4U+nJesi1HrrVNknKky33NCf8FUTFSYlU6gwiBkTliDiHi5AA3MSfWskRCFIPWE5JtiAau0SMy5h9Bp7F9SnAF82HxjEhOAi6YNhTtsebujRbtNTizQFSXaXleelz2qefvy+fTXfiyp+2e/nFqALjKk7rbFLbc48FqI9nLsjHafVkyfQkSscfMIf9tA3EjDBKLn67xuLmafgOqfWFZZBZASH91n41alqBx49u5gwXWAndCr6KPVV5s0H5GrlGXF6G9h7EExRXE198lda78AZOquC393wtbI1B3uGrPF/ADxkeMHB0Wo++sCNQzyX5Vuj/icGsf2diV1rS/SQ2CsxHN2SPu2E2sYhpa+6ZLOqOlayX6K2R7L6XjWwEg0cPPoMpkx6vPZ1vFr5fEKq/0lrjtTTfys1J8Gqyo0QWNyPYGerh77afdB500szxYZIJuoXLr14jDQfMJ0OfoeqtZ3h7M7NxG0k5rrqbb2XcXNxeaP2oiPloyEME1hRUm07d3hJ2AjiAooSskDD/9fCYNGZRdp430DYmYgrpMlCWxbK9wk2cJbCHajWQ00OOn7HtccPe/XxCOSSprVWRFNYpl/yGbWRrUy7aWfkvN9Iyy54eJwvO2xA3+PitJREwil4qonIIctJhxH8cQcXR/dnhk6LytDaRAB6sSRJIFcQt5HNvnLvd1ZYkkq5JbjRjTRU8EOe3cD0N7vwH1e09rCANVHKTJb5mhgZVRmqiXdKrTkgfWTs/us47vSlQsPMTDJHk2nxF3skG9qi14DmPbD66mrQP747K7D2uKkUXzskjsljWES7McMIT+kkTaLacxDnlbhRBuTmhNyW0UdAaScabek4qmgN81VaDoc/LxiLXJr7Ol+yTU3piAs5eZCsF+rtLBFhPpbmvX5kbhVF4Jik/N0nc59qr72Q9iq2YAW6+SbciJ2zQ97CnWpWN9h9QH7nSMQ+pLEgesLYJz3FRb+whkRcqbG9hVVQSrJpyk4ZwuwOacfWVwG3Uw96gCb3W09uRE7++cGs07DeA6z8TrCsWIoewWkjZNKvGyQM0l9sGh7Pqgb01nZbmhDJNLfCHs51V0laQ3JK5mvA6wdnrL/1QYt3ePhf/mAHsh2TIYfHxuEeqgoOgE07i7t67pcnqnBP5LPhH0L8GM3v3muGOFAMUgVe+gxkza5zW8IbnqObanevE5x1kUIYOxmm/pEkjTjlOee0XnGQSrGCUe+n+AWfNA9t39BBiZoHwxg2NuAMLIUGJ4xII2eo/akQn4l/l9X9S4sEBarqFgi56LDG7SWPr+XnCgpOxB+nUJpDRKdgamXbxZQkVJMNRcb1aQEdltW/8ukLHHMMMwAI3u0cUG2BNXLvdyJ6a6RNdBl5L5vvooUtXwkrahY3jAVwbbo++YpN/tTITusPW8QsmYjHhO8xknCxAN2u/yAGB4oiJGGpahymjAZrJ7zV5EQuAPW5r+eZTwjGhDEfqMq04ZtyDG50FJLPcmSLWXCxTJNaaaK/X+ipmXygOjBzyKatb7ryl9OZRMPxTbj0ZGgLVXqsba9m2iJmoq16mnaoRz8h3gE1s38aDadY9+1vU7PXqDfrXkD3Bh5lIrmmrOE5m5rw4TKLROM0bFNqSdEoKjT7O0m8TnZx1CKJI0SkI2zJnEeMRsPmk5YiVLbKJr9HUNBV1nXZDHxPGgKxUyWKqnDeTnYWR0nbzdEk8m+dH9dj5xst9pS0/3bD8p5h2YJyBaM/4n/xm1GR+jjnRFmGxqVO0ePho50PE5qsTscHTk8PWmIXycvZkPKTfIQMYhBYnN7bimTvwv9y8+FlYW8lKwEdLmuXQ2/aT7f3YJi2THuLjO8vNc2hmjDJZU3J7D4qSnEwh57Bv4nWxhpQe+BcsG7bZr/dPCtt352Rin/4kC/JvHmTLlP9ZW1AkJ4DL8chVbMCKDUfT91Gb0DJwg+9iux9xiuJ3xbCdsT5n9ciAAYs4vTu1M/cOc7W20uhAz7WxLFgb29A61WweoLr3w/rba0q7cBQ+d6alv+TiSn21cSq7XjjVpq2IaIe8mbQ7kc7T4U9Xxq/WT/RdNqx3ouKPPxzx5U59s3ts5eKMmeK4xc7KkVCNq1tkeZB3MVhDaJsHikqFE932ZRyBCsT8lNGE8urGheGwBpAMRj4f8fODZF9xFFCuTzGG12hBhc5Dly9qxG0+ypYBEiweVBKigAuiwtfHxQKAeYMxiJg+30i0AdI0WYgwOgtosl0GY4AwAaXwZlzBGAGscMS0y1aKqBGwe0MVmgd9k82WS8Mq6RYTEJtEbrHIMpI28QdM2ay7+xKuhmoboK8fiJtQDaY8nNb0AB5RLm1VU+kuDU0a93Mjsqk2fAyYOpn8EWB0rsXHgc1A3upLW65+tf/KKEkS82jnXcr4+CzTDgZJBHhYa4cHAGxFVP9qhLPdldYekVc0DGok8k63ByaLxlPx+jZHNZwFHqOZyn8lEQAWxE8MYgl6yUOme93064yB5gyOv39t83EzZATlM6FQvW58OxEGHA7JcjRrbd6LnjlrzfLrBQ2QDzQkHraD7SlsulhZqcXHqdXuilr34k+/T76mYYZ3v2rlJISEfyNpr5RCr3c31VdC062TWvJTmsYAVCtwj1i3BVD1wCUvSFfWSwMOjSgOE6Vg3jcbUDVAHRmChRd35fV3iGnkFyJmYc7/UUYYRNsLF1sfGK37g1TTSw4gBhpEsIIBWnsovG4DS7su2gjis2OOz7Y0grWZAmETvdxk2/S4SM0wdhSARwuWwHCjbWh32R+QjkVSF5AXZj1YoCEO1YX0CrNX7OlUa2ZOJ/aqc5wJollnA22j2Cmg5Che85RqpGl1L7/9EJqskduAecBw1+7/cEP4Vixxkbdew0qNc516onySoIlIWj9kPgrjHc0KWEWdBIPLUIRCAW1MJ8HtDWTgZRs1rXOSmrNNcMYKIytBp9wA3DY5/vZNpj6UTbnlfnDAtITja9iVQz76wtYJtTuNOm3CRkWa3DARNNzC7bdx53JWdsW+T59k/BGQP61Wssor7KqCOgkph4VJ9Jvj49zj1oajzbQolc+3Nhxt3EJrw42NI2hbM8QfXI3jyupRudPlwk6dq07Ykm9DjmlQgafTx5UcNSzXQOZU3XROj0sVaWBI97y1wD6xu1iR9nMInpdmcclzA5LckJu5m/dnRS54nco0uoGfERQDWZzn0UxIMHibAM2vdGA45Rj9cC6zHVojjntyhqitqKzu/V29Ws8O4Hn5G+glqEJH/HKBXnIgSRrARUAZjUXluCGNTWJkdatHWc91+vMzdFd87470zo3sS0vdpc2NlJjx6TBBS6pbb7nXY5NRYg2vKR/BMu+bPLtuRkpiA31MYJxMDYckRAI464wNpfLwbKfhFIv7f3rX30hc7+VW+w9f+pwKLYjTh4NIs0x7REHAtwJlN2MdK4nKoeJfQH1eFFlgsZ7FQeacW0Ryphm2bSY80kvX19ALjVSeq6BsAe81tYsDVBWAa9THcvch/SkJnsHp7wYUTLeuJ9AQemLQjmCKxm3kYuEpFRdV7XnMNDMjANn9uuDUp2hMAO5aEk+tT7Tgv38fU7exUigOrNeVCN4T1SRydlBNGud9Xl8BmR39ZpQFNJI8isaLLRukbz2IIo3/xdM5BchcW3MVggDupdD0FtsRhDwX2Mwh4QIQ+IBwHvA/a0/BS67/MfyV/5+HaVCehdiDQOGdFDs1xyJWluGhSgXTEhpPcztzinxetcUvSyjRdAQ/Y3o6tgMVaFj34CZgCbUYIl87soxvKLCHz+SZKuwOrrpqyGpVNUXxQsyZXZTj7F3xpW85ff+66zuAU8sZo602Qu+QNYBhg4cuVmA1rc7IHCQvmt4kHHCLgMLSg0eZbC+IA1pZ+8v8wmThEIWvC42ftUp0woc1ycumwYERFlj/ME96viR4AeGdWwi+rVSgWNPcaGPrlVfyCVaZbEL4QXSyjNNKrkuVTaRPAzL8sbhJIVCTR3lbkRXFnIcIosUHtfJCrTbQGwLThplY91och1yIWnBqmIkDu7nnMbhpXUdR1TCtZYXvY4DAQ1fh5RCIQdmCtsh5JMC6M8N3unJnVrnLgXXNykegXt2RCm0fSsM/9Zf5ohVMR9BrjO5wcBNw/XARjqVH5UdP2SDCJjd0bJzermVuj9doEADN0k1mnLRyNrSB6+dQK843KbwsBEeUVgsRDgq8EygfHV/hh6zF+sPlql/nCzRXeFpwjnNFjhycfl9VsLrMyhq07SUXICPItLxWp7ccgBJiDuIMC46d6sHbSMP7H92c9RgJEIiLe+8Gn73Dd9L8bq6VizMoH5qBeP89+TjQ/VCCpBzwHuKTbj6oq3V8QQoHka7Mnd69sUOLxN8rxn914RfzremUDSbhdmEw878RH4mXJdXUej1lJymNNNpSi6VESlBiqNqEFx1lvzWjJaoZrzVgVssUNK2wptcOZD7C4ZCd/ZQG6KX+NmD8NHQXDPQO0F6j74Dl4QyOf5+e6p06KwsS9mG5pCUd0yVVWg3sUjCBnHmseEsEFPzK488C4TebXmuI08ANs1v7KIRN15WavKj0Kg+FcDI/wyyej1xyVipBVaXBGVw0W7yJOHiYHqyAIg5wXojTPn4pAuVY1qIUe7z4/3WHWzqC/KJsDpqtFr/J1nDgjaaRmcQ9Noo6nc2qRQUdCUo5sU1VsSXOF9sNTnnN2nhi5GJfO5OUoYtS9XKnlSgPJGlRCoWA8g0r+gmc7SxM7S9mQASKCODaC3noCBI1D0FPWTX+UiAD39EAai7GIeQQ0TYBbqCHbDArqMZKLHHxnj/1wpkURk6I8TMT7a5qb+8VwapCx+6n+W5S6gjDsZ1isPfYHXu8uUm53sivO7LxExU/cmNrbsjR9f1n1lwzaEHdIy7X1oivwXmC0w7B/ARQ1Ii+oAAQgBqBXOPZW15cgfwkgl7ohwQgqQewQZjShjjO2kUnlsNbjm8zYFR5KFsBH5cItE/4gynGL+YdJn82dnESsI11ZOiFJywHUsnVmz9dkwHpMKdWdyIbY+FEOl0JFbZmMrOTYztIc0SnZT8CGscLoLioYMBmnD+ik07MdvwYirYjrPXJyNBOT0yHyv3s5h3CeRsbXVuhyu6I74u78ny0Hotry2lC3KVK2tvhw5n75ymfSNUqOvXVTGO3ECKOF9BOMb2hgSSIKx66RO17wvKZWapxxgbADpmxzRGUX7XzBk9LmhwvYjztrbOuqHO8tTU8+SaTFCC/wrvUE+2h2Q4nA3ZHeofdEt69LVeETiaCzryFXNkxWF3/3seNCqLONmbsKw9JA4QupiNknwh1PKf7QrGpjyOHSJN+zuhvjn7NvkxHlc28JslEj1n1tNo7eTHfWtJKSZm8ohT/BBY7Z8lGOQzckJSkxCpR6I14VclmqVxt7Nx5/wTbYvXPnQ2pQGmtDKOU3V7edwoySnpH5q/1rBDQQK3zAtS/12CkkdwsGGOK7zr1eGYiHi48RqIog8/Vzy10yzdpKFW5i5sTMPcMXAN25DqFvCCZuTnwvmUAJAdc3E8/tQ49frVzVKrcOklMSreBSHsUV+OqAezRMFQ8rAbLgO/DAEMg/oWElF5Zd4sEI7z4MJ7av/lBOFbiA9byddmpwhkm8jXvkmOWY2/Z/KEfMcT2JnYzPR641weLFZwGMofsIN+7RSs2qADEvoa6YeWQZJ3cewUcZKVJmmLruA4zZMNVMQ6gEtebvkHhSRzo/jhysxSluVANoVc5fENwG4lQ5xziuwARBhG9gLMaQlb3LjbkqxQyX3HIHjes5RgNP9DWhbndUQ57UR0GXFQgNMcbDssTghcE5sYp6+brkQjRmHogNLtnDbxMrrQY5iFXKfp7cgDHCaa+gU1erxItinQTndS3mZqRPZUKONnSRuiEhk5Cd1mQmSYlgKCeo+wiesiCDJ2mqMu5PYy2ESzONMSU7xvnAn+rX459RB5hzsIdKY3MlQTTVSXiO25fnUiaRKoS6Lg1ad+k+rgXw09crQvj+PF9VBsC9gRMdJxxE98hSb5VUR7ei3mZOP0Q1KqKiFDOgUHkhiE6sfhiAH6EfK7PIMPlUYD7klZzSRof+OSTHoBZ3t3AEnjC6qaLoVNqKH8JoLoDIcc3THAEcFMrJTtXX6lq9v/CXs3a56o+4PHbgATXmvVNi4s2m/BdIcmSrduuWpDRHC8QLOmkn+6I7UzUP2vJUP7ZlbsfMwNoRtfOlVcayszTEe59WN0vh9pUbzJju/MS+mMe8CsmhmnGVldaNtbCeVvdYfS40KouZkbxa2VEb/emU5l4clFiq7tLh+e/JuBigsDdt8KM5u3Krdsy3YODQ32EnxJjpUNv40+JpCrPz7d5L8yHP1Dwz4jMwevUjQUBq8U5V6U5jeqExGsUAYWEuJj2DFtgwmdzErQUWuMjkddO9CDpxC5orDCF23gkASVzOWkBXB/BS68RlPXQh0cPCpP00ND84TrRipgukJRX6gwuDd/Rnkkk47luE/mo7B7x6o1vd7G3G0z1BRin791Vdmx1ItxsS/dQ5zdnEd6cemvPJQ46ID0TsQ89mA1cuYqV53u7mAf4RRhkRAzNjeGTxCf9h4fz27SoGgOXbqEcb4g0e5onM98BOHLx9I95EgH+cLrw0dA4FvlEM6Mwju7D2X+0XhnnSUIMjsLniz1WdE4A4qTXgBjkHTCN08YvdQk4n4yMAj6i7stBWLv9wThGfBPrU89+k0YHNz7+Ok7zKI/jdPIHOURf4HNW/JMDVunKTdmXn3SMwkg1+C+CUZqf5jbxK4+m3NX5tz85ZPcDEm9VF3sPkm+hCGzmO/NzC1fmFsHhewt4sBCBtBRCpa28CpCiRluZptKbrzNYAHiieaKPuYu5gzg+NvfHDz252t3S+lPcE1fllflxtvPBTa/4tjTOBdatCYTx3Uf5ysGM4xzlLziMN7h4WucF52U4h+afP7/kpH+6vpA6tvPacFJ68y8R70AXHAFti5nGCIgPm3FzUMPY7EcT60/MOzJigrv3jNnU0xRTadtVgBFoTXzRJtZP//Px4BER038hcKKaiiNVlhyQLTs+IFlV2thZx46r7Q45yp/FsaZfXh+5cnOV3bvuPvZ1aVI0dnGGW12Nrk4NqSds4Hat0or48KZn6ZviWHOqxSv096l+Au9q9+MNfXrdKqXd9j5WLRIIsxoPI80VVVyltBLYFiqX5M/csW853ODiC7dxFB9LlJtdEwMkJ/YYYpV1IXrxoy6UQgZdGqROUy7DTKASRO+FIgZIPGRrOoLmD+r3DOlZvewyrDFhkk9JZNMpI/Y1sjoPdAPkrlZQM2OsLSoyTLLJzwP682MhgrFLDhJA80KOi5LOXHG8upJ7xKiNNdJb4WqMWoXHPvyfpuXlqDBSqtmHdP8gaGxGr2jazgqjLNxJX6fBnsycqEwc4Me5+Tn+IprNRCFr1klDFkQ8K58x/hVor6fO3tVV6D6OzlxAayKQgm5hUeTreT2jgSws1AqFbBDkMe6jjKYk/EhDb7asiLKeCmSDuFlT7hqDhzMKiNn9DtE7XwSfjBRRAsjpjV8b8za0zoYcD8sBdzARVWXgqq/kC9YD9ptZx+L/TJ+q0MClT4YI/sL835S3odl6ne8nvxTWNjf1XLY54d0r5fh6kzSG1ssGWYSBGJuFsT71kq1nlHn63xEWzYWac/OXeQ4ewDsG5mbcZVjlgqgUciWeq7Lk0td+UDzjC6pSFZ1NnczLaUeKQUmBtpaUl7nP2A/oUcbF/7z3wX8ADP/r5kf/x4Xz+M7jx4TD/vf9D/8TIvDvN97/b0e0wsb0Pvt5s1DQC8khe/EpDw0wmjN+4wtgGAYh/KKFyeZIm2lzcemFE1mcFN0rfnNwbX46+qfJO5uWcfwGokRXZfB2IESwJbgdOYT3r9qCm2N2DD5naB6Dtz9+49an8M5nG3f/tfxQaTzGn1z3vtUZYgwQsx0Ecbon/3/IaNmKKlxR7m0/bkuktKpdv57rUIZndUkFMWiarK309Vq8QQipIDS8NEmLRn5Xsvi87myn/HRpY+gTr72xPL06ELmyXoW5u6sYE95qTnh/azi5brBUuyW9d0d8v75k31bH9AblVRafp1DXflI3xAEHw4DaUCwNDg786U4+Tn1u9EtHhb4WEjHKuot79dfjODVZiwJeV6IPFTFOJKoheZd1kM9phpM4YsnZUVPDcQc0MwtABrPmjsar7FAyVsQrizbHH0qhIMbXLkl7C2iSEBRpzf54XwywOAs8Y+TAfGTWFonEXm2BzibUIAlwZtgauvZCDrtiBg5pGCsYPbfaDRUc+wIzjUHUqxi+O9tJN+XnyoE3EEt0bDr4Ja0ICooMMnlPLmtYsUz1EfZpRhtzp9YhPk7rnimneRgKBMbFUplA7NLzqZgXLP5nMYBzzHFqEqJwMekd4ixwrKy/vPxt6fKAbBe+O3bSZvsCDsU0HEjJo4sz6wy3M51bTLZeqI5m6IJRSAjV4g8i8IwhgUyNlVlpUA42keTTS7Ub5F8ZFs6AqP8ahbiupzl9Oef7N4JbjG+hv3mLI/6WOYxxJiiAdO/uj7cubpUjvyh21rZxC78zhIn4Q+GsV8UFDXSr1941+Gpo1nvsfUY0ZBCvv+4T4Lqfvjd3gT1bx/VqlzrRKKD6GZ22g4EACHICMc31ATWYSSWwDllYOYsVceeQbi7JNbsRnmPNo6UrfWRMtL46pFp1z0VOHGakDcB3Epz2GynlCcE35tPl8W9S3dXePbVoE5c5mxtTTR31cBHN0NmKTBSakZHcTSI1qywtVkRmocbxMnxay+rry1dx4aAHNOcJPK9sNjQ4eqJDHvXVrXYoey0hkJBwnD2wZpQZMjFOiH27oacty0OjJkdDS25uXIyzRwGHqWCRZtuoCDc2Cxgg2xT5kHIUXz9ch+ZSetCk+tEy0qTrQHnfCeyAsA9eR847VEl9bGxf3sFdGZ4rHn8b/ZQILK3++y92a0/HDuwhYlQnBYSr3gzUCK40vTvdoSsokutjUkwd4SN0rKTYBKCFGc6vLAJ1JKoCcVxoITLJfO+o6QH4VvILte5qM5lkZK6lJJJdk+uYz958HGHy2kxcdpaP7CH/ZS6RDhY9hCJcxO3i5GSZGJ5cQkN8n45MvJhDg/jh6AXqf7iHzn30nFRVbUU7ZjwGX/V5YLaNmN6Fnz2ePLvAvYjHNmyuMySRG8jbNE23UJuWLWdZ2J59wyfbrqMUE0djanhCmsfIwZEJmSBal7TAYloBhbUJwGNfz7o0iORrhyX7PlznqSAW/oZZstx09sxRzak7g4a3e+CMj7IzmaZhgezsBn+1L6WXxMQ3xBUgxP58+tzJuQZo8cyyGhfUV8xQVRLoJN1rrss4BqRMo8X4HAe/kJYdiV02wLCSd5d5/BkXCZSs5W8Xbst8DYuISH90d+3tpBwEDwkBrzCh52VAWzrkyrzJ9NxbmEPPbCXtwomKwRABh24WfDoHlKeRXoXwqA0h2xDW1FBWiOAWokmHjlimeLMTRw2W5mlsF26wKays5OJjy4comjrWHQX0tbwb/e5b37nMRLT1rHi0b+50xCwgaXYEjAz2KemcvEaR5kOX935azI/LftRoMde/06aqkxJJXFut4TjtlUNah+qrHrhQtmVN6j/jRt/3/AtfTiaUaA6vqMXnRtRF4WA1Ux+WUm5ld/neTzcgxianNXCBGygO+mw2pIGGjLio+LoW03CG8zLKd7+myaMApO/11kR79/IxwMg8zurzvMzetTHQuzGza3pKZvt2WUp+PjOV4pihtdATY/w/RU2BJRjCRVGNduxRsB2irPoz97NXLmTisgC15ftTP1sSSisoFedh7pDpar8vWe0BusiMbSQXFMnXB0OVpcFyCW7Sc25HMGaW7PWOyQYQCvNUGTTE87gf26t49X7RgzGjehY3+YcxP1l0nAw/2F67JCyaCOBtJOsDV7G6oJcgteaCsWiDjf1RJud+6/26t610mZ+95Pv2ggxJxCTtbOJ3TP6g7TvE5lMxIEmqSLtk42AVCymvFCq9C8YkdxccZJkQgYWq31mjcmfddNoF0VlNLw2OE6xbds77s7cltld0uqfW0f6yzOMcu0zMmfd03sqzeCl1bPcsLdJ3uOMymdAB0avw9MRFJrOiOJ2QGE7xgvWdZn5QR3KcVhBQs9jtwmV9hY5cGLRy/EePf014C9FEbNnPxj3ovW4/jNuY0L1zXdaX6vSpTkLhzzVbqA1/XwjgtY83VAtXmdJ1rVbvrGvPqcux0GQEoNO2sO6wMDNVF3gLt92ruzvFL69m3qQVA9IkgXUt972BysOAGmNTIVp70L6Klao4P1JTSqf1NumNTrpam+bhzg1824DHNUwjGvtOWhJY+ycQZjux0M5329NwlaZnDXpkJIpqzXq9QeH4gSFlZ2n+RoYPSpXICevAWMBimeXpLE8KQPfRALbDZui5pXLIOmmJhwtwb7y+uN4Xyh4Fi2v9H2Ckx4Lrc4urs280Afnrs1Mf1fuCSPvoJ4c0u8AK+P3zFrDPoVlKQnlmlXlh3LKaCdhGZQPMzp8VH+Kv07Eat7O8yaf3skgDB3/3Bo0+F2WHbOHH5GXLiT8RwHciiyovWdn91kLg+a3vSGcZuyCfUNKMaFsGjxdhOoHEEJ0hXjbqq0tZwZ3JZtFmmWoN+yc0vPMZXO++4cOAXsVeck0EI2VBIttnEIPQDFocScs8b7BDJAe06+g3Ltgut/8x9Cfz4YA+rxPeRvjUjyCuSSrsJ8a+jlAxWrdESEEpmlKrlUWipNl06LXEmETVjAr3RhePtiSGdlYt09XVrcUWepWbTzomOmf1u4sk2G4A5NteKsyXXBAXpYfu3iCYRlF4zSZrF9rlSENdv732X5oXe/mITjc9GIjKck6HPO0WZHHjLZUtnl/wy0PKbw/7dExPMeX1G+wdsRFysxaK3Jm4V+T2/nqqdADZaanC3rxuQADp3aBm2qJ7sKkhgHm6PR96sXFwG9q5M4Nt+kh3B/lOI9L3Y3nzus4/TQmsPoxkoN/j/fT/39ah6uqCz/th1s24GAa8n3L3iuBJqwu2SQkKIik2GH9q+21btO6g0yPvSyYpDMjACGXSiZv8Q71Aa3dolPTtLnMgLhqjfcqXU3N+0g7e5b/TCc6oEJpUR6iwIA45wllP2fb4Pva1u0tSTDsN5JyzQe5ZbpsWFf4Che4UGqyXfUmr3xfMgu4xyDfcBsZauB3MWy1sE0GZx2YT1FKbvi9CCDzqhvJy6Q7h8U4vlHJSAQIYE9D5uDkk6g7B4eXRLc4T8dM7mtxvM6dHi896J3rELzS0BkZuc9ENMuGtZnj00UfQI4aPhrq1J7nf/8JSqDiaAGmQuNPYtKPEA1E74gst+PJ5kYArbzhNcxd3hpirhovZn0oih/Rr9Co292lRqdCVC+WoUhUPmv9M2dBI49xxEk2ND2GplUGeQUrrpiZLvsyd296sETeeFEWvilj38z35/WpWCF5N4HvxTVBTTU1jP5mVCDLc3GxDU5txzdQfYmKZmBi1ElCWNlCuJgSz1Kbux5Vg3dzEQEl5bsAdEqhzI5zgbQYSI+kaeRIgZIyR1EACb3upRK7a+Cnf2RipRoyd+U/dajJw0mJ1sRTHrgY8CEmHqquh4NI7Ak75+rL/ZmaSaaY08laDpiDwlbCST4CXRs5aUEFszJqmyK26QU4x+orHP3547L6wC/KBxXeoMyC/EAbc0QDGikSxsTgGFkb2jIC/6xBpdkW1GdeXbzAdBavg6ai286QAkeJgnJQnDugASAzQOmh7AaZMiDi0W1YgxAKJsglp4CewgToYjM1b4ApxGe6Mk6Mcd9ouHBm9R/ntVe4BQjpwae4cwETDJxbNgNioENjmDNTeAI+YYNhc01EFihke9ssMJBawJHpUe4NXi6J2dOlGFDaFjTUscAcwonTHq/HuSliBFCUSh2VtmSdF9dn1oaTztrCwcXbV4aBEihJloqq613w3EJhaohIpEGgJfCVQOuGAWbUqUTAaYh6IzQIBYY9ArjqFhIEPaPdWn0N/TuiErRiOY3mF6sgMa1/YhDrJgux5sEHShF5064YQ05x+ijA4kkmNNhD3mZINojAiK8dA4yW26jZHx5AYGyne0dQ3wizhyGLzuLgbINx7Ko9JjosfH/czYA4eC3LqiGn2P7k/FZF3ibQ22p/XigikJuL1nwcY8S5QQLi8WCCNk8aCvOq5/07FhnOCTIVWtfDyubg5oEr22aOAgE4tX5mkIwzRvzJiIAIRRmEPn0ucQy2FkZz8OpLEWp3P1OMaHvH4Bj8f2JHsQMtQl6gDdaR3Ohy6hw2Kk2KRapDhSrqFx30ABJvCgqCo+QZwou4e9+Wk0v2LLHYZx6I+R/iaZltkL+SgbDzonG9wSh15uftxnUQDOHJ+Agj4bNdo8OEm5RYlI41t9m1rBwh/c63m8P/EAvxQdnB8UIK8aCFuAQ6mmlA2nLPQLzYszNDAq+KyqrA6qsnnl/+9I1Dso3z/eLHUtvypoyiOch750xSHAovPcj/OoTX/k6PMP6iU0UZM+ODv33E5aS1J7icaNquvNm9z7/mVs/Zy8Nr7wnDMSbdx1QG3+9JyWT9cuJ1Ua54wwKzeN1iccnlBOb4EfzFfJNt+FfTXm9H+3IfD/+zsxnbr6O4VigDEA5cvrEfFLJwfAx6ibNi6DwkCc5Nv+LBaVKkyyuDoGoNupqt/TPRTUv+UZHN9SsgHMxvpmZPF/Bj3WPcYPtXA9FHunga9r4Aun9KofiTZU1UQMqWnI7UOMftOAlrFfQybjQnu/kAgRU7qWIM6cgS1ZolB3QdGE8YFphvo985uZkLDqQCMBWmCRoKGgU8tcqRTr3PyYf58a+v29o16qv64P/nyqYc2Uqmu/So9g/8eVVTUNiFL5+zgvr65xRjSAEHgynNfMtwzYi1wiOuy3UppfcRiFvni8TK4TLAbfe9TZ6S/aM/TIhPSxcFSQSmMMb4qQinlx2NcU/If1oy//llzY0XIy+UBLcqi9Fa27EkR1qfyXr06nbcoVoZsjr1bEesuPCzB3Kdfrq3LIscNrsKXl/xnTwPpVNzEtWNY7PUjt3WpIJ1mfyeAGJtNziImyuR6SXHkeEqMR0dbTvltMpPotCun8TYFoPSI4OZbs6RA7+U90IHogohA2UWKheKWXoCVB5vz9zUeDb+sphfMFePWfceRBs+yVCciuIvi3djxQWZFFkGYcAecDma5T7qQY8MZXGIb7xP/oHz1tLXQ7BczNMIwZPtjo5Kzbynvv7aoQ3rkLRF+NQyMLbFwcUAR5Zen6zbBe4qDswBShxRtSeBaYqXfHYs7UeLxleQqcnX+Khm90qqK3gdV0oPz66VSbZ60srSswUob4zYCTX4wvRLqo1dZVeZPqKQqYPcMmldVNQ9FSJhRKKVq6bwt9Jjl5rekDnJTuZXGLmkEUc7BbQ06bEmWfiY5yhULIT6hdq4wzVlDIEMb1NOP2RBqYXPzQtR8VFOjTj79xZPxDVzz/8GO/7zXMSw8qIbnjf+aMOSwJ2x5JSn0nksEL8LlXmjSFa7QE+buK9zChU1ureXHZ8VXkhkwoWTcO3ba2t96OtZbL8SswyxsfViamMSSs8fDisLGs8nrn5rt897nq1tZ4b3IuEv7WudTnCycKXMozsCr+EfHFklCcK5/bmeof2hIQsKWjg5Wx+hoI6uxGUiIR7kboOwuO9tMZ1625bDjadaW0NHRYGh82RZX5YlFi5bh7/ybnNSIp7V0JCVz29pqanx7DuPl5fn5HZlwZGQmY8iIC6rprCm0AiBg/APXnRsfL08QTr6imsroPMboKJdFSq6kjo5a8r2hvWnKpmwwRQ0rGDHYFaAGDLgjwHW0ubTzW1a/IXZUe9By5ikdoavJ3KZB10NXtlPSmxqUpANYp4+Mrv/3xKA8iUOcEYm0TI7dvj3C6eR8vK2i11s10FX0Bqv6VvucYUHLAL0KXUmXkdOkClqrVCv9FcBR9yU8xx7Yh5GXusCd71hnJm2UmLuS4+Nu1N1o14nsai5plLocKkRLl11sWa8yU4lCHu0t+PChsrzXLNisqsLZICEBdoaDgvRZGUhIMEDvRdYZLni267/AKdXCdUHAGw2XxebrGJqkDcADaSaGOvmxZWd9iE5En7MA5k6ORNkA1mz85VSDa+ziOvJdWLTXcC6jH8XiHD3M5cvYvFWKN3guVOo6Kll9FXmoq5qsrGxZxlD87uDlfcHFxcrvBDEyKkqGl8wm4PM0wlXUHNCb6pGwYZs47HX4S5/Lh9XiSoFWUQvu1PssIWRuLWA9AcSXzpPuyc3BUD9d2jJneoUPwQc5mK8wsGp7uCOek0V4+LX/GjdEyJ+5+Rx2tKM+O37+8lMqP0zINe3WcxULE/bEPl6SzKwyylksvLy0Vb9A77dIqAQd2N/9uH90z+hrnDSYOKN/qCeNYvXHHK7od9ruk/e4GfPQ4YFBuOF+k1EGs3G0P6jp9+NYHvBFw2w2mUZWb5gdzUQqs18PvGm1/2r9sGC4gXWD52/st3p0tN7FKhYCAoH0jvSnoNW+V9+WnUp2WwqY2MOjY5s3j4x43Rh8oAGvGhanhh8GJbmKj5pncTJ25+aSc2kr2qA8EBWjCOaiN6IuncNshELSUkNAKefSbBcXhLhXv0io0VPb78DA+k32WldgTNfQesenezN6/KLJhcGl1+R4rM3e2yZ3fMcLh3FDuG+4g/2d9hqqiU5U+171QRzljO7b4A8c6ajqOGIcBNwgxdAhqCuId7aW9D+eQ/ifVIv04VBqJOitAOVNTUFXB94PrEZnmBs+CboiXMXwffha0h88B/+/uvZsEG8rBGIYvtBXbq31IqvV3K/QoSakRNDS6pq/7/86Oc1xJu7RvwyT4cv6e4jOc5ycgHs7tG2Oyk4/yjSMJcbZSVU3LzM2DvSNHHW38fG0OtN/vF/rT1pwc5UlgC+5UhnIrWQLrLWMHFzG5RwAxJ08Lvc0mTYCtFokN2G4ktXHNY8OIHgyWx+35q5vy8RAV0lr195KtdI1mpU3d1NSz/P1x3SBZ9NZD/PPY9cT3iWGGpaEYYTElx3X6J+Ae5tY1TtC76NX0VXFy3gATU4tKlIEyaSbcRr8pj6VCimPcLETY1WVL5FRS6ykLgL5veD6JNBBqRUGHgngtS99o+EnQWTInT6kD0AUKhmwpFnK0MmMGXANrkoGZAsU/XwvPtkzePVtiUTRqwotsGDCARmmD+Md8Msi+m2cPqP9OBih11NVVC90h3H7jTh9a0ngJJUCpNhtTIUIkSiAI70SwmhFWgxUSXcEtQoXRFSqlfXV/UwKqbL4n3WAd1QqK0YXQDLDRFhpYNeGXkmTSmVSar1V/UsJ6AMqCQigC2iCrb0IsCGm3dsu5/8TuD9fpaJzvdBohwkPbcJtB7ZrCq6tSrWkK3BrgtWHwaD0dPeF5C8NYeQdroWcjOlAraTfdoe/48wl9PXR64Nuy7yVQRhIJuh+RlFM6kVa3xkQ6ggxmBE76Vre6lAFRhx23h3D7RA4VTRLpXrlJhv9s/YUeXu4b3HcAe5qcNtxOz7Gdyi4OrnzDXQ3pOh/4DVUfeUkueou3b9tKSAkTLRW2Qr8oPZ25RB7KBb+4vy5o+7s10Zd169n6zo+O48K1LWcCMFq3cuPfNivBWw0PKTz+zv+JNh3+dsu9h4WY7vftvQA40NUg+/ZlpndZfnAdGCh/oZO4iJcYeGRPHu59WWfQJlCAcO5uQERB6TZKOAJqV20f+j8UA9uYQHNk7aggO4Zyuf+/8elXE94L/ATCPyNdrCogOPJKYjxcAN2Av/e3v+rBf+zoECvq9MxiwiwadTljzOONy/XAy107R9eu4RBcKW6RvxXO7wKh+OuYaK7rl7tRHWhEglcJyrQhRYng+aM4D2c3urqXs6e4IxmkAzcjyEDAxEAuGUihs0LEOKfszdrNwGgTAJawSnMnz+Y4E4NBFLkGN8e9L17aHA9goCTndhN9cESsdCjtdOJLDImxBF0/w3yb7RlofKtXPxxTrEgal4SvMlodg55zqwzKXKLppw/l5LSuQfZ25WcEiQFatfuoCKqxXGlJK3ULNitijkrWrS9JC3YrMptlrlIdD+tBGMJs5b+djPd1qCMGLQLppuGgdRkEGH5EUI/mzkQIPM4HQ5MQxpq50SnlwqMOe+BUGNnEsKhbh4+Yt0/XEkdj+N1uPKryIILcKEF0TH2wAQh3Cv6xuHJr8CEvFQ6HArM5duq2NG0SoljD4zZuyt2NwfVe9qkCGoCFCVbIwsiOWRz7q1a07l17vqEljN9yRZ/u5tiI52cdHTQBOM5kelm+43CYkkERL13S1RUV2dkZ1f+SrIrsiuYjkIx/d9oOVRd27nLNtzTM8CRt7A3eRHRugZGyBmzRF9VRKdW3zw3IWdEzf1seX0kNz7Pv+LSyKjlZ27/yKVys8lwAMW9tkg4JIZQK6A3HS6GPWfAFloInTNq+/wLUmnBDWfltM9ZqhjikfG+FIuP3TtbMdM5JDQe7xSVvhJ2TmL2g18hD16ieXo6zWMwUh+iqAYD7I2eBAMdAyZyxDmUoIOkvtHSyViMUWy3eX1If4vJrhteAGDiw/JnHNiGu/3dpcC7705d59pw4GcVr4QL+vZaTFo1jD2yejy2JRS4iXmWXyzuRb6aezfynjvNkolF6W1Z9Zmm6qc3FETSzcy5E6tMoyuW28+MMJ2D1cGg0O+A9I+hyFD9I6uuEEVlRryZZlNxRpELtt8nGODGt7A3exIxWCwTUZsn8W9F0RV64fOExTao07bWCxtwXCNG/HY5VDBk7pa24n60pW34Hn97e8+XTe/JDKPzvyKK1ZnxfvH6LSSaMlgX/jwuOs4p3Gl79Pbmf+osJ68fGY/hxkR6JVhvWopRqVv/uZWEikR7bY8GfNcofFm0iFzkmRKIh0rX7S3WL6EOF9kuoMmgslIo7LKyslKBGNcujsHbR4f7+lsvjkkpcD9Wqtu/0rQIHwXJ86Fmj5LLNY9fwRTuOFlEqMP0Zf9WmjJ224qxxXoH9qAXub5zIeA4zngLIhCwXy81bAkCQs5b2mPfs0zRuqzb4Q9rC5q2wAorFw0hWFFYXJzoBRzVco4VVi26pzaTZnoC4LT7BYpLlB/gxMNty6mXqETSjK52q/aPFrDRyD0sm42NmntstlMWmZ00Sh4Wc7UCRYbkWnqLLHmWHY36jR2lHLNDKvwNFZDzeKyVhzRFwK8QiqiRTuS7LXHjPeYQ7jN3s9QhdlaBXyfJokYi0dJNvlYlEhtFQGGcsVjiscAWXpzB6ROqAKIKVMI+Hs3dKUPqUQBxcdsBsW0xI2Q4gXLAAodIOMF7gcTbtceU78Xv73GVeC1I8IIj+8EJdc+SAdwcq0MoGkhkaLQz1JUALJ2anyNQG89Vv39/8+a9M1UomtOjabVjSE0lEwdGAdDCoCUft58TdTqVpyC4m8Am7p58y5VojK6RtW/l6KgbX8qnx8dbK015TaxXftjiE2Zk9DRUJUb5zEbAAgUw+BEeikM2b7JaeSciLPzkuTAevhbHlMnKakDwBLp0wcvzgXEwe+Ll8hoUOsAhxP+Ulq/MpYdH0rwItYBi4jX/CfVb2F/23mELVmVOt56L0Hf/KUGKY6U+orcOPMf4+iLLylevnj9XsYJIaTTtblmkzj9/rS7F0v+LUC5cqLQUM/iWz19Em+XgQ/+PMMf2BV+97jThkzMsUPxpc1r0i5dUZo2vXk1NJRyZD2g/FJGnpqenyCSxftFWhAHBRduKMDyJiQB/SIHWwigD/uhohzEX39DY+LU/wuzXxoZTq+wejqr51pA+8AEQK0TJXkwRTUwrg008QOk4bBqkRPxNgpWw6gkyu1hrEgy8bwadwhL92zSp1dMX/frFyfn9ffSzO+vr9mTE+EzNLFEfhf4duj/SjHbBeG4qP6LK86IRDHEe+AH3LlsM1SDE4VzYuA7aETPn4MgLoTNykSPbUb83WqCvtz31hqNOlXVZnvgLrEvGE2/cMXap1fa0aYfMAuCfPV/tSRHstyxS0nDBF+fNa1S/KdO5cKjzR1ZIkQXj4PgtyIEd+vdxG8YN69vb8GJkiZhmysSLtzTeCz1gi2XoJMe/Sv6qi5mL5Z27SYzwuoGPHzvf9SMuOJu8qwhKhJfo0o9ltHhsBc5p7dEMhuLooEWmU4HvqGBbVlJa5o6TikbU+8FeFEGG7a79WFazE3qGjwe6DN42BgpPKxDjw3XK4mgisihoRYixHiXQPUsCKAk41KLdM2zCRXbpnjx3lweuooSopLgcYTUeX50w4WTETXTFxZ3nYZseIc6wcXeWmvn7uxql8cdrUvWbukzmAiux7k016fWPJ5F0SQQd+CqXkg87iwkpmhSC2Pk3+XfcICkEDSHFWXwYN8zVueStlSfJJyu3wpEKn5KjOsK4q5dOkOhV70lydXnjGWmALCXYTQoEq5iTUqpsYFT99MhfODspvzx47d6BkTzqrVeOWVurTtL9VhyOox+7SLTB3s9s+krIEcuI2PBc7S1jRtLDmNWHsyi/I+ZMtP/z3K6Lte4+3e+BTihbeMEaj7gXHnVlOza+1sD+dBClQ99kWWB5QfgfmVWjqRdcxGHO2W+jn1nXD7/0IB1L8t9jBHyPOcrYNEuVJY29iEHxHRxlKu5OJVmEam5GLYJEQoocs08EZWRAqBFlZDjBmoBKq5XRxrZvP69ylEjv2EjvAI2sc0m+Jg8E2HJmH7MzgW//qRmiUc5b0iyBJc3XVeogA3ccOgNAUMq0eA0NrzgqWbIkyd/Xgz2+/0hk7Jlx3/1ahcdFxjLTNi3I1M0gVK/WyYSyipuB/1fOP9Px/Z0b//m8K0n/7J2yaDKvR6fYxpSUMEX8SIowP+CUwvBdCa7xKAKkKBobxB0CLVytTIqbYwmARCFRRPLIbCrRBUFUqiVbHFx8/2QYHxUJ7Kxvu6xlSCR9sr4EfYkWeKySywhJiWvvvFZ2idBpWSDst0E1idD9iNXjG0s2cHAgRW0RNRYVjnE6uCOFRWNT7/2WmauT6DXTDq1cd7bCfonNy+CorIP6F9x2ZFQaS1pdmnmqT1AHKM4+nxJUF5d0xmb1ZrFnrBKw0dKLGBwOE9zFgYBTPgHEstgyQw9gExxlfRKGRNsGSbEyBRkKatPqSxKARwKiSmW3KsnTEAncSoh5i6oBpYK9mrGvt8dTn2Dvj5ZQNN4gtVQN3mV8o1509ewv3oEq1NfBL8ShRSPQQHcw+vl++zvIccX9dyQowzkqTnrvTk5AeOwnkw9C88TN6an4VNJSRDcNkypvSTaOs9l+sn6WJ9CfBWNW0cX8jVQZMcGowOw49dIHHUyf7/x7GqiR+nC1qF4vUsc0ZCgv2ypuKbbMMsoAeIxLajZUyfMoMnl9zXoNjRS1T+RwwuwrqUoV2fIS7ZHJ+qi7DE2uvfZVcbFizasm3BNEobK55XxrWCs23OWnN3zMcWsVyBWDkUcF5iOpxKN+hn5HiVegSvpYX9B3vTBDlDuBrtRpXv8BCcjCUbPT37yQexSdxZahcuL7+6sPnQP74cwjnVUwem6qb50OMRkM1C7VqkoBAcBgSHvL5dywNtnwmJ9elZ7fLkOxB9uwWEGUqNMclwYZjkGaiPtRZakHwKhUBWvF/K8/IJRW5i92UjJvbppuCPpBUEh6iw9rfzcJV68Wvry7vuZsI13xm7IzEwh4aa7yI5gCqHrD+Uq7KutX4ojcpSnHPLNYM8Uhz6WPidno2rhHDh9gnSQB4jtXXswGOQDji40IA7SfeRsmZsa4ndwRqWSq7LBvElMMjokzncTrE3RJ17/4K/gkYsQnuD3QfLdBinFmescfsVjVDxZZzHNyCSfGoMHg+TrbBaSI4N5LydZ7nDLFyRr55PUnop3QKlRsP6GSqaRaV6+GaVwJ0ICqAY+ZxJoNVzgNYKToML3c6q/3NeLPQo+7Tc6ddwoyXKkTGhyqc9cw6Oz581lObM3VU/fujdFk1GwXxQRaVwdjJx+jYTDHLHpGRtUPuQ3cU2fUwCNeiqhUOw4WhYOXZ+bA9UAVy/5NCD9pFtM5f39wQOheVGoWY7PsyL4HPWMjVynwMzuLLeD8rECTvLhKEz8XtR/JuPEcpz17vL2BxCFmVqA70GRb/ol3DyLymCmS5Gtl4jXg31Y+MRFQdrucddmx8fGbUHyxocpoI6IYp6zzkZjw8iVIVuzh1IB2QtELgGqPynlZodvdMfaB8k1wf+v20x1S46g2i2xGBVvuoAs72OF+qfYF7q9o5z7QTH8MzrttfkrXWaHljrPEMR7oGacbhvdSlVvwlPUtEPyi7d2nXcv0Nmy36AhoIFuTGwI6LCbbDb2MG2eEZWnpT62fxmyZLxgdbRD8yhtBpLgykbg+bnNgI6tRocircUVjsfhyDseNgygaWVxWh0hcBuCEJBhLAKOCIwSt4N7H0fHp6MxOQYzkgjho4UIoTo2ocU9rdRHE2TuwhFQslkMM6jLEQcAVjbDpLzO1CnCcU3rkA29lc/IfMX7T8V27sDsTTif+m1a37VXxTY8b9FLTmPBPaVVrTq4IKKCZG+oXOQ9d9Hg95wAeH9FAEj69YL4s5vPQ1tjkWHHEkbLNgt3HzojTLO32Z2JS2YaHvEdsQ0ylpiG27rKe8KJi897FB7qx7Q5+nr586sqOV6SqzyuAzUwhZiEJKXVe6W9dGPW4wjsQk4yJwQBvSN3/GJa3tTHue4dy02qncp8/Z2hZXGmGvhFGksGprL41Q9GHbUx1LLcqZMSytdbLyau21EZC0hjxJ/fmDFpbkYqtxSGtxVbAr/jjeK95+2QGiG03i4u7MXkj9M3azXs51wpC1Pocrg2Xo6/e3jtIH20IedDG5mzsZiuVcUc2Tbb/ptnGuGUDH/Yeq+kp0iRpahpGeDOtk20c5WG4RWNAw3T4dENAo/nDLW+hNgbM7z+DCm4/tKW+uKdoemLW/PKB4afgju0V6zpANs8/A03vc74OBj2nOyzarS0ayVbmKnPrdgNhYKmetvDNrNXsGwnP8Su09rY/2vsxTUeTG6atgcm1gQ5aa+uH41vGChZek5STG4LzvVUukfj24UNaWyXjZNvNEBhooLW1Tu3ZqypIfhRsrNU5UFqKh9nEC21F/hQbpsUo8CvzKjqJOElWJZEnzXvNZsVttITHWz1oF7eLRML2CyfbJwvbw9FmOFComByfIluRp8Yhfd4SFXTwoR18eCTLwkmdv8A0y1xwSCuBQppzzp/aokXiQfF0g6BhWiwmbwlZyUIHJuMD/n4wqLOBX+nHoqifUhSEvhZB3kIbzA+bVEyZFM2ttvy0OuQuHDzBWwKe0/Mm1SEdEnOQG9SBuaQj5GcrmATatla9xIdtheFtg3bEgtR/3QJtYkx0S4s4Txpi049JLeQFWsd0kafvTl99cye00SINn5v60InDGi30GVtaf9OYwmAwZaN4Y6tI3CoWiyKKToqzEM5GongSFSLaZGm6gVy11ZD5y+bOzesf0wvtjdYLOGUwtWDB2Oa9UwUF8xJnzJ44bya+oGBqQcHIXh35pH6kfkxljHgirhbQzH2k20HFwQcV4D4QfUiKY3nfnERC4+1WD9jXWp1rbplUYQCjvbzp1Bwu+BpDJsFfAb/ssmOP4fmkELOweRcQkrrMHXstYKO9Thg5oY9ys3VDJ69o+Lhs/0e5XGWuivX/uH/ZbIOGGmTBp+zXUPgWQVRNw0mzEL2+Q/F9plKz3s3JlqsbphN5NjwUo/CEw4ydLQDTjlwYnqILhBRZ8LZOqjhoRYcq+uTGlJn5lO6i44WFn1pr2rQXh/YJ8y6SNalzPHy8k2TNxrahV+zevRxFSJgx7aT4+Bs3/AKTAC8OMdXc1tq2Jm0FGaF/OfIjCr01BiMAJ2ADrqI/Od4JfFbRF2MZU029TnUHYYQoVw+SL7g+nVM9ir1rMWzRC0037g5eNLoZgS1gLtCOwurWORFRjl7AkFan4PXVAFyLDvUN9fD4EF4wvHn3o1U31/eE/pS4oG/Txil5frLkrdklyW/l+fIpcfLQZp0bQ36g4sCViityDIF8hCFmRMojxaxjgbO21FgMzrzTmUGLrraeCOsXxeQf2jCdMlkLGZQ32TT16MMB3tz82ZgvMkn10cwxUQzLMz/gLrQuMgbXaq/ZKYjmjMJzyYnPhpT9Pt3G4/E444rspxh+PvHQPU/hsFEARDRy+YPtq18UnY8ZcbCiaI8+Ch9M671zekckzaHILHWsdC3nk0NdOdhbdlaud5A3FFxQovvDdy5VeouM9LfpGxaZMmb1mX/1/Z5od7BNHz/azyJ416mWPZ225DXUCdpdLwHz3vEzw2+uijWPeR53KBxujvfEeC9YsEDtwZMl8/NS+G4yDBS7aFHsFX2oRfl+fTmo2lpUjkEDYfIdw6DMDCAygHJW10aiVLGsebWQxJCzMCk/EJWYEgzmVa5cU+t5upDaGLh+sf4CT+f5JmXJoWpgpbh5q9Lgo0FlgZL8HclfPFBvLMFcj5XfuTV+awn8EZMP3FFrALCGaNrbbBpERbuBbgZBxdJvOexwuGSrLujFr0NYm0z5pup3uK0lhxwOKTEsgH5Dw2vwKw+3dfaSehulEm6pa8+TK5FIaRpqHqgc7RCPqwRSINm4F/FAjCt4g9PgEcAhmHTN9vy2+lyqPGOZDI9dixsq3oBFpLuPyCgaIN2hKsJgFn0AtZVUXnFmIDctW0Yriy6bD4eUFmzt7cNpcADvcY4Ojib8/rGJlj49pcxRhhsDWgVYiGppQQW3UABpipiReGjBAghcvCDglHVAk0OcrDw816L44NpyLEHyWxTnhpfL4mZUKVBl1Z81GKqsTEF16MagFAeLKE2kxVOpZvXV1NUY6tc1X2ljIoLiD+dT8yxDI28FIwY74oOlsoAZ2QwYe2Ubk+JPlFvSLO9sosBVi5ZBDRuif26p1EFqrxIMAMc859o3+JJLwR3pmAuEJ+dRfBHhOeYsJEyNMrBuViVVISrZxpxUBb7dmHraYtzfSejS6+jX9HfoAajkGyvy5ECu7RTuOVCpIYBgEIInF5GWpxanLi8iZ8efa0AtCwquAKH/mIoWLP4SKoPKyrrE/KUyFIXSUlm1tOzUVnTH5csd6C3oLB3d0anV5GuAlf5CfrujnmLGaw2Q4icsLvSAHpTFP/hnHaDoQZWADbMauSl2owJ8AZutBpmZIFRJXBaXlEkPD+coOU2iI2zV8ChSMAnF4r4fnYanM5kdKEaVsDJzZOBTcqQ2X86QNcg7jB/r5WcWhPlgMtRf29/AX6gLF45amfnEm4YHsACCwMMF8in7Qfthe0+Whf6dQYgSmBkwKthZ1fNrH8OZsEChZxxYfIXTe0KXVoX0DIcoly3vDh7uDlm6NKT7xPX8UnaHpn9hcflcj80HJOobRfh60yBa1N5yQ2TqFhDrYMqAsfhXrhP6xKc7pYbOqTRa1H2HP0IMljLk0geBx1r1Aw0eBAqvA4axxWeCTDLtqmJvVwKl+CGjEMO8EeAL/QcBFAaNKrpycchkwGTo4moMhcagdfQBg66YoFoGso8fZwdaUr+r0xlAX8bMMHpudLg0rtu12a3+BMGav+u543NCZ2eZajv7KaWZvb1M1Ql4aAD7wgEpbsdbX3hjIKQ50EvmKQtKXJfWHuSf7pce3H9oQzUPb4Sxc4/UAAsejsSLNDj0vNLTlXIMnZm/9zuOrOfkX5rD9xsOYkAIz1eBcfUImX2zbI9nKYZqPpcNvpY20Tc74XIur1//bP2Par85khADM6wXzSiRQPtZRjB0X0kq/LBLYWYTjCG8jHqOk3rpk4dONzE1LmtHCGDxK32qGJ67LG1pVH7dl3gvIZeKKdtB31mmTzWrMmDrj7UGEyu9UwLHmGeF1upT2YZtDKDQ9sMeQQkDBCgUSI+hU7oUQF/EZSG3n9NGCOC9lrAa2qrVqH370NW69ecFaSRCwvSiq2/61XGOkRYai6hE11V2wekh4ebGpa9w4BPLEsFBQS0gonVJIJX7+vN1PZpnrM/cAdN08/TO4hxIVY3evw9VTUh5NfqAoUw9WCjRSlR5hMC4IZUYLJbqh9LCPGteRHg5jBMdjxkecyS2KeV+AAoTQJFYLvDSDhcwB1K0Q2Ffp2fGPBbiNlDHBo4PW44MDIzipb6bdeycRm5oYMRy+PU7XinN08qk9cCN3ZfvGGUxwo50xIaJMlVEh2NGxxyIqjedfFplnhRIZZUpySOWIyEf4zZwR2jDn6+RUaTSqucNp6Ssf77FwT2Z/u26Z3dfdNdKVLRLN3AWyOuVZma2PjTAf+y6usBEEc1hfknp5h6aSBa4Zo2KHRXplEB4REhwjIyyYDzMvZe/i0KmaMOXNMlCcW5L9cU7DD1A3bZkZTTcwGBO98zegowv5wMoYaHEvCKJKywhckt+u/JtPMA1KZPBBbWyEvytg20iWFppidWh3u1G2zLbDyiunm2xiIGCkpODIEBCsCrngzENZulk+AEj18qb/gZBsQgUU7AoFgXrRxsNkFjcRYv24rjYEmhz+6LnZ3Hl2Tr6c7MsWQkbFaPFyXIDWPuzBMCAXiVR+JX+JjdaiNmVMDLTlKFgfZzx4iohg6AKoCTWZzD6dH2xeRfQjqpRETXFKahkVPrQEZeBISG2dmxwA7oJPXYCU4uA4ob1FRChJ4FiWBo3PwoCwC01pwZb/mH/sYT9hYErrJL+wMYxA5Wo+103ERXcS6aRL5eTaSYc8haMt/zr5Tpi0vhW7nfuNvMMEudFx2hd6uJ5V+tiY0k0ExqxrGo3CbGQrWQ1gFbg7mLNzLB3cQIdtjRWhYz+Zxj96xd6GCev+vVzGIPz//yJAeCO/vw1jH5qR/hdypM/edJh0vFwcnJN8tT5C1euNID52rttLmz7C3P2R+pRAwOo4OoH4H67Vc9ASahu9fV0D3p9nRtPCjEAP5B04M0WvYKGjo5WobC1s2NpHan1xQgxDfcjj8fPUyDgwYcKIwH3IwREewwwV7XKi1Swasup8iKLzoCO6RN4eoIU1S7tbdAreEx8fawDvbKxnnzwABbs7GcIBoJRehdCMqfRJQPfZy7SbPtFwGOkhw7GSB7aZHHcQ3iMA0sO7Dn8sOrdqarTcTG35nBuBcTFSe2zQZF93gEdOp++vXz7/j5JxbiL2NVSSkukSKP/4/6nP50jjcu3z/FCl3d1laO8suzlfapoyYPoBLYb4KIROD401BpYhYUFwu6hoUGY1WhvCAUIPM9/weiViIgriuYRM+pirgCaBaNDMM6JEPgPqh9lyGXNKtTAnsVctpTHiA7XmD08WrO9+np+qk3+91PQyM6aBuavsTx5RX1dmDysXP4weATHrKxBxkyeg4EKZrutPvgAe3QoAVo8H4ryC017NnGUIjLGk+KN01eCaEje1lSMGiqGWteiFoLojJVxxhsLtp3d/SwkjQBFFc/vvPPMKXwuOiu6OD8ecmTEfCiaIE7bNbFZTJn/LNo4e/H6+W0bKgJA6IZPi5wugovqon2zvvGw8Za/af0XoQtOqTtcdnx8ReKSXtUxX3Nfyy3URvPdfGdA0H65H33/y7poSezSDReEG3UxncYFZq2hrWZxSz4O2G7kxgpA3xsmhgCbret5O55ALUjWZrO5H4Fa7jr1vCxP2VnjQtOF+2sXQ4SECadTyc7+5J4dKR8VBINPsPpoqqEnNG8FDQRLOukoHjcwKJ6GFgb5nMOinK0TyKjEgkoxxL8i6cshmYtV/Fz6t3PiwEAaKiGe5yal8unQen9UKgODxVjqkAU+0iPW3V5SAVnXsAxeQa0pw0Pl/ifCfNXw+kPzjWwhCAX8RGFNehh9NIYBQRgrKCwZgvh8OU1IH4SoC9uPndl7yBIPZwXFNv3V2UWIK9GOyPTLRfhA4HYD+BZrmSBHNwr4GH/SzWVqL1ffuW+hdxBxPD2qdOLx5Mhlpxl9jFMRy5OPJzqQIjNBpi8TpptVAXcnJ2KnsH90lriq0ZTRhOGU4bI/2CU6LTQVO5F50JgwmjKtqa2dsp0SFDZTq1dftb62Wiq8u/mP0VWdCezVzInMq8eWBnhnb88DSWAhXoXnEZOrlZz+6mS9AKK4up+jhECcq43SXG/HCw0VC2nz57/Gj+AbSwgBkL6PBofenUM3mwytQnDI2yG8I35s0cON4UFAplUgXycsLDORmqHQrCVZ0VHn3FzilNEUUQNKuqmYHqPwdyKBgeSRmSXTGvI56o2KROJVo6vE+HYqnQ16nQprRzVTM4hGF9us1sQDkAF6naChI548CxNrGhigo2aGyebm08OUG+Th6XHejdiwMOwNP3JxWo5BaNis2/Qw+QZleJppTu6bGePdyAwNw0ZGxHl/OI1BcJhVljF5eEZzGA3CxbqzbmDDwmJNHW4Qd5xnq+uGC53MeBGR2NCwTBuUNwJFIYA/Lp/BenspQNAQpZc87IYm9z/G9+pNEWeIU3q9xGY0cAd/upKcT6606LI4QbZwt6CHhLC72DEKPT8+OMTXrT2bn03oKAmQvERvyoh0PUDcYkqvDOATJLL7fFAPkFUzzjeeeD2ZmVGRgd5BXEGm1DTuMF+9seNTIFOrC5TEDnbErF6HIxmRcOuOVBJOtCgnmZPKdWKZI+DOjreeab5QcmWFDEpBlVdCMj/vLFax3for0LokVNlARHX0n29ENaAgojpSNj/U3Ha9/i4ITE4OhALrLhMSCAKlyUIoCEpLNpzX5zrPE0opL0+GiP3HwnTKM3dRiYFQEgEQUgoE/ael/QS7dqhGbSNOGk3O2aABCm2HkVzNkrLUtPFii47TtOzoJQyYb+L5eJvIUuvUIaTuLn0PQnYeSn41C0xu9qdUI3pKMCpQ6y2lVlBY/cY0BolCcCGIa1RqA+4o+BT/o7xL6tvrP5OSPBUaHT3a581F2O37inCYwuW4rjE0wM2AFwGiemF009CCc5SUFLo7PdpRzi0Y2nSxUGaGgaWMH8XDslIQE6sXWPK5ySk8vpxvmZLM5RPcqiKrT0nm8KV8enIKx+NSz8RPLA6YZbGK+dE8Pjcl2dKanZec0t6NwPHgJKeMi0S1ehf9b07ur7p+EVQItEp1glE3YBkZQkIh1ZAaIkQ4sBJaENrg0lEdi1l1Am0EnFUYC+2RwY13lrOuP17GurNx8BQ0Fgbdpy1k6TCOw4Hp+fEAhxt3sERQ2WS6tbMu8ykV90bM4tsbTDiakGXQ8nh873JoWYiGY7Lh9uKYS5WzAzicszVW8VgEzqB+GFHbYTBQDxeNbYDgYOo9ajRCVOljvJbg7ulOWKUOESTPZqGLuHPAA3BXhNT+vrYV8wGobKe2tegWl0z0KhSWfBmfx33pvviSO0wVZe4sSIxnQdIh8wM45x9TIUBiHsH/RsC77wlWxvTvnlW9Hr9DE+9QrMMc1xQanPFP18xl4tEbdycV8OaLd2/8ii+O+aR8U5zkQzt/9M904o/CiIBx6kXd9h+buHu/79a5SB0P908OKTR66RbDyPbJNKja75lPJRskNew3dk12Zq1NPRHpSlTGWZ3v/Ga8PhP738i6kog8nodJxLwIqziShYmXcYQiklvSPwvYO9F5nIxws6fzA5qwUY8404nwjtGn4WY2RY/nTzPi5jmVhtEL0Gti7XJCEmbHHwOM2LtON9AtxthsHqZmMXfBqESgW6rP5vjRJ2IojO5UGjePYTF1PSTeLjfW25BKu6djboG5R8jD7unoKAyPE02vUiE2fPrMaTAaA0Uy2LkbMCkmMgFMstKie+KYeQomY8cONiixzD82cYYQITwRahVNDIyzyQ4yce8KIaycy3kvYtrOz3lzQrg+yMQmWxgXTbxDDk28hkTM95x/fWWA5yo2jjGyEVGHzf/3xs1RweHYjMxa7QPY5Cq/JJwmMvORuxDsu/W8qiXWtmJmzL/Gko/i8H7X06vM5999W2nbus3U/EBhhGvn66GN8zBsWubUYdCOgvS8qagdvVTMcBt75osd9cYu1CBgo9n96Ldv0cH1DwQYWVUpeLhtWwAHM0Ymj2EOhkzGjIH7hLPD4+1bs/iqqld6y5dvMrx6Fehshhoa5s2DBgYgDWjA19e39B8ueeSyZ1K18ssHI/HukVOTne1PnjZM0KlT+/dNI9MpKWSEvG//ubONrM4nTxqNG8+e7erKd9PhWKEZSy5damNQS02Vz0vNyRkYcO7wyvf1DRyPjUudJ09NdXqJInDhcWs+D7oSM5SS0hdzgLrw6PbK+445PCu+WAw2rF17DyyG+IFf6EB+LExsc8Yqw9tNfvTo9h0wIrdclW59xkYs+ui8hyFtbXXjuz2hSxGmXMbY46xbFlF8wcUwl2+5a7dlIe9BbHyi9IVzidO3rOHBwR3b/Yk1pFPkWDznpTQpPvYBr8gKdGYWE1t3oEpBVvGmVNN040NCj7j4NVLUsnyCFCvJrpaQdXJcEBCBrYoXNJDbkpfWe4Xj3SK3SlLAJvSFC+hNqPVHzzRSQJfe1Un7VacmtZzYFE6ctq6uk9WpUa93LXz19ZBo1PCmqY3jpMRyMk6RycXFcUg0i7aS4pJYKzWzdfXU3z8ug/X1s0TDzGo6jLm4xoc7KKaTzBXmQAfNhrVIkEDUAvAiPGgRGXON4SoyC8Ds2xMW6IKdAjaZRp5mm5MSlhVIIELCfP+aw8Oy2wtETDaBr+RK3dJruY3Glsadqs/N4HSDxrt9UruLlynjKvkENlO04LbM2kjnvQdOGi/FsWE2G/Z4r2PkpAeeucatZhLCM2SSDPAaZsNaC5PMO925U0Ke2KQwW/D4NJsLc4GaRCUjZCoJxcbg3JSI0g0HHlsg+4yoRrG6s8VNxbO6MLgPmbbKOkYe056NIDBQPPsVaBfRAOK4qOqe3qUoQsaiFBwQF9HwZv7XbvBZz10JlO561eG8hJ0gnYPuunB1EzpduavzI+CA9ISd4TyBFjiZIY2oH76T7NTaPFisYGInMdjauvSDd2x3JzWQgsD/gk7owwHXFkJKnVCHXOPW4pbUceofFPWW2/4OHWbwBIrGQvcNm7YqpbUwMWx/OM0vU493Xnc7gaagZl1lrrMoiq6Oju7i9zLYrMa9qCbnxdVUE6JWbxEGZWiIQqP1tETRuhtaz6of2KHhh7K7O8P9eBy+H06FybmCIrVvEIqKihlqqQwgYG4Zectgr3xI3IDc7UXOPdSzWPlW/59kdVqR82nmgJ1WZsx8pFA+zoits1RNMH89ABWfM7fYzC/aPuf+ZsU3PfEtsJJPaPhpsVIY1fGYwBXsJqOd6YHZ7Dd3RsBOrZqtnrWTGIU/DmDR9lEdolvUSIJGY3xkBWoYzNLxnc/dWpTR7mX8ioASo51j4axHdNA621FiKHbOFAfiQYFa9cDC+Qn80MPMDJP0zSXZECFhwglumgn8NrfjX1E9ZBoZ2XhRPYfkyiUBlN0v7+xDE3IFmljPyJkNzNHmgdmpc+BykrIfVa2EkTowRZoH7xRWYs/Vn3MdKEfK+kYf03Z6NQ82QL8jRdUsQ7eB3KALhWdnhwcHDQCrCiVWVCSCg6Rxw4kIVP1USNjAc7o7Ye+4hkboMOFUCiH47YoVrpfarZ10Tw3zPaw+xevYVMwUf7X5WlywGd31289ae2rYSdfvwfEEXxBBnOcenpoant6MPT6UcXjr4oXqhYtbw41Vmei3HovMJJ9vOuRM/cPxLseXLFBMLczfN70Sifv35S882RcsOb4KDuubWZU3CJfOT8OUfP3iBLpCsXQ1RlJRv7w23rRl4boS95jMjhUr6Hwpn7O5hRKYIh/r0grkDqEO+XQ8hSzDybj9WObUcYFRbQ1OSqkG3DBuqLcaoLlqbj657Q4EZxLt8FhsFZH6asuqTC8X43okJkP7yKIxSEOxM2XOP3870NzR0SdeBLuGkhsqoRSOOyfazfjv7Uu+mL+OK09g0wBak013z9gvu8pVO0eA1l1ztZmgM6nRWPLlbM7U1YGB8+ddqbnKdc/j8z4/uY9emM+jkBl8huRoyrB2IXFQq+qgLRVglLsbzEOy1AOFKfDkwCSDL+XzNBRKrrw8TB5KoXihnZTvdjUlRRUHhArX/H1/Wf59Qunw2e0dYEy5AF7au/ju6aCsA8ugEy75JQqvrdFgb9bi9fQEhWL10gRsQ8Wq5WYJC5tL1s3hI2Z+alStQC0uXRp0/9D0G54DSQ62KsgUDehXicyZM2w1HJd/jNvB1YAcTBF+aUYDqYAMEUOJEBmG67WK2LDu++ioGviiAUxmUIYoDPKPhsJR+ycocQUN3Z+JRdMOHQtKyJ/fvSc44f1nug7wOevMlQxaJnBili+L5VQd3qeo+SDNucO1k9HhmKRzxmoeJ+babHdQMkDN2xWybNnSAPpjc675Y3or15PB8nyKZATw2MuN5kGFiq5sqi1dxpbRbT/wVxcqnGdEpJE5OplXKf6wWu1fScrVTB0OmTan1FWFzkSrgCkabuphyMywkqZaqRRw8IDlrjqwmT7PtgI/m4enw7coFAhibQWW95TNpwswaORsniD92L7/dLtBNbcatDAPfn/nbhHAAIwY5xDgGWhD16xdq7HSPH8uqH3UuI7V1TvNGbMa29qAwOpFM1xTPyY6dKqtjQ5JqZzywqMeZeSAzPN80lQr9UB9UAMcZW5sBww+A1y0bo0LlUIMihctBE8oZ/J+8CZucKzuumxTbeu4WnNsL/2e+ZealZnnFTdtbipq0lbWfLlnTt97rObqti1921ys7nLHb7v9OJN3lw1ykkEYZogVmGB2sHp5JzXEMKTQ45Bx1HZwIfwCaLB5PQqvJVBDOquXmR1KYAUOhWHA1ri75nafDvbOWC68z9AM96Dq5LtbXCo65/DpV4BiFkhWPH1SSvjdnjylo+hCUoqWuO1uJwPs3b5K7suoqFi8DOO7sLqkysesLrsm38MjccOxgeKeDo7XHL09qOCWDgScsibwQj7qESW3dV/q3v49cqouumlg7sY0qHo5KpWQ+mlQYNaJpB8bB/OdhSA5EcAA4P/sQSMpEYLJHFMOGSLIbw5ZwvRj+0Tfd+1d67Z+AxAMbU4j4UqEzsplqDRU6srlQKECfX2mJpM5KKTS2wiikFSbVKsFtKa60aFmHgDrkPFnyYJRACPwqALoAMXoM8BOANAqJufkFf6xZgYvt7c/Ecy07pL2LXGQmb5uGuloUADwIDu5XeVhUGRTWoWHUemAosrDcruxOXVOTaWSzQYF2xhvW7JXTu8kLf8khHrwXDPq4vClQrahValNVXZotYCAzP5/HSKN5xuXnC6Y6hXagDi68p3zSDqlU4JRBTLojoG5sHoOxYhaoFADdjzpm0eTFpf04AYucT1rlZSeJN24WYp3LeVWpzwGeKvoKSnGRDdtzKPLhUSahiYtLe6h98eefLpxk5wuA3MQOcGMiMIgP22MDniBu6V0af/hSkwQ34ffIGn+yv5+GSgQvUqH++X2zczr7zczH3CL71Mhr9hgmpzgqPu5i+YplsabSQTa7MjOLRv9sUVJsQvxeRVtxMzmjTywNMVVPFefzrHlMPSt9BlQoutL1UzHI7Wa6TK+E2wgUoivtdLJ8+cmprl6iufEcLQhhCHfoemBw7fh7IMRXSS0uGSuEITPLfCIYS41qPf+70JL+I3HgwuMhzPoPBsenRHe5dwKrFIGe5ddg86K69sGG8+0Ri8fh+lbbq3mSBDGx4dtjtDXLXb222qYYJywOlcGhm6SyW7oMYAIVIkCa/Drf+8dnASu+MStI0SRqlmrYNdXu2tpmaTmM2eaSQ1NbzPpsBWpOSNs/dUMbWIZaet2Ylkas8s0UunWraWk+cqI27eSyszoEMu3bwdsNHwBzfxheo6QMFPXOv+3oK73G69jrb9+uBnV3LjDYEB/VlQ1vycP3OxglCcmljMac3LjHQfRvXGL2qipdS5ZSf/qa+qLisjK/LVPKnWjSiFGVOTCoBZ8DK12y40vxRC1OFQqHcYXccfRMhaJxXkYGM2zoXNj/vdtmpsLNuP9XLhP4dOb8Cm5eoWvJshkRXdzUw8qYWFiPDMAmmhhhZW1STCkjlUGeQabWDc1TzYwQNsw8Pf8XP1cVaRPtrRl93chZfZi6JgCafd0wiuxE6Rhq2rSMWmKZWkgDb1iJZSG/+2h289e2Ihth/5V67RvOn2lHddF39l8CWfDFDEabKpQb1FVNg2Mw2+28q26Q/LVIplnlvn1s76z+v1WK9LK1D6OA5iZGUwMDwwCmuR5JB99KSCmPCtg0jA+NjbecDIga3goOcVL2QEPDRM090JcUlPB1uuAOwrAsHp33u0d9fU6f8eixkBfzPBQ4uTzCZTmKQejiPrpuPCkW/aU3JJ6NC8kdP6HkaNHa5gX+FSI8ZDQB2T92tHqCcAFSFfPwUKQi4TVyXSklNOVtP4uMOgZICuVm23v7urg6JGb0GnBKGJOp3TraBxxg2FjTGvV4M76Z0wx6trzPPmnU5gXAC4CXQj1FgDQ5mMB0NvjdTSOWGLYGCPGSeiNUp9iwo3VI1DE6HHc7yN3iSuGtYVnLmmHXhMtiTe4r7MyICorBOYTgDdgAUONoyYWxIpqfs2B9zCYCpQrD2sAVffguffss21tvBUcKZK8bdrm/5fUHs2PAAh+lRivU0HlcBx1VcJQxQbVYmZojXLAKFxMzYRHFdde1b5G3unppzSXHDP0kH6KH4FcPObQnj3rWzRoJtcdzFPK3paXr9X2+CncIbmcJWWBjSl5JdedC7ho+pLCwO447ZJFdLRUFda6s7g243odSebcmkJrY+vruWA0qAbUKLRAAYDAhO/FV6rhzkJmXo+8QliPbwJMgkzBgMIGK8fGYM8lBvgE6uQcWwTBQbR7Rj0QgdnCJEA9RjIfXiLOClR7adf0FOFONdEyGYhrQuYYLwZ86U8Ci5MoaynJdoF2yXC4JPRN0ip6IH0Vae2PyfqwtZL3kVF59uHM5YfKJVZha/uf3O8WkIcYv9wfVlgmL+svDuQ9XLWukmGBrky/xRYGQiAwkAb5/UylwYG8QXNPnwSvPK9QoJkjliZ1Y1ephqSUPI10Rnbw1P5Hyi+BxowI3RDEuPLW7lvlxsXxusb1UbsjGo21wYqjzd3ToyBoHX5mQybdtkE3MDaxj9iQPKreK8eeXmVdZzPfpgF1DEtvsFrh8K4G11hHjBxYj4aGcd0ToWlggCsguSk0jFXlWiHtlYQ5pjcKmS9zaZZi7wEjgK3+NhAsgEIADAN9YTwteleZU3otJvx+/X6+SYgp39SmP9pQbQ0MwkHE34gvCcqoGD1CVGR3t3sJervpQAPi0iSrimud96f7DlcyPrktSRvbXLFHHU97UGJr+4ZCqBX5ElUjfY+OfA4E1+wisAZT1xeu0EiouoBN3j0D787wGY+LJzkS4+OfTJGi/JLbnY/FJuYZX0/4YxJUWMJnDs7bfBvJ03XEJxT79dGrMrfXKwB4LoRkMig4eIhCSObgAkziyl/xtKZ3juIJN4aGA88Nm3P1Pi0h1FMJK7+HMeLwj8XOc2HOJNrtvHPU5fVxtPIcAoxfXBHPWHviEj4vZEySmxE7P8Yz4hK/twhbPMNo8W8Oiub80NQw3CYcxZe3xeuXL/7x0MgBXm9mNlEizPU27Tm3GVfFFX5cSw7xWwqbCVmrbJbNo9RxYup1Or83bTwyJ/VXM6eONNhrucpU+GmZTzA1mB5VhAk77Xz7R3yzu5WgLGhIgaUVA+GXTbNWgCQiUxNH5McRsBvMci5Up9QI3vMoZj8FAwTaMWLZQEOmd6cI9P9+3k2+OHXp0sVLK2iIHouqKCiFskpXA/em3Uu+RZb6mD6o5sL2u3WJotimMKL+m0PdsIhOx9BFnGSwqVuHEuYgDKMwCE37kTBioDNRlIn56kbLt821kUHUSp4aRZdbVdmGWlZC/E3sKssle518sb2OdfGaTEujOt2EzOVe4OPQ86xp863qXBMpqHzgknf50MrxnaT1QZaboNXR4lUg8u5N0bDxWtUcKV9E9d4+K2NzWQ6Uw5VNwBkQHX5h3Za6oruEk3gmH/CU45SX64/uk/u9BHLfE63rbrMu7QVIOKcmHNp74fbxT0wqotd+SKlSTtxsfUD5gNU4abBH6tpvnduwHvQaTp4ukyEYHYXBRCoLnH7twAnCsOetVliHhaZjU1joAzLikkcFCqW+SxlPuE8wTfOqSiZ+mEKhU4cGW/m7RTcNmQ/g0LAaydKMLzCcCSNIg9sDQAKsVnoBkW/D6gdqpAFqCCAABGQaWNla6X00+KhnxdF7ZFj1HCbLO2DqHWwBZy5zDR/pmTMBQ17eMlumrc8ft5BgDDokxBUODmEYO3HPMs+N1wc0zOV/0VBuqnC7zpDvvDz9783OJZZq3pprHUdXKBo06De2tyr4Z3hrrK6vWCPX/4AG1xV4epw4BsynzuK6krMems8IeEOwLfUgMypaos3RNaAnGVtZkgRaEGcS7Npu8IMXaJst7pK/D25c6bP65EmDnT83rbx7Q+Pl4mDyEW8ssNHcSJfUCszTJ0MLltAEE6JIJOYhE0bSAnNn2g4dIl1nXidtn0MyItWomWov0ex0STHRNgCGwe2pOpV4CGLqoRKn0G2JAeg2BXgV6F+WaG3pqFIpaz7yKl1LasFOarwNrEKBdsz6sYBWq9sPxGJPBOz7CiHA5OKnx/FoFaAHD8uZ9WPVd/qe086GambmGu8P0a6zVRf/GZgeVedofT2PL+PTjx+neXAolG6EzL4m5ICel4nnz3ITbnFL9Nz4siwL/USqcS7VBGti5GFGTh0buUBmTET4RfFfK9ujRH1q+inNbarhcO9nGzRB8kUX7MfS1v51sv12b6sVIcaNeqQhORaVm4nC6rAjuFA4Nx8Uy0AVs6U2qd3FuSAPJEyVmCtvD6SbhC2XbjeoNaZrLo8BX4ZbYHEa6ioqrXgZBUGm5NqKZEst+SoFfONYQ3o3Vemmtcy/+dDi3sPuCqvEZcQv95RzdSuUVa84VQByUSuVLip4Ko17+Ei85F4hoDCOtDGWk+WDSnV9kxnOLmYwr8Qaiziro20r2THGsJcx0MGW2RlUfdtuaKtHjyT2uzusIWHsERNj3WdfUoVgbqgvEAbDgZIIlvAYyF+daWpzWBAXjEK9HN+q50jaNq5hfyDqCXTe/RjMfIS9068pfmTobPio+Owb4hXlXQrzcdyJSm58bZrYTFQE97POIM61Z+VSz89iaDGvZPvtnrQN8o2wLKwbrltZGB5GtDnHphdz1HrphRgHr6CIaKKyuHAdMT6tAAonzKcGfDfQauEpRikzEBoCHj3P7SVbY8YbSIk4OTKAyHE9iyZIQKE62QPsTtT4U8FXtqzaTZpr2q1/8WeaB8JCeieZh76rseoBO1jkDRvMmpqY4yxS58x2tGM1GV5EX5D4u3YeiyjPfXoo1jvI0byi6Nv7VmO3nl6dkVrIqFcpMgupq1Mm3UaHY50oY2bmyi9qy26Z+dGjWQaJBqw5Zp1scggl4uVBfOI8Rx2qgSPzQjTNn3F2zepbrcwD3p8tbmLApjcbt3WZfdvGrulSqDNt5w7KtjKlzJM7APoTDyRm3w6OU62bG6uqOlsy85x5Vwsn1pm7wgLPzAkD06CoWJEsPinKRMhmUbK/sd01M0H5Te5TVW7eaBG6bD7RwJNozHJkYnGR5OxuZjLzX6MvHuYTjr52l6m5awz54zMzDuttKf2pqGIvy6u5VbrUyXMw6/cVmDFFGQuB6Ozha/+bWOl39KQ+2tvj9D8t3++fKJ7/8/V7WDFt7e4vZcJHO/p7O3fu0/Nyl9n/KN5Ihxos1mprzKpJglAvpYuoFVzhxS5Cd1AR5CA0kooiek77kI9aKcRTzwBBLfoslFYbk79LS68PQh2t5aHQNQZqQsvxlQcoJA/0la9lpvTU0rYIFbaWrPEp9QFrrKLqtCxWvO0ORxAbQvwb0Zt6jdqo2o0CfvFRKW9FYdq6/Vn1YdHI/k5xaDxNq0UAfUViTS130aDUlMy3CdN/LLcK4iYCq4Ncle5QcvADmNIkCG1nB7o/8hNR/ct54YJ5+W7/r/TQay3iabd65vkTQmPUX459YYWZaNhr5aWrWNNv3WEonUKkBOP/sabUV6P1CNqIQBvvblGnQqubKaWCavvb+kHCxffwey391A8tSQGNrku8hCRW16XWQ3XbErioT7HIopLKHbKafh9HKSWQFFIKyZFOdvHC+lILbNhB2r0qU5JroH3qKw6R23quYtSEMHXLOaCWa+ii+gwlo7jtjkr2YVuqyfv2hdyNnhNA3Vmx0ZrVQnLZkAbz9aRqHz7Dma7x+Khm5Dk7rnBCy4wDftlEfJRCMo6kZE0Yh0ayJRdi10agVHpR6VXkB05c/TQlLlnvP+UW0Vxr+2OWUv/WxJHWJWtIsomwF/poa44JTPK2CbMJfQcgGm2sSF/tK63ySS/NKPlqbAx0K+3MMtQjmaPhcMlfyhE/jE9MwL1sCrrJ5zZHyX2kfXj6eNPk7hm42QNnicnoASlZryk1WAKlmjEpBFZz4Rhu4oik1DMtxGb1MoTSrPvKrhjkSX4dqP+SnPKfxaWhqFnYrFXdLyqpz2FF9h9oixYDeo+t0x/5RIt+xV17TKoWK+updD+MTU9I7KxUuIbqlSn9sYK0+6qabPSN3G403emQI8Yl5PhPZJY0IhLJzgNSphCZvRz4C4hWOx2Lsp8fLQboXKWm/UiFprkjeGxbPZOVv5t0XtNLZEwDixbWO/wKNFzqkP3uSeLgLHROPQv5aCenET/lNUHQGNT9QDXiUfoCTLS2G4xuFyx1ji7WRFP4FrnVmkQLhdEzy/9jni91m+LKofUMmqmnYup6b3JDS7Uy5m9rpFnkWH1ai2lbKV+CDUSrr0edac1cCGUIpR4FLG32Apt6pFzu5KxQ1kbxRkD+HQl/jz+Sps85xXk4RDsf93dbEEaTctg2pr91iYW8B9K3l9SANC3RnhYfavcINr0Eb3ScD9S/9aS2kVow1PFGbAPXXnH2QD29ii6BGnvdofQdpdqsAtLiD2T/r8KY9Qklq9H0lkwiiA7S1r9mnm1zXnR+b9lhZ3XkXpePZI9Y53trNJtmfpYaT00xQWlO7XwrR3PTrWZnBZW8e/wtYRoxHDa9NHw3AAbwfzkHKf7fmx4GwFt7mOcrar+//eralNhAAdns9z2lGErCMuO8dTwEx8a79kXre3XvseRqEC0GZLZOJuaSIO2fA/nbBv9e4nVXUb7bxcVRA/V1VP2hv4y00vVa3iLRa5LW538dHAmtTpa43pZYnWfCvqwhLCtK3rOCTDNjqdJG+2kxfr1qnpEtl8R+lBGAx2eRemDmYP9+oy9KtiOLwrJGIdN8UwIDAP48nkqSCYBsPOaAfFffmVs+XoLcu9nMiZAC1tVOQBe4tVMggb11Ns2zdg56EFS7ABJE126Ao4M1bwLDUQN0uRrInoutFgKWq1oUkGGqFg0s3xbMVvNaLBjeiE5s2sNaAshKBvXA5lncC72K4JheL49XilIWW9AHShKDvfR/4toY9Jh+9dH+F9VIyuvZ2TU273dYUOsWsdv6yX15XVTy628T64fM8lpVPmP095t7/fkHF7kp432U/NXQqwiO6fXyOO2VopQl6sO+OW+JwX3i/hPXxqA5Gd50/i+q0e0V+3p+/zHX+ju+5PdIuZjd1k/uy+tNd5X8+tsyCfmRiOFrvNBnjP5+K4jWn3+w2ZZc/n17T379dPrsH9oFyF8UsfRwmmvkXpy4kB/G3f6wNPH0BYo/2vU2PTw+rV480rXX33jzrbffeXcNZHY5ZMeiyI4lj4Wvlj/OH4nG4onk1Xrxir2DcNfuPbdWbywKjFyPrgfXsL8cMHbITV8KmHUZux4c34q/CRtvel1NN0zLrtbqjaXllVXHbXp+ELbanW5vbX1jc2t7Z7e/NxhGcZLuT6az+WK5Wm+2u/3heDpfrjhB/ltmD0yG5dB4QZRkRdV0w7Rsx/X8IIziJM3y2/3xfL0/39+/KNW/gWFadodEnS63x8vbj4+vomq6YVq243p+EEZxkmZ5UVZ103b9YDgaT6az+WK5Wm+2u/3heDojKIYTJEUzLMcLoiQrqvb/0/yDMS3bcT0/CKM4SbO8KKu6abu9/mA4Gk+ms/liuVpvtrv94XgCQAhGUKxSrdUbzVa70+31B0OLGv62kQeLwDj/NesaoFaVG+6DrhmIA6Q0nDUn8Jwj2CMkuZfR1Lf6F7wYR/4C8VpUAy2RH59ew8HJXFnm0Ci5omOJLZE2a/RGeO+Bx9GnoCZjvqA2nXeEHAEgC56zUcJ1koUoLGr9Dp5t68LhCmk1rzB/MELb9AC6mFQVoQA/ulbsqiLZNY5hQ64X0PBwbofoI5N5WGjNMMWUGMH0uW453lddPjtqyIftcVFKIZMZSRlj/yqCg13776kAzF2Yyo8Ta2WKGFq5dviQg/OaLwHULwKaQiayZ4OSyBcV4yOOIDsMr4DR0K8efwAxO2TugwMhbnTDMZlmnjDSovi0xxwU4uFJ4qmxA1z8UfHyZgmN1vIwRZsJpB+MNI1pbTpLZRGOVK5hk4wv4VkUF0XbAqjK/ZTV2PC7o308txfjiJCidXu43pdDPp4L20Clba7BDSv4No8KiHrj8HZImCVkoMJpOTUxyzdFDGlIlO4S0ngGDumPk19QpTpv9BbQJF6d1acLFdhFC93i3dIUT0g1DUYMMVygXjo3QY55MhwxH7MNU20XpigntMHpCs2wcS+yxE4/t/Oh1TEEFVYnMjMM3amsNnHb5Ox5DpzrLnpdWO57hgdqa7ttmyVqCKSsNBa4DeNTUI9VEkOlqAB+WfvMVGSq03jQsSnOhoyMMmt+0zJIype8NkoY7JRnAly2NGYjQB7MMSoH9b6awNMVx3DdYN1bChnsOh6xxXSw/tUcqpxgGM+lDCuSwcr4GLISrBVDcA7HNw822xU9bq/mPrU/U8Fgx1Mhkka+XM/e7EiY0xm60X1orhmBUhlLgjQvCTa1F0NjfY91rORKwRilV4018Oj2yBfhGSc8nmOl2OvQhL002KG4uRNAFQ4vFmKIJFEQQCNSQWmPjzXNvKIUATGoYIn4uGciBeTQUCt257wr9b8Ajco9XRkKSrG18DMucshJmA9GF7mtWqA3jM1ccp+vkKbJWAMpUznUN7piZYg4WRRmiWSnZewAXM6yha2fcoxonTXl5lzD55arS2EVFkftYccREpa6cQgCiNTEMmuPJqadnLE5apnOMSWJLSRkdOxLN2vKM5WExWefOaV8xmWRmygYNrWsomKo3jRTuHdshSVeMU00wff0n9SclkcAprXM3Nn0RhHnDAVWlNwNDvjmqAWYloTN4IxldTDokOX5eLxT+CcuqFgiLiwnHPxRMRh9waNx1yED+9Ly5STTYlwzOUI2LdWnUKW2qgn3vksSLTdkWRZIwbZj8a7keGTygTp3DIvQoUnzbCKZ9nPP+3QuoxmvWqvCI1qPA5R77g+jWMOxrRrgAzZRjw3X25Ah0PmYgFq70LXr8Ylv6YnVxrWOFmNv3aSgUPZrZRFO5CAeQmGhAjygcH2RB/J2mxIiyVJTX8ZExVEhOkn5XsVC/GQXeXvGLJ9pQGo4d5fGjI5VQ4xoJvpYDESrY4Nd+J5LRfCZqtt4nikp3KmsoVIZbcxklPqIQU314MMrNzuV1QQTpjS9HwYpzVciqR19aH8AMDZTDsig11YXMssCQ+bB+iUDJMle5xDBMSjyz3jGqT0VxMkSDNs8vYLN3O+CJW7H5yBEpxs5QyjtFVXJsIexEwqRYcd7IPlEfFeXUAoLeee85kBxzH07EL0Bd3+RGwaX/tdkJnzDw02PLQZyzP9CH/610eJBmj+tYXBHuYr+fp9bTeC4zwjWFINVjPb8i1oZn38D6lv/W2IMf0/LEAXC8KuthDS3rkNJoMl2/9M+Bp5/xdLGNfOLSsMXr9UFUexgtqRCqfs12tWlPv2y8WVupITxGn5lPU7zvd88cPdb4YS66499odYLf8iwInNUVUq7P0NFzvzHUJtYD5mf/5WJ8akrE9r9S2hMLxPM8xRaCPVQxZzYVo2epzQZ6aaXJFOhVapnbM4l6K3MPSQyhxL5s8mBJYKTlLSadTp9ihHbs0jx675FImBZzy9zYUVvWqh4qd2nbIlx8cExrgoLMY6RboTh0ckwFMogpi/IfNSkRWguwVWr6BbRuxuLVq8ySlPDOWisqBGL/+DJb0vu4ih8lecBLGJJVNanVSmNCXMnHKIwY3RMXSSfdIDxrFWzO0O+qaPBXYekBBfhc09hmgqtIcsXSPiOiqxX0Q0cp5dazNUf59HLob4sFqLpYvZ39x0vW9KU3EsE3DK6IGa1V/oikqnMzylpTkpf9iCoIQemuAY7HlPBf28qbd12U60k1MUX09MX4XRkYC69YapCxcvztsn9WuRzKiLw8wZb7axb7llxdUvXcuijm2NiGcPjGxP7RcOK5u0np/xHFin4coZh7KMXSW7UhBqFpR+avSyQDpNi/xsqrHizuMd0EXfJNU/c9sZGrxoe8y51jIDTOsTgbdvEuKrL/TJiflECqh50k1As4hQZf4oKgPlvwyT7NyFfEr4tAhRqYpOMKySnVaVkkk19nNBh5YdHY6iAfztabPnDK8WXZG1sbhvU9R+whohyvwceYtKcVegYiqvwCfcwxECC1UB9ytBdT7YK1bevLRS+c5SExypzUD+Wt2cGeKDmaaOrXDPa3g0qnvyu80FKFaUyPrGs4hDgDBsCjIMuJca+FKgC3qvd/DGfVpnofDq16laEQprgEbct+SyKDWOfZR/ApA51yodZ7IiY4akrkK4UNeQX2chc9DGZqFaNNXo+EvqioSqaYaoa/TSsev14PUYV+BYZspmmUI6ihdTX9BObIkaZDWqltBZSCpXi305LUOEatJL9tqE1NNDXLwzrVPD+MAW5MkK6UshNV4SIL3lpOhZweVDf567Ogng3ySlqyu8CX6QbfgUA') format('woff2'),\r\n url("+a+") format('woff'),\r\n url("+s+") format('truetype'), \r\n url("+l+') format(\'svg\'); /* iOS 4.1- */\r\n}\r\n\r\n.idoc_iconfont {\r\n font-family: "idoc_iconfont" !important;\r\n font-size: 16px;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.icon-_quit_scale:before {\r\n content: "\\e737";\r\n}\r\n\r\n.icon-_icon_approve:before {\r\n content: "\\e736";\r\n}\r\n\r\n.icon-_icon_mail_add:before {\r\n content: "\\e735";\r\n}\r\n\r\n.icon-_icon_date:before {\r\n content: "\\e734";\r\n}\r\n\r\n.icon-_icon_sy_down:before {\r\n content: "\\e732";\r\n}\r\n\r\n.icon-_icon_sy_up:before {\r\n content: "\\e733";\r\n}\r\n\r\n.icon-_icon_back:before {\r\n content: "\\e731";\r\n}\r\n\r\n.icon-_icon_audit:before {\r\n content: "\\e730";\r\n}\r\n\r\n.icon-_icon_statistics:before {\r\n content: "\\e72f";\r\n}\r\n\r\n.icon-_icon_competence:before {\r\n content: "\\e72a";\r\n}\r\n\r\n.icon-_icon_overview:before {\r\n content: "\\e72b";\r\n}\r\n\r\n.icon-_icon_set:before {\r\n content: "\\e72c";\r\n}\r\n\r\n.icon-_icon_member:before {\r\n content: "\\e72d";\r\n}\r\n\r\n.icon-_icon_team:before {\r\n content: "\\e72e";\r\n}\r\n\r\n.icon-_icon_view:before {\r\n content: "\\e728";\r\n}\r\n\r\n.icon-_icon_hide:before {\r\n content: "\\e729";\r\n}\r\n\r\n.icon-_ds_colors:before {\r\n content: "\\e722";\r\n}\r\n\r\n.icon-_ds_icons:before {\r\n content: "\\e723";\r\n}\r\n\r\n.icon-_ds_pics:before {\r\n content: "\\e724";\r\n}\r\n\r\n.icon-_ds_styles:before {\r\n content: "\\e725";\r\n}\r\n\r\n.icon-_ds_comps:before {\r\n content: "\\e726";\r\n}\r\n\r\n.icon-_ds_fonts:before {\r\n content: "\\e727";\r\n}\r\n\r\n.icon-_analytics:before {\r\n content: "\\e721";\r\n}\r\n\r\n.icon-_preview:before {\r\n content: "\\e720";\r\n}\r\n\r\n.icon-_helpbar_contact:before {\r\n content: "\\e71f";\r\n}\r\n\r\n.icon-_list_figma:before {\r\n content: "\\e71d";\r\n}\r\n\r\n.icon-_list_styles:before {\r\n content: "\\e71e";\r\n}\r\n\r\n.icon-_alph_list:before {\r\n content: "\\e71c";\r\n}\r\n\r\n.icon-_filter_m:before {\r\n content: "\\e71b";\r\n}\r\n\r\n.icon-_hybrid_mission:before {\r\n content: "\\e71a";\r\n}\r\n\r\n.icon-_cover_task:before {\r\n content: "\\e719";\r\n}\r\n\r\n.icon-_task_all:before {\r\n content: "\\e717";\r\n}\r\n\r\n.icon-_task_my:before {\r\n content: "\\e718";\r\n}\r\n\r\n.icon-_icon_tree_unview:before {\r\n content: "\\e7ce";\r\n}\r\n\r\n.icon-_icon_tree_view:before {\r\n content: "\\e7cf";\r\n}\r\n\r\n.icon-_artboard_movehand:before {\r\n content: "\\e715";\r\n}\r\n\r\n.icon-_hybrid_recycle:before {\r\n content: "\\e716";\r\n}\r\n\r\n.icon-_hybrid_group:before {\r\n content: "\\e70c";\r\n}\r\n\r\n.icon-_hybrid_my:before {\r\n content: "\\e70f";\r\n}\r\n\r\n.icon-_hybrid_project:before {\r\n content: "\\e710";\r\n}\r\n\r\n.icon-_hybrid_achive:before {\r\n content: "\\e711";\r\n}\r\n\r\n.icon-_hybrid_all:before {\r\n content: "\\e712";\r\n}\r\n\r\n.icon-_hybrid_more:before {\r\n content: "\\e713";\r\n}\r\n\r\n.icon-_hybrid_star:before {\r\n content: "\\e714";\r\n}\r\n\r\n.icon-_hybrid_doc:before {\r\n content: "\\e704";\r\n}\r\n\r\n.icon-_hybrid_prototype:before {\r\n content: "\\e705";\r\n}\r\n\r\n.icon-_hybrid_design:before {\r\n content: "\\e707";\r\n}\r\n\r\n.icon-_hybrid_res:before {\r\n content: "\\e708";\r\n}\r\n\r\n.icon-_hybrid_style:before {\r\n content: "\\e709";\r\n}\r\n\r\n.icon-_hybrid_rp:before {\r\n content: "\\e70a";\r\n}\r\n\r\n.icon-_hybrid_info:before {\r\n content: "\\e70b";\r\n}\r\n\r\n.icon-_tag_home:before {\r\n content: "\\e6fd";\r\n}\r\n\r\n.icon-_tag_refresh_arrow:before {\r\n content: "\\e6fc";\r\n}\r\n\r\n.icon-_tag_left_arrow01:before {\r\n content: "\\e6fe";\r\n}\r\n\r\n.icon-_tag_left_arrow:before {\r\n content: "\\e6ff";\r\n}\r\n\r\n.icon-_tag_right_arrow:before {\r\n content: "\\e701";\r\n}\r\n\r\n.icon-_tag_right_arrow01:before {\r\n content: "\\e703";\r\n}\r\n\r\n.icon-_share:before {\r\n content: "\\e6fb";\r\n}\r\n\r\n.icon-_icon_savepath:before {\r\n content: "\\e7b2";\r\n}\r\n\r\n.icon-_cover_help_x:before {\r\n content: "\\e6fa";\r\n}\r\n\r\n.icon-_demo_mainboard:before {\r\n content: "\\e7b1";\r\n}\r\n\r\n.icon-_tag_three_d:before {\r\n content: "\\e6f4";\r\n}\r\n\r\n.icon-_tag_two_d:before {\r\n content: "\\e6f5";\r\n}\r\n\r\n.icon-_tag_more_d:before {\r\n content: "\\e6f6";\r\n}\r\n\r\n.icon-_tag_zero_d:before {\r\n content: "\\e6f7";\r\n}\r\n\r\n.icon-_tag_six_d:before {\r\n content: "\\e6f8";\r\n}\r\n\r\n.icon-_tag_eight_d:before {\r\n content: "\\e6f9";\r\n}\r\n\r\n.icon-_tag_nine_d:before {\r\n content: "\\ea3b";\r\n}\r\n\r\n.icon-_tag_five_d:before {\r\n content: "\\e6da";\r\n}\r\n\r\n.icon-_tag_four_d:before {\r\n content: "\\e6de";\r\n}\r\n\r\n.icon-_tag_one_d:before {\r\n content: "\\e6f2";\r\n}\r\n\r\n.icon-_tag_seven_d:before {\r\n content: "\\e6f3";\r\n}\r\n\r\n.icon-_cover_item_tree_m:before {\r\n content: "\\e7a1";\r\n}\r\n\r\n.icon-_cover_item_tree:before {\r\n content: "\\e7a2";\r\n}\r\n\r\n.icon-_public_view:before {\r\n content: "\\e6d9";\r\n}\r\n\r\n.icon-_tag_paused:before {\r\n content: "\\e6d7";\r\n}\r\n\r\n.icon-_tag_closed:before {\r\n content: "\\e6d8";\r\n}\r\n\r\n.icon-_prove_up:before {\r\n content: "\\e6d5";\r\n}\r\n\r\n.icon-_prove_down:before {\r\n content: "\\e6d6";\r\n}\r\n\r\n.icon-_cover_settings_m:before {\r\n content: "\\e6cf";\r\n}\r\n\r\n.icon-_cover_settings:before {\r\n content: "\\e6d0";\r\n}\r\n\r\n.icon-_bar_workflow:before {\r\n content: "\\e6cc";\r\n}\r\n\r\n.icon-_layer_publish:before {\r\n content: "\\e6ce";\r\n}\r\n\r\n.icon-_project_play:before {\r\n content: "\\e6c6";\r\n}\r\n\r\n.icon-_nav_helper:before {\r\n content: "\\e6ca";\r\n}\r\n\r\n.icon-_doc_pic_missing:before {\r\n content: "\\e6c5";\r\n}\r\n\r\n.icon-_doc_clip:before {\r\n content: "\\e6c4";\r\n}\r\n\r\n.icon-_arrow_right:before {\r\n content: "\\e6c3";\r\n}\r\n\r\n.icon-_select_group:before {\r\n content: "\\e6c2";\r\n}\r\n\r\n.icon-_cover_styleguide_s:before {\r\n content: "\\e6c1";\r\n}\r\n\r\n.icon-_cover_styleguide:before {\r\n content: "\\e6c0";\r\n}\r\n\r\n.icon-_icon_fullview:before {\r\n content: "\\e70d";\r\n}\r\n\r\n.icon-_icon_help:before {\r\n content: "\\e70e";\r\n}\r\n\r\n.icon-_icon_heart:before {\r\n content: "\\e706";\r\n}\r\n\r\n.icon-_ps_shape:before {\r\n content: "\\e656";\r\n}\r\n\r\n.icon-_ps_shape_s:before {\r\n content: "\\e659";\r\n}\r\n\r\n.icon-_xd_mask:before {\r\n content: "\\e6ab";\r\n}\r\n\r\n.icon-_xd_group_s:before {\r\n content: "\\e6ae";\r\n}\r\n\r\n.icon-_xd_group:before {\r\n content: "\\e6b5";\r\n}\r\n\r\n.icon-_xd_mask_s:before {\r\n content: "\\e6ba";\r\n}\r\n\r\n.icon-_ps_image_s:before {\r\n content: "\\e653";\r\n}\r\n\r\n.icon-_ps_group:before {\r\n content: "\\e654";\r\n}\r\n\r\n.icon-_ps_group_s:before {\r\n content: "\\e655";\r\n}\r\n\r\n.icon-_ps_image:before {\r\n content: "\\e657";\r\n}\r\n\r\n.icon-_ps_text_s:before {\r\n content: "\\e658";\r\n}\r\n\r\n.icon-_sketch_group:before {\r\n content: "\\e675";\r\n}\r\n\r\n.icon-_sketch_line_s:before {\r\n content: "\\e696";\r\n}\r\n\r\n.icon-_sketch_circle_s:before {\r\n content: "\\e697";\r\n}\r\n\r\n.icon-_sketch_circle:before {\r\n content: "\\e698";\r\n}\r\n\r\n.icon-_ps_text:before {\r\n content: "\\e699";\r\n}\r\n\r\n.icon-_sketch_mask:before {\r\n content: "\\e69a";\r\n}\r\n\r\n.icon-_sketch_group_s:before {\r\n content: "\\e69b";\r\n}\r\n\r\n.icon-_sketch_mask_s:before {\r\n content: "\\e69c";\r\n}\r\n\r\n.icon-_sketch_path_s:before {\r\n content: "\\e69d";\r\n}\r\n\r\n.icon-_sketch_line:before {\r\n content: "\\e69e";\r\n}\r\n\r\n.icon-_sketch_shape_s:before {\r\n content: "\\e69f";\r\n}\r\n\r\n.icon-_sketch_tri_s:before {\r\n content: "\\e6a0";\r\n}\r\n\r\n.icon-_xd_circle:before {\r\n content: "\\e6a1";\r\n}\r\n\r\n.icon-_sketch_symbol:before {\r\n content: "\\e6a4";\r\n}\r\n\r\n.icon-_sketch_shape:before {\r\n content: "\\e6a5";\r\n}\r\n\r\n.icon-_sketch_text_s:before {\r\n content: "\\e6a6";\r\n}\r\n\r\n.icon-_sketch_tri:before {\r\n content: "\\e6a7";\r\n}\r\n\r\n.icon-_sketch_image:before {\r\n content: "\\e6a8";\r\n}\r\n\r\n.icon-_xd_circle_s:before {\r\n content: "\\e6a9";\r\n}\r\n\r\n.icon-_sketch_image_s:before {\r\n content: "\\e6aa";\r\n}\r\n\r\n.icon-_sketch_path:before {\r\n content: "\\e6ac";\r\n}\r\n\r\n.icon-_sketch_text:before {\r\n content: "\\e6ad";\r\n}\r\n\r\n.icon-_xd_image:before {\r\n content: "\\e6af";\r\n}\r\n\r\n.icon-_xd_shape:before {\r\n content: "\\e6b0";\r\n}\r\n\r\n.icon-_xd_line:before {\r\n content: "\\e6b1";\r\n}\r\n\r\n.icon-_xd_line_s:before {\r\n content: "\\e6b2";\r\n}\r\n\r\n.icon-_xd_path_s:before {\r\n content: "\\e6b3";\r\n}\r\n\r\n.icon-_xd_shape_s:before {\r\n content: "\\e6b4";\r\n}\r\n\r\n.icon-_sketch_symbol_s:before {\r\n content: "\\e6b6";\r\n}\r\n\r\n.icon-_xd_text_s:before {\r\n content: "\\e6b7";\r\n}\r\n\r\n.icon-_xd_symbol_s:before {\r\n content: "\\e6b8";\r\n}\r\n\r\n.icon-_xd_image_s:before {\r\n content: "\\e6b9";\r\n}\r\n\r\n.icon-_xd_path:before {\r\n content: "\\e6bb";\r\n}\r\n\r\n.icon-_xd_symbol:before {\r\n content: "\\e6bc";\r\n}\r\n\r\n.icon-_xd_text:before {\r\n content: "\\e6bd";\r\n}\r\n\r\n.icon-_xd_tri:before {\r\n content: "\\e6be";\r\n}\r\n\r\n.icon-_xd_tri_s:before {\r\n content: "\\e6bf";\r\n}\r\n\r\n.icon-_demo_plane:before {\r\n content: "\\e6a3";\r\n}\r\n\r\n.icon-_layerflag_add:before {\r\n content: "\\e6a2";\r\n}\r\n\r\n.icon-_mask_down:before {\r\n content: "\\ea39";\r\n}\r\n\r\n.icon-_mask_up:before {\r\n content: "\\ea3a";\r\n}\r\n\r\n.icon-_icon_custom:before {\r\n content: "\\e702";\r\n}\r\n\r\n.icon-_icon_pad:before {\r\n content: "\\e700";\r\n}\r\n\r\n.icon-_cover_admin:before {\r\n content: "\\e652";\r\n}\r\n\r\n.icon-_icon_ctreplace:before {\r\n content: "\\e651";\r\n}\r\n\r\n.icon-_font_colors:before {\r\n content: "\\e64e";\r\n}\r\n\r\n.icon-_save_as:before {\r\n content: "\\e650";\r\n}\r\n\r\n.icon-_xls_hline:before {\r\n content: "\\e63c";\r\n}\r\n\r\n.icon-_xls_colors:before {\r\n content: "\\e63f";\r\n}\r\n\r\n.icon-_link_jumpto:before {\r\n content: "\\e640";\r\n}\r\n\r\n.icon-_xls_center:before {\r\n content: "\\e641";\r\n}\r\n\r\n.icon-_xls_head:before {\r\n content: "\\e642";\r\n}\r\n\r\n.icon-_xls_vline:before {\r\n content: "\\e643";\r\n}\r\n\r\n.icon-_xls_cline:before {\r\n content: "\\e648";\r\n}\r\n\r\n.icon-_image_place:before {\r\n content: "\\e649";\r\n}\r\n\r\n.icon-_image_title:before {\r\n content: "\\e64a";\r\n}\r\n\r\n.icon-_link_styles:before {\r\n content: "\\e64b";\r\n}\r\n\r\n.icon-_docu_delete:before {\r\n content: "\\e64c";\r\n}\r\n\r\n.icon-_link_url:before {\r\n content: "\\e64d";\r\n}\r\n\r\n.icon-_indent_right:before {\r\n content: "\\e638";\r\n}\r\n\r\n.icon-_indent_left:before {\r\n content: "\\e63a";\r\n}\r\n\r\n.icon-_line_hight:before {\r\n content: "\\e6f1";\r\n}\r\n\r\n.icon-_insert_image:before {\r\n content: "\\ea36";\r\n}\r\n\r\n.icon-_icon_unlocked:before {\r\n content: "\\e6ee";\r\n}\r\n\r\n.icon-_icon_locked:before {\r\n content: "\\e6ef";\r\n}\r\n\r\n.icon-_justify_align:before {\r\n content: "\\e6f0";\r\n}\r\n\r\n.icon-_cover_advice:before {\r\n content: "\\e637";\r\n}\r\n\r\n.icon-_manage_group:before {\r\n content: "\\e6ed";\r\n}\r\n\r\n.icon-_external_links:before {\r\n content: "\\e6e6";\r\n}\r\n\r\n.icon-_align_center:before {\r\n content: "\\e6e7";\r\n}\r\n\r\n.icon-_left_alignment:before {\r\n content: "\\e6e8";\r\n}\r\n\r\n.icon-_Reference_design:before {\r\n content: "\\e6e9";\r\n}\r\n\r\n.icon-_type_size:before {\r\n content: "\\e6ea";\r\n}\r\n\r\n.icon-_right_alignment:before {\r\n content: "\\e6eb";\r\n}\r\n\r\n.icon-_numbered_list:before {\r\n content: "\\e6ec";\r\n}\r\n\r\n.icon-_team_select:before {\r\n content: "\\e636";\r\n}\r\n\r\n.icon-_popup_close-docs:before {\r\n content: "\\e635";\r\n}\r\n\r\n.icon-_popup_uploaddocs:before {\r\n content: "\\e632";\r\n}\r\n\r\n.icon-_popup_writedocs:before {\r\n content: "\\e633";\r\n}\r\n\r\n.icon-_layertree_end:before {\r\n content: "\\e6e5";\r\n}\r\n\r\n.icon-_cover_team1:before {\r\n content: "\\e6e0";\r\n}\r\n\r\n.icon-_cover_project1:before {\r\n content: "\\e6e1";\r\n}\r\n\r\n.icon-_cover_message:before {\r\n content: "\\e6e3";\r\n}\r\n\r\n.icon-_cover_project:before {\r\n content: "\\e6df";\r\n}\r\n\r\n.icon-_cover_team:before {\r\n content: "\\e6e2";\r\n}\r\n\r\n.icon-_cover_message1:before {\r\n content: "\\e6e4";\r\n}\r\n\r\n.icon-_cover_ep:before {\r\n content: "\\e62d";\r\n}\r\n\r\n.icon-_cover_hp:before {\r\n content: "\\e62e";\r\n}\r\n\r\n.icon-_cover_shortcut:before {\r\n content: "\\e62f";\r\n}\r\n\r\n.icon-_cover_help:before {\r\n content: "\\e630";\r\n}\r\n\r\n.icon-_list_app:before {\r\n content: "\\e626";\r\n}\r\n\r\n.icon-_list_sk:before {\r\n content: "\\e627";\r\n}\r\n\r\n.icon-_list_xd:before {\r\n content: "\\e628";\r\n}\r\n\r\n.icon-_list_ps:before {\r\n content: "\\e629";\r\n}\r\n\r\n.icon-_list_rp:before {\r\n content: "\\e62a";\r\n}\r\n\r\n.icon-_tree_phone:before {\r\n content: "\\e903";\r\n}\r\n\r\n.icon-_cover_unfold:before {\r\n content: "\\e6dc";\r\n}\r\n\r\n.icon-_cover_fold:before {\r\n content: "\\e6dd";\r\n}\r\n\r\n.icon-_finalize:before {\r\n content: "\\e6db";\r\n}\r\n\r\n.icon-_comments:before {\r\n content: "\\e6c7";\r\n}\r\n\r\n.icon-_development:before {\r\n content: "\\e6c8";\r\n}\r\n\r\n.icon-_interaction:before {\r\n content: "\\e6c9";\r\n}\r\n\r\n.icon-_pen:before {\r\n content: "\\e6cb";\r\n}\r\n\r\n.icon-_listbox:before {\r\n content: "\\e6cd";\r\n}\r\n\r\n.icon-_emoji:before {\r\n content: "\\e6d1";\r\n}\r\n\r\n.icon-_comments1:before {\r\n content: "\\e6d2";\r\n}\r\n\r\n.icon-_bullets:before {\r\n content: "\\e6d3";\r\n}\r\n\r\n.icon-_accessory:before {\r\n content: "\\e6d4";\r\n}\r\n\r\n.icon-_document_upload:before {\r\n content: "\\e625";\r\n}\r\n\r\n.icon-_top:before {\r\n content: "\\ea34";\r\n}\r\n\r\n.icon-_clip_back:before {\r\n content: "\\e61e";\r\n}\r\n\r\n.icon-_drawing_pin:before {\r\n content: "\\ea2b";\r\n}\r\n\r\n.icon-_layer_copy:before {\r\n content: "\\e61a";\r\n}\r\n\r\n.icon-_layer_flag:before {\r\n content: "\\e61b";\r\n}\r\n\r\n.icon-_layer_plus:before {\r\n content: "\\e61c";\r\n}\r\n\r\n.icon-_layer_flag_solid:before {\r\n content: "\\e61d";\r\n}\r\n\r\n.icon-_link_add:before {\r\n content: "\\e8e9";\r\n}\r\n\r\n.icon-_document_add:before {\r\n content: "\\e8f1";\r\n}\r\n\r\n.icon-_document:before {\r\n content: "\\e617";\r\n}\r\n\r\n.icon-_document_link:before {\r\n content: "\\e618";\r\n}\r\n\r\n.icon-_link_markup:before {\r\n content: "\\e619";\r\n}\r\n\r\n.icon-_projects_box:before {\r\n content: "\\e616";\r\n}\r\n\r\n.icon-_setting_adjust:before {\r\n content: "\\e610";\r\n}\r\n\r\n.icon-_cate_relate_me:before {\r\n content: "\\e615";\r\n}\r\n\r\n.icon-_solid__team:before {\r\n content: "\\e614";\r\n}\r\n\r\n.icon-_solid__project:before {\r\n content: "\\e60f";\r\n}\r\n\r\n.icon-_solid__workbench:before {\r\n content: "\\e611";\r\n}\r\n\r\n.icon-_solid__activity:before {\r\n content: "\\e612";\r\n}\r\n\r\n.icon-_enterprise:before {\r\n content: "\\e605";\r\n}\r\n\r\n.icon-_workdesk:before {\r\n content: "\\e606";\r\n}\r\n\r\n.icon-_project:before {\r\n content: "\\e607";\r\n}\r\n\r\n.icon-_activity:before {\r\n content: "\\e608";\r\n}\r\n\r\n.icon-_team:before {\r\n content: "\\e609";\r\n}\r\n\r\n.icon-_dis_fit:before {\r\n content: "\\e601";\r\n}\r\n\r\n.icon-_compare:before {\r\n content: "\\e603";\r\n}\r\n\r\n.icon-_dis_actual:before {\r\n content: "\\e604";\r\n}\r\n\r\n.icon--Correlation:before {\r\n content: "\\e60e";\r\n}\r\n\r\n.icon-_Move_to:before {\r\n content: "\\e60d";\r\n}\r\n\r\n.icon-_Dissolve:before {\r\n content: "\\e60c";\r\n}\r\n\r\n.icon-_Create_itemSet:before {\r\n content: "\\e60b";\r\n}\r\n\r\n.icon-_Shift_out:before {\r\n content: "\\e60a";\r\n}\r\n\r\n.icon-_gift:before {\r\n content: "\\e600";\r\n}\r\n\r\n.icon-_import:before {\r\n content: "\\e602";\r\n}\r\n\r\n.icon-_update:before {\r\n content: "\\e64f";\r\n}\r\n\r\n.icon-_measure_specs:before {\r\n content: "\\e695";\r\n}\r\n\r\n.icon-_Apple:before {\r\n content: "\\e685";\r\n}\r\n\r\n.icon-_Earth:before {\r\n content: "\\e689";\r\n}\r\n\r\n.icon-_File_Pdf:before {\r\n content: "\\e690";\r\n}\r\n\r\n.icon-_Pie_Chart:before {\r\n content: "\\e691";\r\n}\r\n\r\n.icon-_Standards:before {\r\n content: "\\e692";\r\n}\r\n\r\n.icon-_Wrench:before {\r\n content: "\\e693";\r\n}\r\n\r\n.icon-_Cloud:before {\r\n content: "\\e694";\r\n}\r\n\r\n.icon-_Api:before {\r\n content: "\\e67d";\r\n}\r\n\r\n.icon-_App_Store:before {\r\n content: "\\e67e";\r\n}\r\n\r\n.icon-_android:before {\r\n content: "\\e67f";\r\n}\r\n\r\n.icon-_Desktop:before {\r\n content: "\\e680";\r\n}\r\n\r\n.icon-_Bulb:before {\r\n content: "\\e681";\r\n}\r\n\r\n.icon-_Check_Circle:before {\r\n content: "\\e682";\r\n}\r\n\r\n.icon-_Eye:before {\r\n content: "\\e683";\r\n}\r\n\r\n.icon-_Folder:before {\r\n content: "\\e684";\r\n}\r\n\r\n.icon-_Mobile:before {\r\n content: "\\e686";\r\n}\r\n\r\n.icon-_Image:before {\r\n content: "\\e687";\r\n}\r\n\r\n.icon-_Message:before {\r\n content: "\\e688";\r\n}\r\n\r\n.icon-_Laptop:before {\r\n content: "\\e68a";\r\n}\r\n\r\n.icon-_User:before {\r\n content: "\\e68b";\r\n}\r\n\r\n.icon-_Bell:before {\r\n content: "\\e68c";\r\n}\r\n\r\n.icon-_Smile:before {\r\n content: "\\e68d";\r\n}\r\n\r\n.icon-_Star:before {\r\n content: "\\e68e";\r\n}\r\n\r\n.icon-_Setting:before {\r\n content: "\\e68f";\r\n}\r\n\r\n.icon-_icon_magnifier:before {\r\n content: "\\e67c";\r\n}\r\n\r\n.icon-_postil_circle1:before {\r\n content: "\\e66e";\r\n}\r\n\r\n.icon-_postil_box1:before {\r\n content: "\\e66f";\r\n}\r\n\r\n.icon-_postil_line:before {\r\n content: "\\e670";\r\n}\r\n\r\n.icon-_archive:before {\r\n content: "\\e671";\r\n}\r\n\r\n.icon-_postil_arrow:before {\r\n content: "\\e674";\r\n}\r\n\r\n.icon-_distance_specs:before {\r\n content: "\\e66d";\r\n}\r\n\r\n.icon-_location_specs:before {\r\n content: "\\e65e";\r\n}\r\n\r\n.icon-_colors_specs:before {\r\n content: "\\e673";\r\n}\r\n\r\n.icon-_postil_font:before {\r\n content: "\\e672";\r\n}\r\n\r\n.icon-_postil_dialog1:before {\r\n content: "\\e66c";\r\n}\r\n\r\n.icon-_pageturning_right:before {\r\n content: "\\e67a";\r\n}\r\n\r\n.icon-_pageturning_left:before {\r\n content: "\\e67b";\r\n}\r\n\r\n.icon-_info_file:before {\r\n content: "\\e676";\r\n}\r\n\r\n.icon-_info_image:before {\r\n content: "\\e677";\r\n}\r\n\r\n.icon-_info_massages:before {\r\n content: "\\e678";\r\n}\r\n\r\n.icon-_info_bell:before {\r\n content: "\\e679";\r\n}\r\n\r\n.icon-_align_auto_flow:before {\r\n content: "\\e613";\r\n}\r\n\r\n.icon-_back:before {\r\n content: "\\e66a";\r\n}\r\n\r\n.icon-_forward:before {\r\n content: "\\e66b";\r\n}\r\n\r\n.icon-_demo_course:before {\r\n content: "\\e669";\r\n}\r\n\r\n.icon-_tag_percent3:before {\r\n content: "\\e662";\r\n}\r\n\r\n.icon-_play:before {\r\n content: "\\e661";\r\n}\r\n\r\n.icon-_check1:before {\r\n content: "\\e65f";\r\n}\r\n\r\n.icon-_ascending:before {\r\n content: "\\e663";\r\n}\r\n\r\n.icon-_grid:before {\r\n content: "\\e664";\r\n}\r\n\r\n.icon-_descending:before {\r\n content: "\\e665";\r\n}\r\n\r\n.icon-_collected:before {\r\n content: "\\e666";\r\n}\r\n\r\n.icon-_collect:before {\r\n content: "\\e667";\r\n}\r\n\r\n.icon-_list:before {\r\n content: "\\e668";\r\n}\r\n\r\n.icon-_close:before {\r\n content: "\\e65d";\r\n}\r\n\r\n.icon-_search:before {\r\n content: "\\e660";\r\n}\r\n\r\n.icon-_selection_tool1:before {\r\n content: "\\e65c";\r\n}\r\n\r\n.icon-_infinite:before {\r\n content: "\\e65b";\r\n}\r\n\r\n.icon-_icon_fade-in:before {\r\n content: "\\e65a";\r\n}\r\n\r\n.icon-_private:before {\r\n content: "\\e639";\r\n}\r\n\r\n.icon-_icon_empty1:before {\r\n content: "\\e631";\r\n}\r\n\r\n.icon-_group_view:before {\r\n content: "\\e634";\r\n}\r\n\r\n.icon-_icon_phone:before {\r\n content: "\\e62b";\r\n}\r\n\r\n.icon-_icon_web:before {\r\n content: "\\e62c";\r\n}\r\n\r\n.icon-_icon_down:before {\r\n content: "\\e622";\r\n}\r\n\r\n.icon-_icon_left:before {\r\n content: "\\e623";\r\n}\r\n\r\n.icon-_icon_up:before {\r\n content: "\\e624";\r\n}\r\n\r\n.icon-_icon_zoomin:before {\r\n content: "\\e61f";\r\n}\r\n\r\n.icon-_icon_zoomout:before {\r\n content: "\\e620";\r\n}\r\n\r\n.icon-_icon_right:before {\r\n content: "\\e621";\r\n}\r\n\r\n.icon-_icon_italic:before {\r\n content: "\\e644";\r\n}\r\n\r\n.icon-_icon_lineThrough:before {\r\n content: "\\e645";\r\n}\r\n\r\n.icon-_icon_underline:before {\r\n content: "\\e646";\r\n}\r\n\r\n.icon-_icon_bold:before {\r\n content: "\\e647";\r\n}\r\n\r\n.icon-_icon_fixedpoint:before {\r\n content: "\\e63b";\r\n}\r\n\r\n.icon-_icon_show:before {\r\n content: "\\e63d";\r\n}\r\n\r\n.icon-_icon_conceal:before {\r\n content: "\\e63e";\r\n}\r\n\r\n.icon-_scale:before {\r\n content: "\\e988";\r\n}\r\n\r\n.icon-_center:before {\r\n content: "\\e97b";\r\n}\r\n\r\n.icon-_reset:before {\r\n content: "\\e974";\r\n}\r\n\r\n.icon-_board_pause:before {\r\n content: "\\e96f";\r\n}\r\n\r\n.icon-_board_play:before {\r\n content: "\\e96e";\r\n}\r\n\r\n.icon-_interaction_gestu7:before {\r\n content: "\\e969";\r\n}\r\n\r\n.icon-_interaction_none:before {\r\n content: "\\e953";\r\n}\r\n\r\n.icon-_interaction_fadei:before {\r\n content: "\\e954";\r\n}\r\n\r\n.icon-_postil_bordercolo:before {\r\n content: "\\e942";\r\n}\r\n\r\n.icon-_download:before {\r\n content: "\\e943";\r\n}\r\n\r\n.icon-_align_averagev:before {\r\n content: "\\e938";\r\n}\r\n\r\n.icon-_align_bottom:before {\r\n content: "\\e93b";\r\n}\r\n\r\n.icon-_align_averageh:before {\r\n content: "\\e93c";\r\n}\r\n\r\n.icon-_align_hcenter:before {\r\n content: "\\e93d";\r\n}\r\n\r\n.icon-_align_top:before {\r\n content: "\\e93e";\r\n}\r\n\r\n.icon-_align_left:before {\r\n content: "\\e93f";\r\n}\r\n\r\n.icon-_align_vcenter:before {\r\n content: "\\e940";\r\n}\r\n\r\n.icon-_align_right:before {\r\n content: "\\e941";\r\n}\r\n\r\n.icon-_tree_edit:before {\r\n content: "\\e907";\r\n}\r\n\r\n.icon-_postil_fill:before {\r\n content: "\\e939";\r\n}\r\n\r\n.icon-_postil_font_color:before {\r\n content: "\\e936";\r\n}\r\n\r\n.icon-_layertree_forbid:before {\r\n content: "\\e934";\r\n}\r\n\r\n.icon-_nav_notice:before {\r\n content: "\\e935";\r\n}\r\n\r\n.icon-_broad_back:before {\r\n content: "\\e8d6";\r\n}\r\n\r\n.icon-_interaction_back:before {\r\n content: "\\e8d8";\r\n}\r\n\r\n.icon-_index_copy:before {\r\n content: "\\e8d9";\r\n}\r\n\r\n.icon-_broad_home:before {\r\n content: "\\e8da";\r\n}\r\n\r\n.icon-_tag_uparrow:before {\r\n content: "\\e8db";\r\n}\r\n\r\n.icon-_demo_delete:before {\r\n content: "\\e8dc";\r\n}\r\n\r\n.icon-_demo_close:before {\r\n content: "\\e8dd";\r\n}\r\n\r\n.icon-_tag_rightarrow:before {\r\n content: "\\e8de";\r\n}\r\n\r\n.icon-_demo_quit:before {\r\n content: "\\e8df";\r\n}\r\n\r\n.icon-_doc_link:before {\r\n content: "\\e8e0";\r\n}\r\n\r\n.icon-_layertree_pic:before {\r\n content: "\\e8e1";\r\n}\r\n\r\n.icon-_layertree_cutshap:before {\r\n content: "\\e8e2";\r\n}\r\n\r\n.icon-_demo_leftarrow:before {\r\n content: "\\e8e3";\r\n}\r\n\r\n.icon-_tag_downarrow:before {\r\n content: "\\e8e4";\r\n}\r\n\r\n.icon-_demo_control:before {\r\n content: "\\e8e5";\r\n}\r\n\r\n.icon-_layertree_cutpic:before {\r\n content: "\\e8e6";\r\n}\r\n\r\n.icon-_layertree_cutgrou:before {\r\n content: "\\e8e7";\r\n}\r\n\r\n.icon-_index_set:before {\r\n content: "\\e8e8";\r\n}\r\n\r\n.icon-_demo_share:before {\r\n content: "\\e8ea";\r\n}\r\n\r\n.icon-_tag_leftarrow:before {\r\n content: "\\e8eb";\r\n}\r\n\r\n.icon-_demo_code:before {\r\n content: "\\e8ec";\r\n}\r\n\r\n.icon-_layertree_start:before {\r\n content: "\\e8ed";\r\n}\r\n\r\n.icon-_demo_rightarrow:before {\r\n content: "\\e8ee";\r\n}\r\n\r\n.icon-_demo_home:before {\r\n content: "\\e8ef";\r\n}\r\n\r\n.icon-_board_search:before {\r\n content: "\\e8f0";\r\n}\r\n\r\n.icon-_layertree:before {\r\n content: "\\e8f2";\r\n}\r\n\r\n.icon-_layertree_shape:before {\r\n content: "\\e8f5";\r\n}\r\n\r\n.icon-_manage_new:before {\r\n content: "\\e8f6";\r\n}\r\n\r\n.icon-_manage_addpeople:before {\r\n content: "\\e8f7";\r\n}\r\n\r\n.icon-_logo:before {\r\n content: "\\e8f8";\r\n}\r\n\r\n.icon-_tree_group:before {\r\n content: "\\e8fc";\r\n}\r\n\r\n.icon-_nav_download:before {\r\n content: "\\e8fd";\r\n}\r\n\r\n.icon-_tree_flag:before {\r\n content: "\\e8ff";\r\n}\r\n\r\n.icon-_tree_leftback:before {\r\n content: "\\e900";\r\n}\r\n\r\n.icon-_zoomin:before {\r\n content: "\\e902";\r\n}\r\n\r\n.icon-_tree:before {\r\n content: "\\e904";\r\n}\r\n\r\n.icon-_preview_back:before {\r\n content: "\\e90a";\r\n}\r\n\r\n.icon-_ps_clipping:before {\r\n content: "\\e90b";\r\n}\r\n\r\n.icon-_tree_rightback:before {\r\n content: "\\e90c";\r\n}\r\n\r\n.icon-_ps_more:before {\r\n content: "\\e90d";\r\n}\r\n\r\n.icon-_tree_index:before {\r\n content: "\\e90e";\r\n}\r\n\r\n.icon-_postil_dialog:before {\r\n content: "\\e910";\r\n}\r\n\r\n.icon-_nav_play:before {\r\n content: "\\e911";\r\n}\r\n\r\n.icon-_zoomout:before {\r\n content: "\\e912";\r\n}\r\n\r\n.icon-_nav_people:before {\r\n content: "\\e913";\r\n}\r\n\r\n.icon-_zoomin_pressed:before {\r\n content: "\\e914";\r\n}\r\n\r\n.icon-_ps_uploadpic:before {\r\n content: "\\e915";\r\n}\r\n\r\n.icon-_postil_history:before {\r\n content: "\\e916";\r\n}\r\n\r\n.icon-_tag_percent:before {\r\n content: "\\e917";\r\n}\r\n\r\n.icon-_tag_percent1:before {\r\n content: "\\e918";\r\n}\r\n\r\n.icon-_zoomout_pressed:before {\r\n content: "\\e919";\r\n}\r\n\r\n.icon-_tag_percent2:before {\r\n content: "\\e91a";\r\n}\r\n\r\n.icon-_tag_clock:before {\r\n content: "\\e91c";\r\n}\r\n\r\n.icon-_tag_exclamation:before {\r\n content: "\\e91e";\r\n}\r\n\r\n.icon-_tag_resolved:before {\r\n content: "\\e91f";\r\n}\r\n\r\n.icon-_tag_three:before {\r\n content: "\\e920";\r\n}\r\n\r\n.icon-_tag_happy:before {\r\n content: "\\e922";\r\n}\r\n\r\n.icon-_add_pic:before {\r\n content: "\\e923";\r\n}\r\n\r\n.icon-_add_psd:before {\r\n content: "\\e924";\r\n}\r\n\r\n.icon-_tag_sad:before {\r\n content: "\\e925";\r\n}\r\n\r\n.icon-_tag_set:before {\r\n content: "\\e926";\r\n}\r\n\r\n.icon-_tag_question:before {\r\n content: "\\e928";\r\n}\r\n\r\n.icon-_tag_flag:before {\r\n content: "\\e929";\r\n}\r\n\r\n.icon-_new_example:before {\r\n content: "\\e92c";\r\n}\r\n\r\n.icon-_tag_one:before {\r\n content: "\\e92d";\r\n}\r\n\r\n.icon-_tag_peace:before {\r\n content: "\\e92e";\r\n}\r\n\r\n.icon-_tag_four:before {\r\n content: "\\e92f";\r\n}\r\n\r\n.icon-_tag_people:before {\r\n content: "\\e930";\r\n}\r\n\r\n.icon-_zoomin_pressed-copy:before {\r\n content: "\\e989";\r\n}\r\n\r\n.icon-_tag_two:before {\r\n content: "\\e931";\r\n}\r\n\r\n.icon-_tag_five:before {\r\n content: "\\e933";\r\n}\r\n\r\n',""])},function(e,t,n){e.exports=n.p+"assets/542d2fa5767683dd088ebe97eb4424da.woff"},function(e,t,n){e.exports=n.p+"assets/44e1a04ff10b824641dcc7091c47a44e.ttf"},function(e,t,n){e.exports=n.p+"assets/55edb75c82da69a90f94521996dab073.svg"},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(138);n(1456);const i=n(1457),a=n(1458),s=n(1459),l=n(1460),c=n(1461),u=n(1462),d=n(1463),h=n(1464),p=n(1465),f=n(1466),m=n(1467),g=n(1468),v=n(1469),y=n(1470),b=n(1471),w=n(1472),C=n(1473),_=n(1474),x=n(1475),S=n(1476),k=n(1477),P=n(1478),T=n(1479),E=n(1480),O=n(1481),M=n(1482),A=n(1483),D=n(1484),I=n(1485),L=n(1486),N=n(1487),j=n(1488),R=n(2),z={doc_axure:i,doc_ai:l,doc_doc:a,doc_excel:c,doc_justinmind:u,doc_mockplus:d,doc_pdf:h,doc_pic:p,doc_ppt:f,doc_PS:m,doc_txt:g,doc_word:v,doc_XD:y,doc_zip:b,doc_idoc:I,doc_confluence:L,doc_prd:s,addfile_pic:w,addfile_PS:C,addfile_Sketch:_,addfile_XD:x,addfile_PS_30:S,addfile_Sketch_30:k,addfile_XD_30:P,addfile_Axure_30:T,addfile_Sketch_gray:E,addfile_PS_gray:O,addfile_XD_gray:M,addfile_Axure_gray:A,addfile_Figma:D,app_axure:N,app_mockplus:j},F=e=>{const{cls:t,tooltip:n,width:i,height:a,className:s,onClick:l,disabled:c}=e,u=r.createElement("img",{className:R.default(s,{disabled:c}),width:i,height:a,src:z[t],alt:n,onClick:l});return n?r.createElement(o.default,{text:n,theme:"small"},u):u};F.defaultProps={cls:"doc_axure",width:20,height:20,tooltip:""},t.default=F},function(e,t,n){},function(e,t,n){e.exports=n.p+"assets/06f8c679bdc13d56f47752c25e79da28.svg"},function(e,t,n){e.exports=n.p+"assets/10d4439cf98c4d4c4efad2bcec0f8bf3.svg"},function(e,t,n){e.exports=n.p+"assets/1ff44fe6865fef4d8c0532dc9a7436da.svg"},function(e,t,n){e.exports=n.p+"assets/c088c6a449a4ed01267cfec5fc89b0af.svg"},function(e,t,n){e.exports=n.p+"assets/e10097b7e9a17010568d8a9ffafed6e1.svg"},function(e,t,n){e.exports=n.p+"assets/80c80ded7dccfb9a4a6ffb1c3880773c.svg"},function(e,t,n){e.exports=n.p+"assets/0752954fd83819f2cd865251e6665360.svg"},function(e,t,n){e.exports=n.p+"assets/d4a3a5f0744aab5824db2074dbfa611c.svg"},function(e,t,n){e.exports=n.p+"assets/ceb1a45c9175169d0dd62531ac88af1c.svg"},function(e,t,n){e.exports=n.p+"assets/f87956fb76933d6af2a5164e7faf833e.svg"},function(e,t,n){e.exports=n.p+"assets/6817e1f0e5eb4875fd48baaae2e3ef4f.svg"},function(e,t,n){e.exports=n.p+"assets/acc7153a520d7d97a12bf39ac118df87.svg"},function(e,t,n){e.exports=n.p+"assets/8d2b5532c4307e328479b4143b4fce45.svg"},function(e,t,n){e.exports=n.p+"assets/540581174b452b32c738c19a61675774.svg"},function(e,t,n){e.exports=n.p+"assets/88a84672ade843e5d8ee766b85bdcc97.svg"},function(e,t,n){e.exports=n.p+"assets/ee773145701141f45b960e6b99f5be8f.svg"},function(e,t,n){e.exports=n.p+"assets/7039fab704574e15db510735627046d1.svg"},function(e,t,n){e.exports=n.p+"assets/aa58670e4637ba7882588ff23208c735.svg"},function(e,t,n){e.exports=n.p+"assets/200b976ac6ed645a0bfe0f90a35fda32.svg"},function(e,t,n){e.exports=n.p+"assets/d19fee49182bc2652a02642f59cd272a.svg"},function(e,t,n){e.exports=n.p+"assets/89b1908135d15dd0dd9608f8c24c77af.svg"},function(e,t,n){e.exports=n.p+"assets/31fb9ae11cc19db3a8d5cbe4e79b7c31.svg"},function(e,t,n){e.exports=n.p+"assets/8fd68ceaa450012aaf966174ad5c01e1.svg"},function(e,t,n){e.exports=n.p+"assets/4d660f7b6fbece6d68726ac68e5eb10c.svg"},function(e,t,n){e.exports=n.p+"assets/f361efb66168912751298e063ef48a7f.svg"},function(e,t,n){e.exports=n.p+"assets/332522aeca9475b35a72fb50bf50c8d3.svg"},function(e,t,n){e.exports=n.p+"assets/115056aedf8c294f402ad5df702e117f.svg"},function(e,t,n){e.exports=n.p+"assets/195fe8b4d3e0f6b92d41a33cbcf72970.svg"},function(e,t,n){e.exports=n.p+"assets/766734ba74dc7414ec4eea2edf437002.svg"},function(e,t,n){e.exports=n.p+"assets/a43ad983d9298156beb7844716ef06ea.svg"},function(e,t,n){e.exports=n.p+"assets/f2c88b9c3ce21f05df9a9122770f9d25.svg"},function(e,t,n){e.exports=n.p+"assets/7697eecc6eda6fc4a941fbeca6887eae.svg"},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(181),s=n(25);n(1499);const l=n(138);class c extends r.Component{constructor(e){super(e),this.inputRef=r.createRef(),this.initOwnOptions=e=>{const{showSelectAll:t,options:n}=e;return t&&n&&n.length>0&&n[0]!==s.default("TagButtonGroup.all")&&n.unshift(s.default("TagButtonGroup.all"),"-"),n||[]},this.closePanel=()=>{const{inputFocus:e}=this.state;this.setState({isShow:e,ownOptions:this.props.options||[]})},this.doSwitchPopup=()=>{const{closePanel:e,openPanel:t,value:n}=this.props,{isShow:r,ownOptions:o}=this.state;this.setState({isShow:!r,selectIdx:void 0!==n&&o?o.indexOf(n):0}),r?e&&e():t&&t()},this.onContainerClick=e=>{const{disabled:t,editable:n,isSearch:r}=this.props;n||t||r||(this.doSwitchPopup(),e.stopPropagation())},this.toggleShow=e=>{const{disabled:t}=this.props;t||(this.doSwitchPopup(),e.stopPropagation())},this.onSelect=e=>{const{value:t,onSelect:n,isSearch:r,options:o,showSelectAll:i}=this.props,{ownOptions:a}=this.state;this.setState({isShow:!1,selectIdx:void 0!==t&&a?a.indexOf(t):0},()=>{if(a)if(r){const t=(null==o?void 0:o.indexOf(a[e]))||0;n(a[t],t)}else i?n(a[e-2],e-2):n(a[e],e)})},this.onChange=e=>{const{type:t,options:n,isSearch:r,isSearchOnSubmit:o,onSearch:i}=this.props,{ownOptions:a}=this.state;let s=e.target.value;if(r){if(o)return i&&i(s),void this.setState({value:s});const e=(null==n?void 0:n.filter(e=>"string"==typeof e&&e.indexOf(s)>=0))||[];this.setState({ownOptions:e,value:s})}else"int"===t&&(s=s.replace(/\D/g,"")),this.setState({value:s,selectIdx:a?a.indexOf(s):0})},this.onKeyDown=e=>{const{isSearch:t,isSearchOnSubmit:n}=this.props;if(e.stopPropagation(),"Enter"===e.key&&n)return void this.onSubmit();if("Enter"!==e.key||t)return;let r=parseInt(e.target.value,10);const{maxValue:o,minValue:i}=this.props;o&&i&&(r=Math.max(Math.min(r,o),i)),this.setState({value:r}),this.props.onSelect(r,-1)},this.onFocus=e=>{const{onFocus:t}=this.props;this.setState({inputFocus:!0,isShow:!0}),t&&t()},this.onBlur=e=>{let t=parseInt(e.target.value,10)||0;const{type:n,onBlur:r,options:o,maxValue:i,minValue:a,isSearch:s}=this.props,{ownOptions:l}=this.state;s?this.setState({value:this.props.value||"",isShowInput:!1,inputFocus:!1}):("int"===n&&(void 0!==i&&void 0!==a&&(t=Math.max(Math.min(t,i),a)),this.setState({value:t,selectIdx:l?l.indexOf(t):0,isShowInput:!1})),r&&r(t))},this.onSubmit=()=>{const{onSearch:e}=this.props,{value:t}=this.state;e&&e(""+t)},this.onMouseHover=e=>{this.setState({selectIdx:e})},this.onClickValue=()=>{const{editable:e,isSearch:t}=this.props;e&&(t?this.setState({isShow:!0,isShowInput:!0}):this.setState({isShowInput:!0}))},this.state={isShow:!1,value:void 0!==e.value?e.value:0,selectIdx:void 0!==e.value&&e.options?e.options.indexOf(e.value):0,ownOptions:this.initOwnOptions(e),isShowInput:!1,inputFocus:!1}}componentWillReceiveProps(e){const{isShow:t,value:n,options:r}=this.props;e.isShow!==t&&this.setState({isShow:e.isShow||!1,selectIdx:void 0!==e.value&&e.options?e.options.indexOf(e.value):0}),e.value!==n&&this.setState({value:void 0!==e.value?e.value:0,selectIdx:void 0!==e.value&&e.options?e.options.indexOf(e.value):0}),e.options!==r&&this.setState({ownOptions:this.initOwnOptions(e)})}render(){const{disabled:e,menuWidth:t,tooltip:n,editable:s,unit:c,placeholder:u,width:d,direction:h,position:p,autoHeightMax:f,isNeedBorder:m,isSearch:g,emptySearchText:v,isSearchOnSubmit:y,theme:b,fullBorder:w}=this.props,{isShow:C,value:_,selectIdx:x,ownOptions:S,isShowInput:k,inputFocus:P}=this.state,T=S?S.map((e,t)=>({id:t,text:"number"==typeof e?e.toString():e})):[];return r.createElement("div",{style:s&&!g?{width:d}:{maxWidth:d},className:o.default("dsm-c-select",{"disabled-select":e,"position-left":"left"===p,"position-right":"right"===p,"search-mode":g,"search-mode-only-submit":y,blue:"blue"===b,"full-border":w}),onClick:this.onContainerClick},s?r.createElement("input",{ref:this.inputRef,className:o.default("dsm-c-select-title input-title",{"disable-edit":!s,"disable-unit":c,"disabled-select-input":e,"input-focus":P,"submit-search":y}),type:"text",placeholder:u,value:_,onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,disabled:e,draggable:e}):r.createElement(l.default,{text:C?"":n,theme:"small"},r.createElement("span",{className:o.default("dsm-c-select-title",{"disable-edit":!s,"disable-unit":c,"disabled-select-value":e}),onClick:this.onClickValue},_||0)),r.createElement("span",{className:o.default("select-unit",{hide:!c,"disabled-select-unit":e})},c),r.createElement(i.default,{cls:"tag_downarrow",disabled:e,solid:!0,onClick:this.toggleShow}),this.state.isShow&&r.createElement("div",{className:o.default({"direction-up":"up"===h,needBorder:m}),style:{position:"relative",zIndex:2}},r.createElement(a.default,{selectIdx:x,options:T,disabled:!s&&e,onSelect:this.onSelect,onMouseHover:this.onMouseHover,maxWidth:t,autoHeightMax:f,onClose:this.closePanel,emptyMenuText:v})))}}c.defaultProps={isSearch:!1,isSearchOnSubmit:!1,editable:!1,tooltip:"",disabled:!1,options:[],unit:"",value:"",placeholder:s.default("Select.placeholder"),width:110,direction:"down",isShow:!1,type:"text",position:"left",showSelectAll:!1,fullBorder:!1},t.default=c},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(230);n(1493);const a=({text:e,children:t,width:n,linkText:a,align:s,onClickLink:l})=>r.createElement("div",{style:{width:n},className:"dsm-upgrade-tooltip",onClick:l},e&&r.createElement("div",{className:o.default("tips-content",s)},r.createElement("p",null,e),r.createElement(i.default,{className:"go-buy-link"},a)),t);a.defaultProps={text:"",linkText:""},t.default=a},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TagButtonGroup:{all:"全部",settings:"设置"},Dialog:{ok:"确定",cancel:"取消"},RadioButton:{text:"单选按钮"},Select:{placeholder:"请选择或输入"},TagsManager:{maxLength:"20",error:"分组名称长度限制20个字符。",dialog:"删除项目分组后不可恢复,确定仍要删除吗?",placeholder:"请输入{0}名称",title:"分组管理",actionName:"新建分组",rename:"重命名",delete:"删除"},tree:{emptySearch:"未搜索到结果"},colorPanel:{recentUse:"最近使用",customizeColor:"自定义颜色"},shortCutKey:{shortCutKey:"快捷键",projectTree:"项目树",canvas:"画布",storyboard:"画板",page:"页面",prototype:"交互",design:"设计",drag:"拖动",leftMouseButton:"左键 + 空格",zoom:"缩放",mouseWheel:"滚轮",zoomOut:"放大工作区",zoomIn:"缩小工作区",zoomToOne:"100%显示",zoomToTwo:"200%显示",zoomToThree:"300%显示",zoomToFour:"50%显示",zoomToArtboard:"适应画板",delete:"删除",leftKey:"左键",overview:"全览",map:"导航",preview:"全屏模式",lineDescription:"逻辑线描述",multiSelect:"多选",rename:"重命名",copy:"复制",paste:"粘贴",cut:"剪切",magnifier:"放大镜",doubleClick:"双击",percentageSpecs:"百分比标注",copyLink:"复制链接",select:"选择",pin:"图钉",rectangle:"矩形",circle:"圆形",straightLine:"直线",arrow:"箭头",text:"文字标注",imgLayers:"图层列表",createrHotArea:"快速创建热区",undoBtn:"撤销",redoBtn:"恢复",prePage:"上一页",nextPage:"下一页",left:"左",right:"右",selectAll:"全选",commentMode:"评论",reviewMode:"定稿",developMode:"开发",prdDocTree:"文档树",focus:"聚焦",generateOperation:"通用操作",dragWorkspace:"拖动工作区",mouseWheelUp:"滚轮向上",mouseWheelDown:"滚轮向下",basicOperation:"基础",lock:"锁定/取消锁定",demonstrate:"演示",componentClone:"组件克隆",dragComponent:"拖动组件",verticalClone:"水平或垂直克隆组件",mergeOrdissolve:"编组/取消编组",hidden:"显示/隐藏",containSelect:"包含框选",mouseRegion:"鼠标框选",selectDown:"选中下层",unSelect:"取消选择",addElement:"元素",texts:"文本",button:"按钮",image:"图片",pen:"钢笔",stickyNote:"便签条",circleMarker:"编号",dropMarker:"水滴",attributeSetting:"属性",componentHeight:"调整组件高度",componentWidth:"调整组件宽度",componentTransparent:"调整组件透明度",numberKey:"0~9",addFontsize:"字号增大",decreaseFontsize:"字号减小",bold:"粗体",italic:"斜体",line:"直线",underline:"下划线",oval:"椭圆",layoutSetting:"布局",componentMove:"组件移动",componentMoveFast:"组件移动10px",verticalMove:"水平/垂直移动",click:"单击",addRegion:"追加框选",selectRegion:"框选",forwardTier:"组件层级上移",abackTier:"组件层级下移",toTop:"组件置顶",toBottom:"组件置底",boardInterval:"查看间距",MouseOverComponent:"悬停",selectComponent:"选中组件",seeMouseOver:"悬停要查看的组件",justifyLeft:"左对齐",justifyRight:"右对齐",justifyTop:"顶对齐",justifyBottom:"底对齐",justifyCenter:"水平居中对齐",justifyVertical:"垂直居中对齐",levelIsometry:"水平等距",verticalIsometry:"垂直等距",projectSetting:"项目设置",newPage:"新建页面",actionName:"新建分组",pageUp:"页面上移",pageDown:"页面下移",recentPage:"切换到最近打开页面",InterfaceView:"其它",interfaceSetting:"项目",openTree:"打开项目",openComponent:"打开组件",openIcons:"打开图标",openResource:"打开资源",openLayer:"打开图层",unfoldLeftBoard:"收起/展开左侧面板",unfoldRightBoard:"收起/展开右侧面板",levelRoll:"水平滚动工作区",locateMainBoard:"定位到主画板",searchFast:"快速搜索",switchTabs:"切换分类",showHideGrid:"显示/隐藏网格",showHideLayout:"显示/隐藏布局",artboard:"画板",notes:"备注",autoSize:"自动大小",showRuler:"显示标尺",save:"保存"},mobileDialog:{title:"请在电脑上体验摹客完整功能",text:"如需进行移动端项目演示,请使用摹客App",ok:"好的",openApp:"打开App",unInstall:"尚未安装?",clickDownload:"点击下载",openAppFail:"抱歉,当前无法自动打开App",downloadApp:"点击下载最新版摹客App",openManually:"如已安装,请手动打开",cancel:"取消",download:"下载",appUrl:"https://app.mockplus.cn"},checkSelect:{hasSelected:"已选 {0} 人",hasSelectedGroup:",{0} 个部门",clearAll:"清空",unclassified:"未分组",selectAll:"全选",hasNotFound:"没有找到结果",maximumOfPeople:"已达人数上限。",last:"上次的选择"},searchInput:{searchHistory:"搜索历史",clearHistory:"清除"},rpActivity:{title:"摹客RP免费计划",inviteToGetFree:"邀请{0}名成员注册并加入团队一起工作,永久获得无限设计包",deadline:"活动截止:{0}",whatUnlimitedDesign:"什么是无限设计包?",definitionOfUnlimitedDesign:"无限设计包中包含摹客设计所有功能,页面数量无上限,设计功能无限制!获取后,团队所有成员均可享受。",invitationProgress:"邀请进度",invitationStatus:"已获得{0}个月无限设计包,再邀请{1}人即可永久获得,点击查看邀请记录。",invitationStatusHasGot:"已获得永久无限设计包,点击查看邀请记录。",viewInvitationHistory:"查看邀请记录",oneYear:"1年",addThreeMonth:"+3个月",forever:"永久",inviteSeveral:"邀请第{0}名成员",hasGotIt:"已获得",inviteNow:"立即邀请",getForeverPackage:"领取永久无限包",hasGotPackage:"团队已领取",goBack:"返回",invitation:{linkInvitation:"链接邀请",copyLink:"复制链接",inviteLinkDesc:"将链接发送给同事,邀请对方加入“{0}”",emailInvitation:"邮箱邀请",emailPlaceholder:"请输入企业邮箱,多个邮箱使用分号隔开",copySuccess:"复制成功",sendInvitation:"发送邀请",sendInvitationSuccess:"已成功发送",emailFormatError:"存在错误的邮箱地址,请更正后再试",copyText:"Hi~这款永久免费的原型设计工具,我必须要分享给你!功能强大,上手简单,不限页面,不限功能。马上注册,开始使用吧:{0}",foreverRPFree:"终身无限设计包",teamGotForeverFree:" 的团队获得了终身无限设计包"},guestLimitTip:"你在“{0}”中的身份是协同人,无法参与此活动。",guestSwitchTeam:"请切换团队后再试。",record:{num:"序号",time:"时间",sender:"邀请人",receiver:"受邀人",reward:"奖励",threeMonthReward:"3个月无限设计包",unlimitedPackage:"永久无限设计包",emptyTip:"还没有被邀请的成员呢,赶紧去邀请吧~"},receiveForever:{scanQR:"扫描活动客服二维码",get:"领取",unlimitedPackage:"永久无限设计包",rewardWillSoonArrived:"永久无限设计包预计1个工作日内发放至团队"}},pager:{total:"共{0}个",checkAll:"全选",selected:",已选{0}",batchOperate:"批量操作"},emptyTip:{emptyTip:"暂无内容",searchEmptyTip:"未搜索到相关内容"},role:{superAdministrator:"超级管理员",administrator:"管理员",member:"成员",guest:"协同人"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TagButtonGroup:{all:"All",settings:"Settings"},Dialog:{ok:"OK",cancel:"Cancel"},RadioButton:{text:"Radio Button"},Select:{placeholder:"Select or type here"},TagsManager:{maxLength:"50",error:"The group name cannot exceed 50 characters.",dialog:"After the group is deleted, it can’t be restored. Are you sure you want to delete it?",placeholder:"Type the group name",title:"Manage groups",actionName:"Create group",rename:"Rename",delete:"Delete"},tree:{emptySearch:"No results found"},colorPanel:{recentUse:"Recent colors",customizeColor:"Custom colors"},shortCutKey:{shortCutKey:"Shortcut Keys",feature:"Features",projectTree:"Project Tree",canvas:"Canvas",storyboard:"Storyboard",page:"Page",prototype:"Prototype",design:"Design",drag:"Drag",leftMouseButton:"Click+Space",zoom:"Zoom",mouseWheel:"Mouse wheel",zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToOne:"Zoom to 100%",zoomToTwo:"Zoom to 200%",zoomToThree:"Zoom to 300%",zoomToFour:"Zoom to 50%",zoomToArtboard:"Fit to artboard",delete:"Delete",leftKey:"Click",overview:"Overview",map:"Map",preview:"Full screen",lineDescription:"Line description",multiSelect:"Multiselect",rename:"Rename",copy:"Copy",paste:"Paste",cut:"Cut",magnifier:"Magnifier",doubleClick:"Double click",percentageSpecs:"Percentage specs",copyLink:"Copy link",select:"Select",pin:"Pin",rectangle:"Rectangle",circle:"Circle",straightLine:"Straight line",arrow:"Arrow",text:"Text",imgLayers:"Layer list",createrHotArea:"Create link area rapidly",undoBtn:"Undo",redoBtn:"Redo",prePage:"Previous",nextPage:"Next",left:"Left",right:"Right",selectAll:"Select all",commentMode:"Comment",reviewMode:"Review",developMode:"Development",prdDocTree:"Document tree",focus:"Focus",generateOperation:"通用操作",dragWorkspace:"Drag workspace",mouseWheelUp:"Mousewheel up",mouseWheelDown:"Mousewheel down",basicOperation:"Common",lock:"Lock / Unlock",demonstrate:"Preview",componentClone:"Clone",dragComponent:"拖动组件",verticalClone:"水平或垂直克隆组件",mergeOrdissolve:"Group / Ungroup",hidden:"Show / Hide",containSelect:"Select contained",mouseRegion:"鼠标框选",selectDown:"Select layer below",unSelect:"Deselect",addElement:"Insert",texts:"Text",button:"Button",image:"Image",pen:"Pen",stickyNote:"Sticky Note",circleMarker:"Circle Marker",dropMarker:"Drop Marker",attributeSetting:"Properties",componentHeight:"调整组件高度",componentWidth:"调整组件宽度",componentTransparent:"Adjust opacity",numberKey:"0~9",addFontsize:"Font size +",decreaseFontsize:"Font size -",bold:"Bold",italic:"Italic",line:"Line",underline:"Underline",oval:"Ellipse",layoutSetting:"Layout",componentMove:"Move",componentMoveFast:"Move 10 px",verticalMove:"水平/垂直移动",click:"Click",addRegion:"Add to frame selection",selectRegion:"Frame selection",forwardTier:"Bring forward",abackTier:"Send backward",toTop:"Send to front",toBottom:"Send to back",boardInterval:"Show distance",MouseOverComponent:"Mouse hover",selectComponent:"选中组件",seeMouseOver:"悬停要查看的组件",justifyLeft:"Align left",justifyRight:"Align right",justifyTop:"Align top",justifyBottom:"Align bottom",justifyCenter:"Align center",justifyVertical:"Align middle",levelIsometry:"Distribute horizontally",verticalIsometry:"Distribute vertically",projectSetting:"项目设置",newPage:"Add page",actionName:"Add group",pageUp:"页面上移",pageDown:"页面下移",recentPage:"切换到最近打开页面",InterfaceView:"Misc",interfaceSetting:"Project",openTree:"打开项目",openComponent:"打开组件",openIcons:"打开图标",openResource:"打开资源",openLayer:"打开图层",unfoldLeftBoard:"收起/展开左侧面板",unfoldRightBoard:"收起/展开右侧面板",levelRoll:"Horizontally scroll workspace",locateMainBoard:"定位到主画板",searchFast:"Quick search",switchTabs:"Switch left panel tabs",showHideGrid:"Show/Hide Grid",showHideLayout:"Show/Hide Layout",artboard:"Artboard",notes:"Notes",autoSize:"AutoSize",showRuler:"Show rulers",save:"Save"},mobileDialog:{title:"Enjoy all Mockplus features on your PC",text:" If you want to preview a mobile project, try the Mockplus Mobile App.",ok:"OK",openApp:"Start Mockplus Mobile App now",unInstall:"Haven't installed it yet?",clickDownload:"Install now",openAppFail:"Sorry, app cannot be started",downloadApp:"Download the latest version",openManually:"Latest version installed? Start manually",cancel:"Got it",download:"Download",appUrl:"https://idoc.mockplus.com"},checkSelect:{hasSelected:"{0} member(s)",hasSelectedGroup:",{0} group(s)",clearAll:"Deselect",unclassified:"Ungrouped",selectAll:"Select all",hasNotFound:"No results found",maximumOfPeople:"Maximum number of members reached.",last:"Last selection"},searchInput:{searchHistory:"搜索历史",clearHistory:"清除"},rpActivity:{title:"摹客RP免费计划",inviteToGetFree:"邀请{0}名新成员注册并加入团队,即可永久获得无限设计包!",deadline:"活动截止:{0}",whatUnlimitedDesign:"什么是无限设计包?",definitionOfUnlimitedDesign:"无限设计包中包含摹客设计所有功能,页面数量无上限,设计功能无限制!获取后,团队所有成员均可享受。",invitationProgress:"邀请进度",invitationStatus:"已获得{0}个月无限设计包,再邀请{1}人即可永久获得,点击查看邀请记录。",invitationStatusHasGot:"已获得永久无限设计包,点击查看邀请记录。",viewInvitationHistory:"查看邀请记录",oneYear:"1年",addThreeMonth:"+3个月",forever:"永久",inviteSeveral:"邀请{0}名成员",hasGotIt:"已获得",inviteNow:"立即邀请",getForeverPackage:"领取永久无限包",hasGotPackage:"团队已领取",goBack:"返回",invitation:{linkInvitation:"链接邀请",copyLink:"复制链接",inviteLinkDesc:"将链接发送给同事,邀请对方加入“{0}”",emailInvitation:"邮箱邀请",emailPlaceholder:"请输入企业邮箱,多个邮箱使用分号隔开",copySuccess:"复制成功",sendInvitation:"发送邀请",sendInvitationSuccess:"已成功发送",emailFormatError:"存在错误的邮箱地址,请更正后再试",copyText:"Hi~这款永久免费的原型设计工具,我必须要分享给你!功能强大,上手简单,不限页面,不限功能。马上注册,开始使用吧:{0}"},guestLimitTip:"你在“{0}”中的身份是协同人,无法参与此活动。 请切换团队后再试。",record:{num:"序号",time:"时间",sender:"邀请人",receiver:"受邀人",reward:"奖励",threeMonthReward:"3个月无限设计包",emptyTip:"还没有被邀请的成员呢,赶紧去邀请吧~"},receiveForever:{scanQR:"扫描活动客服二维码",get:"领取",unlimitedPackage:"永久无限设计包",rewardWillSoonArrived:"永久无限设计包预计1个工作日内发放至团队"}},pager:{total:"共 {0} 个",checkAll:"全选",selected:",已选{0}",batchOperate:"批量操作"},emptyTip:{emptyTip:"暂无内容",searchEmptyTip:"未搜索到相关内容"},role:{superAdministrator:"超级管理员",administrator:"管理员",member:"成员",guest:"协同人"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TagButtonGroup:{all:"全部",settings:"設定"},Dialog:{ok:"確定",cancel:"取消"},RadioButton:{text:"單選按鈕"},Select:{placeholder:"請選擇或輸入"},TagsManager:{maxLength:"20",error:"分組名稱長度限制20個字元。",dialog:"刪除專案分組后不可恢復,確定仍要刪除嗎?",placeholder:"請輸入{0}名稱",title:"分組管理",actionName:"新建分組",rename:"重命名",delete:"刪除"},tree:{emptySearch:"未搜尋到結果"},colorPanel:{recentUse:"最近使用",customizeColor:"自訂顏色"},shortCutKey:{shortCutKey:"快捷鍵",projectTree:"專案樹",canvas:"畫布",storyboard:"畫板",page:"頁面",prototype:"交互",design:"設計",drag:"拖動",leftMouseButton:"左鍵 + 空格",zoom:"縮放",mouseWheel:"滾輪",zoomOut:"放大工作區",zoomIn:"縮小工作區",zoomToOne:"100%顯示",zoomToTwo:"200%顯示",zoomToThree:"300%顯示",zoomToFour:"50%顯示",zoomToArtboard:"適應畫板",delete:"刪除",leftKey:"左鍵",overview:"全覽",map:"導航",preview:"全屏範式",lineDescription:"邏輯線描述",multiSelect:"多選",rename:"重命名",copy:"復制",paste:"貼上",cut:"剪下",magnifier:"放大鏡",doubleClick:"雙點",percentageSpecs:"百分比標記",copyLink:"復制鏈結",select:"選擇",pin:"圖釘",rectangle:"矩形",circle:"圓形",straightLine:"直線",arrow:"箭頭",text:"文字標記",imgLayers:"圖層列表",createrHotArea:"快速創建熱區",undoBtn:"撤銷",redoBtn:"恢復",prePage:"上一頁",nextPage:"下一頁",left:"左",right:"右",selectAll:"全選",commentMode:"評論",reviewMode:"定稿",developMode:"開發",prdDocTree:"文檔樹",focus:"聚焦",generateOperation:"通用作業",dragWorkspace:"拖動工作區",mouseWheelUp:"滾輪向上",mouseWheelDown:"滾輪向下",basicOperation:"基礎",lock:"鎖定/取消鎖定",demonstrate:"演示",componentClone:"元件克隆",dragComponent:"拖動元件",verticalClone:"水平或垂直克隆元件",mergeOrdissolve:"編組/解散",hidden:"顯示/隱藏",containSelect:"包含框選",mouseRegion:"滑鼠框選",selectDown:"選中下層",unSelect:"取消選擇",addElement:"元素",texts:"文字",button:"按鈕",image:"圖片",pen:"鋼筆",stickyNote:"便簽條",circleMarker:"編號",dropMarker:"水滴",attributeSetting:"屬性",componentHeight:"調整元件高度",componentWidth:"調整元件寬度",componentTransparent:"調整元件透明度",numberKey:"0~9",addFontsize:"字型大小增大",decreaseFontsize:"字型大小減小",bold:"粗體",italic:"斜體",line:"直線",underline:"下劃線",oval:"橢圓",layoutSetting:"布局",componentMove:"元件移動",componentMoveFast:"元件移動10px",verticalMove:"水平/垂直移動",click:"單點",addRegion:"追加框選",selectRegion:"框選",forwardTier:"元件層級上移",abackTier:"元件層級下移",toTop:"元件置頂",toBottom:"元件置底",boardInterval:"檢視間距",MouseOverComponent:"懸停",selectComponent:"選中元件",seeMouseOver:"懸停要檢視的元件",justifyLeft:"左對齊",justifyRight:"右對齊",justifyTop:"頂對齊",justifyBottom:"底對齊",justifyCenter:"水平居中對齊",justifyVertical:"垂直居中對齊",levelIsometry:"水平等距",verticalIsometry:"垂直等距",projectSetting:"專案設定",newPage:"新建頁面",actionName:"新建分組",pageUp:"頁面上移",pageDown:"頁面下移",recentPage:"切換到最近開啟頁面",InterfaceView:"其它",interfaceSetting:"專案",openTree:"開啟專案",openComponent:"開啟元件",openIcons:"開啟圖示",openResource:"開啟資源",openLayer:"開啟圖層",unfoldLeftBoard:"收起/展開左側面板",unfoldRightBoard:"收起/展開右側面板",levelRoll:"水平卷軸工作區",locateMainBoard:"定位到主畫板",searchFast:"快速搜尋",switchTabs:"切換分類",showHideGrid:"顯示/隱藏網格",showHideLayout:"顯示/隱藏布局",artboard:"畫板",notes:"備注",autoSize:"自動大小"},mobileDialog:{title:"請在電腦上體驗摹客完整功能",text:"如需進行移動端專案演示,請使用摹客App",ok:"好的",openApp:"開啟App",unInstall:"尚未安裝?",clickDownload:"點擊下載",openAppFail:"抱歉,當前無法自動開啟App",downloadApp:"點擊下載最新版摹客App",openManually:"如已安裝,請手動開啟",cancel:"取消",download:"下載",appUrl:"https://app.mockplus.cn"},checkSelect:{hasSelected:"已選 {0} 人",clearAll:"清空",unclassified:"未分組",selectAll:"全選",hasNotFound:"沒有找到結果",maximumOfPeople:"已達人數上限。"}}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(25);n(1501);t.default=e=>{const{options:t,onClearHistory:n,onClickItem:i}=e,a=t.slice(0,5);return r.createElement("div",{className:"dsm-c-search-input-history-panel"},r.createElement("div",{className:"header"},r.createElement("span",null,o.default("searchInput.searchHistory")),r.createElement("span",{className:"clear",onClick:n},o.default("searchInput.clearHistory"))),r.createElement("ul",{className:"content"},a.map(e=>r.createElement("li",{key:e,onClick:t=>{t.stopPropagation(),i(e,!0)}},e))))}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);n(1505);const o=n(70);class i extends r.Component{render(){return r.createElement("div",{className:"dsm-c-checkbox-group"},this.props.data.map(e=>r.createElement(o.default,{key:e.id,checked:e.checked,text:e.text,onChange:t=>{this.props.onItemChange(e.id,t)}})))}}t.default=i},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(458);n(1508);class i extends r.Component{constructor(e){super(e),this.state={selected:e.selected}}onItemClicked(e){this.setState({selected:e},()=>this.props.onChange&&this.props.onChange(e))}render(){return r.createElement("div",{className:"dsm-c-radio-button"},this.props.data.map(e=>r.createElement(o.default,{key:e.id,text:e.text,checked:e.id===this.state.selected,disabled:e.disabled,onClick:this.onItemClicked.bind(this,e.id)})))}}t.default=i},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(163),i=n(2),a=n(25),s=n(1512),l=n(26),c=n(138);n(1514);const u=e=>{const{tags:t,showAll:n,textAll:a,multiple:u,selected:d,settingsLinkTo:h,toolTipText:p,allIndex:f,firstTagId:m,hideSettingButton:g,onClickSetting:v}=e;if(n){const e={id:"all",text:a||"All"};if(t.unshift(e),m){let e;t.forEach((n,r)=>{n.id===m&&(e=n,t.splice(r,1))}),e&&t.unshift(e)}void 0!==f&&-1!==f&&0!==f&&(t.splice(0,1),t.splice(f,0,e))}return r.createElement("div",{className:"dsm-c-tag-button-group"},e.tags.map(t=>{var n,o,i,a;if(!t)return null;const u=e.multiple?e.selected.includes(t.id):e.selected===t.id;return r.createElement(s.default,{key:t.id,selected:u,onClick:()=>{e.onSelect&&e.onSelect(t.id)}},t.tooltip?r.createElement(c.default,{text:t.tooltip,theme:"small"},r.createElement("span",null,t.icon?r.createElement(l.default,{cls:t.icon,disableHoverColor:!0}):"",t.text?r.createElement("span",{className:"tag-text"},t.text):"")):r.createElement("span",null,t.icon?r.createElement(l.default,{cls:t.icon}):"",t.text?r.createElement("span",{className:"tag-text"},t.text):"",t.imgUrl&&u&&r.createElement(r.Fragment,null,t.imgTooltip?r.createElement(c.default,{text:t.imgTooltip,theme:"small"},r.createElement("img",{className:"tag-img",src:t.imgUrl,width:(null===(n=t.imgStyle)||void 0===n?void 0:n.width)||10,height:(null===(o=t.imgStyle)||void 0===o?void 0:o.height)||12,onClick:()=>{e.onClickImg&&e.onClickImg(t.id)}})):r.createElement("img",{className:"tag-img",src:t.imgUrl,width:(null===(i=t.imgStyle)||void 0===i?void 0:i.width)||10,height:(null===(a=t.imgStyle)||void 0===a?void 0:a.height)||12,onClick:()=>{e.onClickImg&&e.onClickImg(t.id)}}))))}),!g&&r.createElement("div",{className:"tag-button-group-setting"},r.createElement(c.default,{theme:"small",text:p,align:"right"},h&&r.createElement(o.Link,{className:i.default("settings"),to:h},r.createElement(l.default,{cls:"index_set"})),v&&r.createElement(l.default,{cls:"index_set",onClick:v}))))};u.defaultProps={showAll:!0,textAll:a.default("TagButtonGroup.all"),toolTipText:a.default("TagButtonGroup.settings"),settingsLinkTo:"",multiple:!1,firstTagId:"",allIndex:-1},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1513),t.default=function(e){return r.createElement("div",{className:o.default("dsm-c-option-button",{"option-selected":e.selected}),onClick:e.onClick},e.children)}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(460),i=n(139),a=n(182),s=n(1517),l=n(25);n(1519);class c extends r.Component{constructor(e){super(e),this.state={toDelete:null,createNewTag:!1,newTag:"",error:""},this.onOk=this.onOk.bind(this),this.onCancel=this.onCancel.bind(this),this.onStartCreateNewTag=this.onStartCreateNewTag.bind(this),this.onCancelCreateNewTag=this.onCancelCreateNewTag.bind(this),this.onNewTagNameChange=this.onNewTagNameChange.bind(this),this.onCreateNewTag=this.onCreateNewTag.bind(this),this.newTagInputRef=r.createRef()}onRenameTag(e,t){const{onRenameTag:n}=this.props;n(e,t)}onDeleteTag(e){this.setState({toDelete:e})}onOk(){const{toDelete:e}=this.state,{onDeleteTag:t}=this.props;this.setState({toDelete:null},()=>{t(e)})}onCancel(){this.setState({toDelete:null})}onStartCreateNewTag(){this.setState({createNewTag:!0})}onCancelCreateNewTag(){this.setState({createNewTag:!1,newTag:"",error:""})}onNewTagNameChange(e){e.length>parseInt(l.default("TagsManager.maxLength"),10)?this.setState({newTag:e,error:l.default("TagsManager.error")}):this.setState({error:"",newTag:e})}onCreateNewTag(){const{onCreateNewTag:e}=this.props,{error:t,newTag:n}=this.state;t||(e(n),this.setState({createNewTag:!1,newTag:"",error:""}))}render(){const{title:e,backLink:t,actionName:n,tags:c,dialogTitle:u,editTitle:d,noTagsTip:h}=this.props,{toDelete:p,createNewTag:f,newTag:m,error:g}=this.state;return r.createElement("div",{className:"tags-manager-wrapper"},r.createElement(o.default,{title:e,backLink:t,actions:n?[n]:[],onClickAction:this.onStartCreateNewTag},c&&0===c.length&&r.createElement("span",{className:"no-tags-tip"},h),c&&c.map(({id:e,text:t})=>r.createElement(s.default,{key:e,editTitle:d||"",value:t,onRename:t=>{this.onRenameTag(e,t)},onDelete:()=>{this.onDeleteTag(e)}})),null!==p&&r.createElement(i.default,{showCancel:!0,sureDelete:!0,lightTitle:!0,onOk:this.onOk,onCancel:this.onCancel,title:l.default("TagsManager.dialog")}),f&&r.createElement(a.default,{showClose:!0,title:u,placeholder:l.default("TagsManager.placeholder",[n]),onOk:this.onCreateNewTag,onChange:this.onNewTagNameChange,onCancel:this.onCancelCreateNewTag,value:m,errorMsg:g})))}}c.defaultProps={title:l.default("TagsManager.title"),tags:[],actionName:l.default("TagsManager.actionName")},t.default=c},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(26),i=n(182),a=n(25);n(1518);class s extends r.Component{constructor(e){super(e),this.state={isEditing:!1,value:e.value,error:""},this.onChange=this.onChange.bind(this),this.onSubmit=this.onSubmit.bind(this)}onChange(e){e.length>parseInt(a.default("TagsManager.maxLength"),10)?this.setState({value:e,error:a.default("TagsManager.error")}):this.setState({error:"",value:e})}onSubmit(e){const{onRename:t}=this.props;t(e),this.setState({isEditing:!1})}render(){const{onDelete:e,editTitle:t}=this.props,{isEditing:n,error:s}=this.state;return r.createElement("div",{className:"dsm-c-tag"},this.props.value,r.createElement("div",{className:"actions"},r.createElement("span",{className:"action",onClick:()=>{this.setState({isEditing:!0})}},r.createElement(o.default,{cls:"tree_edit",hidden:!0,solid:!0,tooltip:a.default("TagsManager.rename")})),r.createElement("span",{className:"action",onClick:e},r.createElement(o.default,{cls:"demo_delete",hidden:!0,tooltip:a.default("TagsManager.delete")}))),n&&r.createElement(i.default,{showClose:!0,title:t,value:this.props.value,onCancel:()=>{this.setState({isEditing:!1})},onChange:this.onChange,onOk:this.onSubmit,placeholder:a.default("TagsManager.placeholder",t),errorMsg:s}))}}t.default=s},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1521);n(1529);class i extends r.Component{constructor(e){super(e),this.chooseColor=e=>{this.setState({chooseColor:!this.state.chooseColor},()=>{this.props.onTrigger&&this.props.onTrigger(this.state.chooseColor)}),e.stopPropagation()},this.onChangeColor=e=>{this.color=e,this.props.liveUpdate&&this.props.liveUpdate(e)},this.onClose=()=>{this.setState({chooseColor:!1},()=>{this.color&&this.props.onClose&&this.props.onClose(this.color)})},this.color=null,this.state={chooseColor:!1}}componentWillReceiveProps(e){e.isShow!==this.props.isShow&&this.setState({chooseColor:e.isShow})}render(){const{color:e}=this.props;return r.createElement("div",{className:"dsm-c-color"},r.createElement("div",{className:"dsm-c-color-block",style:{backgroundColor:this.props.color},onClick:this.chooseColor}),this.state.chooseColor&&r.createElement(o.default,{color:e,changeColor:this.onChangeColor,onClose:this.onClose}))}}i.defaultProps={isShow:!0},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(152),i=n(2),a=n(7),s=n(1522),l=n(1523),c=n(1524),u=n(1525),d=n(1526),h=n(1527),p=n(314);function f(e){const t=o(e),n=t.toHsv(),r=t.toHex(),i=t.toRgb(),s=t.getAlpha();let l=r;return a.isString(e)&&-1!==e.indexOf("#")&&(l=e.slice(1)),{hsv:n,hex:r,rgba:i,alpha:s,originalValue:l}}n(1528);class m extends r.Component{constructor(e){super(e),this.onChangeColor=()=>{this.props.changeColor(this.state.color)},this.changeColor=e=>{0===e.s&&(e.s=.001),0===e.v&&(e.v=.01);const t=o(e).toRgbString();this.props.onChange&&this.props.onChange(t),this.setState({color:f(e)},()=>{this.onChangeColor()})},this.inputChange=e=>{let t,n;"Hex"===e.label?(n=o(e.value),t=-1!==e.value.indexOf("#")?e.value:"#"+e.value):(t=Object.assign(Object.assign({},this.state.color.rgba),{[e.label]:e.value}),n=o(t)),n.isValid()&&this.changeColor(t)},this.handlePresetColor=e=>{this.changeColor(e.target.style.background)},this.state={color:f(e.color)}}render(){const e=this.state.color.rgba,t={background:o(this.state.color.rgba).toRgbString()},n=i.default({"dsm-c-color-picker":!0,[this.props.cls]:this.props.cls});return r.createElement("div",{className:n,draggable:!0,onDragStart:e=>(e.stopPropagation(),e.preventDefault(),!1),ref:this.props.forwardedRef,onClick:e=>e.stopPropagation()},r.createElement(s.default,{color:this.state.color,changeColor:this.changeColor}),r.createElement("div",{className:"slider-control"},r.createElement(l.default,{color:this.state.color,changeColor:this.changeColor}),r.createElement(c.default,{color:this.state.color,changeColor:this.changeColor}),r.createElement("div",{className:"current-color-wrap"},r.createElement("div",{className:"current-color",style:t}))),r.createElement("div",{className:"editable-input"},r.createElement("div",{className:"hex-input"},r.createElement(u.default,{value:this.state.color.originalValue,inputChange:this.inputChange,label:"Hex"})),r.createElement("div",{className:"rgba-input"},r.createElement(u.default,{value:e.r.toString(),inputChange:this.inputChange,label:"R"}),r.createElement(u.default,{value:e.g.toString(),inputChange:this.inputChange,label:"G"}),r.createElement(u.default,{value:e.b.toString(),inputChange:this.inputChange,label:"B"}),r.createElement(u.default,{value:(100*e.a).toFixed(0),inputChange:this.inputChange,label:"A"}))),r.createElement("div",{className:"preset-colors",onClick:this.handlePresetColor},h.COLOR_PICKER_PRESET_COLOR.map((e,t)=>r.createElement(d.default,{key:"presetColor"+t,color:e.color,bdc:e.bdc}))))}}m.defaultProps={color:"#FFFFFF"},t.default=p.default(m)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(7),i=n(461);class a extends r.Component{constructor(e){super(e),this.container=null,this.handleChange=o.throttle(this.handleChange.bind(this),20),this.handleMouseDown=this.handleMouseDown.bind(this),this.unbindEventListeners=this.unbindEventListeners.bind(this)}handleMouseDown(){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.unbindEventListeners)}unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.unbindEventListeners)}handleChange(e){const{container:t}=this;if(!t)return;const n=t.clientWidth,r=t.clientHeight,o=t.getBoundingClientRect(),a=o.left+(window.scrollX||window.pageXOffset),s=o.top+(window.scrollY||window.pageYOffset);let l=e.pageX-a,c=e.pageY-s;l=i.checkRange(l,[0,n]),c=i.checkRange(c,[0,r]);const u=l/n;let d=-c/r+1;d=i.checkRange(d,[0,1]),this.changeColor({h:this.props.color.hsv.h,s:u,v:d,a:this.props.color.hsv.a})}changeColor(e){this.props.changeColor(e)}render(){const e={left:100*this.props.color.hsv.s+"%",top:100*(1-this.props.color.hsv.v)+"%"},t={background:`hsl(${this.props.color.hsv.h}, 100%, 50%)`};return r.createElement("div",{className:"saturation-panel",ref:e=>this.container=e,style:t,onMouseDown:this.handleMouseDown},r.createElement("div",{className:"saturation-white"}),r.createElement("div",{className:"saturation-black"}),r.createElement("div",{className:"saturation-pointer",style:e},r.createElement("div",{className:"saturation-circle"})))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(461);class i extends r.Component{constructor(e){super(e),this.container=null,this.handleChange=this.handleChange.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.unbindEventListeners=this.unbindEventListeners.bind(this)}handleMouseDown(){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.unbindEventListeners)}unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.unbindEventListeners)}handleChange(e){e.preventDefault();const t=this.container;if(!t)return;const n=t.clientWidth,r=t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset);let i,a=e.pageX-r;a=o.checkRange(a,[0,n]),i=a<0?0:a>n?360:a/n*360,this.changeColor(Object.assign(Object.assign({},this.props.color.hsv),{h:i}))}changeColor(e){this.props.changeColor(e)}render(){const e={left:this.props.color.hsv.h/360*100+"%"};return r.createElement("div",{className:"c-hue-wrap",ref:e=>this.container=e,onMouseDown:this.handleMouseDown},r.createElement("div",{className:"hue-pointer"},r.createElement("div",{className:"hue-picker",style:e})))}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);class o extends r.Component{constructor(e){super(e),this.container=null,this.handleChange=this.handleChange.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.unbindEventListeners=this.unbindEventListeners.bind(this)}handleMouseDown(){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.unbindEventListeners)}unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.unbindEventListeners)}handleChange(e){e.preventDefault();const t=this.container;if(!t)return;const n=t.clientWidth,r=t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset),o=e.pageX-r;let i;i=o<0?0:o>n?360:o/n,this.changeColor(Object.assign(Object.assign({},this.props.color.hsv),{a:i}))}changeColor(e){this.props.changeColor(e)}render(){const e={left:100*this.props.color.alpha+"%"},t=this.props.color.rgba,n=[t.r,t.g,t.b].join(", "),o={background:`linear-gradient(to right, rgba(${n}, 0) 0%, rgba(${n}, 1) 100%`};return r.createElement("div",{className:"c-alpha-wrap",ref:e=>this.container=e,onMouseDown:this.handleMouseDown},r.createElement("div",{className:"alpha-bg",style:o}),r.createElement("div",{className:"alpha-pointer"},r.createElement("div",{className:"alpha-picker",style:e})))}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);class o extends r.Component{constructor(e){super(e),this.input=null,this.handleChange=this.handleChange.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}componentDidMount(){if(!this.input)return;const e=this.props.value;this.input.value=e}componentWillReceiveProps(e){this.input&&(this.input.value=e.value)}handleKeyDown(){this.props.label}handleChange(e){let t=e.target.value;const n=this.props.label,r={label:n,value:t},o=/[^a-fA-F0-9]/g;o.test(t)&&(t=t.replace(o,""),this.input&&(this.input.value=t)),"A"===n&&(r.value/=100),"Hex"===n&&(3===t.length||t.length>5)?this.props.inputChange(r):"Hex"!==n&&(r.label=n.toLowerCase(),this.props.inputChange(r))}render(){return r.createElement("label",null,r.createElement("input",{type:"text",ref:e=>this.input=e,onChange:this.handleChange,onKeyDown:this.handleKeyDown}),r.createElement("span",null,this.props.label))}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);class o extends r.PureComponent{render(){const e={background:this.props.color,borderColor:this.props.bdc};return r.createElement("div",{className:"c-preset-color",style:e})}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COLOR_PANEL_PICKER_LIST_COLOR=t.COLOR_PANEL_PICKER_TOP_COLOR=t.COLOR_PICKER_PRESET_COLOR=void 0,t.COLOR_PICKER_PRESET_COLOR=[{color:"#d0021b",bdc:"#b40f22"},{color:"#f5a623",bdc:"#d18d1e"},{color:"#f8e71c",bdc:"#d4c623"},{color:"#8b572a",bdc:"#764a24"},{color:"#7ed321",bdc:"#72b627"},{color:"#417505",bdc:"#376404"},{color:"#bd10e0",bdc:"#a10ebf"},{color:"#9013fe",bdc:"#7b10d8"},{color:"#4a90e2",bdc:"#4981c2"},{color:"#50e3c2",bdc:"#4ec3a9"},{color:"#b8e986",bdc:"#a1c879"},{color:"#000000",bdc:"#000000"},{color:"#4a4a4a",bdc:"#3f3f3f"},{color:"#9b9b9b",bdc:"#848484"},{color:"#ffffff",bdc:"#d9d9d9"}],t.COLOR_PANEL_PICKER_TOP_COLOR=["rgba(255, 255, 255, 1)","rgba(255, 0, 0, 1)","rgba(0, 0, 0, 1)","rgba(255, 153, 0, 1)","rgba(255, 255, 0, 1)","rgba(152, 250, 28, 1)","rgba(108, 222, 255, 1)","rgba(64, 62, 214, 1)","rgba(237, 65, 253, 1)"],t.COLOR_PANEL_PICKER_LIST_COLOR=["rgba(233, 233, 233, 1)","rgba(123, 123, 123, 1)","rgba(255, 200, 184, 1)","rgba(255, 225, 178, 1)","rgba(255, 242, 204, 1)","rgba(217, 234, 211, 1)","rgba(223, 248, 255, 1)","rgba(207, 199, 244, 1)","rgba(254, 228, 255, 1)","rgba(217, 217, 217, 1)","rgba(92, 92, 92, 1)","rgba(233, 152, 153, 1)","rgba(255, 184, 77, 1)","rgba(255, 229, 154, 1)","rgba(172, 219, 126, 1)","rgba(133, 212, 230, 1)","rgba(140, 123, 232, 1)","rgba(238, 147, 246, 1)","rgba(196, 196, 196, 1)","rgba(51, 51, 51, 1)","rgba(224, 102, 102, 1)","rgba(251, 141, 0, 1)","rgba(255, 217, 102, 1)","rgba(135, 193, 32, 1)","rgba(76, 194, 238, 1)","rgba(63, 73, 185, 1)","rgba(208, 65, 225, 1)","rgba(157, 157, 157, 1)","rgba(38, 38, 38, 1)","rgba(204, 0, 0, 1)","rgba(231, 82, 0, 1)","rgba(255, 183, 0, 1)","rgba(103, 143, 0, 1)","rgba(1, 136, 251, 1)","rgba(39, 65, 177, 1)","rgba(164, 25, 211, 1)"]},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1531);t.default=e=>{const{selected:t,onClick:n,children:i}=e;return r.createElement("div",{onClick:n,className:o.default("dsm-c-area-select",{selected:t})},i)}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);function o({width:e,percent:t,showTips:n}){return r.createElement("div",{className:"dsm-c-progress",style:{width:e}},r.createElement("div",{className:"track"},r.createElement("div",{className:"progress",style:{width:t+"%"}})),n&&r.createElement("i",{className:"tips",style:{left:t+"%"}},t,"%"))}n(1533),o.defaultProps={showTips:!0,width:400},t.default=o},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(26),i=n(229),a=n(2);n(1536);const s=n(69);class l extends r.Component{constructor(e){super(e),this.timeID=0,this.runing=!1,this.scaleTimer=0,this.lastDirection=void 0,this.keyDowns=s.keydown(["ctrl+1","ctrl+2","ctrl+3","ctrl+4","ctrl+=","ctrl++","ctrl+-"]),this.doWheel=e=>{var t;const n=null!==(t=this.props.value)&&void 0!==t?t:100;try{const t=Math.abs(e)-e==0?-1:1;if(this.lastDirection&&t!==this.lastDirection)return;this.scaleTimer&&(clearTimeout(this.scaleTimer),this.scaleTimer=0),this.scaleTimer=window.setTimeout(()=>{this.lastDirection=void 0},100);const r=Math.pow(n/50,1.7)+4,o=Math.pow(n/30,2)+4;let i=n+Math.min(r,o)*t;const a=i%100,s=Math.round(i/100);(a>100-3*s||a<3*s)&&(i=i-a+100*Math.round(a/100)),this.doChange(i)}finally{this.runing=!1}},this.inputRef=r.createRef(),this.selfRef=r.createRef(),this.handleWindowWheel=this.handleWindowWheel.bind(this),this.handleWindowKeyDown=this.handleWindowKeyDown.bind(this),this.handleWindowMouseDown=this.handleWindowMouseDown.bind(this),this.handleZoomIn=this.handleZoomIn.bind(this),this.handleZoomOut=this.handleZoomOut.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleInputSubmit=this.handleInputSubmit.bind(this),this.handleMenuSelect=this.handleMenuSelect.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.doChange=this.doChange.bind(this),this.renderMenu=this.renderMenu.bind(this),this.renderInput=this.renderInput.bind(this),this.validateValue=this.validateValue.bind(this),this.handleClick=this.handleClick.bind(this),this.handleDblClick=this.handleDblClick.bind(this),this.closePanel=this.closePanel.bind(this),this.state={editing:!1,popup:!1,value:void 0!==e.value?Math.round(e.value):0,tempValue:null}}componentDidMount(){s.isFirefox()?window.addEventListener("DOMMouseScroll",this.handleWindowWheel):window.addEventListener("mousewheel",this.handleWindowWheel,{passive:!1}),window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("keyup",this.keyDowns.removeKey),window.addEventListener("blur",this.keyDowns.clear)}componentWillUpdate(e,t){const{popup:n}=this.state;t.popup!==n&&(t.popup?window.addEventListener("mousedown",this.handleWindowMouseDown):window.removeEventListener("mousedown",this.handleWindowMouseDown))}componentDidUpdate(){this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()}componentWillUnmount(){s.isFirefox()?window.removeEventListener("DOMMouseScroll",this.handleWindowWheel):window.removeEventListener("mousewheel",this.handleWindowWheel),window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("keyup",this.keyDowns.removeKey),window.removeEventListener("mousedown",this.handleWindowMouseDown),window.removeEventListener("blur",this.keyDowns.clear),this.scaleTimer&&clearTimeout(this.scaleTimer)}closePanel(){this.setState({tempValue:null,editing:!1,popup:!1})}handleWindowMouseDown(e){const{target:t}=e;let n=t;const r=this.selfRef.current;for(;n!==r&&(n=n.parentNode,n););if(n===r)return;const{tempValue:o,value:i,editing:a}=this.state;a&&this.doChange(this.validateValue(o||i)),this.setState({tempValue:null,editing:!1,popup:!1})}handleWindowWheel(e){if(e.metaKey||e.ctrlKey){if(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.preventDefault(),this.runing)return;this.runing=!0;const t=s.isFirefox()?e.detail:e.deltaY||-e.wheelDelta;window.requestAnimationFrame?window.requestAnimationFrame(()=>{this.doWheel(t)}):setTimeout(this.doWheel,66,t)}}handleWindowKeyDown(e){var t,n;const r=null!==(t=this.props.value)&&void 0!==t?t:100,o=null!==(n=this.props.step)&&void 0!==n?n:1;let i=r;const a=this.keyDowns.setKey(e);switch(a){case"ctrl+1":case"ctrl+2":case"ctrl+3":case"ctrl+4":case"ctrl+=":case"ctrl++":case"ctrl+-":e.preventDefault()}switch(a){case"ctrl+1":case"ctrl+2":case"ctrl+3":i=100*parseInt(e.key,10);break;case"ctrl+4":i=50;break;case"ctrl++":case"ctrl+=":i=r+o;break;case"ctrl+-":i=r-o}r!==i&&this.doChange(i)}handleZoomIn(){const{value:e,step:t}=this.props;this.doChange((null!=e?e:100)+(null!=t?t:1))}handleZoomOut(){const{value:e,step:t}=this.props;this.doChange((null!=e?e:100)-(null!=t?t:1))}validateValue(e){var t,n;const r=null!==(t=this.props.min)&&void 0!==t?t:10,o=null!==(n=this.props.max)&&void 0!==n?n:200;return Math.max(r,Math.min(e,o))}doChange(e){if(e){const t=this.validateValue(e),{onZoom:n}=this.props;n(t),this.setState({popup:!1,editing:!1})}}handleInputSubmit(e){const{onZoom:t}=this.props,n=this.validateValue(e);this.setState({value:n,popup:!1,editing:!1,tempValue:null}),t(n)}handleInputChange(e){const t=e.replace(/\D/g,"");this.setState({tempValue:t})}handleInputBlur(){const{onZoom:e}=this.props,{value:t,tempValue:n}=this.state,r=this.validateValue(n||t);e(r),this.setState({popup:!1,editing:!1,value:r,tempValue:null})}handleMenuSelect(e){const{onZoom:t,extendSelectedItem:n}=this.props;let r=e;if(n&&n.length>0){const t=n.find(t=>t.id===e);if(t&&t.callBack)return r=t.callBack(),void this.setState({value:r,editing:!1,popup:!1,tempValue:null});t&&(r=100)}const o=this.validateValue(r);this.setState({value:o,editing:!1,popup:!1,tempValue:null}),t(o)}doPopup(e){this.timeID&&(clearTimeout(this.timeID),this.timeID=0);const{value:t,canSelect:n,canInput:r}=this.props,{popup:o,editing:i}=this.state,a=e&&n&&!o&&!i;this.setState({value:null!=t?t:100,popup:a||!1,editing:(!e||i)&&r||!1})}handleDblClick(){this.doPopup(!1)}handleClick(){this.timeID&&clearTimeout(this.timeID),this.timeID=window.setTimeout(()=>{this.doPopup(!0)},250)}renderInput(){const{editing:e,value:t,tempValue:n}=this.state,o=""+(null!==n?n:Math.round(t));return e?r.createElement(i.Input,{type:"text",setInputRef:this.inputRef,value:o,width:"100%",onBlur:this.handleInputBlur,onSubmit:this.handleInputSubmit,onChange:this.handleInputChange}):null}renderMenu(){const{popup:e,value:t}=this.state,{presetValues:n,min:o,max:a,canInput:l,extendSelectedItem:c}=this.props,u=n?n.filter(e=>e>=(null!=o?o:10)&&e<=(null!=a?a:200)):[];u.sort((e,t)=>{const n="number"==typeof e?e:parseInt(e,10),r="number"==typeof t?t:parseInt(t,10);return n<r?-1:n>r?1:0});const{length:d}=u;u[d-1]<(null!=a?a:200)&&u.push(null!=a?a:200),u.length>0&&u[0]>(null!=o?o:10)&&u.unshift(null!=o?o:10);const h=u.findIndex(e=>Math.round(e)===Math.round(t));let p=u.map(e=>{const t=Math.round(e);let n=t+"%";const r=s.isSafari()?"^":"⌘",o=s.isMacOS?r:"Ctrl";return 50===t?n=`${n} ${o} + 4`:100===t?n=`${n} ${o} + 1`:200===t?n=`${n} ${o} + 2`:300===t&&(n=`${n} ${o} + 3`),{id:t,text:n}});return c&&(p.push({text:"-"}),p=p.concat(c)),e?r.createElement(i.Menu,{options:p,onSelect:this.handleMenuSelect,selectIdx:h,onClose:()=>{this.setState({popup:!1})}}):null}render(){const{value:e,className:t,min:n,max:i}=this.props,{editing:s}=this.state,l=void 0!==e&&void 0!==n&&e<=n,c=void 0!==e&&void 0!==i&&e>=i;return r.createElement("div",{className:a.default("dsm-c-zoomer "+t,{disableL:l,disableR:c}),ref:this.selfRef},r.createElement("div",{className:"zoom-btn",onClick:this.handleZoomOut},r.createElement(o.default,{cls:"zoomout",color:"#1bbe0a"}),r.createElement(o.default,{cls:"zoomout_pressed"})),r.createElement("span",{className:s?"editing":"no-editing",onClick:this.handleClick,onDoubleClick:this.handleDblClick},this.renderInput(),void 0===e?0:Math.round(e)),r.createElement("div",{className:"zoom-btn",onClick:this.handleZoomIn},r.createElement(o.default,{cls:"zoomin",color:"#f8af1d"}),r.createElement(o.default,{cls:"zoomin_pressed"})),this.renderMenu())}}l.defaultProps={className:"",min:10,max:200,step:1,value:100,presetValues:[10,25,50,75,100,150,200,300,400],canInput:!0,canSelect:!0},t.default=l},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1538);const i=e=>{const{img:t,size:n,className:i,onClick:a}=e;return r.createElement("div",{className:o.default("dsm-c-avatar",i),onClick:a,style:{width:n,height:n,backgroundImage:`url(${t})`}})};i.defaultProps={size:30},t.default=i},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1540);class i extends r.Component{constructor(e){var t,n,r;super(e),this.state={mouseDown:!1,disX:0,vue:Math.max(null!==(t=e.min)&&void 0!==t?t:0,Math.min(null!==(n=e.value)&&void 0!==n?n:50,null!==(r=e.max)&&void 0!==r?r:100))},this.doChange=this.doChange.bind(this),this.OnMouseDown=this.OnMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleBlock=this.handleBlock.bind(this),this.calculateValue=this.calculateValue.bind(this)}componentDidUpdate(e){const{value:t,min:n,max:r}=this.props;t!==e.value&&this.setState({vue:Math.max(null!=n?n:0,Math.min(null!=t?t:50,null!=r?r:100))})}calculateValue(e){const{min:t,max:n,width:r}=this.props;return Math.max(null!=t?t:0,Math.min(Math.floor(e/(null!=r?r:200)*100),null!=n?n:100))}OnMouseDown(e){e.stopPropagation();const t=e.target.parentNode.offsetParent,n=e.pageX-t.getBoundingClientRect().left;this.setState({mouseDown:!0,disX:t.getBoundingClientRect().left,vue:this.calculateValue(n)}),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp)}handleMouseMove(e){e.preventDefault();const{onMovingSlider:t}=this.props,{min:n,max:r}=this.props,{disX:o,mouseDown:i}=this.state;if(i){let i=e.pageX-o;const{width:a}=this.props;i<0&&(i=0),i>(null!=a?a:200)&&(i=null!=a?a:200);const s=Math.max(null!=n?n:0,Math.min(this.calculateValue(i),null!=r?r:100));this.setState({vue:s}),t&&t(s)}}handleMouseUp(e){e.preventDefault();const{vue:t}=this.state;this.doChange(t),this.setState({mouseDown:!1}),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp)}handleBlock(e){e.stopPropagation();const t=e.target;if(!t.offsetParent)return;let n=e.pageX-t.offsetParent.getBoundingClientRect().left;n<0&&(n=0);const{width:r}=this.props;n>(null!=r?r:200)&&(n=null!=r?r:200),this.setState({vue:this.calculateValue(n)})}doChange(e){const{onSlider:t,min:n,max:r}=this.props;if(!t)return;t(Math.max(null!=n?n:0,Math.min(e,null!=r?r:100)))}render(){const{width:e,left:t,disabled:n,className:i,showText:a}=this.props,{vue:s}=this.state;return r.createElement("div",{className:["dsm-c-slider",i||""].join(" ")},t&&r.createElement("span",{className:o.default("dsm-c-block-title",{"disabled-slider-title":n})},s,"%"),r.createElement("div",{className:"dsm-c-sliding-block",style:{width:e+"px"},onDragStart:e=>{e.preventDefault()},onMouseUp:n?void 0:this.handleMouseUp,draggable:!1},r.createElement("div",{className:"dsm-c-slider-click",style:{width:e+"px"},onMouseDown:n?void 0:this.handleBlock}),r.createElement("div",{className:o.default("dsm-c-block",{"disabled-slider-block":n}),style:{width:s+"%"}},r.createElement("span",{className:"dsm-c-block-btn",onMouseDown:n?void 0:this.OnMouseDown}))),a&&!t&&r.createElement("span",{className:o.default("dsm-c-block-title",{"disabled-slider-title":n})},s,"%"))}}i.defaultProps={min:0,max:100,step:1,value:50,className:"",width:200,left:!1,disabled:!1,showText:!0},t.default=i},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(139),a=n(87);n(1542);class s extends r.Component{constructor(e){super(e),this.textArea=null,this.bgcDiv=null,this.measureLayer=r.createRef(),this.calScrollHeight=()=>{var e,t;if(this.textArea){const n=null!==(t=null===(e=this.bgcDiv)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0;this.setScrollHeight(n)}},this.state={value:e.value||"",scrollHeight:0},this.onTextAreaChange=this.onTextAreaChange.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){var e,t;null===(e=this.textArea)||void 0===e||e.focus(),null===(t=this.textArea)||void 0===t||t.select(),this.calScrollHeight(),this.autoHeight()}setScrollHeight(e){this.setState({scrollHeight:e})}onTextAreaChange(e){this.setState({value:e.target.value}),this.autoHeight()}onSubmit(){const{onOk:e,errorMsg:t}=this.props;if(!e)return;const{value:n}=this.state;t||e(n)}onInputKeyDown(e){"Escape"!==e.key&&e.stopPropagation()}autoHeight(){if(!this.measureLayer.current)return;const e=Math.round(this.measureLayer.current.offsetHeight+20);this.setState({textStyle:{height:e}})}render(){const{showCancel:e,showClose:t,onCancel:n,placeholder:s,maxLength:l,title:c,isShowExtra:u,extraComponent:d}=this.props,{value:h,scrollHeight:p,textStyle:f}=this.state;return o.createPortal(r.createElement("div",{className:"dsm-c-textArea-box",onMouseDown:e=>{e.stopPropagation()}},r.createElement(i.default,{title:c,showClose:t,showCancel:e,onOk:this.onSubmit,onCancel:n},r.createElement("div",{className:"dsm-c-textArea"},r.createElement("div",{className:"bgc-div",ref:e=>{this.bgcDiv=e}},"a,b,c,d,e,f,g,h,i".split(",").map(e=>r.createElement("div",null,e))),r.createElement(a.default,{width:"100%",height:p},r.createElement("div",{ref:this.measureLayer,className:"measure-layer"},h),r.createElement("textarea",{ref:e=>this.textArea=e,maxLength:l,style:Object.assign(Object.assign({},f),{minHeight:p}),value:h,onKeyDown:this.onInputKeyDown,placeholder:s,onChange:this.onTextAreaChange}))),u&&r.createElement("div",{className:"extra-box"},d()))),document.body)}}s.defaultProps={maxLength:500,showCancel:!0,placeholder:""},t.default=s},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1545);const i=n(180),a=n(26);class s extends r.Component{constructor(e){var t,n,o;super(e),this.InputDom=r.createRef(),this.setValue=e=>{var t,n;const r=null!==(t=this.props.max)&&void 0!==t?t:100,o=null!==(n=this.props.min)&&void 0!==n?n:0;e>r?this.setState({value:r}):e<o?this.setState({value:o}):this.setState({value:e})},this.state={mouseDown:!1,disX:0,value:Math.max(null!==(t=e.min)&&void 0!==t?t:0,Math.min(null!==(n=e.value)&&void 0!==n?n:0,null!==(o=e.max)&&void 0!==o?o:100))}}componentDidUpdate(e){const{value:t,min:n,max:r}=this.props;t!==e.value&&this.setState({value:Math.max(null!=n?n:0,Math.min(null!=t?t:0,null!=r?r:100))})}calculateValue(e){const{min:t,max:n,width:r}=this.props;return Math.max(null!=t?t:0,Math.min(Math.floor(e/(null!=r?r:48)*100),null!=n?n:100))}handleBlock(e){var t;e.stopPropagation();const n=e.target;if(!n.offsetParent)return;let r=e.pageX-n.offsetParent.getBoundingClientRect().left;r<0&&(r=0);const o=null!==(t=this.props.width)&&void 0!==t?t:48;r>o&&(r=o),this.setState({value:this.calculateValue(r)})}doChange(e){const{onSlider:t,min:n,max:r}=this.props,o=Math.max(null!=n?n:0,Math.min(e,null!=r?r:100));t&&t(o)}render(){const{width:e,leftText:t,disabled:n,className:s,rightText:l,min:c,max:u,step:d,isZh:h}=this.props,{value:p}=this.state,f=h?"tag_uparrow up-arrow":"tag_uparrow up-arrow up-arrow-en",m=h?"tag_downarrow down-arrow":"tag_downarrow down-arrow down-arrow-en";return r.createElement("div",{className:["dsm-c-stepper",s||""].join(" ")},t&&r.createElement("span",{className:o.default({"disabled-stepper-title":n})},t),r.createElement(i.default,{width:e,value:p,autoSelect:!0,onFocus:()=>{this.InputDom.current&&this.InputDom.current.select()},setInputRef:this.InputDom,onChange:e=>{e=e.replace(/[^\d]/g,""),this.setValue(e)},onBlur:()=>{this.props.onBlur&&this.props.onBlur(p)}}),r.createElement(a.default,{cls:f,disabled:p>=(null!=u?u:100),onClick:()=>{this.InputDom.current&&this.InputDom.current.select(),this.setValue(p+(null!=d?d:1))}}),r.createElement(a.default,{cls:m,disabled:p<=(null!=c?c:0),onClick:()=>{this.InputDom.current&&this.InputDom.current.select(),this.setValue(p-(null!=d?d:1))}}),l&&r.createElement("span",{className:o.default({"disabled-stepper-title":n})},l))}}s.defaultProps={min:0,max:100,step:1,value:0,className:"",width:48,left:!1,disabled:!1,showText:!0,isZh:!0},t.default=s},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(163),i=n(15),a=n(2),s=n(26),l=n(181),c=n(464);n(1548);class u extends r.Component{constructor(e){super(e),this.titleRef=r.createRef(),this.onToggleMenu=()=>{this.setState({showMenu:!this.state.showMenu})},this.state={title:e.title||"",showMenu:!1}}render(){const{actions:e,disableActions:t,onClickAction:n,children:u,backLink:d,isDialog:h,onClose:p,onSelectMenuItem:f,titleMenu:m,dom:g,usePropsMenu:v,onClickArrow:y,isZh:b}=this.props,w=e=>n(e);return h?i.createPortal(r.createElement(c.default,{showOk:!1,showCancel:!1,onCancel:p},r.createElement("div",{className:a.default("dsm-c-panel-with-dialog",{"dsm-c-panel-with-dialog-en":!b})},r.createElement("div",{className:"dsm-c-panel-title"},m?r.createElement("div",{className:"edit-title",onClick:this.onToggleMenu},r.createElement("div",{className:"title-name"}," ",this.props.title," "),r.createElement(s.default,{cls:"tag_downarrow"}),r.createElement("div",{className:"top-operation"},this.state.showMenu&&r.createElement(l.default,{options:m,onSelect:(e,t)=>{this.setState({showMenu:!1}),f&&f(e,t)},onClose:()=>this.setState({showMenu:!1})}))):r.createElement("div",{className:"panel-title-left"},d&&r.createElement(o.Link,{to:d,className:"back-link"},r.createElement(s.default,{cls:"tree_leftback"})),r.createElement("h5",{className:this.props.backLink&&"back-title"},this.props.title)),r.createElement("div",{className:"actions"},e&&e.map((e,n)=>r.createElement("span",{className:a.default("link-b",{disabled:null==t?void 0:t.includes(e)}),key:n,onClick:()=>{(null==t?void 0:t.includes(e))||w(n)}},e)))),r.createElement("div",{className:"dsm-c-panel-content"},u))),g||document.body):r.createElement("div",{className:a.default("dsm-c-panel-with-dialog",{"dsm-c-panel-with-dialog-en":!b})},r.createElement("div",{className:"dsm-c-panel-title"},m?r.createElement("div",{className:"edit-title",onClick:this.onToggleMenu},r.createElement("div",{className:"title-name"},this.props.title),r.createElement(s.default,{cls:"tag_downarrow"}),r.createElement("div",{className:"top-operation"},this.state.showMenu&&r.createElement(l.default,{options:m,onSelect:(e,t)=>{this.setState({showMenu:!1}),f&&f(e,t)},onClose:()=>this.setState({showMenu:!1})}))):v?r.createElement("div",{className:"edit-title",onClick:y},r.createElement("div",{className:"title-name use-props-menu-title",id:"title-name"},this.props.title),r.createElement(s.default,{cls:"tag_downarrow"})):r.createElement("div",{className:"panel-title-left"},d&&r.createElement(o.Link,{to:d,className:"back-link"},r.createElement(s.default,{cls:"tree_leftback"})),r.createElement("h5",{className:this.props.backLink&&"back-title"},this.props.title)),r.createElement("div",{className:"actions"},e&&e.map((e,n)=>r.createElement("span",{className:a.default("link-b",{disabled:null==t?void 0:t.includes(e)}),key:n,onClick:()=>{(null==t?void 0:t.includes(e))||w(n)}},e)))),r.createElement("div",{className:"dsm-c-panel-content"},u))}}u.defaultProps={actions:[],disableActions:[],isZh:!0},t.default=u},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1550);const i=({direction:e,text:t,children:n,width:i,align:a,showTip:s})=>r.createElement("div",{style:{width:i},className:"dsm-c-arrow-point-tip"},t&&s&&r.createElement(r.Fragment,null,r.createElement("div",{className:o.default("arrow-point",e,a)}),r.createElement("div",{className:o.default("arrow-point-tips",e,a)},t)),n);i.defaultProps={direction:"down",text:"",align:"center"},t.default=i},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(139),i=n(26),a=n(182),s=n(1552),l=n(25);n(1554);const c=n(2),u=n(87),d=n(179),h=n(315),p=n(1555);class f extends r.Component{constructor(e){super(e),this.state={toDelete:null,createNewTag:!1,newTag:"",error:""},this.onOk=this.onOk.bind(this),this.onCancel=this.onCancel.bind(this),this.onStartCreateNewTag=this.onStartCreateNewTag.bind(this),this.onCancelCreateNewTag=this.onCancelCreateNewTag.bind(this),this.onNewTagNameChange=this.onNewTagNameChange.bind(this),this.onCreateNewTag=this.onCreateNewTag.bind(this),this.newTagInputRef=r.createRef()}onRenameTag(e,t){const{onRenameTag:n}=this.props;n(e,t)}onDeleteTag(e){this.setState({toDelete:e})}onOk(){const{toDelete:e}=this.state,{onDeleteTag:t}=this.props;this.setState({toDelete:null},()=>{t(e)})}onCancel(){this.setState({toDelete:null})}onStartCreateNewTag(){this.setState({createNewTag:!0})}onCancelCreateNewTag(){this.setState({createNewTag:!1,newTag:"",error:""})}onNewTagNameChange(e){e.length>parseInt(l.default("TagsManager.maxLength"),10)?this.setState({newTag:e,error:l.default("TagsManager.error")}):this.setState({error:"",newTag:e})}onCreateNewTag(){const{onCreateNewTag:e}=this.props,{error:t,newTag:n}=this.state;t||(e(n),this.setState({createNewTag:!1,newTag:"",error:""}))}render(){const{title:e,actionName:t,tags:n,dialogTitle:f,editTitle:m,noTagsTip:g,onCancel:v,addTip:y,text:b,isAddGroupReactLimit:w,upgradeTipText:C,upgradeLinkText:_,onClickLink:x}=this.props,{toDelete:S,createNewTag:k,newTag:P,error:T}=this.state;let E=440;return window.innerHeight<700&&(E=window.innerHeight-230),r.createElement("div",{className:c.default("dsm-c-comp-dialog")},r.createElement("div",{className:"dsm-c-bg"},r.createElement("div",{className:c.default("dsm-c-group-pop")},r.createElement(i.default,{cls:"demo_close",onClick:v}),r.createElement("div",{className:"group-manager-wrapper"},r.createElement("div",{className:"dsm-c-panel-group"},r.createElement("div",{className:c.default("dsm-c-panel-title",{"dsm-c-panel-title-border":n&&0===n.length})},r.createElement("div",{className:"title"},e),r.createElement("div",{className:"add-group"},r.createElement(d.default,{theme:"small",onClick:this.onStartCreateNewTag,disabled:w,width:60},b),w&&r.createElement(h.default,{tooltip:C,linkText:_,onClickLink:x}))),r.createElement("div",{className:"dsm-c-panel-content"},r.createElement(u.default,{height:E},n&&0===n.length&&r.createElement("div",{className:"no-tags-tip"},r.createElement("img",{src:p,alt:"no_group.png",className:"no_group_img"}),r.createElement("p",{className:"no-group-text"},g)),n&&0!==n.length&&n.map(({id:e,text:t},o)=>r.createElement(s.default,{key:e,editTitle:m||"",value:t,onRename:t=>{this.onRenameTag(e,t)},isLast:o>7&&o===n.length-1,onDelete:()=>{this.onDeleteTag(e)}}))),null!==S&&r.createElement(o.default,{showCancel:!0,sureDelete:!0,lightTitle:!0,onOk:this.onOk,onCancel:this.onCancel,title:l.default("TagsManager.dialog")}),k&&r.createElement(a.default,{showClose:!0,title:f,placeholder:l.default("TagsManager.placeholder",[t]),onOk:this.onCreateNewTag,onChange:this.onNewTagNameChange,onCancel:this.onCancelCreateNewTag,value:P,errorMsg:T})))))))}}f.defaultProps={title:l.default("TagsManager.title"),tags:[],actionName:l.default("TagsManager.actionName"),isAddGroupReactLimit:!1,upgradeTipText:"",upgradeLinkText:""},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(26),i=n(182),a=n(25);n(1553);class s extends r.Component{constructor(e){super(e),this.state={isEditing:!1,value:e.value,error:""},this.onChange=this.onChange.bind(this),this.onSubmit=this.onSubmit.bind(this)}onChange(e){e.length>parseInt(a.default("TagsManager.maxLength"),10)?this.setState({value:e,error:a.default("TagsManager.error")}):this.setState({error:"",value:e})}onSubmit(e){const{onRename:t}=this.props;t(e),this.setState({isEditing:!1})}render(){const{onDelete:e,editTitle:t,isLast:n}=this.props,{isEditing:s,error:l}=this.state;return r.createElement("div",{className:"dsm-c-tag"},this.props.value,r.createElement("div",{className:"actions"},r.createElement("span",{className:"action",onClick:()=>{this.setState({isEditing:!0})}},r.createElement(o.default,{cls:"tree_edit",solid:!0,tooltip:a.default("TagsManager.rename"),toolTipDirection:n?"up":"down"})),r.createElement("span",{className:"action",onClick:e},r.createElement(o.default,{cls:"demo_delete",tooltip:a.default("TagsManager.delete"),toolTipDirection:n?"up":"down"}))),s&&r.createElement(i.default,{showClose:!0,title:t,value:this.props.value,onCancel:()=>{this.setState({isEditing:!1})},onChange:this.onChange,onOk:this.onSubmit,placeholder:a.default("TagsManager.placeholder",t),errorMsg:l}))}}t.default=s},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n.p+"assets/7ca433de941787491316abd98f6d55ac.png"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(1557),a=n(465),s=n(466),l=n(69),c=n(25),u=n(1559),d=n(1560);n(1561);class h extends r.Component{constructor(e){super(e),this.renameTimeout=0,this.onExpand=(e,t,n)=>{let r=[...this.props.expandedKeys];if(t)if(n){let e=[];const t=this.props.data.filter(e=>!this.props.searchKey||s.isNodeOrChildrenMatch(e,this.props.searchKey));t.length>0&&(e=this.getHasChildrenNodes(t)),r=[...e]}else r.push(e);else n?r=[]:r.splice(r.indexOf(e),1);this.props.onExpand(r,{nodeID:e,expanded:t})},this.onKeyDown=(e,t)=>{const{renamable:n,onExecuteShortcutCommand:r}=this.props;if(!r)return;const o=l.isCtrlKey(e);if(e.stopPropagation(),o)switch(e.key){case"f":r(a.ContextCommand.Find,t),this.props.getPreSearchKey&&this.props.getPreSearchKey(),e.preventDefault();break;case"c":r(a.ContextCommand.Copy,t),e.preventDefault();break;case"x":r(a.ContextCommand.Cut,t),e.preventDefault();break;case"v":r(a.ContextCommand.Paste,t),e.preventDefault();break;case"d":r(a.ContextCommand.Clone,t),e.preventDefault();break;case"Enter":e.preventDefault(),e.shiftKey?r(a.ContextCommand.AddFolder,t):r(a.ContextCommand.AddPage,t)}else switch(e.key){case"Backspace":case"Delete":e.preventDefault(),r(a.ContextCommand.Delete,t);break;case"F2":!l.isMacOS&&n&&(r(a.ContextCommand.Rename,t),this.setState({renameID:t.id})),e.preventDefault();break;case"Enter":l.isMacOS&&n&&(r(a.ContextCommand.Rename,t),this.setState({renameID:t.id})),e.preventDefault()}},this.treeRef=r.createRef(),this.state={isSelectedMultiLevel:!1,renameID:""}}componentDidMount(){if(0===this.props.defaultExpandLevel)return;const e=s.getAllParentNodeIDs(this.props.data,this.props.defaultExpandLevel||-1);e.length>0&&this.props.onExpand(e)}componentDidUpdate(e){const{renameID:t}=this.props;t!==e.renameID&&this.setState({renameID:t})}static getDerivedStateFromProps(e){const t=e.selectedKeys,n=new Set;return t.forEach(t=>{const r=s.findParentNodeByID(e.data,t);r.parent?n.add(r.parent.id):n.add("ROOT")}),{isSelectedMultiLevel:n.size>1}}static getAllSelectedTreeNodes(e,t){const n=[];return e.forEach(e=>{if(t.includes(e.id)&&n.push(e.id),e.children&&e.children.length>0){const r=this.getAllSelectedTreeNodes(e.children,t);n.push(...r)}}),n}getChildrenNodes(e){const t=[];return e.forEach(e=>{if(t.push(e.id),e.children&&e.children.length>0){const n=this.getChildrenNodes(e.children);t.push(...n)}}),t}getHasChildrenNodes(e){const t=[];return e.forEach(e=>{if(e.children&&e.children.length>0){t.push(e.id);const n=this.getHasChildrenNodes(e.children);t.push(...n)}}),t}getChildrenNodesById(e,t){const n=[];return e.forEach(e=>{if(t===e.id){if(e.children&&e.children.length>0){const t=this.getChildrenNodes(e.children);t.length>0&&n.push(...t)}}else if(e.children&&e.children.length>0){const r=this.getChildrenNodesById(e.children,t);r.length>0&&n.push(...r)}}),n}renderNodes(e,t,n=16){const{showCustomIcon:o,customDragType:a,userPropsMatch:c,tip:u,searchKey:d,propsMatchFun:h,expandedKeys:p,selectedKeys:f,checkedKeys:m,isNotShowCommentsIcon:g,interactionHighlightKey:v,draggable:y,maxWidth:b,searchKeyHighlight:w}=this.props;if(!e||0===e.length)return null;let C=e;return C=c?e.filter(e=>!d||h&&h(e,d)):e.filter(e=>!d||s.isNodeOrChildrenMatch(e,d)),0===C.length?null:r.createElement("ul",null,C.map(e=>{var c;const d=p.includes(e.id),h=f.includes(e.id),{checked:C,indeterminate:_,disabled:x}=m?s.getCheckboxState(e,m):{checked:!1,indeterminate:!1,disabled:!1},S=null===(c=this.treeRef.current)||void 0===c?void 0:c.clientWidth,k=this.state.renameID;if(e.children&&e.children.length>0){const t=s.getGroupPageNum(e.children);e.groupNum=t.length}else e.groupNum=0;const P=e.hasOwnProperty("disabled")?e.disabled:x;return r.createElement(i.default,{key:e.id,theme:this.props.theme,data:e,offset:n,isNotShowCommentsIcon:g,interactionHighlight:!!v&&v.includes(e.id),needDebounce:this.props.needDebounce,inputWidth:S||b||200,isEdit:k===e.id,expanded:d,canPeersDrag:!!this.props.canPeersDrag,draggable:!k&&!this.state.isSelectedMultiLevel&&!!y,customDragType:a||[],onExpand:(t=!1)=>{clearTimeout(this.renameTimeout),this.onExpand(e.id,!d,t)},showCustomIcon:o,selected:h,hoverShowBg:this.props.hoverShowBg,cutted:this.props.cuttedKeys.includes(e.id),searchKey:this.props.searchKey,searchKeyHighlight:!!w,showCheckBox:this.props.showCheckBox||!1,showGroupNum:!!this.props.showGroupNum,canLeafHasChildren:this.props.canLeafHasChildren,checked:C,highlightChecked:this.props.highlightChecked||!1,indeterminate:_,disabledCheckbox:P||!!this.props.disableUncheckChildrenIfParentIsChildren&&t,hideDefaultTitle:!!this.props.hideDefaultTitle,onClickSuffixIcon:this.props.onClickSuffixIcon,onClickOptionsIcon:this.props.onClickOptionsIcon,onCheck:t=>{const n=this.props.checkedKeys;if(n&&this.props.onChecked&&this.props.showCheckBox){if(t){if(e.isLeaf)n.push(e.id);else if(e.children&&e.children.length>0){s.flattenChildren(e.children).forEach(e=>{!n.includes(e.id)&&e.isLeaf&&n.push(e.id)})}}else if(n.includes(e.id)&&n.splice(n.indexOf(e.id),1),e.children&&e.children.length>0){s.flattenChildren(e.children).forEach(e=>{n.includes(e.id)&&n.splice(n.indexOf(e.id),1)})}this.props.onChecked(n)}},onKeyDown:t=>{clearTimeout(this.renameTimeout),this.onKeyDown(t,e)},onContextMenu:t=>{clearTimeout(this.renameTimeout),this.props.onContextMenu({nodeID:e.id,event:t})},onDblClickNode:e=>{clearTimeout(this.renameTimeout),this.props.onDoubleClick?this.props.onDoubleClick(e):this.onExpand(e,!d,!1)},onClick:t=>{if(this.props.multiSelectedable&&l.isCtrlKey(t)&&this.props.selectedKeys.length>0){const t=[...this.props.selectedKeys];if(h){if(!(t.length>1))return;t.splice(t.indexOf(e.id),1)}else if(this.props.multiLevelSeletable||0===t.length)t.push(e.id);else{const n=s.flattenChildren(this.props.data);if(!s.isSiblings(n,t[0],e.id))return;t.push(e.id)}this.props.onSelected(t)}else if(this.props.multiSelectedable&&t.shiftKey&&this.props.selectedKeys.length>0){const t=this.props.selectedKeys[this.props.selectedKeys.length-1];if(!t)return;const n=s.flattenChildren(this.props.data),r=n.findIndex(e=>e.id===t),o=n.findIndex(t=>t.id===e.id),i=n.filter((e,t)=>t>=Math.min(r,o)&&t<=Math.max(r,o)).map(e=>e.id);if(this.props.multiLevelSeletable)return void this.props.onSelected(i);const a=i.filter(e=>s.isSiblings(n,t,e));this.props.onSelected(a)}else this.props.onSelected([e.id])},onDragBegin:()=>{clearTimeout(this.renameTimeout)},onDragEnd:this.props.onDragEnd,onRename:(e,t)=>{this.setState({renameID:""}),this.props.onRename&&this.props.onRename(e,t)},renameMaxLength:this.props.renameMaxLength,onMouseUp:t=>{this.props.onNodeMouseUp&&this.props.onNodeMouseUp(t,e)},onMouseDown:t=>{clearTimeout(this.renameTimeout),h&&this.props.renamable&&(this.renameTimeout=window.setTimeout(()=>{this.setState({renameID:e.id})},600)),this.props.onNodeMouseDown&&this.props.onNodeMouseDown(t,e)},onMouseEnter:t=>{this.props.onNodeMouseEnter&&this.props.onNodeMouseEnter(t,e)},onMouseLeave:t=>{this.props.onNodeMouseLeave&&this.props.onNodeMouseLeave(t,e)},canDropIn:(e,t)=>{if(k)return!1;const n=this.props.data;if(n.length<=0)return!0;if(this.props.selectedKeys.length>1&&this.props.selectedKeys.includes(t))return!1;if(this.props.selectedKeys.includes(e)){let e=[];return this.props.selectedKeys.forEach(t=>{e=e.concat(this.getChildrenNodesById(n,t))}),!e.includes(t)}return!this.getChildrenNodesById(n,e).includes(t)},tip:u},e.children&&e.children.length>0&&d&&this.renderNodes(e.children,C,n+16))}))}render(){let e=!1;const t=this.props.searchKey;if(t){e=s.flattenChildren(this.props.data).every(e=>!s.isNodeMatch(e,t))}return r.createElement("div",{ref:this.treeRef,className:o("dsm-c-tree",{"dark-tree":this.props.theme&&["spec-dark","dark"].includes(this.props.theme),"spec-dark-tree":"spec-dark"===this.props.theme,"is-finding-interaction-target":this.props.isFindingInteractionTarget,"max-width-setted":void 0!==this.props.maxWidth}),style:{width:this.props.maxWidth}},e&&r.createElement("div",{className:"search-empty"},r.createElement("img",{width:60,src:"white"===this.props.theme?u:d,alt:"No results found"}),r.createElement("p",null,c.default("tree.emptySearch"))),!e&&this.renderNodes(this.props.data,!1))}}h.defaultProps={theme:"white",defaultExpandLevel:-1,selected:!1,handleExpand:!1,draggable:!1,canLeafHasChildren:!0,multiLevelSeletable:!1,canPeersDrag:!0,showGroupNum:!1,hoverShowBg:!1},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(7),a=n(633),s=n(26),l=n(465),c=n(466),u=n(69),d=n(70);n(1558);t.default=r.memo(e=>{var t,n,h;const p=e.data,f=e.tip,m=r.useRef(null),g=r.useRef(null),v=r.useRef(null),[y,b]=r.useState(l.DropMode.None),[w,C]=r.useState(!1);r.useEffect(()=>{}),r.useEffect(()=>{var t,n,r;(null===(t=e.data)||void 0===t?void 0:t.isInteractionTarget)&&(null===(n=g.current)||void 0===n?void 0:n.scrollIntoViewIfNeeded)&&(null===(r=g.current)||void 0===r||r.scrollIntoViewIfNeeded())},[e.data.isInteractionTarget]);const[{isDragging:_},x,S]=a.useDrag({item:{id:p.id,selected:e.selected,type:l.TREE_NODE},collect:e=>({isDragging:!!e.isDragging()}),canDrag:t=>e.draggable,begin:()=>{e.onDragBegin()},end:(t,n)=>{if(!n.didDrop())return;if(!t)return;const r=n.getDropResult();t.id!==r.id&&e.onDragEnd(t.id,r.id,r.dropMode)}}),[{isOverCurrent:k,canDrop:P},T]=a.useDrop({accept:e.customDragType&&e.customDragType.length>0?[l.TREE_NODE,...e.customDragType]:l.TREE_NODE,drop:(e,t)=>{if(!t.didDrop())return{id:p.id,dropMode:y}},collect:e=>({isOverCurrent:!!e.isOver({shallow:!0}),canDrop:!!e.canDrop()}),hover:(t,n)=>{if(!n.canDrop())return void b(l.DropMode.None);if(!n.isOver({shallow:!0}))return;const r=g.current.getBoundingClientRect(),o=r.top+16,i=n.getClientOffset();if((e.canLeafHasChildren||!p.isLeaf)&&i.x>=r.left+32)b(l.DropMode.Child);else if(e.canPeersDrag){const e=i.y;b(e<o?l.DropMode.Before:l.DropMode.After)}},canDrop:(t,n)=>p.id!==t.id&&((!t.appSetID||t.appSetID!==p.id)&&e.canDropIn(t.id,p.id))});x(g),T(g);let E=p.name;p.serialNumber&&(E=`${p.serialNumber} ${p.name}`),p.childCount&&(E=`${E} (${p.childCount})`);const O=new String(p.name),M="rp-fragment"===p.source&&O&&O.startsWith("[")&&O.endsWith("]")?O.slice(0,O.length-1).slice(1,O.length):p.name;return r.createElement("li",{ref:g,className:o("tree-node",{["tree-node-drop-at-"+y]:k&&y!==l.DropMode.None&&!(null===(t=e.customDragType)||void 0===t?void 0:t.length),"tree-node-is-dragging":_,"tree-node-cutted":e.cutted,highlight:e.highlightChecked&&e.checked}),id:"node_"+p.id},r.createElement("div",{className:"interaction_target_node",id:"interaction_target_node_"+e.data.id,style:{left:16-e.offset},onClick:e.needDebounce?i.debounce(e.onClick,200):e.onClick}),e.data.showInteractionIcon&&r.createElement("div",{className:"has-interaction",style:{left:16-e.offset}}),e.data.isInteractionTarget&&r.createElement("div",{className:"isInteractionTarget",style:{left:16-e.offset}}),e.interactionHighlight&&r.createElement("div",{className:"interaction-highlight",style:{left:16-e.offset}}),(e.selected||e.highlightChecked&&e.checked||e.hoverShowBg||!!(null===(n=e.customDragType)||void 0===n?void 0:n.length)&&k&&P)&&r.createElement("div",{className:o("node-bg",{"node-bg-selected":e.selected,"node-bg-checked":e.data.isLeaf&&e.highlightChecked&&e.checked,"node-bg-drop-over":(null===(h=e.customDragType)||void 0===h?void 0:h.length)&&k&&P}),style:{left:-e.offset}}),e.hoverShowBg&&!e.selected&&r.createElement("div",{className:o("node-bg",{"node-bg-hover":e.hoverShowBg&&w}),style:{left:-e.offset}}),_&&r.createElement("div",{className:"tree-node-is-dragging-bg",style:{left:-e.offset}}),e.isEdit&&r.createElement("input",{ref:v,type:"text",className:"tree-node-input",defaultValue:M,autoFocus:!0,maxLength:e.renameMaxLength,style:{left:16-e.offset,width:e.inputWidth-32},onBlur:t=>{e.onRename&&e.onRename(t.target.value,p)},onKeyDown:t=>{"Enter"===t.key&&e.onRename&&e.onRename(t.target.value,p),"Escape"===t.key&&e.onRename&&e.onRename(p.name,p)}}),!e.isEdit&&r.createElement("span",{className:o("tree-node-name",{selected:e.selected,dullness:e.searchKey&&!c.isNodeMatch(p,e.searchKey),highlight:e.highlightChecked&&e.checked,lowlight:e.highlightChecked&&!e.checked,hover:w&&!e.selected}),ref:m,onDoubleClick:t=>{e.onDblClickNode?e.onDblClickNode(p.id):e.onExpand(u.isCtrlKey(t))},onClick:e.onClick,tabIndex:-1,onKeyDown:t=>{"Delete"===t.key&&m.current&&m.current.blur(),e.onKeyDown(t)},onMouseUp:e.onMouseUp,onMouseDown:e.onMouseDown,onMouseEnter:t=>{e.hoverShowBg&&C(!0),e.onMouseEnter&&e.onMouseEnter(t)},onMouseLeave:t=>{e.hoverShowBg&&C(!1),e.onMouseLeave&&e.onMouseLeave(t)},onContextMenu:e.onContextMenu},r.createElement("div",{className:"is-finding-interaction-target-node",style:{left:-e.offset}}),r.createElement("i",{className:o("icon-expand",{invisiable:!p.children||0===p.children.length}),onDoubleClick:t=>{e.onExpand(u.isCtrlKey(t)),t.stopPropagation()}},r.createElement(s.default,{cls:e.expanded?"tag_downarrow":"tag_rightarrow",hidden:!p.children||0===p.children.length,solid:!0,onClick:t=>{e.onExpand(u.isCtrlKey(t)),t.stopPropagation()}})),r.createElement("span",{className:"title",onClick:()=>e.showCheckBox&&e.onCheck(!e.checked)},p.isLeaf?r.createElement(r.Fragment,null,p.icon&&!e.showCustomIcon&&r.createElement(s.default,{cls:"tree_group"===p.icon?e.expanded?"tree_index":"tree_group":p.icon,solid:!0,disableHoverColor:!0,color:p.color}),p.icon&&!!e.showCustomIcon&&r.createElement(s.default,{cls:p.icon,solid:!0,disableHoverColor:!0,color:p.color})):r.createElement(s.default,{cls:e.expanded?"tree_index":"tree_group",solid:!0,disableHoverColor:!0}),p.isHomepage&&r.createElement(s.default,{cls:"demo_home",solid:!0,disableHoverColor:!0}),p.isHorizontal&&r.createElement(s.default,{cls:"tree_phone",solid:!0,disableHoverColor:!0}),e.showCheckBox&&r.createElement(d.default,{darkMode:"dark"===e.theme||"spec-dark"===e.theme,disabled:e.disabledCheckbox,checked:e.checked,indeterminate:e.indeterminate,onChange:e.onCheck}),e.searchKey&&e.searchKeyHighlight?r.createElement("span",{className:o("name",{"interaction-highlight":e.interactionHighlight}),onMouseOver:e=>f&&f(e,p.name),onMouseLeave:e=>f&&f(e),title:e.hideDefaultTitle?"":p.name,dangerouslySetInnerHTML:{__html:c.nodeMatchUpdate(p.name,e.searchKey,e.showGroupNum&&!p.isLeaf,p.groupNum?p.groupNum:0)}}):r.createElement("span",{className:o("name",{"interaction-highlight":e.interactionHighlight}),title:e.hideDefaultTitle||f?"":p.name,onMouseOver:e=>f&&f(e,p.name),onMouseLeave:e=>f&&f(e)},E,e.showGroupNum&&!p.isLeaf&&!!p.groupNum&&r.createElement("b",{className:"group-num"},"(",p.groupNum,")"))),(p.suffixIcon||p.optionsIcon||p.commentsIcon)&&r.createElement("div",{className:"right-icon"},p.commentsIcon&&p.commentsIcon.icon&&!e.isNotShowCommentsIcon&&r.createElement("i",{className:"comments-icon",title:e.hideDefaultTitle||f?"":p.commentsIcon.label,onMouseOver:e=>{var t;return f&&f(e,null===(t=p.commentsIcon)||void 0===t?void 0:t.label)},onMouseLeave:e=>f&&f(e)},r.createElement(s.default,{color:p.commentsIcon.color,cls:p.commentsIcon.icon,solid:!0})),p.suffixIcon&&r.createElement("i",{className:"suffix-icon",onMouseDown:t=>{e.onClickSuffixIcon&&e.onClickSuffixIcon(t,e.data.id)},title:e.hideDefaultTitle||f?"":p.suffixIcon.label,onMouseOver:e=>{var t;return f&&f(e,null===(t=p.suffixIcon)||void 0===t?void 0:t.label)},onMouseLeave:e=>f&&f(e)},r.createElement(s.default,{color:p.suffixIcon.color,cls:p.suffixIcon.icon,solid:!0})),p.optionsIcon&&r.createElement("i",{className:"options-icon",onMouseDown:t=>{e.onClickOptionsIcon&&e.onClickOptionsIcon(t,e.data.id)},title:e.hideDefaultTitle||f?"":p.optionsIcon.label,onMouseOver:e=>{var t;return f&&f(e,null===(t=p.optionsIcon)||void 0===t?void 0:t.label)},onMouseLeave:e=>f&&f(e)},r.createElement(s.default,{color:p.optionsIcon.color,cls:p.optionsIcon.icon,solid:!0})))),!e.isEdit&&r.createElement(a.DragPreviewImage,{src:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",connect:S}),e.children&&r.createElement("div",{className:"child"},e.children))},(function(e,t){const n=Object.keys(t).filter(e=>!("function"==typeof t[e]));for(let r of n){const n=r;try{if(!["children"].includes(n)&&JSON.stringify(t[n])!==JSON.stringify(e[n]))return!1;if(["children"].includes(n)&&t.children!==e.children)return!1}catch(e){return!1}}return!0}))},function(e,t,n){},function(e,t,n){e.exports=n.p+"assets/111d843603d33e4a2781273c878d914e.png"},function(e,t,n){e.exports=n.p+"assets/021ae1a2deb4c067f73e49d6befe3ecd.png"},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(138);n(1563),n(1568);const a=e=>{const{cls:t,color:n,tooltip:a,toolTipDirection:s,size:l,onClick:c,solid:u,disabled:d,tooltipAlign:h,disableHover:p,disableHoverColor:f,clickArea:m}=e,g=r.createElement("i",{className:o.default("dsm-c-icon-plugin","iconfont_plug","icon-plug-_"+t,{"dsm-c-icon-plugin-solid":u,"dsm-c-icon-plugin-disabled":d,"dsm-c-icon-plugin-solid-disabled":d&&u,"dsm-c-icon-plugin-solid-disableHover":p,"dsm-c-icon-plugin-solid-disableHoverColor":f,"dsm-c-icon-plugin-orea":!!m}),style:{fontSize:l,width:m?m.width:24,height:m?m.height:24,lineHeight:m?m.height+"px":"24px",color:n},onClick:d?void 0:c});return a?r.createElement(i.default,{text:a,align:h,theme:"small",direction:s},g):g};a.defaultProps={solid:!1,cls:"tag_peace",size:16,tooltip:"",color:"",toolTipDirection:"down",tooltipAlign:"center",disabled:!1,disableHover:!1,disableHoverColor:!1},t.default=a},function(e,t,n){var r=n(1564);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(286)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(284)(!1);var r=n(285),o=r(n(467)),i=r(n(467)+"#iefix"),a=r(n(1565)),s=r(n(1566)),l=r(n(1567)+"#iconfont_plug");t.push([e.i,'@font-face {font-family: "iconfont_plug";\r\n src: url('+o+"); /* IE9 */\r\n src: url("+i+") format('embedded-opentype'), \r\n url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA0YAAsAAAAAF8QAAAzJAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFUAqcbJYzATYCJANoCzYABCAFhSkHgmYbixMzo3aKkhIh+68PuEPF4Fe0O9rN6ujFmhvHMqQxkHrUgGIpXKEcLKQhzl780R/rPv7Kg+e//dp9M7Ni2hYRz3tIqomS3TqdEigZ4mAl/CHa5vEPSqQJGImRTNRF4RQj0fG8kai4LMfif2vY2gqMwkWim7ls0EU3AdAAATI2QcBt302R44kUJLTENXMZQ9FSVKbS6bX3Q8twsAQJy+xy3ujz3UwwhiOP0wOLojDAgMb84xWNVTFf1++XWiaVKCZhIiPj5KOD/f8dbBDB1lX4jAcGVdlznbpOhalQvkb77WPlRR9g9Ch2f3k3QwA/ZW1k7hEvA2QMTBF0OwxFeYDsy8DEeAteo1tyokFuIOFVp+oi4Nr8+/IfFBkULg271fyBpACI7etPYw6WqXHqyssDbpuBBtqAuRkepOYrqPLx1fjbEtkB4OWHKbDduvxNdExW2DbjNX3J89KlAPgMH34CBAkRJkJUTFxCUkpaRlaO+15g8NTzH0+BuGFdgwAyhsYcrFBj4AVLDHxgZQz8YFUMAmB1DIJgTQxCYG0MwmBdDCJgPRKFDEBikBFIHDIBSUBmIEnIAiQFWYGkIRuQDOQAJAs5gvdJTlBok5yh0FbZgRjIGwAy/x4g2pQvEIH8MAAFQF4/oQ+MwDRHwPUOM7xRVa81djcoxVbAbRdoTJytJmDxF3bFgrn40hkUW64ji8HlWdE59o5WPDqFzrztuHS9uUtxYQaLHkRn+fn785lMS6qdvRnb2dpCpTESJwxOajnh/g2zNAN4v7oX60PLfCd2nhh2rDs+RFUbrhp4lR2HOwl4fWcPTXPJHmtv727fxXXAOjSdfNW0oRimGIhwhr2oU9MHKiCjSnw8rV3djw9o+jAVPdrIq456UA2QQSTCslFYmo9VWMno4z1RuQ73LS+3LW+xRkorVaVYr9pDLitpbtVVVdui8qoSygQIWl7Mp3Jl6YZDZtgQ440O7/IhzRz65MM/anwRYHiy5Tq1l6wd69P4ToaKhl3CDk5u6Rqon19uIy9Tl2DWCF33K7VmyO6vsUXLMzDvwo4zA7lPekZ5fZ1Of8iqoD2vtDzDo7wE9GLeSAcWdY7KJbzmM6o+rNedDlX0qvv5ML21d2WeDLi6i4/gzS/s0Pae9FEWlBzS6+rqbYuUuqaBM96FRQNSh3nlq31eeQMa706Utx3uqO03zgajIaraTGNEdhudK3b1dlMH+66pbT0HG/tPn92VYLO86wa+qCdsztCEFNfO+ZH61E2Vp+mvanXPVbR2A+K0tCGQ8kpt81902spy8NTuKb7emDJ1cwVWaX2OGseVV+NVrWoVuwMKp1OzM92U6WPGA+QztxmTTNf07K3r13e3pKjJ61oy+vlQNS3NkNU1l3iMCuvyqsPXHIhymbKAVN4YuRBFQM0UzNZfd8QHifZEV865KkWr2j23xKqi0hqRNXMxY/e8FkGbZ36bHV5lI0fJluXlhOqq1NwSGwWKROWiqIwRn14OBZ2vNqhKWXZUPaG9S2pqO2g0CLum0SHJI+CdZlkHAFiIX9cNJ/jy9XUZLT12tgeH4y445ojR36O1mwsqagFyzUer93jbco8rdgiy6cqr2F383spqnyH6LGL1QwGCbDQByK80gnnb2h1jjNHoOBFZK5WiTG2VK9palbSDTKyjF/me+eXTcaBOkVeKWeU2eyjKcNv8tlxfgDURa7ah8sPbZhsu+dCODt+IcZMhHdiyupxi2LjkBmBUsZt7uWaVfQJa27DXelBJLODpoxmwI1T1Z1K1NupeLqA2z0aWgBbKE1kMimmGnQwZ+ySczRqMEs4Zu5k3Di2o4refpR4a07rHDker+t3V3Vz53mFJl9HbGIC9dkR+u4GqPu8DqCQa6GwFGuOxA+MD5eruXTU1tbuPdPXY7XWsD6g66vRFnN0YWbxE0tgj0S5VNUT0NEiKiyUNPn1jSN+GyOzPfFeRq5GHqD8u4Rsr7GWpHo7eue1atP2ICVIfe0sxifJCaLCiP65HbAIyOZyEWz5/w4gk1tHATgKYKA4p6fMQK0XC0j63sCA0luBLjY1GoeH9bpb2HWQkBps5dli6rX5ZOPHuxHv8QiBklVJOTUXVQy+1VdFwVh6I+g1CC6PhfT7rkA9UgJUrmSUb160MGqEUBuSkpaW4BblF/Ix4+qt25cpX7UA457TJD/iyjnTTPlX6M6Jl0zu6P1kffYMsQv/RfFCC6aiyeOSpd+5qHd0ZuztCVjStsqDGNQ9fFx2FjQBYeYvo7Ey6SbylZ94kubkE4k2jPStdqwUBQNNz8DBTMNkkNJFFJqd9bDowKeIry0sQix4LZO6cRgrJ7cEarQsinF4LpKwkCJhWOEoCQyK06tGhfyG+7b3SMl167KXAUAkw1eRCvEU1nft4swPr1weJ5CKLw4ddRCNYLEsRIgoCEwfEWlGoSCsWU421VPF3Q1CEQVAkWYflQzDvcy99mq615R5MITSIBRC7BDK2ZywC/pt4nFWrIWGE0FlOHtDzk6ycs7UHX8UB505tgpKmT0kCdyAPZ/M7lOjE/vLN79ZEL9bZ5riY80ADVzguKfExY989Wdn6dMk7Bw/k2JE5oqRgaXCSiG1tf7+gZUPYPzAXsTYO3pe1LJkquUczQwQSh7+PA2Ou/xonX70R34hO4+6wrPSstEyRFT/7JlsitaqQ6izBNtufQzcLeFPEhjdbuBmHeSdbNi91wsi2m1tO8g5ncMEoCAN95vpcPk05YXLj2vtWxVpo/35o7SJBjOfZGnhT7Tdb3DxexiX0ZAJwIfxieG94D3iwkoyk8GzMy3ac8BgwejW2v5JWefdO0RSBYOfOEppuX/LfIuW9Ox7kocJ9Opr11/sLF67eghX717m+vF7OI1wEk5OWn/icE5yjXYOMCZc2a5H1cbP5zNOH54vnT7SOb30cgO2b1fJ4lh3jtH7exHliycVXxWkRUQpRmF50B7/68id+bZnkuWrCNu0s3bx4m9srTtBX+OJFf6HZZ7mkTDq8UBqsPRqM+WScEXtf7JP0Piv2kuLRdUvnZK91npnsCPYVJoc5qFrUdaaImYMVkJOdLa8/SgFFRoF4MsE/KXfL9GLzpn3RoSdPiTxEBMFkyWZXEZzithIRjAqdpHBBiqTDCfwGSowg1nMqzpVGWAm1B0OPhPyScleoisklAzEjD54SWWdzQjb5Q5M9V/iHpYgLfewaqL/qNJwnldmA8Y8/X9bkMZP1qygL5n715oBsNtlw+SCJdGW/0ZwNsjneQxPoUgUzj47KlbTUZGYKKymkYkf+AiOTS/dryt9oZAGIRgddxcUKAWfG3CmLYb+CpUULBHbLsoqVQi/p+tbdkNASgIqz84llNS+EeT7MubU9GAWLgVZEBVSRdnDFAMb4LsJB6irSuFkYJh/9vTC4/tohddIoVSNhVyKQRkeTCNZRUVJCsuZFAqSfPOD72pANv9wfThsfQ9Z8JzP0x/m6rjjXGSkjnFPCHWY5hRNjfchmRNXo7DAXDxf9Is+U0Sm3F6x5KAhz+MWNjLOR1D6wnXv8Nevtl22DkkYljVE6KAbLB2ZjAJgGNb9EmOmTqdLw4GAATEZDgH0B2xzCIYnppaMgsmAMkF1hEmQDgMmkTsBwHhCbDf9gHCak3e4EBAFgwgwE46RoEDaHLajTEh6aTHE2BJrX+wQcVtej18ASpWg5EchKjsEJZYvz5k7gks/+szmscd/ItH+l1Xcq9CtN3j6VVx8/+YnU4iyJRGqM1SfdV8sy+cQ3gFjTJzcNML2cFtXZZFrU/zheazA/3Dpm4jRE78U4rCTuq22GVGqmQ8gnbqEKD3XQMvsGGNgPhLoIMAtu2DdD/bRaPT1AwhGMGB/Q4hWhQt5HqCLMJ2jY/+sN3COFukjnBG7Yh4T6WZCkCwY4nEd/DCdQDYzoviJoLFZkt431x7Km3r3A9UlRcKwn4B+Iw/fierrImp9QgMo9hD/u1poVljCLB7kdpISiEr5Bt5Nvrd7PZ4tDTxrzaDMKJ1BNj2yE7ps8aCz2220T2FzW1LsXYH37pCjNJKXJ/4E4rK9wdXJJa/1US/px29yXP+6mKXlWqEMJs/BQAG4EDShU+XZv0O3E56ird2c+n02rnlpiyNtKBQt3QmYZ/CQKjcHi8AQiiUyh0hgam5rrLa1t7R2dXfbXy4QuFOkh1Y3v4YOiEoo7muQITXvpCPu6S8H5JhWRmw/7OiGD1IF0guO+GtVAftZJ+vZNpN1kvVM6VuUgvdmDo8EOq8oYWWBYFENQaXAoJV9907DUmJB4sSNVzHyG0q9l7AfsR6T8FBU1aE68JbdvAl73mKGu2lUCKwrZr4vaMldeZlCk/T5A6xW94nFsYebzaAQAAA==') format('woff2'),\r\n url("+a+") format('woff'),\r\n url("+s+") format('truetype'), \r\n url("+l+') format(\'svg\'); /* iOS 4.1- */\r\n}\r\n\r\n.iconfont_plug {\r\n font-family: "iconfont_plug" !important;\r\n font-size: 16px;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.icon-plug-_login_help:before {\r\n content: "\\ea3e";\r\n}\r\n\r\n.icon-plug-_warning:before {\r\n content: "\\ea3f";\r\n}\r\n\r\n.icon-plug-12_sketch_group:before {\r\n content: "\\ea3d";\r\n}\r\n\r\n.icon-plug-_right_arrow:before {\r\n content: "\\e614";\r\n}\r\n\r\n.icon-plug-_close_circle:before {\r\n content: "\\e613";\r\n}\r\n\r\n.icon-plug-_update_version:before {\r\n content: "\\e612";\r\n}\r\n\r\n.icon-plug-_icon_right:before {\r\n content: "\\e621";\r\n}\r\n\r\n.icon-plug-_backpage:before {\r\n content: "\\e600";\r\n}\r\n\r\n.icon-plug-_check_circle:before {\r\n content: "\\e601";\r\n}\r\n\r\n.icon-plug-_add_new:before {\r\n content: "\\e602";\r\n}\r\n\r\n.icon-plug-_close:before {\r\n content: "\\e603";\r\n}\r\n\r\n.icon-plug-_down_arrow:before {\r\n content: "\\e604";\r\n}\r\n\r\n.icon-plug-_ds_colors:before {\r\n content: "\\e605";\r\n}\r\n\r\n.icon-plug-_brand:before {\r\n content: "\\e606";\r\n}\r\n\r\n.icon-plug-_menu:before {\r\n content: "\\e607";\r\n}\r\n\r\n.icon-plug-_ds_icons:before {\r\n content: "\\e608";\r\n}\r\n\r\n.icon-plug-_more:before {\r\n content: "\\e609";\r\n}\r\n\r\n.icon-plug-_ds_pics:before {\r\n content: "\\e60a";\r\n}\r\n\r\n.icon-plug-_ds_styles:before {\r\n content: "\\e60b";\r\n}\r\n\r\n.icon-plug-_homepage:before {\r\n content: "\\e60c";\r\n}\r\n\r\n.icon-plug-_refresh:before {\r\n content: "\\e60d";\r\n}\r\n\r\n.icon-plug-_ds_comps:before {\r\n content: "\\e60e";\r\n}\r\n\r\n.icon-plug-_search:before {\r\n content: "\\e60f";\r\n}\r\n\r\n.icon-plug-_ds_new_group:before {\r\n content: "\\e610";\r\n}\r\n\r\n.icon-plug-_ds_fonts:before {\r\n content: "\\e611";\r\n}\r\n\r\n',""])},function(e,t,n){e.exports=n.p+"assets/aa7f310354bae605c9549eeabece1640.woff"},function(e,t,n){e.exports=n.p+"assets/dc6a8e8a6ff3cedf70d1e00b7d416dd6.ttf"},function(e,t,n){e.exports=n.p+"assets/4e4ed2613490c0bf1efcf5e54c172262.svg"},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1570);class i extends r.Component{render(){const{borderOptions:e,blur:t,fills:n,borders:i,shadows:a,innerShadows:s}=this.props.data;let l="";return t&&t.enabled&&(l=`blur(${t.radius})`),r.createElement("div",{className:o("layer-style-content",{})},r.createElement("div",{className:o("layer-style-box",{}),style:{filter:l}},n.length>0&&n.map((e,t)=>{if(!e.enabled)return null;let n,o="50%",i="50%",a=e.color,s="to bottom",l=[];if("Gradient"===e.fillType)switch(e.gradient.gradientType){case"Linear":e.gradient.stops.map(e=>{l.push(e.color)}),s=e.gradient.from.x===e.gradient.to.x?"to "+(e.gradient.from.y>e.gradient.to.y?"top":"bottom"):e.gradient.from.y===e.gradient.to.y?"to "+(e.gradient.from.x>e.gradient.to.x?"left":"right"):`to ${e.gradient.from.y>e.gradient.to.y?"top":"bottom"} ${e.gradient.from.x>e.gradient.to.x?"left":"right"}`,a=`linear-gradient(${s}, ${l.join(", ")})`;break;case"Radial":e.gradient.stops.map(e=>{l.push(`${e.color} ${Math.round(100*e.position)}%`)}),a=`radial-gradient(${l.join(", ")})`;break;case"Angular":2===e.gradient.stops.length?a=`conic-gradient(${e.gradient.stops[0].color}, ${e.gradient.stops[1].color})`:(e.gradient.stops.map(e=>{l.push(`${e.color} ${Math.round(100*e.position)}%`)}),a=`conic-gradient(${l.join(", ")})`),n="rotate(90deg)",o="4px",i="4px";break;default:a=e.color}return r.createElement("span",{className:"layer-style-item",key:t,style:{background:a,transform:n,left:i,top:o}})}),i.length>0&&i.map((e,t)=>e.enabled?r.createElement("span",{className:"layer-style-item borders",key:t,style:{border:`${e.thickness}px solid ${e.color}`}}):null),a.length>0&&a.map((e,t)=>e.enabled?r.createElement("span",{className:"layer-style-item",key:t,style:{boxShadow:`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color}`}}):null),s.length>0&&s.map((e,t)=>e.enabled?r.createElement("span",{className:"layer-style-item",key:t,style:{boxShadow:`${e.x}px ${e.y}px ${e.blur}px ${e.spread}px ${e.color} inset`}}):null)))}}t.default=i},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);n(1572);class o extends r.Component{constructor(e){super(e),this.onChange=e=>{this.props.onChange(e.target.value)},this.onFocus=e=>{this.props.onFocus&&this.props.onFocus()},this.onTextareaKeyDown=this.onTextareaKeyDown.bind(this)}onTextareaKeyDown(e){const{onKeyDown:t}=this.props;"Escape"!==e.key&&(e.stopPropagation(),t&&t(e))}render(){const{setRef:e,rows:t,value:n,placeholder:o,autoFocus:i,disabled:a,maxLength:s,readOnly:l,onBlur:c}=this.props;return r.createElement("div",{className:"dsm-c-textarea2"},r.createElement("textarea",{ref:e,rows:t,value:n,placeholder:o,autoFocus:i,disabled:a,maxLength:s,readOnly:l,onFocus:this.onFocus,onChange:this.onChange,onBlur:c,onKeyDown:this.onTextareaKeyDown}))}}o.defaultProps={cols:10,rows:10},t.default=o},function(e,t,n){},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(1574);class s extends r.Component{constructor(e){super(e),this.divRef=r.createRef(),this.state={marginTop:0}}componentDidMount(){this.setState({marginTop:1===document.getElementsByClassName("top-message-tips-wrap").length?0:90})}static getDerivedStateFromProps(e,t){if(0!==t.marginTop)return{marginTop:1===document.getElementsByClassName("top-message-tips-wrap").length?0:90}}render(){const e=r.createRef(),{textInfo:t,linkText:n,redText:s,redTextPosition:l,isShow:c,showClose:u,onClick:d,onClose:h}=this.props;return r.createElement("div",{className:o.default("top-message-tips-wrap",{hide:c}),style:{marginTop:this.state.marginTop},ref:e},r.createElement("div",{style:{paddingRight:n?"140px":"40px"}},r.createElement("div",{className:"text"},t.map((e,t)=>t===l?r.createElement("span",{key:e},r.createElement("i",{className:"red"},s),e):r.createElement("span",{key:e},e))),n&&r.createElement(a.default,{onClick:d},n)),u&&r.createElement("span",{className:"close_btn"},r.createElement(i.default,{cls:"demo_close",size:8,clickArea:{width:16,height:16},onClick:()=>{h&&h()}})))}}t.default=s},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPShortCutsContent=void 0;const r=n(0),o=n(26),i=n(139),a=n(87),s=n(463),l=n(25),c=n(2),u="en-us"===(window.LANG||"zh-cn");n(1576);const d=n(69),h=window.isDT,p=[{name:l.default("shortCutKey.basicOperation"),items:[{name:l.default("shortCutKey.undoBtn"),shortCut:{win:"Ctrl + Z",mac:"⌘Z"}},{name:l.default("shortCutKey.redoBtn"),shortCut:{win:"Ctrl + Y",mac:"⌘Y"}},{name:l.default("shortCutKey.save"),shortCut:{win:"Ctrl + S",mac:"⌘S"}},{name:l.default("shortCutKey.delete"),shortCut:{win:"Delete/Backspace",mac:"⌫"}},{name:l.default("shortCutKey.copy"),shortCut:{win:"Ctrl + C",mac:"⌘C"}},{name:l.default("shortCutKey.cut"),shortCut:{win:"Ctrl + X",mac:"⌘X"}},{name:l.default("shortCutKey.paste"),shortCut:{win:"Ctrl + V",mac:"⌘V"}},{name:l.default("shortCutKey.multiSelect"),shortCut:{win:"Shift + "+l.default("shortCutKey.click"),mac:"⇧"+l.default("shortCutKey.click")}},{name:l.default("shortCutKey.selectAll"),shortCut:{win:"Ctrl + A",mac:"⌘A"}},{name:l.default("shortCutKey.unSelect"),shortCut:{win:"Ctrl + Shift + A",mac:"⌘⇧A"}},{name:l.default("shortCutKey.addRegion"),shortCut:{win:"Shift + "+l.default("shortCutKey.selectRegion"),mac:"⇧"+l.default("shortCutKey.selectRegion")}},{name:l.default("shortCutKey.containSelect"),shortCut:{win:"Ctrl + "+l.default("shortCutKey.selectRegion"),mac:"⌘"+l.default("shortCutKey.selectRegion")}},{name:l.default("shortCutKey.selectDown"),shortCut:{win:"Ctrl + "+l.default("shortCutKey.click"),mac:"⌘"+l.default("shortCutKey.click")}},{name:l.default("shortCutKey.lock"),shortCut:{win:"Ctrl + L",mac:"⌘L"}},{name:l.default("shortCutKey.componentClone"),shortCut:{win:"Ctrl + D / Alt + "+l.default("shortCutKey.drag"),mac:"⌘D / ⌥"+l.default("shortCutKey.drag")}},{name:l.default("shortCutKey.mergeOrdissolve"),shortCut:{win:"Ctrl + G",mac:"⌘G"}},{name:l.default("shortCutKey.hidden"),shortCut:{win:"Ctrl + H",mac:"⌘H"}},{name:l.default("shortCutKey.dragWorkspace"),shortCut:{win:"Space + "+l.default("shortCutKey.drag"),mac:"Space + "+l.default("shortCutKey.drag")}},{name:l.default("shortCutKey.levelRoll"),shortCut:{win:"Shift + "+l.default("shortCutKey.mouseWheel"),mac:"⇧"+l.default("shortCutKey.mouseWheel")}},{name:l.default("shortCutKey.zoomIn"),shortCut:{win:"Ctrl + + / Ctrl + "+l.default("shortCutKey.mouseWheelUp"),mac:"⌘+ / ⌘"+l.default("shortCutKey.mouseWheelUp")}},{name:l.default("shortCutKey.zoomOut"),shortCut:{win:"Ctrl + - / Ctrl + "+l.default("shortCutKey.mouseWheelDown"),mac:"⌘- / ⌘"+l.default("shortCutKey.mouseWheelDown")}},{name:l.default("shortCutKey.zoomToOne"),shortCut:{win:"Ctrl + 1",mac:"⌘1"}},{name:l.default("shortCutKey.zoomToTwo"),shortCut:{win:"Ctrl + 2",mac:"⌘2"}},{name:l.default("shortCutKey.zoomToThree"),shortCut:{win:"Ctrl + 3",mac:"⌘3"}},{name:l.default("shortCutKey.zoomToFour"),shortCut:{win:"Ctrl + 4",mac:"⌘4"}},{name:l.default("shortCutKey.zoomToArtboard"),shortCut:{win:"Ctrl + 0",mac:"⌘0"}},{name:l.default("shortCutKey.demonstrate"),shortCut:{win:"Ctrl + P",mac:"⌘P"}},{name:l.default("shortCutKey.verticalClone"),hidden:!0,shortCut:{win:"Alt + Shift + "+l.default("shortCutKey.dragComponent"),mac:"⇧⌥"+l.default("shortCutKey.dragComponent")}}]},{name:l.default("shortCutKey.addElement"),items:[{name:l.default("shortCutKey.texts"),shortCut:{win:"T",mac:"T"}},{name:l.default("shortCutKey.rectangle"),shortCut:{win:"R",mac:"R"}},{name:l.default("shortCutKey.line"),shortCut:{win:"L",mac:"L"}},{name:l.default("shortCutKey.oval"),shortCut:{win:"O",mac:"O"}},{name:l.default("shortCutKey.button"),hidden:h,shortCut:{win:"B",mac:"B"}},{name:l.default("shortCutKey.image"),shortCut:{win:"I",mac:"I"}},{name:l.default("shortCutKey.artboard"),shortCut:{win:"A",mac:"A"}},{name:l.default("shortCutKey.pen"),shortCut:{win:"P",mac:"P"}},{name:l.default("shortCutKey.arrow"),hidden:h,shortCut:{win:"W",mac:"W"}},{name:l.default("shortCutKey.stickyNote"),hidden:h,shortCut:{win:"S",mac:"S"}},{name:l.default("shortCutKey.circleMarker"),hidden:h,shortCut:{win:"C",mac:"C"}},{name:l.default("shortCutKey.dropMarker"),hidden:h,shortCut:{win:"D",mac:"D"}}]},{name:l.default("shortCutKey.attributeSetting"),items:[{name:l.default("shortCutKey.componentTransparent"),shortCut:{win:l.default("shortCutKey.numberKey")}},{name:l.default("shortCutKey.componentHeight"),hidden:!0,shortCut:{win:"Alt + Up/Down",mac:"⌥Up/Down"}},{name:l.default("shortCutKey.componentWidth"),hidden:!0,shortCut:{win:"Alt + Left/Right",mac:"⌥Left/Right"}},{name:l.default("shortCutKey.addFontsize"),shortCut:{win:"Ctrl + ]",mac:"⌘]"}},{name:l.default("shortCutKey.decreaseFontsize"),shortCut:{win:"Ctrl + [",mac:"⌘["}},{name:l.default("shortCutKey.bold"),shortCut:{win:"Ctrl + B",mac:"⌘B"}},{name:l.default("shortCutKey.italic"),shortCut:{win:"Ctrl + I",mac:"⌘I"}},{name:l.default("shortCutKey.underline"),shortCut:{win:"Ctrl + U",mac:"⌘U"}},{name:l.default("shortCutKey.autoSize"),shortCut:{win:"Ctrl + Enter",mac:"⌘↩"}}]},{name:l.default("shortCutKey.layoutSetting"),items:[{name:l.default("shortCutKey.componentMove"),shortCut:{win:"Up/Down/Left/Right"}},{name:l.default("shortCutKey.componentMoveFast"),shortCut:{win:"Shift + Up/Down/Left/Right",mac:"⇧Up/Down/Left/Right"}},{name:l.default("shortCutKey.verticalMove"),hidden:!0,shortCut:{win:"Shift + "+l.default("shortCutKey.dragComponent"),mac:"⇧"+l.default("shortCutKey.dragComponent")}},{name:l.default("shortCutKey.forwardTier"),shortCut:{win:"Ctrl + Up",mac:"⌘Up"}},{name:l.default("shortCutKey.abackTier"),shortCut:{win:"Ctrl + Down",mac:"⌘Down"}},{name:l.default("shortCutKey.toTop"),shortCut:{win:"Ctrl + Shift + Up",mac:"⌘⇧Up"}},{name:l.default("shortCutKey.toBottom"),shortCut:{win:"Ctrl + Shift + Down",mac:"⌘⇧Down"}},{name:l.default("shortCutKey.boardInterval"),shortCut:{win:"Alt + "+l.default("shortCutKey.MouseOverComponent"),mac:"⌥"+l.default("shortCutKey.MouseOverComponent")}},{name:l.default("shortCutKey.justifyLeft"),shortCut:{win:"Ctrl + Alt + L",mac:"⌘⌥L"}},{name:l.default("shortCutKey.justifyRight"),shortCut:{win:"Ctrl + Alt + R",mac:"⌘⌥R"}},{name:l.default("shortCutKey.justifyTop"),shortCut:{win:"Ctrl + Alt + T",mac:"⌘⌥T"}},{name:l.default("shortCutKey.justifyBottom"),shortCut:{win:"Ctrl + Alt + B",mac:"⌘⌥B"}},{name:l.default("shortCutKey.justifyCenter"),shortCut:{win:"Ctrl + Alt + C",mac:"⌘⌥C"}},{name:l.default("shortCutKey.justifyVertical"),shortCut:{win:"Ctrl + Alt + M",mac:"⌘⌥M"}},{name:l.default("shortCutKey.levelIsometry"),shortCut:{win:"Ctrl + Shift + H",mac:"⌘⇧H"}},{name:l.default("shortCutKey.verticalIsometry"),shortCut:{win:"Ctrl + Shift + U",mac:"⌘⇧U"}}]},{name:l.default("shortCutKey.projectSetting"),hidden:!0,items:[{name:l.default("shortCutKey.pageUp"),hidden:!0,shortCut:{win:"Ctrl + Up",mac:"⌘Up"}},{name:l.default("shortCutKey.pageDown"),hidden:!0,shortCut:{win:"Ctrl + Down",mac:"⌘Down"}},{name:l.default("shortCutKey.recentPage"),hidden:!0,shortCut:{win:"Ctrl + M",mac:"⌘M"}},{name:l.default("shortCutKey.prePage"),hidden:!0,shortCut:{win:"Ctrl + <",mac:"⌘<"}},{name:l.default("shortCutKey.nextPage"),hidden:!0,shortCut:{win:"Ctrl + >",mac:"⌘>"}}]},{name:l.default("shortCutKey.interfaceSetting"),items:[{name:l.default("shortCutKey.unfoldLeftBoard"),hidden:!0,shortCut:{win:"Ctrl + Alt + Left",mac:" ⌥⌘Left"}},{name:l.default("shortCutKey.unfoldRightBoard"),hidden:!0,shortCut:{win:"Ctrl + Alt + Right",mac:"⌥⌘Right"}},{name:l.default("shortCutKey.preview"),hidden:!0,shortCut:{win:"Ctrl + F",mac:"⌘F"}},{name:l.default("shortCutKey.locateMainBoard"),hidden:!0,shortCut:{win:"Ctrl + 0",mac:"⌘0"}},{name:l.default("shortCutKey.rename"),shortCut:{win:"F2",mac:"Enter"}},{name:l.default("shortCutKey.newPage"),shortCut:{win:"Ctrl + Enter",mac:"⌘Enter"}},{name:l.default("shortCutKey.actionName"),shortCut:{win:"Ctrl + Shift + Enter",mac:"⇧⌘Enter"}}]},{name:l.default("shortCutKey.InterfaceView"),items:[{name:l.default("shortCutKey.openTree"),hidden:!0,shortCut:{win:"Alt + 1",mac:"⌥1"}},{name:l.default("shortCutKey.openLayer"),hidden:!0,shortCut:{win:"Alt + 2",mac:"⌥2"}},{name:l.default("shortCutKey.openComponent"),hidden:!0,shortCut:{win:"Alt + 3",mac:"⌥3"}},{name:l.default("shortCutKey.openIcons"),hidden:!0,shortCut:{win:"Alt + 4",mac:"⌥4"}},{name:l.default("shortCutKey.openResource"),hidden:!0,shortCut:{win:"Alt + 5",mac:"⌥5"}},{name:l.default("shortCutKey.switchTabs"),hidden:h,shortCut:{win:"Alt + 1~5",mac:"⌥1~5"}},{name:l.default("shortCutKey.showHideGrid"),shortCut:{win:"Alt + G",mac:"⌥G"}},{name:l.default("shortCutKey.showHideLayout"),shortCut:{win:"Alt + L",mac:"⌥L"}},{name:l.default("shortCutKey.showRuler"),shortCut:{win:"Ctrl + R",mac:"⌘R"}},{name:l.default("shortCutKey.notes"),hidden:h,shortCut:{win:"Ctrl + M",mac:"⌘M"}},{name:l.default("shortCutKey.searchFast"),shortCut:{win:"Ctrl + F",mac:"⌘F"}}]}],f=[{name:l.default("shortCutKey.projectTree"),items:[{name:l.default("shortCutKey.rename"),shortCut:{win:"F2",mac:"Enter"}},{name:l.default("shortCutKey.delete"),shortCut:{win:"Delete/Backspace",mac:"⌫"}},{name:l.default("shortCutKey.copy"),shortCut:{win:"Ctrl + C",mac:"⌘C"}},{name:l.default("shortCutKey.cut"),shortCut:{win:"Ctrl + X",mac:"⌘X"}},{name:l.default("shortCutKey.paste"),shortCut:{win:"Ctrl + V",mac:"⌘V"}}]},{name:l.default("shortCutKey.canvas"),items:[{name:l.default("shortCutKey.drag"),shortCut:{win:l.default("shortCutKey.leftMouseButton")}},{name:l.default("shortCutKey.zoom"),shortCut:{win:"Ctrl + "+l.default("shortCutKey.mouseWheel"),mac:"⌘"+l.default("shortCutKey.mouseWheel")}},{name:l.default("shortCutKey.zoomOut"),shortCut:{win:"Ctrl + +",mac:"⌘+"}},{name:l.default("shortCutKey.zoomIn"),shortCut:{win:"Ctrl + -",mac:"⌘-"}},{name:l.default("shortCutKey.zoomToOne"),shortCut:{win:"Ctrl + 1",mac:d.getMacCmdOrCtrl()+"1"}},{name:l.default("shortCutKey.zoomToTwo"),shortCut:{win:"Ctrl + 2",mac:d.getMacCmdOrCtrl()+"2"}},{name:l.default("shortCutKey.zoomToThree"),shortCut:{win:"Ctrl + 3",mac:d.getMacCmdOrCtrl()+"3"}},{name:l.default("shortCutKey.zoomToFour"),shortCut:{win:"Ctrl + 4",mac:d.getMacCmdOrCtrl()+"4"}},{name:l.default("shortCutKey.selectAll"),shortCut:{win:"Ctrl + A",mac:"⌘A"}}]},{name:l.default("shortCutKey.storyboard"),items:[{name:l.default("shortCutKey.overview"),shortCut:{win:"Ctrl + 0",mac:"⌘0"}},{name:l.default("shortCutKey.map"),shortCut:{win:"M",mac:"M"}},{name:l.default("shortCutKey.preview"),shortCut:{win:"P",mac:"P"}},{name:l.default("shortCutKey.lineDescription"),shortCut:{win:"S",mac:"S"}},{name:l.default("shortCutKey.multiSelect"),shortCut:{win:"Shift/Ctrl + "+l.default("shortCutKey.leftKey"),mac:"⇧/⌘"+l.default("shortCutKey.leftKey")}},{name:l.default("shortCutKey.undoBtn"),shortCut:{win:"Ctrl + Z",mac:"⌘Z"}},{name:l.default("shortCutKey.redoBtn"),shortCut:{win:"Ctrl + Y",mac:"⌘Y"}},{name:l.default("shortCutKey.focus"),shortCut:{win:"F",mac:"F"}}]},{name:l.default("shortCutKey.page"),items:[{name:l.default("shortCutKey.rename"),shortCut:{win:"F2",mac:"Enter"}},{name:l.default("shortCutKey.copy"),shortCut:{win:"Ctrl + C",mac:"⌘C"}},{name:l.default("shortCutKey.paste"),shortCut:{win:"Ctrl + V",mac:"⌘V"}}]},{name:l.default("shortCutKey.commentMode"),items:[{name:l.default("shortCutKey.select"),shortCut:{win:"V",mac:"V"}},{name:l.default("shortCutKey.pin"),shortCut:{win:"D",mac:"D"}},{name:l.default("shortCutKey.rectangle"),shortCut:{win:"R",mac:"R"}},{name:l.default("shortCutKey.circle"),shortCut:{win:"C",mac:"C"}},{name:l.default("shortCutKey.straightLine"),shortCut:{win:"S",mac:"S"}},{name:l.default("shortCutKey.arrow"),shortCut:{win:"A",mac:"A"}},{name:l.default("shortCutKey.multiSelect"),shortCut:{win:"Ctrl + "+l.default("shortCutKey.leftKey"),mac:"⌘"+l.default("shortCutKey.leftKey")}},{name:l.default("shortCutKey.cut"),shortCut:{win:"Ctrl + X",mac:"⌘X"}},{name:l.default("shortCutKey.selectAll"),shortCut:{win:"Ctrl + A",mac:"⌘A"}},{name:l.default("shortCutKey.prePage"),shortCut:{win:l.default("shortCutKey.left")}},{name:l.default("shortCutKey.nextPage"),shortCut:{win:l.default("shortCutKey.right")}},{name:l.default("shortCutKey.undoBtn"),shortCut:{win:"Ctrl + Z",mac:"⌘Z"}},{name:l.default("shortCutKey.redoBtn"),shortCut:{win:"Ctrl + Y",mac:"⌘Y"}}]},{name:l.default("shortCutKey.reviewMode"),items:[{name:l.default("shortCutKey.select"),shortCut:{win:"V"}},{name:l.default("shortCutKey.text"),shortCut:{win:"T"}},{name:l.default("shortCutKey.multiSelect"),shortCut:{win:"Ctrl + "+l.default("shortCutKey.leftKey"),mac:"⌘"+l.default("shortCutKey.leftKey")}},{name:l.default("shortCutKey.cut"),shortCut:{win:"Ctrl + X",mac:"⌘X"}},{name:l.default("shortCutKey.selectAll"),shortCut:{win:"Ctrl + A",mac:"⌘A"}},{name:l.default("shortCutKey.prePage"),shortCut:{win:l.default("shortCutKey.left")}},{name:l.default("shortCutKey.nextPage"),shortCut:{win:l.default("shortCutKey.right")}},{name:l.default("shortCutKey.undoBtn"),shortCut:{win:"Ctrl + Z",mac:"⌘Z"}},{name:l.default("shortCutKey.redoBtn"),shortCut:{win:"Ctrl + Y",mac:"⌘Y"}}]},{name:l.default("shortCutKey.developMode"),items:[{name:l.default("shortCutKey.magnifier"),shortCut:{win:"Z",mac:"Z"}},{name:l.default("shortCutKey.multiSelect"),shortCut:{win:"Shift/Ctrl + "+l.default("shortCutKey.leftKey"),mac:"⇧/⌘"+l.default("shortCutKey.leftKey")}},{name:l.default("shortCutKey.imgLayers"),shortCut:{win:l.default("shortCutKey.doubleClick")}},{name:l.default("shortCutKey.percentageSpecs"),shortCut:{win:"Alt",mac:"⌥"}},{name:l.default("shortCutKey.prePage"),shortCut:{win:l.default("shortCutKey.left")}},{name:l.default("shortCutKey.nextPage"),shortCut:{win:l.default("shortCutKey.right")}}]},{name:l.default("shortCutKey.prototype"),items:[{name:l.default("shortCutKey.createrHotArea"),shortCut:{win:l.default("shortCutKey.doubleClick")}},{name:l.default("shortCutKey.copyLink"),shortCut:{win:"Alt + "+l.default("shortCutKey.drag"),mac:"⌥ "+l.default("shortCutKey.drag")}},{name:l.default("shortCutKey.copy"),shortCut:{win:"Ctrl + C",mac:"⌘C"}},{name:l.default("shortCutKey.paste"),shortCut:{win:"Ctrl + X",mac:"⌘X"}},{name:l.default("shortCutKey.undoBtn"),shortCut:{win:"Ctrl + Z",mac:"⌘Z"}},{name:l.default("shortCutKey.redoBtn"),shortCut:{win:"Ctrl + Y",mac:"⌘Y"}}]},{name:l.default("shortCutKey.prdDocTree"),items:[{name:l.default("shortCutKey.rename"),shortCut:{win:l.default("shortCutKey.doubleClick")}},{name:l.default("shortCutKey.delete"),shortCut:{win:"Delete/Backspace",mac:"⌫"}},{name:l.default("shortCutKey.copy"),shortCut:{win:"Ctrl + C",mac:"⌘C"}},{name:l.default("shortCutKey.cut"),shortCut:{win:"Ctrl + X",mac:"⌘X"}},{name:l.default("shortCutKey.paste"),shortCut:{win:"Ctrl + V",mac:"⌘V"}}]}];class m extends r.Component{constructor(e){super(e),this.cache_key="rp_keyData";const t=localStorage.getItem(this.cache_key),n={};if(t){JSON.parse(t).forEach(e=>{n[e.name]=!!e.expand})}const r=[...p];r.forEach(e=>{e.expand=void 0===n[e.name]||n[e.name]}),this.state={data:r}}onHandleClick(e){const t=[...this.state.data];e&&(t.forEach(t=>{t.name===e&&(t.expand=!t.expand)}),localStorage.setItem(this.cache_key,JSON.stringify(t)),this.setState({data:t}))}render(){const{data:e}=this.state;return r.createElement("div",{className:c(u?"shortcut-dialog-content-en":"shortcut-dialog-content-zh")},r.createElement(a.default,{autoHeightMin:200},r.createElement("ul",null,e.filter(e=>!e.hidden).map(e=>{let t=0;return e.items.forEach(e=>e.hidden?t:t+=43),r.createElement("li",{key:e.name},r.createElement("div",{className:"shortcut-title",onClick:this.onHandleClick.bind(this,e.name)},r.createElement("span",null,e.name),r.createElement("span",{className:e.expand?"icondown":"iconright"},r.createElement(o.default,{cls:"tag_rightarrow",solid:!0}))),r.createElement("ul",{className:"shortcut-child-box",style:{height:e.expand?t:0}},e.items.filter(e=>!e.hidden).map(e=>r.createElement("li",{key:e.name},r.createElement("span",null,e.name),r.createElement("span",null,r.createElement(s.default,{shortCut:e.shortCut.win,macOSShortCut:e.shortCut.mac}))))))}))))}}t.RPShortCutsContent=m;class g extends r.Component{constructor(e){super(e);const t=localStorage.getItem(e.product+"_keyData"),n={};if(t){JSON.parse(t).forEach(e=>{n[e.name]=!!e.expand})}const r="rp"===e.product?[...p]:[...f];r.forEach(e=>{e.expand=void 0===n[e.name]||n[e.name]}),this.state={data:r}}onHandleClick(e){const t=[...this.state.data];e&&(t.forEach(t=>{t.name===e&&(t.expand=!t.expand)}),localStorage.setItem(this.props.product+"_keyData",JSON.stringify(t)),this.setState({data:t}))}render(){const{data:e}=this.state;return r.createElement("div",{className:c("shortcut-dialog-module",u?"shortcut-dialog-en":"shortcut-dialog")},r.createElement(i.default,{onCancel:e=>{e.stopPropagation(),this.props.onClose()},contentMinHeight:320,title:l.default("shortCutKey.shortCutKey"),contentOverflow:"hidden",showCancel:!1,showOk:!1},r.createElement("div",{className:u?"shortcut-dialog-content-en":"shortcut-dialog-content-zh"},r.createElement(a.default,{autoHeight:!0,autoHeightMin:200,autoHeightMax:488,height:"66vh"},r.createElement("ul",null,e.map(e=>{if(e.hidden)return;let t=0;return e.items.forEach(e=>e.hidden?t:t+=43),r.createElement("li",{key:e.name},r.createElement("div",{className:"shortcut-title",onClick:this.onHandleClick.bind(this,e.name)},r.createElement("span",null,e.name),r.createElement("span",{className:e.expand?"icondown":"iconright"},r.createElement(o.default,{cls:"tag_rightarrow",solid:!0}))),r.createElement("ul",{className:"shortcut-child-box",style:{height:e.expand?t:0}},e.items.map(e=>{if(!e.hidden)return r.createElement("li",{key:e.name},r.createElement("span",null,e.name),r.createElement("span",null,r.createElement(s.default,{shortCut:e.shortCut.win,macOSShortCut:e.shortCut.mac})))})))}))))))}}t.default=g},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(179),i=n(25),a=n(1578),s=n(1579),l=n(1580);n(1581);const c=Math.floor(1e4*Math.random())%2==0?a:s;class u extends r.Component{constructor(e){super(e),this.mobileOpenApp=()=>{const{onClose:e}=this.props;window.location.href="mockplus://cn.mockplus.www",this.setState({mobileAppLoading:!0}),window.setTimeout(()=>{const{downLoadMobileApp:t}=this.state;t?this.setState({openAppFail:!0,mobileAppLoading:!1}):e()},4e3)},this.downloadApp=()=>{const e=window.navigator.userAgent,t=e.indexOf("Android")>-1||e.indexOf("Adr")>-1;window.location.href=t?i.default("mobileDialog.appUrl")+"/lark/pc-download/android":i.default("mobileDialog.appUrl")+"/lark/pc-download/ios"},this.state={mobileAppLoading:!1,openAppFail:!1,downLoadMobileApp:!0},this.mobileOpenApp=this.mobileOpenApp.bind(this),this.clearMobileTimeID=this.clearMobileTimeID.bind(this)}componentDidMount(){window.addEventListener("visibilitychange",this.clearMobileTimeID)}componentWillUnmount(){window.removeEventListener("visibilitychange",this.clearMobileTimeID)}clearMobileTimeID(){this.setState({downLoadMobileApp:!1})}render(){const{onClose:e}=this.props,{mobileAppLoading:t,openAppFail:n}=this.state;return n?r.createElement("div",{className:"mobile-dialog mobile-dialog-fail"},r.createElement("div",{className:"mobile-content"},r.createElement("div",{className:"title"},i.default("mobileDialog.openAppFail")),r.createElement("div",{className:"text"},r.createElement("p",null,i.default("mobileDialog.downloadApp")),r.createElement("p",null,i.default("mobileDialog.openManually"))),r.createElement("div",{className:"buttons"},r.createElement(o.default,{onClick:e,background:"white"},i.default("mobileDialog.cancel")),r.createElement(o.default,{onClick:this.downloadApp},i.default("mobileDialog.download"))))):r.createElement("div",{className:"mobile-dialog"},t?r.createElement("div",{className:"mobile-loading"},r.createElement("img",{src:l})):r.createElement("div",{className:"mobile-content"},r.createElement("img",{src:c,alt:""}),r.createElement("div",{className:"contents"},r.createElement("div",{className:"title"},i.default("mobileDialog.title")),r.createElement("div",{className:"text"},i.default("mobileDialog.text")),r.createElement("div",{className:"buttons"},r.createElement(o.default,{onClick:e,background:"white"},i.default("mobileDialog.ok")),r.createElement(o.default,{onClick:this.mobileOpenApp},i.default("mobileDialog.openApp"))),r.createElement("div",{className:"other"},i.default("mobileDialog.unInstall"),r.createElement("span",{className:"red",onClick:this.downloadApp},i.default("mobileDialog.clickDownload"))))))}}t.default=u},function(e,t,n){e.exports=n.p+"assets/6441f98a954448f626f2a23a1d57ae38.png"},function(e,t,n){e.exports=n.p+"assets/c1d985b6d6c66b9ec89a48941d7f55e0.png"},function(e,t,n){e.exports=n.p+"assets/360fa5269b7f03a88a5c610873786963.gif"},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1583),i=n(1590);n(1594);const a=e=>{const{groups:t,singles:n,checkIds:a,searchPlaceholder:s,maxCount:l,canCustomStatus:c,enableEmailSearch:u,height:d,showAddGroup:h,addGroupTooltip:p,disabledGroup:f,onCheck:m,onCheckDisable:g,scrollBottom:v,onSearch:y}=e,[b,w]=r.useState(a||[]),C=((e,t)=>{let n=[];return e&&e.length>0&&e.forEach(e=>{const{children:t}=e;t&&t.length>0&&t.forEach(e=>{n.filter(t=>t.id===e.id).length<=0&&n.push(e)})}),t&&t.length>0&&t.forEach(e=>{n.filter(t=>t.id===e.id).length<=0&&n.push(e)}),n})(t,n),_=C.filter(e=>b.includes(e.id)),x=h&&t&&t.filter(e=>b.includes(e.id))||[],S=_&&_.map(e=>({userID:Number(e.id),name:e.name,email:e.email,disabled:e.disabled}));h&&x.forEach(e=>{S.push({userID:Number(e.id),name:e.name,email:"",disabled:null==f?void 0:f.includes(Number(e.id))})}),r.useEffect(()=>{m(S)},[S.length,x.length]);const k=[],P=[];return _&&_.forEach(e=>{P.includes(e.id)||(P.push(e.id),k.push(e))}),h&&x.forEach(e=>{P.includes(e.id)||(P.push(e.id),k.push({id:e.id,imageURL:"https://img02.mockplus.cn/idoc/image/2020-09-23/fbdfd2f1-fd67-11ea-9a10-8fdd726ad5b3.png",name:e.name,email:"",disabled:null==f?void 0:f.includes(Number(e.id))}))}),r.createElement("div",{className:"c-check-select",style:{height:d}},r.createElement("div",{className:"c-check-list"},r.createElement(o.default,{groups:t,singles:n,checked:b,searchPlaceholder:s,canCustomStatus:c,hideGroupCheck:!!l&&l<C.length,allItems:C,itemCount:C.length,enableEmailSearch:!!u,showAddGroup:!!h,addGroupTooltip:p||"",onCheck:w,onCheckDisable:g,onSearch:y,scrollBottom:v})),r.createElement("div",{className:"c-select-list"},r.createElement(i.default,{items:k,checked:b,groups:t,showAddGroup:h,onCheck:w,onCheckDisable:g})))};a.defaultProps={enableEmailSearch:!1,canCustomStatus:!0},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(25),i=n(316),a=n(1584),s=n(87),l=n(70),c=n(1587);n(1589);const u=e=>{const{searchPlaceholder:t,groups:n,singles:u,checked:d,hideGroupCheck:h,canCustomStatus:p,itemCount:f,allItems:m,enableEmailSearch:g,showAddGroup:v,addGroupTooltip:y,autoFocus:b,onCheck:w,onSearch:C,onCheckDisable:_,scrollBottom:x}=e,[S,k]=r.useState("");let P=void 0,T=r.createRef();r.useEffect(()=>{C&&C(S)},[S]),u&&u.length>0&&(P={id:"single-group",name:o.default("checkSelect.unclassified"),expand:!1,children:u});const E=()=>{if(T){const e=T.view.scrollTop,t=T.view.scrollHeight;T.scrollTop(e||t)}},O=d.filter(e=>m.some(t=>t.id===e));return r.createElement("div",{className:"c-check-list-box"},r.createElement("div",{className:"search-box"},r.createElement(i.default,{showClose:!0,autoFocus:b,placeholder:t||"",width:"100%",value:S,onChange:k,onStopSearch:()=>k("")})),S?r.createElement(c.default,{searchKey:S,allItems:m,checkIds:d,enableEmailSearch:g,hideGroupCheck:h,canCustomStatus:p,onCheck:w,scrollBottom:x}):r.createElement("div",{className:"check-container"},!h&&p&&r.createElement("div",{className:"check-all"},r.createElement(l.default,{checked:0!==O.length,indeterminate:O.length!==f,onChange:()=>{var e;if(O.length===f){const t=null===(e=m.filter(e=>e.disabled))||void 0===e?void 0:e.map(e=>e.id);w([...t])}else w(m.map(e=>e.id))}}),r.createElement("span",null,o.default("checkSelect.selectAll"))),r.createElement("div",{className:"check-list-box"},r.createElement(s.default,{height:h||!p?"calc(100% - 44px)":"calc(100% - 74px)",setRef:e=>{T=e},onScroll:()=>{if(T){const e=T.view.scrollTop;!e&&T.scrollTop(1);T.view.getBoundingClientRect().height+e>=T.getScrollHeight()&&x&&x()}}},n&&n.map((e,t)=>{const{id:n,children:o}=e;return o&&0===o.length&&!v?null:r.createElement(a.default,{key:n,canCustomStatus:p,group:e,checkIds:d,hideGroupCheck:h,showAddGroup:v,addGroupTooltip:y,onCheck:w,handleScroll:E,onCheckDisable:_})}),P&&r.createElement(a.default,{group:P,canCustomStatus:p,checkIds:d,hideGroupCheck:h,onCheck:w,handleScroll:E,onCheckDisable:_})))))};u.defaultProps={canCustomStatus:!0},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(25),a=n(70),s=n(26),l=n(468);var c;n(1586),function(e){e.All="all",e.None="none",e.Indeterminate="indeterminate"}(c||(c={}));const u=e=>{const{group:t,hideGroupCheck:n,checkIds:u,showAddGroup:d,addGroupTooltip:h,canCustomStatus:p,onCheck:f,onCheckDisable:m}=e,{name:g,children:v,id:y}=t,[b,w]=r.useState(t.expand),[C,_]=r.useState(!1),x=((e,t)=>{let n=t.some(t=>e.includes(t.id));return t.every(t=>e.includes(t.id))&&n?c.All:n?c.Indeterminate:c.None})(u,v),S=v.filter(e=>e.disabled),k=S&&S.map(e=>e.id)||[];return r.createElement("div",{className:"check-group"},p&&r.createElement("div",{className:"check-group-box"},r.createElement("span",{className:"check-group-expand-wrapper"},r.createElement(s.default,{cls:b?"tag_downarrow":"tag_rightarrow",size:16,onClick:e=>{w(!b)}})),!n&&r.createElement(a.default,{checked:x!==c.None,indeterminate:x===c.Indeterminate,disabled:0===v.length,onChange:e=>{const t=v.map(e=>e.id),n=u.filter(e=>!t.includes(e));switch(x){case c.All:if(k.length){const e=u.filter(e=>!t.includes(e)||k.includes(e));return void f(e)}console.log("old:",n),f(n);break;case c.Indeterminate:case c.None:f(n.concat(t));break;default:throw Error("Check Type Missing!!!")}}}),r.createElement("span",{className:o("group-title-wrapper",{"can-add-group":d})},r.createElement("span",{className:"group-name"},g),v&&r.createElement("span",{className:"group-child-count"},"(",v.length,")")),d&&"single-group"!==y&&"last"!==y&&r.createElement("span",{className:"check-group-add"},r.createElement(s.default,{cls:"layer_plus",size:14,clickArea:{width:16,height:16},tooltip:h,tooltipAlign:"right",onClick:()=>{u.includes(y)||f([...u,y])}}))),r.createElement("div",{className:"check-items"},(b||!p)&&v&&v.map(e=>r.createElement(l.default,{key:e.id,item:e,checked:u.includes(e.id),onCheck:e=>{if(n&&u.length>=1&&-1===u.indexOf(e))return _(!0),void setTimeout(()=>{_(!1)},2e3);u.includes(e)?f(u.filter(t=>t!==e)):f([...u,e])},onCheckDisable:m}))),C&&r.createElement("div",{className:"select-member-maxium"},r.createElement(s.default,{cls:"tag_exclamation",color:"#F8AF1D",size:16}),r.createElement("span",null,i.default("checkSelect.maximumOfPeople"))))};u.defaultProps={canCustomStatus:!0},t.default=u},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(87),i=n(468),a=n(25);n(1588);t.default=e=>{let t=r.createRef();const{searchKey:n,allItems:s,checkIds:l,enableEmailSearch:c,hideGroupCheck:u,canCustomStatus:d,onCheck:h,scrollBottom:p}=e,f=n.trim().toLocaleLowerCase(),m=s.filter(e=>c?e.name&&e.name.toLocaleLowerCase().includes(f)||e.pinyinName&&e.pinyinName.toLocaleLowerCase().includes(f)||e.email&&e.email.toLocaleLowerCase().includes(f):e.name&&e.name.toLocaleLowerCase().includes(f)||e.pinyinName&&e.pinyinName.toLocaleLowerCase().includes(f));return r.createElement("div",{className:"search-wrap"},m.length>0?r.createElement(o.default,{height:u||!d?"calc(100% - 44px)":"calc(100% - 74px)",setRef:e=>{t=e},onScroll:()=>{if(t){const e=t.view.scrollTop;!e&&t.scrollTop(1);t.view.getBoundingClientRect().height+e>=t.getScrollHeight()&&p&&p()}}},m.map(e=>r.createElement(i.default,{item:e,showEmail:!!n&&c,checked:l.includes(e.id),onCheck:e=>{l.includes(e)?h(l.filter(t=>t!==e)):h([...l,e])}}))):r.createElement("div",{className:"no-result"},a.default("checkSelect.hasNotFound")))}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(25),i=n(1591),a=n(87);n(1593);t.default=e=>{const{items:t,checked:n,groups:s,showAddGroup:l,onCheck:c,onCheckDisable:u}=e,d=t.filter(e=>e.disabled),h=!!d.length&&d.map(e=>e.id)||[],p=null==s?void 0:s.map(e=>e.id),f=l?t.filter(e=>!(null==p?void 0:p.includes(e.id))).length:t.length,m=l?t.filter(e=>null==p?void 0:p.includes(e.id)).length:0;return r.createElement("div",{className:"select-box"},r.createElement("div",{className:"select-header"},r.createElement("span",null,o.default("checkSelect.hasSelected",f)),m>0&&r.createElement("span",null,o.default("checkSelect.hasSelectedGroup",m)),r.createElement("span",{className:"remove-all",onClick:()=>c(h)},o.default("checkSelect.clearAll"))),r.createElement("div",{className:"select-list"},r.createElement(a.default,{height:"100%"},t.map(e=>r.createElement(i.default,{key:e.id,item:e,onRemove:()=>{c(n.filter(t=>e.id!==t))},onCheckDisable:u})))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(26);n(1592);t.default=e=>{const{item:t,onRemove:n,onCheckDisable:i}=e,{name:a,imageURL:s}=t;return r.createElement("div",{className:"select-item-box"},r.createElement("div",{className:"select-avatar"},s?r.createElement("img",{src:s}):r.createElement(o.default,{size:20})),r.createElement("span",{className:"name"},a),r.createElement("div",{className:"item-remove"},r.createElement(o.default,{cls:"demo_close",disableHover:!0,disabled:t.disabled,allowDisabledClick:!0,onClick:()=>{t.disabled?i&&i(t.id):n()}})))}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(2);n(1596);class a extends r.Component{constructor(e){super(e),this.selfRef=r.createRef(),this.popup=r.createRef(),this.triggerTimeID=0,this.pagePoint={x:0,y:0},this.doAdjustPopupPosition=()=>{const{popupPosition:e}=this.state;if(this.popup.current&&this.selfRef.current){let{left:t,top:n,right:r,bottom:o,width:i,height:a}=this.popup.current.getBoundingClientRect();const{top:s,right:l}=this.selfRef.current.getBoundingClientRect(),c=6,{innerWidth:u,innerHeight:d}=window;r>u&&(t=l-i),o>d&&(n=s-a-c),t=Math.round(t),n=Math.round(n),t===e.left&&n===e.top||this.setState({popupPosition:{left:t,top:n}})}},this.onWindowMoving=e=>{this.pagePoint.x=e.clientX,this.pagePoint.y=e.clientY},this.onMouseEnter=e=>{this.pagePoint.x=e.clientX,this.pagePoint.y=e.clientY,this.selfRef.current&&(window.addEventListener("mousemove",this.onWindowMoving),this.triggerTimeID=window.setTimeout(()=>{this.triggerTimeID&&window.clearTimeout(this.triggerTimeID),this.doShow()},250))},this.doShow=()=>{this.setState({show:!0,popupPosition:{left:this.pagePoint.x,top:this.pagePoint.y+22}},()=>{if(this.props.autoHide){const{text:e}=this.props;this.triggerTimeID=window.setTimeout(this.doHide,2e3+50*(e||"").length)}})},this.doHide=()=>{this.state.show&&this.setState({show:!1})},this.onMouseLeave=()=>{window.removeEventListener("mousemove",this.onWindowMoving),this.triggerTimeID&&clearTimeout(this.triggerTimeID),this.doHide()},this.renderTips=()=>{const{text:e,ownerIsDialog:t}=this.props,{popupPosition:n}=this.state;return e?o.createPortal(r.createElement("div",{ref:this.popup,style:n,className:i.default("dsm-c-rp-tool-tips",{"in-dialog":t})},e),document.body):null},this.state={show:!1,popupPosition:{left:0,top:0}}}componentWillUnmount(){window.clearTimeout(this.triggerTimeID),window.removeEventListener("mousemove",this.onWindowMoving)}componentDidUpdate(){this.doAdjustPopupPosition()}render(){const{children:e,className:t,style:n}=this.props,{show:o}=this.state;return r.createElement(r.Fragment,null,r.createElement("div",{style:n,className:t,ref:this.selfRef,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},e),o&&this.renderTips())}}a.defaultProps={autoHide:!0},t.default=a},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(26);n(1598);t.default=e=>{const{isZh:t}=e;return r.createElement("div",{className:"lark-refresh-contain"},r.createElement("div",{className:"head-menu"},r.createElement(o.default,{cls:"tag_home",onClick:()=>{window.location.href="/app"},size:18}),r.createElement(o.default,{cls:"tag_refresh_arrow",onClick:()=>{window.top.document.location.reload()}}),t&&r.createElement(o.default,{cls:"helpbar_contact",size:18,onClick:()=>{window.location.href="https://applink.feishu.cn/client/helpdesk/open?id=6798113634239561729&extra=%7B%22channel%22%3A1%2C%22created_at%22%3A1618209113%7D"}})))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(1600),a=n(1603),s=n(459);n(1619);const l=e=>{const{children:t,invitedCount:n,hasGotPackage:l,inviteCode:c,teamName:u,isRoleGuest:d,allInvitation:h,onCancel:p,getInviteLink:f,sendInvitation:m,viewAllInvitation:g,onBackMain:v,getCustomerServiceQR:y,setCustomerServiceQR:b,getReceivedForeverRecord:w}=e,C=()=>o.createPortal(r.createElement("div",{className:"rp-free-dialog-wrapper"},r.createElement(s.default,{contentOverflow:"hidden",width:720,height:600,onCancel:p},r.createElement("div",{className:"rp-free-dialog-content"},r.createElement(i.default,null),r.createElement(a.default,{invitedCount:n,hasGotPackage:l,inviteCode:c,teamName:u,isRoleGuest:d,allInvitation:h,getInviteLink:f,sendInvitation:m,viewAllInvitation:g,onBackMain:v,getCustomerServiceQR:y,setCustomerServiceQR:b,getReceivedForeverRecord:w})))),document.body);return t?r.createElement("div",{className:"rp-free-program-wrapper"},t,C()):C()};l.defaultProps={invitedCount:0,hasGotPackage:!1,isRoleGuest:!1},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(3),i=n(25),a=n(183);n(1602);t.default=()=>r.createElement("div",{className:"rp-free-dialog-header"},r.createElement("div",{className:"title"},r.createElement("img",{src:"https://img02.mockplus.cn/image/2021-03-9/0446c4a0-aa8b-465f-e4bb-536f22342302.png",alt:"",width:"100%",height:"100%"})),r.createElement("div",{className:"desc"},i.default("rpActivity.inviteToGetFree",a.rpFreeProgressInviteCount)),r.createElement("div",{className:"sub-desc"},i.default("rpActivity.deadline",o(a.rpFreeDeadline).format(window.LANG===i.MockPlusLang.EN?"YYYY.MM.DD":"YYYY年MM月DD日"))))},function(e,t,n){var r={"./af":469,"./af.js":469,"./ar":470,"./ar-dz":471,"./ar-dz.js":471,"./ar-kw":472,"./ar-kw.js":472,"./ar-ly":473,"./ar-ly.js":473,"./ar-ma":474,"./ar-ma.js":474,"./ar-sa":475,"./ar-sa.js":475,"./ar-tn":476,"./ar-tn.js":476,"./ar.js":470,"./az":477,"./az.js":477,"./be":478,"./be.js":478,"./bg":479,"./bg.js":479,"./bm":480,"./bm.js":480,"./bn":481,"./bn-bd":482,"./bn-bd.js":482,"./bn.js":481,"./bo":483,"./bo.js":483,"./br":484,"./br.js":484,"./bs":485,"./bs.js":485,"./ca":486,"./ca.js":486,"./cs":487,"./cs.js":487,"./cv":488,"./cv.js":488,"./cy":489,"./cy.js":489,"./da":490,"./da.js":490,"./de":491,"./de-at":492,"./de-at.js":492,"./de-ch":493,"./de-ch.js":493,"./de.js":491,"./dv":494,"./dv.js":494,"./el":495,"./el.js":495,"./en-au":496,"./en-au.js":496,"./en-ca":497,"./en-ca.js":497,"./en-gb":498,"./en-gb.js":498,"./en-ie":499,"./en-ie.js":499,"./en-il":500,"./en-il.js":500,"./en-in":501,"./en-in.js":501,"./en-nz":502,"./en-nz.js":502,"./en-sg":503,"./en-sg.js":503,"./eo":504,"./eo.js":504,"./es":505,"./es-do":506,"./es-do.js":506,"./es-mx":507,"./es-mx.js":507,"./es-us":508,"./es-us.js":508,"./es.js":505,"./et":509,"./et.js":509,"./eu":510,"./eu.js":510,"./fa":511,"./fa.js":511,"./fi":512,"./fi.js":512,"./fil":513,"./fil.js":513,"./fo":514,"./fo.js":514,"./fr":515,"./fr-ca":516,"./fr-ca.js":516,"./fr-ch":517,"./fr-ch.js":517,"./fr.js":515,"./fy":518,"./fy.js":518,"./ga":519,"./ga.js":519,"./gd":520,"./gd.js":520,"./gl":521,"./gl.js":521,"./gom-deva":522,"./gom-deva.js":522,"./gom-latn":523,"./gom-latn.js":523,"./gu":524,"./gu.js":524,"./he":525,"./he.js":525,"./hi":526,"./hi.js":526,"./hr":527,"./hr.js":527,"./hu":528,"./hu.js":528,"./hy-am":529,"./hy-am.js":529,"./id":530,"./id.js":530,"./is":531,"./is.js":531,"./it":532,"./it-ch":533,"./it-ch.js":533,"./it.js":532,"./ja":534,"./ja.js":534,"./jv":535,"./jv.js":535,"./ka":536,"./ka.js":536,"./kk":537,"./kk.js":537,"./km":538,"./km.js":538,"./kn":539,"./kn.js":539,"./ko":540,"./ko.js":540,"./ku":541,"./ku.js":541,"./ky":542,"./ky.js":542,"./lb":543,"./lb.js":543,"./lo":544,"./lo.js":544,"./lt":545,"./lt.js":545,"./lv":546,"./lv.js":546,"./me":547,"./me.js":547,"./mi":548,"./mi.js":548,"./mk":549,"./mk.js":549,"./ml":550,"./ml.js":550,"./mn":551,"./mn.js":551,"./mr":552,"./mr.js":552,"./ms":553,"./ms-my":554,"./ms-my.js":554,"./ms.js":553,"./mt":555,"./mt.js":555,"./my":556,"./my.js":556,"./nb":557,"./nb.js":557,"./ne":558,"./ne.js":558,"./nl":559,"./nl-be":560,"./nl-be.js":560,"./nl.js":559,"./nn":561,"./nn.js":561,"./oc-lnc":562,"./oc-lnc.js":562,"./pa-in":563,"./pa-in.js":563,"./pl":564,"./pl.js":564,"./pt":565,"./pt-br":566,"./pt-br.js":566,"./pt.js":565,"./ro":567,"./ro.js":567,"./ru":568,"./ru.js":568,"./sd":569,"./sd.js":569,"./se":570,"./se.js":570,"./si":571,"./si.js":571,"./sk":572,"./sk.js":572,"./sl":573,"./sl.js":573,"./sq":574,"./sq.js":574,"./sr":575,"./sr-cyrl":576,"./sr-cyrl.js":576,"./sr.js":575,"./ss":577,"./ss.js":577,"./sv":578,"./sv.js":578,"./sw":579,"./sw.js":579,"./ta":580,"./ta.js":580,"./te":581,"./te.js":581,"./tet":582,"./tet.js":582,"./tg":583,"./tg.js":583,"./th":584,"./th.js":584,"./tk":585,"./tk.js":585,"./tl-ph":586,"./tl-ph.js":586,"./tlh":587,"./tlh.js":587,"./tr":588,"./tr.js":588,"./tzl":589,"./tzl.js":589,"./tzm":590,"./tzm-latn":591,"./tzm-latn.js":591,"./tzm.js":590,"./ug-cn":592,"./ug-cn.js":592,"./uk":593,"./uk.js":593,"./ur":594,"./ur.js":594,"./uz":595,"./uz-latn":596,"./uz-latn.js":596,"./uz.js":595,"./vi":597,"./vi.js":597,"./x-pseudo":598,"./x-pseudo.js":598,"./yo":599,"./yo.js":599,"./zh-cn":600,"./zh-cn.js":600,"./zh-hk":601,"./zh-hk.js":601,"./zh-mo":602,"./zh-mo.js":602,"./zh-tw":603,"./zh-tw.js":603};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=1601},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(15),i=n(26),a=n(179),s=n(139),l=n(1604),c=n(1609),u=n(1613),d=n(1615),h=n(317),p=n(183),f=n(25);n(1618);t.default=e=>{const{invitedCount:t,hasGotPackage:n,inviteCode:m,teamName:g,isRoleGuest:v,allInvitation:y,getInviteLink:b,sendInvitation:w,viewAllInvitation:C,onBackMain:_,getCustomerServiceQR:x,setCustomerServiceQR:S,getReceivedForeverRecord:k}=e,[P,T]=r.useState(h.RPFreeProgramPageType.Basic),[E,O]=r.useState(!1),M=()=>{v?O(!0):(b(),T(h.RPFreeProgramPageType.Invitation))},A=()=>{C(),T(h.RPFreeProgramPageType.InvitationRecord)},D=()=>r.createElement("div",{className:"back-wrapper"},r.createElement("div",{className:"back",onClick:I},r.createElement(i.default,{cls:"tag_leftarrow"}),r.createElement("span",null,f.default("rpActivity.goBack")))),I=()=>{t<p.rpFreeProgressInviteCount&&_(),T(h.RPFreeProgramPageType.Basic)};return r.createElement("div",{className:"rp-free-dialog-main"},r.createElement("div",{className:"main-bg"}),r.createElement("div",{className:"main-content"},r.createElement("div",{className:"main"},(()=>{switch(P){case h.RPFreeProgramPageType.Basic:return r.createElement(l.default,{invitedCount:t,viewAllInvitation:A});case h.RPFreeProgramPageType.Invitation:return r.createElement(r.Fragment,null,D(),r.createElement(c.default,{inviteCode:m,teamName:g,sendInvitation:w,getReceivedForeverRecord:k}));case h.RPFreeProgramPageType.InvitationRecord:return r.createElement(r.Fragment,null,D(),r.createElement(u.default,{allInvitation:y}));case h.RPFreeProgramPageType.ReceiveForever:return r.createElement(r.Fragment,null,D(),r.createElement(d.default,{getCustomerServiceQR:x,setCustomerServiceQR:S}));default:return null}})(),r.createElement("div",{className:"button-wrapper"},(()=>{switch(P){case h.RPFreeProgramPageType.Basic:case h.RPFreeProgramPageType.InvitationRecord:return t<p.rpFreeProgressInviteCount?r.createElement(a.default,{width:144,onClick:M},f.default("rpActivity.inviteNow")):n?r.createElement(a.default,{disabled:!0,width:144},f.default("rpActivity.hasGotPackage")):r.createElement(a.default,{width:144,classList:["get-forever-btn"],onClick:()=>T(h.RPFreeProgramPageType.ReceiveForever)},f.default("rpActivity.getForeverPackage"));default:return null}})()),E&&o.createPortal(r.createElement(s.default,{showClose:!0,onCancel:()=>O(!1),onOk:()=>O(!1)},r.createElement("div",{className:"content"},r.createElement("p",null,f.default("rpActivity.guestLimitTip",g)),r.createElement("p",null,f.default("rpActivity.guestSwitchTeam")))),document.body))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1605),i=n(25);n(1608);t.default=e=>{const{invitedCount:t,viewAllInvitation:n}=e;return r.createElement("div",{className:"rp-free-basic-info"},r.createElement("div",{className:"concept-container"},r.createElement("div",{className:"title"},i.default("rpActivity.whatUnlimitedDesign")),r.createElement("div",{className:"desc"},i.default("rpActivity.definitionOfUnlimitedDesign"))),r.createElement(o.default,{invitedCount:t,viewAllInvitation:n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(184),a=n(25),s=n(317),l=n(183);n(1607);t.default=e=>{const{invitedCount:t,viewAllInvitation:n}=e,[c,u]=r.useState(l.rpFreeProgressList);r.useEffect(()=>{if(t>0){const e=JSON.parse(JSON.stringify(l.rpFreeProgressList));e.forEach(e=>{t>=e.count&&(e.active=!0)}),u([...e])}},[t]);const d=(e,t)=>t?r.createElement("div",{className:o("progress-node"),key:e.id},r.createElement("div",{className:"progress-node-last"},r.createElement("img",{src:"https://img02.mockplus.cn/image/2021-02-26/91a54cb1-d41c-8fbb-2d90-33c50a2c91ed.png",width:"100%",alt:""})),h(e)):r.createElement("div",{className:o("progress-node"),key:e.id},r.createElement("div",{className:"progress-node-"+(e.active?"active":"normal")}),h(e)),h=e=>r.createElement("div",{className:o("progress-node-desc",{active:e.active})},r.createElement("p",null,e.text),r.createElement("p",null,e.active?a.default("rpActivity.hasGotIt"):r.createElement(i.default,{str:a.default("rpActivity.inviteSeveral",e.count),targetStr:""+e.count}))),p=t>=l.rpFreeProgressInviteCount?"100%":48+108*t;return r.createElement("div",{className:"invitation-progress-container"},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},a.default("rpActivity.invitationProgress")),r.createElement("div",{className:"desc"},r.createElement(i.default,{str:t>=l.rpFreeProgressInviteCount?a.default("rpActivity.invitationStatusHasGot"):a.default("rpActivity.invitationStatus",12+3*t,l.rpFreeProgressInviteCount-t),targetStr:a.default("rpActivity.viewInvitationHistory"),targetClassName:"link-b",onClickTarget:n}))),r.createElement("div",{className:"progress-container"},r.createElement("div",{className:"progress-bar"},r.createElement("div",{className:"inner",style:{width:p}}),c.map(e=>(e=>{switch(e.id){case s.RPFreeProgramProgressNode.Last:return d(e,!0);default:return d(e)}})(e)))))}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(69),i=n(25),a=n(180),s=n(179),l=n(462),c=n(1610);n(1612);t.default=e=>{const{inviteCode:t,teamName:n,getReceivedForeverRecord:u}=e,[d,h]=r.useState(!1),p=e=>{if(e){const t=i.default("rpActivity.invitation.copyText",e);o.copy(t)&&h(!0)}},f=t?(window.location.origin?window.location.origin:window.location.protocol+window.location.host)+"/team/invitation/rpFree/"+t:"";return r.createElement("div",{className:"rp-free-invitation"},r.createElement("div",{className:"invitation-link-info"},r.createElement("div",{className:"title"},i.default("rpActivity.invitation.linkInvitation")),r.createElement("div",{className:"invitation-link-wrap"},r.createElement("span",{className:"invitation-link"},r.createElement(a.default,{value:f,onChange:()=>{},onSubmit:()=>p(f)})),r.createElement("span",{onClick:()=>p(f),className:"button"},r.createElement(s.default,null,i.default("rpActivity.invitation.copyLink")))),r.createElement("div",{className:"desc"},i.default("rpActivity.invitation.inviteLinkDesc",n))),r.createElement(c.default,{getReceivedForeverRecord:u}),d&&r.createElement(l.default,{message:i.default("rpActivity.invitation.copySuccess"),onClose:()=>h(!1)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(25),i=n(184);n(1611);t.default=e=>{const{getReceivedForeverRecord:t}=e,[n,a]=r.useState(!1),[s,l]=r.useState([]),[c,u]=r.useState(0),d=r.useRef(null);let h=null;r.useEffect(()=>(t(e=>{e.length>0&&(l(e),a(!0))}),()=>{clearInterval(h)}),[]),r.useEffect(()=>{if(n){d.current&&p()}},[n]);const p=()=>{let e=c,t=JSON.parse(JSON.stringify(s));h=setInterval(()=>{e-=34,-e>34*(t.length-3)&&(t=[...t,s[(-e/34+1)%s.length]],l([...t])),u(e)},3e3)};return r.createElement("div",{className:"invitation-received-forever"},s.length>0&&r.createElement("ul",{ref:d,style:{marginTop:c}},s.map((e,t)=>{const n=(e=>{const t=e.slice(0,8);return t.substr(0,1)+new Array(t.length-1).join("*")})(e);return r.createElement("li",{key:t},r.createElement("span",null,n),r.createElement(i.default,{str:o.default("rpActivity.invitation.teamGotForeverFree"),targetStr:o.default("rpActivity.invitation.foreverRPFree")}))})))}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(3),i=n(183),a=n(25);n(1614);t.default=e=>{const{allInvitation:t}=e,n=()=>r.createElement(r.Fragment,null,r.createElement("td",null,a.default("rpActivity.record.num")),r.createElement("td",null,a.default("rpActivity.record.time")),r.createElement("td",null,a.default("rpActivity.record.sender")),r.createElement("td",null,a.default("rpActivity.record.receiver")),r.createElement("td",null,a.default("rpActivity.record.reward"))),s=()=>t.length?t.map((e,t)=>r.createElement("tr",{key:t},r.createElement("td",null,t+1),r.createElement("td",null,o(e.createdAt).format("YYYY-MM-DD")),r.createElement("td",null,e.invitationUsername),r.createElement("td",null,e.username),r.createElement("td",{className:"reward"},t+1>=i.rpFreeProgressInviteCount?a.default("rpActivity.record.unlimitedPackage"):a.default("rpActivity.record.threeMonthReward")))):null;return r.createElement("div",{className:"rp-free-record"},r.createElement("div",{className:"record-table-wrap"},r.createElement("table",{className:"record-table"},r.createElement("colgroup",null,r.createElement("col",{width:40}),r.createElement("col",{width:120}),r.createElement("col",{width:120}),r.createElement("col",{width:120}),r.createElement("col",{width:127})),r.createElement("thead",null,r.createElement("tr",null,n())),r.createElement("tbody",null,s()))),t.length>0?null:r.createElement("div",{className:"empty"},r.createElement("img",{src:"https://img02.mockplus.cn/image/2021-02-26/44c39324-dbf4-20ed-0d30-c5f532bd2792.png",alt:""}),r.createElement("p",{className:"empty-tip"},a.default("rpActivity.record.emptyTip"))))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(604),i=n(183),a=n(25);n(1617);t.default=e=>{const{getCustomerServiceQR:t,setCustomerServiceQR:n}=e,[s,l]=r.useState("");r.useEffect(()=>{t(e=>{if(!e){const e=c();return n(e),void l(e)}l(e)})},[]);const c=()=>i.CustomerServiceQRList[Math.floor(3*Math.random())];return r.createElement("div",{className:"rp-free-receive-forever"},r.createElement("div",{className:"qr-code"},s?r.createElement("img",{src:s,alt:"qr_code",width:"100%"}):r.createElement(o.default,{pastDelay:200})),r.createElement("div",{className:"desc-wrap"},r.createElement("p",{className:"desc"},a.default("rpActivity.receiveForever.scanQR")),r.createElement("p",{className:"desc"},a.default("rpActivity.receiveForever.get"),r.createElement("span",{className:"red"},a.default("rpActivity.receiveForever.unlimitedPackage")))),r.createElement("div",{className:"notes"},r.createElement("span",{className:"note"},"*"),r.createElement("span",null,a.default("rpActivity.receiveForever.rewardWillSoonArrived"))))}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1621),i=n(1630),a=n(69);n(1634);t.default=e=>{const{enableEmailSearch:t,showAddGroup:n,height:s,autoFocus:l,groups:c,singles:u,searchPlaceholder:d,lastKey:h,checkIds:p,checkGroupIds:f,addGroupTooltip:m,disabledGroup:g,maxCount:v,onCheck:y,onCheckGroup:b,onCheckDisable:w}=e,[C,_]=r.useState(p||[]),[x,S]=r.useState(f||[]),k=((e,t)=>{let n=[];return e&&e.length>0&&e.forEach(e=>{const{children:t}=e;t&&t.length>0&&t.forEach(e=>{n.filter(t=>t.id===e.id).length<=0&&n.push(e)})}),t&&t.length>0&&t.forEach(e=>{n.filter(t=>t.id===e.id).length<=0&&n.push(e)}),n})(c,u);r.useEffect(()=>{h&&(a.saveToCahche(h+"-items",C),n&&a.saveToCahche(h+"-groups",x))},[C,x]),r.useEffect(()=>{y&&y(C)},[C]),r.useEffect(()=>{n&&b&&b(x)},[x]);return r.createElement("div",{className:"c-tree-transfer",style:{height:s}},r.createElement(o.default,{enableEmailSearch:t,showAddGroup:n,autoFocus:l,groups:c||[],singles:u||[],searchPlaceholder:d||"",lastKey:h,addGroupTooltip:m||"",checkedItems:C,checkedGroups:x,disabledGroup:g,maxCount:v||0,hideGroupCheck:"number"==typeof v&&v<k.length,allItems:k,onCheckItem:_,onCheckGroup:S,onCheckDisable:w}),r.createElement(i.default,{showAddGroup:!!n,items:(()=>{let e=[];n&&c&&x.length>0&&(e=c.filter(e=>x.includes(e.id)).map(e=>({id:e.id,imageURL:"https://img02.mockplus.cn/idoc/image/2020-09-23/fbdfd2f1-fd67-11ea-9a10-8fdd726ad5b3.png",name:e.name,email:"",disabled:null==g?void 0:g.includes(Number(e.id)),isGroup:!0})));let t=!!C.length&&!!k.length&&k.filter(e=>C.includes(e.id))||[];return[...e,...t]})(),checkedItems:C,checkedGroups:x,onCheckItems:_,onCheckGroups:S,onCheckDisable:w}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(70),i=n(316),a=n(1622),s=n(87),l=n(1625),c=n(319),u=n(69),d=n(25);n(1627);const h=n(1628);t.default=e=>{const{enableEmailSearch:t,showAddGroup:n,autoFocus:p,groups:f,singles:m,searchPlaceholder:g,lastKey:v,addGroupTooltip:y,checkedItems:b,checkedGroups:w,disabledGroup:C,hideGroupCheck:_,maxCount:x,allItems:S,onCheckItem:k,onCheckGroup:P,onCheckDisable:T}=e,[E,O]=r.useState(""),[M,A]=r.useState([]),[D,I]=r.useState([]);r.useEffect(()=>{const{lastItems:e,lastGroups:t}=((e,t,n,r,o)=>{if(!r)return{lastItems:[],lastGroups:[]};const i=u.loadFromCache(r+"-items")||[],a=e.filter(e=>i.includes(e.id));let s=[];if(o){const e=u.loadFromCache(r+"-groups")||[];s=t.filter(t=>e.includes(t.id)).map(e=>({id:e.id,name:e.name,email:"",imageURL:"https://img02.mockplus.cn/idoc/image/2020-09-23/fbdfd2f1-fd67-11ea-9a10-8fdd726ad5b3.png",disabled:null==n?void 0:n.includes(Number(e.id)),isGroup:!0}))}return{lastItems:a,lastGroups:s}})(S,f||[],C,v,n);A(e),I(t)},[]);const L=()=>{const e=N(),t=S.map(e=>e.id),r=D.map(e=>e.id);if(e!==c.CheckType.All)return k(t),void(v&&n&&r.length&&P&&P(r));const o=S.filter(e=>e.disabled).map(e=>e.id);k([...o]);const i=D.filter(e=>e.disabled).map(e=>e.id);P([...i])},N=()=>{const e=n&&v&&!!D.length,t=e?0!==b.length||0!==w.length:0!==b.length,r=e?S.length+D.length!==b.length+w.length:S.length!==b.length;return t?t&&r?c.CheckType.Indeterminate:c.CheckType.All:c.CheckType.None};return r.createElement("div",{className:"c-tree-transfer-check-list"},r.createElement("div",{className:"search-wrapper"},r.createElement(i.default,{showClose:!0,autoFocus:p,value:E,placeholder:g,onChange:O,onStopSearch:()=>O("")})),E?r.createElement(a.default,{items:[...D,...S],checkedItems:b,checkedGroups:w,searchKey:E,enableEmailSearch:t,onCheckItem:k,onCheckGroup:P,onCheckDisable:T}):r.createElement("div",{className:"check-container"},!_&&(()=>{const e=N();return r.createElement("div",{className:"check-all"},r.createElement(o.default,{checked:e!==c.CheckType.None,indeterminate:e===c.CheckType.Indeterminate,text:d.default("checkSelect.selectAll"),onChange:L}))})(),(()=>{const e=!m||m.length<=0?null:{id:"single-group",name:d.default("checkSelect.unclassified"),expand:!1,children:m};return r.createElement("div",{className:"check-list-box"},r.createElement(s.default,{height:_?"calc(100% - 44px)":"calc(100% - 74px)"},v&&(M.length||D.length?r.createElement(h.default,{lastItems:M,lastGroups:D,checkedItems:b,checkedGroups:w,hideGroupCheck:_,maxCount:x,onCheckItem:k,onCheckGroup:P,onCheckDisable:T}):null),f&&f.map(e=>{const{id:t,children:o}=e;return o&&!o.length?null:r.createElement(l.default,{key:t,data:e,showAddGroup:!!n,addGroupTooltip:y,checkedItems:b,checkedGroups:w,hideGroupCheck:_,maxCount:x,onCheckItem:k,onCheckGroup:P,onCheckDisable:T})}),e&&r.createElement(l.default,{key:e.id,data:e,showAddGroup:!!n,checkedItems:b,checkedGroups:w,hideGroupCheck:_,maxCount:x,onCheckItem:k,onCheckGroup:P,onCheckDisable:T})))})()))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(87),i=n(318),a=n(25);n(1624);const s=e=>{const{items:t,checkedItems:n,checkedGroups:s,searchKey:l,enableEmailSearch:c,onCheckItem:u,onCheckGroup:d,onCheckDisable:h}=e,p=(e,t)=>{e.isGroup?(e=>{s.includes(e)?d&&d(s.filter(t=>t!==e)):d&&d([...s,e])})(t):(e=>{n.includes(e)?u&&u(n.filter(t=>t!=e)):u&&u([...n,e])})(t)},f=(()=>{const e=l.trim().toLocaleLowerCase();return t.filter(t=>{const n=t.name&&t.name.toLocaleLowerCase().includes(e)||t.pinyinName&&t.pinyinName.toLocaleLowerCase().includes(e),r=t.email&&t.email.toLocaleLowerCase().includes(e);return c?n||r:n})})();return r.createElement("div",{className:"search-wrap"},f.length>0?r.createElement(o.default,{height:"calc(100% - 74px"},f.map(e=>{return r.createElement(i.default,{data:e,showEmail:!!l&&c,checked:(t=e,t.isGroup?s.includes(t.id):n.includes(t.id)),onCheck:t=>p(e,t),onCheckDisable:h});var t})):r.createElement("div",{className:"no-result"},a.default("checkSelect.hasNotFound")))};s.defaultProps={enableEmailSearch:!0},t.default=s},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(70),s=n(318),l=n(319),c=n(25);n(1626);t.default=e=>{const{data:t,showAddGroup:n,addGroupTooltip:u,checkedItems:d,checkedGroups:h,hideGroupCheck:p,maxCount:f,onCheckItem:m,onCheckGroup:g,onCheckDisable:v}=e,{name:y,children:b,id:w}=t,[C,_]=r.useState(t.expand),[x,S]=r.useState(!1),k=e=>e.isGroup?h.includes(e.id):d.includes(e.id);return r.createElement("div",{className:"check-group"},(()=>{const e=(()=>{let e=b.some(e=>d.includes(e.id));return b.every(e=>d.includes(e.id))&&e?l.CheckType.All:e?l.CheckType.Indeterminate:l.CheckType.None})();return r.createElement("div",{className:"check-group-box"},r.createElement("span",{className:"expand-container"},r.createElement(i.default,{cls:C?"tag_downarrow":"tag_rightarrow",onClick:e=>_(!C)})),!p&&r.createElement(a.default,{checked:e!==l.CheckType.None,indeterminate:e===l.CheckType.Indeterminate,disabled:0===b.length,onChange:()=>(e=>{const t=b.map(e=>e.id),n=d.filter(e=>!t.includes(e));switch(e){case l.CheckType.All:const e=b.filter(e=>e.disabled).map(e=>e.id);if(e.length){const t=e.filter(e=>d.includes(e));return void m([...new Set([...t,...n])])}m(n);break;case l.CheckType.Indeterminate:case l.CheckType.None:m([...n,...t])}})(e)}),r.createElement("span",{className:o("group-title-wrapper",{"can-add-group":n})},r.createElement("span",{className:"group-name"},y),b&&r.createElement("span",{className:"group-child-count"},"(",b.length,")")),n&&"single-group"!==w&&r.createElement("span",{className:"check-group-add"},r.createElement(i.default,{cls:"layer_plus",size:14,clickArea:{width:16,height:16},tooltip:u||"",tooltipAlign:"right",onClick:()=>!h.includes(w)&&g&&g([...h,w])})))})(),C&&!!b.length&&r.createElement("div",{className:"check-items"},b.map(e=>r.createElement(s.default,{key:e.id,data:e,checked:k(e),onCheck:e=>{if(d.includes(e))m(d.filter(t=>t!=e));else{if(p&&d.length+h.length>=f)return S(!0),void setTimeout(()=>{S(!1)},2e3);m([...d,e])}},onCheckDisable:v}))),x&&r.createElement("div",{className:"reach-max-tip"},r.createElement(i.default,{cls:"tag_exclamation",color:"#F8AF1D",size:16}),r.createElement("span",null,c.default("checkSelect.maximumOfPeople"))))}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(26),a=n(70),s=n(318),l=n(319),c=n(25);n(1629);t.default=e=>{const{checkedItems:t,checkedGroups:n,lastItems:u,lastGroups:d,hideGroupCheck:h,maxCount:p,onCheckItem:f,onCheckGroup:m,onCheckDisable:g}=e,[v,y]=r.useState(!1),[b,w]=r.useState(!1),C=u.length+d.length,_=e=>e.isGroup?n.includes(e.id):t.includes(e.id);return r.createElement("div",{className:"check-group"},(()=>{const e=(()=>{let e=null==u?void 0:u.some(e=>t.includes(e.id)),r=null==d?void 0:d.some(e=>n.includes(e.id)),o=e||r,i=null==u?void 0:u.every(e=>t.includes(e.id)),a=null==d?void 0:d.every(e=>n.includes(e.id));return i&&a?l.CheckType.All:o?l.CheckType.Indeterminate:l.CheckType.None})();return r.createElement("div",{className:"check-group-box"},r.createElement("span",{className:"expand-container"},r.createElement(i.default,{cls:v?"tag_downarrow":"tag_rightarrow",onClick:e=>y(!v)})),!h&&r.createElement(a.default,{checked:e!==l.CheckType.None,indeterminate:e===l.CheckType.Indeterminate,disabled:!C,onChange:()=>(e=>{const r=(null==u?void 0:u.map(e=>e.id))||[],o=t.filter(e=>!r.includes(e)),i=(null==d?void 0:d.map(e=>e.id))||[],a=n.filter(e=>!i.includes(e));switch(e){case l.CheckType.All:const e=((null==u?void 0:u.filter(e=>e.disabled))||[]).map(e=>e.id);if(e.length){const n=e.filter(e=>t.includes(e));f([...new Set([...n,...o])])}else f(o);const s=((null==d?void 0:d.filter(e=>e.disabled))||[]).map(e=>e.id);if(s.length){const e=s.filter(e=>n.includes(e));m&&m([...new Set([...e,...a])])}else m&&m(a);break;case l.CheckType.Indeterminate:case l.CheckType.None:f([...o,...r]),m&&m([...a,...i])}})(e)}),r.createElement("span",{className:o("group-title-wrapper")},r.createElement("span",{className:"group-name"},c.default("checkSelect.last")),!!C&&r.createElement("span",{className:"group-child-count"},"(",C,")")))})(),v&&!!C&&r.createElement("div",{className:"check-items"},d.map(e=>r.createElement(s.default,{key:e.id,data:e,checked:_(e),onCheck:e=>{if(n.includes(e))m&&m(n.filter(t=>t!==e));else{if(h&&t.length+n.length>=p)return w(!0),void setTimeout(()=>{w(!1)},2e3);m&&m([...n,e])}},onCheckDisable:g})),u.map(e=>r.createElement(s.default,{key:e.id,data:e,checked:_(e),onCheck:e=>{if(t.includes(e))f(t.filter(t=>t!=e));else{if(h&&t.length+n.length>=p)return w(!0),void setTimeout(()=>{w(!1)},2e3);f([...t,e])}},onCheckDisable:g}))),b&&r.createElement("div",{className:"reach-max-tip"},r.createElement(i.default,{cls:"tag_exclamation",color:"#F8AF1D",size:16}),r.createElement("span",null,c.default("checkSelect.maximumOfPeople"))))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(87),i=n(1631),a=n(25);n(1633);t.default=e=>{const{showAddGroup:t,items:n,checkedItems:s,checkedGroups:l,onCheckItems:c,onCheckGroups:u,onCheckDisable:d}=e;return r.createElement("div",{className:"c-tree-transfer-select-list"},r.createElement("div",{className:"select-header"},r.createElement("span",null,a.default("checkSelect.hasSelected",s.length)),l.length>0&&r.createElement("span",null,a.default("checkSelect.hasSelectedGroup",l.length)),r.createElement("span",{className:"remove-all",onClick:()=>{if(t){const e=n.filter(e=>e.disabled&&e.isGroup).map(e=>e.id);u(e)}const e=n.filter(e=>e.disabled&&!e.isGroup).map(e=>e.id);c(e)}},a.default("checkSelect.clearAll"))),r.createElement("div",{className:"select-list"},r.createElement(o.default,{height:"100%"},n.map(e=>r.createElement(i.default,{key:e.id,item:e,onRemoveItem:e=>c([...s.filter(t=>e!==t)]),onRemoveGroup:e=>u([...l.filter(t=>e!==t)]),onCheckDisable:d})))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(26);n(1632);t.default=e=>{const{item:t,onRemoveItem:n,onRemoveGroup:i,onCheckDisable:a}=e,{id:s,name:l,imageURL:c}=t;return r.createElement("div",{className:"select-item-box"},r.createElement("div",{className:"select-avatar"},c?r.createElement("img",{src:c}):r.createElement(o.default,{size:20})),r.createElement("span",{className:"name"},l),r.createElement("div",{className:"item-remove"},r.createElement(o.default,{disableHover:!0,allowDisabledClick:!0,cls:"demo_close",disabled:t.disabled,onClick:()=>{t.disabled?a&&a(t.id):t.isGroup?i&&i(t.id):n(s)}})))}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(140),i=n(231),a=n(138),s=n(181),l=n(605),c=n(627),u=n(1743),d=n(1752),h=n(631);n(1755);const p=e=>{const{theme:t,sticky:n,loading:p,dataSource:f,columns:m,totalText:g,showActionsAsMenu:v,pageInfo:y,menuOptions:b,rowSelectionType:w,checkedArr:C,selectActionText:_,selectActions:x,searchKey:S,cellStyle:k,selectedRow:P,emptyPicture:T,searchEmptyPicture:E,disableSelectionRows:O,loadingMask:M,onChangePage:A,onChangePageSize:D,onClick:I,onSelectMenu:L,onCheckRow:N,onCheckAction:j,onFormat:R,onSort:z,onSelectRow:F,computeDynamicMenu:B}=e,[H,V]=r.useState(!1),[Y,W]=r.useState(),[U,K]=r.useState(),[G,q]=r.useState(C||[]),[$,X]=r.useState(""),[J,Z]=r.useState(null),Q=r.useRef(null),ee=r.useRef(null),[te,ne]=r.useState(),[re,oe]=r.useState(!1);let ie=null;r.useEffect(()=>{if(C){(C.some(e=>!G.includes(e))||G.some(e=>!C.includes(e)))&&q(C||[])}},[C]),r.useEffect(()=>{N&&N(G)},[G]),r.useEffect(()=>{q([])},[S]),r.useEffect(()=>{void 0!==typeof P&&F&&F(U)},[U]),r.useEffect(()=>{(null==b?void 0:b.length)&&(te&&ie&&window.clearTimeout(ie),te&&W(ce(te,re)))},[b]);const ae=e=>{I&&I(e)},se=(e,t,n)=>{(null==b?void 0:b.length)&&(B&&!B(e)||(ne(t),oe(!!n),ie=window.setTimeout(()=>{W(ce(t,n))},2),setTimeout(()=>{K(e),setTimeout(()=>{V(!0)},2)},2)))},le=e=>{q(e)},ce=(e,t)=>{let n=0,r=0;if(!b)return{x:0,y:0};if(ee.current){const e=ee.current.getBoundingClientRect();n=e.width,r=e.height}else{Y&&W(void 0);const e=b.map(e=>e.text.length),t=Math.max(...e);n=t>i.MenuOptionDefaultLength?t*i.MenuOptionTextSize+i.MenuPaddingLR:i.MenuDefaultWidth,r=i.MenuPaddingTB+i.MenuOptionLineHeight*b.length}const o=Q.current.getBoundingClientRect();let{x:a,y:s}=e;const l=window.innerWidth,c=window.innerHeight;return l-a<n?a=a-o.left-n:a-=o.left,c-s<r?s=s-o.top-r-(t?i.moreIconHeight:0):s-=o.top,s=Math.round(s),a=Math.round(a),{left:a,top:s}},ue=()=>{K(null),V(!1)},de=(e,t)=>{X(e);const n=null==t?void 0:t.left,r=null==t?void 0:t.top;if(void 0===n||void 0===r)Z(t);else{const e=Q.current.getBoundingClientRect();Z(Object.assign(Object.assign({},t),{left:n-e.left,top:r-e.top}))}},he=Math.max(...m.map(e=>{var t;return(null===(t=e.parentText)||void 0===t?void 0:t.length)||0}))+1;return r.createElement("div",{className:"c-table"},r.createElement("div",{className:"c-table-content"},n?r.createElement(d.default,{theme:t||"blue",columns:m,tableRef:Q,dataSource:f,cellStyle:k,rowSelectionType:w,activeMenuRow:U,checked:G,searchKey:S||"",disableSelectionRows:O||[],onSort:z,onFormat:R,handleClickRow:ae,handleContextRow:se,handleCheckedRow:le,setTip:de}):r.createElement(u.default,{theme:t||"blue",columns:m,tableRef:Q,dataSource:f,cellStyle:k,rowSelectionType:w,activeMenuRow:U,checked:G,searchKey:S||"",disableSelectionRows:O||[],onSort:z,onFormat:R,handleClickRow:ae,handleContextRow:se,handleCheckedRow:le,setTip:de}),p&&r.createElement("div",{className:"loading-box",style:{top:he*i.TableRowLineHeight}},r.createElement(h.default,{position:"absolute",showMask:M})),!p&&!f.length&&r.createElement(c.default,{emptyPicture:T,searchEmptyPicture:E,top:he*i.TableRowLineHeight,searchMode:!!S}),H&&b&&b.length>0&&r.createElement("div",{className:"c-table-content-row-menu",ref:ee,style:Y},r.createElement(s.default,{closeOnContext:!0,width:"auto",options:b,onClose:ue,onSelect:e=>{ue(),L&&L(e,U)}}))),y&&y.count>0&&r.createElement("div",{className:"c-table-pager"},r.createElement(l.default,{showActionsAsMenu:v,totalText:g,pageInfo:y,showTotalSelect:w!==o.TableSelection.None,checked:G,currentPageCount:f.length,selectActionText:_,selectActions:x,checkAllCount:(null==O?void 0:O.length)?f.filter(e=>!O.includes(e.id)).length:f.length,theme:t||"blue",onChange:e=>{G.length>0&&q([]),A&&A(e)},onChangeSize:e=>{G.length>0&&q([]),D&&D(e)},onCheckAll:e=>{if(null==O?void 0:O.length){const t=f.filter(e=>!O.includes(e.id));q(e?t.map(e=>e.id):[])}else q(e?f.map(e=>e.id):[])},onCheckAction:e=>{j&&j(e)}})),$&&r.createElement("div",{className:"c-table-tooltip",style:J||void 0},r.createElement(a.default,{theme:"small",align:"left",text:$,tipStyle:{whiteSpace:"normal",height:"fit-content",wordBreak:"break-all",position:"relative",top:0,bottom:"unset",display:"block"}})))};p.defaultProps={theme:"blue",sticky:!1,rowSelectionType:o.TableSelection.None,disableSelectionRows:[],selectActionText:"",selectActions:[],searchKey:"",cellStyle:{},emptyPicture:"",searchEmptyPicture:"",showActionsAsMenu:!1,loading:!1,loadingMask:!0},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableSelection=t.IColumnType=t.ITableColumnAlign=void 0,function(e){e.Left="left",e.Center="center",e.Right="right"}(t.ITableColumnAlign||(t.ITableColumnAlign={})),function(e){e.Operate="operate",e.Order="order",e.Time="time",e.Role="role"}(t.IColumnType||(t.IColumnType={})),function(e){e.None="none",e.Checkbox="checkbox"}(t.TableSelection||(t.TableSelection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moreIconHeight=t.MenuPaddingLR=t.MenuDefaultWidth=t.MenuOptionTextSize=t.MenuOptionDefaultLength=t.MenuOptionLineHeight=t.MenuPaddingTB=t.TableSortOrder=t.TableRowLineHeight=void 0,t.TableRowLineHeight=36,function(e){e.ASC="ASC",e.DESC="DESC",e.NONE="NONE"}(t.TableSortOrder||(t.TableSortOrder={})),t.MenuPaddingTB=20,t.MenuOptionLineHeight=30,t.MenuOptionDefaultLength=4,t.MenuOptionTextSize=13,t.MenuDefaultWidth=120,t.MenuPaddingLR=40,t.moreIconHeight=30},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeFormatType=void 0,function(e){e.format_YYYY_MM_DD="YYYY-MM-DD",e.format_YYYY_MM_DD_HH_mm="YYYY-MM-DD HH:mm",e.format_M="M",e.format_MMM="MMM",e.format_YYYY_MM="YYYY-MM",e.format_HH_MM="HH:mm"}(t.TimeFormatType||(t.TimeFormatType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.styleFont=t.styleSpace=t.styleColor=void 0,t.styleColor={colorGreyBlueBorder:"#dcddde",colorGrey:"#969798",colorDeepBlue:"#009dff",colorIconGrey:"#686b6c",colorText:"#2e2f30",colorBackgroundGrey:"#f9f9f9",colorSysRed:"#fe4066",colorBlackModeYellow:"#f8af1d"},t.styleSpace={space4:4,space6:6,space8:8,space10:10,space12:12,space16:16,space20:20,space22:22,space24:24,space30:30,space32:32,space40:40,space46:46,space48:48,space50:50,space60:60,space70:70,space72:72,space80:80,space250:250,space256:256,space640:640},t.styleFont={font18:18,font12:12,font14:14}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RoleList=t.Role=void 0;const r=n(25);var o;!function(e){e.ROLE_SUPER_ADMIN="super-admin",e.ROLE_ADMIN="admin",e.ROLE_MEMBER="member",e.ROLE_GUEST="guest",e.ROLE_VISITOR="visitor"}(o=t.Role||(t.Role={})),t.RoleList=[{key:o.ROLE_SUPER_ADMIN,value:r.default("role.superAdministrator")},{key:o.ROLE_ADMIN,value:r.default("role.administrator")},{key:o.ROLE_MEMBER,value:r.default("role.member")},{key:o.ROLE_GUEST,value:r.default("role.guest")}]},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function d(){}function h(){}function p(){}var f={};f[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==t&&n.call(g,o)&&(f=g);var v=p.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=v.constructor=p,p.constructor=h,h.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(232),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(1649);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(1651)("length");e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),u="(?:"+[i+r+"?",r,a,s,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+u+c,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){var r=n(1654),o=n(320),i=n(1655);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),u="(?:"+[i+r+"?",r,a,s,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+u+c,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(611);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(1658),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(98);e.exports=function(){return r.Date.now()}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},function(e,t,n){var r=n(1662),o=n(186);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(1663),o=n(617),i=n(1695),a=n(1699),s=n(1721),l=n(233),c=n(618),u=n(619),d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,f,m){var g=l(e),v=l(t),y=g?"[object Array]":s(e),b=v?"[object Array]":s(t),w=(y="[object Arguments]"==y?d:y)==d,C=(b="[object Arguments]"==b?d:b)==d,_=y==b;if(_&&c(e)){if(!c(t))return!1;g=!0,w=!1}if(_&&!w)return m||(m=new r),g||u(e)?o(e,t,n,p,f,m):i(e,t,y,n,p,f,m);if(!(1&n)){var x=w&&h.call(e,"__wrapped__"),S=C&&h.call(t,"__wrapped__");if(x||S){var k=x?e.value():e,P=S?t.value():t;return m||(m=new r),f(k,P,n,p,m)}}return!!_&&(m||(m=new r),a(e,t,n,p,f,m))}},function(e,t,n){var r=n(235),o=n(1669),i=n(1670),a=n(1671),s=n(1672),l=n(1673);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(236),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(236);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(236);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(236);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(235);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(235),o=n(322),i=n(616);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(614),o=n(1675),i=n(234),a=n(615),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?h:s).test(a(e))}},function(e,t,n){var r,o=n(1676),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(98)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(1679),o=n(235),i=n(322);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(1680),o=n(1681),i=n(1682),a=n(1683),s=n(1684);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(237);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(237),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(237),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(237);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(238);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(238);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(238);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(238);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(616),o=n(1691),i=n(1692);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(232),o=n(1696),i=n(613),a=n(617),s=n(1697),l=n(1698),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&r;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;r|=2,h.set(e,t);var g=a(p(e),p(t),r,c,d,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,n){var r=n(98).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(1700),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:o.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[h=c[d]],y=t[h];if(i)var b=l?i(y,v,h,t,e,s):i(v,y,h,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var w=e.constructor,C=t.constructor;w==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(1701),o=n(1703),i=n(1706);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(1702),o=n(233);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(1704),o=n(1705),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(1707),o=n(1716),i=n(1720);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(1708),o=n(1709),i=n(233),a=n(618),s=n(1712),l=n(619),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),p=n||u||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(1710),o=n(186),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){var r=n(185),o=n(186);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(185),o=n(620),i=n(186),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(608),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(202)(e))},function(e,t,n){var r=n(1717),o=n(1718),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(1719)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(614),o=n(620);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(1722),o=n(322),i=n(1723),a=n(1724),s=n(1725),l=n(185),c=n(615),u=c(r),d=c(o),h=c(i),p=c(a),f=c(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(162)(n(98),"DataView");e.exports=r},function(e,t,n){var r=n(162)(n(98),"Promise");e.exports=r},function(e,t,n){var r=n(162)(n(98),"Set");e.exports=r},function(e,t,n){var r=n(162)(n(98),"WeakMap");e.exports=r},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1728)),i=r(n(621)),a=r(n(622)),s=r(n(1730)),l="${label}不是一个有效的${type}",c={locale:"zh-cn",Pagination:o.default,DatePicker:i.default,TimePicker:a.default,Calendar:s.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};t.default=r},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(621)).default;t.default=o},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1732)),i=r(n(623)),a=r(n(624)),s=r(n(1734)),l="${label}不是一個有效的${type}",c={locale:"zh-tw",Pagination:o.default,DatePicker:i.default,TimePicker:a.default,Calendar:s.default,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},PageHeader:{back:"返回"},Form:{defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"}};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"};t.default=r},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(623)).default;t.default=o},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1736)).default;t.default=o},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1737)),i=r(n(625)),a=r(n(626)),s=r(n(1739)),l="${label} is not a valid ${type}",c={locale:"en",Pagination:o.default,DatePicker:i.default,TimePicker:a.default,Calendar:s.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};t.default=r},function(e,t,n){"use strict";var r=n(99);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(625)).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUS=t.isTW=t.isZh=void 0;const r=n(69);let o=window.LANG||"zh-cn";if(!r.isFigma()){o=(null===localStorage||void 0===localStorage?void 0:localStorage.getItem("mockplus_language"))||o}t.isZh=["zh-cn","zh-tw"].includes(o),t.isTW="zh-tw"===o,t.isUS="en-us"===o},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(140),i=n(628),a=n(629),s=n(630);n(1751);t.default=e=>{const{theme:t,tableRef:n,columns:l,dataSource:c,cellStyle:u,rowSelectionType:d,activeMenuRow:h,checked:p,searchKey:f,disableSelectionRows:m,onSort:g,onFormat:v,handleClickRow:y,handleContextRow:b,handleCheckedRow:w,setTip:C}=e;return r.createElement("div",{className:"c-table-normal"},r.createElement("table",{ref:n},r.createElement(i.default,{columns:l,rowSelectionType:d||o.TableSelection.None}),r.createElement(a.default,{columns:l,rowSelectionType:d||o.TableSelection.None,cellStyle:u||{},onSort:g}),r.createElement(s.default,{theme:t,dataSource:c,columns:l,rowSelectionType:d||o.TableSelection.None,activeMenuRow:h,checked:p,cellStyle:u,searchKey:f,disableSelectionRows:m,onFormat:v,handleClickRow:y,handleContextRow:b,setChecked:w,setTip:C})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(231),i=n(26);n(1745);t.default=e=>{const{order:t,sortIcon:n}=e;if(n)return r.createElement("div",{className:"c-table-stepper"},t===o.TableSortOrder.ASC&&n.Asc&&r.createElement(i.default,{cls:n.Asc}),t===o.TableSortOrder.DESC&&n.Desc&&r.createElement(i.default,{cls:n.Desc}),t===o.TableSortOrder.NONE&&n.None&&r.createElement(i.default,{cls:n.None}));const a=(e,t,n,o)=>{const i="0 0 "+e.width.toString()+" "+e.height.toString();return r.createElement("svg",{width:e.width,height:e.height,style:o,viewBox:i},r.createElement("path",{d:t,strokeWidth:"0",stroke:n,fill:n}))};return r.createElement("div",{className:"c-table-stepper"},a({width:6,height:4},"M0 4 L3 0 L6 4 Z",t===o.TableSortOrder.ASC?o.styleColor.colorDeepBlue:o.styleColor.colorGrey,{marginBottom:2}),a({width:6,height:4},"M0 0 L3 4 L6 0 Z",t===o.TableSortOrder.DESC?o.styleColor.colorDeepBlue:o.styleColor.colorGrey))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(140),a=n(70);n(1747);const s=n(1748);t.default=e=>{const{theme:t,columns:n,data:l,order:c,activeMenu:u,rowSelectionType:d,checked:h,cellStyle:p,searchKey:f,disableSelectionRows:m,onClick:g,onContext:v,setChecked:y,onFormat:b,setTip:w}=e,[C,_]=r.useState(!1),x=r.useRef(null),S=e=>{if(e)y([...h,l.id]);else{const e=h.filter(e=>e!==l.id);y([...e])}};return r.createElement("tr",{ref:x,className:o("c-table-tr",{hover:C||u}),onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),onMouseOver:()=>!C&&_(!0),onClick:()=>g(l),onContextMenu:e=>(e=>{e.preventDefault(),v(l,{x:e.pageX,y:e.pageY})})(e)},(e=>{switch(d){case i.TableSelection.Checkbox:{const t=h.includes(l.id);return r.createElement("td",{key:"checkbox",className:"selection c-table-column-"+i.ITableColumnAlign.Center,onClick:e=>e.stopPropagation()},!m.includes(e.id)&&(C||u||h.length>0)&&r.createElement(a.default,{width:13,checked:t,onChange:S}))}case i.TableSelection.None:return null}})(l),n.map((e,n)=>r.createElement(s.default,{col:e,data:l,cellStyle:p,isFirstColumn:0===n&&d!==i.TableSelection.None,order:c,isHoverOnRow:C,activeMenu:u,key:e.id,searchKey:f,theme:t,onFormat:b,onContext:v,setTip:w})))}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(3),a=n(140),s=n(231),l=n(26),c=n(184);n(1749);t.default=e=>{var t,n;const{col:u,data:d,cellStyle:h,isFirstColumn:p,order:f,isHoverOnRow:m,activeMenu:g,searchKey:v,theme:y,onFormat:b,onContext:w,setTip:C}=e,_=r.useRef(null),x=r.useRef(null),S=e=>{e.stopPropagation(),e.preventDefault()},k=e=>{var t,n;{const r=e.currentTarget.getBoundingClientRect(),o=null===(t=x.current)||void 0===t?void 0:t.getBoundingClientRect(),i=null===(n=_.current)||void 0===n?void 0:n.getBoundingClientRect();o&&i&&i.width>o.width&&C(x.current.innerText,{display:"block",left:o.x,top:r.y+r.height,maxWidth:window.innerWidth-r.x-s.styleSpace.space48})}},P=()=>{C("",{display:"none"})};if(b&&b(d,u))return r.createElement("td",{className:o("c-table-column c-table-column-"+(u.align||a.ITableColumnAlign.Left)),style:Object.assign(Object.assign({},h),u.style),onMouseEnter:k,onMouseLeave:P},u.showOnHover?m&&b(d,u,{contentRef:x,compareRef:_}):b(d,u,{contentRef:x,compareRef:_}));switch(u.type){case a.IColumnType.Role:return r.createElement("td",{className:o("c-table-column c-table-column-"+(u.align||a.ITableColumnAlign.Left),{"c-table-column-first":p}),style:h,onMouseEnter:k,onMouseLeave:P},r.createElement("span",{className:"c-table-td-value",ref:x},(null===(t=s.RoleList.find(e=>e.key===d[u.dataIndex]))||void 0===t?void 0:t.value)||d[u.dataIndex]),r.createElement("span",{className:"compare",ref:_},(null===(n=s.RoleList.find(e=>e.key===d[u.dataIndex]))||void 0===n?void 0:n.value)||d[u.dataIndex]));case a.IColumnType.Order:return r.createElement("td",{className:o("c-table-column c-table-column-"+(u.align||a.ITableColumnAlign.Left),{"c-table-column-first":p}),style:h},f);case a.IColumnType.Time:return r.createElement("td",{className:"c-table-column c-table-column-"+(u.align||a.ITableColumnAlign.Left),style:h,onMouseEnter:k,onMouseLeave:P},r.createElement("span",{className:"c-table-td-value",ref:x},d[u.dataIndex]?i(d[u.dataIndex]).format(u.timeFormat||s.TimeFormatType.format_YYYY_MM_DD):""),r.createElement("span",{className:"compare",ref:_},d[u.dataIndex]?i(d[u.dataIndex]).format(u.timeFormat||s.TimeFormatType.format_YYYY_MM_DD):""));case a.IColumnType.Operate:return r.createElement("td",{className:"c-table-column operate c-table-column-"+(u.align||a.ITableColumnAlign.Left),style:h},r.createElement(l.default,{hidden:!m&&!g,cls:(u.icon||"ps_more")+" more-btn",color:s.styleColor.colorIconGrey,clickArea:{width:s.styleSpace.space24,height:s.styleSpace.space24},onClick:e=>{e.stopPropagation();const t=e.currentTarget.getBoundingClientRect();w(d,{x:t.left+t.width,y:t.top+t.height},!0)},onContextMenu:S}));default:return r.createElement("td",{className:o("c-table-column c-table-column-"+(u.align||a.ITableColumnAlign.Left),{"c-table-column-first":p}),style:h,onMouseEnter:k,onMouseLeave:P},r.createElement("span",{className:"c-table-td-value",ref:x},u.searchHighlight&&v?r.createElement(c.default,{theme:"red"===y?void 0:y,str:""+(d[u.dataIndex]||""),targetStr:v}):d[u.dataIndex]),r.createElement("span",{className:"compare",ref:_},d[u.dataIndex]))}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(140),i=n(628),a=n(629),s=n(630);n(1753);t.default=e=>{const{tableRef:t,columns:n,dataSource:l,cellStyle:c,rowSelectionType:u,activeMenuRow:d,checked:h,searchKey:p,theme:f,disableSelectionRows:m,onSort:g,onFormat:v,handleClickRow:y,handleContextRow:b,handleCheckedRow:w,setTip:C}=e;return r.createElement("div",{className:"c-table-sticky"},r.createElement("table",{ref:t},r.createElement(i.default,{columns:n,rowSelectionType:u||o.TableSelection.None}),r.createElement(a.default,{columns:n,rowSelectionType:u||o.TableSelection.None,cellStyle:c||{},onSort:g})),r.createElement("table",{ref:t},r.createElement(i.default,{columns:n,rowSelectionType:u||o.TableSelection.None}),r.createElement(s.default,{theme:f,dataSource:l,columns:n,rowSelectionType:u||o.TableSelection.None,activeMenuRow:d,checked:h,cellStyle:c,searchKey:p,disableSelectionRows:m,onFormat:v,handleClickRow:y,handleContextRow:b,setChecked:w,setTip:C})))}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports=n.p+"assets/255e60e521ea9758e5bd7bdea9ba9a12.png"},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRunInEmbededMode=void 0;const r=n(0),o=n(15),i=n(187),a=n(7),s=n(2),l=n(57),c=n(8),u=n(68),d=n(22),h=n(93),p=n(289),f=n(42),m=n(172),g=n(53),v=n(76),y=n(92),b=n(4),w=n(174),C=n(1759);n(1761);const _=[{id:10,text:"10%",value:10},{id:50,text:"50%",value:50,shortCut:v.getShortCutKey("4",{ctrlKey:!0})},{id:100,text:"100%",value:100,shortCut:v.getShortCutKey("1",{ctrlKey:!0})},{id:200,text:"200%",value:200,shortCut:v.getShortCutKey("2",{ctrlKey:!0})},{id:300,text:"300%",value:300,shortCut:v.getShortCutKey("3",{ctrlKey:!0})},{id:400,text:"400%",value:400}];t.isRunInEmbededMode=function(){try{return-1!==window.location.href.indexOf("embeded=1")}catch(e){return!1}};class x extends r.Component{constructor(e){super(e),this.setNavbarOpt=(e,t)=>{const{appID:n}=this.props,{collapsed:r,barPosition:o}=this.state,i=f.default.previewNavbarOpt,a=i.find(e=>e.id===n);if(a)a[e]=t;else{const a=Object.assign({id:n,collapsed:r,position:o},{[e]:t});i.push(a)}f.default.previewNavbarOpt=i},this.varyWithinRange=(e,t,n)=>Math.min(t,Math.max(n,e)),this.handleMouseDown=e=>{const t=this.navBar.current,{clientWidth:n,clientHeight:r}=document.body,{clientWidth:o,clientHeight:i}=t,a=u.getMousePosition(t,e),{x:s,y:l}=a,c=h.minWindowTop;u.dragDelegate(e=>{this.state.dragging||this.setState({dragging:!0});const{clientX:t,clientY:a}=e;let u,d;u=this.varyWithinRange(a-l,r-i,c),d=this.varyWithinRange(n-(t-s)-o,n-o,0);const h={top:u,right:d};this.setState({barPosition:h});const p=0===d;p!==this.state.collapsed&&this.setState({collapsed:p})},()=>{this.setState({dragging:!1,eventNone:!0},()=>{setTimeout(()=>{this.setState({eventNone:!1})},500)}),this.barPosition=this.state.barPosition,this.isCollapsed=this.state.collapsed})},this.handleGoBackward=()=>{this.props.page&&this.props.page.hasBack&&this.props.page.goBackward()},this.handleGoForward=()=>{this.props.page&&this.props.page.hasNext&&this.props.page.goForward()},this.handleGoHome=()=>{const{page:e,app:t,role:n}=this.props;if(!e||!t)return;const r=y.getFirstPageNodeOfTree(t.children,e=>g.couldPagePreview(e,n));r&&e.goHome(r._id,r.artboardID)},this.handleZoomChange=(e,t)=>{this.props.onChangeScale(Math.round(e),!t)},this.handleShareDialogPopup=()=>{this.setState({showShareDialog:!0})},this.handleShareDialogClose=()=>{this.setState({showShareDialog:!1})},this.handleCopyPreviewURL=(e,t,n)=>{const{onMsgPopup:r}=this.props;let o="";if(p.larkPC){const r=encodeURIComponent(`pages/common/index?otherUrl=${e}&isPreview=true`),i=b.default("lark.larkAppID");o=`${b.default("lark.previewPrompt")}\r\n ${b.default("lark.openInLark")}${p.larkAppLink}/client/mini_program/open?appId=${i}&mode=window&path=${r}\r\n ${b.default("lark.openInBrowser")}${e}`,n&&(o+="\r"+b.default("preview.pwdText",t))}else{const r=n?b.default("preview.linkText",e):e,i=b.default("preview.pwdText",t);o=r+(n?i:"")}m.copy(o)&&r(b.default("tips.copySuccess"),1e3)},this.getRunUrl=()=>{const{appID:e,pageID:t,page:n,linkID:r,nextLinkID:o}=this.props,i=(null==n?void 0:n.doc.pageID)||t;let a="";return a=o?o+"/":r?r+"/":"",`${window.location.origin}/run/rp/${e}/${a}${i}`},this.handleExit=()=>{const{realAppID:e}=this.props;if(l.isMockRPD)return window.open(`/app/${e}/rp`),void window.close();window.location.href=`/app/${e}/rp`},this.handleFullscreen=()=>{w.desktopServer.enterFullScreen()},this.handleExitScreen=()=>{w.desktopServer.leaveFullScreen()},this.renderBarContent=()=>{const{page:e,scale:t,userInfo:n,isFullscreen:o}=this.props;return r.createElement(r.Fragment,null,r.createElement("div",{className:"dsm-tooltip"},r.createElement(d.Icon,{cls:"demo_home",onClick:this.handleGoHome,size:16,tips:b.default("preview.home")})),e&&!l.isShareFrame&&r.createElement(r.Fragment,null,r.createElement("div",{className:"dsm-tooltip"},r.createElement(d.Icon,{cls:"demo_leftarrow",onClick:this.handleGoBackward,disabled:!e.hasBack,size:16,tips:b.default("preview.backward")})),r.createElement("div",{className:"dsm-tooltip"},r.createElement(d.Icon,{cls:"demo_rightarrow",onClick:this.handleGoForward,disabled:!e.hasNext,size:16,tips:b.default("preview.forward")}))),r.createElement("div",{className:"zoomer-container"},r.createElement("div",{className:"dsm-zoomer"},r.createElement(d.Zoomer,{theme:"light",value:t,canInput:!1,onZoom:this.handleZoomChange,presetMenuItem:_}))),(null==n?void 0:n.id)&&!1,p.larkPC&&!1,l.isShareFrame&&r.createElement("div",{className:"dsm-tooltip"},o?r.createElement(d.Icon,{cls:"icon_quit_scale_ys",tips:b.default("general.leaveFullScreen"),onClick:this.handleExitScreen}):r.createElement(d.Icon,{cls:"icon_scale_ys",tips:b.default("general.enterFullScreen"),onClick:this.handleFullscreen})))},this.renderCollapsedButton=()=>r.createElement(r.Fragment,null,r.createElement("div",{className:"dsm-tooltip"},r.createElement(d.Icon,{cls:"demo_leftarrow",size:18})),r.createElement("div",{className:"hiden-zoomer"},r.createElement(d.Zoomer,{theme:"light",value:this.props.scale,canInput:!1,onZoom:this.handleZoomChange,presetMenuItem:_}))),this.handleMouseEnter=()=>{this.state.eventNone||this.state.mouseOver||this.setState({mouseOver:!0})},this.handleMouseLeave=()=>{this.state.mouseOver&&this.setState({mouseOver:!1})},this.renderHightLightLine=()=>this.state.dragging?o.createPortal(r.createElement("div",{className:"navbar-hight-light-line"}),document.body):null,this.state={barPosition:{top:l.isMockRPD?50:10,right:310},collapsed:this.isCollapsed,showShareDialog:!1,mouseOver:!1,dragging:!1,eventNone:!1},this.navBar=r.createRef()}componentDidMount(){const e=this.barPosition;e?this.setState({barPosition:e}):this.barPosition=this.state.barPosition}get barPosition(){const e=f.default.previewNavbarOpt.find(e=>e.id===this.props.appID);return null==e?void 0:e.position}set barPosition(e){e&&this.setNavbarOpt("position",e)}get isCollapsed(){const e=f.default.previewNavbarOpt.find(e=>e.id===this.props.appID);return!!(null==e?void 0:e.collapsed)}set isCollapsed(e){this.setNavbarOpt("collapsed",e)}get navbarStyle(){return{marginTop:p.larkPC&&!g.isMobileDevice()?37:0}}get navbarOutsideStyle(){const{barPosition:e}=this.state,t=c.depthClone(e);return["top","bottom"].forEach(e=>{a.isNumber(t[e])&&(t[e]-=10)}),Object.assign({},t)}render(){const{app:e,option:t,showControllerPanel:n,appID:o,hidden:i,onMsgPopup:a}=this.props,{showShareDialog:l,collapsed:c,mouseOver:u,dragging:d,barPosition:h}=this.state;let p=window;for(;p.parent!==p;)p=p.parent;const f=this.navbarStyle,m=(c&&!u||c&&d)&&0===h.right;return r.createElement(r.Fragment,null,r.createElement("div",{className:s.default("preview-navigation-bar-outside",{hidden:i}),style:this.navbarOutsideStyle,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r.createElement("div",{ref:this.navBar,className:"preview-navigation-bar",style:f},m?this.renderCollapsedButton():this.renderBarContent())),l&&r.createElement(C.default,{app:e,appID:o,runUrl:this.getRunUrl(),closeShareRun:this.handleShareDialogClose,onCopyPreviewURL:this.handleCopyPreviewURL,option:t,showControllerPanel:n,onMsgPopup:a}),this.renderHightLightLine())}}t.default=i.connect(e=>{const{share:t}=e;return{linkID:t.linkID,nextLinkID:t.nextLinkID}})(x)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(187),i=n(7),a=n(228),s=n(216),l=n(53),c=n(215),u=n(42),d=n(22),h=n(229),p=n(4),f=n(2);n(1760);class m extends r.Component{constructor(e){super(e),this.state={password:void 0,isEnablePass:!1,isInputError:"",shareOpt:this.currentShareOpt,isShowPassword:!1,linkReseting:!1},this.handleCopy=()=>{const{sharePassword:e,onCopyPreviewURL:t}=this.props;t(this.shareUrl,e,this.isEnablePassChecked)},this.handleReset=()=>{const{app:e,resetLink:t}=this.props;this.setState({linkReseting:!0}),t(e._id)},this.handleShareLinkPassInput=e=>{this.setState({password:e.trim(),isInputError:""})},this.handleSetShareLinkPass=()=>{const{app:e,sharePassword:t,setShareLinkPass:n}=this.props,{password:r}=this.state;let o=new RegExp(/^[\w`~!@#$%^&*()\-+=<>?:"{}|,./;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]{0,8}$/);if(!(r&&o.test(r)&&r.indexOf(" ")<0)){let e=this.getErrorState(r,t);this.setState(e)}else this.setState({isInputError:""}),r===t||i.isUndefined(r)||n(e._id,r)},this.afterShareOptChanged=()=>{const{appID:e}=this.props,{shareOpt:t}=this.state,n=u.default.shareOption,r=n.find(t=>t.appID===e);r?r.option=t:(n.push({appID:e,option:t}),n.length>30&&n.shift()),u.default.shareOption=n},this.handleShareOptChecked={alwaysShowLinkArea:e=>{var t;(null===(t=this.state.shareOpt)||void 0===t?void 0:t.alwaysShowLinkArea)!==e&&this.setState({shareOpt:Object.assign({},this.state.shareOpt,{alwaysShowLinkArea:e})},()=>{this.afterShareOptChanged()})},showLinkAreaWhenHovered:e=>{var t;(null===(t=this.state.shareOpt)||void 0===t?void 0:t.showLinkAreaWhenHovered)!==e&&this.setState({shareOpt:Object.assign({},this.state.shareOpt,{showLinkAreaWhenHovered:e})},()=>{this.afterShareOptChanged()})},autoScreen:e=>{var t;(null===(t=this.state.shareOpt)||void 0===t?void 0:t.autoScreen)!==e&&this.setState({shareOpt:Object.assign({},this.state.shareOpt,{autoScreen:e})},()=>{this.afterShareOptChanged()})},noBoundary:e=>{var t;(null===(t=this.state.shareOpt)||void 0===t?void 0:t.noBoundary)!==e&&this.setState({shareOpt:Object.assign({},this.state.shareOpt,{noBoundary:e})},()=>{this.afterShareOptChanged()})},showControllerPanel:e=>{var t;(null===(t=this.state.shareOpt)||void 0===t?void 0:t.showControllerPanel)!==e&&this.setState({shareOpt:Object.assign({},this.state.shareOpt,{showControllerPanel:e})},()=>{this.afterShareOptChanged()})},mobileType:e=>{var t;(null===(t=this.state.shareOpt)||void 0===t?void 0:t.mobileType)!==e.id&&this.setState({shareOpt:Object.assign({},this.state.shareOpt,{mobileType:e.id})},()=>{this.afterShareOptChanged()})},showPassword:()=>{this.setState({isShowPassword:!this.state.isShowPassword})}},this.renderShareOptSetting=()=>{const{shareOpt:e}=this.state;return r.createElement("div",{className:f.default("share-opt",{"share-opt-add":!this.isMobile})},r.createElement("div",{className:"opt-item"},r.createElement(h.Checkbox,{checked:null==e?void 0:e.alwaysShowLinkArea,text:p.default("preview.alwaysShowLinkArea"),onChange:this.handleShareOptChecked.alwaysShowLinkArea})),r.createElement("div",{className:"opt-item"},r.createElement(h.Checkbox,{checked:null==e?void 0:e.showLinkAreaWhenHovered,text:p.default("preview.showLinkAreaWhenHovered"),onChange:this.handleShareOptChecked.showLinkAreaWhenHovered})),r.createElement("div",{className:"opt-item"},r.createElement(h.Checkbox,{checked:null==e?void 0:e.autoScreen,text:p.default("preview.autoScreen"),onChange:this.handleShareOptChecked.autoScreen})),r.createElement("div",{className:"opt-item"},r.createElement(h.Checkbox,{checked:null==e?void 0:e.noBoundary,text:p.default("preview.noBoundary"),onChange:this.handleShareOptChecked.noBoundary})),r.createElement("div",{className:"opt-item"},r.createElement(h.Checkbox,{checked:null==e?void 0:e.showControllerPanel,text:p.default("preview.showControllerPanel"),onChange:this.handleShareOptChecked.showControllerPanel})))},this.handleCopy=this.handleCopy.bind(this),this.isCreator=this.isCreator.bind(this)}get currentShareOpt(){const{option:e,showControllerPanel:t,appID:n}=this.props,r=Object.assign({showControllerPanel:t},e),o=u.default.shareOption.find(e=>e.appID===n);return(null==o?void 0:o.option)?Object.assign({},r,o.option):r}componentDidMount(){const{app:e,getShareRunLink:t,getUserInfo:n,getPwEnable:r}=this.props;n(),t(e._id),r(e.shareID)}static getDerivedStateFromProps(e,t){const{sharePassword:n,isLoadLink:r,nextLinkID:o,onMsgPopup:a}=e;return n&&r&&i.isUndefined(t.password)&&!t.isInputError?{password:n}:o&&t.linkReseting?(a(p.default("preview.resetLinkSuccess"),1e3),{linkReseting:!1}):null}isCreator(){const{app:e,userID:t}=this.props;return e.userID===t}get canOperatePass(){const{roleInTeam:e}=this.props;return s.isAdminOrSuperAdmin(e)||s.isMember(e)&&this.isCreator()}get isEnablePassChecked(){const{app:e}=this.props,{isEnablePass:t}=this.state;return this.canOperatePass&&!!t||!!e.previewNeedPassword}getErrorState(e,t){let n;return n=e?{isInputError:p.default("preview.setPassInputError"),password:""}:t?{isInputError:"",password:t}:{isInputError:p.default("preview.setPassEmptyError"),password:""},n}get isMobile(){return["phone","pad"].includes(this.props.app.appType)}get shareUrl(){const{runUrl:e,shareRunID:t}=this.props,{shareOpt:n}=this.state,r=this.isEnablePassChecked?`${window.location.protocol}//${window.location.host}/view/${t}`:"";let o=this.isEnablePassChecked?"":e;const i=r||o;this.isMobile||null==n||delete n.mobileType;return i+l.shareOptionToSearchStr(n)}get simplifyShareUrl(){return this.shareUrl.substring(0,45)+"..."}render(){const{app:e,sharePassword:t,closeShareRun:n,changePwEnable:o,previewNeedPassword:i}=this.props,{password:a,isInputError:s,shareOpt:l,isShowPassword:u}=this.state,f=!(!this.shareUrl||this.isEnablePassChecked&&!a);return r.createElement(d.Dialog,{title:p.default("preview.shareRunTitile"),titleClassName:"share-dialog-title",contentClassName:"share-dialog-content",backFade:!0,onClose:n},r.createElement("div",{className:"share-input-box"},r.createElement(h.Input,{disabled:!0,width:310,maxLength:280,value:this.simplifyShareUrl}),!i&&r.createElement(d.Icon,{className:"url-reset",tips:p.default("share.resetLink"),cls:"icon_refresh",size:14,onClick:this.handleReset}),r.createElement(h.Button,{width:100,disabled:!f,onClick:this.handleCopy},p.default("preview.copy"))),r.createElement("p",{className:"share-tip"},p.default("tips.shareSetting")),this.isMobile&&r.createElement("div",{className:"device-select"},r.createElement(d.Label,null,p.default("preview.mobileType")),r.createElement(d.Select,{theme:"light",data:c.MobileTypeList,isInPopup:!0,selectedIndex:c.MobileTypeList.findIndex(e=>e.id===(null==l?void 0:l.mobileType)),onSelect:this.handleShareOptChecked.mobileType})),this.renderShareOptSetting(),r.createElement("div",{className:"password-wrapper"},r.createElement(h.Checkbox,{checked:this.isEnablePassChecked,disabled:!this.canOperatePass,text:p.default("preview.enablePass"),onChange:t=>{this.setState({isEnablePass:t}),a&&o(e._id,t)}}),this.canOperatePass&&this.isEnablePassChecked&&r.createElement(r.Fragment,null,r.createElement(h.Input,{type:u?"text":"password",width:160,placeholder:p.default("preview.inputPass"),maxLength:8,error:s,value:a,onSubmit:this.handleSetShareLinkPass,onBlur:this.handleSetShareLinkPass,onInput:this.handleShareLinkPassInput}),r.createElement(d.Icon,{cls:u?"icon_see_view":"icon_see_hide",onClick:this.handleShareOptChecked.showPassword})),!this.canOperatePass&&i&&r.createElement("span",{className:"password-value"},t)))}}t.default=o.connect(e=>{var t,n,r,o;const{share:i}=e;return{teamID:null===(t=i.teamInfo)||void 0===t?void 0:t.id,roleInTeam:null===(n=i.teamInfo)||void 0===n?void 0:n.roleInTeam,userID:null===(r=i.userInfo)||void 0===r?void 0:r.id,userName:null===(o=i.userInfo)||void 0===o?void 0:o.name,previewNeedPassword:i.previewNeedPassword,shareRunID:i.shareRunID,sharePassword:i.sharePassword,isLoadLink:i.isLoadLink,linkID:i.linkID,nextLinkID:i.nextLinkID}},e=>({getUserInfo:()=>{e(a.ShareThunkActions.getUserInfo())},getShareRunLink:t=>{e(a.ShareThunkActions.getShareRunLink(t))},setShareLinkPass:(t,n)=>{e(a.ShareThunkActions.setShareLinkPass(t,n))},getPwEnable:t=>{e(a.ShareThunkActions.getPwEnable(t))},changePwEnable:(t,n)=>{e(a.ShareThunkActions.changePwEnable(t,n))},resetLink:t=>{e(a.ShareThunkActions.resetLink(t))}}))(m)},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(109),a=n(1763),s=n(22),l=n(53),c=n(29),u=n(8);n(1770);class d extends r.Component{constructor(e){super(e),this.selfRef=r.createRef(),this.deviceDom=r.createRef(),this.scrollBar=r.createRef(),this.point={x:0,y:0},this.oldScrollPosition={x:0,y:0},this.isScrollV=!1,this.isScrollH=!1,this.handleWindowMousemove=e=>{this.point={x:e.pageX,y:e.pageY}},this.getMousePointInViewPort=()=>{const e=this.selfRef.current;if(!e)return;const{top:t,left:n}=e.getBoundingClientRect(),{x:r,y:o}=this.point;return{x:r-n,y:o-t}},this.doZoomByWheel=e=>{const t=this.scrollBar.current,n=this.getMousePointInViewPort();if(!t||!n)return;const{scrollLeft:r,scrollTop:o}=t,{scale:i}=this.props,{x:a,y:s}=this.oldScrollPosition;if(this.isScrollV){o((n.y+s)/e*i-n.y)}if(this.isScrollH){r((n.x+a)/e*i-n.x)}},this.upDateOldScrollPosition=()=>{const e=this.scrollBar.current;if(!e)return;const{getScrollTop:t,getScrollLeft:n,getScrollHeight:r,getScrollWidth:o,getClientHeight:i,getClientWidth:a}=e,s=t(),l=n(),c=r(),u=o(),d=i(),h=a();this.isScrollV=c-d>0,this.isScrollH=u-h>0,this.oldScrollPosition={x:l,y:s}},this.setScrollBarWhenDeviceDidMountAndPageChange=e=>{const{option:t,scale:n,page:r,appSize:o,appType:i}=this.props,a=n/100,s=this.state.viewPortSize;if(t.noBoundary&&r&&s){const n=r.doc.mainArtboard.size,u=l.isMobileAppType(i),d={width:u&&!t.noBoundary?o.width*a:n.width*a,height:u&&!t.noBoundary?o.height*a:n.height*a},{left:h,top:p}=c.getCompsBoundsInArtboard(r.doc.mainArtboard.components),f={left:h<0?10-h*a:10,top:p<0?10-p*a:10},m=e||{x:Math.max(.5*s.viewPortWidth-.5*d.width,10),y:Math.max(.5*s.viewPortHeight-.5*d.height,10)};this.setState({},()=>{var e,t;null===(e=this.scrollBar.current)||void 0===e||e.scrollLeft(f.left-m.x),null===(t=this.scrollBar.current)||void 0===t||t.scrollTop(f.top-m.y)})}},this.setScrollBarRZ=()=>{this.setState({},()=>{var e,t;null===(e=this.scrollBar.current)||void 0===e||e.scrollToLeft(),null===(t=this.scrollBar.current)||void 0===t||t.scrollToTop()})},this.handleEndFragment=e=>{e.stopPropagation();const t=e.target,{page:n}=this.props;t.parentElement&&t.parentElement.classList.contains("scroll-box")&&n&&n.activeFragmentAction&&!n.activeFragmentAction.isExit&&n.onEndFragmentAction&&(n.onEndFragmentAction(n.activeFragmentAction),n.removeFragmentRevertAction())},this.handleWindowResize=()=>{this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(this.getViewPortSize,200)},this.getViewPortSize=()=>{const e=this.selfRef.current,t=e.clientHeight,n=e.clientWidth,r=u.depthClone(this.state.viewPortSize);return r.viewPortHeight=t||window.innerHeight,r.viewPortWidth=n,this.setState({viewPortSize:r}),r},this.state={viewPortSize:{viewPortHeight:0,viewPortWidth:0}}}componentDidMount(){this.selfRef.current&&(this.resizeObserver=new i.default(e=>{var t;for(let n of e)if(n.target.className===(null===(t=this.selfRef.current)||void 0===t?void 0:t.className)){const e={viewPortWidth:n.contentRect.width,viewPortHeight:n.contentRect.height};this.setState({viewPortSize:e})}}),this.resizeObserver.observe(this.selfRef.current)),this.getViewPortSize(),window.addEventListener("mousemove",this.handleWindowMousemove,!0)}UNSAFE_componentWillReceiveProps(e){const t=e.scale!==this.props.scale;e.zoomByWheel&&t&&!document.querySelector(".snapshot-preview-mask")&&this.upDateOldScrollPosition()}componentDidUpdate(e){const t=e.scale!==this.props.scale;this.props.zoomByWheel&&t&&!document.querySelector(".snapshot-preview-mask")&&this.doZoomByWheel(e.scale)}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),window.removeEventListener("mousemove",this.handleWindowMousemove)}render(){const{page:e,advancePage:t,scale:n,onAutoScale:i,option:l,appSize:c,appType:u,zoomByWheel:d,isStandalone:h}=this.props,{viewPortSize:p}=this.state,f=h?{background:"radial-gradient(#434f65 5%, #202735 75%)"}:{background:"#eee"};return r.createElement("div",{ref:this.selfRef,style:f,className:o.default("preview-view-port",{"no-boundary":l.noBoundary})},r.createElement(s.ScrollBars,{ref:this.scrollBar,className:"scroll-box global-scroll",autoHide:!1,theme:"dark",thumbTheme:"large",style:{width:"100%",height:"100%"}},e&&r.createElement(a.default,{ref:this.deviceDom,viewPortSize:p,appType:u,option:l,zoomByWheel:d,scale:n,page:e,appSize:c,advancePage:t,onAutoScale:i,onScrollBarUpdate:this.setScrollBarWhenDeviceDidMountAndPageChange,onScrollBarRZ:this.setScrollBarRZ})))}}d.defaultProps={},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(215),a=n(1764),s=n(53),l=n(29),c=n(8),u=n(171);n(1769);class d extends r.Component{constructor(e){super(e),this.handleMouseDown=()=>{this.shouldShowShell&&(this.state.isPressed||this.setState({isPressed:!0}))},this.handleMouseUp=()=>{this.shouldShowShell&&this.state.isPressed&&this.setState({isPressed:!1})},this.turnOffAutoScreen=(e=!1)=>{const{appType:t,onAutoScale:n,page:r,viewPortSize:{viewPortWidth:o}}=this.props;if(s.isMobileAppType(t)||e)n(100);else{const e=r.doc.mainArtboard.size;n(Math.min(100*parseFloat(((o-20)/e.width).toFixed(2)),100))}},this.getShellOffset=(e,t,n)=>{const{viewPortSize:r,page:o,option:i,scale:a}=this.props;let s=10,c=10,u=10,d=10;if(i.noBoundary){const e=l.getCompsBoundsInArtboard(o.doc.mainArtboard.components);e.left<0&&(c-=e.left*a/100),e.top<0&&(s-=e.top*a/100),u+=e.bottom*a/100,d+=e.right*a/100}const{viewPortHeight:h,viewPortWidth:p}=r,{height:f,width:m}=e,g=this.props.scale/100;let v=Math.round(.5*(p-m*g)),y=Math.round(.5*(h-f*g));if(!t||i.noBoundary)return v=v<c?c:v,y=y<s?s:y,{offsetX:v,offsetY:y,minBottom:u,minRight:d};const b=Math.round(t.screenBounds.left*n*g),w=Math.round(t.screenBounds.top*n*g);return v=v<b+c?b+c:v,y=y<w+s?w+s:y,{offsetX:v,offsetY:y,minBottom:u,minRight:d}},this.getAutoScreenScale=e=>{const{viewPortHeight:t,viewPortWidth:n}=this.props.viewPortSize,{isLandscape:r}=this.state,{appSize:o}=this.props,a=i.getShellInfo(e,r);if(!a)return;const s=this.getDefaultScale(a),l=(a.shellSize.height-a.screenBounds.height)*s+o.height,c=a.shellSize.width*s;let u=1;u=n/t<c/l?parseFloat(((n-20)/c).toFixed(2)):parseFloat(((t-20)/l).toFixed(2)),u=u>4?4:u,u=u<.1?.1:u,this.props.scale!==100*u&&this.props.onAutoScale(100*u)},this.getAutoScreenScaleWithoutsShell=()=>{const{viewPortHeight:e,viewPortWidth:t}=this.props.viewPortSize,{appSize:n,page:r,appType:o,option:i}=this.props,{doc:a}=r;let u=1;const d=c.depthClone(a.mainArtboard.size),h=s.isMobileAppType(o),p=l.getCompsBoundsInArtboard(a.mainArtboard.components),f=h?c.depthClone(n):d;if(i.noBoundary){const e=d.width-2*p.left,t=d.width+2*(p.right-d.width),n=d.width,r=c.max(e,t,n),o=d.height-2*p.top,i=d.height+2*(p.bottom-d.height),a=d.height,s=c.max(o,i,a);f.width=r,f.height=s}u=f.height/f.width>e/t?parseFloat(((e-20)/f.height).toFixed(2)):parseFloat(((t-20)/f.width).toFixed(2)),u=u>4?4:u,u=u<.1?.1:u,u>=.9&&u<=1.1&&i.noBoundary&&(u=1),this.props.scale!==100*u&&this.props.onAutoScale(100*u)},this.getDefaultScale=e=>!e||this.props.option.noBoundary?1:this.props.appSize.width/e.screenBounds.width,this.getPageScale=(e,t)=>e?e.defaultScreenSize.width/t:1,this.getpageDefaultSize=(e,t,n)=>e?{width:e.defaultScreenSize.width,height:e.defaultScreenSize.height}:{width:t,height:n},this.renderShell=()=>{if(!this.shellOption)return null;const{scale:e,appSize:t}=this.props,n=e/100,o=this.getDefaultScale(this.shellOption),{screenBounds:i,shellSize:a,shellImage:s,otherScale:l}=this.shellOption;return r.createElement("div",{className:"device-box",style:{left:-i.left*o*n,top:-i.top*o*n,width:a.width*o*n,height:((a.height-i.height)*o+t.height)*n}},r.createElement("img",{className:"shell-img-top",alt:"img",src:s[0],width:a.width*o*n}),r.createElement("img",{className:"shell-img-body",alt:"img",src:s[1],width:a.width*o*n,height:(t.height-l*a.width*o)*n}),r.createElement("img",{className:"shell-img-bottom",alt:"img",src:s[2],width:a.width*o*n}))},this.state={isLandscape:!1,isPressed:!1},this.selfRef=r.createRef()}componentDidMount(){const{option:{autoScreen:e,mobileType:t,noBoundary:n}}=this.props;e?"none"===t||n?this.getAutoScreenScaleWithoutsShell():this.getAutoScreenScale(t):this.turnOffAutoScreen(n),this.props.onScrollBarUpdate(),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mouseup",this.handleMouseUp)}componentWillUnmount(){window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mouseup",this.handleMouseUp)}UNSAFE_componentWillReceiveProps(e){var t;const{option:{autoScreen:n,mobileType:r,noBoundary:o}}=this.props;e.option.autoScreen?["pad","iphoneX","iphone","android"].includes(e.option.mobileType)&&!o?n&&e.option.mobileType===r||this.getAutoScreenScale(null===(t=null==e?void 0:e.option)||void 0===t?void 0:t.mobileType):n&&e.option.mobileType===r||this.getAutoScreenScaleWithoutsShell():n&&this.turnOffAutoScreen(e.option.noBoundary)}UNSAFE_componentWillUpdate(){var e,t;let n=void 0;const r=null===(e=this.selfRef.current)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(t=document.querySelector(".preview-view-port"))||void 0===t?void 0:t.getBoundingClientRect();r&&o&&(n={x:r.x-o.x,y:r.y-o.y}),this.deviceOffset=n}componentDidUpdate(e){const{scale:t,page:n,viewPortSize:r,option:o,zoomByWheel:i,onScrollBarUpdate:a,onScrollBarRZ:s}=this.props;e.scale===t||i||a(),e.page.doc.pageID!==n.doc.pageID&&a(),c.isEqualDate(e.viewPortSize,r)||a(),!e.option.noBoundary&&o.noBoundary&&a(this.deviceOffset),e.option.noBoundary&&!o.noBoundary&&s()}getSkipStyleAndClassName(e,t){let n="null";const r={};if(!e)return{style:r,classNames:""};const{animationEffect:i}=e;i&&(r.animationTimingFunction=i.animation.effect,r.animationDuration=(i.animation.duration||1)+"ms",n=i.params,r.animationFillMode=""+("next"==t?"forwards":""));return{style:r,classNames:o.default([`${t}-${n}`],[t+"-page"])}}get isMobileType(){return["phone","pad"].includes(this.props.appType)}get shellOption(){const{option:{mobileType:e,noBoundary:t}}=this.props,{isLandscape:n}=this.state;return i.getShellInfo(t?u.MobileType.None:e,n)}get deviceStyle(){const{page:e,scale:t,option:n,appSize:r,viewPortSize:o}=this.props,{noBoundary:i}=n,a=t/100,s=c.depthClone(e.doc.mainArtboard.size),l=this.getDefaultScale(this.shellOption),{offsetX:u,offsetY:d,minRight:h,minBottom:p}=this.getShellOffset(this.isMobileType&&!i?c.depthClone(r):s,this.shellOption,l),f={width:this.isMobileType&&!i?r.width*a:s.width*a,height:this.isMobileType&&!i?r.height*a:s.height*a},m={};return m.width=f.width,m.height=f.height,m.top=d,m.left=u,i&&(m.width=Math.max(m.width,h),m.height=Math.max(m.height,p),m.minHeight=.5*f.height+.5*o.viewPortHeight,m.minWidth=.5*f.width+.5*o.viewPortWidth),m}get shouldShowShell(){return this.shellOption&&this.isMobileType&&!this.props.option.noBoundary}render(){const{page:e,advancePage:t,scale:n,option:i,appSize:s,zoomByWheel:l}=this.props,{noBoundary:u}=i,d=n/100,h=c.depthClone(e.doc.mainArtboard.size),p={width:this.isMobileType&&!u?s.width*d:h.width*d,height:this.isMobileType&&!u?s.height*d:h.height*d},f=this.shouldShowShell;return r.createElement("div",{ref:this.selfRef,className:"preview-device",style:this.deviceStyle},r.createElement("div",{className:o.default("scale-box",{"no-boundary":u,mobile:f&&!{DEV_MODE:!1,isPrivateDeployment:!1,isOfflineDemo:!0}.isHuaWei,isPressed:this.state.isPressed}),style:{transformOrigin:"0% 0%",height:p.height,width:p.width}},r.createElement(a.default,{option:i,pageType:"current",scale:n,zoomByWheel:l,page:e,deviceSize:p}),t&&r.createElement(a.default,{option:i,pageType:"next",scale:n,zoomByWheel:l,page:t,deviceSize:p}),f&&this.renderShell()))}}d.defaultProps={},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(8),a=n(177),s=n(86),l=n(22),c=n(313),u=n(632);class d extends r.Component{constructor(e){super(e),this.self=r.createRef(),this.scrollBar=r.createRef(),this.oldScrollPosition={x:0,y:0},this.upDateOldScrollPosition=()=>{const e=this.scrollBar.current;if(!e)return;const{getScrollTop:t,getScrollLeft:n}=e,r=t(),o=n();this.oldScrollPosition={x:o,y:r}},this.holdScrollWhenZoom=e=>{const t=this.scrollBar.current;if(!t)return;const{scrollLeft:n,scrollTop:r}=t,{scale:o}=this.props,{x:i,y:a}=this.oldScrollPosition,s=i/e*o;r(a/e*o),n(s)},this.handleFragmentAnimationEnd=()=>{const{activeFragmentAction:e}=this.state;e&&e.isExit&&this.handleFragmentActionClean(this.props.page.removeFragmentAction)},this.handleSkipEnd=()=>{this.handleFragmentAnimationEnd(),"next"===this.props.pageType&&this.props.page.pageAnimationEnd()},this.handleEndFragment=e=>{e.stopPropagation();const{onEndFragmentAction:t,removeFragmentRevertAction:n,activeFragmentAction:r}=this.props.page;t&&n&&r&&(t(r),n())},this.handleFragmentActionClean=e=>{this.setState({activeFragmentAction:void 0},()=>{e&&e()})},this.renderFragment=(e,t,n)=>{var i,a;const l=null===(i=this.page.current)||void 0===i?void 0:i.getActiveFragment(t.target);if(!l)return null;let c=l&&{height:l.size.height*(e||1),width:l.size.width*(e||1)};const{animationStyle:u,bgStyle:d,keyframeName:h}=s.getClassNameAndStyleOfFragmentAction(t),{alwaysShowLinkArea:p,showLinkAreaWhenHovered:f}=this.props.option;let m=void 0;f&&!p?m="only-hover":p&&(m="always");const g=o.default("active-fragment",h,this.props.option?m:"",{"over-visible":!!n});return r.createElement("div",{key:l.id,className:"fragment-bg",style:d,onClick:this.props.page.closeFragmentByAction.bind(this.props.page,t,this.forceUpdate.bind(this))},r.createElement("div",{className:g,onAnimationEnd:()=>{h.endsWith("null")||this.handleFragmentAnimationEnd()},onClick:e=>{e.target===e.currentTarget&&this.props.page.closeFragmentByAction(t,this.forceUpdate.bind(this)),e.stopPropagation()},onDoubleClick:e=>{e.stopPropagation()},onContextMenu:e=>{e.stopPropagation()},onMouseDown:e=>{e.stopPropagation()},onMouseUp:e=>{e.stopPropagation()},onTouchStart:e=>{e.stopPropagation()},onTouchEnd:e=>{e.stopPropagation()},style:Object.assign(Object.assign({},u),c)},l&&(null===(a=this.page.current)||void 0===a?void 0:a.renderComponents(l,e))))},this.update=()=>{this.forceUpdate()},this.state={},this.page=r.createRef()}UNSAFE_componentWillReceiveProps(e){var t,n;i.isEqualDate(this.state.activeFragmentAction,e.page.activeFragmentAction)||this.setState({activeFragmentAction:e.page.activeFragmentAction}),e.page.doc.pageID!==this.props.page.doc.pageID&&(null===(t=this.scrollBar.current)||void 0===t||t.scrollToTop(),null===(n=this.scrollBar.current)||void 0===n||n.scrollToLeft());const r=e.scale!==this.props.scale;e.zoomByWheel&&r&&this.upDateOldScrollPosition()}componentDidMount(){this.cachePageBounds()}componentDidUpdate(e){this.cachePageBounds();const t=e.scale!==this.props.scale;this.props.zoomByWheel&&t&&this.holdScrollWhenZoom(e.scale)}cachePageBounds(){if(this.self.current){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this.self.current.getBoundingClientRect();c.PreviewCache.pageBounds={left:n,top:r,right:o,bottom:i,width:e,height:t}}}getSkipStyleAndClassName(e,t,n){let r="none";const i={};if(!e)return{style:i,classNames:""};const{animationEffect:a}=e;a&&(i.animationTimingFunction=a.animation.effect,i.animationDuration=(a.animation.duration||1)+"ms",r=a.params,i.animationFillMode=""+("next"==t?"forwards":"")),n&&(i.animationDuration="1ms",r="none");return{style:i,classNames:o.default([`${t}-${r}`],[t+"-page"])}}get nonCustomFragmentCommands(){var e,t;const{page:n,pageType:r}=this.props;return"current"!==r?[]:Array.from(null!==(t=null===(e=n.fragmentCommandMap)||void 0===e?void 0:e.values())&&void 0!==t?t:[]).filter(e=>e.params.mode!==a.FragmentPositionMode.Custom)}render(){const{activeFragmentAction:e}=this.state,{page:t,scale:n,option:o,pageType:i,deviceSize:a}=this.props,s=n/100,{width:c,height:d}=t.doc.mainArtboard.size,{style:h,classNames:p}=this.getSkipStyleAndClassName(t,i,!!o.noBoundary),f={width:c*s,height:d*s,transformOrigin:"0% 0%"},m=a.height>=f.height&&a.width>=f.width,g=r.createElement(u.default,{ref:this.page,option:o,page:t,pageType:i,scale:s,action:e,onEndFragment:this.handleEndFragment,onParentForceUpdate:this.update,onFragmentAnimationEnd:this.handleFragmentAnimationEnd});return r.createElement("div",{className:"preview-device-shell "+p,style:h,ref:this.self,onAnimationEnd:this.handleSkipEnd},o.noBoundary?g:m?r.createElement("div",{className:"content",style:f},g):r.createElement(l.ScrollBars,{ref:this.scrollBar,style:{width:"100%",height:"100%"}},r.createElement("div",{className:"content",style:f},g)),!!this.nonCustomFragmentCommands.length&&this.nonCustomFragmentCommands.map(e=>this.renderFragment(s,e)))}}d.defaultProps={},t.default=d},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2);n(1772);const i=n(455);t.default=e=>r.createElement("div",{className:o.default("global-waiting",{global:!e.isPart,part:e.isPart})},r.createElement("img",{className:"waiting-animation",src:i}))},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(57),a=n(1774);n(1776);const s=n(174);class l extends r.PureComponent{constructor(e){super(e),this.handleEnterFullScreen=()=>{this.setState({isFullscreen:!0});const{onFullscreenChange:e}=this.props;e&&e(!0)},this.handleLeaveFullScreen=()=>{this.setState({isFullscreen:!1});const{onFullscreenChange:e}=this.props;e&&e(!1)},this.state={isFullscreen:!1}}componentDidMount(){var e,t;null===(e=s.desktopServer.electron)||void 0===e||e.ipcRenderer.addListener(s.DesktopEventType.enterFullScreen,this.handleEnterFullScreen),null===(t=s.desktopServer.electron)||void 0===t||t.ipcRenderer.addListener(s.DesktopEventType.leaveFullScreen,this.handleLeaveFullScreen)}componentWillUnmount(){var e,t;null===(e=s.desktopServer.electron)||void 0===e||e.ipcRenderer.removeListener(s.DesktopEventType.enterFullScreen,this.handleEnterFullScreen),null===(t=s.desktopServer.electron)||void 0===t||t.ipcRenderer.removeListener(s.DesktopEventType.leaveFullScreen,this.handleLeaveFullScreen)}renderDesktopTitle(){const{title:e,transparent:t,minimizable:n,maximizable:o,status:i,canChangeTitle:s,onChangeTitle:l}=this.props;return r.createElement(a.default,{title:e,transparent:t,status:i,minimizable:n,maximizable:o,canChange:s,onChange:l})}render(){const{className:e,children:t}=this.props,n=i.isMockRPD&&!i.isIframe&&!this.state.isFullscreen;return r.createElement("div",{className:o.default(e,"desktop-container",{desktop:n,mac:i.isMacOS})},n&&this.renderDesktopTitle(),t)}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(68),a=n(57),s=n(22),l=n(4),c=n(174);n(1775);class u extends r.PureComponent{constructor(e){super(e),this.doMaximize=()=>{this.setState({isMaximized:!0})},this.doUnmaximize=()=>{this.setState({isMaximized:!1})},this.handleMinimizeWindow=()=>{c.desktopServer.minimizeWindow()},this.handleMaximizeWindow=()=>{this.props.maximizable||(this.doMaximize(),c.desktopServer.maximizeWindow())},this.handleUnmaximizeWindow=()=>{this.props.maximizable||(this.doUnmaximize(),c.desktopServer.unmaximizeWindow())},this.handleDoubleClick=()=>{this.props.maximizable||(this.state.isMaximized?(this.doUnmaximize(),c.desktopServer.unmaximizeWindow()):(this.doMaximize(),c.desktopServer.maximizeWindow()))},this.handleCloseWindow=()=>{c.desktopServer.closeWindow()},this.handleDragWindow=()=>{i.dragDelegate((e,t)=>{const{x:n,y:r}=t;c.desktopServer.setPosition(n,r,!1)},()=>{})},this.doClearKeyDown=e=>{e.preventDefault()},this.doClearMouseDown=e=>{e.stopPropagation()},this.handleRenameInput=()=>{this.props.canChange&&this.setState({editing:!0})},this.doCancelEditing=()=>{this.setState({editing:!1})},this.handleRename=(e,t)=>{const n=(null==e?void 0:e.trim())||"",{title:r,onChange:o}=this.props;this.doCancelEditing(),r!==n&&n&&!t&&(this.doChangeEditTitle(n),o&&o(n))},this.doChangeEditTitle=e=>{this.setState({editTitle:e})};const{status:t,title:n}=e;this.state={isMaximized:"maximized"===t,editTitle:"string"==typeof n?n:""}}componentDidMount(){var e,t;c.desktopServer.checkMaximize(),null===(e=c.desktopServer.electron)||void 0===e||e.ipcRenderer.addListener(c.DesktopEventType.maximize,this.doMaximize),null===(t=c.desktopServer.electron)||void 0===t||t.ipcRenderer.addListener(c.DesktopEventType.unmaximize,this.doUnmaximize)}componentWillUnmount(){var e,t;null===(e=c.desktopServer.electron)||void 0===e||e.ipcRenderer.removeListener(c.DesktopEventType.maximize,this.doMaximize),null===(t=c.desktopServer.electron)||void 0===t||t.ipcRenderer.removeListener(c.DesktopEventType.unmaximize,this.doUnmaximize)}componentDidUpdate(e){const{title:t}=this.props;t!==e.title&&"string"==typeof t&&this.doChangeEditTitle(t)}renderMinimizeButton(){return this.props.minimizable?null:r.createElement("div",{className:"button",onClick:this.handleMinimizeWindow,onKeyDown:this.doClearKeyDown},r.createElement(s.Icon,{theme:"tag",cls:"icon_Minimize"}))}renderMaximizeButton(){return this.props.maximizable||this.state.isMaximized?null:r.createElement("div",{className:"button",onClick:this.handleMaximizeWindow,onKeyDown:this.doClearKeyDown},r.createElement(s.Icon,{theme:"tag",size:14,cls:"icon_Maximize"}))}renderUnmaximizeButton(){if(!this.props.maximizable&&this.state.isMaximized)return r.createElement("div",{className:"button",onClick:this.handleUnmaximizeWindow,onKeyDown:this.doClearKeyDown},r.createElement(s.Icon,{theme:"tag",size:14,cls:"icon_Revert"}))}renderWindowOperate(){return a.isMacOS?null:r.createElement("div",{className:"desktop-title-close"},this.renderMinimizeButton(),this.renderMaximizeButton(),this.renderUnmaximizeButton(),r.createElement("div",{className:"button close",onClick:this.handleCloseWindow,onKeyDown:this.doClearKeyDown},r.createElement(s.Icon,{theme:"tag",cls:"icon_Close"})))}renderContent(){const{title:e}=this.props;switch(e){case!1:return"";case!0:case void 0:return r.createElement("span",{className:"label"},l.default("pc.name"))}const{editTitle:t}=this.state,n=t.length>15?t.slice(0,15)+"...":""+t,{editing:o}=this.state;return o?r.createElement("div",{onDoubleClick:this.doClearMouseDown},r.createElement(s.Input,{value:t,className:"desktop-title-input",autoFocus:!0,autoSelectWhenFocus:!0,onBlur:this.handleRename,onMouseDown:this.doClearMouseDown})):r.createElement(s.Tooltip,{text:e,popupClassName:"desktop-title-tooltip"},r.createElement("span",{className:"desktop-title-label",onClick:this.handleRenameInput},n))}render(){const{className:e,transparent:t}=this.props;return r.createElement("div",{className:o.default(e,"desktop-title",{mac:a.isMacOS,transparent:t}),onMouseDown:this.handleDragWindow,onDoubleClick:this.handleDoubleClick},this.renderContent(),this.renderWindowOperate())}}u.defaultProps={minimizable:!1,maximizable:!1},t.default=u},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1779),i=n(1783);n(1786);class a extends r.Component{constructor(e){super(e),this.mobileViewPort=r.createRef()}get globalScale(){var e;return(null===(e=this.mobileViewPort.current)||void 0===e?void 0:e.globalScale)||1}render(){const{currentPage:e,app:t,userInfo:n,nextPage:a,role:s,onPageSelect:l}=this.props;return r.createElement("div",{className:"mobile-preview-container"},r.createElement(o.default,{ref:this.mobileViewPort,page:e,appSize:t.size,advancePage:a}),r.createElement(i.default,{app:t,userInfo:n,selected:null==e?void 0:e.doc.pageID,onPageSelect:l,role:s}))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1780);n(1782);class i extends r.Component{constructor(e){super(e),this.timeOutEvent=0,this.handleTouchStart=()=>(this.timeOutEvent=window.setTimeout(this.onMobileToggleTree,500),!1),this.onMobileToggleTree=()=>{window.parent&&window.parent.postMessage({toggleTree:!0},"*")},this.handleTouchMove=()=>(clearTimeout(this.timeOutEvent),!1),this.handleTouchEnd=()=>{clearTimeout(this.timeOutEvent),this.timeOutEvent=0},this.handleEndFragment=e=>{e.stopPropagation();const t=e.target,{page:n}=this.props;t.parentElement&&t.parentElement.classList.contains("scroll-box")&&n&&n.activeFragmentAction&&!n.activeFragmentAction.isExit&&n.onEndFragmentAction&&(n.onEndFragmentAction(n.activeFragmentAction),n.removeFragmentRevertAction())},this.selfRef=r.createRef(),this.pageShell=r.createRef()}get globalScale(){var e;return(null===(e=this.pageShell.current)||void 0===e?void 0:e.globalScale)||1}render(){const{page:e,advancePage:t,appSize:n}=this.props,i={height:window.innerHeight,width:window.innerWidth};return r.createElement("div",{className:"preview-mobile-view-port",onClick:this.handleEndFragment,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},e&&r.createElement(o.default,{ref:this.pageShell,viewPortSize:i,appSize:n,page:e,pageType:"current"}),t&&r.createElement(o.default,{viewPortSize:i,appSize:n,page:t,pageType:"next"}))}}i.defaultProps={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(8),a=n(177),s=n(22),l=n(86),c=n(313),u=n(632);n(1781);class d extends r.Component{constructor(e){super(e),this.scrollBar=r.createRef(),this.handleEndFragment=e=>{e.stopPropagation();const{onEndFragmentAction:t,removeFragmentRevertAction:n,activeFragmentAction:r}=this.props.page;t&&n&&r&&(t(r),n())},this.handleFragmentAnimationEnd=()=>{const{activeFragmentAction:e}=this.state;e&&e.isExit&&this.handleFragmentActionClean(this.props.page.removeFragmentAction)},this.handleFragmentActionClean=e=>{this.setState({activeFragmentAction:void 0},()=>{e&&e()})},this.handleAnimationEnd=()=>{this.handleFragmentAnimationEnd(),"next"===this.props.pageType&&this.props.page.pageAnimationEnd()},this.renderFragment=(e,t)=>{var n,i;const a=null===(n=this.page.current)||void 0===n?void 0:n.getActiveFragment(t.target);if(!a)return null;let s=a&&{height:a.size.height*(e||1),width:a.size.width*(e||1)};const{animationStyle:c,bgStyle:u,keyframeName:d}=l.getClassNameAndStyleOfFragmentAction(t),h=o.default("active-fragment",d);return r.createElement("div",{key:a.artboardID,className:"fragment-bg",style:u,onClick:this.props.page.closeFragmentByAction.bind(this.props.page,t,this.forceUpdate.bind(this))},r.createElement("div",{className:h,onAnimationEnd:d.endsWith("null")?void 0:this.handleFragmentAnimationEnd,onClick:e=>{e.target===e.currentTarget&&this.props.page.closeFragmentByAction(t,this.forceUpdate.bind(this)),e.stopPropagation()},onDoubleClick:e=>{e.stopPropagation()},onContextMenu:e=>{e.stopPropagation()},onMouseDown:e=>{e.stopPropagation()},onMouseUp:e=>{e.stopPropagation()},onTouchStart:e=>{e.stopPropagation()},onTouchEnd:e=>{e.stopPropagation()},style:Object.assign(Object.assign({},c),s)},r.createElement("div",{style:{transform:`scale(${e}, ${e})`,transformOrigin:"0 0"}},a&&(null===(i=this.page.current)||void 0===i?void 0:i.renderComponents(a,1)))))},this.update=()=>{this.forceUpdate()},this.state={},this.selfRef=r.createRef(),this.page=r.createRef()}componentDidMount(){this.doCachePageBounds()}componentDidUpdate(){this.doCachePageBounds()}doCachePageBounds(){if(this.selfRef.current){const{left:e,top:t,right:n,bottom:r,width:o,height:i}=this.selfRef.current.getBoundingClientRect();c.PreviewCache.pageBounds={left:e,top:t,right:n,bottom:r,width:o,height:i}}}UNSAFE_componentWillReceiveProps(e){var t,n;i.isEqualDate(this.state.activeFragmentAction,e.page.activeFragmentAction)||this.setState({activeFragmentAction:e.page.activeFragmentAction}),e.page.doc.pageID!==this.props.page.doc.pageID&&(null===(t=this.scrollBar.current)||void 0===t||t.scrollToTop(),null===(n=this.scrollBar.current)||void 0===n||n.scrollToLeft())}getSkipStyleAndClassName(e,t){let n="null";const r={};if(!e)return{style:r,classNames:""};const{animationEffect:i}=e;i&&(r.animationTimingFunction=i.animation.effect,r.animationDuration=(i.animation.duration||1)+"ms",n=i.params,r.animationFillMode=""+("next"==t?"forwards":""));return{style:r,classNames:o.default([`${t}-${n}`],[t+"-page"])}}get globalScale(){const{viewPortSize:e,appSize:t}=this.props;return e.width/t.width}get nonCustomFragmentCommands(){var e,t;const{page:n,pageType:r}=this.props;return"current"!==r?[]:Array.from(null!==(t=null===(e=n.fragmentCommandMap)||void 0===e?void 0:e.values())&&void 0!==t?t:[]).filter(e=>e.params.mode!==a.FragmentPositionMode.Custom)}render(){const{activeFragmentAction:e}=this.state,{page:t,pageType:n}=this.props,{width:o,height:i}=t.doc.mainArtboard.size,a=this.globalScale,{style:l,classNames:c}=this.getSkipStyleAndClassName(t,n);return r.createElement("div",{className:"preview-device-shell "+c,style:l,ref:this.selfRef,onAnimationEnd:this.handleAnimationEnd},r.createElement(s.ScrollBars,{ref:this.scrollBar,className:"global-scroll",style:{width:"100%",height:"100%"}},r.createElement("div",{className:"page-view",style:{width:o*a,height:i*a,transformOrigin:"0 0"}},r.createElement("div",{style:{width:o,height:i,transformOrigin:"0 0",transform:`scale(${a})`}},r.createElement(u.default,{ref:this.page,page:t,pageType:n,action:e,scale:1,onParentForceUpdate:this.update,onEndFragment:this.handleEndFragment,onFragmentAnimationEnd:this.handleFragmentAnimationEnd})))),!!this.nonCustomFragmentCommands.length&&this.nonCustomFragmentCommands.map(e=>this.renderFragment(a,e)))}}d.defaultProps={},t.default=d},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(2),i=n(22),a=n(229),s=n(92),l=n(53),c=n(4),u=n(57),d=n(1784);n(1785);class h extends r.Component{constructor(e){super(e),this.touchPoint={x:0,y:0},this.allowExit=l.isPhoneIn&&(!l.isLarkApplets||c.languageManager.isZHLanguage),this.handleTouchStart=e=>{const{pageX:t,pageY:n}=e.touches[0];this.touchPoint={x:t,y:n},this.isTouchMoved=!1,this.state.show?this.setState({show:!1}):e.touches.length>1||(this.touchTimeID=window.setTimeout(()=>{this.isTouchMoved||this.setState({show:!0})},500))},this.handleTouchMove=e=>{const{pageX:t,pageY:n}=e.touches[0],{x:r,y:o}=this.touchPoint;this.isTouchMoved||(e.detail>1||e.touches.length>1||Math.abs(t-r)>4||Math.abs(n-o)>4)&&(this.isTouchMoved=!0)},this.handleTouchEnd=()=>{window.clearTimeout(this.touchTimeID)},this.handleContentTouch=e=>{e.stopPropagation()},this.handleCollapseChange=e=>{const t=e.target.classList;if(!t.contains("mobile-tree-panel")&&!t.contains("controller-ball"))return;const{show:n}=this.state;n?this.setState({show:!1}):this.setState({show:!0})},this.handleTreeItemClick=(e,t)=>{"folder"!==t.type&&(this.props.onPageSelect(t),this.setState({show:!1}))},this.handleExitPreview=()=>{l.isLarkApplets?tt&&tt.miniProgram&&tt.miniProgram.navigateBack&&tt.miniProgram.navigateBack():l.isLarkBrowser?window.h5sdk&&window.h5sdk.ready((function(){window.h5sdk.biz.navigation.close({})})):window.ReactNativeWebView&&window.ReactNativeWebView.postMessage("exit")},this.renderItem=e=>r.createElement("div",{className:"tree-item-render"},"folder"===e.type&&r.createElement(a.Icon,{cls:"tree_index"}),r.createElement("div",{className:"text"},e.name),e.hidden&&r.createElement(a.Icon,{cls:"icon_tree_unview"}));const{selected:t,app:n}=this.props;this.state={treeData:l.parseDataToRPTree(t||"",n.children,!0,!this.shouldHidePage),selected:e.selected},this.selfRef=r.createRef()}get shouldHidePage(){const{role:e}=this.props;return l.shouldHiddenPageVisible(e)}static getDerivedStateFromProps(e,t){const{selected:n,app:r,role:o}=e;return t.treeData&&n===t.selected?t:{treeData:l.parseDataToRPTree(n||"",r.children,!0,!l.shouldHiddenPageVisible(o)),selected:e.selected}}componentDidMount(){window.addEventListener("touchstart",this.handleTouchStart),document.addEventListener("touchmove",this.handleTouchMove),window.addEventListener("touchend",this.handleTouchEnd,{capture:!0})}componentWillUnmount(){window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd,{capture:!0})}render(){const{app:e}=this.props,{show:t}=this.state;return r.createElement("div",{className:o.default("mobile-tree-panel",{show:t}),onClick:this.handleCollapseChange},r.createElement("div",{className:"content",onTouchStart:this.handleContentTouch},r.createElement("div",{className:"app-title"},r.createElement("div",{className:"title-content"},r.createElement("div",{className:"rp-logo"}),r.createElement("div",{className:"app-info"},r.createElement("div",{className:"app-name"},e.name),r.createElement("div",{className:"page-count"},c.default("application.pageCount2",s.getAllPageCount(e.children)))))),r.createElement(i.Tree,{items:this.state.treeData,itemHeight:40,onItemClick:this.handleTreeItemClick,itemRender:this.renderItem}),this.allowExit&&r.createElement("div",{className:"bottom"},l.isLarkApplets||u.getOSSystem()!==d.OSSystem.iOS?r.createElement(i.Button,{theme:"border",className:"exit-button",onClick:this.handleExitPreview},c.default("general.exit")):r.createElement("div",{className:"tree-exit-preview-ios"},r.createElement("div",{className:"tree-exit-preview-ios"},r.createElement(a.Icon,{cls:"icon_right",size:22}),r.createElement("div",{className:"text"},c.default("preview.iosExitText")))))))}}h.defaultProps={},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OSSystem=void 0,function(e){e.macOS="macOS",e.Windows="windows",e.Android="android",e.Linux="linux",e.iOS="ios",e.Unknown="unknown"}(t.OSSystem||(t.OSSystem={}))},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorTypes=void 0;const r=n(0),o=n(4),i=n(22);n(1788);const a=n(o.languageManager.isZHLanguage?1789:1790),s=n(1791),l=n(1792),c=n(1793);var u;!function(e){e.isExist="isExist",e.isLinkValid="isLinkValid",e.isPrivateDeployment="isPrivateDeployment"}(u=t.errorTypes||(t.errorTypes={}));class d extends r.Component{constructor(e){super(e),this.handleBackToHome=()=>{window.location.href="/app"}}render(){const{errorType:e}=this.props,t=e===u.isExist;return r.createElement("div",{className:"project-not-exist-wrapper"},r.createElement("img",{src:{DEV_MODE:!1,isPrivateDeployment:!1,isOfflineDemo:!0}.isHuaWei?s:a,className:{DEV_MODE:!1,isPrivateDeployment:!1,isOfflineDemo:!0}.isHuaWei?"huawei-logo":"mockplus-logo",alt:"mockplusLogo"}),r.createElement("img",{className:"project-not-exist-wrapper-img",src:t?c:l,alt:"errorImg"}),t?r.createElement("h1",null,o.default("preview.projectNotExistOrDeleted")):r.createElement("div",{className:"info-wrapper"},r.createElement("p",null,o.default("preview.noPermissionText")),r.createElement("p",null,o.default("preview.linkHasNotValidText"))),r.createElement(i.Button,{width:"320px",height:"48px",className:"back-to-home-page-btn",onClick:this.handleBackToHome},o.default("application.backToHomePage")))}}t.default=d},function(e,t,n){},function(e,t,n){e.exports=n.p+"assets/1652efb1063d7fdff68724a2e8e252d2.png"},function(e,t,n){e.exports=n.p+"assets/4c55a2989c444ff9baa8448ac2ca3ee7.png"},function(e,t,n){e.exports=n.p+"assets/3e28bd4e4ecccbae0d54db09187db9f8.png"},function(e,t,n){e.exports=n.p+"assets/83f09e2a876a46e791f44f2f89af1661.png"},function(e,t,n){e.exports=n.p+"assets/a551084df2902f43c11037dd680d1034.png"},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Affix",(function(){return De})),n.d(t,"Anchor",(function(){return We})),n.d(t,"AutoComplete",(function(){return fa})),n.d(t,"Alert",(function(){return Ha})),n.d(t,"Avatar",(function(){return ks})),n.d(t,"BackTop",(function(){return Ms})),n.d(t,"Badge",(function(){return Fs})),n.d(t,"Breadcrumb",(function(){return Cu})),n.d(t,"Button",(function(){return vl})),n.d(t,"Calendar",(function(){return yh})),n.d(t,"Card",(function(){return hp})),n.d(t,"Collapse",(function(){return Cp})),n.d(t,"Carousel",(function(){return hf})),n.d(t,"Cascader",(function(){return gm})),n.d(t,"Checkbox",(function(){return Tm})),n.d(t,"Col",(function(){return cp})),n.d(t,"Comment",(function(){return Om})),n.d(t,"ConfigProvider",(function(){return vv})),n.d(t,"DatePicker",(function(){return Hv})),n.d(t,"Descriptions",(function(){return Zv})),n.d(t,"Divider",(function(){return ey})),n.d(t,"Dropdown",(function(){return ty})),n.d(t,"Drawer",(function(){return Ly})),n.d(t,"Empty",(function(){return oe})),n.d(t,"Form",(function(){return mb})),n.d(t,"Grid",(function(){return gb})),n.d(t,"Input",(function(){return am})),n.d(t,"Image",(function(){return ow})),n.d(t,"InputNumber",(function(){return Pw})),n.d(t,"Layout",(function(){return Ew})),n.d(t,"List",(function(){return iC})),n.d(t,"message",(function(){return qg})),n.d(t,"Menu",(function(){return gu})),n.d(t,"Mentions",(function(){return _C})),n.d(t,"Modal",(function(){return WC})),n.d(t,"Statistic",(function(){return m_})),n.d(t,"notification",(function(){return uv})),n.d(t,"PageHeader",(function(){return T_})),n.d(t,"Pagination",(function(){return Zw})),n.d(t,"Popconfirm",(function(){return M_})),n.d(t,"Popover",(function(){return _s})),n.d(t,"Progress",(function(){return J_})),n.d(t,"Radio",(function(){return Q_})),n.d(t,"Rate",(function(){return cx})),n.d(t,"Result",(function(){return gx})),n.d(t,"Row",(function(){return op})),n.d(t,"Select",(function(){return ia})),n.d(t,"Skeleton",(function(){return r_})),n.d(t,"Slider",(function(){return Kx})),n.d(t,"Space",(function(){return Jx})),n.d(t,"Spin",(function(){return Dw})),n.d(t,"Steps",(function(){return rS})),n.d(t,"Switch",(function(){return lS})),n.d(t,"Table",(function(){return lP})),n.d(t,"Transfer",(function(){return xP})),n.d(t,"Tree",(function(){return yT})),n.d(t,"TreeSelect",(function(){return UT})),n.d(t,"Tabs",(function(){return Xh})),n.d(t,"Tag",(function(){return kv})),n.d(t,"TimePicker",(function(){return JT})),n.d(t,"Timeline",(function(){return nE})),n.d(t,"Tooltip",(function(){return ys})),n.d(t,"Typography",(function(){return zE})),n.d(t,"Upload",(function(){return PO})),n.d(t,"version",(function(){return TO}));var r=n(1);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var l=n(239);function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(l.a)(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=n(636),h=n.n(d),p=n(9);function f(e,t){return!t||"object"!==h()(t)&&"function"!=typeof t?Object(p.a)(e):t}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=n(0),y=n.n(v),b=n(2),w=n.n(b);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=n(15),P=n.n(k);function T(e){return e instanceof HTMLElement?e:P.a.findDOMNode(e)}var E=n(117);function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return y.a.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(O(e)):Object(E.isFragment)(e)&&e.props?n=n.concat(O(e.props.children,t)):n.push(e))})),n}var M={};function A(e,t){0}function D(e,t){0}function I(e,t,n){t||M[n]||(e(!1,n),M[n]=!0)}function L(e,t){I(D,e,t)}var N=function(e,t){I(A,e,t)};function j(e,t){"function"==typeof e?e(t):"object"===g(e)&&e&&"current"in e&&(e.current=t)}function R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){j(t,e)}))}}function z(e){var t,n,r=Object(E.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}var F=n(109),B=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,o=r.getBoundingClientRect(),i=o.width,a=o.height,s=r.offsetWidth,l=r.offsetHeight,c=Math.floor(i),u=Math.floor(a);if(e.state.width!==c||e.state.height!==u||e.state.offsetWidth!==s||e.state.offsetHeight!==l){var d={width:c,height:u,offsetWidth:s,offsetHeight:l};e.setState(d),n&&Promise.resolve().then((function(){n(S(S({},d),{},{offsetWidth:s,offsetHeight:l}),r)}))}},e.setChildNode=function(t){e.childNode=t},e}return s(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=T(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new F.default(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=O(this.props.children);if(e.length>1)N(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===e.length)return N(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var t=e[0];if(v.isValidElement(t)&&z(t)){var n=t.ref;e[0]=v.cloneElement(t,{ref:R(n,this.setChildNode)})}return 1===e.length?e[0]:e.map((function(e,t){return!v.isValidElement(e)||"key"in e&&null!==e.key?e:v.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(v.Component);B.displayName="ResizeObserver";var H=B,V={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},Y={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},W={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},U={lang:Object(r.a)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Y),timePickerLocale:Object(r.a)({},W)},K=U,G="${label} is not a valid ${type}",q={locale:"en",Pagination:V,DatePicker:U,TimePicker:W,Calendar:K,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:G,method:G,array:G,object:G,number:G,date:G,boolean:G,integer:G,float:G,regexp:G,email:G,url:G,hex:G},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},$=q,X=Object(v.createContext)(void 0),J=function(e){c(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||$[t||"global"],o=this.context,i=t&&o?o[t]:{};return Object(r.a)(Object(r.a)({},"function"==typeof n?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?$.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(v.Component);J.defaultProps={componentName:"global"},J.contextType=X;var Z=function(){var e=(0,v.useContext(ae).getPrefixCls)("empty-img-default");return v.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(24 31.67)"},v.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),v.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),v.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),v.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),v.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),v.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),v.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},v.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),v.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Q=function(){var e=(0,v.useContext(ae).getPrefixCls)("empty-img-simple");return v.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},v.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),v.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},v.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),v.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},te=v.createElement(Z,null),ne=v.createElement(Q,null),re=function(e){var t=e.className,n=e.prefixCls,i=e.image,a=void 0===i?te:i,s=e.description,l=e.children,c=e.imageStyle,u=ee(e,["className","prefixCls","image","description","children","imageStyle"]),d=v.useContext(ae),h=d.getPrefixCls,p=d.direction;return v.createElement(J,{componentName:"Empty"},(function(e){var i,d=h("empty",n),f=void 0!==s?s:e.description,m="string"==typeof f?f:"empty",g=null;return g="string"==typeof a?v.createElement("img",{alt:m,src:a}):a,v.createElement("div",Object(r.a)({className:w()(d,(i={},o(i,"".concat(d,"-normal"),a===ne),o(i,"".concat(d,"-rtl"),"rtl"===p),i),t)},u),v.createElement("div",{className:"".concat(d,"-image"),style:c},g),f&&v.createElement("div",{className:"".concat(d,"-description")},f),l&&v.createElement("div",{className:"".concat(d,"-footer")},l))}))};re.PRESENTED_IMAGE_DEFAULT=te,re.PRESENTED_IMAGE_SIMPLE=ne;var oe=re,ie=function(e){return v.createElement(se,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return v.createElement(oe,{image:oe.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(oe,{image:oe.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return v.createElement(oe,null)}}))},ae=v.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:ie}),se=ae.Consumer;function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ue(e,t){if(e){if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}function de(e){return function(e){if(Array.isArray(e))return le(e)}(e)||ce(e)||ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var he=function(e){return+setTimeout(e,16)},pe=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(he=function(e){return window.requestAnimationFrame(e)},pe=function(e){return window.cancelAnimationFrame(e)});var fe=0,me=new Map;function ge(e){me.delete(e)}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=fe+=1;function r(t){if(0===t)ge(n),e();else{var o=he((function(){r(t-1)}));me.set(n,o)}}return r(t),n}function ye(e){var t,n=function(n){return function(){t=null,e.apply(void 0,de(n))}},r=function(){if(null==t){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=ve(n(r))}};return r.cancel=function(){return ve.cancel(t)},r}function be(){return function(e,t,n){var r=n.value,o=!1;return{configurable:!0,get:function(){if(o||this===e.prototype||this.hasOwnProperty(t))return r;var n=ye(r.bind(this));return o=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),o=!1,n}}}}function we(e,t,n,r){var o=P.a.unstable_batchedUpdates?function(e){P.a.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o)}}}function Ce(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function _e(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function xe(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return n+(window.innerHeight-t.bottom)}ve.cancel=function(e){var t=me.get(e);return ge(t),pe(t)};var Se=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],ke=[];function Pe(e,t){if(e){var n=ke.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},ke.push(n),Se.forEach((function(t){n.eventHandlers[t]=we(e,t,(function(){n.affixList.forEach((function(e){e.lazyUpdatePosition()}))}))})))}}function Te(e){var t=ke.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(ke=ke.filter((function(e){return e!==t})),Se.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}var Ee,Oe=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":g(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};function Me(){return"undefined"!=typeof window?window:null}!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(Ee||(Ee={}));var Ae=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={status:Ee.None,lastAffix:!1,prevTarget:null},e.getOffsetTop=function(){var t=e.props.offsetBottom,n=e.props.offsetTop;return void 0===t&&void 0===n&&(n=0),n},e.getOffsetBottom=function(){return e.props.offsetBottom},e.savePlaceholderNode=function(t){e.placeholderNode=t},e.saveFixedNode=function(t){e.fixedNode=t},e.measure=function(){var t=e.state,n=t.status,r=t.lastAffix,o=e.props.onChange,i=e.getTargetFunc();if(n===Ee.Prepare&&e.fixedNode&&e.placeholderNode&&i){var a=e.getOffsetTop(),s=e.getOffsetBottom(),l=i();if(l){var c={status:Ee.None},u=Ce(l),d=Ce(e.placeholderNode),h=_e(d,u,a),p=xe(d,u,s);void 0!==h?(c.affixStyle={position:"fixed",top:h,width:d.width,height:d.height},c.placeholderStyle={width:d.width,height:d.height}):void 0!==p&&(c.affixStyle={position:"fixed",bottom:p,width:d.width,height:d.height},c.placeholderStyle={width:d.width,height:d.height}),c.lastAffix=!!c.affixStyle,o&&r!==c.lastAffix&&o(c.lastAffix),e.setState(c)}}},e.prepareMeasure=function(){e.setState({status:Ee.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.render=function(){var t=e.context.getPrefixCls,n=e.state,i=n.affixStyle,a=n.placeholderStyle,s=e.props,l=s.prefixCls,c=s.children,u=w()(o({},t("affix",l),!!i)),d=_(e.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return v.createElement(H,{onResize:function(){e.updatePosition()}},v.createElement("div",Object(r.a)({},d,{ref:e.savePlaceholderNode}),i&&v.createElement("div",{style:a,"aria-hidden":"true"}),v.createElement("div",{className:u,ref:e.saveFixedNode,style:i},v.createElement(H,{onResize:function(){e.updatePosition()}},c))))},e}return s(n,[{key:"getTargetFunc",value:function(){var e=this.context.getTargetContainer,t=this.props.target;return void 0!==t?t:e||Me}},{key:"componentDidMount",value:function(){var e=this,t=this.getTargetFunc();t&&(this.timeout=setTimeout((function(){Pe(t(),e),e.updatePosition()})))}},{key:"componentDidUpdate",value:function(e){var t=this.state.prevTarget,n=this.getTargetFunc(),r=null;n&&(r=n()||null),t!==r&&(Te(this),r&&(Pe(r,this),this.updatePosition()),this.setState({prevTarget:r})),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),Te(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var e=this.getTargetFunc(),t=this.state.affixStyle;if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),o=e();if(o&&this.placeholderNode){var i=Ce(o),a=Ce(this.placeholderNode),s=_e(a,i,n),l=xe(a,i,r);if(void 0!==s&&t.top===s||void 0!==l&&t.bottom===l)return}}this.prepareMeasure()}}]),n}(v.Component);Ae.contextType=ae,Oe([be()],Ae.prototype,"updatePosition",null),Oe([be()],Ae.prototype,"lazyUpdatePosition",null);var De=Ae;function Ie(e){return null!=e&&e===e.window}function Le(e,t){var n;if("undefined"==typeof window)return 0;var r=t?"scrollTop":"scrollLeft",o=0;return Ie(e)?o=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?o=e.documentElement[r]:e&&(o=e[r]),e&&!Ie(e)&&"number"!=typeof o&&(o=null===(n=(e.ownerDocument||e).documentElement)||void 0===n?void 0:n[r]),o}function Ne(e,t,n,r){var o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,o=t.callback,i=t.duration,a=void 0===i?450:i,s=r(),l=Le(s,!0),c=Date.now(),u=function t(){var n=Date.now()-c,r=Ne(n>a?a:n,l,e,a);Ie(s)?s.scrollTo(window.pageXOffset,r):s instanceof HTMLDocument||"HTMLDocument"===s.constructor.name?s.documentElement.scrollTop=r:s.scrollTop=r,n<a?ve(t):"function"==typeof o&&o()};ve(u)}var Re=v.createContext(null);function ze(){return window}function Fe(e,t){if(!e.getClientRects().length)return 0;var n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}var Be=/#(\S+)$/,He=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={activeLink:null},e.wrapperRef=v.createRef(),e.links=[],e.registerLink=function(t){e.links.includes(t)||e.links.push(t)},e.unregisterLink=function(t){var n=e.links.indexOf(t);-1!==n&&e.links.splice(n,1)},e.getContainer=function(){var t=e.context.getTargetContainer;return(e.props.getContainer||t||ze)()},e.handleScrollTo=function(t){var n=e.props,r=n.offsetTop,o=n.targetOffset;e.setCurrentActiveLink(t);var i=e.getContainer(),a=Le(i,!0),s=Be.exec(t);if(s){var l=document.getElementById(s[1]);if(l){var c=a+Fe(l,i);c-=void 0!==o?o:r||0,e.animating=!0,je(c,{callback:function(){e.animating=!1},getContainer:e.getContainer})}}},e.saveInkNode=function(t){e.inkNode=t},e.setCurrentActiveLink=function(t){var n=e.state.activeLink,r=e.props.onChange;n!==t&&(e.setState({activeLink:t}),null==r||r(t))},e.handleScroll=function(){if(!e.animating){var t=e.props,n=t.offsetTop,r=t.bounds,o=t.targetOffset,i=e.getCurrentAnchor(void 0!==o?o:n||0,r);e.setCurrentActiveLink(i)}},e.updateInk=function(){var t=Object(p.a)(e),n=t.prefixCls,r=t.wrapperRef.current,o=null==r?void 0:r.getElementsByClassName("".concat(n,"-link-title-active"))[0];o&&(e.inkNode.style.top="".concat(o.offsetTop+o.clientHeight/2-4.5,"px"))},e.render=function(){var t=e.context,n=t.getPrefixCls,i=t.direction,a=e.props,s=a.prefixCls,l=a.className,c=void 0===l?"":l,u=a.style,d=a.offsetTop,h=a.affix,p=a.showInkInFixed,f=a.children,m=e.state.activeLink,g=n("anchor",s);e.prefixCls=g;var y=w()("".concat(g,"-ink-ball"),{visible:m}),b=w()("".concat(g,"-wrapper"),o({},"".concat(g,"-rtl"),"rtl"===i),c),C=w()(g,{fixed:!h&&!p}),_=Object(r.a)({maxHeight:d?"calc(100vh - ".concat(d,"px)"):"100vh"},u),x=v.createElement("div",{ref:e.wrapperRef,className:b,style:_},v.createElement("div",{className:C},v.createElement("div",{className:"".concat(g,"-ink")},v.createElement("span",{className:y,ref:e.saveInkNode})),f));return v.createElement(Re.Provider,{value:{registerLink:e.registerLink,unregisterLink:e.unregisterLink,activeLink:e.state.activeLink,scrollTo:e.handleScrollTo,onClick:e.props.onClick}},h?v.createElement(De,{offsetTop:d,target:e.getContainer},x):x)},e}return s(n,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=we(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var e=this.getContainer();this.scrollContainer!==e&&(this.scrollContainer=e,this.scrollEvent.remove(),this.scrollEvent=we(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=this.props.getCurrentAnchor;if("function"==typeof n)return n();var r=[],o=this.getContainer();if(this.links.forEach((function(n){var i=Be.exec(n.toString());if(i){var a=document.getElementById(i[1]);if(a){var s=Fe(a,o);s<e+t&&r.push({link:n,top:s})}}})),r.length){var i=r.reduce((function(e,t){return t.top>e.top?t:e}));return i.link}return""}}]),n}(v.Component);He.defaultProps={affix:!0,showInkInFixed:!1},He.contextType=ae;var Ve=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).handleClick=function(t){var n=e.context,r=n.scrollTo,o=n.onClick,i=e.props,a=i.href,s=i.title;null==o||o(t,{title:s,href:a}),r(a)},e.renderAnchorLink=function(t){var n=t.getPrefixCls,r=e.props,i=r.prefixCls,a=r.href,s=r.title,l=r.children,c=r.className,u=r.target,d=n("anchor",i),h=e.context.activeLink===a,p=w()("".concat(d,"-link"),o({},"".concat(d,"-link-active"),h),c),f=w()("".concat(d,"-link-title"),o({},"".concat(d,"-link-title-active"),h));return v.createElement("div",{className:p},v.createElement("a",{className:f,href:a,title:"string"==typeof s?s:"",target:u,onClick:e.handleClick},s),l)},e}return s(n,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(e){var t=e.href,n=this.props.href;t!==n&&(this.context.unregisterLink(t),this.context.registerLink(n))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return v.createElement(se,null,this.renderAnchorLink)}}]),n}(v.Component);Ve.defaultProps={href:"#"},Ve.contextType=Re;var Ye=Ve;He.Link=Ye;var We=He;function Ue(e){if(Array.isArray(e))return e}function Ke(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ge(e,t){return Ue(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||ue(e,t)||Ke()}var qe=n(60);function $e(e,t){if(null==e)return{};var n,r,o=Object(qe.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Xe.F1&&t<=Xe.F12)return!1;switch(t){case Xe.ALT:case Xe.CAPS_LOCK:case Xe.CONTEXT_MENU:case Xe.CTRL:case Xe.DOWN:case Xe.END:case Xe.ESC:case Xe.HOME:case Xe.INSERT:case Xe.LEFT:case Xe.MAC_FF_META:case Xe.META:case Xe.NUMLOCK:case Xe.NUM_CENTER:case Xe.PAGE_DOWN:case Xe.PAGE_UP:case Xe.PAUSE:case Xe.PRINT_SCREEN:case Xe.RIGHT:case Xe.SHIFT:case Xe.UP:case Xe.WIN_KEY:case Xe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Xe.ZERO&&e<=Xe.NINE)return!0;if(e>=Xe.NUM_ZERO&&e<=Xe.NUM_MULTIPLY)return!0;if(e>=Xe.A&&e<=Xe.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Xe.SPACE:case Xe.QUESTION_MARK:case Xe.NUM_PLUS:case Xe.NUM_MINUS:case Xe.NUM_PERIOD:case Xe.NUM_DIVISION:case Xe.SEMICOLON:case Xe.DASH:case Xe.EQUALS:case Xe.COMMA:case Xe.PERIOD:case Xe.SLASH:case Xe.APOSTROPHE:case Xe.SINGLE_QUOTE:case Xe.OPEN_SQUARE_BRACKET:case Xe.BACKSLASH:case Xe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Je=Xe;function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function tt(e,t){return 0===e.indexOf(t)}function nt(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Qe({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||tt(n,"aria-"))||t.data&&tt(n,"data-")||t.attr&&et.includes(n))&&(r[n]=e[n])})),r}function rt(e,t,n){var r=v.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st=v.forwardRef((function(e,t){var n=e.height,r=e.offset,o=e.children,i=e.prefixCls,a=e.onInnerResize,s={},l={display:"flex",flexDirection:"column"};return void 0!==r&&(s={height:n,position:"relative",overflow:"hidden"},l=it(it({},l),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),v.createElement("div",{style:s},v.createElement(H,{onResize:function(e){e.offsetHeight&&a&&a()}},v.createElement("div",{style:l,className:w()(at({},"".concat(i,"-holder-inner"),i)),ref:t},o)))}));st.displayName="Filler";var lt=st;function ct(e){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e,t){return(ht=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mt(e);if(t){var o=mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ft(this,n)}}function ft(e,t){return!t||"object"!==ct(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mt(e){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gt(e){return"touches"in e?e.touches[0].pageY:e.pageY}var vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ht(e,t)}(i,e);var t,n,r,o=pt(i);function i(){var e;return ut(this,i),(e=o.apply(this,arguments)).moveRaf=null,e.scrollbarRef=v.createRef(),e.thumbRef=v.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),e.scrollbarRef.current.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp),ve.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:gt(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,r=n.dragging,o=n.pageY,i=n.startTop,a=e.props.onScroll;if(ve.cancel(e.moveRaf),r){var s=i+(gt(t)-o),l=e.getEnableScrollRange(),c=e.getEnableHeightRange(),u=c?s/c:0,d=Math.ceil(u*l);e.moveRaf=ve((function(){a(d)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,r=n/t.count*10;return r=Math.max(r,20),r=Math.min(r,n/2),Math.floor(r)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),r=e.getEnableHeightRange();return 0===t||0===n?0:t/n*r},e.getVisible=function(){var t=e.state.visible,n=e.props;return!(n.height>=n.scrollHeight)&&t},e}return t=i,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e,t,n,r=this.state.dragging,o=this.props.prefixCls,i=this.getSpinHeight(),a=this.getTop(),s=this.getVisible();return v.createElement("div",{ref:this.scrollbarRef,className:"".concat(o,"-scrollbar"),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:s?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},v.createElement("div",{ref:this.thumbRef,className:w()("".concat(o,"-scrollbar-thumb"),(e={},t="".concat(o,"-scrollbar-thumb-moving"),n=r,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),style:{width:"100%",height:i,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&dt(t.prototype,n),r&&dt(t,r),i}(v.Component);function yt(e){var t=e.children,n=e.setRef,r=v.useCallback((function(e){n(e)}),[]);return v.cloneElement(t,{ref:r})}function bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var wt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maps={},this.maps.prototype=null}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}])&&bt(t.prototype,n),r&&bt(t,r),e}();function Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _t(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _t(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function St(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pt(e,t,n){var r=St(v.useState(e),2),o=r[0],i=r[1],a=St(v.useState(null),2),s=a[0],l=a[1];return v.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var h=l(r[d]);if(h!==l(o[d])){c=d,u=u||h!==l(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),l(e[r.index])),i(e)}),[e]),[s]}function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Et="object"===("undefined"==typeof navigator?"undefined":Tt(navigator))&&/Firefox/i.test(navigator.userAgent),Ot=function(e,t){var n=Object(v.useRef)(!1),r=Object(v.useRef)(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)}var i=Object(v.useRef)({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e<0&&i.current.top||e>0&&i.current.bottom;return t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||o(),!n.current&&a}};function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jt=[],Rt={overflowY:"auto",overflowAnchor:"none"};function zt(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,h=e.itemKey,p=e.virtual,f=e.component,m=void 0===f?"div":f,g=e.onScroll,y=Nt(e,["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll"]),b=!(!1===p||!i||!a),C=b&&u&&a*u.length>i,_=It(Object(v.useState)(0),2),x=_[0],S=_[1],k=It(Object(v.useState)(!1),2),P=k[0],E=k[1],O=w()(r,o),M=u||jt,A=Object(v.useRef)(),D=Object(v.useRef)(),I=Object(v.useRef)(),L=v.useCallback((function(e){return"function"==typeof h?h(e):null==e?void 0:e[h]}),[h]),N={getKey:L};function j(e){S((function(t){var n=function(e){var t=e;Number.isNaN(J.current)||(t=Math.min(t,J.current));return t=Math.max(t,0)}("function"==typeof e?e(t):e);return A.current.scrollTop=n,n}))}var R=Object(v.useRef)({start:0,end:M.length}),z=Object(v.useRef)(),F=It(Pt(M,L),1)[0];z.current=F;var B=It(function(e,t,n){var r=Ct(v.useState(0),2),o=r[0],i=r[1],a=Object(v.useRef)(new Map),s=Object(v.useRef)(new wt),l=Object(v.useRef)(0);function c(){l.current+=1;var e=l.current;Promise.resolve().then((function(){e===l.current&&(a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=T(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),i((function(e){return e+1})))}))}return[function(r,o){var i=e(r),s=a.current.get(i);o?(a.current.set(i,o),c()):a.current.delete(i),!s!=!o&&(o?null==t||t(r):null==n||n(r))},c,s.current,o]}(L,null,null),4),H=B[0],V=B[1],Y=B[2],W=B[3],U=v.useMemo((function(){if(!b)return{scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};var e;if(!C)return{scrollHeight:(null===(e=D.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:M.length-1,offset:void 0};for(var t,n,r,o=0,s=M.length,l=0;l<s;l+=1){var c=M[l],u=L(c),d=Y.get(u),h=o+(void 0===d?a:d);h>=x&&void 0===t&&(t=l,n=o),h>x+i&&void 0===r&&(r=l),o=h}return void 0===t&&(t=0,n=0),void 0===r&&(r=M.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,M.length),offset:n}}),[C,b,x,M,W,i]),K=U.scrollHeight,G=U.start,q=U.end,$=U.offset;R.current.start=G,R.current.end=q;var X=K-i,J=Object(v.useRef)(X);J.current=X;var Z=x<=0,Q=x>=X,ee=Ot(Z,Q);var te=It(function(e,t,n,r){var o=Object(v.useRef)(0),i=Object(v.useRef)(null),a=Object(v.useRef)(null),s=Object(v.useRef)(!1),l=Ot(t,n);return[function(t){if(e){ve.cancel(i.current);var n=t.deltaY;o.current+=n,a.current=n,l(n)||(Et||t.preventDefault(),i.current=ve((function(){var e=s.current?10:1;r(o.current*e),o.current=0})))}},function(t){e&&(s.current=t.detail===a.current)}]}(b,Z,Q,(function(e){j((function(t){return t+e}))})),2),ne=te[0],re=te[1];!function(e,t,n){var r,o=Object(v.useRef)(!1),i=Object(v.useRef)(0),a=Object(v.useRef)(null),s=Object(v.useRef)(null),l=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=14/15,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},c=function(){o.current=!1,r()},u=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c))};r=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c))},v.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",u),function(){t.current.removeEventListener("touchstart",u),r(),clearInterval(s.current)}}),[e])}(b,A,(function(e,t){return!ee(e,t)&&(ne({preventDefault:function(){},deltaY:e}),!0)})),v.useLayoutEffect((function(){function e(e){b&&e.preventDefault()}return A.current.addEventListener("wheel",ne),A.current.addEventListener("DOMMouseScroll",re),A.current.addEventListener("MozMousePixelScroll",e),function(){A.current.removeEventListener("wheel",ne),A.current.removeEventListener("DOMMouseScroll",re),A.current.removeEventListener("MozMousePixelScroll",e)}}),[b]);var oe=function(e,t,n,r,o,i,a,s){var l=v.useRef();return function(c){if(null!=c){if(ve.cancel(l.current),"number"==typeof c)a(c);else if(c&&"object"===xt(c)){var u,d=c.align;u="index"in c?c.index:t.findIndex((function(e){return o(e)===c.key}));var h=c.offset,p=void 0===h?0:h;!function s(c,h){if(!(c<0)&&e.current){var f=e.current.clientHeight,m=!1,g=h;if(f){for(var v=h||d,y=0,b=0,w=0,C=Math.min(t.length,u),_=0;_<=C;_+=1){var x=o(t[_]);b=y;var S=n.get(x);y=w=b+(void 0===S?r:S),_===u&&void 0===S&&(m=!0)}var k=null;switch(v){case"top":k=b-p;break;case"bottom":k=w-f+p;break;default:var P=e.current.scrollTop;b<P?g="top":w>P+f&&(g="bottom")}null!==k&&k!==e.current.scrollTop&&a(k)}l.current=ve((function(){m&&i(),s(c-1,g)}))}}(3)}}else s()}}(A,M,Y,a,L,V,j,(function(){var e;null===(e=I.current)||void 0===e||e.delayHidden()}));v.useImperativeHandle(t,(function(){return{scrollTo:oe}}));var ie=function(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=o(e,t+n,{}),s=a(e);return v.createElement(yt,{key:s,setRef:function(t){return r(e,t)}},i)}))}(M,G,q,H,d,N),ae=null;return i&&(ae=At(Dt({},l?"height":"maxHeight",i),Rt),b&&(ae.overflowY="hidden",P&&(ae.pointerEvents="none"))),v.createElement("div",Object.assign({style:At(At({},c),{},{position:"relative"}),className:O},y),v.createElement(m,{className:"".concat(r,"-holder"),style:ae,ref:A,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==x&&j(t),null==g||g(e)}},v.createElement(lt,{prefixCls:r,height:K,offset:$,onInnerResize:V,ref:D},ie)),b&&v.createElement(vt,{ref:I,prefixCls:r,scrollTop:x,height:i,scrollHeight:K,count:M.length,onScroll:function(e){j(e)},onStartMove:function(){E(!0)},onStopMove:function(){E(!1)}}))}var Ft=v.forwardRef(zt);Ft.displayName="List";var Bt=Ft,Ht=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,s=e.children;return t="function"==typeof r?r(o):r,v.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:v.createElement("span",{className:w()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},Vt=function(e,t){var n=e.prefixCls,i=e.id,a=e.flattenOptions,s=e.childrenAsData,l=e.values,c=e.searchValue,u=e.multiple,d=e.defaultActiveFirstOption,h=e.height,p=e.itemHeight,f=e.notFoundContent,m=e.open,g=e.menuItemSelectedIcon,y=e.virtual,b=e.onSelect,C=e.onToggleOpen,_=e.onActiveValue,x=e.onScroll,S=e.onMouseEnter,k="".concat(n,"-item"),P=rt((function(){return a}),[m,a],(function(e,t){return t[0]&&e[1]!==t[1]})),T=v.useRef(null),E=function(e){e.preventDefault()},O=function(e){T.current&&T.current.scrollTo({index:e})},M=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=P[o],a=i.group,s=i.data;if(!a&&!s.disabled)return o}return-1},A=Ge(v.useState((function(){return M(0)})),2),D=A[0],I=A[1],L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];I(e);var n={source:t?"keyboard":"mouse"},r=P[e];r?_(r.data.value,e,n):_(null,-1,n)};v.useEffect((function(){L(!1!==d?M(0):-1)}),[P.length,c]),v.useEffect((function(){var e,t=setTimeout((function(){if(!u&&m&&1===l.size){var e=Array.from(l)[0],t=P.findIndex((function(t){return t.data.value===e}));L(t),O(t)}}));m&&(null===(e=T.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[m]);var N=function(e){void 0!==e&&b(e,{selected:!l.has(e)}),u||C(!1)};if(v.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case Je.UP:case Je.DOWN:var n=0;if(t===Je.UP?n=-1:t===Je.DOWN&&(n=1),0!==n){var r=M(D+n,n);O(r),L(r,!0)}break;case Je.ENTER:var o=P[D];o&&!o.data.disabled?N(o.data.value):N(void 0),m&&e.preventDefault();break;case Je.ESC:C(!1),m&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){O(e)}}})),0===P.length)return v.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(k,"-empty"),onMouseDown:E},f);function j(e){var t=P[e];if(!t)return null;var n=t.data||{},o=n.value,a=n.label,c=n.children,u=nt(n,!0),d=s?c:a;return t?v.createElement("div",Object(r.a)({"aria-label":"string"==typeof d?d:null},u,{key:e,role:"option",id:"".concat(i,"_list_").concat(e),"aria-selected":l.has(o)}),o):null}return v.createElement(v.Fragment,null,v.createElement("div",{role:"listbox",id:"".concat(i,"_list"),style:{height:0,width:0,overflow:"hidden"}},j(D-1),j(D),j(D+1)),v.createElement(Bt,{itemKey:"key",ref:T,data:P,height:h,itemHeight:p,fullHeight:!1,onMouseDown:E,onScroll:x,virtual:y,onMouseEnter:S},(function(e,t){var n,i=e.group,a=e.groupOption,c=e.data,u=c.label,d=c.key;if(i)return v.createElement("div",{className:w()(k,"".concat(k,"-group"))},void 0!==u?u:d);var h=c.disabled,p=c.value,f=c.title,m=c.children,y=c.style,b=c.className,C=$e(c,["disabled","value","title","children","style","className"]),_=l.has(p),x="".concat(k,"-option"),S=w()(k,x,b,(o(n={},"".concat(x,"-grouped"),a),o(n,"".concat(x,"-active"),D===t&&!h),o(n,"".concat(x,"-disabled"),h),o(n,"".concat(x,"-selected"),_),n)),P=!g||"function"==typeof g||_,T=(s?m:u)||p,E="string"==typeof T||"number"==typeof T?T.toString():void 0;return void 0!==f&&(E=f),v.createElement("div",Object(r.a)({},C,{"aria-selected":_,className:S,title:E,onMouseMove:function(){D===t||h||L(t)},onClick:function(){h||N(p)},style:y}),v.createElement("div",{className:"".concat(x,"-content")},T),v.isValidElement(g)||_,P&&v.createElement(Ht,{className:"".concat(k,"-option-state"),customizeIcon:g,customizeIconProps:{isSelected:_}},_?"✓":null))})))},Yt=v.forwardRef(Vt);Yt.displayName="OptionList";var Wt=Yt,Ut=function(){return null};Ut.isSelectOption=!0;var Kt=Ut,Gt=function(){return null};Gt.isSelectOptGroup=!0;var qt=Gt;function $t(e){var t=e.key,n=e.props,r=n.children,o=n.value;return S({key:t,value:void 0!==o?o:t,children:r},$e(n,["children","value"]))}function Xt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return O(e).map((function(e,n){if(!v.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,s=$e(i,["children"]);return t||!r?$t(e):S(S({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},s),{},{options:Xt(a)})})).filter((function(e){return e}))}function Jt(e){return Ue(e)||ce(e)||ue(e)||Ke()}function Zt(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Qt(e,t){var n,r=de(t);for(n=e.length-1;n>=0&&e[n].disabled;n-=1);var o=null;return-1!==n&&(o=r[n],r.splice(n,1)),{values:r,removedValue:o}}var en="undefined"!=typeof window&&window.document&&window.document.documentElement,tn=0;function nn(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function rn(e){var t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return N(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function on(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.prevValueOptions,o=void 0===r?[]:r,i=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;i.set(t.value,t)}})),e.map((function(e){var t=i.get(e);return t||(t=S({},o.find((function(t){return t._INTERNAL_OPTION_VALUE_===e})))),rn(t)}))}var an=function(e,t){var n=t.options,r=t.prevValueMap,o=t.labelInValue,i=t.optionLabelProp,a=on([e],n)[0],s={value:e},l=o?r.get(e):void 0;return l&&"object"===g(l)&&"label"in l?(s.label=l.label,a&&"string"==typeof l.label&&"string"==typeof a[i]&&l.label.trim()!==a[i].trim()&&N(!1,"`label` of `value` is not same as `label` in Select options.")):a&&i in a?s.label=a[i]:(s.label=e,s.isCacheable=!0),s.key=s.value,s};function sn(e){return Zt(e).join("")}var ln=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))};function cn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ge(v.useState((function(){return void 0!==o?o:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l;a&&(u=a(u));var d=v.useRef(!0);return v.useEffect((function(){d.current?d.current=!1:void 0===o&&c(o)}),[o]),[u,function(e){c(e),u!==e&&i&&i(e,u)}]}function un(e){var t=e.prefixCls,n=e.item,o=e.renderItem,i=e.responsive,a=e.registerSize,s=e.itemKey,l=e.className,c=e.style,u=e.children,d=e.display,h=e.order,p=e.component,f=$e(e,["prefixCls","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),m=i&&!d;function g(e){a(s,e)}v.useEffect((function(){return function(){g(null)}}),[]);var y=void 0!==n?o(n):u,b=v.createElement(p,Object(r.a)({className:w()(t,l),style:S({opacity:m?.2:1,height:m?0:void 0,overflowY:m?"hidden":void 0,order:i?h:void 0,pointerEvents:m?"none":void 0},c)},f),y);return i&&(b=v.createElement(H,{onResize:function(e){g(e.offsetWidth)}},b)),b}function dn(e){return"+ ".concat(e.length," ...")}function hn(e,t){var n,o,i,a,s,l=e.prefixCls,c=void 0===l?"rc-overflow":l,u=e.data,d=void 0===u?[]:u,h=e.renderItem,p=e.itemKey,f=e.itemWidth,m=void 0===f?10:f,g=e.style,y=e.className,b=e.maxCount,C=e.renderRest,_=void 0===C?dn:C,x=e.renderItemProps,S=e.suffix,k=e.component,P=void 0===k?"div":k,T=e.itemComponent,E=void 0===T?"div":T,O=$e(e,["prefixCls","data","renderItem","itemKey","itemWidth","style","className","maxCount","renderRest","renderItemProps","suffix","component","itemComponent"]),M=(n=Ge(Object(v.useState)({}),2)[1],o=Object(v.useRef)([]),i=Object(v.useRef)(!1),a=0,s=0,Object(v.useEffect)((function(){return function(){i.current=!0}}),[]),function(e){var t=a;return a+=1,o.current.length<t+1&&(o.current[t]=e),[o.current[t],function(e){o.current[t]="function"==typeof e?e(o.current[t]):e,ve.cancel(s),s=ve((function(){i.current||n({})}))}]}),A=Ge(M(0),2),D=A[0],I=A[1],L=Ge(M(new Map),2),N=L[0],j=L[1],R=Ge(M(0),2),z=R[0],F=R[1],B=Ge(M(0),2),V=B[0],Y=B[1],W=Ge(M(0),2),U=W[0],K=W[1],G=Ge(Object(v.useState)(null),2),q=G[0],$=G[1],X=Ge(Object(v.useState)(0),2),J=X[0],Z=X[1],Q=Ge(Object(v.useState)(!1),2),ee=Q[0],te=Q[1],ne="".concat(c,"-item"),re=Math.max(z,V),oe=d.length&&"responsive"===b,ie=oe||"number"==typeof b&&d.length>b,ae=Object(v.useMemo)((function(){var e=d;return oe?e=d.slice(0,Math.min(d.length,D/m)):"number"==typeof b&&(e=d.slice(0,b)),e}),[d,m,D,b,oe]),se=Object(v.useMemo)((function(){return oe?d.slice(J+1):d.slice(ae.length)}),[d,ae,oe,J]),le=Object(v.useCallback)((function(e,t){var n;return"function"==typeof p?p(e):null!==(n=p&&(null==e?void 0:e[p]))&&void 0!==n?n:t}),[p]),ce=Object(v.useCallback)(h||function(e){return e},[h]);function ue(e,t){Z(e),t||te(e<d.length-1)}function de(e,t){j((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function he(e){return N.get(le(ae[e],e))}v.useLayoutEffect((function(){if(D&&re&&ae){var e=U,t=ae.length,n=t-1;if(!t)return ue(0),void $(null);for(var r=0;r<t;r+=1){var o=he(r);if(void 0===o){ue(r-1,!0);break}if(e+=o,r===n-1&&e+he(n)<=D){ue(n),$(null);break}if(e+re>D){ue(r-1),$(e-o-U+V);break}if(r===n){ue(n),$(e-U);break}}S&&he(0)+U>D&&$(null)}}),[D,N,V,U,le,ae]);var pe=ee&&!!se.length,fe={};null!==q&&oe&&(fe={position:"absolute",left:q,top:0});var me={prefixCls:ne,responsive:oe,component:E},ge=v.createElement(P,Object(r.a)({className:w()(c,y),style:g,ref:t},O),ae.map((function(e,t){var n=le(e,t);return v.createElement(un,Object(r.a)({},me,{order:t,key:n,item:e,renderItem:ce,itemKey:n,registerSize:de,display:t<=J},null==x?void 0:x(e)))})),ie?v.createElement(un,Object(r.a)({},me,{order:pe?J:Number.MAX_SAFE_INTEGER,className:"".concat(ne,"-rest"),registerSize:function(e,t){Y(t),F(V)},display:pe}),"function"==typeof _?_(se):_):null,S&&v.createElement(un,Object(r.a)({},me,{order:J,className:"".concat(ne,"-suffix"),registerSize:function(e,t){K(t)},display:!0,style:fe}),S));return oe&&(ge=v.createElement(H,{onResize:function(e,t){I(t.clientWidth)}},ge)),ge}var pn=v.forwardRef(hn);pn.displayName="Overflow";var fn=pn,mn=function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.inputElement,s=e.disabled,l=e.tabIndex,c=e.autoFocus,u=e.autoComplete,d=e.editable,h=e.accessibilityIndex,p=e.value,f=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,y=e.onChange,b=e.onPaste,C=e.onCompositionStart,_=e.onCompositionEnd,x=e.open,k=e.attrs,P=a||v.createElement("input",null),T=P,E=T.ref,O=T.props,M=O.onKeyDown,A=O.onChange,D=O.onMouseDown,I=O.onCompositionStart,L=O.onCompositionEnd,N=O.style;return P=v.cloneElement(P,S(S({id:i,ref:R(t,E),disabled:s,tabIndex:l,autoComplete:u||"off",type:"search",autoFocus:c,className:w()("".concat(o,"-selection-search-input"),null===(n=P)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),style:S(S({},N),{},{opacity:d?null:0}),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":"".concat(i,"_list_").concat(h)},k),{},{value:d?p:"",maxLength:f,readOnly:!d,unselectable:d?null:"on",onKeyDown:function(e){m(e),M&&M(e)},onMouseDown:function(e){g(e),D&&D(e)},onChange:function(e){y(e),A&&A(e)},onCompositionStart:function(e){C(e),I&&I(e)},onCompositionEnd:function(e){_(e),L&&L(e)},onPaste:b}))},gn=v.forwardRef(mn);gn.displayName="Input";var vn=gn;function yn(e,t){en?v.useLayoutEffect(e,t):v.useEffect(e,t)}var bn=function(e){e.preventDefault(),e.stopPropagation()},wn=function(e){var t=e.id,n=e.prefixCls,r=e.values,i=e.open,a=e.searchValue,s=e.inputRef,l=e.placeholder,c=e.disabled,u=e.mode,d=e.showSearch,h=e.autoFocus,p=e.autoComplete,f=e.accessibilityIndex,m=e.tabIndex,g=e.removeIcon,y=e.maxTagCount,b=e.maxTagTextLength,C=e.maxTagPlaceholder,_=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,x=e.tagRender,S=e.onToggleOpen,k=e.onSelect,P=e.onInputChange,T=e.onInputPaste,E=e.onInputKeyDown,O=e.onInputMouseDown,M=e.onInputCompositionStart,A=e.onInputCompositionEnd,D=v.useRef(null),I=Ge(Object(v.useState)(0),2),L=I[0],N=I[1],j=Ge(Object(v.useState)(!1),2),R=j[0],z=j[1],F="".concat(n,"-selection"),B=i||"tags"===u?a:"",H="tags"===u||d&&(i||R);function V(e,t,n,r){return v.createElement("span",{className:w()("".concat(F,"-item"),o({},"".concat(F,"-item-disabled"),t))},v.createElement("span",{className:"".concat(F,"-item-content")},e),n&&v.createElement(Ht,{className:"".concat(F,"-item-remove"),onMouseDown:bn,onClick:r,customizeIcon:g},"×"))}yn((function(){N(D.current.scrollWidth)}),[B]);var Y=v.createElement("div",{className:"".concat(F,"-search"),style:{width:L},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},v.createElement(vn,{ref:s,open:i,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:h,autoComplete:p,editable:H,accessibilityIndex:f,value:B,onKeyDown:E,onMouseDown:O,onChange:P,onPaste:T,onCompositionStart:M,onCompositionEnd:A,tabIndex:m,attrs:nt(e,!0)}),v.createElement("span",{ref:D,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},B," ")),W=v.createElement(fn,{prefixCls:"".concat(F,"-overflow"),data:r,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!c&&!t,a=n;if("number"==typeof b&&("string"==typeof n||"number"==typeof n)){var s=String(a);s.length>b&&(a="".concat(s.slice(0,b),"..."))}var l=function(e){e&&e.stopPropagation(),k(r,{selected:!1})};return"function"==typeof x?function(e,t,n,r,o){return v.createElement("span",{onMouseDown:function(e){bn(e),S(!i)}},x({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,a,t,o,l):V(a,t,o,l)},renderRest:function(e){return V("function"==typeof _?_(e):_,!1)},suffix:Y,itemKey:"key",maxCount:y});return v.createElement(v.Fragment,null,W,!r.length&&!B&&v.createElement("span",{className:"".concat(F,"-placeholder")},l))},Cn=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.accessibilityIndex,c=e.mode,u=e.open,d=e.values,h=e.placeholder,p=e.tabIndex,f=e.showSearch,m=e.searchValue,g=e.activeValue,y=e.maxLength,b=e.onInputKeyDown,w=e.onInputMouseDown,C=e.onInputChange,_=e.onInputPaste,x=e.onInputCompositionStart,S=e.onInputCompositionEnd,k=Ge(v.useState(!1),2),P=k[0],T=k[1],E="combobox"===c,O=E||f,M=d[0],A=m||"";E&&g&&!P&&(A=g),v.useEffect((function(){E&&T(!1)}),[E,g]);var D=!("combobox"!==c&&!u)&&!!A,I=!M||"string"!=typeof M.label&&"number"!=typeof M.label?void 0:M.label.toString();return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(n,"-selection-search")},v.createElement(vn,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:s,editable:O,accessibilityIndex:l,value:A,onKeyDown:b,onMouseDown:w,onChange:function(e){T(!0),C(e)},onPaste:_,onCompositionStart:x,onCompositionEnd:S,tabIndex:p,attrs:nt(e,!0),maxLength:E?y:void 0})),!E&&M&&!D&&v.createElement("span",{className:"".concat(n,"-selection-item"),title:I},M.label),!M&&!D&&v.createElement("span",{className:"".concat(n,"-selection-placeholder")},h))};function _n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=v.useRef(null),n=v.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return v.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var xn=function(e,t){var n=Object(v.useRef)(null),o=Object(v.useRef)(!1),i=e.prefixCls,a=e.multiple,s=e.open,l=e.mode,c=e.showSearch,u=e.tokenWithEnter,d=e.onSearch,h=e.onSearchSubmit,p=e.onToggleOpen,f=e.onInputKeyDown,m=e.domRef;v.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=Ge(_n(0),2),y=g[0],b=g[1],w=Object(v.useRef)(null),C=function(e){!1!==d(e,!0,o.current)&&p(!0)},_={inputRef:n,onInputKeyDown:function(e){var t=e.which;t!==Je.UP&&t!==Je.DOWN||e.preventDefault(),f&&f(e),t!==Je.ENTER||"tags"!==l||o.current||s||h(e.target.value),[Je.SHIFT,Je.TAB,Je.BACKSPACE,Je.ESC].includes(t)||p(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(u&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");w.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&C(e.target.value)}},x=a?v.createElement(wn,Object(r.a)({},e,_)):v.createElement(Cn,Object(r.a)({},e,_));return v.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=y();e.target===n.current||t||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&d("",!0,!1),p())}},x)},Sn=v.forwardRef(xn);Sn.displayName="Selector";var kn=Sn;function Pn(e,t){return!!e&&e.contains(t)}function Tn(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var En=Object(v.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=Object(v.useRef)();Object(v.useImperativeHandle)(t,(function(){return{}}));var a=Object(v.useRef)(!1);return!a.current&&Tn()&&(i.current=r(),a.current=!0),Object(v.useEffect)((function(){null==n||n(e)})),Object(v.useEffect)((function(){return function(){var e,t;null===(e=i.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(i.current)}}),[]),i.current?P.a.createPortal(o,i.current):null}));function On(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Mn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var An,Dn,In,Ln=(An=Tn(),Dn="undefined"!=typeof window?window:{},In={animationend:Mn("Animation","AnimationEnd"),transitionend:Mn("Transition","TransitionEnd")},An&&("AnimationEvent"in Dn||delete In.animationend.animation,"TransitionEvent"in Dn||delete In.transitionend.transition),In),Nn={};if(Tn()){var jn=document.createElement("div");Nn=jn.style}var Rn={};function zn(e){if(Rn[e])return Rn[e];var t=Ln[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Nn)return Rn[e]=t[i],Rn[e]}return""}var Fn=zn("animationend"),Bn=zn("transitionend"),Hn=!(!Fn||!Bn),Vn=Fn||"animationend",Yn=Bn||"transitionend";function Wn(e,t){return e?"object"===g(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function Un(e){var t=Object(v.useRef)(!1),n=Ge(Object(v.useState)(e),2),r=n[0],o=n[1];return Object(v.useEffect)((function(){return function(){t.current=!0}}),[]),[r,function(e){t.current||o(e)}]}var Kn=Tn()?v.useLayoutEffect:v.useEffect,Gn=["prepare","start","active","end"];function qn(e){return"active"===e||"end"===e}var $n=function(e,t){var n=Ge(v.useState("none"),2),r=n[0],o=n[1],i=Ge(function(){var e=v.useRef(null);function t(){ve.cancel(e.current)}return v.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=ve((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),2),a=i[0],s=i[1];return Kn((function(){if("none"!==r&&"end"!==r){var e=Gn.indexOf(r),n=Gn[e+1],i=t(r);!1===i?o(n):a((function(e){function t(){e.isCanceled()||o(n)}!0===i?t():Promise.resolve(i).then(t)}))}}),[e,r]),v.useEffect((function(){return function(){s()}}),[]),[function(){o("prepare")},r]};function Xn(e,t,n,r){var i=r.motionEnter,a=void 0===i||i,s=r.motionAppear,l=void 0===s||s,c=r.motionLeave,u=void 0===c||c,d=r.motionDeadline,h=r.motionLeaveImmediately,p=r.onAppearPrepare,f=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,y=r.onEnterStart,b=r.onLeaveStart,w=r.onAppearActive,C=r.onEnterActive,_=r.onLeaveActive,x=r.onAppearEnd,k=r.onEnterEnd,P=r.onLeaveEnd,T=r.onVisibleChanged,E=Ge(Un(),2),O=E[0],M=E[1],A=Ge(Un("none"),2),D=A[0],I=A[1],L=Ge(Un(null),2),N=L[0],j=L[1],R=Object(v.useRef)(!1),z=Object(v.useRef)(null),F=Object(v.useRef)(!1),B=Object(v.useRef)(null);function H(){return n()||B.current}var V=Object(v.useRef)(!1);function Y(e){var t,n=H();e&&!e.deadline&&e.target!==n||("appear"===D&&V.current?t=null==x?void 0:x(n,e):"enter"===D&&V.current?t=null==k?void 0:k(n,e):"leave"===D&&V.current&&(t=null==P?void 0:P(n,e)),!1===t||F.current||(I("none"),j(null)))}var W=Ge(function(e){var t=Object(v.useRef)(),n=Object(v.useRef)(e);n.current=e;var r=v.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(Yn,r),e.removeEventListener(Vn,r))}return v.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(Yn,r),e.addEventListener(Vn,r),t.current=e)},o]}(Y),1)[0],U=v.useMemo((function(){var e,t,n;switch(D){case"appear":return o(e={},"prepare",p),o(e,"start",g),o(e,"active",w),e;case"enter":return o(t={},"prepare",f),o(t,"start",y),o(t,"active",C),t;case"leave":return o(n={},"prepare",m),o(n,"start",b),o(n,"active",_),n;default:return{}}}),[D]),K=Ge($n(D,(function(e){if("prepare"===e){var t=U.prepare;return!!t&&t(H())}var n;q in U&&j((null===(n=U[q])||void 0===n?void 0:n.call(U,H(),null))||null);return"active"===q&&(W(H()),d>0&&(clearTimeout(z.current),z.current=setTimeout((function(){Y({deadline:!0})}),d))),!0})),2),G=K[0],q=K[1],$=qn(q);V.current=$,Kn((function(){M(t);var n,r=R.current;(R.current=!0,e)&&(!r&&t&&l&&(n="appear"),r&&t&&a&&(n="enter"),(r&&!t&&u||!r&&h&&!t&&u)&&(n="leave"),n&&(I(n),G()))}),[t]),Object(v.useEffect)((function(){("appear"===D&&!l||"enter"===D&&!a||"leave"===D&&!u)&&I("none")}),[l,a,u]),Object(v.useEffect)((function(){return function(){clearTimeout(z.current),F.current=!0}}),[]),Object(v.useEffect)((function(){void 0!==O&&"none"===D&&(null==T||T(O))}),[O,D]);var X=N;return U.prepare&&"start"===q&&(X=S({transition:"none"},X)),[D,q,X,null!=O?O:t]}var Jn=function(e){c(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);var Zn=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===g(e)&&(t=e.transitionSupport);var r=v.forwardRef((function(e,t){var r=e.visible,i=void 0===r||r,a=e.removeOnLeave,s=void 0===a||a,l=e.forceRender,c=e.children,u=e.motionName,d=e.leavedClassName,h=e.eventProps,p=n(e),f=Object(v.useRef)(),m=Object(v.useRef)();var g=Ge(Xn(p,i,(function(){try{return T(f.current||m.current)}catch(e){return null}}),e),4),y=g[0],b=g[1],C=g[2],_=g[3],x=v.useRef(_);_&&(x.current=!0);var k=Object(v.useRef)(t);k.current=t;var P,E=v.useCallback((function(e){f.current=e,j(k.current,e)}),[]),O=S(S({},h),{},{visible:i});if(c)if("none"!==y&&n(e)){var M,A;"prepare"===b?A="prepare":qn(b)?A="active":"start"===b&&(A="start"),P=c(S(S({},O),{},{className:w()(Wn(u,y),(M={},o(M,Wn(u,"".concat(y,"-").concat(A)),A),o(M,u,"string"==typeof u),M)),style:C}),E)}else P=_?c(S({},O),E):!s&&x.current?c(S(S({},O),{},{className:d}),E):l?c(S(S({},O),{},{style:{display:"none"}}),E):null;else P=null;return v.createElement(Jn,{ref:m},P)}));return r.displayName="CSSMotion",r}(Hn);function Qn(e){var t;return S(S({},t=e&&"object"===g(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function er(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Qn)}function tr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=er(e),a=er(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var s=a[i];if(s.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return S(S({},e),{},{status:"add"})}))),r=i),n.push(S(S({},s),{},{status:"keep"})),r+=1,t=!0;break}}t||n.push(S(S({},e),{},{status:"remove"}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return S(S({},e),{},{status:"add"})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var nr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var rr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zn,n=function(e){c(o,e);var n=m(o);function o(){var e;return i(this,o),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:S(S({},e),{},{status:"removed"})}))}}))},e}return s(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,a=o.children,s=o.onVisibleChanged,l=$e(o,["component","children","onVisibleChanged"]),c=i||v.Fragment,u={};return nr.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,v.createElement(c,l,n.map((function(n){var o=n.status,i=$e(n,["status"]),l="add"===o||"keep"===o;return v.createElement(t,Object(r.a)({},u,{key:i.key,visible:l,eventProps:i,onVisibleChanged:function(t){null==s||s(t,{key:i.key}),t||e.removeKey(i.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=er(n);return{keyEntities:tr(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),o}(v.Component);return n.defaultProps={component:"div"},n}(Hn),or=Zn;function ir(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function ar(e){var t=e.prefixCls,n=e.visible,o=e.zIndex,i=e.mask,a=e.maskMotion,s=e.maskAnimation,l=e.maskTransitionName;if(!i)return null;var c={};return(a||l||s)&&(c=S({motionAppear:!0},ir({motion:a,prefixCls:t,transitionName:l,animation:s}))),v.createElement(or,Object(r.a)({},c,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return v.createElement("div",{style:{zIndex:o},className:w()("".concat(t,"-mask"),n)})}))}var sr,lr=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var hr={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function pr(){if(void 0!==sr)return sr;sr="";var e=document.createElement("p").style;for(var t in hr)t+"Transform"in e&&(sr=t);return sr}function fr(){return pr()?"".concat(pr(),"TransitionProperty"):"transitionProperty"}function mr(){return pr()?"".concat(pr(),"Transform"):"transform"}function gr(e,t){var n=fr();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function vr(e,t){var n=mr();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var yr,br=/matrix\((.*)\)/,wr=/matrix3d\((.*)\)/;function Cr(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function _r(e,t,n){var r=n;if("object"!==cr(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):yr(e,t);for(var o in t)t.hasOwnProperty(o)&&_r(e,o,t[o])}function xr(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function Sr(e){return xr(e)}function kr(e){return xr(e,!0)}function Pr(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Sr(r),t.top+=kr(r),t}function Tr(e){return null!=e&&e==e.window}function Er(e){return Tr(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Or=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Mr=/^(top|right|bottom|left)$/,Ar="left";function Dr(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Ir(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Lr(e,t,n){"static"===_r(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=Dr("left",n),a=Dr("top",n),s=Ir(i),l=Ir(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var c,u="",d=Pr(e);("left"in t||"top"in t)&&(u=(c=e).style.transitionProperty||c.style[fr()]||"",gr(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),Cr(e);var h=Pr(e),p={};for(var f in t)if(t.hasOwnProperty(f)){var m=Dr(f,n),g="left"===f?r:o,v=d[f]-h[f];p[m]=m===f?g+v:g-v}_r(e,p),Cr(e),("left"in t||"top"in t)&&gr(e,u);var y={};for(var b in t)if(t.hasOwnProperty(b)){var w=Dr(b,n),C=t[b]-d[b];y[w]=b===w?p[w]+C:p[w]-C}_r(e,y)}function Nr(e,t){var n=Pr(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(mr());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(mr());if(r&&"none"!==r){var o,i=r.match(br);if(i)(o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,vr(e,"matrix(".concat(o.join(","),")"));else(o=r.match(wr)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,vr(e,"matrix3d(".concat(o.join(","),")"))}else vr(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function jr(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Rr(e){return"border-box"===yr(e,"boxSizing")}"undefined"!=typeof window&&(yr=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Er(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(Or.test(n)&&!Mr.test(t)){var r=e.style,o=r[Ar],i=e.runtimeStyle[Ar];e.runtimeStyle[Ar]=e.currentStyle[Ar],r[Ar]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[Ar]=o,e.runtimeStyle[Ar]=i}return""===n?"auto":n});var zr=["margin","border","padding"];function Fr(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function Br(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var s=void 0;s="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(yr(e,s))||0}return a}var Hr={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Vr(e,t,n){var r=n;if(Tr(e))return"width"===t?Hr.viewportWidth(e):Hr.viewportHeight(e);if(9===e.nodeType)return"width"===t?Hr.docWidth(e):Hr.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=(yr(e),Rr(e)),s=0;(null==i||i<=0)&&(i=void 0,(null==(s=yr(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=a?1:-1);var l=void 0!==i||a,c=i||s;return-1===r?l?c-Br(e,["border","padding"],o):s:l?1===r?c:c+(2===r?-Br(e,["border"],o):Br(e,["margin"],o)):s+Br(e,zr.slice(r),o)}jr(["Width","Height"],(function(e){Hr["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Hr["viewport".concat(e)](n))},Hr["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var Yr={position:"absolute",visibility:"hidden",display:"block"};function Wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=Vr.apply(void 0,t):Fr(o,Yr,(function(){r=Vr.apply(void 0,t)})),r}function Ur(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}jr(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Hr["outer".concat(t)]=function(t,n){return t&&Wr(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Hr[e]=function(t,r){var o=r;if(void 0===o)return t&&Wr(t,e,-1);if(t){yr(t);return Rr(t)&&(o+=Br(t,["padding","border"],n)),_r(t,e,o)}}}));var Kr={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Er,offset:function(e,t,n){if(void 0===t)return Pr(e);!function(e,t,n){if(n.ignoreShake){var r=Pr(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?Lr(e,t,n):n.useCssTransform&&mr()in document.body.style?Nr(e,t):Lr(e,t,n)}(e,t,n||{})},isWindow:Tr,each:jr,css:_r,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Ur,getWindowScrollLeft:function(e){return Sr(e)},getWindowScrollTop:function(e){return kr(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Kr.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Ur(Kr,Hr);var Gr=Kr.getParent;function qr(e){if(Kr.isWindow(e)||9===e.nodeType)return null;var t,n=Kr.getDocument(e).body,r=Kr.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:Gr(e);for(t=Gr(e);t&&t!==n&&9!==t.nodeType;t=Gr(t))if("static"!==(r=Kr.css(t,"position")))return t;return null}var $r=Kr.getParent;function Xr(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=qr(e),o=Kr.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===Kr.css(r,"overflow")){if(r===a||r===s)break}else{var l=Kr.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=qr(r)}var c=null;Kr.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===Kr.css(e,"position")&&(e.style.position="fixed"));var u=Kr.getWindowScrollLeft(i),d=Kr.getWindowScrollTop(i),h=Kr.viewportWidth(i),p=Kr.viewportHeight(i),f=s.scrollWidth,m=s.scrollHeight,g=window.getComputedStyle(a);if("hidden"===g.overflowX&&(f=i.innerWidth),"hidden"===g.overflowY&&(m=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(Kr.isWindow(e)||9===e.nodeType)return!1;var t=Kr.getDocument(e).body,n=null;for(n=$r(e);n&&n!==t;n=$r(n)){if("fixed"===Kr.css(n,"position"))return!0}return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,d),n.right=Math.min(n.right,u+h),n.bottom=Math.min(n.bottom,d+p);else{var v=Math.max(f,u+h);n.right=Math.min(n.right,v);var y=Math.max(m,d+p);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Jr(e){var t,n,r;if(Kr.isWindow(e)||9===e.nodeType){var o=Kr.getWindow(e);t={left:Kr.getWindowScrollLeft(o),top:Kr.getWindowScrollTop(o)},n=Kr.viewportWidth(o),r=Kr.viewportHeight(o)}else t=Kr.offset(e),n=Kr.outerWidth(e),r=Kr.outerHeight(e);return t.width=n,t.height=r,t}function Zr(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:s}}function Qr(e,t,n,r,o){var i=Zr(t,n[1]),a=Zr(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function eo(e,t,n){return e.left<n.left||e.left+t.width>n.right}function to(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function no(e,t,n){var r=[];return Kr.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function ro(e,t){return e[t]=-e[t],e}function oo(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function io(e,t){e[0]=oo(e[0],t.width),e[1]=oo(e[1],t.height)}function ao(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a);var c={},u=0,d=Xr(l,!(!(s=s||{})||!s.alwaysByViewport)),h=Jr(l);io(i,h),io(a,t);var p=Qr(h,t,o,i,a),f=Kr.merge(h,p);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&eo(p,h,d)){var m=no(o,/[lr]/gi,{l:"r",r:"l"}),g=ro(i,0),v=ro(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Qr(h,t,m,g,v),h,d)||(u=1,o=m,i=g,a=v)}if(s.adjustY&&to(p,h,d)){var y=no(o,/[tb]/gi,{t:"b",b:"t"}),b=ro(i,1),w=ro(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Qr(h,t,y,b,w),h,d)||(u=1,o=y,i=b,a=w)}u&&(p=Qr(h,t,o,i,a),Kr.mix(f,p));var C=eo(p,h,d),_=to(p,h,d);if(C||_){var x=o;C&&(x=no(o,/[lr]/gi,{l:"r",r:"l"})),_&&(x=no(o,/[tb]/gi,{t:"b",b:"t"})),o=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=s.adjustX&&C,c.adjustY=s.adjustY&&_,(c.adjustX||c.adjustY)&&(f=function(e,t,n,r){var o=Kr.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),Kr.mix(o,i)}(p,h,d,c))}return f.width!==h.width&&Kr.css(l,"width",Kr.width(l)+f.width-h.width),f.height!==h.height&&Kr.css(l,"height",Kr.height(l)+f.height-h.height),Kr.offset(l,{left:f.left,top:f.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function so(e,t,n){var r=n.target||t;return ao(e,Jr(r),n,!function(e,t){var n=Xr(e,t),r=Jr(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport))}function lo(e,t,n){var r,o,i=Kr.getDocument(e),a=i.defaultView||i.parentWindow,s=Kr.getWindowScrollLeft(a),l=Kr.getWindowScrollTop(a),c=Kr.viewportWidth(a),u=Kr.viewportHeight(a);r="pageX"in t?t.pageX:s+t.clientX,o="pageY"in t?t.pageY:l+t.clientY;var d=r>=0&&r<=s+c&&o>=0&&o<=l+u;return ao(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(n,!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{points:[n.points[0],"cc"]}),d)}so.__getOffsetParent=qr,so.__getVisibleRectForElement=Xr;function co(e,t){var n=null,r=null;var o=new F.default((function(e){var o=Ge(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,s=i.height,l=Math.floor(a),c=Math.floor(s);n===l&&r===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,r=c}}));return e&&o.observe(e),function(){o.disconnect()}}function uo(e){return"function"!=typeof e?null:e()}function ho(e){return"object"===g(e)&&e?e:null}var po=y.a.forwardRef((function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,c=void 0===l?0:l,u=y.a.useRef({}),d=y.a.useRef(),h=y.a.Children.only(n),p=y.a.useRef({});p.current.disabled=r,p.current.target=o,p.current.onAlign=a;var f=Ge(function(e,t){var n=y.a.useRef(!1),r=y.a.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(n.current&&!0!==a)o(),r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,o(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=p.current,t=e.disabled,n=e.target,r=e.onAlign;if(!t&&n){var o,a=d.current,s=uo(n),l=ho(n);u.current.element=s,u.current.point=l;var c=document.activeElement;return s&&lr(s)?o=so(a,s,i):l&&(o=lo(a,l,i)),function(e,t){e!==document.activeElement&&Pn(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),r&&o&&r(a,o),!0}return!1}),c),2),m=f[0],g=f[1],v=y.a.useRef({cancel:function(){}}),b=y.a.useRef({cancel:function(){}});y.a.useEffect((function(){var e,t,n=uo(o),r=ho(o);d.current!==b.current.element&&(b.current.cancel(),b.current.element=d.current,b.current.cancel=co(d.current,m)),u.current.element===n&&((e=u.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(m(),v.current.element!==n&&(v.current.cancel(),v.current.element=n,v.current.cancel=co(n,m)))})),y.a.useEffect((function(){r?g():m()}),[r]);var w=y.a.useRef(null);return y.a.useEffect((function(){s?w.current||(w.current=we(window,"resize",m)):w.current&&(w.current.remove(),w.current=null)}),[s]),y.a.useEffect((function(){return function(){v.current.cancel(),b.current.cancel(),w.current&&w.current.remove(),g()}}),[]),y.a.useImperativeHandle(t,(function(){return{forceAlign:function(){return m(!0)}}})),y.a.isValidElement(h)&&(h=y.a.cloneElement(h,{ref:R(h.ref,d)})),h}));po.displayName="Align";var fo=po,mo=n(44),go=n.n(mo);function vo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function yo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){vo(i,r,o,a,s,"next",e)}function s(e){vo(i,r,o,a,s,"throw",e)}a(void 0)}))}}var bo=["measure","align",null,"motion"],wo=v.forwardRef((function(e,t){var n=e.visible,o=e.prefixCls,i=e.className,a=e.style,s=e.children,l=e.zIndex,c=e.stretch,u=e.destroyPopupOnHide,d=e.forceRender,h=e.align,p=e.point,f=e.getRootDomNode,m=e.getClassNameFromAlign,g=e.onAlign,y=e.onMouseEnter,b=e.onMouseLeave,C=e.onMouseDown,_=e.onTouchStart,x=Object(v.useRef)(),k=Object(v.useRef)(),P=Ge(Object(v.useState)(),2),T=P[0],E=P[1],O=function(e){var t=Ge(v.useState({width:0,height:0}),2),n=t[0],r=t[1];return[v.useMemo((function(){var t={};if(e){var r=n.width,o=n.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(c),M=Ge(O,2),A=M[0],D=M[1];var I=function(e,t){var n=Ge(Object(v.useState)(null),2),r=n[0],o=n[1],i=Object(v.useRef)(),a=Object(v.useRef)(!1);function s(e){a.current||o(e)}function l(){ve.cancel(i.current)}return Object(v.useEffect)((function(){s("measure")}),[e]),Object(v.useEffect)((function(){switch(r){case"measure":t()}r&&(i.current=ve(yo(go.a.mark((function e(){var t,n;return go.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=bo.indexOf(r),(n=bo[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),Object(v.useEffect)((function(){return function(){a.current=!0,l()}}),[]),[r,function(e){l(),i.current=ve((function(){s((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){c&&D(f())})),L=Ge(I,2),N=L[0],j=L[1],R=Object(v.useRef)();function z(){var e;null===(e=x.current)||void 0===e||e.forceAlign()}function F(e,t){if("align"===N){var n=m(t);E(n),T!==n?Promise.resolve().then((function(){z()})):j((function(){var e;null===(e=R.current)||void 0===e||e.call(R)})),null==g||g(e,t)}}var B=S({},ir(e));function H(){return new Promise((function(e){R.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=B[e];B[e]=function(e,n){return j(),null==t?void 0:t(e,n)}})),v.useEffect((function(){B.motionName||"motion"!==N||j()}),[B.motionName,N]),v.useImperativeHandle(t,(function(){return{forceAlign:z,getElement:function(){return k.current}}}));var V=S(S(S({},A),{},{zIndex:l},a),{},{opacity:"motion"!==N&&"stable"!==N&&n?0:void 0,pointerEvents:"stable"===N?void 0:"none"}),Y=!0;!(null==h?void 0:h.points)||"align"!==N&&"stable"!==N||(Y=!1);var W=s;return v.Children.count(s)>1&&(W=v.createElement("div",{className:"".concat(o,"-content")},s)),v.createElement(or,Object(r.a)({visible:n,ref:k,leavedClassName:"".concat(o,"-hidden")},B,{onAppearPrepare:H,onEnterPrepare:H,removeOnLeave:u,forceRender:d}),(function(e,t){var n=e.className,r=e.style,a=w()(o,i,T,n);return v.createElement(fo,{target:p||f,key:"popup",ref:x,monitorWindowResize:!0,disabled:Y,align:h,onAlign:F},v.createElement("div",{ref:t,className:a,onMouseEnter:y,onMouseLeave:b,onMouseDownCapture:C,onTouchStartCapture:_,style:S(S({},r),V)},W))}))}));wo.displayName="PopupInner";var Co=wo,_o=v.forwardRef((function(e,t){var n=e.prefixCls,o=e.visible,i=e.zIndex,a=e.children,s=e.mobile,l=(s=void 0===s?{}:s).popupClassName,c=s.popupStyle,u=s.popupMotion,d=void 0===u?{}:u,h=s.popupRender,p=v.useRef();v.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return p.current}}}));var f=S({zIndex:i},c),m=a;return v.Children.count(a)>1&&(m=v.createElement("div",{className:"".concat(n,"-content")},a)),h&&(m=h(m)),v.createElement(or,Object(r.a)({visible:o,ref:p,removeOnLeave:!0},d),(function(e,t){var r=e.className,o=e.style,i=w()(n,l,r);return v.createElement("div",{ref:t,className:i,style:S(S({},o),f)},m)}))}));_o.displayName="MobilePopupInner";var xo=_o,So=v.forwardRef((function(e,t){var n=e.visible,o=e.mobile,i=$e(e,["visible","mobile"]),a=Ge(Object(v.useState)(n),2),s=a[0],l=a[1],c=Ge(Object(v.useState)(!1),2),u=c[0],d=c[1],h=S(S({},i),{},{visible:s});Object(v.useEffect)((function(){l(n),n&&o&&d(ln())}),[n,o]);var p=u?v.createElement(xo,Object(r.a)({},h,{mobile:o,ref:t})):v.createElement(Co,Object(r.a)({},h,{ref:t}));return v.createElement("div",null,v.createElement(ar,h),p)}));So.displayName="Popup";var ko=So,Po=v.createContext(null);function To(){}function Eo(){return""}function Oo(e){return e?e.ownerDocument:window.document}var Mo=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var Ao,Do,Io=(Ao=En,(Do=function(e){c(n,e);var t=m(n);function n(e){var o,a;return i(this,n),(o=t.call(this,e)).popupRef=v.createRef(),o.triggerRef=v.createRef(),o.onMouseEnter=function(e){var t=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",e),o.delaySetPopupVisible(!0,t,t?null:e)},o.onMouseMove=function(e){o.fireEvents("onMouseMove",e),o.setPoint(e)},o.onMouseLeave=function(e){o.fireEvents("onMouseLeave",e),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onPopupMouseEnter=function(){o.clearDelayTimer()},o.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Pn(null===(t=o.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)},o.onFocus=function(e){o.fireEvents("onFocus",e),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))},o.onMouseDown=function(e){o.fireEvents("onMouseDown",e),o.preClickTime=Date.now()},o.onTouchStart=function(e){o.fireEvents("onTouchStart",e),o.preTouchTime=Date.now()},o.onBlur=function(e){o.fireEvents("onBlur",e),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)},o.onContextMenu=function(e){e.preventDefault(),o.fireEvents("onContextMenu",e),o.setPopupVisible(!0,e)},o.onContextMenuClose=function(){o.isContextMenuToShow()&&o.close()},o.onClick=function(e){if(o.fireEvents("onClick",e),o.focusTime){var t;if(o.preClickTime&&o.preTouchTime?t=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?t=o.preClickTime:o.preTouchTime&&(t=o.preTouchTime),Math.abs(t-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!o.state.popupVisible;(o.isClickToHide()&&!n||n&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,e)},o.onPopupMouseDown=function(){var e;o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout((function(){o.hasPopupMouseDown=!1}),0),o.context&&(e=o.context).onPopupMouseDown.apply(e,arguments)},o.onDocumentClick=function(e){if(!o.props.mask||o.props.maskClosable){var t=e.target,n=o.getRootDomNode(),r=o.getPopupDomNode();Pn(n,t)||Pn(r,t)||o.hasPopupMouseDown||o.close()}},o.getRootDomNode=function(){var e=o.props.getTriggerDOMNode;if(e)return e(o.triggerRef.current);try{var t=T(o.triggerRef.current);if(t)return t}catch(e){}return P.a.findDOMNode(Object(p.a)(o))},o.getPopupClassNameFromAlign=function(e){var t=[],n=o.props,r=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,l=n.getPopupClassNameFromAlign;return r&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(On(e[s].points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(i,a,e,s)),l&&t.push(l(e)),t.join(" ")},o.getComponent=function(){var e=o.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,s=e.popupMotion,l=e.popupAnimation,c=e.popupTransitionName,u=e.popupStyle,d=e.mask,h=e.maskAnimation,p=e.maskTransitionName,f=e.maskMotion,m=e.zIndex,g=e.popup,y=e.stretch,b=e.alignPoint,w=e.mobile,C=e.forceRender,_=o.state,x=_.popupVisible,S=_.point,k=o.getPopupAlign(),P={};return o.isMouseEnterToShow()&&(P.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(P.onMouseLeave=o.onPopupMouseLeave),P.onMouseDown=o.onPopupMouseDown,P.onTouchStart=o.onPopupMouseDown,v.createElement(ko,Object(r.a)({prefixCls:t,destroyPopupOnHide:n,visible:x,point:b&&S,className:i,align:k,onAlign:a,animation:l,getClassNameFromAlign:o.getPopupClassNameFromAlign},P,{stretch:y,getRootDomNode:o.getRootDomNode,style:u,mask:d,zIndex:m,transitionName:c,maskAnimation:h,maskTransitionName:p,maskMotion:f,ref:o.popupRef,motion:s,mobile:w,forceRender:C}),"function"==typeof g?g():g)},o.attachParent=function(e){ve.cancel(o.attachId);var t,n=o.props,r=n.getPopupContainer,i=n.getDocument,a=o.getRootDomNode();r?(a||0===r.length)&&(t=r(a)):t=i(o.getRootDomNode()).body,t?t.appendChild(e):o.attachId=ve((function(){o.attachParent(e)}))},o.getContainer=function(){var e=(0,o.props.getDocument)(o.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",o.attachParent(e),e},o.setPoint=function(e){o.props.alignPoint&&e&&o.setState({point:{pageX:e.pageX,pageY:e.pageY}})},o.handlePortalUpdate=function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)},a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,o.state={prevPopupVisible:a,popupVisible:a},Mo.forEach((function(e){o["fire".concat(e)]=function(t){o.fireEvents(e,t)}})),o}return s(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=we(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=we(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=we(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=we(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ve.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return S(S({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,o=t.alignPoint,i=t.className,a=t.autoDestroy,s=v.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,o&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var c=w()(s&&s.props&&s.props.className,i);c&&(l.className=c);var u=S({},l);z(s)&&(u.ref=R(this.triggerRef,s.ref));var d,h=v.cloneElement(s,u);return(e||this.popupRef.current||r)&&(d=v.createElement(Ao,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&a&&(d=null),v.createElement(Po.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(v.Component)).contextType=Po,Do.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Eo,getDocument:Oo,onPopupVisibleChange:To,afterPopupVisibleChange:To,onPopupAlign:To,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Do),Lo=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),a=e.children,s=e.popupElement,l=e.containerWidth,c=e.animation,u=e.transitionName,d=e.dropdownStyle,h=e.dropdownClassName,p=e.direction,f=void 0===p?"ltr":p,m=e.dropdownMatchSelectWidth,g=void 0===m||m,y=e.dropdownRender,b=e.dropdownAlign,C=e.getPopupContainer,_=e.empty,x=e.getTriggerDOMNode,k=$e(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),P="".concat(n,"-dropdown"),T=s;y&&(T=y(s));var E=v.useMemo((function(){return function(e){var t="number"!=typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(g)}),[g]),O=c?"".concat(P,"-").concat(c):u,M=v.useRef(null);v.useImperativeHandle(t,(function(){return{getPopupElement:function(){return M.current}}}));var A=S({minWidth:l},d);return"number"==typeof g?A.width=g:g&&(A.width=l),v.createElement(Io,Object(r.a)({},k,{showAction:[],hideAction:[],popupPlacement:"rtl"===f?"bottomRight":"bottomLeft",builtinPlacements:E,prefixCls:P,popupTransitionName:O,popup:v.createElement("div",{ref:M},T),popupAlign:b,popupVisible:i,getPopupContainer:C,popupClassName:w()(h,o({},"".concat(P,"-empty"),_)),popupStyle:A,getTriggerDOMNode:x}),a)},No=v.forwardRef(Lo);No.displayName="SelectTrigger";var jo=No;var Ro=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","tabIndex"];function zo(e){var t=e.prefixCls,n=e.components.optionList,i=e.convertChildrenToData,a=e.flattenOptions,s=e.getLabeledValue,l=e.filterOptions,c=e.isValueDisabled,u=e.findValueOption,d=(e.warningProps,e.fillOptionsWithMissingValue),h=e.omitDOMProps;function p(e,p){var f,m=e.prefixCls,g=void 0===m?t:m,y=e.className,b=e.id,C=e.open,_=e.defaultOpen,x=e.options,k=e.children,P=e.mode,T=e.value,E=e.defaultValue,O=e.labelInValue,M=e.showSearch,A=e.inputValue,D=e.searchValue,I=e.filterOption,L=e.filterSort,N=e.optionFilterProp,j=void 0===N?"value":N,R=e.autoClearSearchValue,z=void 0===R||R,F=e.onSearch,B=e.allowClear,H=e.clearIcon,V=e.showArrow,Y=e.inputIcon,W=e.menuItemSelectedIcon,U=e.disabled,K=e.loading,G=e.defaultActiveFirstOption,q=e.notFoundContent,$=void 0===q?"Not Found":q,X=e.optionLabelProp,J=e.backfill,Z=(e.tabIndex,e.getInputElement),Q=e.getPopupContainer,ee=e.listHeight,te=void 0===ee?200:ee,ne=e.listItemHeight,re=void 0===ne?20:ne,oe=e.animation,ie=e.transitionName,ae=e.virtual,se=e.dropdownStyle,le=e.dropdownClassName,ce=e.dropdownMatchSelectWidth,ue=e.dropdownRender,he=e.dropdownAlign,pe=e.showAction,fe=void 0===pe?[]:pe,me=e.direction,ge=e.tokenSeparators,ve=e.tagRender,ye=e.onPopupScroll,be=e.onDropdownVisibleChange,we=e.onFocus,Ce=e.onBlur,_e=e.onKeyUp,xe=e.onKeyDown,Se=e.onMouseDown,ke=e.onChange,Pe=e.onSelect,Te=e.onDeselect,Ee=e.onClear,Oe=e.internalProps,Me=void 0===Oe?{}:Oe,Ae=$e(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","tabIndex","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),De="RC_SELECT_INTERNAL_PROPS_MARK"===Me.mark,Ie=h?h(Ae):Ae;Ro.forEach((function(e){delete Ie[e]}));var Le=Object(v.useRef)(null),Ne=Object(v.useRef)(null),je=Object(v.useRef)(null),Re=Object(v.useRef)(null),ze=Object(v.useMemo)((function(){return(ge||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ge]),Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=v.useState(!1),n=Ge(t,2),r=n[0],o=n[1],i=v.useRef(null),a=function(){window.clearTimeout(i.current)};v.useEffect((function(){return a}),[]);var s=function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)};return[r,s,a]}(),Be=Ge(Fe,3),He=Be[0],Ve=Be[1],Ye=Be[2],We=Ge(Object(v.useState)(),2),Ue=We[0],Ke=We[1];Object(v.useEffect)((function(){var e;Ke("rc_select_".concat((en?(e=tn,tn+=1):e="TEST_OR_SSR",e)))}),[]);var qe=b||Ue,Xe=X;void 0===Xe&&(Xe=x?"label":"children");var Ze="combobox"!==P&&O,Qe="tags"===P||"multiple"===P,et=void 0!==M?M:Qe||"combobox"===P,tt=Ge(Object(v.useState)(!1),2),nt=tt[0],rt=tt[1];Object(v.useEffect)((function(){rt(ln())}),[]);var ot=Object(v.useRef)(null);v.useImperativeHandle(p,(function(){var e,t,n;return{focus:null===(e=je.current)||void 0===e?void 0:e.focus,blur:null===(t=je.current)||void 0===t?void 0:t.blur,scrollTo:null===(n=Re.current)||void 0===n?void 0:n.scrollTo}}));var it=Ge(cn(E,{value:T}),2),at=it[0],st=it[1],lt=Ge(Object(v.useMemo)((function(){return function(e,t){var n=t.labelInValue,r=t.combobox,o=new Map;if(void 0===e||""===e&&r)return[[],o];var i=Array.isArray(e)?e:[e],a=i;return n&&(a=i.filter((function(e){return null!==e})).map((function(e){var t=e.key,n=e.value,r=void 0!==n?n:t;return o.set(r,e),r}))),[a,o]}(at,{labelInValue:Ze,combobox:"combobox"===P})}),[at,Ze]),2),ct=lt[0],ut=lt[1],dt=Object(v.useMemo)((function(){return new Set(ct)}),[ct]),ht=Ge(Object(v.useState)(null),2),pt=ht[0],ft=ht[1],mt=Ge(Object(v.useState)(""),2),gt=mt[0],vt=mt[1],yt=gt;"combobox"===P&&void 0!==at?yt=at:void 0!==D?yt=D:A&&(yt=A);var bt=Object(v.useMemo)((function(){var e=x;return void 0===e&&(e=i(k)),"tags"===P&&d&&(e=d(e,at,Xe,O)),e||[]}),[x,k,P,at]),wt=Object(v.useMemo)((function(){return a(bt,e)}),[bt]),Ct=function(e){var t=v.useRef(null),n=v.useMemo((function(){var t=new Map;return e.forEach((function(e){var n=e.data.value;t.set(n,e)})),t}),[e]);return t.current=n,function(e){return e.map((function(e){return t.current.get(e)})).filter(Boolean)}}(wt),_t=Object(v.useMemo)((function(){if(!yt||!et)return de(bt);var e=l(yt,bt,{optionFilterProp:j,filterOption:"combobox"===P&&void 0===I?function(){return!0}:I});return"tags"===P&&e.every((function(e){return e[j]!==yt}))&&e.unshift({value:yt,label:yt,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),L&&Array.isArray(e)?de(e).sort(L):e}),[bt,yt,P,et,L]),xt=Object(v.useMemo)((function(){return a(_t,e)}),[_t]);Object(v.useEffect)((function(){Re.current&&Re.current.scrollTo&&Re.current.scrollTo(0)}),[yt]);var St,kt,Pt=Object(v.useMemo)((function(){var e=ct.map((function(e){var t=Ct([e]);return S(S({},s(e,{options:t,prevValueMap:ut,labelInValue:Ze,optionLabelProp:Xe})),{},{disabled:c(e,t)})}));return P||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[at,bt,P]);St=Pt,kt=v.useRef(St),Pt=v.useMemo((function(){var e=new Map;kt.current.forEach((function(t){var n=t.value,r=t.label;n!==r&&e.set(n,r)}));var t=St.map((function(t){var n=e.get(t.value);return t.isCacheable&&n?S(S({},t),{},{label:n}):t}));return kt.current=t,t}),[St]);var Tt=function(e,t,n){var r=Ct([e]),o=u([e],r)[0];if(!Me.skipTriggerSelect){var i=Ze?s(e,{options:r,prevValueMap:ut,labelInValue:Ze,optionLabelProp:Xe}):e;t&&Pe?Pe(i,o):!t&&Te&&Te(i,o)}De&&(t&&Me.onRawSelect?Me.onRawSelect(e,o,n):!t&&Me.onRawDeselect&&Me.onRawDeselect(e,o,n))},Et=Ge(Object(v.useState)([]),2),Ot=Et[0],Mt=Et[1],At=function(e){if(!De||!Me.skipTriggerChange){var t=Ct(e),n=function(e,t){var n=t.optionLabelProp,r=t.labelInValue,o=t.prevValueMap,i=t.options,a=t.getLabeledValue,s=e;return r&&(s=s.map((function(e){return a(e,{options:i,prevValueMap:o,labelInValue:r,optionLabelProp:n})}))),s}(Array.from(e),{labelInValue:Ze,options:t,getLabeledValue:s,prevValueMap:ut,optionLabelProp:Xe}),r=Qe?n:n[0];if(ke&&(0!==ct.length||0!==n.length)){var o=u(e,t,{prevValueOptions:Ot});Mt(o.map((function(t,n){var r=S({},t);return Object.defineProperty(r,"_INTERNAL_OPTION_VALUE_",{get:function(){return e[n]}}),r}))),ke(r,Qe?o:o[0])}st(r)}},Dt=function(e,t){var n,r=t.selected,o=t.source;U||(Qe?(n=new Set(ct),r?n.add(e):n.delete(e)):(n=new Set).add(e),(Qe||!Qe&&Array.from(ct)[0]!==e)&&At(Array.from(n)),Tt(e,!Qe||r,o),"combobox"===P?(vt(String(e)),ft("")):Qe&&!z||(vt(""),ft("")))},It="combobox"===P&&Z&&Z()||null,Lt=Ge(cn(void 0,{defaultValue:_,value:C}),2),Nt=Lt[0],jt=Lt[1],Rt=Nt,zt=!$&&!_t.length;(U||zt&&Rt&&"combobox"===P)&&(Rt=!1);var Ft=!zt&&Rt,Bt=function(e){var t=void 0!==e?e:!Rt;Nt===t||U||(jt(t),be&&be(t))};!function(e,t,n){var r=v.useRef(null);r.current={elements:e.filter((function(e){return e})),open:t,triggerOpen:n},v.useEffect((function(){function e(e){var t=e.target;t.shadowRoot&&e.composed&&(t=e.composedPath()[0]||t),r.current.open&&r.current.elements.every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}([Le.current,Ne.current&&Ne.current.getPopupElement()],Ft,Bt);var Vt=function(e,t,n){var r=!0,o=e;ft(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=Jt(r),i=o[0],a=o.slice(1);if(!i)return[t];var s=t.split(i);return n=n||s.length>1,s.reduce((function(t,n){return[].concat(de(t),de(e(n,a)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,ge),a=i;if("combobox"===P)t&&At([o]);else if(i){o="","tags"!==P&&(a=i.map((function(e){var t=wt.find((function(t){return t.data[Xe]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var s=Array.from(new Set([].concat(de(ct),de(a))));At(s),s.forEach((function(e){Tt(e,!0,"input")})),Bt(!1),r=!1}return vt(o),F&&yt!==o&&F(o),r};Object(v.useEffect)((function(){Nt&&U&&jt(!1)}),[U]),Object(v.useEffect)((function(){Rt||Qe||"combobox"===P||Vt("",!1,!1)}),[Rt]);var Yt=Ge(_n(),2),Wt=Yt[0],Ut=Yt[1],Kt=Object(v.useRef)(!1),Gt=[];Object(v.useEffect)((function(){return function(){Gt.forEach((function(e){return clearTimeout(e)})),Gt.splice(0,Gt.length)}}),[]);var qt=Ge(Object(v.useState)(0),2),$t=qt[0],Xt=qt[1],Zt=void 0!==G?G:"combobox"!==P,nn=Ge(Object(v.useState)(null),2),rn=nn[0],on=nn[1],an=Ge(Object(v.useState)({}),2)[1];yn((function(){if(Ft){var e=Math.ceil(Le.current.offsetWidth);rn!==e&&on(e)}}),[Ft]);var sn,un=v.createElement(n,{ref:Re,prefixCls:g,id:qe,open:Rt,childrenAsData:!x,options:_t,flattenOptions:xt,multiple:Qe,values:dt,height:te,itemHeight:re,onSelect:function(e,t){Dt(e,S(S({},t),{},{source:"option"}))},onToggleOpen:Bt,onActiveValue:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Xt(t),J&&"combobox"===P&&null!==e&&"keyboard"===o&&ft(String(e))},defaultActiveFirstOption:Zt,notFoundContent:$,onScroll:ye,searchValue:yt,menuItemSelectedIcon:W,virtual:!1!==ae&&!1!==ce,onMouseEnter:function(){an({})}});!U&&B&&(ct.length||yt)&&(sn=v.createElement(Ht,{className:"".concat(g,"-clear"),onMouseDown:function(){De&&Me.onClear&&Me.onClear(),Ee&&Ee(),At([]),Vt("",!1,!1)},customizeIcon:H},"×"));var dn,hn=void 0!==V?V:K||!Qe&&"combobox"!==P;hn&&(dn=v.createElement(Ht,{className:w()("".concat(g,"-arrow"),o({},"".concat(g,"-arrow-loading"),K)),customizeIcon:Y,customizeIconProps:{loading:K,searchValue:yt,open:Rt,focused:He,showSearch:et}}));var pn=w()(g,y,(o(f={},"".concat(g,"-focused"),He),o(f,"".concat(g,"-multiple"),Qe),o(f,"".concat(g,"-single"),!Qe),o(f,"".concat(g,"-allow-clear"),B),o(f,"".concat(g,"-show-arrow"),hn),o(f,"".concat(g,"-disabled"),U),o(f,"".concat(g,"-loading"),K),o(f,"".concat(g,"-open"),Rt),o(f,"".concat(g,"-customize-input"),It),o(f,"".concat(g,"-show-search"),et),f));return v.createElement("div",Object(r.a)({className:pn},Ie,{ref:Le,onMouseDown:function(e){var t=e.target,n=Ne.current&&Ne.current.getPopupElement();if(n&&n.contains(t)){var r=setTimeout((function(){var e,t=Gt.indexOf(r);(-1!==t&&Gt.splice(t,1),Ye(),nt||n.contains(document.activeElement))||(null===(e=je.current)||void 0===e||e.focus())}));Gt.push(r)}if(Se){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];Se.apply(void 0,[e].concat(i))}},onKeyDown:function(e){var t,n=Wt(),r=e.which;if(r===Je.ENTER&&("combobox"!==P&&e.preventDefault(),Rt||Bt(!0)),Ut(!!yt),r===Je.BACKSPACE&&!n&&Qe&&!yt&&ct.length){var o=Qt(Pt,ct);null!==o.removedValue&&(At(o.values),Tt(o.removedValue,!1,"input"))}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];Rt&&Re.current&&(t=Re.current).onKeyDown.apply(t,[e].concat(a));xe&&xe.apply(void 0,[e].concat(a))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Rt&&Re.current&&(o=Re.current).onKeyUp.apply(o,[e].concat(n));_e&&_e.apply(void 0,[e].concat(n))},onFocus:function(){Ve(!0),U||(we&&!Kt.current&&we.apply(void 0,arguments),fe.includes("focus")&&Bt(!0)),Kt.current=!0},onBlur:function(){Ve(!1,(function(){Kt.current=!1,Bt(!1)})),U||(yt&&("tags"===P?(Vt("",!1,!1),At(Array.from(new Set([].concat(de(ct),[yt]))))):"multiple"===P&&vt("")),Ce&&Ce.apply(void 0,arguments))}}),He&&!Rt&&v.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ct.join(", "))),v.createElement(jo,{ref:Ne,disabled:U,prefixCls:g,visible:Ft,popupElement:un,containerWidth:rn,animation:oe,transitionName:ie,dropdownStyle:se,dropdownClassName:le,direction:me,dropdownMatchSelectWidth:ce,dropdownRender:ue,dropdownAlign:he,getPopupContainer:Q,empty:!bt.length,getTriggerDOMNode:function(){return ot.current}},v.createElement(kn,Object(r.a)({},e,{domRef:ot,prefixCls:g,inputElement:It,ref:je,id:qe,showSearch:et,mode:P,accessibilityIndex:$t,multiple:Qe,tagRender:ve,values:Pt,open:Rt,onToggleOpen:Bt,searchValue:yt,activeValue:pt,onSearch:Vt,onSearchSubmit:function(e){if(e&&e.trim()){var t=Array.from(new Set([].concat(de(ct),[e])));At(t),t.forEach((function(e){Tt(e,!0,"input")})),vt("")}},onSelect:function(e,t){Dt(e,S(S({},t),{},{source:"selection"}))},tokenWithEnter:ze}))),dn,sn)}return v.forwardRef(p)}var Fo=function(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,s=e.getInputElement,l=e.showSearch,c=e.onSearch,u=e.defaultOpen,d=e.autoFocus,h=e.labelInValue,p=e.value,f=e.inputValue,m=e.optionLabelProp,y="multiple"===t||"tags"===t,b=void 0!==l?l:y||"combobox"===t,w=n||Xt(r);if(N("tags"!==t||w.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var C=w.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));N(!C,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(N("combobox"!==t||!m,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),N("combobox"===t||!o,"`backfill` only works with `combobox` mode."),N("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),L("combobox"!==t||!s||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!b&&"combobox"!==t&&"tags"!==t&&N(!1,"`onSearch` should work with `showSearch` instead of use alone."),L(!u||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=p){var _=Zt(p);N(!h||_.every((function(e){return"object"===g(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),N(!y||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var x=null;O(r).some((function(e){if(!v.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!O(e.props.children).every((function(t){return!(v.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(x=t.type,!1)})):(x=t,!0))})),x&&N(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),N(void 0===f,"`inputValue` is deprecated, please use `searchValue` instead.")}},Bo=zo({prefixCls:"rc-select",components:{optionList:Wt},convertChildrenToData:Xt,flattenOptions:function(e){var t=[];return function e(n,r){n.forEach((function(n){r||!("options"in n)?t.push({key:nn(n,t.length),groupOption:r,data:n}):(t.push({key:nn(n,t.length),group:!0,data:n}),e(n.options,!0))}))}(e,!1),t},getLabeledValue:an,filterOptions:function(e,t,n){var r,o=n.optionFilterProp,i=n.filterOption,a=[];return!1===i?de(t):(r="function"==typeof i?i:function(e){return function(t,n){var r=t.toLowerCase();return"options"in n?sn(n.label).toLowerCase().includes(r):sn(n[e]).toLowerCase().includes(r)}}(o),t.forEach((function(t){if("options"in t)if(r(e,t))a.push(t);else{var n=t.options.filter((function(t){return r(e,t)}));n.length&&a.push(S(S({},t),{},{options:n}))}else r(e,rn(t))&&a.push(t)})),a)},isValueDisabled:function(e,t){return on([e],t)[0].disabled},findValueOption:on,warningProps:Fo,fillOptionsWithMissingValue:function(e,t,n,r){var i=Zt(t).slice().sort(),a=de(e),s=new Set;return e.forEach((function(e){e.options?e.options.forEach((function(e){s.add(e.value)})):s.add(e.value)})),i.forEach((function(e){var t,i=r?e.value:e;s.has(i)||a.push(r?(o(t={},n,e.label),o(t,"value",i),t):{value:i})})),a}}),Ho=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).selectRef=v.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return s(n,[{key:"render",value:function(){return v.createElement(Bo,Object(r.a)({ref:this.selectRef},this.props))}}]),n}(v.Component);Ho.Option=Kt,Ho.OptGroup=qt;var Vo=Ho,Yo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Wo=Object(v.createContext)({});function Uo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Ko(e){return e<=1?100*Number(e)+"%":e}function Go(e){return 1===e.length?"0"+e:String(e)}function qo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $o(e){return Xo(e)/255}function Xo(e){return parseInt(e,16)}var Jo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Zo(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(Jo[e])e=Jo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ni.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ni.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ni.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=ni.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ni.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=ni.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ni.hex8.exec(e))return{r:Xo(n[1]),g:Xo(n[2]),b:Xo(n[3]),a:$o(n[4]),format:t?"name":"hex8"};if(n=ni.hex6.exec(e))return{r:Xo(n[1]),g:Xo(n[2]),b:Xo(n[3]),format:t?"name":"hex"};if(n=ni.hex4.exec(e))return{r:Xo(n[1]+n[1]),g:Xo(n[2]+n[2]),b:Xo(n[3]+n[3]),a:$o(n[4]+n[4]),format:t?"name":"hex8"};if(n=ni.hex3.exec(e))return{r:Xo(n[1]+n[1]),g:Xo(n[2]+n[2]),b:Xo(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ri(e.r)&&ri(e.g)&&ri(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Uo(t,255),g:255*Uo(n,255),b:255*Uo(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):ri(e.h)&&ri(e.s)&&ri(e.v)?(a=Ko(e.s),s=Ko(e.v),o=function(e,t,n){e=6*Uo(e,360),t=Uo(t,100),n=Uo(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):ri(e.h)&&ri(e.s)&&ri(e.l)&&(a=Ko(e.s),l=Ko(e.l),o=function(e,t,n){var r,o,i;if(e=Uo(e,360),t=Uo(t,100),n=Uo(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=qo(s,a,e+1/3),o=qo(s,a,e),i=qo(s,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var Qo="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",ei="[\\s|\\(]+("+Qo+")[,|\\s]+("+Qo+")[,|\\s]+("+Qo+")\\s*\\)?",ti="[\\s|\\(]+("+Qo+")[,|\\s]+("+Qo+")[,|\\s]+("+Qo+")[,|\\s]+("+Qo+")\\s*\\)?",ni={CSS_UNIT:new RegExp(Qo),rgb:new RegExp("rgb"+ei),rgba:new RegExp("rgba"+ti),hsl:new RegExp("hsl"+ei),hsla:new RegExp("hsla"+ti),hsv:new RegExp("hsv"+ei),hsva:new RegExp("hsva"+ti),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ri(e){return Boolean(ni.CSS_UNIT.exec(String(e)))}var oi=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ii(e){var t=function(e,t,n){e=Uo(e,255),t=Uo(t,255),n=Uo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ai(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var o=[Go(Math.round(e).toString(16)),Go(Math.round(t).toString(16)),Go(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}(t,n,r,!1))}function si(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function li(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function ci(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function ui(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function di(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Zo(e),o=5;o>0;o-=1){var i=ii(r),a=ai(Zo({h:li(i,o,!0),s:ci(i,o,!0),v:ui(i,o,!0)}));n.push(a)}n.push(ai(r));for(var s=1;s<=4;s+=1){var l=ii(r),c=ai(Zo({h:li(l,s),s:ci(l,s),v:ui(l,s)}));n.push(c)}return"dark"===t.theme?oi.map((function(e){var r=e.index,o=e.opacity;return ai(si(Zo(t.backgroundColor||"#141414"),Zo(n[r]),100*o))})):n}var hi={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},pi={},fi={};Object.keys(hi).forEach((function(e){pi[e]=di(hi[e]),pi[e].primary=pi[e][5],fi[e]=di(hi[e],{theme:"dark",backgroundColor:"#141414"}),fi[e].primary=fi[e][5]}));pi.red,pi.volcano,pi.gold,pi.orange,pi.yellow,pi.lime,pi.green,pi.cyan,pi.blue,pi.geekblue,pi.purple,pi.magenta,pi.grey;function mi(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function gi(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Tn())return null;var r,o=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(o.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);o.innerHTML=e;var i=mi(n),a=i.firstChild;return n.prepend&&a?i.insertBefore(o,a):i.appendChild(o),o}var vi=new Map;function yi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=mi(n);if(!vi.has(r)){var o=gi("",n),i=o.parentNode;vi.set(r,i),i.removeChild(o)}var a=Array.from(vi.get(r).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(a){var s,l,c;if((null===(s=n.csp)||void 0===s?void 0:s.nonce)&&a.nonce!==(null===(l=n.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=n.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=gi(e,n);return u["rc-util-key"]=t,u}function bi(e){return"object"===g(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===g(e.icon)||"function"==typeof e.icon)}function wi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function Ci(e){return di(e)[0]}function _i(e){return e?Array.isArray(e)?e:[e]:[]}var xi="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Si={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var ki=function(e){var t,n,r=e.icon,o=e.className,i=e.onClick,a=e.style,s=e.primaryColor,l=e.secondaryColor,c=$e(e,["icon","className","onClick","style","primaryColor","secondaryColor"]),u=Si;if(s&&(u={primaryColor:s,secondaryColor:l||Ci(s)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xi,t=Object(v.useContext)(Wo),n=t.csp;Object(v.useEffect)((function(){yi(e,"@ant-design-icons",{prepend:!0,csp:n})}),[])}(),t=bi(r),n="icon should be icon definiton, but got ".concat(r),N(t,"[@ant-design/icons] ".concat(n)),!bi(r))return null;var d=r;return d&&"function"==typeof d.icon&&(d=S(S({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),function e(t,n,r){return r?y.a.createElement(t.tag,S(S({key:n},wi(t.attrs)),r),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))):y.a.createElement(t.tag,S({key:n},wi(t.attrs)),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})))}(d.icon,"svg-".concat(d.name),S({className:o,onClick:i,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c))};ki.displayName="IconReact",ki.getTwoToneColors=function(){return S({},Si)},ki.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Si.primaryColor=t,Si.secondaryColor=n||Ci(t),Si.calculated=!!n};var Pi=ki;function Ti(e){var t=Ge(_i(e),2),n=t[0],r=t[1];return Pi.setTwoToneColors({primaryColor:n,secondaryColor:r})}Ti("#1890ff");var Ei=v.forwardRef((function(e,t){var n,r=e.className,i=e.icon,a=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=$e(e,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),h=v.useContext(Wo).prefixCls,p=void 0===h?"anticon":h,f=w()(p,(o(n={},"".concat(p,"-").concat(i.name),!!i.name),o(n,"".concat(p,"-spin"),!!a||"loading"===i.name),n),r),m=l;void 0===m&&c&&(m=-1);var g=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,y=Ge(_i(u),2),b=y[0],C=y[1];return v.createElement("span",Object.assign({role:"img","aria-label":i.name},d,{ref:t,tabIndex:m,onClick:c,className:f}),v.createElement(Pi,{icon:i,primaryColor:b,secondaryColor:C,style:g}))}));Ei.displayName="AntdIcon",Ei.getTwoToneColor=function(){var e=Pi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ei.setTwoToneColor=Ti;var Oi=Ei,Mi=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Yo}))};Mi.displayName="DownOutlined";var Ai=v.forwardRef(Mi),Di={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},Ii=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Di}))};Ii.displayName="LoadingOutlined";var Li=v.forwardRef(Ii),Ni={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ji=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ni}))};ji.displayName="CheckOutlined";var Ri=v.forwardRef(ji),zi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},Fi=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:zi}))};Fi.displayName="CloseOutlined";var Bi=v.forwardRef(Fi),Hi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},Vi=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Hi}))};Vi.displayName="CloseCircleFilled";var Yi=v.forwardRef(Vi),Wi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ui=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Wi}))};Ui.displayName="SearchOutlined";var Ki=v.forwardRef(Ui);function Gi(e){var t=e.suffixIcon,n=e.clearIcon,r=e.menuItemSelectedIcon,o=e.removeIcon,i=e.loading,a=e.multiple,s=e.prefixCls,l=n;n||(l=v.createElement(Yi,null));var c=null;if(void 0!==t)c=t;else if(i)c=v.createElement(Li,{spin:!0});else{var u="".concat(s,"-suffix");c=function(e){var t=e.open,n=e.showSearch;return t&&n?v.createElement(Ki,{className:u}):v.createElement(Ai,{className:u})}}return{clearIcon:l,suffixIcon:c,itemIcon:void 0!==r?r:a?v.createElement(Ri,null):null,removeIcon:void 0!==o?o:v.createElement(Bi,null)}}var qi=v.createContext(void 0),$i=function(e){var t=e.children,n=e.size;return v.createElement(qi.Consumer,null,(function(e){return v.createElement(qi.Provider,{value:n||e},t)}))},Xi=qi,Ji=function(){return{height:0,opacity:0}},Zi=function(e){return{height:e.scrollHeight,opacity:1}},Qi=function(e,t){return"height"===t.propertyName},ea=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)},ta={motionName:"ant-motion-collapse",onAppearStart:Ji,onEnterStart:Ji,onAppearActive:Zi,onEnterActive:Zi,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:Ji,onAppearEnd:Qi,onEnterEnd:Qi,onLeaveEnd:Qi,motionDeadline:500},na=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ra=function(e,t){var n,i,a=e.prefixCls,s=e.bordered,l=void 0===s||s,c=e.className,u=e.getPopupContainer,d=e.dropdownClassName,h=e.listHeight,p=void 0===h?256:h,f=e.listItemHeight,m=void 0===f?24:f,g=e.size,y=e.notFoundContent,b=na(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","listHeight","listItemHeight","size","notFoundContent"]),C=v.useContext(ae),x=C.getPopupContainer,S=C.getPrefixCls,k=C.renderEmpty,P=C.direction,T=C.virtual,E=C.dropdownMatchSelectWidth,O=v.useContext(Xi),M=S("select",a),A=S(),D=v.useMemo((function(){var e=b.mode;if("combobox"!==e)return"SECRET_COMBOBOX_MODE_DO_NOT_USE"===e?"combobox":e}),[b.mode]),I="multiple"===D||"tags"===D;i=void 0!==y?y:"combobox"===D?null:k("Select");var L=Gi(Object(r.a)(Object(r.a)({},b),{multiple:I,prefixCls:M})),N=L.suffixIcon,j=L.itemIcon,R=L.removeIcon,z=L.clearIcon,F=_(b,["suffixIcon","itemIcon"]),B=w()(d,o({},"".concat(M,"-dropdown-").concat(P),"rtl"===P)),H=g||O,V=w()((o(n={},"".concat(M,"-lg"),"large"===H),o(n,"".concat(M,"-sm"),"small"===H),o(n,"".concat(M,"-rtl"),"rtl"===P),o(n,"".concat(M,"-borderless"),!l),n),c);return v.createElement(Vo,Object(r.a)({ref:t,virtual:T,dropdownMatchSelectWidth:E},F,{transitionName:ea(A,"slide-up",b.transitionName),listHeight:p,listItemHeight:m,mode:D,prefixCls:M,direction:P,inputIcon:N,menuItemSelectedIcon:j,removeIcon:R,clearIcon:z,notFoundContent:i,className:V,getPopupContainer:u||x,dropdownClassName:B}))},oa=v.forwardRef(ra);oa.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",oa.Option=Kt,oa.OptGroup=qt;var ia=oa,aa=function(e,t,n){N(e,"[antd: ".concat(t,"] ").concat(n))},sa=v.isValidElement;function la(e,t,n){return sa(e)?v.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function ca(e,t){return la(e,e,t)}var ua=ia.Option;function da(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var ha=function(e,t){var n,o=e.prefixCls,i=e.className,a=e.children,s=e.dataSource,l=O(a);if(1===l.length&&sa(l[0])&&!da(l[0])){var c=Ge(l,1);n=c[0]}var u,d=n?function(){return n}:void 0;return u=l.length&&da(l[0])?a:s?s.map((function(e){if(sa(e))return e;switch(g(e)){case"string":return v.createElement(ua,{key:e,value:e},e);case"object":var t=e.value;return v.createElement(ua,{key:t,value:t},e.text);default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[],v.useEffect((function(){aa(!("dataSource"in e),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),aa(!n||!("size"in e),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")}),[]),v.createElement(se,null,(function(n){var a=(0,n.getPrefixCls)("select",o);return v.createElement(ia,Object(r.a)({ref:t},_(e,["dataSource"]),{prefixCls:a,className:w()("".concat(a,"-auto-complete"),i),mode:ia.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:d}),u)}))},pa=v.forwardRef(ha);pa.Option=ua;var fa=pa,ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},ga=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:ma}))};ga.displayName="CheckCircleOutlined";var va=v.forwardRef(ga),ya={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},ba=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:ya}))};ba.displayName="ExclamationCircleOutlined";var wa=v.forwardRef(ba),Ca={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},_a=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ca}))};_a.displayName="InfoCircleOutlined";var xa=v.forwardRef(_a),Sa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},ka=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Sa}))};ka.displayName="CloseCircleOutlined";var Pa=v.forwardRef(ka),Ta={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},Ea=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ta}))};Ea.displayName="CheckCircleFilled";var Oa=v.forwardRef(Ea),Ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Aa=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ma}))};Aa.displayName="ExclamationCircleFilled";var Da=v.forwardRef(Aa),Ia={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},La=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ia}))};La.displayName="InfoCircleFilled";var Na=v.forwardRef(La);var ja=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return s(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var e=this.props,t=e.message,n=e.description,r=e.children,o=this.state,i=o.error,a=o.info,s=a&&a.componentStack?a.componentStack:null,l=void 0===t?(i||"").toString():t,c=void 0===n?s:n;return i?v.createElement(Ha,{type:"error",message:l,description:v.createElement("pre",null,c)}):r}}]),n}(v.Component),Ra=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},za={success:Oa,info:Na,error:Yi,warning:Da},Fa={success:va,info:xa,error:Pa,warning:wa},Ba=function(e){var t,n=e.description,i=e.prefixCls,a=e.message,s=e.banner,l=e.className,c=void 0===l?"":l,u=e.style,d=e.onMouseEnter,h=e.onMouseLeave,p=e.onClick,f=e.afterClose,m=e.showIcon,g=e.closable,y=e.closeText,b=e.action,C=Ra(e,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","action"]),_=Ge(v.useState(!1),2),x=_[0],S=_[1],k=v.useRef(),P=v.useContext(ae),T=P.getPrefixCls,E=P.direction,O=T("alert",i),M=function(e){var t;S(!0),null===(t=C.onClose)||void 0===t||t.call(C,e)},A=!!y||g,D=function(){var e=C.type;return void 0!==e?e:s?"warning":"info"}(),I=!(!s||void 0!==m)||m,L=w()(O,"".concat(O,"-").concat(D),(o(t={},"".concat(O,"-with-description"),!!n),o(t,"".concat(O,"-no-icon"),!I),o(t,"".concat(O,"-banner"),!!s),o(t,"".concat(O,"-rtl"),"rtl"===E),t),c),N=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n]),t}),{})}(C);return v.createElement(or,{visible:!x,motionName:"".concat(O,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(e){return{maxHeight:e.offsetHeight}},onLeaveEnd:f},(function(e){var t,i,s=e.className,l=e.style;return v.createElement("div",Object(r.a)({ref:k,"data-show":!x,className:w()(L,s),style:Object(r.a)(Object(r.a)({},u),l),onMouseEnter:d,onMouseLeave:h,onClick:p,role:"alert"},N),I?(t=C.icon,i=(n?Fa:za)[D]||null,t?la(t,v.createElement("span",{className:"".concat(O,"-icon")},t),(function(){return{className:w()("".concat(O,"-icon"),o({},t.props.className,t.props.className))}})):v.createElement(i,{className:"".concat(O,"-icon")})):null,v.createElement("div",{className:"".concat(O,"-content")},v.createElement("div",{className:"".concat(O,"-message")},a),v.createElement("div",{className:"".concat(O,"-description")},n)),b?v.createElement("div",{className:"".concat(O,"-action")},b):null,A?v.createElement("button",{type:"button",onClick:M,className:"".concat(O,"-close-icon"),tabIndex:0},y?v.createElement("span",{className:"".concat(O,"-close-text")},y):v.createElement(Bi,null)):null)}))};Ba.ErrorBoundary=ja;var Ha=Ba,Va=["xxl","xl","lg","md","sm","xs"],Ya={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Wa=new Map,Ua=-1,Ka={},Ga={matchHandlers:{},dispatch:function(e){return Ka=e,Wa.forEach((function(e){return e(Ka)})),Wa.size>=1},subscribe:function(e){return Wa.size||this.register(),Ua+=1,Wa.set(Ua,e),e(Ka),Ua},unsubscribe:function(e){Wa.delete(e),Wa.size||this.unregister()},unregister:function(){var e=this;Object.keys(Ya).forEach((function(t){var n=Ya[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),Wa.clear()},register:function(){var e=this;Object.keys(Ya).forEach((function(t){var n=Ya[t],i=function(n){var i=n.matches;e.dispatch(Object(r.a)(Object(r.a)({},Ka),o({},t,i)))},a=window.matchMedia(n);a.addListener(i),e.matchHandlers[n]={mql:a,listener:i},i(a)}))}};var qa=function(){var e=Ge(Object(v.useState)({}),2),t=e[0],n=e[1];return Object(v.useEffect)((function(){var e=Ga.subscribe((function(e){n(e)}));return function(){return Ga.unsubscribe(e)}}),[]),t},$a=v.createContext("default"),Xa=function(e){var t=e.children,n=e.size;return v.createElement($a.Consumer,null,(function(e){return v.createElement($a.Provider,{value:n||e},t)}))},Ja=$a,Za=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Qa=function(e,t){var n,i,a=v.useContext(Ja),s=Ge(v.useState(1),2),l=s[0],c=s[1],u=Ge(v.useState(!1),2),d=u[0],h=u[1],p=Ge(v.useState(!0),2),f=p[0],m=p[1],y=v.useRef(),b=v.useRef(),C=R(t,y),_=v.useContext(ae).getPrefixCls,x=function(){if(b.current&&y.current){var t=b.current.offsetWidth,n=y.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,o=void 0===r?4:r;2*o<n&&c(n-2*o<t?(n-2*o)/t:1)}}};v.useEffect((function(){h(!0)}),[]),v.useEffect((function(){m(!0),c(1)}),[e.src]),v.useEffect((function(){x()}),[e.gap]);var S=e.prefixCls,k=e.shape,P=e.size,T=e.src,E=e.srcSet,O=e.icon,M=e.className,A=e.alt,D=e.draggable,I=e.children,L=Za(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children"]),N="default"===P?a:P,j=qa(),z=v.useMemo((function(){if("object"!==g(N))return{};var e=Va.find((function(e){return j[e]})),t=N[e];return t?{width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:O?t/2:18}:{}}),[j,N]);aa(!("string"==typeof O&&O.length>2),"Avatar","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(O,"` at https://ant.design/components/icon"));var F,B=_("avatar",S),V=w()((o(n={},"".concat(B,"-lg"),"large"===N),o(n,"".concat(B,"-sm"),"small"===N),n)),Y=v.isValidElement(T),W=w()(B,V,(o(i={},"".concat(B,"-").concat(k),!!k),o(i,"".concat(B,"-image"),Y||T&&f),o(i,"".concat(B,"-icon"),!!O),i),M),U="number"==typeof N?{width:N,height:N,lineHeight:"".concat(N,"px"),fontSize:O?N/2:18}:{};if("string"==typeof T&&f)F=v.createElement("img",{src:T,draggable:D,srcSet:E,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&m(!1)},alt:A});else if(Y)F=T;else if(O)F=O;else if(d||1!==l){var K="scale(".concat(l,") translateX(-50%)"),G={msTransform:K,WebkitTransform:K,transform:K},q="number"==typeof N?{lineHeight:"".concat(N,"px")}:{};F=v.createElement(H,{onResize:x},v.createElement("span",{className:"".concat(B,"-string"),ref:function(e){b.current=e},style:Object(r.a)(Object(r.a)({},q),G)},I))}else F=v.createElement("span",{className:"".concat(B,"-string"),style:{opacity:0},ref:function(e){b.current=e}},I);return delete L.onError,delete L.gap,v.createElement("span",Object(r.a)({},L,{style:Object(r.a)(Object(r.a)(Object(r.a)({},U),z),L.style),className:W,ref:C}),F)},es=v.forwardRef(Qa);es.displayName="Avatar",es.defaultProps={shape:"circle",size:"default"};var ts=es,ns={adjustX:1,adjustY:1},rs=[0,0],os={left:{points:["cr","cl"],overflow:ns,offset:[-4,0],targetOffset:rs},right:{points:["cl","cr"],overflow:ns,offset:[4,0],targetOffset:rs},top:{points:["bc","tc"],overflow:ns,offset:[0,-4],targetOffset:rs},bottom:{points:["tc","bc"],overflow:ns,offset:[0,4],targetOffset:rs},topLeft:{points:["bl","tl"],overflow:ns,offset:[0,-4],targetOffset:rs},leftTop:{points:["tr","tl"],overflow:ns,offset:[-4,0],targetOffset:rs},topRight:{points:["br","tr"],overflow:ns,offset:[0,-4],targetOffset:rs},rightTop:{points:["tl","tr"],overflow:ns,offset:[4,0],targetOffset:rs},bottomRight:{points:["tr","br"],overflow:ns,offset:[0,4],targetOffset:rs},rightBottom:{points:["bl","br"],overflow:ns,offset:[4,0],targetOffset:rs},bottomLeft:{points:["tl","bl"],overflow:ns,offset:[0,4],targetOffset:rs},leftBottom:{points:["br","bl"],overflow:ns,offset:[-4,0],targetOffset:rs}},is=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return v.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)},as=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,s=void 0===a?0:a,l=e.mouseLeaveDelay,c=void 0===l?.1:l,u=e.overlayStyle,d=e.prefixCls,h=void 0===d?"rc-tooltip":d,p=e.children,f=e.onVisibleChange,m=e.afterVisibleChange,y=e.transitionName,b=e.animation,w=e.motion,C=e.placement,_=void 0===C?"right":C,x=e.align,k=void 0===x?{}:x,P=e.destroyTooltipOnHide,T=void 0!==P&&P,E=e.defaultVisible,O=e.getTooltipContainer,M=e.overlayInnerStyle,A=$e(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),D=Object(v.useRef)(null);Object(v.useImperativeHandle)(t,(function(){return D.current}));var I=S({},A);"visible"in e&&(I.popupVisible=e.visible);var L=!1,N=!1;if("boolean"==typeof T)L=T;else if(T&&"object"===g(T)){var j=T.keepParent;L=!0===j,N=!1===j}return v.createElement(Io,Object(r.a)({popupClassName:n,prefixCls:h,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[v.createElement("div",{className:"".concat(h,"-arrow"),key:"arrow"},n),v.createElement(is,{key:"content",prefixCls:h,id:o,overlay:r,overlayInnerStyle:M})]},action:i,builtinPlacements:os,popupPlacement:_,ref:D,popupAlign:k,getPopupContainer:O,onPopupVisibleChange:f,afterPopupVisibleChange:m,popupTransitionName:y,popupAnimation:b,popupMotion:w,defaultPopupVisible:E,destroyPopupOnHide:L,autoDestroy:N,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s},I),p)},ss=Object(v.forwardRef)(as),ls={adjustX:1,adjustY:1},cs={adjustX:0,adjustY:0},us=[0,0];function ds(e){return"boolean"==typeof e?e?ls:cs:Object(r.a)(Object(r.a)({},cs),e)}var hs=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},ps=hs("success","processing","error","default","warning"),fs=hs("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),ms=new RegExp("^(".concat(fs.join("|"),")(-inverse)?$"));function gs(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX||"button"===e.type)&&e.props.disabled){var o=function(e,t){var n={},o=Object(r.a)({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=o.picked,a=o.omitted,s=Object(r.a)(Object(r.a)({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":null}),l=ca(e,{style:Object(r.a)(Object(r.a)({},a),{pointerEvents:"none"}),className:null});return v.createElement("span",{style:s,className:w()(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},l)}return e}var vs=v.forwardRef((function(e,t){var n,i=v.useContext(ae),a=i.getPopupContainer,s=i.getPrefixCls,l=i.direction,c=Ge(cn(!1,{value:e.visible,defaultValue:e.defaultVisible}),2),u=c[0],d=c[1],h=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},p=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,o=e.autoAdjustOverflow;return t||function(e){var t=e.arrowWidth,n=void 0===t?5:t,o=e.horizontalArrowShift,i=void 0===o?16:o,a=e.verticalArrowShift,s=void 0===a?8:a,l=e.autoAdjustOverflow,c={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(s+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(s+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,s+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,s+n]}};return Object.keys(c).forEach((function(t){c[t]=e.arrowPointAtCenter?Object(r.a)(Object(r.a)({},c[t]),{overflow:ds(l),targetOffset:us}):Object(r.a)(Object(r.a)({},os[t]),{overflow:ds(l)}),c[t].ignoreShake=!0})),c}({arrowPointAtCenter:n,autoAdjustOverflow:o})},f=e.prefixCls,m=e.openClassName,g=e.getPopupContainer,y=e.getTooltipContainer,b=e.overlayClassName,C=e.color,_=e.overlayInnerStyle,x=e.children,S=s("tooltip",f),k=s(),P=u;!("visible"in e)&&h()&&(P=!1);var T,E,O,M=gs(sa(x)?x:v.createElement("span",null,x),S),A=M.props,D=w()(A.className,o({},m||"".concat(S,"-open"),!0)),I=w()(b,(o(n={},"".concat(S,"-rtl"),"rtl"===l),o(n,"".concat(S,"-").concat(C),C&&ms.test(C)),n)),L=_;return C&&!ms.test(C)&&(L=Object(r.a)(Object(r.a)({},_),{background:C}),T={background:C}),v.createElement(ss,Object(r.a)({},e,{prefixCls:S,overlayClassName:I,getTooltipContainer:g||y||a,ref:t,builtinPlacements:p(),overlay:(E=e.title,O=e.overlay,0===E?E:O||E||""),visible:P,onVisibleChange:function(t){var n;d(!h()&&t),h()||null===(n=e.onVisibleChange)||void 0===n||n.call(e,t)},onPopupAlign:function(e,t){var n=p(),r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:L,arrowContent:v.createElement("span",{className:"".concat(S,"-arrow-content"),style:T}),motion:{motionName:ea(k,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),P?ca(M,{className:D}):M)}));vs.displayName="Tooltip",vs.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var ys=vs,bs=function(e){return e?"function"==typeof e?e():e:null},ws=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Cs=v.forwardRef((function(e,t){var n=e.prefixCls,o=e.title,i=e.content,a=ws(e,["prefixCls","title","content"]),s=v.useContext(ae).getPrefixCls,l=s("popover",n),c=s();return v.createElement(ys,Object(r.a)({},a,{prefixCls:l,ref:t,overlay:function(e){return v.createElement(v.Fragment,null,o&&v.createElement("div",{className:"".concat(e,"-title")},bs(o)),v.createElement("div",{className:"".concat(e,"-inner-content")},bs(i)))}(l),transitionName:ea(c,"zoom-big",a.transitionName)}))}));Cs.displayName="Popover",Cs.defaultProps={placement:"top",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}};var _s=Cs,xs=function(e){var t=v.useContext(ae),n=t.getPrefixCls,r=t.direction,i=e.prefixCls,a=e.className,s=void 0===a?"":a,l=e.maxCount,c=e.maxStyle,u=e.size,d=n("avatar-group",i),h=w()(d,o({},"".concat(d,"-rtl"),"rtl"===r),s),p=e.children,f=e.maxPopoverPlacement,m=void 0===f?"top":f,g=O(p).map((function(e,t){return ca(e,{key:"avatar-key-".concat(t)})})),y=g.length;if(l&&l<y){var b=g.slice(0,l),C=g.slice(l,y);return b.push(v.createElement(_s,{key:"avatar-popover-key",content:C,trigger:"hover",placement:m,overlayClassName:"".concat(d,"-popover")},v.createElement(ts,{style:c},"+".concat(y-l)))),v.createElement(Xa,{size:u},v.createElement("div",{className:h,style:e.style},b))}return v.createElement(Xa,{size:u},v.createElement("div",{className:h,style:e.style},g))},Ss=ts;Ss.Group=xs;var ks=Ss,Ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},Ts=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ps}))};Ts.displayName="VerticalAlignTopOutlined";var Es=v.forwardRef(Ts),Os=function(e){var t=Ge(cn(!1,{value:e.visible}),2),n=t[0],i=t[1],a=v.createRef(),s=v.useRef(),l=function(){return a.current&&a.current.ownerDocument?a.current.ownerDocument:window},c=ye((function(t){var n=e.visibilityHeight,r=Le(t.target,!0);i(r>n)}));v.useEffect((function(){var t;return t=(e.target||l)(),s.current=we(t,"scroll",(function(e){c(e)})),c({target:t}),function(){s.current&&s.current.remove(),c.cancel()}}),[e.target]);var u=v.useContext(ae),d=u.getPrefixCls,h=u.direction,p=e.prefixCls,f=e.className,m=void 0===f?"":f,g=d("back-top",p),y=d(),b=w()(g,o({},"".concat(g,"-rtl"),"rtl"===h),m),C=_(e,["prefixCls","className","children","visibilityHeight","target","visible"]);return v.createElement("div",Object(r.a)({},C,{className:b,onClick:function(t){var n=e.onClick,r=e.target,o=e.duration;je(0,{getContainer:r||l,duration:void 0===o?450:o}),"function"==typeof n&&n(t)},ref:a}),function(t){var r=t.prefixCls,o=t.rootPrefixCls,i=e.children,a=v.createElement("div",{className:"".concat(r,"-content")},v.createElement("div",{className:"".concat(r,"-icon")},v.createElement(Es,null)));return v.createElement(or,{visible:n,motionName:"".concat(o,"-fade"),removeOnLeave:!0},(function(e){var t=e.className,n=i||a;return v.createElement("div",null,ca(n,(function(e){var n=e.className;return{className:w()(t,n)}})))}))}({prefixCls:g,rootPrefixCls:y}))};Os.defaultProps={visibilityHeight:400};var Ms=v.memo(Os);function As(e){var t,n=e.prefixCls,r=e.value,o=e.current,i=e.offset,a=void 0===i?0:i;return a&&(t={position:"absolute",top:"".concat(a,"00%"),left:0}),v.createElement("p",{style:t,className:w()("".concat(n,"-only-unit"),{current:o})},r)}function Ds(e,t,n){for(var r=e,o=0;(r+10)%10!==t;)r+=n,o+=n;return o}function Is(e){var t,n,o=e.prefixCls,i=e.count,a=e.value,s=Number(a),l=Math.abs(i),c=Ge(v.useState(s),2),u=c[0],d=c[1],h=Ge(v.useState(l),2),p=h[0],f=h[1],m=function(){d(s),f(l)};if(v.useEffect((function(){var e=setTimeout((function(){m()}),1e3);return function(){clearTimeout(e)}}),[s]),u===s||Number.isNaN(s)||Number.isNaN(u))t=[v.createElement(As,Object(r.a)({},e,{key:s,current:!0}))],n={transition:"none"};else{t=[];for(var g=s+10,y=[],b=s;b<=g;b+=1)y.push(b);var w=y.findIndex((function(e){return e%10===u}));t=y.map((function(t,n){var o=t%10;return v.createElement(As,Object(r.a)({},e,{key:t,value:o,offset:n-w,current:n===w}))})),n={transform:"translateY(".concat(-Ds(u,s,p<l?1:-1),"00%)")}}return v.createElement("span",{className:"".concat(o,"-only"),style:n,onTransitionEnd:m},t)}var Ls=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ns=function(e){var t=e.prefixCls,n=e.count,o=e.className,i=e.motionClassName,a=e.style,s=e.title,l=e.show,c=e.component,u=void 0===c?"sup":c,d=e.children,h=Ls(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),p=(0,v.useContext(ae).getPrefixCls)("scroll-number",t),f=Object(r.a)(Object(r.a)({},h),{"data-show":l,style:a,className:w()(p,o,i),title:s}),m=n;if(n&&Number(n)%1==0){var g=String(n).split("");m=g.map((function(e,t){return v.createElement(Is,{prefixCls:p,count:Number(n),value:e,key:g.length-t})}))}return a&&a.borderColor&&(f.style=Object(r.a)(Object(r.a)({},a),{boxShadow:"0 0 0 1px ".concat(a.borderColor," inset")})),d?ca(d,(function(e){return{className:w()("".concat(p,"-custom-component"),null==e?void 0:e.className,i)}})):v.createElement(u,f,m)};function js(e){return-1!==fs.indexOf(e)}var Rs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},zs=function(e){var t,n,i=e.prefixCls,a=e.scrollNumberPrefixCls,s=e.children,l=e.status,c=e.text,u=e.color,d=e.count,h=void 0===d?null:d,p=e.overflowCount,f=void 0===p?99:p,m=e.dot,y=void 0!==m&&m,b=e.size,C=void 0===b?"default":b,_=e.title,x=e.offset,S=e.style,k=e.className,P=e.showZero,T=void 0!==P&&P,E=Rs(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),O=v.useContext(ae),M=O.getPrefixCls,A=O.direction,D=M("badge",i),I=h>f?"".concat(f,"+"):h,L=null!=l||null!=u,N="0"===I||0===I,j=y&&!N||L,R=j?"":I,z=Object(v.useMemo)((function(){return(null==R||""===R||N&&!T)&&!j}),[R,N,T,j]),F=Object(v.useRef)(h);z||(F.current=h);var B=F.current,H=Object(v.useRef)(R);z||(H.current=R);var V=H.current,Y=Object(v.useRef)(j);z||(Y.current=j);var W=Object(v.useMemo)((function(){if(!x)return Object(r.a)({},S);var e={marginTop:x[1]};return"rtl"===A?e.left=parseInt(x[0],10):e.right=-parseInt(x[0],10),Object(r.a)(Object(r.a)({},e),S)}),[A,x,S]),U=null!=_?_:"string"==typeof B||"number"==typeof B?B:void 0,K=z||!c?null:v.createElement("span",{className:"".concat(D,"-status-text")},c),G=B&&"object"===g(B)?ca(B,(function(e){return{style:Object(r.a)(Object(r.a)({},W),e.style)}})):void 0,q=w()((o(t={},"".concat(D,"-status-dot"),L),o(t,"".concat(D,"-status-").concat(l),!!l),o(t,"".concat(D,"-status-").concat(u),js(u)),t)),$={};u&&!js(u)&&($.background=u);var X=w()(D,(o(n={},"".concat(D,"-status"),L),o(n,"".concat(D,"-not-a-wrapper"),!s),o(n,"".concat(D,"-rtl"),"rtl"===A),n),k);if(!s&&L){var J=W.color;return v.createElement("span",Object(r.a)({},E,{className:X,style:W}),v.createElement("span",{className:q,style:$}),v.createElement("span",{style:{color:J},className:"".concat(D,"-status-text")},c))}return v.createElement("span",Object(r.a)({},E,{className:X}),s,v.createElement(or,{visible:!z,motionName:"".concat(D,"-zoom"),motionAppear:!1},(function(e){var t,n=e.className,i=M("scroll-number",a),s=Y.current,c=w()((o(t={},"".concat(D,"-dot"),s),o(t,"".concat(D,"-count"),!s),o(t,"".concat(D,"-count-sm"),"small"===C),o(t,"".concat(D,"-multiple-words"),!s&&V&&V.toString().length>1),o(t,"".concat(D,"-status-").concat(l),!!l),o(t,"".concat(D,"-status-").concat(u),js(u)),t)),d=Object(r.a)({},W);return u&&!js(u)&&((d=d||{}).background=u),v.createElement(Ns,{prefixCls:i,show:!z,motionClassName:n,className:c,count:V,title:U,style:d,key:"scrollNumber"},G)})),K)};zs.Ribbon=function(e){var t,n=e.className,i=e.prefixCls,a=e.style,s=e.color,l=e.children,c=e.text,u=e.placement,d=void 0===u?"end":u,h=v.useContext(ae),p=h.getPrefixCls,f=h.direction,m=p("ribbon",i),g=js(s),y=w()(m,"".concat(m,"-placement-").concat(d),(o(t={},"".concat(m,"-rtl"),"rtl"===f),o(t,"".concat(m,"-color-").concat(s),g),t),n),b={},C={};return s&&!g&&(b.background=s,C.color=s),v.createElement("div",{className:"".concat(m,"-wrapper")},l,v.createElement("div",{className:y,style:Object(r.a)(Object(r.a)({},b),a)},v.createElement("span",{className:"".concat(m,"-text")},c),v.createElement("div",{className:"".concat(m,"-corner"),style:C})))};var Fs=zs,Bs={adjustX:1,adjustY:1},Hs=[0,0],Vs={topLeft:{points:["bl","tl"],overflow:Bs,offset:[0,-4],targetOffset:Hs},topCenter:{points:["bc","tc"],overflow:Bs,offset:[0,-4],targetOffset:Hs},topRight:{points:["br","tr"],overflow:Bs,offset:[0,-4],targetOffset:Hs},bottomLeft:{points:["tl","bl"],overflow:Bs,offset:[0,4],targetOffset:Hs},bottomCenter:{points:["tc","bc"],overflow:Bs,offset:[0,4],targetOffset:Hs},bottomRight:{points:["tr","br"],overflow:Bs,offset:[0,4],targetOffset:Hs}};var Ys=v.forwardRef((function(e,t){var n=e.arrow,r=void 0!==n&&n,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,h=e.placements,p=void 0===h?Vs:h,f=e.getPopupContainer,m=e.showAction,g=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,C=e.visible,_=e.trigger,x=void 0===_?["hover"]:_,S=$e(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),k=Ge(v.useState(),2),P=k[0],T=k[1],E="visible"in e?C:P,O=v.useRef(null);v.useImperativeHandle(t,(function(){return O.current}));var M,A,D,I,L,N,j=function(){var t=e.overlay;return"function"==typeof t?t():t},R=function(t){var n=e.onOverlayClick,r=j().props;T(!1),n&&n(t),r.onClick&&r.onClick(t)},z=function(){var e=j(),t={prefixCls:"".concat(a,"-menu"),onClick:R};return"string"==typeof e.type&&delete t.prefixCls,v.createElement(v.Fragment,null,r&&v.createElement("div",{className:"".concat(a,"-arrow")}),v.cloneElement(e,t))},F=g;return F||-1===x.indexOf("contextMenu")||(F=["click"]),v.createElement(Io,Object.assign({},S,{prefixCls:a,ref:O,popupClassName:w()(y,o({},"".concat(a,"-show-arrow"),r)),popupStyle:b,builtinPlacements:p,action:x,showAction:m,hideAction:F||[],popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:E,stretch:(L=e.minOverlayWidthMatchTrigger,N=e.alignPoint,("minOverlayWidthMatchTrigger"in e?L:!N)?"minWidth":""),popup:"function"==typeof e.overlay?z:z(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;T(t),"function"==typeof n&&n(t)},getPopupContainer:f}),(A=e.children,D=A.props?A.props:{},I=w()(D.className,void 0!==(M=e.openClassName)?M:"".concat(a,"-open")),P&&A?v.cloneElement(A,{className:I}):A))})),Ws={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Us=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ws}))};Us.displayName="RightOutlined";var Ks=v.forwardRef(Us),Gs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},qs=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Gs}))};qs.displayName="EllipsisOutlined";var $s,Xs=v.forwardRef(qs),Js=function e(t){return i(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))},Zs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Qs=function(e){return v.createElement(se,null,(function(t){var n,i=t.getPrefixCls,a=t.direction,s=e.prefixCls,l=e.size,c=e.className,u=Zs(e,["prefixCls","size","className"]),d=i("btn-group",s),h="";switch(l){case"large":h="lg";break;case"small":h="sm";break;case"middle":case void 0:break;default:console.warn(new Js(l))}var p=w()(d,(o(n={},"".concat(d,"-").concat(h),h),o(n,"".concat(d,"-rtl"),"rtl"===a),n),c);return v.createElement("div",Object(r.a)({},u,{className:p}))}))},el=0,tl={};function nl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=el++,r=t;function o(){(r-=1)<=0?(e(),delete tl[n]):tl[n]=ve(o)}return tl[n]=ve(o),n}function rl(e){return!e||null===e.offsetParent||e.hidden}function ol(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}nl.cancel=function(e){void 0!==e&&(ve.cancel(tl[e]),delete tl[e])},nl.ids=tl;var il=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).containerRef=v.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,o;if(!(!t||rl(t)||t.className.indexOf("-leave")>=0)){var i=e.props.insertExtraNode;e.extraNode=document.createElement("div");var a=Object(p.a)(e).extraNode,s=e.context.getPrefixCls;a.className="".concat(s(""),"-click-animating-node");var l=e.getAttributeName();if(t.setAttribute(l,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&ol(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){a.style.borderColor=n;var c=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,u=c instanceof Document?c.body:null!==(o=c.firstChild)&&void 0!==o?o:c;$s=yi("\n [".concat(s(""),"-click-animating-without-extra-node='true']::after, .").concat(s(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:u})}i&&t.appendChild(a),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!rl(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),nl.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=nl((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!v.isValidElement(r))return r;var o=e.containerRef;return z(r)&&(o=R(r.ref,e.containerRef)),ca(r,{ref:o})},e}return s(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),$s&&($s.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return v.createElement(se,null,this.renderWave)}}]),n}(v.Component);il.contextType=ae;var al=function(){return{width:0,opacity:0,transform:"scale(0)"}},sl=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},ll=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?y.a.createElement("span",{className:"".concat(t,"-loading-icon")},y.a.createElement(Li,null)):y.a.createElement(or,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:al,onAppearActive:sl,onEnterStart:al,onEnterActive:sl,onLeaveStart:sl,onLeaveActive:al},(function(e,n){var r=e.className,o=e.style;return y.a.createElement("span",{className:"".concat(t,"-loading-icon"),style:o,ref:n},y.a.createElement(Li,{className:r}))}))},cl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ul=/^[\u4e00-\u9fa5]{2}$/,dl=ul.test.bind(ul);function hl(e){return"text"===e||"link"===e}function pl(e,t){var n=!1,r=[];return v.Children.forEach(e,(function(e){var t=g(e),o="string"===t||"number"===t;if(n&&o){var i=r.length-1,a=r[i];r[i]="".concat(a).concat(e)}else r.push(e);n=o})),v.Children.map(r,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&dl(e.props.children)?ca(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?(dl(e)&&(e=e.split("").join(n)),v.createElement("span",null,e)):e}}(e,t)}))}hs("default","primary","ghost","dashed","link","text"),hs("circle","round"),hs("submit","button","reset");function fl(e){return"danger"===e?{danger:!0}:{type:e}}var ml=function(e,t){var n,i,a=e.loading,s=void 0!==a&&a,l=e.prefixCls,c=e.type,u=e.danger,d=e.shape,h=e.size,p=e.className,f=e.children,m=e.icon,y=e.ghost,b=void 0!==y&&y,C=e.block,x=void 0!==C&&C,S=e.htmlType,k=void 0===S?"button":S,P=cl(e,["loading","prefixCls","type","danger","shape","size","className","children","icon","ghost","block","htmlType"]),T=v.useContext(Xi),E=Ge(v.useState(!!s),2),O=E[0],M=E[1],A=Ge(v.useState(!1),2),D=A[0],I=A[1],L=v.useContext(ae),N=L.getPrefixCls,j=L.autoInsertSpaceInButton,R=L.direction,z=t||v.createRef(),F=v.useRef(),B=function(){return 1===v.Children.count(f)&&!m&&!hl(c)};i="object"===g(s)&&s.delay?s.delay||!0:!!s,v.useEffect((function(){clearTimeout(F.current),"number"==typeof i?F.current=window.setTimeout((function(){M(i)}),i):M(i)}),[i]),v.useEffect((function(){if(z&&z.current&&!1!==j){var e=z.current.textContent;B()&&dl(e)?D||I(!0):D&&I(!1)}}),[z]);var H=function(t){var n,r=e.onClick,o=e.disabled;O||o?t.preventDefault():null===(n=r)||void 0===n||n(t)};aa(!("string"==typeof m&&m.length>2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(m,"` at https://ant.design/components/icon")),aa(!(b&&hl(c)),"Button","`link` or `text` button can't be a `ghost` button.");var V=N("btn",l),Y=!1!==j,W="";switch(h||T){case"large":W="lg";break;case"small":W="sm"}var U=O?"loading":m,K=w()(V,(o(n={},"".concat(V,"-").concat(c),c),o(n,"".concat(V,"-").concat(d),d),o(n,"".concat(V,"-").concat(W),W),o(n,"".concat(V,"-icon-only"),!f&&0!==f&&!!U),o(n,"".concat(V,"-background-ghost"),b&&!hl(c)),o(n,"".concat(V,"-loading"),O),o(n,"".concat(V,"-two-chinese-chars"),D&&Y),o(n,"".concat(V,"-block"),x),o(n,"".concat(V,"-dangerous"),!!u),o(n,"".concat(V,"-rtl"),"rtl"===R),n),p),G=m&&!O?m:v.createElement(ll,{existIcon:!!m,prefixCls:V,loading:!!O}),q=f||0===f?pl(f,B()&&Y):null,$=_(P,["navigate"]);if(void 0!==$.href)return v.createElement("a",Object(r.a)({},$,{className:K,onClick:H,ref:z}),G,q);var X=v.createElement("button",Object(r.a)({},P,{type:k,className:K,onClick:H,ref:z}),G,q);return hl(c)?X:v.createElement(il,null,X)},gl=v.forwardRef(ml);gl.displayName="Button",gl.Group=Qs,gl.__ANT_BUTTON=!0;var vl=gl,yl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},bl=vl.Group,wl=function(e){var t=v.useContext(ae),n=t.getPopupContainer,o=t.getPrefixCls,i=t.direction,a=e.prefixCls,s=e.type,l=e.disabled,c=e.onClick,u=e.htmlType,d=e.children,h=e.className,p=e.overlay,f=e.trigger,m=e.align,g=e.visible,y=e.onVisibleChange,b=e.placement,C=e.getPopupContainer,_=e.href,x=e.icon,S=void 0===x?v.createElement(Xs,null):x,k=e.title,P=e.buttonsRender,T=yl(e,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender"]),E=o("dropdown-button",a),O={align:m,overlay:p,disabled:l,trigger:l?[]:f,onVisibleChange:y,getPopupContainer:C||n};"visible"in e&&(O.visible=g),O.placement="placement"in e?b:"rtl"===i?"bottomLeft":"bottomRight";var M=Ge(P([v.createElement(vl,{type:s,disabled:l,onClick:c,htmlType:u,href:_,title:k},d),v.createElement(vl,{type:s,icon:S})]),2),A=M[0],D=M[1];return v.createElement(bl,Object(r.a)({},T,{className:w()(E,h)}),A,v.createElement(xl,O,D))};wl.__ANT_BUTTON=!0,wl.defaultProps={type:"default",buttonsRender:function(e){return e}};var Cl=wl,_l=(hs("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight"),function(e){var t,n,i,a,s,l=v.useContext(ae),c=l.getPopupContainer,u=l.getPrefixCls,d=l.direction,h=e.arrow,p=e.prefixCls,f=e.children,m=e.trigger,g=e.disabled,y=e.getPopupContainer,b=e.overlayClassName,C=u("dropdown",p),_=v.Children.only(f),x=ca(_,{className:w()("".concat(C,"-trigger"),o({},"".concat(C,"-rtl"),"rtl"===d),_.props.className),disabled:g}),S=w()(b,o({},"".concat(C,"-rtl"),"rtl"===d)),k=g?[]:m;return k&&-1!==k.indexOf("contextMenu")&&(t=!0),v.createElement(Ys,Object(r.a)({arrow:h,alignPoint:t},e,{overlayClassName:S,prefixCls:C,getPopupContainer:y||c,transitionName:(n=u(),i=e.placement,a=void 0===i?"":i,s=e.transitionName,void 0!==s?s:a.indexOf("top")>=0?"".concat(n,"-slide-down"):"".concat(n,"-slide-up")),trigger:k,overlay:function(){return function(t){var n,r=e.overlay;n="function"==typeof r?r():r;var o=(n=v.Children.only("string"==typeof n?v.createElement("span",null,n):n)).props;aa(!o.mode||"vertical"===o.mode,"Dropdown",'mode="'.concat(o.mode,"\" is not supported for Dropdown's Menu."));var i=o.selectable,a=void 0!==i&&i,s=o.focusable,l=void 0===s||s,c=o.expandIcon,u=void 0!==c&&v.isValidElement(c)?c:v.createElement("span",{className:"".concat(t,"-menu-submenu-arrow")},v.createElement(Ks,{className:"".concat(t,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?n:ca(n,{mode:"vertical",selectable:a,focusable:l,expandIcon:u})}(C)},placement:function(){var t=e.placement;return void 0!==t?t:"rtl"===d?"bottomRight":"bottomLeft"}()}),x)});_l.Button=Cl,_l.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var xl=_l,Sl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},kl=function(e){var t,n,o=e.prefixCls,i=e.separator,a=void 0===i?"/":i,s=e.children,l=e.overlay,c=e.dropdownProps,u=Sl(e,["prefixCls","separator","children","overlay","dropdownProps"]),d=(0,v.useContext(ae).getPrefixCls)("breadcrumb",o);return t="href"in u?v.createElement("a",Object(r.a)({className:"".concat(d,"-link")},u),s):v.createElement("span",Object(r.a)({className:"".concat(d,"-link")},u),s),n=t,t=l?v.createElement(xl,Object(r.a)({overlay:l,placement:"bottomCenter"},c),v.createElement("span",{className:"".concat(d,"-overlay-link")},n,v.createElement(Ai,null))):n,s?v.createElement("span",null,t,a&&v.createElement("span",{className:"".concat(d,"-separator")},a)):null};kl.__ANT_BREADCRUMB_ITEM=!0;var Pl=kl,Tl=function(e){var t=e.children,n=(0,v.useContext(ae).getPrefixCls)("breadcrumb");return v.createElement("span",{className:"".concat(n,"-separator")},t||"/")};Tl.__ANT_BREADCRUMB_SEPARATOR=!0;var El,Ol=Tl,Ml=(El=function(e,t){return(El=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}El(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Al=v.createContext(null),Dl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ml(t,e),t.prototype.render=function(){return v.createElement(Al.Provider,{value:this.props.store},this.props.children)},t}(v.Component),Il=n(63),Ll=n.n(Il),Nl=n(78),jl=n.n(Nl),Rl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zl=function(){return(zl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var Fl=function(){return{}};function Bl(e,t){void 0===t&&(t={});var n=!!e,r=e||Fl;return function(o){var i=function(t){function i(e,n){var o=t.call(this,e,n)||this;return o.unsubscribe=null,o.handleChange=function(){if(o.unsubscribe){var e=r(o.store.getState(),o.props);o.setState({subscribed:e})}},o.store=o.context,o.state={subscribed:r(o.store.getState(),e),store:o.store,props:e},o}return Rl(i,t),i.getDerivedStateFromProps=function(t,n){return e&&2===e.length&&t!==n.props?{subscribed:r(n.store.getState(),t),props:t}:{props:t}},i.prototype.componentDidMount=function(){this.trySubscribe()},i.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},i.prototype.shouldComponentUpdate=function(e,t){return!Ll()(this.props,e)||!Ll()(this.state.subscribed,t.subscribed)},i.prototype.trySubscribe=function(){n&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},i.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},i.prototype.render=function(){var e=zl(zl(zl({},this.props),this.state.subscribed),{store:this.store});return v.createElement(o,zl({},e,{ref:this.props.miniStoreForwardedRef}))},i.displayName="Connect("+function(e){return e.displayName||e.name||"Component"}(o)+")",i.contextType=Al,i}(v.Component);if(t.forwardRef){var a=v.forwardRef((function(e,t){return v.createElement(i,zl({},e,{miniStoreForwardedRef:t}))}));return jl()(a,o)}return jl()(i,o)}}var Hl=function(){return(Hl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Vl(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}var Yl=/iPhone/i,Wl=/iPod/i,Ul=/iPad/i,Kl=/\bAndroid(?:.+)Mobile\b/i,Gl=/Android/i,ql=/\bAndroid(?:.+)SD4930UR\b/i,$l=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Xl=/Windows Phone/i,Jl=/\bWindows(?:.+)ARM\b/i,Zl=/BlackBerry/i,Ql=/BB10/i,ec=/Opera Mini/i,tc=/\b(CriOS|Chrome)(?:.+)Mobile/i,nc=/Mobile(?:.+)Firefox\b/i;function rc(e,t){return e.test(t)}function oc(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");void 0!==n[1]&&(t=Ge(n,1)[0]);void 0!==(n=t.split("Twitter"))[1]&&(t=Ge(n,1)[0]);var r={apple:{phone:rc(Yl,t)&&!rc(Xl,t),ipod:rc(Wl,t),tablet:!rc(Yl,t)&&rc(Ul,t)&&!rc(Xl,t),device:(rc(Yl,t)||rc(Wl,t)||rc(Ul,t))&&!rc(Xl,t)},amazon:{phone:rc(ql,t),tablet:!rc(ql,t)&&rc($l,t),device:rc(ql,t)||rc($l,t)},android:{phone:!rc(Xl,t)&&rc(ql,t)||!rc(Xl,t)&&rc(Kl,t),tablet:!rc(Xl,t)&&!rc(ql,t)&&!rc(Kl,t)&&(rc($l,t)||rc(Gl,t)),device:!rc(Xl,t)&&(rc(ql,t)||rc($l,t)||rc(Kl,t)||rc(Gl,t))||rc(/\bokhttp\b/i,t)},windows:{phone:rc(Xl,t),tablet:rc(Jl,t),device:rc(Xl,t)||rc(Jl,t)},other:{blackberry:rc(Zl,t),blackberry10:rc(Ql,t),opera:rc(ec,t),firefox:rc(nc,t),chrome:rc(tc,t),device:rc(Zl,t)||rc(Ql,t)||rc(ec,t)||rc(nc,t)||rc(tc,t)},any:null,phone:null,tablet:null};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}var ic=S(S({},oc()),{},{isMobile:oc});function ac(){}function sc(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function lc(e){return"".concat(e,"-menu-")}function cc(e,t){var n=-1;v.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?v.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var uc=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],dc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var r=getComputedStyle(e),o=r.marginLeft,i=r.marginRight;n+=+o.replace("px","")+ +i.replace("px","")}n=+n.toFixed(6)}return n||0},hc=function(e,t,n){e&&"object"===g(e.style)&&(e.style[t]=n)},pc={adjustX:1,adjustY:1},fc={topLeft:{points:["bl","tl"],overflow:pc,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pc,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:pc,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:pc,offset:[4,0]}},mc={topLeft:{points:["bl","tl"],overflow:pc,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pc,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:pc,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:pc,offset:[4,0]}},gc=0,vc={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},yc=function(e,t,n){var r=lc(t),i=e.getState();e.setState({defaultActiveFirst:S(S({},i.defaultActiveFirst),{},o({},r,n))})},bc=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,o=r.props.store,i=r.getVisible();if(t===Je.ENTER)return r.onTitleClick(e),yc(o,r.props.eventKey,!0),!0;if(t===Je.RIGHT)return i?n.onKeyDown(e):(r.triggerOpenChange(!0),yc(o,r.props.eventKey,!0)),!0;if(t===Je.LEFT){var a;if(!i)return;return(a=n.onKeyDown(e))||(r.triggerOpenChange(!1),a=!0),a}return!i||t!==Je.UP&&t!==Je.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onMouseEnter,i=t.store;yc(i,r.props.eventKey,!1),o({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onMouseLeave;n.subMenuInstance=Object(p.a)(r),i({key:o,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,o=t.onItemHover,i=t.onTitleMouseEnter;o({key:n,hover:!0}),i({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,o=t.eventKey,i=t.onItemHover,a=t.onTitleMouseLeave;n.subMenuInstance=Object(p.a)(r),i({key:o,hover:!1}),a({key:o,domEvent:e})},r.onTitleClick=function(e){var t=Object(p.a)(r).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(r.triggerOpenChange(!r.getVisible(),"click"),yc(t.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"==typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.getVisible=function(){return r.state.isOpen},r.getMode=function(){return r.state.mode},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return S(S({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,o=function(){r.onOpenChange({key:n,item:Object(p.a)(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){o()}),0):o()},r.isChildrenSelected=function(){var e={find:!1};return function e(t,n,r){t&&!r.find&&v.Children.forEach(t,(function(t){if(t){var o=t.type;if(!o||!(o.isSubMenu||o.isMenuItem||o.isMenuItemGroup))return;-1!==n.indexOf(t.key)?r.find=!0:t.props.children&&e(t.props.children,n,r)}}))}(r.props.children,r.props.selectedKeys,e),e.find},r.isInlineMode=function(){return"inline"===r.getMode()},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=k.findDOMNode(r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(p.a)(r).props,t=r.getMode();return{mode:"horizontal"===t?"vertical":t,visible:r.getVisible(),level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(p.a)(r),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[lc(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},r.getMotion=function(e,t){var n=Object(p.a)(r).haveRendered,o=r.props,i=o.motion,a=o.rootPrefixCls;return S(S({},i),{},{leavedClassName:"".concat(a,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var o=e.store,a=e.eventKey,s=o.getState().defaultActiveFirst;r.isRootMenu=!1;var l=!1;return s&&(l=s[a]),yc(o,a,l),r.state={mode:e.mode,isOpen:e.isOpen},r}return s(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,o=t.manualRef,i=t.isOpen,a=function(){e.setState({mode:n,isOpen:i})},s=i!==this.state.isOpen,l=n!==this.state.mode;(l||s)&&(ve.cancel(this.updateStateRaf),l?this.updateStateRaf=ve(a):a()),o&&o(this),"horizontal"===n&&(null==r?void 0:r.isRootMenu)&&i&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ve.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return v.createElement(Oc,Object(r.a)({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,i=t.visible,a=t.forceSubMenuRender,s=t.direction,l=this.getMotion(n,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||a,!this.haveOpened)return v.createElement("div",null);var c=w()("".concat(t.prefixCls,"-sub"),o({},"".concat(t.prefixCls,"-rtl"),"rtl"===s));return this.isInlineMode()?v.createElement(or,Object(r.a)({visible:t.visible},l),(function(t){var n=t.className,r=t.style,o=w()(c,n);return e.renderPopupMenu(o,r)})):this.renderPopupMenu(c)}},{key:"render",value:function(){var e,t,n,i=S({},this.props),a=this.getVisible(),s=this.getPrefixCls(),l=this.isInlineMode(),c=this.getMode(),u=w()(s,"".concat(s,"-").concat(c),(o(e={},i.className,!!i.className),o(e,this.getOpenClassName(),a),o(e,this.getActiveClassName(),i.active||a&&!l),o(e,this.getDisabledClassName(),i.disabled),o(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(gc+=1,this.internalMenuId="$__$".concat(gc,"$Menu")));var d={},h={},p={};i.disabled||(d={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},h={onClick:this.onTitleClick},p={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var f={},m="rtl"===i.direction;l&&(m?f.paddingRight=i.inlineIndent*i.level:f.paddingLeft=i.inlineIndent*i.level);var g={};this.getVisible()&&(g={"aria-owns":this.internalMenuId});var y=null;"horizontal"!==c&&(y=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(y=v.createElement(this.props.expandIcon,S({},this.props))));var b=v.createElement("div",Object(r.a)({ref:this.saveSubMenuTitle,style:f,className:"".concat(s,"-title"),role:"button"},p,h,{"aria-expanded":a},g,{"aria-haspopup":"true",title:"string"==typeof i.title?i.title:void 0}),i.title,y||v.createElement("i",{className:"".concat(s,"-arrow")})),C=this.renderChildren(),_=(null===(t=i.parentMenu)||void 0===t?void 0:t.isRootMenu)?i.parentMenu.props.getPopupContainer:function(e){return e.parentNode},x=vc[c],k=i.popupOffset?{offset:i.popupOffset}:{},P=w()((o(n={},i.popupClassName,i.popupClassName&&!l),o(n,"".concat(s,"-rtl"),m),n)),T=i.disabled,E=i.triggerSubMenuAction,O=i.subMenuOpenDelay,M=i.forceSubMenuRender,A=i.subMenuCloseDelay,D=i.builtinPlacements;uc.forEach((function(e){return delete i[e]})),delete i.onClick;var I=S(S({},m?mc:fc),D);delete i.direction;var L=this.getBaseProps(),N=l?null:this.getMotion(L.mode,L.visible);return v.createElement("li",Object(r.a)({},i,d,{className:u,role:"menuitem"}),v.createElement(Io,{prefixCls:s,popupClassName:w()("".concat(s,"-popup"),P),getPopupContainer:_,builtinPlacements:I,popupPlacement:x,popupVisible:!l&&a,popupAlign:k,popup:l?null:C,action:T||l?[]:[E],mouseEnterDelay:O,mouseLeaveDelay:A,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:M,popupMotion:N},b),l?C:null)}}]),n}(v.Component);bc.defaultProps={onMouseEnter:ac,onMouseLeave:ac,onTitleMouseEnter:ac,onTitleMouseLeave:ac,onTitleClick:ac,manualRef:ac,mode:"vertical",title:""};var wc=Bl((function(e,t){var n=e.openKeys,r=e.activeKey,o=e.selectedKeys,i=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(i)>-1,active:r[a]===i,selectedKeys:o}}))(bc);wc.isSubMenu=!0;var Cc=wc,_c=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.childRef=v.createRef(),e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=e.childRef.current;return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,o){var i=e.props,a=i.overflowedIndicator,s=i.level,l=i.mode,c=i.prefixCls,u=i.theme;if(1!==s||"horizontal"!==l)return null;var d=e.props.children[0].props,h=(d.children,d.title,d.style),p=$e(d,["children","title","style"]),f=S({},h),m="".concat(t,"-overflowed-indicator"),g="".concat(t,"-overflowed-indicator");0===n.length&&!0!==o?f=S(S({},f),{},{display:"none"}):o&&(f=S(S({},f),{},{visibility:"hidden",position:"absolute"}),m="".concat(m,"-placeholder"),g="".concat(g,"-placeholder"));var y=u?"".concat(c,"-").concat(u):"",b={};return uc.forEach((function(e){void 0!==p[e]&&(b[e]=p[e])})),v.createElement(Cc,Object(r.a)({title:a,className:"".concat(c,"-overflowed-submenu"),popupClassName:y},b,{key:m,eventKey:g,disabled:!1,style:f}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];hc(r,"display","inline-block");var o=e.getMenuItemNodes(),i=o.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));i.forEach((function(e){hc(e,"display","inline-block")})),e.menuItemSizes=o.map((function(e){return dc(e,!0)})),i.forEach((function(e){hc(e,"display","none")})),e.overflowedIndicatorWidth=dc(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),hc(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=dc(t);e.overflowedItems=[];var r,o=0;e.originalTotalWidth>n+.5&&(r=-1,e.menuItemSizes.forEach((function(t){(o+=t)+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return s(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=this.childRef.current;if(!t)return;this.resizeObserver=new F.default((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,o,i){var a=o;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(o.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(a=v.cloneElement(o,{style:{display:"none"},eventKey:"".concat(o.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return v.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(o.props.eventKey,t.overflowedItems)));var l=[].concat(de(r),[s,a]);return i===e.length-1&&l.push(t.getOverflowedSubMenuItem(o.props.eventKey,[],!0)),l}return[].concat(de(r),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,o=(e.theme,$e(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),i=t;return v.createElement(i,Object(r.a)({ref:this.childRef},o),this.renderChildren(n))}}]),n}(v.Component);_c.defaultProps={tag:"div",className:""};var xc=_c;function Sc(e,t,n){var r=e.getState();e.setState({activeKey:S(S({},r.activeKey),{},o({},t,n))})}function kc(e){return e.eventKey||"0-menu-"}function Pc(e,t){var n,r=t,o=e.children,i=e.eventKey;if(r&&(cc(o,(function(e,t){e&&e.props&&!e.props.disabled&&r===sc(e,i,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(cc(o,(function(e,t){r||!e||e.props.disabled||(r=sc(e,i,t))})),r):r}function Tc(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var Ec=function(e){c(n,e);var t=m(n);function n(e){var r;return i(this,n),(r=t.call(this,e)).onKeyDown=function(e,t){var n,o=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var i=null;return o!==Je.UP&&o!==Je.DOWN||(i=r.step(o===Je.UP?-1:1)),i?(e.preventDefault(),Sc(r.props.store,kc(r.props),i.props.eventKey),"function"==typeof t&&t(i),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;Sc(r.props.store,kc(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[kc(r.props)],o=t.length;if(!o)return null;e<0&&(t=t.concat().reverse());var i=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(i=t,!1)})),r.props.defaultActiveFirst||-1===i||(a=t.slice(i,o-1)).length&&!a.every((function(e){return!!e.props.disabled}))){var a,s=(i+1)%o,l=s;do{var c=t[l];if(c&&!c.props.disabled)return c;l=(l+1)%o}while(l!==s);return null}},r.renderCommonMenuItem=function(e,t,n){var o=r.props.store.getState(),i=Object(p.a)(r).props,a=sc(e,i.eventKey,t),s=e.props;if(!s||"string"==typeof e.type)return e;var l=a===o.activeKey,c=S(S({mode:s.mode||i.mode,level:i.level,inlineIndent:i.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:i.prefixCls,index:t,parentMenu:i.parentMenu,manualRef:s.disabled?void 0:Vl(e.ref,Tc.bind(Object(p.a)(r))),eventKey:a,active:!s.disabled&&l,multiple:i.multiple,onClick:function(e){(s.onClick||ac)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:i.motion,subMenuOpenDelay:i.subMenuOpenDelay,subMenuCloseDelay:i.subMenuCloseDelay,forceSubMenuRender:i.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:i.builtinPlacements,itemIcon:s.itemIcon||r.props.itemIcon,expandIcon:s.expandIcon||r.props.expandIcon},n),{},{direction:i.direction});return("inline"===i.mode||ic.any)&&(c.triggerSubMenuAction="click"),v.cloneElement(e,S(S({},c),{},{key:a||t}))},r.renderMenuItem=function(e,t,n){if(!e)return null;var o=r.props.store.getState(),i={openKeys:o.openKeys,selectedKeys:o.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,i)},e.store.setState({activeKey:S(S({},e.store.getState().activeKey),{},o({},e.eventKey,Pc(e,e.activeKey)))}),r.instanceArray=[],r}return s(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!Ll()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[kc(t)],r=Pc(t,n);if(r!==n)Sc(t.store,kc(t),r);else if("activeKey"in e){r!==Pc(e,e.activeKey)&&Sc(t.store,kc(t),r)}}},{key:"render",value:function(){var e=this,t=Object(r.a)({},this.props);this.instanceArray=[];var n={className:w()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var o=t.prefixCls,i=t.eventKey,a=t.visible,s=t.level,l=t.mode,c=t.overflowedIndicator,u=t.theme;return uc.forEach((function(e){return delete t[e]})),delete t.onClick,v.createElement(xc,Object(r.a)({},t,{prefixCls:o,mode:l,tag:"ul",level:s,theme:u,visible:a,overflowedIndicator:c},n),O(t.children).map((function(t,n){return e.renderMenuItem(t,n,i||"0-menu-")})))}}]),n}(v.Component);Ec.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ac};var Oc=Bl()(Ec);function Mc(e,t,n){var r=e.prefixCls,o=e.motion,i=e.defaultMotions,a=void 0===i?{}:i,s=e.openAnimation,l=e.openTransitionName,c=t.switchingModeFromInline;if(o)return o;if("object"===g(s)&&s)N(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof s)return{motionName:"".concat(r,"-open-").concat(s)};if(l)return{motionName:l};var u=a[n];return u||(c?null:a.other)}var Ac=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).onSelect=function(e){var t=Object(p.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys,o=e.key;n=t.multiple?n.concat([o]):[o],"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onSelect(S(S({},e),{},{selectedKeys:n}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(p.a)(r),o=n.store,i=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(o.setState({openKeys:[]}),i([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(p.a)(r).props,n=r.store.getState().openKeys.concat(),o=!1,i=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var r=n.indexOf(e.key);(t=-1!==r)&&n.splice(r,1)}o=o||t};Array.isArray(e)?e.forEach(i):i(e),o&&("openKeys"in r.props||r.store.setState({openKeys:n}),t.onOpenChange(n))},r.onDeselect=function(e){var t=Object(p.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys.concat(),o=e.key,i=n.indexOf(o);-1!==i&&n.splice(i,1),"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onDeselect(S(S({},e),{},{selectedKeys:n}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,o="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,i="font-size"===e.propertyName&&o.indexOf("anticon")>=0;(t||i)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var o=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(o=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),r.store=function(e){var t=e,n=[];return{setState:function(e){t=Hl(Hl({},t),e);for(var r=0;r<n.length;r++)n[r]()},getState:function(){return t},subscribe:function(e){return n.push(e),function(){var t=n.indexOf(e);n.splice(t,1)}}}}({selectedKeys:o,openKeys:a,activeKey:{"0-menu-":Pc(e,e.activeKey)}}),r.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:r.store},r}return s(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,o=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&o([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=S({},_(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=S(S({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Mc(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,v.createElement(Dl,{store:this.store},v.createElement(Oc,Object(r.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.store,o=r.getState(),i={},a={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(a.switchingModeFromInline=!0),"openKeys"in e?i.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(a.switchingModeFromInline=!0,a.inlineOpenKeys=o.openKeys,i.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(i.openKeys=t.inlineOpenKeys,a.inlineOpenKeys=[])),Object.keys(i).length&&r.setState(i),a}}]),n}(v.Component);Ac.defaultProps={selectable:!0,onClick:ac,onSelect:ac,onOpenChange:ac,onDeselect:ac,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:v.createElement("span",null,"···")};var Dc=Ac,Ic=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===Je.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseLeave;o({key:r,hover:!1}),i({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,o=n.onItemHover,i=n.onMouseEnter;o({key:r,hover:!0}),i({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,o=n.multiple,i=n.onClick,a=n.onSelect,s=n.onDeselect,l=n.isSelected,c={key:r,keyPath:[r],item:Object(p.a)(e),domEvent:t};i(c),o?l?s(c):a(c):l||a(c)},e.saveNode=function(t){e.node=t},e}return s(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=S({},this.props),n=w()(this.getPrefixCls(),t.className,(o(e={},this.getActiveClassName(),!t.disabled&&t.active),o(e,this.getSelectedClassName(),t.isSelected),o(e,this.getDisabledClassName(),t.disabled),e)),i=S(S({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?i=S(S({},i),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(i.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},s=S({},t.style);"inline"===t.mode&&("rtl"===t.direction?s.paddingRight=t.inlineIndent*t.level:s.paddingLeft=t.inlineIndent*t.level),uc.forEach((function(e){return delete t[e]})),delete t.direction;var l=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(l=v.createElement(this.props.itemIcon,this.props)),v.createElement("li",Object(r.a)({},_(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,a,{style:s,ref:this.saveNode}),t.children,l)}}]),n}(v.Component);Ic.isMenuItem=!0,Ic.defaultProps={onSelect:ac,onMouseEnter:ac,onMouseLeave:ac,manualRef:ac};var Lc=Bl((function(e,t){var n=e.activeKey,r=e.selectedKeys,o=t.eventKey;return{active:n[t.subMenuKey]===o,isSelected:Array.isArray(r)?-1!==r.indexOf(o):r===o}}))(Ic),Nc=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return s(n,[{key:"render",value:function(){var e=Object(r.a)({},this.props),t=e.className,n=void 0===t?"":t,o=e.rootPrefixCls,i="".concat(o,"-item-group-title"),a="".concat(o,"-item-group-list"),s=e.title,l=e.children;return uc.forEach((function(t){return delete e[t]})),delete e.direction,v.createElement("li",Object(r.a)({},e,{onClick:function(e){return e.stopPropagation()},className:"".concat(n," ").concat(o,"-item-group")}),v.createElement("div",{className:i,title:"string"==typeof s?s:void 0},s),v.createElement("ul",{className:a},v.Children.map(l,this.renderInnerMenuItem)))}}]),n}(v.Component);Nc.isMenuItemGroup=!0,Nc.defaultProps={disabled:!0};var jc=Nc,Rc=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return v.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Rc.defaultProps={disabled:!0,className:"",style:{}};var zc=Rc,Fc=Dc,Bc=Object(v.createContext)({inlineCollapsed:!1}),Hc=function(e){c(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"renderTitle",value:function(e){var t=this.props,n=t.icon,r=t.title,o=t.level,i=t.rootPrefixCls;if(!n)return e&&1===o&&r&&"string"==typeof r?v.createElement("div",{className:"".concat(i,"-inline-collapsed-noicon")},r.charAt(0)):r;var a=sa(r)&&"span"===r.type;return v.createElement(v.Fragment,null,n,a?r:v.createElement("span",null,r))}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,o=t.popupClassName;return v.createElement(Bc.Consumer,null,(function(t){var i=t.inlineCollapsed,a=t.antdMenuTheme;return v.createElement(Cc,Object(r.a)({},_(e.props,["icon"]),{title:e.renderTitle(i),popupClassName:w()(n,"".concat(n,"-").concat(a),o)}))}))}}]),n}(v.Component);Hc.contextType=Bc,Hc.isSubMenu=1;var Vc=Hc,Yc={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Wc=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Yc}))};Wc.displayName="BarsOutlined";var Uc=v.forwardRef(Wc),Kc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Gc=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Kc}))};Gc.displayName="LeftOutlined";var qc=v.forwardRef(Gc),$c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Xc=v.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function Jc(e){var t=e.suffixCls,n=e.tagName,o=e.displayName;return function(e){var i=function(o){var i=v.useContext(ae).getPrefixCls,a=o.prefixCls,s=i(t,a);return v.createElement(e,Object(r.a)({prefixCls:s,tagName:n},o))};return i.displayName=o,i}}var Zc,Qc=function(e){var t=e.prefixCls,n=e.className,o=e.children,i=e.tagName,a=$c(e,["prefixCls","className","children","tagName"]),s=w()(t,n);return v.createElement(i,Object(r.a)({className:s},a),o)},eu=Jc({suffixCls:"layout",tagName:"section",displayName:"Layout"})((function(e){var t,n=v.useContext(ae).direction,i=Ge(v.useState([]),2),a=i[0],s=i[1],l=e.prefixCls,c=e.className,u=e.children,d=e.hasSider,h=e.tagName,p=$c(e,["prefixCls","className","children","hasSider","tagName"]),f=w()(l,(o(t={},"".concat(l,"-has-sider"),"boolean"==typeof d?d:a.length>0),o(t,"".concat(l,"-rtl"),"rtl"===n),t),c);return v.createElement(Xc.Provider,{value:{siderHook:{addSider:function(e){s((function(t){return[].concat(de(t),[e])}))},removeSider:function(e){s((function(t){return t.filter((function(t){return t!==e}))}))}}}},v.createElement(h,Object(r.a)({className:f},p),u))})),tu=Jc({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(Qc),nu=Jc({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(Qc),ru=Jc({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(Qc),ou=eu,iu=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},au=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},su={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},lu=v.createContext({}),cu=(Zc=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Zc+=1,"".concat(e).concat(Zc)}),uu=v.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,a=e.trigger,s=e.children,l=e.defaultCollapsed,c=void 0!==l&&l,u=e.theme,d=void 0===u?"dark":u,h=e.style,p=void 0===h?{}:h,f=e.collapsible,m=void 0!==f&&f,g=e.reverseArrow,y=void 0!==g&&g,b=e.width,C=void 0===b?200:b,x=e.collapsedWidth,S=void 0===x?80:x,k=e.zeroWidthTriggerStyle,P=e.breakpoint,T=e.onCollapse,E=e.onBreakpoint,O=au(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),M=Object(v.useContext)(Xc).siderHook,A=Ge(Object(v.useState)("collapsed"in O?O.collapsed:c),2),D=A[0],I=A[1],L=Ge(Object(v.useState)(!1),2),N=L[0],j=L[1];Object(v.useEffect)((function(){"collapsed"in O&&I(O.collapsed)}),[O.collapsed]);var R=function(e,t){"collapsed"in O||I(e),null==T||T(e,t)},z=Object(v.useRef)();z.current=function(e){j(e.matches),null==E||E(e.matches),D!==e.matches&&R(e.matches,"responsive")},Object(v.useEffect)((function(){function e(e){return z.current(e)}var t;if("undefined"!=typeof window){var n=window.matchMedia;if(n&&P&&P in su){t=n("(max-width: ".concat(su[P],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return function(){try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[]),Object(v.useEffect)((function(){var e=cu("ant-sider-");return M.addSider(e),function(){return M.removeSider(e)}}),[]);var F,B,H,V,Y,W,U,K,G,q,$=function(){R(!D,"clickTrigger")},X=Object(v.useContext)(ae).getPrefixCls;return v.createElement(lu.Provider,{value:{siderCollapsed:D,collapsedWidth:S}},(B=X("layout-sider",n),H=_(O,["collapsed"]),Y=iu(V=D?S:C)?"".concat(V,"px"):String(V),W=0===parseFloat(String(S||0))?v.createElement("span",{onClick:$,className:w()("".concat(B,"-zero-width-trigger"),"".concat(B,"-zero-width-trigger-").concat(y?"right":"left")),style:k},a||v.createElement(Uc,null)):null,U={expanded:y?v.createElement(Ks,null):v.createElement(qc,null),collapsed:y?v.createElement(qc,null):v.createElement(Ks,null)}[D?"collapsed":"expanded"],K=null!==a?W||v.createElement("div",{className:"".concat(B,"-trigger"),onClick:$,style:{width:Y}},a||U):null,G=Object(r.a)(Object(r.a)({},p),{flex:"0 0 ".concat(Y),maxWidth:Y,minWidth:Y,width:Y}),q=w()(B,"".concat(B,"-").concat(d),(o(F={},"".concat(B,"-collapsed"),!!D),o(F,"".concat(B,"-has-trigger"),m&&null!==a&&!W),o(F,"".concat(B,"-below"),!!N),o(F,"".concat(B,"-zero-width"),0===parseFloat(Y)),F),i),v.createElement("aside",Object(r.a)({className:q},H,{style:G,ref:t}),v.createElement("div",{className:"".concat(B,"-children")},s),m||N&&W?K:null)))}));uu.displayName="Sider";var du=uu,hu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},pu=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).renderItem=function(t){var n=t.siderCollapsed,i=e.props,a=i.level,s=i.className,l=i.children,c=i.rootPrefixCls,u=e.props,d=u.title,h=u.icon,p=u.danger,f=hu(u,["title","icon","danger"]);return v.createElement(Bc.Consumer,null,(function(t){var i,u,m=t.inlineCollapsed,g=t.direction,y=d;void 0===d?y=1===a?l:"":!1===d&&(y="");var b={title:y};n||m||(b.title=null,b.visible=!1);var C=O(l).length;return v.createElement(ys,Object(r.a)({},b,{placement:"rtl"===g?"left":"right",overlayClassName:"".concat(c,"-inline-collapsed-tooltip")}),v.createElement(Lc,Object(r.a)({},f,{className:w()((i={},o(i,"".concat(c,"-item-danger"),p),o(i,"".concat(c,"-item-only-child"),1===(h?C+1:C)),i),s),title:d}),ca(h,{className:w()(sa(h)?null===(u=h.props)||void 0===u?void 0:u.className:"","".concat(c,"-item-icon"))}),e.renderItemChildren(m)))}))},e}return s(n,[{key:"renderItemChildren",value:function(e){var t=this.props,n=t.icon,r=t.children,o=t.level,i=t.rootPrefixCls;return!n||sa(r)&&"span"===r.type?r&&e&&1===o&&"string"==typeof r?v.createElement("div",{className:"".concat(i,"-inline-collapsed-noicon")},r.charAt(0)):r:v.createElement("span",null,r)}},{key:"render",value:function(){return v.createElement(lu.Consumer,null,this.renderItem)}}]),n}(v.Component);pu.isMenuItem=!0;var fu=function(e){c(n,e);var t=m(n);function n(e){var a;return i(this,n),(a=t.call(this,e)).renderMenu=function(e){var t=e.getPopupContainer,n=e.getPrefixCls,i=e.direction,s=n(),l=a.props,c=l.prefixCls,u=l.className,d=l.theme,h=l.expandIcon,p={horizontal:{motionName:"".concat(s,"-slide-up")},inline:ta,other:{motionName:"".concat(s,"-zoom-big")}},f=n("menu",c),m=w()("".concat(f,"-").concat(d),o({},"".concat(f,"-inline-collapsed"),a.getInlineCollapsed()),u);return v.createElement(Bc.Provider,{value:{inlineCollapsed:a.getInlineCollapsed()||!1,antdMenuTheme:d,direction:i}},v.createElement(Fc,Object(r.a)({getPopupContainer:t},a.props,{className:m,prefixCls:f,direction:i,defaultMotions:p,expandIcon:ca(h,{className:"".concat(f,"-submenu-expand-icon")})})))},aa(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),aa(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),a}return s(n,[{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"render",value:function(){return v.createElement(se,null,this.renderMenu)}}]),n}(v.Component);fu.defaultProps={className:"",theme:"light",focusable:!1};var mu=function(e){c(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this;return v.createElement(lu.Consumer,null,(function(t){return v.createElement(fu,Object(r.a)({},e.props,t))}))}}]),n}(v.Component);mu.Divider=zc,mu.Item=pu,mu.SubMenu=Vc,mu.ItemGroup=jc;var gu=mu,vu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function yu(e,t,n,r){var o=n.indexOf(e)===n.length-1,i=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return o?v.createElement("span",null,i):v.createElement("a",{href:"#/".concat(r.join("/"))},i)}var bu=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},wu=function(e){var t,n=e.prefixCls,i=e.separator,a=void 0===i?"/":i,s=e.style,l=e.className,c=e.routes,u=e.children,d=e.itemRender,h=void 0===d?yu:d,p=e.params,f=void 0===p?{}:p,m=vu(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),g=v.useContext(ae),y=g.getPrefixCls,b=g.direction,C=y("breadcrumb",n);if(c&&c.length>0){var _=[];t=c.map((function(e){var t,n=bu(e.path,f);return n&&_.push(n),e.children&&e.children.length&&(t=v.createElement(gu,null,e.children.map((function(e){return v.createElement(gu.Item,{key:e.path||e.breadcrumbName},h(e,f,c,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=de(e),o=bu(t,n);return o&&r.push(o),r}(_,e.path,f)))})))),v.createElement(Pl,{overlay:t,separator:a,key:n||e.breadcrumbName},h(e,f,c,_))}))}else u&&(t=O(u).map((function(e,t){return e?(aa(e.type&&(!0===e.type.__ANT_BREADCRUMB_ITEM||!0===e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),ca(e,{separator:a,key:t})):e})));var x=w()(C,o({},"".concat(C,"-rtl"),"rtl"===b),l);return v.createElement("div",Object(r.a)({className:x,style:s},m),t)};wu.Item=Pl,wu.Separator=Ol;var Cu=wu,_u=n(3),xu=n.n(_u),Su={getNow:function(){return xu()()},getFixedDate:function(e){return xu()(e,"YYYY-MM-DD")},getEndDate:function(e){return e.clone().endOf("month")},getWeekDay:function(e){var t=e.clone().locale("en_US");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.clone().add(t,"year")},addMonth:function(e,t){return e.clone().add(t,"month")},addDate:function(e,t){return e.clone().add(t,"day")},setYear:function(e,t){return e.clone().year(t)},setMonth:function(e,t){return e.clone().month(t)},setDate:function(e,t){return e.clone().date(t)},setHour:function(e,t){return e.clone().hour(t)},setMinute:function(e,t){return e.clone().minute(t)},setSecond:function(e,t){return e.clone().second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return xu()().locale(e).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.clone().locale(e).weekday(0)},getWeek:function(e,t){return t.clone().locale(e).week()},getShortWeekDays:function(e){return xu()().locale(e).localeData().weekdaysMin()},getShortMonths:function(e){return xu()().locale(e).localeData().monthsShort()},format:function(e,t,n){return t.clone().locale(e).format(n)},parse:function(e,t,n){for(var r=[],o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){var s=(i=i.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),l=a.match(/[-\d]+/g);s&&l?(i=s.join(""),a=l.join("")):r.push(i.replace(/o/g,""))}var c=xu()(a,i,e,!0);if(c.isValid())return c}for(var u=0;u<r.length;u+=1){var d=xu()(t,r[u],e,!1);if(d.isValid())return L(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),d}return null}}},ku=n(240),Pu=n.n(ku),Tu=v.createContext({}),Eu={visibility:"hidden"};var Ou=function(e){var t=e.prefixCls,n=e.prevIcon,r=void 0===n?"‹":n,o=e.nextIcon,i=void 0===o?"›":o,a=e.superPrevIcon,s=void 0===a?"«":a,l=e.superNextIcon,c=void 0===l?"»":l,u=e.onSuperPrev,d=e.onSuperNext,h=e.onPrev,p=e.onNext,f=e.children,m=v.useContext(Tu),g=m.hideNextBtn,y=m.hidePrevBtn;return v.createElement("div",{className:t},u&&v.createElement("button",{type:"button",onClick:u,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:y?Eu:{}},s),h&&v.createElement("button",{type:"button",onClick:h,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:y?Eu:{}},r),v.createElement("div",{className:"".concat(t,"-view")},f),p&&v.createElement("button",{type:"button",onClick:p,tabIndex:-1,className:"".concat(t,"-next-btn"),style:g?Eu:{}},i),d&&v.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:g?Eu:{}},c))};var Mu=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.viewDate,i=e.onPrevDecades,a=e.onNextDecades;if(v.useContext(Tu).hideHeader)return null;var s="".concat(t,"-header"),l=n.getYear(o),c=Math.floor(l/Ku)*Ku,u=c+Ku-1;return v.createElement(Ou,Object(r.a)({},e,{prefixCls:s,onSuperPrev:i,onSuperNext:a}),c,"-",u)};function Au(e,t,n,r,o){var i=e.setHour(t,n);return i=e.setMinute(i,r),i=e.setSecond(i,o)}function Du(e,t,n){if(!n)return t;var r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n))}function Iu(e,t){var n=e.getYear(t),r=e.getMonth(t)+1,o=e.getEndDate(e.getFixedDate("".concat(n,"-").concat(r,"-01"))),i=e.getDate(o),a=r<10?"0".concat(r):"".concat(r);return"".concat(n,"-").concat(a,"-").concat(i)}function Lu(e){for(var t=e.prefixCls,n=e.disabledDate,r=e.onSelect,i=e.picker,a=e.rowNum,s=e.colNum,l=e.prefixColumn,c=e.rowClassName,u=e.baseDate,d=e.getCellClassName,h=e.getCellText,p=e.getCellNode,f=e.getCellDate,m=e.generateConfig,g=e.titleCell,y=e.headerCells,b=v.useContext(Tu),C=b.onDateMouseEnter,_=b.onDateMouseLeave,x=b.mode,k="".concat(t,"-cell"),P=[],T=0;T<a;T+=1){for(var E=[],O=void 0,M=function(e){var t,a=f(u,T*s+e),c=ad({cellDate:a,mode:x,disabledDate:n,generateConfig:m});0===e&&(O=a,l&&E.push(l(O)));var y=g&&g(a);E.push(v.createElement("td",{key:e,title:y,className:w()(k,S((t={},o(t,"".concat(k,"-disabled"),c),o(t,"".concat(k,"-start"),1===h(a)||"year"===i&&Number(y)%10==0),o(t,"".concat(k,"-end"),y===Iu(m,a)||"year"===i&&Number(y)%10==9),t),d(a))),onClick:function(){c||r(a)},onMouseEnter:function(){!c&&C&&C(a)},onMouseLeave:function(){!c&&_&&_(a)}},p?p(a):v.createElement("div",{className:"".concat(k,"-inner")},h(a))))},A=0;A<s;A+=1)M(A);P.push(v.createElement("tr",{key:T,className:c&&c(O)},E))}return v.createElement("div",{className:"".concat(t,"-body")},v.createElement("table",{className:"".concat(t,"-content")},y&&v.createElement("thead",null,v.createElement("tr",null,y)),v.createElement("tbody",null,P)))}var Nu=function(e){var t=Uu-1,n=e.prefixCls,i=e.viewDate,a=e.generateConfig,s="".concat(n,"-cell"),l=a.getYear(i),c=Math.floor(l/Uu)*Uu,u=Math.floor(l/Ku)*Ku,d=u+Ku-1,h=a.setYear(i,u-Math.ceil((12*Uu-Ku)/2));return v.createElement(Lu,Object(r.a)({},e,{rowNum:4,colNum:3,baseDate:h,getCellText:function(e){var n=a.getYear(e);return"".concat(n,"-").concat(n+t)},getCellClassName:function(e){var n,r=a.getYear(e),i=r+t;return o(n={},"".concat(s,"-in-view"),u<=r&&i<=d),o(n,"".concat(s,"-selected"),r===c),n},getCellDate:function(e,t){return a.addYear(e,t*Uu)}}))},ju=new Map;function Ru(e,t,n){if(ju.get(e)&&cancelAnimationFrame(ju.get(e)),n<=0)ju.set(e,requestAnimationFrame((function(){e.scrollTop=t})));else{var r=(t-e.scrollTop)/n*10;ju.set(e,requestAnimationFrame((function(){e.scrollTop+=r,e.scrollTop!==t&&Ru(e,t,n-10)})))}}function zu(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,o=t.onUpDown,i=t.onPageUpDown,a=t.onEnter,s=e.which,l=e.ctrlKey,c=e.metaKey;switch(s){case Je.LEFT:if(l||c){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case Je.RIGHT:if(l||c){if(r)return r(1),!0}else if(n)return n(1),!0;break;case Je.UP:if(o)return o(-1),!0;break;case Je.DOWN:if(o)return o(1),!0;break;case Je.PAGE_UP:if(i)return i(-1),!0;break;case Je.PAGE_DOWN:if(i)return i(1),!0;break;case Je.ENTER:if(a)return a(),!0}return!1}function Fu(e,t,n,r){var o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function Bu(e,t,n){var r="time"===e?8:10,o="function"==typeof t?t(n.getNow()).length:t.length;return Math.max(r,o)+2}var Hu=null,Vu=new Set;var Yu={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function Wu(e,t){return e.some((function(e){return e&&e.contains(t)}))}var Uu=10,Ku=10*Uu;var Gu=function(e){var t=e.prefixCls,n=e.onViewDateChange,o=e.generateConfig,i=e.viewDate,a=e.operationRef,s=e.onSelect,l=e.onPanelChange,c="".concat(t,"-decade-panel");a.current={onKeyDown:function(e){return zu(e,{onLeftRight:function(e){s(o.addYear(i,e*Uu),"key")},onCtrlLeftRight:function(e){s(o.addYear(i,e*Ku),"key")},onUpDown:function(e){s(o.addYear(i,e*Uu*3),"key")},onEnter:function(){l("year",i)}})}};var u=function(e){var t=o.addYear(i,e*Ku);n(t),l(null,t)};return v.createElement("div",{className:c},v.createElement(Mu,Object(r.a)({},e,{prefixCls:t,onPrevDecades:function(){u(-1)},onNextDecades:function(){u(1)}})),v.createElement(Nu,Object(r.a)({},e,{prefixCls:t,onSelect:function(e){s(e,"mouse"),l("year",e)}})))};function qu(e,t){return!e&&!t||!(!e||!t)&&void 0}function $u(e,t,n){var r=qu(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)}function Xu(e,t){return Math.floor(e.getMonth(t)/3)+1}function Ju(e,t,n){var r=qu(t,n);return"boolean"==typeof r?r:$u(e,t,n)&&Xu(e,t)===Xu(e,n)}function Zu(e,t,n){var r=qu(t,n);return"boolean"==typeof r?r:$u(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Qu(e,t,n){var r=qu(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function ed(e,t,n,r){var o=qu(n,r);return"boolean"==typeof o?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function td(e,t,n){return Qu(e,t,n)&&function(e,t,n){var r=qu(t,n);return"boolean"==typeof r?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function nd(e,t,n,r){return!!(t&&n&&r)&&(!Qu(e,t,r)&&!Qu(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r))}function rd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function od(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return"function"==typeof o?o(e):n.locale.format(r.locale,e,o)}function id(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return e&&"function"!=typeof o[0]?n.locale.parse(r.locale,e,o):null}function ad(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(e,n,i){for(var a=n;a<=i;){var s=void 0;switch(e){case"date":if(s=o.setDate(t,a),!r(s))return!1;break;case"month":if(!ad({cellDate:s=o.setMonth(t,a),mode:"month",generateConfig:o,disabledDate:r}))return!1;break;case"year":if(!ad({cellDate:s=o.setYear(t,a),mode:"year",generateConfig:o,disabledDate:r}))return!1}a+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":return i("date",1,o.getDate(o.getEndDate(t)));case"quarter":var a=3*Math.floor(o.getMonth(t)/3);return i("month",a,a+2);case"year":return i("month",0,11);case"decade":var s=o.getYear(t),l=Math.floor(s/Uu)*Uu;return i("year",l,l+Uu-1)}}var sd=function(e){if(v.useContext(Tu).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.format,a="".concat(t,"-header");return v.createElement(Ou,{prefixCls:a},o?od(o,{locale:r,format:i,generateConfig:n}):" ")};var ld=function(e){var t=e.prefixCls,n=e.units,r=e.onSelect,i=e.value,a=e.active,s=e.hideDisabledOptions,l="".concat(t,"-cell"),c=v.useContext(Tu).open,u=Object(v.useRef)(null),d=Object(v.useRef)(new Map),h=Object(v.useRef)();return Object(v.useLayoutEffect)((function(){var e=d.current.get(i);e&&!1!==c&&Ru(u.current,e.offsetTop,120)}),[i]),Object(v.useLayoutEffect)((function(){if(c){var e=d.current.get(i);e&&(h.current=(t=e,n=function(){Ru(u.current,e.offsetTop,0)},function e(){lr(t)?n():r=ve((function(){e()}))}(),function(){ve.cancel(r)}))}var t,n,r;return function(){var e;null===(e=h.current)||void 0===e||e.call(h)}}),[c]),v.createElement("ul",{className:w()("".concat(t,"-column"),o({},"".concat(t,"-column-active"),a)),ref:u,style:{position:"relative"}},n.map((function(e){var t;return s&&e.disabled?null:v.createElement("li",{key:e.value,ref:function(t){d.current.set(e.value,t)},className:w()(l,(t={},o(t,"".concat(l,"-disabled"),e.disabled),o(t,"".concat(l,"-selected"),i===e.value),t)),onClick:function(){e.disabled||r(e.value)}},v.createElement("div",{className:"".concat(l,"-inner")},e.label))})))};function cd(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(e);return r}function ud(e){return null==e?[]:Array.isArray(e)?e:[e]}function dd(e){var t={};return Object.keys(e).forEach((function(n){"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n&&"name"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n])})),t}function hd(e,t){return e?e[t]:null}function pd(e,t,n){var r=[hd(e,0),hd(e,1)];return r[n]="function"==typeof t?t(r[n]):t,r[0]||r[1]?r:null}function fd(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n].disabled!==t[n].disabled)return!0;return!1}function md(e,t,n,r){for(var o=[],i=e;i<=t;i+=n)o.push({label:cd(i,2),value:i,disabled:(r||[]).includes(i)});return o}var gd=function(e){var t,n=e.generateConfig,r=e.prefixCls,o=e.operationRef,i=e.activeColumnIndex,a=e.value,s=e.showHour,l=e.showMinute,c=e.showSecond,u=e.use12Hours,d=e.hourStep,h=void 0===d?1:d,p=e.minuteStep,f=void 0===p?1:p,m=e.secondStep,g=void 0===m?1:m,y=e.disabledHours,b=e.disabledMinutes,w=e.disabledSeconds,C=e.hideDisabledOptions,_=e.onSelect,x=[],k="".concat(r,"-content"),P="".concat(r,"-time-panel"),T=a?n.getHour(a):-1,E=T,O=a?n.getMinute(a):-1,M=a?n.getSecond(a):-1,A=function(e,t,r,o){var i=a||n.getNow(),s=Math.max(0,t),l=Math.max(0,r),c=Math.max(0,o);return i=Au(n,i,u&&e?s+12:s,l,c)},D=md(0,23,h,y&&y()),I=rt((function(){return D}),D,fd);u&&(t=E>=12,E%=12);var L=Ge(v.useMemo((function(){if(!u)return[!1,!1];var e=[!0,!0];return I.forEach((function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)})),e}),[u,I]),2),N=L[0],j=L[1],R=v.useMemo((function(){return u?I.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":cd(t,2);return S(S({},e),{},{label:n,value:t})})):I}),[u,t,I]),z=md(0,59,f,b&&b(T)),F=md(0,59,g,w&&w(T,O));function B(e,t,n,r,o){!1!==e&&x.push({node:v.cloneElement(t,{prefixCls:P,value:n,active:i===x.length,onSelect:o,units:r,hideDisabledOptions:C}),onSelect:o,value:n,units:r})}o.current={onUpDown:function(e){var t=x[i];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,o=1;o<r;o+=1){var a=t.units[(n+e*o+r)%r];if(!0!==a.disabled){t.onSelect(a.value);break}}}},B(s,v.createElement(ld,{key:"hour"}),E,R,(function(e){_(A(t,e,O,M),"mouse")})),B(l,v.createElement(ld,{key:"minute"}),O,z,(function(e){_(A(t,E,e,M),"mouse")})),B(c,v.createElement(ld,{key:"second"}),M,F,(function(e){_(A(t,E,O,e),"mouse")}));var H=-1;return"boolean"==typeof t&&(H=t?1:0),B(!0===u,v.createElement(ld,{key:"12hours"}),H,[{label:"AM",value:0,disabled:N},{label:"PM",value:1,disabled:j}],(function(e){_(A(!!e,E,O,M),"mouse")})),v.createElement("div",{className:k},x.map((function(e){return e.node})))};var vd=function(e){var t=e.generateConfig,n=e.format,i=void 0===n?"HH:mm:ss":n,a=e.prefixCls,s=e.active,l=e.operationRef,c=e.showHour,u=e.showMinute,d=e.showSecond,h=e.use12Hours,p=void 0!==h&&h,f=e.onSelect,m=e.value,g="".concat(a,"-time-panel"),y=v.useRef(),b=Ge(v.useState(-1),2),C=b[0],_=b[1],x=[c,u,d,p].filter((function(e){return!1!==e})).length;return l.current={onKeyDown:function(e){return zu(e,{onLeftRight:function(e){_((C+e+x)%x)},onUpDown:function(e){-1===C?_(0):y.current&&y.current.onUpDown(e)},onEnter:function(){f(m||t.getNow(),"key"),_(-1)}})},onBlur:function(){_(-1)}},v.createElement("div",{className:w()(g,o({},"".concat(g,"-active"),s))},v.createElement(sd,Object(r.a)({},e,{format:i,prefixCls:a})),v.createElement(gd,Object(r.a)({},e,{prefixCls:a,activeColumnIndex:C,operationRef:y})))},yd=v.createContext({});function bd(e){var t=e.cellPrefixCls,n=e.generateConfig,r=e.rangedValue,i=e.hoverRangedValue,a=e.isInView,s=e.isSameCell,l=e.offsetCell,c=e.today,u=e.value;return function(e){var d,h=l(e,-1),p=l(e,1),f=hd(r,0),m=hd(r,1),g=hd(i,0),v=hd(i,1),y=nd(n,g,v,e);function b(e){return s(f,e)}function w(e){return s(m,e)}var C=s(g,e),_=s(v,e),x=(y||_)&&(!a(h)||w(h)),S=(y||C)&&(!a(p)||b(p));return o(d={},"".concat(t,"-in-view"),a(e)),o(d,"".concat(t,"-in-range"),nd(n,f,m,e)),o(d,"".concat(t,"-range-start"),b(e)),o(d,"".concat(t,"-range-end"),w(e)),o(d,"".concat(t,"-range-start-single"),b(e)&&!m),o(d,"".concat(t,"-range-end-single"),w(e)&&!f),o(d,"".concat(t,"-range-start-near-hover"),b(e)&&(s(h,g)||nd(n,g,v,h))),o(d,"".concat(t,"-range-end-near-hover"),w(e)&&(s(p,v)||nd(n,g,v,p))),o(d,"".concat(t,"-range-hover"),y),o(d,"".concat(t,"-range-hover-start"),C),o(d,"".concat(t,"-range-hover-end"),_),o(d,"".concat(t,"-range-hover-edge-start"),x),o(d,"".concat(t,"-range-hover-edge-end"),S),o(d,"".concat(t,"-range-hover-edge-start-near-range"),x&&s(h,m)),o(d,"".concat(t,"-range-hover-edge-end-near-range"),S&&s(p,f)),o(d,"".concat(t,"-today"),s(c,e)),o(d,"".concat(t,"-selected"),s(u,e)),d}}var wd=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.prefixColumn,i=e.locale,a=e.rowCount,s=e.viewDate,l=e.value,c=e.dateRender,u=v.useContext(yd),d=u.rangedValue,h=u.hoverRangedValue,p=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,n,s),f="".concat(t,"-cell"),m=n.locale.getWeekFirstDay(i.locale),g=n.getNow(),y=[],b=i.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(i.locale):[]);o&&y.push(v.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var w=0;w<7;w+=1)y.push(v.createElement("th",{key:w},b[(w+m)%7]));var C=bd({cellPrefixCls:f,today:g,value:l,generateConfig:n,rangedValue:o?null:d,hoverRangedValue:o?null:h,isSameCell:function(e,t){return Qu(n,e,t)},isInView:function(e){return Zu(n,e,s)},offsetCell:function(e,t){return n.addDate(e,t)}}),_=c?function(e){return c(e,g)}:void 0;return v.createElement(Lu,Object(r.a)({},e,{rowNum:a,colNum:7,baseDate:p,getCellNode:_,getCellText:n.getDate,getCellClassName:C,getCellDate:n.addDate,titleCell:function(e){return od(e,{locale:i,format:"YYYY-MM-DD",generateConfig:n})},headerCells:y}))};var Cd=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.viewDate,a=e.onNextMonth,s=e.onPrevMonth,l=e.onNextYear,c=e.onPrevYear,u=e.onYearClick,d=e.onMonthClick;if(v.useContext(Tu).hideHeader)return null;var h="".concat(t,"-header"),p=o.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(o.locale):[]),f=n.getMonth(i),m=v.createElement("button",{type:"button",key:"year",onClick:u,tabIndex:-1,className:"".concat(t,"-year-btn")},od(i,{locale:o,format:o.yearFormat,generateConfig:n})),g=v.createElement("button",{type:"button",key:"month",onClick:d,tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?od(i,{locale:o,format:o.monthFormat,generateConfig:n}):p[f]),y=o.monthBeforeYear?[g,m]:[m,g];return v.createElement(Ou,Object(r.a)({},e,{prefixCls:h,onSuperPrev:c,onPrev:s,onNext:a,onSuperNext:l}),y)};var _d=function(e){var t=e.prefixCls,n=e.panelName,i=void 0===n?"date":n,a=e.keyboardConfig,s=e.active,l=e.operationRef,c=e.generateConfig,u=e.value,d=e.viewDate,h=e.onViewDateChange,p=e.onPanelChange,f=e.onSelect,m="".concat(t,"-").concat(i,"-panel");l.current={onKeyDown:function(e){return zu(e,S({onLeftRight:function(e){f(c.addDate(u||d,e),"key")},onCtrlLeftRight:function(e){f(c.addYear(u||d,e),"key")},onUpDown:function(e){f(c.addDate(u||d,7*e),"key")},onPageUpDown:function(e){f(c.addMonth(u||d,e),"key")}},a))}};var g=function(e){var t=c.addYear(d,e);h(t),p(null,t)},y=function(e){var t=c.addMonth(d,e);h(t),p(null,t)};return v.createElement("div",{className:w()(m,o({},"".concat(m,"-active"),s))},v.createElement(Cd,Object(r.a)({},e,{prefixCls:t,value:u,viewDate:d,onPrevYear:function(){g(-1)},onNextYear:function(){g(1)},onPrevMonth:function(){y(-1)},onNextMonth:function(){y(1)},onMonthClick:function(){p("month",d)},onYearClick:function(){p("year",d)}})),v.createElement(wd,Object(r.a)({},e,{onSelect:function(e){return f(e,"mouse")},prefixCls:t,value:u,viewDate:d,rowCount:6})))},xd=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("date","time");var Sd=function(e){var t=e.prefixCls,n=e.operationRef,i=e.generateConfig,a=e.value,s=e.defaultValue,l=e.disabledTime,c=e.showTime,u=e.onSelect,d="".concat(t,"-datetime-panel"),h=Ge(v.useState(null),2),p=h[0],f=h[1],m=v.useRef({}),y=v.useRef({}),b="object"===g(c)?S({},c):{},C=function(e){y.current.onBlur&&y.current.onBlur(e),f(null)};n.current={onKeyDown:function(e){if(e.which===Je.TAB){var t=(n=e.shiftKey?-1:1,r=xd.indexOf(p)+n,xd[r]||null);return f(t),t&&e.preventDefault(),!0}var n,r;if(p){var o="date"===p?m:y;return o.current&&o.current.onKeyDown&&o.current.onKeyDown(e),!0}return!![Je.LEFT,Je.RIGHT,Je.UP,Je.DOWN].includes(e.which)&&(f("date"),!0)},onBlur:C,onClose:C};var _=function(e,t){var n=e;"date"===t&&!a&&b.defaultValue?(n=i.setHour(n,i.getHour(b.defaultValue)),n=i.setMinute(n,i.getMinute(b.defaultValue)),n=i.setSecond(n,i.getSecond(b.defaultValue))):"time"===t&&!a&&s&&(n=i.setYear(n,i.getYear(s)),n=i.setMonth(n,i.getMonth(s)),n=i.setDate(n,i.getDate(s))),u&&u(n,"mouse")},x=l?l(a||null):{};return v.createElement("div",{className:w()(d,o({},"".concat(d,"-active"),p))},v.createElement(_d,Object(r.a)({},e,{operationRef:m,active:"date"===p,onSelect:function(e){_(Du(i,e,c&&"object"===g(c)?c.defaultValue:null),"date")}})),v.createElement(vd,Object(r.a)({},e,{format:void 0},b,x,{defaultValue:void 0,operationRef:y,active:"time"===p,onSelect:function(e){_(e,"time")}})))};var kd=function(e){var t=e.prefixCls,n=e.generateConfig,i=e.locale,a=e.value,s="".concat(t,"-cell"),l="".concat(t,"-week-panel-row");return v.createElement(_d,Object(r.a)({},e,{panelName:"week",prefixColumn:function(e){return v.createElement("td",{key:"week",className:w()(s,"".concat(s,"-week"))},n.locale.getWeek(i.locale,e))},rowClassName:function(e){return w()(l,o({},"".concat(l,"-selected"),ed(n,i.locale,a,e)))},keyboardConfig:{onLeftRight:null}}))};var Pd=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.viewDate,a=e.onNextYear,s=e.onPrevYear,l=e.onYearClick;if(v.useContext(Tu).hideHeader)return null;var c="".concat(t,"-header");return v.createElement(Ou,Object(r.a)({},e,{prefixCls:c,onSuperPrev:s,onSuperNext:a}),v.createElement("button",{type:"button",onClick:l,className:"".concat(t,"-year-btn")},od(i,{locale:o,format:o.yearFormat,generateConfig:n})))};var Td=function(e){var t=e.prefixCls,n=e.locale,o=e.value,i=e.viewDate,a=e.generateConfig,s=e.monthCellRender,l=v.useContext(yd),c=l.rangedValue,u=l.hoverRangedValue,d=bd({cellPrefixCls:"".concat(t,"-cell"),value:o,generateConfig:a,rangedValue:c,hoverRangedValue:u,isSameCell:function(e,t){return Zu(a,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return a.addMonth(e,t)}}),h=n.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(n.locale):[]),p=a.setMonth(i,0),f=s?function(e){return s(e,n)}:void 0;return v.createElement(Lu,Object(r.a)({},e,{rowNum:4,colNum:3,baseDate:p,getCellNode:f,getCellText:function(e){return n.monthFormat?od(e,{locale:n,format:n.monthFormat,generateConfig:a}):h[a.getMonth(e)]},getCellClassName:d,getCellDate:a.addMonth,titleCell:function(e){return od(e,{locale:n,format:"YYYY-MM",generateConfig:a})}}))};var Ed=function(e){var t=e.prefixCls,n=e.operationRef,o=e.onViewDateChange,i=e.generateConfig,a=e.value,s=e.viewDate,l=e.onPanelChange,c=e.onSelect,u="".concat(t,"-month-panel");n.current={onKeyDown:function(e){return zu(e,{onLeftRight:function(e){c(i.addMonth(a||s,e),"key")},onCtrlLeftRight:function(e){c(i.addYear(a||s,e),"key")},onUpDown:function(e){c(i.addMonth(a||s,3*e),"key")},onEnter:function(){l("date",a||s)}})}};var d=function(e){var t=i.addYear(s,e);o(t),l(null,t)};return v.createElement("div",{className:u},v.createElement(Pd,Object(r.a)({},e,{prefixCls:t,onPrevYear:function(){d(-1)},onNextYear:function(){d(1)},onYearClick:function(){l("year",s)}})),v.createElement(Td,Object(r.a)({},e,{prefixCls:t,onSelect:function(e){c(e,"mouse"),l("date",e)}})))};var Od=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.locale,i=e.viewDate,a=e.onNextYear,s=e.onPrevYear,l=e.onYearClick;if(v.useContext(Tu).hideHeader)return null;var c="".concat(t,"-header");return v.createElement(Ou,Object(r.a)({},e,{prefixCls:c,onSuperPrev:s,onSuperNext:a}),v.createElement("button",{type:"button",onClick:l,className:"".concat(t,"-year-btn")},od(i,{locale:o,format:o.yearFormat,generateConfig:n})))};var Md=function(e){var t=e.prefixCls,n=e.locale,o=e.value,i=e.viewDate,a=e.generateConfig,s=v.useContext(yd),l=s.rangedValue,c=s.hoverRangedValue,u=bd({cellPrefixCls:"".concat(t,"-cell"),value:o,generateConfig:a,rangedValue:l,hoverRangedValue:c,isSameCell:function(e,t){return Ju(a,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return a.addMonth(e,3*t)}}),d=a.setDate(a.setMonth(i,0),1);return v.createElement(Lu,Object(r.a)({},e,{rowNum:1,colNum:4,baseDate:d,getCellText:function(e){return od(e,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:a})},getCellClassName:u,getCellDate:function(e,t){return a.addMonth(e,3*t)},titleCell:function(e){return od(e,{locale:n,format:"YYYY-[Q]Q",generateConfig:a})}}))};var Ad=function(e){var t=e.prefixCls,n=e.operationRef,o=e.onViewDateChange,i=e.generateConfig,a=e.value,s=e.viewDate,l=e.onPanelChange,c=e.onSelect,u="".concat(t,"-quarter-panel");n.current={onKeyDown:function(e){return zu(e,{onLeftRight:function(e){c(i.addMonth(a||s,3*e),"key")},onCtrlLeftRight:function(e){c(i.addYear(a||s,e),"key")},onUpDown:function(e){c(i.addYear(a||s,e),"key")}})}};var d=function(e){var t=i.addYear(s,e);o(t),l(null,t)};return v.createElement("div",{className:u},v.createElement(Od,Object(r.a)({},e,{prefixCls:t,onPrevYear:function(){d(-1)},onNextYear:function(){d(1)},onYearClick:function(){l("year",s)}})),v.createElement(Md,Object(r.a)({},e,{prefixCls:t,onSelect:function(e){c(e,"mouse")}})))};var Dd=function(e){var t=e.prefixCls,n=e.generateConfig,o=e.viewDate,i=e.onPrevDecade,a=e.onNextDecade,s=e.onDecadeClick;if(v.useContext(Tu).hideHeader)return null;var l="".concat(t,"-header"),c=n.getYear(o),u=Math.floor(c/Ld)*Ld,d=u+Ld-1;return v.createElement(Ou,Object(r.a)({},e,{prefixCls:l,onSuperPrev:i,onSuperNext:a}),v.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-decade-btn")},u,"-",d))};var Id=function(e){var t=e.prefixCls,n=e.value,o=e.viewDate,i=e.locale,a=e.generateConfig,s=v.useContext(yd),l=s.rangedValue,c=s.hoverRangedValue,u="".concat(t,"-cell"),d=a.getYear(o),h=Math.floor(d/Ld)*Ld,p=h+Ld-1,f=a.setYear(o,h-Math.ceil((12-Ld)/2)),m=bd({cellPrefixCls:u,value:n,generateConfig:a,rangedValue:l,hoverRangedValue:c,isSameCell:function(e,t){return $u(a,e,t)},isInView:function(e){var t=a.getYear(e);return h<=t&&t<=p},offsetCell:function(e,t){return a.addYear(e,t)}});return v.createElement(Lu,Object(r.a)({},e,{rowNum:4,colNum:3,baseDate:f,getCellText:a.getYear,getCellClassName:m,getCellDate:a.addYear,titleCell:function(e){return od(e,{locale:i,format:"YYYY",generateConfig:a})}}))},Ld=10;var Nd=function(e){var t=e.prefixCls,n=e.operationRef,o=e.onViewDateChange,i=e.generateConfig,a=e.value,s=e.viewDate,l=e.sourceMode,c=e.onSelect,u=e.onPanelChange,d="".concat(t,"-year-panel");n.current={onKeyDown:function(e){return zu(e,{onLeftRight:function(e){c(i.addYear(a||s,e),"key")},onCtrlLeftRight:function(e){c(i.addYear(a||s,e*Ld),"key")},onUpDown:function(e){c(i.addYear(a||s,3*e),"key")},onEnter:function(){u("date"===l?"date":"month",a||s)}})}};var h=function(e){var t=i.addYear(s,10*e);o(t),u(null,t)};return v.createElement("div",{className:d},v.createElement(Dd,Object(r.a)({},e,{prefixCls:t,onPrevDecade:function(){h(-1)},onNextDecade:function(){h(1)},onDecadeClick:function(){u("decade",s)}})),v.createElement(Id,Object(r.a)({},e,{prefixCls:t,onSelect:function(e){u("date"===l?"date":"month",e),c(e,"mouse")}})))};function jd(e,t,n){return n?v.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function Rd(e){var t,n,r=e.prefixCls,o=e.rangeList,i=void 0===o?[]:o,a=e.components,s=void 0===a?{}:a,l=e.needConfirmButton,c=e.onNow,u=e.onOk,d=e.okDisabled,h=e.showNow,p=e.locale;if(i.length){var f=s.rangeItem||"span";t=v.createElement(v.Fragment,null,i.map((function(e){var t=e.label,n=e.onClick,o=e.onMouseEnter,i=e.onMouseLeave;return v.createElement("li",{key:t,className:"".concat(r,"-preset")},v.createElement(f,{onClick:n,onMouseEnter:o,onMouseLeave:i},t))})))}if(l){var m=s.button||"button";c&&!t&&!1!==h&&(t=v.createElement("li",{className:"".concat(r,"-now")},v.createElement("a",{className:"".concat(r,"-now-btn"),onClick:c},p.now))),n=l&&v.createElement("li",{className:"".concat(r,"-ok")},v.createElement(m,{disabled:d,onClick:u},p.ok))}return t||n?v.createElement("ul",{className:"".concat(r,"-ranges")},t,n):null}var zd=function(e){var t,n=e.prefixCls,i=void 0===n?"rc-picker":n,a=e.className,s=e.style,l=e.locale,c=e.generateConfig,u=e.value,d=e.defaultValue,h=e.pickerValue,p=e.defaultPickerValue,f=e.disabledDate,m=e.mode,y=e.picker,b=void 0===y?"date":y,C=e.tabIndex,_=void 0===C?0:C,x=e.showNow,k=e.showTime,P=e.showToday,T=e.renderExtraFooter,E=e.hideHeader,O=e.onSelect,M=e.onChange,A=e.onPanelChange,D=e.onMouseDown,I=e.onPickerValueChange,L=e.onOk,j=e.components,R=e.direction,z=e.hourStep,F=void 0===z?1:z,B=e.minuteStep,H=void 0===B?1:B,V=e.secondStep,Y=void 0===V?1:V,W="date"===b&&!!k||"time"===b,U=24%F==0,K=60%H==0,G=60%Y==0,q=v.useContext(Tu),$=q.operationRef,X=q.panelRef,J=q.onSelect,Z=q.hideRanges,Q=q.defaultOpenValue,ee=v.useContext(yd),te=ee.inRange,ne=ee.panelPosition,re=ee.rangedValue,oe=ee.hoverRangedValue,ie=v.useRef({}),ae=v.useRef(!0),se=Ge(cn(null,{value:u,defaultValue:d,postState:function(e){return!e&&Q&&"time"===b?Q:e}}),2),le=se[0],ce=se[1],ue=Ge(cn(null,{value:h,defaultValue:p||le,postState:function(e){var t=c.getNow();return e?!le&&k?"object"===g(k)?Du(c,e,k.defaultValue||t):Du(c,e,d||t):e:t}}),2),de=ue[0],he=ue[1],pe=function(e){he(e),I&&I(e)},fe=function(e){var t=Yu[b];return t?t(e):e},me=Ge(cn((function(){return"time"===b?"time":fe("date")}),{value:m}),2),ge=me[0],ve=me[1];v.useEffect((function(){ve(b)}),[b]);var ye,be=Ge(v.useState((function(){return ge})),2),we=be[0],Ce=be[1],_e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(ge===b||n)&&(ce(e),O&&O(e),J&&J(e,t),!M||td(c,e,le)||(null==f?void 0:f(e))||M(e))},xe=function(e){return ie.current&&ie.current.onKeyDown?([Je.LEFT,Je.RIGHT,Je.UP,Je.DOWN,Je.PAGE_UP,Je.PAGE_DOWN,Je.ENTER].includes(e.which)&&e.preventDefault(),ie.current.onKeyDown(e)):(N(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)};$&&"right"!==ne&&($.current={onKeyDown:xe,onClose:function(){ie.current&&ie.current.onClose&&ie.current.onClose()}}),v.useEffect((function(){u&&!ae.current&&he(u)}),[u]),v.useEffect((function(){ae.current=!1}),[]);var Se,ke,Pe,Te=S(S({},e),{},{operationRef:ie,prefixCls:i,viewDate:de,value:le,onViewDateChange:pe,sourceMode:we,onPanelChange:function(e,t){var n=fe(e||ge);Ce(ge),ve(n),A&&(ge!==n||td(c,de,de))&&A(t,n)},disabledDate:f});switch(delete Te.onChange,delete Te.onSelect,ge){case"decade":ye=v.createElement(Gu,Object(r.a)({},Te,{onSelect:function(e,t){pe(e),_e(e,t)}}));break;case"year":ye=v.createElement(Nd,Object(r.a)({},Te,{onSelect:function(e,t){pe(e),_e(e,t)}}));break;case"month":ye=v.createElement(Ed,Object(r.a)({},Te,{onSelect:function(e,t){pe(e),_e(e,t)}}));break;case"quarter":ye=v.createElement(Ad,Object(r.a)({},Te,{onSelect:function(e,t){pe(e),_e(e,t)}}));break;case"week":ye=v.createElement(kd,Object(r.a)({},Te,{onSelect:function(e,t){pe(e),_e(e,t)}}));break;case"time":delete Te.showTime,ye=v.createElement(vd,Object(r.a)({},Te,"object"===g(k)?k:null,{onSelect:function(e,t){pe(e),_e(e,t)}}));break;default:ye=k?v.createElement(Sd,Object(r.a)({},Te,{onSelect:function(e,t){pe(e),_e(e,t)}})):v.createElement(_d,Object(r.a)({},Te,{onSelect:function(e,t){pe(e),_e(e,t)}}))}if(Z||(Se=jd(i,ge,T),ke=Rd({prefixCls:i,components:j,needConfirmButton:W,okDisabled:!le||f&&f(le),locale:l,showNow:x,onNow:W&&function(){var e=c.getNow(),t=function(e,t,n,r,o,i){var a=Math.floor(e/r)*r;if(a<e)return[a,60-o,60-i];var s=Math.floor(t/o)*o;return s<t?[a,s,60-i]:[a,s,Math.floor(n/i)*i]}(c.getHour(e),c.getMinute(e),c.getSecond(e),U?F:1,K?H:1,G?Y:1),n=Au(c,e,t[0],t[1],t[2]);_e(n,"submit")},onOk:function(){le&&(_e(le,"submit",!0),L&&L(le))}})),P&&"date"===ge&&"date"===b&&!k){var Ee=c.getNow(),Oe="".concat(i,"-today-btn"),Me=f&&f(Ee);Pe=v.createElement("a",{className:w()(Oe,Me&&"".concat(Oe,"-disabled")),"aria-disabled":Me,onClick:function(){Me||_e(Ee,"mouse",!0)}},l.today)}return v.createElement(Tu.Provider,{value:S(S({},q),{},{mode:ge,hideHeader:"hideHeader"in e?E:q.hideHeader,hidePrevBtn:te&&"right"===ne,hideNextBtn:te&&"left"===ne})},v.createElement("div",{tabIndex:_,className:w()("".concat(i,"-panel"),a,(t={},o(t,"".concat(i,"-panel-has-range"),re&&re[0]&&re[1]),o(t,"".concat(i,"-panel-has-range-hover"),oe&&oe[0]&&oe[1]),o(t,"".concat(i,"-panel-rtl"),"rtl"===R),t)),style:s,onKeyDown:xe,onBlur:function(e){ie.current&&ie.current.onBlur&&ie.current.onBlur(e)},onMouseDown:D,ref:X},ye,Se||ke||Pe?v.createElement("div",{className:"".concat(i,"-footer")},Se,ke,Pe):null))},Fd={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var Bd=function(e){var t,n=e.prefixCls,r=e.popupElement,i=e.popupStyle,a=e.visible,s=e.dropdownClassName,l=e.dropdownAlign,c=e.transitionName,u=e.getPopupContainer,d=e.children,h=e.range,p=e.popupPlacement,f=e.direction,m="".concat(n,"-dropdown");return v.createElement(Io,{showAction:[],hideAction:[],popupPlacement:void 0!==p?p:"rtl"===f?"bottomRight":"bottomLeft",builtinPlacements:Fd,prefixCls:m,popupTransitionName:c,popup:r,popupAlign:l,popupVisible:a,popupClassName:w()(s,(t={},o(t,"".concat(m,"-range"),h),o(t,"".concat(m,"-rtl"),"rtl"===f),t)),popupStyle:i,getPopupContainer:u},d)};function Hd(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,i=e.forwardKeyDown,a=e.onKeyDown,s=e.blurToCancel,l=e.onSubmit,c=e.onCancel,u=e.onFocus,d=e.onBlur,h=Ge(Object(v.useState)(!1),2),p=h[0],f=h[1],m=Ge(Object(v.useState)(!1),2),g=m[0],y=m[1],b=Object(v.useRef)(!1),w=Object(v.useRef)(!1),C=Object(v.useRef)(!1),_={onMouseDown:function(){f(!0),o(!0)},onKeyDown:function(e){if(a(e,(function(){C.current=!0})),!C.current){switch(e.which){case Je.ENTER:return t?!1!==l()&&f(!0):o(!0),void e.preventDefault();case Je.TAB:return void(p&&t&&!e.shiftKey?(f(!1),e.preventDefault()):!p&&t&&!i(e)&&e.shiftKey&&(f(!0),e.preventDefault()));case Je.ESC:return f(!0),void c()}t||[Je.SHIFT].includes(e.which)?p||i(e):o(!0)}},onFocus:function(e){f(!0),y(!0),u&&u(e)},onBlur:function(e){!b.current&&r(document.activeElement)?(s?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&c()}),0):t&&(o(!1),w.current&&l()),y(!1),d&&d(e)):b.current=!1}};return Object(v.useEffect)((function(){w.current=!1}),[t]),Object(v.useEffect)((function(){w.current=!0}),[n]),Object(v.useEffect)((function(){return e=function(e){var n=function(e){var t,n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t){var i=r(n);i?g&&!i||o(!1):(b.current=!0,requestAnimationFrame((function(){b.current=!1})))}},!Hu&&"undefined"!=typeof window&&window.addEventListener&&(Hu=function(e){de(Vu).forEach((function(t){t(e)}))},window.addEventListener("mousedown",Hu)),Vu.add(e),function(){Vu.delete(e),0===Vu.size&&(window.removeEventListener("mousedown",Hu),Hu=null)};var e})),[_,{focused:g,typing:p}]}function Vd(e){var t=e.valueTexts,n=e.onTextChange,r=Ge(v.useState(""),2),o=r[0],i=r[1],a=v.useRef([]);function s(){i(a.current[0])}return a.current=t,v.useEffect((function(){t.every((function(e){return e!==o}))&&s()}),[t.join("||")]),[o,function(e){i(e),n(e)},s]}function Yd(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale;return rt((function(){if(!e)return[[""],""];for(var t="",i=[],a=0;a<n.length;a+=1){var s=n[a],l=od(e,{generateConfig:r,locale:o,format:s});i.push(l),0===a&&(t=l)}return[i,t]}),[e,n],(function(e,t){return e[0]!==t[0]||!Ll()(e[1],t[1])}))}function Wd(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale,i=Ge(Object(v.useState)(null),2),a=i[0],s=i[1],l=Object(v.useRef)(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(l.current),t?s(e):l.current=requestAnimationFrame((function(){s(e)}))}var u=Ge(Yd(a,{formatList:n,generateConfig:r,locale:o}),2)[1];function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c(null,e)}return Object(v.useEffect)((function(){d(!0)}),[e]),Object(v.useEffect)((function(){return function(){return cancelAnimationFrame(l.current)}}),[]),[u,function(e){c(e)},d]}function Ud(e){var t,n=e.prefixCls,i=void 0===n?"rc-picker":n,a=e.id,s=e.tabIndex,l=e.style,c=e.className,u=e.dropdownClassName,d=e.dropdownAlign,h=e.popupStyle,p=e.transitionName,f=e.generateConfig,m=e.locale,g=e.inputReadOnly,y=e.allowClear,b=e.autoFocus,C=e.showTime,_=e.picker,x=void 0===_?"date":_,k=e.format,P=e.use12Hours,T=e.value,E=e.defaultValue,O=e.open,M=e.defaultOpen,A=e.defaultOpenValue,D=e.suffixIcon,I=e.clearIcon,L=e.disabled,j=e.disabledDate,R=e.placeholder,z=e.getPopupContainer,F=e.pickerRef,B=e.panelRender,H=e.onChange,V=e.onOpenChange,Y=e.onFocus,W=e.onBlur,U=e.onMouseDown,K=e.onMouseUp,G=e.onMouseEnter,q=e.onMouseLeave,$=e.onContextMenu,X=e.onClick,J=e.onKeyDown,Z=e.onSelect,Q=e.direction,ee=e.autoComplete,te=void 0===ee?"off":ee,ne=v.useRef(null),re="date"===x&&!!C||"time"===x,oe=ud(Fu(k,x,C,P)),ie=v.useRef(null),ae=v.useRef(null),se=Ge(cn(null,{value:T,defaultValue:E}),2),le=se[0],ce=se[1],ue=Ge(v.useState(le),2),de=ue[0],he=ue[1],pe=v.useRef(null),fe=Ge(cn(!1,{value:O,defaultValue:M,postState:function(e){return!L&&e},onChange:function(e){V&&V(e),!e&&pe.current&&pe.current.onClose&&pe.current.onClose()}}),2),me=fe[0],ge=fe[1],ve=Ge(Yd(de,{formatList:oe,generateConfig:f,locale:m}),2),ye=ve[0],be=ve[1],we=Ge(Vd({valueTexts:ye,onTextChange:function(e){var t=id(e,{locale:m,formatList:oe,generateConfig:f});!t||j&&j(t)||he(t)}}),3),Ce=we[0],_e=we[1],xe=we[2],Se=function(e){he(e),ce(e),H&&!td(f,le,e)&&H(e,e?od(e,{generateConfig:f,locale:m,format:oe[0]}):"")},ke=function(e){L&&e||ge(e)},Pe=Ge(Hd({blurToCancel:re,open:me,value:Ce,triggerOpen:ke,forwardKeyDown:function(e){return me&&pe.current&&pe.current.onKeyDown?pe.current.onKeyDown(e):(N(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(e){return!Wu([ie.current,ae.current],e)},onSubmit:function(){return(!j||!j(de))&&(Se(de),ke(!1),xe(),!0)},onCancel:function(){ke(!1),he(le),xe()},onKeyDown:function(e,t){null==J||J(e,t)},onFocus:Y,onBlur:W}),2),Te=Pe[0],Ee=Pe[1],Oe=Ee.focused,Me=Ee.typing;v.useEffect((function(){me||(he(le),ye.length&&""!==ye[0]?be!==Ce&&xe():_e(""))}),[me,ye]),v.useEffect((function(){me||xe()}),[x]),v.useEffect((function(){he(le)}),[le]),F&&(F.current={focus:function(){ne.current&&ne.current.focus()},blur:function(){ne.current&&ne.current.blur()}});var Ae=Ge(Wd(Ce,{formatList:oe,generateConfig:f,locale:m}),3),De=Ae[0],Ie=Ae[1],Le=Ae[2],Ne=S(S({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),je=v.createElement(zd,Object(r.a)({},Ne,{generateConfig:f,className:w()(o({},"".concat(i,"-panel-focused"),!Me)),value:de,locale:m,tabIndex:-1,onSelect:function(e){null==Z||Z(e),he(e)},direction:Q,onPanelChange:function(t,n){var r=e.onPanelChange;Le(!0),null==r||r(t,n)}}));B&&(je=B(je));var Re,ze,Fe=v.createElement("div",{className:"".concat(i,"-panel-container"),onMouseDown:function(e){e.preventDefault()}},je);D&&(Re=v.createElement("span",{className:"".concat(i,"-suffix")},D)),y&&le&&!L&&(ze=v.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),Se(null),ke(!1)},className:"".concat(i,"-clear")},I||v.createElement("span",{className:"".concat(i,"-clear-btn")})));var Be="rtl"===Q?"bottomRight":"bottomLeft";return v.createElement(Tu.Provider,{value:{operationRef:pe,hideHeader:"time"===x,panelRef:ie,onSelect:function(e,t){("submit"===t||"key"!==t&&!re)&&(Se(e),ke(!1))},open:me,defaultOpenValue:A,onDateMouseEnter:Ie,onDateMouseLeave:Le}},v.createElement(Bd,{visible:me,popupElement:Fe,popupStyle:h,prefixCls:i,dropdownClassName:u,dropdownAlign:d,getPopupContainer:z,transitionName:p,popupPlacement:Be,direction:Q},v.createElement("div",{className:w()(i,c,(t={},o(t,"".concat(i,"-disabled"),L),o(t,"".concat(i,"-focused"),Oe),o(t,"".concat(i,"-rtl"),"rtl"===Q),t)),style:l,onMouseDown:U,onMouseUp:function(){K&&K.apply(void 0,arguments),ne.current&&(ne.current.focus(),ke(!0))},onMouseEnter:G,onMouseLeave:q,onContextMenu:$,onClick:X},v.createElement("div",{className:w()("".concat(i,"-input"),o({},"".concat(i,"-input-placeholder"),!!De)),ref:ae},v.createElement("input",Object(r.a)({id:a,tabIndex:s,disabled:L,readOnly:g||"function"==typeof oe[0]||!Me,value:De||Ce,onChange:function(e){_e(e.target.value)},autoFocus:b,placeholder:R,ref:ne,title:Ce},Te,{size:Bu(x,oe[0],f)},dd(e),{autoComplete:te})),Re,ze))))}var Kd=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).pickerRef=v.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return s(n,[{key:"render",value:function(){return v.createElement(Ud,Object(r.a)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(v.Component);function Gd(e,t,n,r){var o=rd(e,n,r,1);function i(n){return n(e,t)?"same":n(o,t)?"closing":"far"}switch(n){case"year":return i((function(e,t){return function(e,t,n){var r=qu(t,n);return"boolean"==typeof r?r:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(r,e,t)}));case"quarter":case"month":return i((function(e,t){return $u(r,e,t)}));default:return i((function(e,t){return Zu(r,e,t)}))}}function qd(e){var t=e.values,n=e.picker,r=e.defaultDates,o=e.generateConfig,i=Ge(v.useState((function(){return[hd(r,0),hd(r,1)]})),2),a=i[0],s=i[1],l=Ge(v.useState(null),2),c=l[0],u=l[1],d=hd(t,0),h=hd(t,1);return[function(e){return a[e]?a[e]:hd(c,e)||function(e,t,n,r){var o=hd(e,0),i=hd(e,1);if(0===t)return o;if(o&&i)switch(Gd(o,i,n,r)){case"same":case"closing":return o;default:return rd(i,n,r,-1)}return o}(t,e,n,o)||d||h||o.getNow()},function(e,n){if(e){var r=pd(c,e,n);s(pd(a,null,n)||[null,null]);var o=(n+1)%2;hd(t,o)||(r=pd(r,e,o)),u(r)}else(d||h)&&u(null)}]}function $d(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function Xd(e,t,n,r){return!!e||(!(!r||!r[t])||!!n[(t+1)%2])}function Jd(e){var t,n,i,a=e.prefixCls,s=void 0===a?"rc-picker":a,l=e.id,c=e.style,u=e.className,d=e.popupStyle,h=e.dropdownClassName,p=e.transitionName,f=e.dropdownAlign,m=e.getPopupContainer,y=e.generateConfig,b=e.locale,C=e.placeholder,_=e.autoFocus,x=e.disabled,k=e.format,P=e.picker,T=void 0===P?"date":P,E=e.showTime,O=e.use12Hours,M=e.separator,A=void 0===M?"~":M,D=e.value,I=e.defaultValue,L=e.defaultPickerValue,j=e.open,R=e.defaultOpen,z=e.disabledDate,F=e.disabledTime,B=e.dateRender,H=e.panelRender,V=e.ranges,Y=e.allowEmpty,W=e.allowClear,U=e.suffixIcon,K=e.clearIcon,G=e.pickerRef,q=e.inputReadOnly,$=e.mode,X=e.renderExtraFooter,J=e.onChange,Z=e.onOpenChange,Q=e.onPanelChange,ee=e.onCalendarChange,te=e.onFocus,ne=e.onBlur,re=e.onOk,oe=e.onKeyDown,ie=e.components,ae=e.order,se=e.direction,le=e.activePickerIndex,ce=e.autoComplete,ue=void 0===ce?"off":ce,de="date"===T&&!!E||"time"===T,he=Object(v.useRef)({}),pe=Object(v.useRef)(null),fe=Object(v.useRef)(null),me=Object(v.useRef)(null),ge=Object(v.useRef)(null),ve=Object(v.useRef)(null),ye=Object(v.useRef)(null),be=Object(v.useRef)(null),we=ud(Fu(k,T,E,O)),Ce=Ge(cn(0,{value:le}),2),_e=Ce[0],xe=Ce[1],Se=Object(v.useRef)(null),ke=v.useMemo((function(){return Array.isArray(x)?x:[x||!1,x||!1]}),[x]),Pe=Ge(cn(null,{value:D,defaultValue:I,postState:function(e){return"time"!==T||ae?$d(e,y):e}}),2),Te=Pe[0],Ee=Pe[1],Oe=Ge(qd({values:Te,picker:T,defaultDates:L,generateConfig:y}),2),Me=Oe[0],Ae=Oe[1],De=Ge(cn(Te,{postState:function(e){var t=e;if(ke[0]&&ke[1])return t;for(var n=0;n<2;n+=1)!ke[n]||hd(t,n)||hd(Y,n)||(t=pd(t,y.getNow(),n));return t}}),2),Ie=De[0],Le=De[1],Ne=Ge(cn([T,T],{value:$}),2),je=Ne[0],Re=Ne[1];Object(v.useEffect)((function(){Re([T,T])}),[T]);var ze=function(e,t){Re(e),Q&&Q(t,e)},Fe=Ge(function(e,t,n){var r=e.picker,o=e.locale,i=e.selectedValue,a=e.disabledDate,s=e.disabled,l=e.generateConfig,c=hd(i,0),u=hd(i,1);function d(e){return l.locale.getWeekFirstDate(o.locale,e)}function h(e){return 100*l.getYear(e)+l.getMonth(e)}function p(e){return 10*l.getYear(e)+Xu(l,e)}return[v.useCallback((function(e){if(a&&a(e))return!0;if(s[1]&&u)return!Qu(l,e,u)&&l.isAfter(e,u);if(t&&u)switch(r){case"quarter":return p(e)>p(u);case"month":return h(e)>h(u);case"week":return d(e)>d(u);default:return!Qu(l,e,u)&&l.isAfter(e,u)}return!1}),[a,s[1],u,t]),v.useCallback((function(e){if(a&&a(e))return!0;if(s[0]&&c)return!Qu(l,e,u)&&l.isAfter(c,e);if(n&&c)switch(r){case"quarter":return p(e)<p(c);case"month":return h(e)<h(c);case"week":return d(e)<d(c);default:return!Qu(l,e,c)&&l.isAfter(c,e)}return!1}),[a,s[0],c,n])]}({picker:T,selectedValue:Ie,locale:b,disabled:ke,disabledDate:z,generateConfig:y},he.current[1],he.current[0]),2),Be=Fe[0],He=Fe[1],Ve=Ge(cn(!1,{value:j,defaultValue:R,postState:function(e){return!ke[_e]&&e},onChange:function(e){Z&&Z(e),!e&&Se.current&&Se.current.onClose&&Se.current.onClose()}}),2),Ye=Ve[0],We=Ve[1],Ue=Ye&&0===_e,Ke=Ye&&1===_e,qe=Ge(Object(v.useState)(0),2),$e=qe[0],Xe=qe[1];Object(v.useEffect)((function(){!Ye&&pe.current&&Xe(pe.current.offsetWidth)}),[Ye]);var Je=v.useRef();function Ze(e,t){if(e)clearTimeout(Je.current),he.current[t]=!0,xe(t),We(e),Ye||Ae(null,t);else if(_e===t){We(e);var n=he.current;Je.current=setTimeout((function(){n===he.current&&(he.current={})}))}}function Qe(e){Ze(!0,e),setTimeout((function(){var t=[ye,be][e];t.current&&t.current.focus()}),0)}function et(e,t){var n=e,r=hd(n,0),i=hd(n,1);r&&i&&y.isAfter(r,i)&&("week"===T&&!ed(y,b.locale,r,i)||"quarter"===T&&!Ju(y,r,i)||"week"!==T&&"quarter"!==T&&"time"!==T&&!Qu(y,r,i)?(0===t?(n=[r,null],i=null):(r=null,n=[null,i]),he.current=o({},t,!0)):"time"===T&&!1===ae||(n=$d(n,y))),Le(n);var a=n&&n[0]?od(n[0],{generateConfig:y,locale:b,format:we[0]}):"",s=n&&n[1]?od(n[1],{generateConfig:y,locale:b,format:we[0]}):"";ee&&ee(n,[a,s],{range:0===t?"start":"end"});var l=Xd(r,0,ke,Y),c=Xd(i,1,ke,Y);(null===n||l&&c)&&(Ee(n),!J||td(y,hd(Te,0),r)&&td(y,hd(Te,1),i)||J(n,[a,s]));var u=null;0!==t||ke[1]?1!==t||ke[0]||(u=0):u=1,null===u||u===_e||he.current[u]&&hd(n,u)||!hd(n,t)?Ze(!1,t):Qe(u)}var tt=function(e){return Ye&&Se.current&&Se.current.onKeyDown?Se.current.onKeyDown(e):(N(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},nt={formatList:we,generateConfig:y,locale:b},rt=Ge(Yd(hd(Ie,0),nt),2),ot=rt[0],it=rt[1],at=Ge(Yd(hd(Ie,1),nt),2),st=at[0],lt=at[1],ct=function(e,t){var n=id(e,{locale:b,formatList:we,generateConfig:y});n&&!(0===t?Be:He)(n)&&(Le(pd(Ie,n,t)),Ae(n,t))},ut=Ge(Vd({valueTexts:ot,onTextChange:function(e){return ct(e,0)}}),3),dt=ut[0],ht=ut[1],pt=ut[2],ft=Ge(Vd({valueTexts:st,onTextChange:function(e){return ct(e,1)}}),3),mt=ft[0],gt=ft[1],vt=ft[2],yt=Ge(Object(v.useState)(null),2),bt=yt[0],wt=yt[1],Ct=Ge(Object(v.useState)(null),2),_t=Ct[0],xt=Ct[1],St=Ge(Wd(dt,{formatList:we,generateConfig:y,locale:b}),3),kt=St[0],Pt=St[1],Tt=St[2],Et=Ge(Wd(mt,{formatList:we,generateConfig:y,locale:b}),3),Ot=Et[0],Mt=Et[1],At=Et[2],Dt=function(e,t){return{blurToCancel:de,forwardKeyDown:tt,onBlur:ne,isClickOutside:function(e){return!Wu([fe.current,me.current,ge.current],e)},onFocus:function(t){xe(e),te&&te(t)},triggerOpen:function(t){Ze(t,e)},onSubmit:function(){et(Ie,e),t()},onCancel:function(){Ze(!1,e),Le(Te),t()}}},It=Ge(Hd(S(S({},Dt(0,pt)),{},{open:Ue,value:dt,onKeyDown:function(e,t){null==oe||oe(e,t)}})),2),Lt=It[0],Nt=It[1],jt=Nt.focused,Rt=Nt.typing,zt=Ge(Hd(S(S({},Dt(1,vt)),{},{open:Ke,value:mt,onKeyDown:function(e,t){null==oe||oe(e,t)}})),2),Ft=zt[0],Bt=zt[1],Ht=Bt.focused,Vt=Bt.typing,Yt=Te&&Te[0]?od(Te[0],{locale:b,format:"YYYYMMDDHHmmss",generateConfig:y}):"",Wt=Te&&Te[1]?od(Te[1],{locale:b,format:"YYYYMMDDHHmmss",generateConfig:y}):"";Object(v.useEffect)((function(){Ye||(Le(Te),ot.length&&""!==ot[0]?it!==dt&&pt():ht(""),st.length&&""!==st[0]?lt!==mt&&vt():gt(""))}),[Ye,ot,st]),Object(v.useEffect)((function(){Le(Te)}),[Yt,Wt]),G&&(G.current={focus:function(){ye.current&&ye.current.focus()},blur:function(){ye.current&&ye.current.blur(),be.current&&be.current.blur()}});var Ut=Object.keys(V||{}).map((function(e){var t=V[e],n="function"==typeof t?t():t;return{label:e,onClick:function(){et(n,null),Ze(!1,_e)},onMouseEnter:function(){wt(n)},onMouseLeave:function(){wt(null)}}}));function Kt(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;Ye&&_t&&_t[0]&&_t[1]&&y.isAfter(_t[1],_t[0])&&(i=_t);var a=E;if(E&&"object"===g(E)&&E.defaultValue){var l=E.defaultValue;a=S(S({},E),{},{defaultValue:hd(l,_e)||void 0})}var c=null;return B&&(c=function(e,t){return B(e,t,{range:_e?"end":"start"})}),v.createElement(yd.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:bt||Ie,hoverRangedValue:i}},v.createElement(zd,Object(r.a)({},e,n,{dateRender:c,showTime:a,mode:je[_e],generateConfig:y,style:void 0,direction:se,disabledDate:0===_e?Be:He,disabledTime:function(e){return!!F&&F(e,0===_e?"start":"end")},className:w()(o({},"".concat(s,"-panel-focused"),0===_e?!Rt:!Vt)),value:hd(Ie,_e),locale:b,tabIndex:-1,onPanelChange:function(e,n){0===_e&&Tt(!0),1===_e&&At(!0),ze(pd(je,n,_e),pd(Ie,e,_e));var r=e;"right"===t&&je[_e]===n&&(r=rd(r,n,y,-1)),Ae(r,_e)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:hd(Ie,0===_e?1:0),defaultPickerValue:void 0})))}var Gt=0,qt=0;_e&&me.current&&ve.current&&fe.current&&(Gt=me.current.offsetWidth+ve.current.offsetWidth,fe.current.offsetWidth&&Gt>fe.current.offsetWidth&&(qt=Gt));var $t="rtl"===se?{right:Gt}:{left:Gt};var Xt,Jt,Zt=v.createElement("div",{className:w()("".concat(s,"-range-wrapper"),"".concat(s,"-").concat(T,"-range-wrapper")),style:{minWidth:$e}},v.createElement("div",{className:"".concat(s,"-range-arrow"),style:$t}),function(){var e,t=jd(s,je[_e],X),n=Rd({prefixCls:s,components:ie,needConfirmButton:de,okDisabled:!hd(Ie,_e)||z&&z(Ie[_e]),locale:b,rangeList:Ut,onOk:function(){hd(Ie,_e)&&(et(Ie,_e),re&&re(Ie))}});if("time"===T||E)e=Kt();else{var r=Me(_e),o=rd(r,T,y),i=je[_e]===T,a=Kt(!!i&&"left",{pickerValue:r,onPickerValueChange:function(e){Ae(e,_e)}}),l=Kt("right",{pickerValue:o,onPickerValueChange:function(e){Ae(rd(e,T,y,-1),_e)}});e="rtl"===se?v.createElement(v.Fragment,null,l,i&&a):v.createElement(v.Fragment,null,a,i&&l)}var c=v.createElement(v.Fragment,null,v.createElement("div",{className:"".concat(s,"-panels")},e),(t||n)&&v.createElement("div",{className:"".concat(s,"-footer")},t,n));return H&&(c=H(c)),v.createElement("div",{className:"".concat(s,"-panel-container"),style:{marginLeft:qt},ref:fe,onMouseDown:function(e){e.preventDefault()}},c)}());U&&(Xt=v.createElement("span",{className:"".concat(s,"-suffix")},U)),W&&(hd(Te,0)&&!ke[0]||hd(Te,1)&&!ke[1])&&(Jt=v.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=Te;ke[0]||(t=pd(t,null,0)),ke[1]||(t=pd(t,null,1)),et(t,null),Ze(!1,_e)},className:"".concat(s,"-clear")},K||v.createElement("span",{className:"".concat(s,"-clear-btn")})));var Qt={size:Bu(T,we[0],y)},en=0,tn=0;me.current&&ge.current&&ve.current&&(0===_e?tn=me.current.offsetWidth:(en=Gt,tn=ge.current.offsetWidth));var nn="rtl"===se?{right:en}:{left:en};return v.createElement(Tu.Provider,{value:{operationRef:Se,hideHeader:"time"===T,onDateMouseEnter:function(e){xt(pd(Ie,e,_e)),0===_e?Pt(e):Mt(e)},onDateMouseLeave:function(){xt(pd(Ie,null,_e)),0===_e?Tt():At()},hideRanges:!0,onSelect:function(e,t){var n=pd(Ie,e,_e);"submit"===t||"key"!==t&&!de?(et(n,_e),0===_e?Tt():At()):Le(n)},open:Ye}},v.createElement(Bd,{visible:Ye,popupElement:Zt,popupStyle:d,prefixCls:s,dropdownClassName:h,dropdownAlign:f,getPopupContainer:m,transitionName:p,range:!0,direction:se},v.createElement("div",Object(r.a)({ref:pe,className:w()(s,"".concat(s,"-range"),u,(t={},o(t,"".concat(s,"-disabled"),ke[0]&&ke[1]),o(t,"".concat(s,"-focused"),0===_e?jt:Ht),o(t,"".concat(s,"-rtl"),"rtl"===se),t)),style:c,onClick:function(e){Ye||ye.current.contains(e.target)||be.current.contains(e.target)||(ke[0]?ke[1]||Qe(1):Qe(0))},onMouseDown:function(e){!Ye||!jt&&!Ht||ye.current.contains(e.target)||be.current.contains(e.target)||e.preventDefault()}},dd(e)),v.createElement("div",{className:w()("".concat(s,"-input"),(n={},o(n,"".concat(s,"-input-active"),0===_e),o(n,"".concat(s,"-input-placeholder"),!!kt),n)),ref:me},v.createElement("input",Object(r.a)({id:l,disabled:ke[0],readOnly:q||"function"==typeof we[0]||!Rt,value:kt||dt,onChange:function(e){ht(e.target.value)},autoFocus:_,placeholder:hd(C,0)||"",ref:ye},Lt,Qt,{autoComplete:ue}))),v.createElement("div",{className:"".concat(s,"-range-separator"),ref:ve},A),v.createElement("div",{className:w()("".concat(s,"-input"),(i={},o(i,"".concat(s,"-input-active"),1===_e),o(i,"".concat(s,"-input-placeholder"),!!Ot),i)),ref:ge},v.createElement("input",Object(r.a)({disabled:ke[1],readOnly:q||"function"==typeof we[0]||!Vt,value:Ot||mt,onChange:function(e){gt(e.target.value)},placeholder:hd(C,1)||"",ref:be},Ft,Qt,{autoComplete:ue}))),v.createElement("div",{className:"".concat(s,"-active-bar"),style:S(S({},nn),{},{width:tn,position:"absolute"})}),Xt,Jt)))}var Zd=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).pickerRef=v.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return s(n,[{key:"render",value:function(){return v.createElement(Jd,Object(r.a)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(v.Component),Qd=Kd,eh=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:S(S({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return s(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,i=t.className,a=t.style,s=t.name,l=t.id,c=t.type,u=t.disabled,d=t.readOnly,h=t.tabIndex,p=t.onClick,f=t.onFocus,m=t.onBlur,g=t.onKeyDown,v=t.onKeyPress,b=t.onKeyUp,C=t.autoFocus,_=t.value,x=t.required,S=$e(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),k=Object.keys(S).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=S[t]),e}),{}),P=this.state.checked,T=w()(n,i,(o(e={},"".concat(n,"-checked"),P),o(e,"".concat(n,"-disabled"),u),e));return y.a.createElement("span",{className:T,style:a},y.a.createElement("input",Object(r.a)({name:s,id:l,type:c,required:x,readOnly:d,disabled:u,tabIndex:h,className:"".concat(n,"-input"),checked:!!P,onClick:p,onFocus:f,onBlur:m,onKeyUp:b,onKeyDown:g,onKeyPress:v,onChange:this.handleChange,autoFocus:C,ref:this.saveInput,value:_},k)),y.a.createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"checked"in e?S(S({},t),{},{checked:e.checked}):null}}]),n}(v.Component);eh.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}};var th=eh,nh=v.createContext(null),rh=nh.Provider,oh=nh,ih=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ah=function(e,t){var n,i=v.useContext(oh),a=v.useContext(ae),s=a.getPrefixCls,l=a.direction,c=R(t,v.useRef());v.useEffect((function(){aa(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")}),[]);var u=e.prefixCls,d=e.className,h=e.children,p=e.style,f=ih(e,["prefixCls","className","children","style"]),m=s("radio",u),g=Object(r.a)({},f);i&&(g.name=i.name,g.onChange=function(t){var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},g.checked=e.value===i.value,g.disabled=e.disabled||i.disabled);var y=w()("".concat(m,"-wrapper"),(o(n={},"".concat(m,"-wrapper-checked"),g.checked),o(n,"".concat(m,"-wrapper-disabled"),g.disabled),o(n,"".concat(m,"-wrapper-rtl"),"rtl"===l),n),d);return v.createElement("label",{className:y,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},v.createElement(th,Object(r.a)({},g,{prefixCls:m,ref:c})),void 0!==h?v.createElement("span",null,h):null)},sh=v.forwardRef(ah);sh.displayName="Radio",sh.defaultProps={type:"radio"};var lh=sh,ch=v.forwardRef((function(e,t){var n=v.useContext(ae),r=n.getPrefixCls,i=n.direction,a=v.useContext(Xi),s=Ge(cn(e.defaultValue,{value:e.value}),2),l=s[0],c=s[1];return v.createElement(rh,{value:{onChange:function(t){var n=l,r=t.target.value;"value"in e||c(r);var o=e.onChange;o&&r!==n&&o(t)},value:l,disabled:e.disabled,name:e.name}},function(){var n,s=e.prefixCls,c=e.className,u=void 0===c?"":c,d=e.options,h=e.optionType,p=e.buttonStyle,f=void 0===p?"outline":p,m=e.disabled,g=e.children,y=e.size,b=e.style,C=e.id,_=e.onMouseEnter,x=e.onMouseLeave,S=r("radio",s),k="".concat(S,"-group"),P=g;if(d&&d.length>0){var T="button"===h?"".concat(S,"-button"):S;P=d.map((function(e){return"string"==typeof e?v.createElement(lh,{key:e,prefixCls:T,disabled:m,value:e,checked:l===e},e):v.createElement(lh,{key:"radio-group-value-options-".concat(e.value),prefixCls:T,disabled:e.disabled||m,value:e.value,checked:l===e.value,style:e.style},e.label)}))}var E=y||a,O=w()(k,"".concat(k,"-").concat(f),(o(n={},"".concat(k,"-").concat(E),E),o(n,"".concat(k,"-rtl"),"rtl"===i),n),u);return v.createElement("div",{className:O,style:b,onMouseEnter:_,onMouseLeave:x,id:C,ref:t},P)}())})),uh=v.memo(ch),dh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},hh=function(e,t){var n=v.useContext(oh),o=v.useContext(ae).getPrefixCls,i=e.prefixCls,a=dh(e,["prefixCls"]),s=o("radio-button",i);return n&&(a.checked=e.value===n.value,a.disabled=e.disabled||n.disabled),v.createElement(lh,Object(r.a)({prefixCls:s},a,{type:"radio",ref:t}))},ph=v.forwardRef(hh);function fh(e){var t=e.fullscreen,n=e.validRange,r=e.generateConfig,o=e.locale,i=e.prefixCls,a=e.value,s=e.onChange,l=e.divRef,c=r.getYear(a),u=c-10,d=u+20;n&&(u=r.getYear(n[0]),d=r.getYear(n[1])+1);for(var h=o&&"年"===o.year?"年":"",p=[],f=u;f<d;f++)p.push({label:"".concat(f).concat(h),value:f});return v.createElement(ia,{size:t?void 0:"small",options:p,value:c,className:"".concat(i,"-year-select"),onChange:function(e){var t=r.setYear(a,e);if(n){var o=Ge(n,2),i=o[0],l=o[1],c=r.getYear(t),u=r.getMonth(t);c===r.getYear(l)&&u>r.getMonth(l)&&(t=r.setMonth(t,r.getMonth(l))),c===r.getYear(i)&&u<r.getMonth(i)&&(t=r.setMonth(t,r.getMonth(i)))}s(t)},getPopupContainer:function(){return l.current}})}function mh(e){var t=e.prefixCls,n=e.fullscreen,r=e.validRange,o=e.value,i=e.generateConfig,a=e.locale,s=e.onChange,l=e.divRef,c=i.getMonth(o),u=0,d=11;if(r){var h=Ge(r,2),p=h[0],f=h[1],m=i.getYear(o);i.getYear(f)===m&&(d=i.getMonth(f)),i.getYear(p)===m&&(u=i.getMonth(p))}for(var g=a.shortMonths||i.locale.getShortMonths(a.locale),y=[],b=u;b<=d;b+=1)y.push({label:g[b],value:b});return v.createElement(ia,{size:n?void 0:"small",className:"".concat(t,"-month-select"),value:c,options:y,onChange:function(e){s(i.setMonth(o,e))},getPopupContainer:function(){return l.current}})}function gh(e){var t=e.prefixCls,n=e.locale,r=e.mode,o=e.fullscreen,i=e.onModeChange;return v.createElement(uh,{onChange:function(e){var t=e.target.value;i(t)},value:r,size:o?void 0:"small",className:"".concat(t,"-mode-switch")},v.createElement(ph,{value:"month"},n.month),v.createElement(ph,{value:"year"},n.year))}var vh=function(e){var t=e.prefixCls,n=e.fullscreen,o=e.mode,i=e.onChange,a=e.onModeChange,s=v.useRef(null),l=Object(r.a)(Object(r.a)({},e),{onChange:i,fullscreen:n,divRef:s});return v.createElement("div",{className:"".concat(t,"-header"),ref:s},v.createElement(fh,l),"month"===o&&v.createElement(mh,l),v.createElement(gh,Object(r.a)({},l,{onModeChange:a})))};var yh=function(e){function t(t,n){return t&&n&&e.getYear(t)===e.getYear(n)}function n(n,r){return t(n,r)&&e.getMonth(n)===e.getMonth(r)}function i(t,r){return n(t,r)&&e.getDate(t)===e.getDate(r)}return function(a){var s=a.prefixCls,l=a.className,c=a.style,u=a.dateFullCellRender,d=a.dateCellRender,h=a.monthFullCellRender,p=a.monthCellRender,f=a.headerRender,m=a.value,g=a.defaultValue,y=a.disabledDate,b=a.mode,C=a.validRange,_=a.fullscreen,x=void 0===_||_,S=a.onChange,k=a.onPanelChange,P=a.onSelect,T=v.useContext(ae),E=T.getPrefixCls,O=T.direction,M=E("picker",s),A="".concat(M,"-calendar"),D=e.getNow(),I=Ge(cn((function(){return m||e.getNow()}),{defaultValue:g,value:m}),2),L=I[0],N=I[1],j=Ge(cn("month",{value:b}),2),R=j[0],z=j[1],F=v.useMemo((function(){return"year"===R?"month":"date"}),[R]),B=v.useCallback((function(t){return!!C&&(e.isAfter(C[0],t)||e.isAfter(t,C[1]))||!!(null==y?void 0:y(t))}),[y,C]),H=function(e,t){null==k||k(e,t)},V=function(e){z(e),H(L,e)},Y=function(e){!function(e){N(e),i(e,L)||(("date"===F&&!n(e,L)||"month"===F&&!t(e,L))&&H(e,R),null==S||S(e))}(e),null==P||P(e)},W=v.useCallback((function(t){return u?u(t):v.createElement("div",{className:w()("".concat(M,"-cell-inner"),"".concat(A,"-date"),o({},"".concat(A,"-date-today"),i(D,t)))},v.createElement("div",{className:"".concat(A,"-date-value")},Pu()(String(e.getDate(t)),2,"0")),v.createElement("div",{className:"".concat(A,"-date-content")},d&&d(t)))}),[u,d]),U=v.useCallback((function(t,r){if(h)return h(t);var i=r.shortMonths||e.locale.getShortMonths(r.locale);return v.createElement("div",{className:w()("".concat(M,"-cell-inner"),"".concat(A,"-date"),o({},"".concat(A,"-date-today"),n(D,t)))},v.createElement("div",{className:"".concat(A,"-date-value")},i[e.getMonth(t)]),v.createElement("div",{className:"".concat(A,"-date-content")},p&&p(t)))}),[h,p]);return v.createElement(J,{componentName:"Calendar",defaultLocale:function(){var e=a.locale,t=Object(r.a)(Object(r.a)({},K),e);return t.lang=Object(r.a)(Object(r.a)({},t.lang),(e||{}).lang),t}},(function(t){var n;return v.createElement("div",{className:w()(A,(n={},o(n,"".concat(A,"-full"),x),o(n,"".concat(A,"-mini"),!x),o(n,"".concat(A,"-rtl"),"rtl"===O),n),l),style:c},f?f({value:L,type:R,onChange:Y,onTypeChange:V}):v.createElement(vh,{prefixCls:A,value:L,generateConfig:e,mode:R,fullscreen:x,locale:t.lang,validRange:C,onChange:Y,onModeChange:V}),v.createElement(zd,{value:L,prefixCls:M,locale:t.lang,generateConfig:e,dateRender:W,monthCellRender:function(e){return U(e,t.lang)},onSelect:Y,mode:F,picker:F,disabledDate:B,hideHeader:!0}))}))}}(Su),bh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},wh=function(e){var t=e.prefixCls,n=e.className,i=e.hoverable,a=void 0===i||i,s=bh(e,["prefixCls","className","hoverable"]);return v.createElement(se,null,(function(e){var i=(0,e.getPrefixCls)("card",t),l=w()("".concat(i,"-grid"),n,o({},"".concat(i,"-grid-hoverable"),a));return v.createElement("div",Object(r.a)({},s,{className:l}))}))},Ch=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_h=function(e){return v.createElement(se,null,(function(t){var n=t.getPrefixCls,o=e.prefixCls,i=e.className,a=e.avatar,s=e.title,l=e.description,c=Ch(e,["prefixCls","className","avatar","title","description"]),u=n("card",o),d=w()("".concat(u,"-meta"),i),h=a?v.createElement("div",{className:"".concat(u,"-meta-avatar")},a):null,p=s?v.createElement("div",{className:"".concat(u,"-meta-title")},s):null,f=l?v.createElement("div",{className:"".concat(u,"-meta-description")},l):null,m=p||f?v.createElement("div",{className:"".concat(u,"-meta-detail")},p,f):null;return v.createElement("div",Object(r.a)({},c,{className:d}),h,m)}))};function xh(e){var t=Object(v.useRef)(),n=Object(v.useRef)(!1);return Object(v.useEffect)((function(){return function(){n.current=!0,ve.cancel(t.current)}}),[]),function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.current||(ve.cancel(t.current),t.current=ve((function(){e.apply(void 0,o)})))}}function Sh(e,t){var n,r=e.prefixCls,i=e.id,a=e.active,s=e.rtl,l=e.tab,c=l.key,u=l.tab,d=l.disabled,h=l.closeIcon,p=e.tabBarGutter,f=e.tabPosition,m=e.closable,g=e.renderWrapper,y=e.removeAriaLabel,b=e.editable,C=e.onClick,_=e.onRemove,x=e.onFocus,S="".concat(r,"-tab");v.useEffect((function(){return _}),[]);var k={};"top"===f||"bottom"===f?k[s?"marginLeft":"marginRight"]=p:k.marginBottom=p;var P=b&&!1!==m&&!d;function T(e){d||C(e)}var E=v.createElement("div",{key:c,ref:t,className:w()(S,(n={},o(n,"".concat(S,"-with-remove"),P),o(n,"".concat(S,"-active"),a),o(n,"".concat(S,"-disabled"),d),n)),style:k,onClick:T},v.createElement("div",{role:"tab","aria-selected":a,id:i&&"".concat(i,"-tab-").concat(c),className:"".concat(S,"-btn"),"aria-controls":i&&"".concat(i,"-panel-").concat(c),"aria-disabled":d,tabIndex:d?null:0,onClick:function(e){e.stopPropagation(),T(e)},onKeyDown:function(e){[Je.SPACE,Je.ENTER].includes(e.which)&&(e.preventDefault(),T(e))},onFocus:x},u),P&&v.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(S,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),b.onEdit("remove",{key:c,event:t})}},h||b.removeIcon||"×"));return g&&(E=g(E)),E}var kh=v.forwardRef(Sh),Ph={width:0,height:0,left:0,top:0};var Th={width:0,height:0,left:0,top:0,right:0};function Eh(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?v.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}var Oh=v.forwardRef(Eh);function Mh(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,s=e.mobile,l=e.moreIcon,c=void 0===l?"More":l,u=e.moreTransitionName,d=e.style,h=e.className,p=e.editable,f=e.tabBarGutter,m=e.rtl,g=e.onTabClick,y=Ge(Object(v.useState)(!1),2),b=y[0],C=y[1],_=Ge(Object(v.useState)(null),2),x=_[0],S=_[1],k="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),T=null!==x?"".concat(k,"-").concat(x):null,E=null==a?void 0:a.dropdownAriaLabel,O=v.createElement(Fc,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),C(!1)},id:k,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[x],"aria-label":void 0!==E?E:"expanded dropdown"},i.map((function(e){return v.createElement(Lc,{key:e.key,id:"".concat(k,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function M(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===x}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void S(a.key)}}Object(v.useEffect)((function(){var e=document.getElementById(T);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[x]),Object(v.useEffect)((function(){b||S(null)}),[b]);var A=o({},m?"marginLeft":"marginRight",f);i.length||(A.visibility="hidden",A.order=1);var D=w()(o({},"".concat(P,"-rtl"),m)),I=s?null:v.createElement(Ys,{prefixCls:P,overlay:O,trigger:["hover"],visible:b,transitionName:u,onVisibleChange:C,overlayClassName:D,mouseEnterDelay:.1,mouseLeaveDelay:.1},v.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:A,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":k,id:"".concat(r,"-more"),"aria-expanded":b,onKeyDown:function(e){var t=e.which;if(b)switch(t){case Je.UP:M(-1),e.preventDefault();break;case Je.DOWN:M(1),e.preventDefault();break;case Je.ESC:C(!1);break;case Je.SPACE:case Je.ENTER:null!==x&&g(x,e)}else[Je.DOWN,Je.SPACE,Je.ENTER].includes(t)&&(C(!0),e.preventDefault())}},c));return v.createElement("div",{className:w()("".concat(n,"-nav-operations"),h),style:d,ref:t},I,v.createElement(Oh,{prefixCls:n,locale:a,editable:p}))}var Ah=v.forwardRef(Mh),Dh=Object(v.createContext)(null),Ih=Math.pow(.995,20);function Lh(e,t){var n=v.useRef(e),r=Ge(v.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var Nh=function(e){var t,n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i=o;return"right"===n&&(t=i.right||!i.left&&i||null),"left"===n&&(t=i.left||null),t?v.createElement("div",{className:"".concat(r,"-extra-content")},t):null};function jh(e,t){var n,i,a,s,l,c,u,d=v.useContext(Dh),h=d.prefixCls,p=d.tabs,f=e.className,m=e.style,g=e.id,y=e.animated,b=e.activeKey,C=e.rtl,_=e.extra,x=e.editable,k=e.locale,P=e.tabPosition,T=e.tabBarGutter,E=e.children,O=e.onTabClick,M=e.onTabScroll,A=Object(v.useRef)(),D=Object(v.useRef)(),I=Object(v.useRef)(),L=Object(v.useRef)(),N=Ge((i=Object(v.useRef)(new Map),[function(e){return i.current.has(e)||i.current.set(e,v.createRef()),i.current.get(e)},function(e){i.current.delete(e)}]),2),j=N[0],R=N[1],z="top"===P||"bottom"===P,F=Ge(Lh(0,(function(e,t){z&&M&&M({direction:e>t?"left":"right"})})),2),B=F[0],V=F[1],Y=Ge(Lh(0,(function(e,t){!z&&M&&M({direction:e>t?"top":"bottom"})})),2),W=Y[0],U=Y[1],K=Ge(Object(v.useState)(0),2),G=K[0],q=K[1],$=Ge(Object(v.useState)(0),2),X=$[0],J=$[1],Z=Ge(Object(v.useState)(0),2),Q=Z[0],ee=Z[1],te=Ge(Object(v.useState)(0),2),ne=te[0],re=te[1],oe=Ge(Object(v.useState)(null),2),ie=oe[0],ae=oe[1],se=Ge(Object(v.useState)(null),2),le=se[0],ce=se[1],ue=Ge(Object(v.useState)(0),2),he=ue[0],pe=ue[1],fe=Ge(Object(v.useState)(0),2),me=fe[0],ge=fe[1],ye=(a=new Map,s=Object(v.useRef)([]),l=Ge(Object(v.useState)({}),2)[1],c=Object(v.useRef)("function"==typeof a?a():a),u=xh((function(){var e=c.current;s.current.forEach((function(t){e=t(e)})),s.current=[],c.current=e,l({})})),[c.current,function(e){s.current.push(e),u()}]),be=Ge(ye,2),we=be[0],Ce=be[1],_e=function(e,t,n){return Object(v.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Ph,i=o.left+o.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);if(!c)c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||Ph;var u=r.get(l)||S({},c);u.right=i-u.left-u.width,r.set(l,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(p,we,G),xe="".concat(h,"-nav-operations-hidden"),Se=0,ke=0;function Pe(e){return e<Se?Se:e>ke?ke:e}z?C?(Se=0,ke=Math.max(0,G-ie)):(Se=Math.min(0,ie-G),ke=0):(Se=Math.min(0,le-X),ke=0);var Te=Object(v.useRef)(),Ee=Ge(Object(v.useState)(),2),Oe=Ee[0],Me=Ee[1];function Ae(){Me(Date.now())}function De(){window.clearTimeout(Te.current)}function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=_e.get(e)||{width:0,height:0,left:0,right:0,top:0};if(z){var n=B;C?t.right<B?n=t.right:t.right+t.width>B+ie&&(n=t.right+t.width-ie):t.left<-B?n=-t.left:t.left+t.width>-B+ie&&(n=-(t.left+t.width-ie)),U(0),V(Pe(n))}else{var r=W;t.top<-W?r=-t.top:t.top+t.height>-W+le&&(r=-(t.top+t.height-le)),V(0),U(Pe(r))}}!function(e,t){var n=Ge(Object(v.useState)(),2),r=n[0],o=n[1],i=Ge(Object(v.useState)(0),2),a=i[0],s=i[1],l=Ge(Object(v.useState)(0),2),c=l[0],u=l[1],d=Ge(Object(v.useState)(),2),h=d[0],p=d[1],f=Object(v.useRef)(),m=Object(v.useRef)(),g=Object(v.useRef)(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(f.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],i=n.screenX,l=n.screenY;o({x:i,y:l});var c=i-r.x,d=l-r.y;t(c,d);var h=Date.now();s(h),u(h-a),p({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),p(null),h)){var e=h.x/c,n=h.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var s=e,l=n;f.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(f.current):t(20*(s*=Ih),20*(l*=Ih))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===m.current?n:r:i>a?(o=n,m.current="x"):(o=r,m.current="y"),t(-o,-o)&&e.preventDefault()}},v.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(A,(function(e,t){function n(e,t){e((function(e){return Pe(e+t)}))}if(z){if(ie>=G)return!1;n(V,e)}else{if(le>=X)return!1;n(U,t)}return De(),Ae(),!0})),Object(v.useEffect)((function(){return De(),Oe&&(Te.current=window.setTimeout((function(){Me(0)}),100)),De}),[Oe]);var Le=Ge(function(e,t,n,r,o){var i,a,s,l=o.tabs,c=o.tabPosition,u=o.rtl;["top","bottom"].includes(c)?(i="width",a=u?"right":"left",s=Math.abs(t.left)):(i="height",a="top",s=-t.top);var d=t[i],h=n[i],p=r[i],f=d;return h+p>d&&(f=d-p),Object(v.useMemo)((function(){if(!l.length)return[0,0];for(var t=l.length,n=t,r=0;r<t;r+=1){var o=e.get(l[r].key)||Th;if(o[a]+o[i]>s+f){n=r-1;break}}for(var c=0,u=t-1;u>=0;u-=1){if((e.get(l[u].key)||Th)[a]<s){c=u+1;break}}return[c,n]}),[e,s,f,c,l.map((function(e){return e.key})).join("_"),u])}(_e,{width:ie,height:le,left:B,top:W},{width:Q,height:ne},{width:he,height:me},S(S({},e),{},{tabs:p})),2),Ne=Le[0],je=Le[1],Re=p.map((function(e){var t=e.key;return v.createElement(kh,{id:g,prefixCls:h,key:t,rtl:C,tab:e,closable:e.closable,editable:x,active:t===b,tabPosition:P,tabBarGutter:T,renderWrapper:E,removeAriaLabel:null==k?void 0:k.removeAriaLabel,ref:j(t),onClick:function(e){O(t,e)},onRemove:function(){R(t)},onFocus:function(){Ie(t),Ae(),C||(A.current.scrollLeft=0),A.current.scrollTop=0}})})),ze=xh((function(){var e,t,n,r,o,i,a,s,l,c=(null===(e=A.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=A.current)||void 0===t?void 0:t.offsetHeight)||0,d=(null===(n=L.current)||void 0===n?void 0:n.offsetWidth)||0,h=(null===(r=L.current)||void 0===r?void 0:r.offsetHeight)||0,f=(null===(o=I.current)||void 0===o?void 0:o.offsetWidth)||0,m=(null===(i=I.current)||void 0===i?void 0:i.offsetHeight)||0;ae(c),ce(u),pe(d),ge(h);var g=((null===(a=D.current)||void 0===a?void 0:a.offsetWidth)||0)-d,v=((null===(s=D.current)||void 0===s?void 0:s.offsetHeight)||0)-h;q(g),J(v);var y=null===(l=I.current)||void 0===l?void 0:l.className.includes(xe);ee(g-(y?0:f)),re(v-(y?0:m)),Ce((function(){var e=new Map;return p.forEach((function(t){var n=t.key,r=j(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Fe=p.slice(0,Ne),Be=p.slice(je+1),He=[].concat(de(Fe),de(Be)),Ve=Ge(Object(v.useState)(),2),Ye=Ve[0],We=Ve[1],Ue=_e.get(b),Ke=Object(v.useRef)();function qe(){ve.cancel(Ke.current)}Object(v.useEffect)((function(){var e={};return Ue&&(z?(C?e.right=Ue.right:e.left=Ue.left,e.width=Ue.width):(e.top=Ue.top,e.height=Ue.height)),qe(),Ke.current=ve((function(){We(e)})),qe}),[Ue,z,C]),Object(v.useEffect)((function(){Ie()}),[b,Ue,_e,z]),Object(v.useEffect)((function(){ze()}),[C,T,b,p.map((function(e){return e.key})).join("_")]);var $e,Xe,Je,Ze,Qe=!!He.length,et="".concat(h,"-nav-wrap");return z?C?(Xe=B>0,$e=B+ie<G):($e=B<0,Xe=-B+ie<G):(Je=W<0,Ze=-W+le<X),v.createElement("div",{ref:t,role:"tablist",className:w()("".concat(h,"-nav"),f),style:m,onKeyDown:function(){Ae()}},v.createElement(Nh,{position:"left",extra:_,prefixCls:h}),v.createElement(H,{onResize:ze},v.createElement("div",{className:w()(et,(n={},o(n,"".concat(et,"-ping-left"),$e),o(n,"".concat(et,"-ping-right"),Xe),o(n,"".concat(et,"-ping-top"),Je),o(n,"".concat(et,"-ping-bottom"),Ze),n)),ref:A},v.createElement(H,{onResize:ze},v.createElement("div",{ref:D,className:"".concat(h,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(W,"px)"),transition:Oe?"none":void 0}},Re,v.createElement(Oh,{ref:L,prefixCls:h,locale:k,editable:x,style:{visibility:Qe?"hidden":null}}),v.createElement("div",{className:w()("".concat(h,"-ink-bar"),o({},"".concat(h,"-ink-bar-animated"),y.inkBar)),style:Ye}))))),v.createElement(Ah,Object(r.a)({},e,{ref:I,prefixCls:h,tabs:He,className:!Qe&&xe})),v.createElement(Nh,{position:"right",extra:_,prefixCls:h}))}var Rh=v.forwardRef(jh);function zh(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,a=e.rtl,s=e.destroyInactiveTabPane,l=v.useContext(Dh),c=l.prefixCls,u=l.tabs,d=r.tabPane,h=u.findIndex((function(e){return e.key===n}));return v.createElement("div",{className:w()("".concat(c,"-content-holder"))},v.createElement("div",{className:w()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),o({},"".concat(c,"-content-animated"),d)),style:h&&d?o({},a?"marginRight":"marginLeft","-".concat(h,"00%")):null},u.map((function(e){return v.cloneElement(e.node,{key:e.key,prefixCls:c,tabKey:e.key,id:t,animated:d,active:e.key===n,destroyInactiveTabPane:s})}))))}function Fh(e){var t=e.prefixCls,n=e.forceRender,r=e.className,o=e.style,i=e.id,a=e.active,s=e.animated,l=e.destroyInactiveTabPane,c=e.tabKey,u=e.children,d=Ge(v.useState(n),2),h=d[0],p=d[1];v.useEffect((function(){a?p(!0):l&&p(!1)}),[a,l]);var f={};return a||(s?(f.visibility="hidden",f.height=0,f.overflowY="hidden"):f.display="none"),v.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!a,style:S(S({},f),o),className:w()("".concat(t,"-tabpane"),a&&"".concat(t,"-tabpane-active"),r)},(a||h||n)&&u)}var Bh=0;function Hh(e,t){var n,i,a=e.id,s=e.prefixCls,l=void 0===s?"rc-tabs":s,c=e.className,u=e.children,d=e.direction,h=e.activeKey,p=e.defaultActiveKey,f=e.editable,m=e.animated,y=void 0===m?{inkBar:!0,tabPane:!1}:m,b=e.tabPosition,C=void 0===b?"top":b,_=e.tabBarGutter,x=e.tabBarStyle,k=e.tabBarExtraContent,P=e.locale,T=e.moreIcon,E=e.moreTransitionName,M=e.destroyInactiveTabPane,A=e.renderTabBar,D=e.onChange,I=e.onTabClick,L=e.onTabScroll,N=$e(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),j=function(e){return O(e).map((function(e){return v.isValidElement(e)?S(S({key:void 0!==e.key?String(e.key):void 0},e.props),{},{node:e}):null})).filter((function(e){return e}))}(u),R="rtl"===d;i=!1===y?{inkBar:!1,tabPane:!1}:!0===y?{inkBar:!0,tabPane:!0}:S({inkBar:!0,tabPane:!1},"object"===g(y)?y:{});var z=Ge(Object(v.useState)(!1),2),F=z[0],B=z[1];Object(v.useEffect)((function(){B(ln())}),[]);var H=Ge(cn((function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key}),{value:h,defaultValue:p}),2),V=H[0],Y=H[1],W=Ge(Object(v.useState)((function(){return j.findIndex((function(e){return e.key===V}))})),2),U=W[0],K=W[1];Object(v.useEffect)((function(){var e,t=j.findIndex((function(e){return e.key===V}));-1===t&&(t=Math.max(0,Math.min(U,j.length-1)),Y(null===(e=j[t])||void 0===e?void 0:e.key));K(t)}),[j.map((function(e){return e.key})).join("_"),V,U]);var G=Ge(cn(null,{value:a}),2),q=G[0],$=G[1],X=C;F&&!["left","right"].includes(C)&&(X="top"),Object(v.useEffect)((function(){a||($("rc-tabs-".concat(Bh)),Bh+=1)}),[]);var J,Z={id:q,activeKey:V,animated:i,tabPosition:X,rtl:R,mobile:F},Q=S(S({},Z),{},{editable:f,locale:P,moreIcon:T,moreTransitionName:E,tabBarGutter:_,onTabClick:function(e,t){null==I||I(e,t),Y(e),null==D||D(e)},onTabScroll:L,extra:k,style:x,panes:u});return J=A?A(Q,Rh):v.createElement(Rh,Q),v.createElement(Dh.Provider,{value:{tabs:j,prefixCls:l}},v.createElement("div",Object(r.a)({ref:t,id:a,className:w()(l,"".concat(l,"-").concat(X),(n={},o(n,"".concat(l,"-mobile"),F),o(n,"".concat(l,"-editable"),f),o(n,"".concat(l,"-rtl"),R),n),c)},N),J,v.createElement(zh,Object(r.a)({destroyInactiveTabPane:M},Z,{animated:i}))))}var Vh=v.forwardRef(Hh);Vh.TabPane=Fh;var Yh=Vh,Wh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Uh=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Wh}))};Uh.displayName="PlusOutlined";var Kh=v.forwardRef(Uh),Gh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function qh(e){var t,n=e.type,i=e.className,a=e.size,s=e.onEdit,l=e.hideAdd,c=e.centered,u=e.addIcon,d=Gh(e,["type","className","size","onEdit","hideAdd","centered","addIcon"]),h=d.prefixCls,p=d.moreIcon,f=void 0===p?v.createElement(Xs,null):p,m=v.useContext(ae),g=m.getPrefixCls,y=m.direction,b=g("tabs",h);"editable-card"===n&&(t={onEdit:function(e,t){var n=t.key,r=t.event;null==s||s("add"===e?r:n,e)},removeIcon:v.createElement(Bi,null),addIcon:u||v.createElement(Kh,null),showAdd:!0!==l});var C=g();return aa(!("onPrevClick"in d)&&!("onNextClick"in d),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),v.createElement(Xi.Consumer,null,(function(e){var s,l=void 0!==a?a:e;return v.createElement(Yh,Object(r.a)({direction:y,moreTransitionName:"".concat(C,"-slide-up")},d,{className:w()((s={},o(s,"".concat(b,"-").concat(l),l),o(s,"".concat(b,"-card"),["card","editable-card"].includes(n)),o(s,"".concat(b,"-editable-card"),"editable-card"===n),o(s,"".concat(b,"-centered"),c),s),i),editable:t,moreIcon:f,prefixCls:b}))}))}qh.TabPane=Fh;var $h,Xh=qh,Jh=Object(v.createContext)({}),Zh=function(){return Tn()&&window.document.documentElement},Qh=function(e){if(Zh()){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},ep=function(){var e=Ge(v.useState(!1),2),t=e[0],n=e[1];return v.useEffect((function(){n(function(){if(!Zh())return!1;if(void 0!==$h)return $h;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),$h=1===e.scrollHeight,document.body.removeChild(e),$h}())}),[]),t},tp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},np=(hs("top","middle","bottom","stretch"),hs("start","end","center","space-around","space-between"),v.forwardRef((function(e,t){var n,i=e.prefixCls,a=e.justify,s=e.align,l=e.className,c=e.style,u=e.children,d=e.gutter,h=void 0===d?0:d,p=e.wrap,f=tp(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),m=v.useContext(ae),y=m.getPrefixCls,b=m.direction,C=Ge(v.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),2),_=C[0],x=C[1],S=ep(),k=v.useRef(h);v.useEffect((function(){var e=Ga.subscribe((function(e){var t=k.current||0;(!Array.isArray(t)&&"object"===g(t)||Array.isArray(t)&&("object"===g(t[0])||"object"===g(t[1])))&&x(e)}));return function(){return Ga.unsubscribe(e)}}),[]);var P,T=y("row",i),E=(P=[0,0],(Array.isArray(h)?h:[h,0]).forEach((function(e,t){if("object"===g(e))for(var n=0;n<Va.length;n++){var r=Va[n];if(_[r]&&void 0!==e[r]){P[t]=e[r];break}}else P[t]=e||0})),P),O=w()(T,(o(n={},"".concat(T,"-no-wrap"),!1===p),o(n,"".concat(T,"-").concat(a),a),o(n,"".concat(T,"-").concat(s),s),o(n,"".concat(T,"-rtl"),"rtl"===b),n),l),M={},A=E[0]>0?E[0]/-2:void 0,D=E[1]>0?E[1]/-2:void 0;if(A&&(M.marginLeft=A,M.marginRight=A),S){var I=Ge(E,2);M.rowGap=I[1]}else D&&(M.marginTop=D,M.marginBottom=D);var L=v.useMemo((function(){return{gutter:E,wrap:p,supportFlexGap:S}}),[E,p,S]);return v.createElement(Jh.Provider,{value:L},v.createElement("div",Object(r.a)({},f,{className:O,style:Object(r.a)(Object(r.a)({},M),c),ref:t}),u))})));np.displayName="Row";var rp=np,op=rp,ip=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var ap=["xs","sm","md","lg","xl","xxl"],sp=v.forwardRef((function(e,t){var n,i=v.useContext(ae),a=i.getPrefixCls,s=i.direction,l=v.useContext(Jh),c=l.gutter,u=l.wrap,d=l.supportFlexGap,h=e.prefixCls,p=e.span,f=e.order,m=e.offset,y=e.push,b=e.pull,C=e.className,_=e.children,x=e.flex,S=e.style,k=ip(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),P=a("col",h),T={};ap.forEach((function(t){var n,i={},a=e[t];"number"==typeof a?i.span=a:"object"===g(a)&&(i=a||{}),delete k[t],T=Object(r.a)(Object(r.a)({},T),(o(n={},"".concat(P,"-").concat(t,"-").concat(i.span),void 0!==i.span),o(n,"".concat(P,"-").concat(t,"-order-").concat(i.order),i.order||0===i.order),o(n,"".concat(P,"-").concat(t,"-offset-").concat(i.offset),i.offset||0===i.offset),o(n,"".concat(P,"-").concat(t,"-push-").concat(i.push),i.push||0===i.push),o(n,"".concat(P,"-").concat(t,"-pull-").concat(i.pull),i.pull||0===i.pull),o(n,"".concat(P,"-rtl"),"rtl"===s),n))}));var E=w()(P,(o(n={},"".concat(P,"-").concat(p),void 0!==p),o(n,"".concat(P,"-order-").concat(f),f),o(n,"".concat(P,"-offset-").concat(m),m),o(n,"".concat(P,"-push-").concat(y),y),o(n,"".concat(P,"-pull-").concat(b),b),n),C,T),O={};if(c&&c[0]>0){var M=c[0]/2;O.paddingLeft=M,O.paddingRight=M}if(c&&c[1]>0&&!d){var A=c[1]/2;O.paddingTop=A,O.paddingBottom=A}return x&&(O.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(x),"auto"!==x||!1!==u||O.minWidth||(O.minWidth=0)),v.createElement("div",Object(r.a)({},k,{style:Object(r.a)(Object(r.a)({},O),S),className:E,ref:t}),_)}));sp.displayName="Col";var lp=sp,cp=lp,up=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var dp=function(e){var t,n,i,a=v.useContext(ae),s=a.getPrefixCls,l=a.direction,c=v.useContext(Xi),u=e.prefixCls,d=e.className,h=e.extra,p=e.headStyle,f=void 0===p?{}:p,m=e.bodyStyle,g=void 0===m?{}:m,y=e.title,b=e.loading,C=e.bordered,x=void 0===C||C,S=e.size,k=e.type,P=e.cover,T=e.actions,E=e.tabList,O=e.children,M=e.activeTabKey,A=e.defaultActiveTabKey,D=e.tabBarExtraContent,I=e.hoverable,L=e.tabProps,N=void 0===L?{}:L,j=up(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),R=s("card",u),z=0===g.padding||"0px"===g.padding?{padding:24}:void 0,F=v.createElement("div",{className:"".concat(R,"-loading-block")}),B=v.createElement("div",{className:"".concat(R,"-loading-content"),style:z},v.createElement(op,{gutter:8},v.createElement(cp,{span:22},F)),v.createElement(op,{gutter:8},v.createElement(cp,{span:8},F),v.createElement(cp,{span:15},F)),v.createElement(op,{gutter:8},v.createElement(cp,{span:6},F),v.createElement(cp,{span:18},F)),v.createElement(op,{gutter:8},v.createElement(cp,{span:13},F),v.createElement(cp,{span:9},F)),v.createElement(op,{gutter:8},v.createElement(cp,{span:4},F),v.createElement(cp,{span:3},F),v.createElement(cp,{span:16},F))),H=void 0!==M,V=Object(r.a)(Object(r.a)({},N),(o(t={},H?"activeKey":"defaultActiveKey",H?M:A),o(t,"tabBarExtraContent",D),t)),Y=E&&E.length?v.createElement(Xh,Object(r.a)({size:"large"},V,{className:"".concat(R,"-head-tabs"),onChange:function(t){var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)}}),E.map((function(e){return v.createElement(Xh.TabPane,{tab:e.tab,disabled:e.disabled,key:e.key})}))):null;(y||h||Y)&&(i=v.createElement("div",{className:"".concat(R,"-head"),style:f},v.createElement("div",{className:"".concat(R,"-head-wrapper")},y&&v.createElement("div",{className:"".concat(R,"-head-title")},y),h&&v.createElement("div",{className:"".concat(R,"-extra")},h)),Y));var W,U=P?v.createElement("div",{className:"".concat(R,"-cover")},P):null,K=v.createElement("div",{className:"".concat(R,"-body"),style:g},b?B:O),G=T&&T.length?v.createElement("ul",{className:"".concat(R,"-actions")},function(e){return e.map((function(t,n){return v.createElement("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},v.createElement("span",null,t))}))}(T)):null,q=_(j,["onTabChange"]),$=S||c,X=w()(R,(o(n={},"".concat(R,"-loading"),b),o(n,"".concat(R,"-bordered"),x),o(n,"".concat(R,"-hoverable"),I),o(n,"".concat(R,"-contain-grid"),(v.Children.forEach(e.children,(function(e){e&&e.type&&e.type===wh&&(W=!0)})),W)),o(n,"".concat(R,"-contain-tabs"),E&&E.length),o(n,"".concat(R,"-").concat($),$),o(n,"".concat(R,"-type-").concat(k),!!k),o(n,"".concat(R,"-rtl"),"rtl"===l),n),d);return v.createElement("div",Object(r.a)({},q,{className:X}),i,U,K,G)};dp.Grid=wh,dp.Meta=_h;var hp=dp,pp=v.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.forceRender,a=e.className,s=e.style,l=e.children,c=e.isActive,u=e.role,d=Ge(v.useState(c||i),2),h=d[0],p=d[1];return v.useEffect((function(){(i||c)&&p(!0)}),[i,c]),h?v.createElement("div",{ref:t,className:w()("".concat(r,"-content"),(n={},o(n,"".concat(r,"-content-active"),c),o(n,"".concat(r,"-content-inactive"),!c),n),a),style:s,role:u},v.createElement("div",{className:"".concat(r,"-content-box")},l)):null}));pp.displayName="PanelContent";var fp=pp,mp=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).handleItemClick=function(){var t=e.props,n=t.onItemClick,r=t.panelKey;"function"==typeof n&&n(r)},e.handleKeyPress=function(t){"Enter"!==t.key&&13!==t.keyCode&&13!==t.which||e.handleItemClick()},e}return s(n,[{key:"shouldComponentUpdate",value:function(e){return!Ll()(this.props,e)}},{key:"render",value:function(){var e,t,n=this,r=this.props,i=r.className,a=r.id,s=r.style,l=r.prefixCls,c=r.header,u=r.headerClass,d=r.children,h=r.isActive,p=r.showArrow,f=r.destroyInactivePanel,m=r.accordion,g=r.forceRender,y=r.openMotion,b=r.expandIcon,C=r.extra,_=r.collapsible,x="disabled"===_,S=w()("".concat(l,"-header"),(o(e={},u,u),o(e,"".concat(l,"-header-collapsible-only"),"header"===_),e)),k=w()((o(t={},"".concat(l,"-item"),!0),o(t,"".concat(l,"-item-active"),h),o(t,"".concat(l,"-item-disabled"),x),t),i),P=v.createElement("i",{className:"arrow"});return p&&"function"==typeof b&&(P=b(this.props)),v.createElement("div",{className:k,style:s,id:a},v.createElement("div",{className:S,onClick:function(){return"header"!==_&&n.handleItemClick()},role:m?"tab":"button",tabIndex:x?-1:0,"aria-expanded":h,onKeyPress:this.handleKeyPress},p&&P,"header"===_?v.createElement("span",{onClick:this.handleItemClick,className:"".concat(l,"-header-text")},c):c,C&&v.createElement("div",{className:"".concat(l,"-extra")},C)),v.createElement(or,Object.assign({visible:h,leavedClassName:"".concat(l,"-content-hidden")},y,{forceRender:g,removeOnLeave:f}),(function(e,t){var n=e.className,r=e.style;return v.createElement(fp,{ref:t,prefixCls:l,className:n,style:r,isActive:h,forceRender:g,role:m?"tabpanel":null},d)})))}}]),n}(v.Component);mp.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var gp=mp;function vp(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t.map((function(e){return String(e)}))}var yp=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).onClickItem=function(e){var t=r.state.activeKey;if(r.props.accordion)t=t[0]===e?[]:[e];else{var n=(t=de(t)).indexOf(e);n>-1?t.splice(n,1):t.push(e)}r.setActiveKey(t)},r.getNewChild=function(e,t){if(!e)return null;var n=r.state.activeKey,o=r.props,i=o.prefixCls,a=o.openMotion,s=o.accordion,l=o.destroyInactivePanel,c=o.expandIcon,u=o.collapsible,d=e.key||String(t),h=e.props,p=h.header,f=h.headerClass,m=h.destroyInactivePanel,g=h.collapsible,y=null!=g?g:u,b={key:d,panelKey:d,header:p,headerClass:f,isActive:s?n[0]===d:n.indexOf(d)>-1,prefixCls:i,destroyInactivePanel:null!=m?m:l,openMotion:a,accordion:s,children:e.props.children,onItemClick:"disabled"===y?null:r.onClickItem,expandIcon:c,collapsible:y};return"string"==typeof e.type?e:v.cloneElement(e,b)},r.getItems=function(){return O(r.props.children).map(r.getNewChild)},r.setActiveKey=function(e){"activeKey"in r.props||r.setState({activeKey:e}),r.props.onChange(r.props.accordion?e[0]:e)};var o=e.activeKey,a=e.defaultActiveKey;return"activeKey"in e&&(a=o),r.state={activeKey:vp(a)},r}return s(n,[{key:"shouldComponentUpdate",value:function(e,t){return!Ll()(this.props,e)||!Ll()(this.state,t)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.className,i=t.style,a=t.accordion,s=w()((o(e={},n,!0),o(e,r,!!r),e));return v.createElement("div",{className:s,style:i,role:a?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(e){var t={};return"activeKey"in e&&(t.activeKey=vp(e.activeKey)),t}}]),n}(v.Component);yp.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},yp.Panel=gp;var bp=yp,wp=(yp.Panel,function(e){var t,n,i=v.useContext(ae),a=i.getPrefixCls,s=i.direction,l=e.prefixCls,c=e.className,u=void 0===c?"":c,d=e.bordered,h=void 0===d||d,p=e.ghost,f=a("collapse",l),m=void 0!==(n=e.expandIconPosition)?n:"rtl"===s?"right":"left",g=w()((o(t={},"".concat(f,"-borderless"),!h),o(t,"".concat(f,"-icon-position-").concat(m),!0),o(t,"".concat(f,"-rtl"),"rtl"===s),o(t,"".concat(f,"-ghost"),!!p),t),u),y=Object(r.a)(Object(r.a)({},ta),{motionAppear:!1,leavedClassName:"".concat(f,"-content-hidden")});return v.createElement(bp,Object(r.a)({openMotion:y},e,{bordered:h,expandIcon:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.expandIcon,r=n?n(t):v.createElement(Ks,{rotate:t.isActive?90:void 0});return ca(r,(function(){return{className:w()(r.props.className,"".concat(f,"-arrow"))}}))},prefixCls:f,className:g}),O(e.children).map((function(e,t){var n;if(null===(n=e.props)||void 0===n?void 0:n.disabled){var o=e.key||String(t),i=e.props,a=i.disabled,s=i.collapsible;return ca(e,Object(r.a)(Object(r.a)({},_(e.props,["disabled"])),{key:o,collapsible:null!=s?s:a?"disabled":void 0}))}return e})))});wp.Panel=function(e){aa(!("disabled"in e),"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var t=v.useContext(ae).getPrefixCls,n=e.prefixCls,i=e.className,a=void 0===i?"":i,s=e.showArrow,l=void 0===s||s,c=t("collapse",n),u=w()(o({},"".concat(c,"-no-arrow"),!l),a);return v.createElement(bp.Panel,Object(r.a)({},e,{prefixCls:c,className:u}))};var Cp=wp,_p={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},xp=n(164),Sp=n.n(xp);function kp(e,t,n){return Math.max(t,Math.min(e,n))}var Pp=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},Tp=function(e){for(var t=[],n=Ep(e),r=Op(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},Ep=function(e){return e.currentSlide-Mp(e)},Op=function(e){return e.currentSlide+Ap(e)},Mp=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},Ap=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},Dp=function(e){return e&&e.offsetWidth||0},Ip=function(e){return e&&e.offsetHeight||0},Lp=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},Np=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},jp=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},Rp=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,a=e.slideCount,s=e.lazyLoad,l=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,h=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var f,m,g,v=i,y={},b={},w=o?i:kp(i,0,a-1);if(r){if(!o&&(i<0||i>=a))return{};i<0?v=i+a:i>=a&&(v=i-a),s&&p.indexOf(v)<0&&(p=p.concat(v)),y={animating:!0,currentSlide:v,lazyLoadedList:p,targetSlide:v},b={animating:!1,targetSlide:v}}else f=v,v<0?(f=v+a,o?a%u!=0&&(f=a-a%u):f=0):!Np(e)&&v>l?v=f=l:c&&v>=a?(v=o?a:a-1,f=o?0:a-1):v>=a&&(f=v-a,o?a%u!=0&&(f=0):f=a-d),!o&&v+d>=a&&(f=a-d),m=Wp(S(S({},e),{},{slideIndex:v})),g=Wp(S(S({},e),{},{slideIndex:f})),o||(m===g&&(v=f),m=g),s&&(p=p.concat(Tp(S(S({},e),{},{currentSlide:v})))),h?(y={animating:!0,currentSlide:f,trackStyle:Yp(S(S({},e),{},{left:m})),lazyLoadedList:p,targetSlide:w},b={animating:!1,currentSlide:f,trackStyle:Vp(S(S({},e),{},{left:g})),swipeLeft:null,targetSlide:w}):y={currentSlide:f,trackStyle:Vp(S(S({},e),{},{left:g})),lazyLoadedList:p,targetSlide:w};return{state:y,nextState:b}},zp=function(e,t){var n,r,o,i,a=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,h=e.infinite;if(n=l%a!=0?0:(l-c)%a,"previous"===t.message)i=c-(o=0===n?a:s-n),d&&!h&&(i=-1===(r=c-o)?l-1:r),h||(i=u-a);else if("next"===t.message)i=c+(o=0===n?a:n),d&&!h&&(i=(c+a)%l+n),h||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,h){var p=qp(S(S({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===p?i-=l:i<t.currentSlide&&"right"===p&&(i+=l)}}else"index"===t.message&&(i=Number(t.index));return i},Fp=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},Bp=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every((function(r){if(e.vertical){if(r.offsetTop+Ip(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+Dp(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},Hp=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},Vp=function(e){var t,n;Hp(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=Gp(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=S(S({},o),{},{WebkitTransform:i,transform:a,msTransform:s})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},Yp=function(e){Hp(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=Vp(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Wp=function(e){if(e.unslick)return 0;Hp(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,h=e.variableWidth,p=e.slideHeight,f=e.fade,m=e.vertical;if(f||1===e.slideCount)return 0;var g=0;if(i?(g=-Up(e),s%c!=0&&r+c>s&&(g=-(r>s?l-(r-s):s%c)),a&&(g+=parseInt(l/2))):(s%c!=0&&r+c>s&&(g=l-s%c),a&&(g=parseInt(l/2))),t=m?r*p*-1+g*p:r*u*-1+g*u,!0===h){var v,y=o&&o.node;if(v=r+Up(e),t=(n=y&&y.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=i?r+Up(e):r,n=y&&y.children[v],t=0;for(var b=0;b<v;b++)t-=y&&y.children[b]&&y.children[b].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},Up=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},Kp=function(e){return e.unslick||!e.infinite?0:e.slideCount},Gp=function(e){return 1===e.slideCount?1:Up(e)+e.slideCount+Kp(e)},qp=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+$p(e)?"left":"right":e.targetSlide<e.currentSlide-Xp(e)?"right":"left"},$p=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},Xp=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},Jp=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Zp=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},Qp=function(e,t){return e.key+"-"+t},ef=function(e){var t,n=[],r=[],o=[],i=y.a.Children.count(e.children),a=Ep(e),s=Op(e);return y.a.Children.forEach(e.children,(function(l,c){var u,d={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};u=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?l:y.a.createElement("div",null);var h=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(S(S({},e),{},{index:c})),p=u.props.className||"",f=Zp(S(S({},e),{},{index:c}));if(n.push(y.a.cloneElement(u,{key:"original"+Qp(u,c),"data-index":c,className:w()(f,p),tabIndex:"-1","aria-hidden":!f["slick-active"],style:S(S({outline:"none"},u.props.style||{}),h),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){var m=i-c;m<=Up(e)&&i!==e.slidesToShow&&((t=-m)>=a&&(u=l),f=Zp(S(S({},e),{},{index:t})),r.push(y.a.cloneElement(u,{key:"precloned"+Qp(u,t),"data-index":t,tabIndex:"-1",className:w()(f,p),"aria-hidden":!f["slick-active"],style:S(S({},u.props.style||{}),h),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))),i!==e.slidesToShow&&((t=i+c)<s&&(u=l),f=Zp(S(S({},e),{},{index:t})),o.push(y.a.cloneElement(u,{key:"postcloned"+Qp(u,t),"data-index":t,tabIndex:"-1",className:w()(f,p),"aria-hidden":!f["slick-active"],style:S(S({},u.props.style||{}),h),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})))}})),e.rtl?r.concat(n,o).reverse():r.concat(n,o)},tf=function(e){c(n,e);var t=m(n);function n(){var e;i(this,n);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),o(Object(p.a)(e),"node",null),o(Object(p.a)(e),"handleRef",(function(t){e.node=t})),e}return s(n,[{key:"render",value:function(){var e=ef(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return y.a.createElement("div",Object(r.a)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}]),n}(y.a.PureComponent),nf=function(e){c(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,o=t.onMouseLeave,i=t.infinite,a=t.slidesToScroll,s=t.slidesToShow,l=t.slideCount,c=t.currentSlide,u=(e={slideCount:l,slidesToScroll:a,slidesToShow:s,infinite:i}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,d={onMouseEnter:n,onMouseOver:r,onMouseLeave:o},h=[],p=0;p<u;p++){var f=(p+1)*a-1,m=i?f:kp(f,0,l-1),g=m-(a-1),v=i?g:kp(g,0,l-1),b=w()({"slick-active":i?c>=v&&c<=m:c===v}),C={message:"dots",index:p,slidesToScroll:a,currentSlide:c},_=this.clickHandler.bind(this,C);h=h.concat(y.a.createElement("li",{key:p,className:b},y.a.cloneElement(this.props.customPaging(p),{onClick:_})))}return y.a.cloneElement(this.props.appendDots(h),S({className:this.props.dotsClass},d))}}]),n}(y.a.PureComponent),rf=function(e){c(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:w()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?y.a.cloneElement(this.props.prevArrow,S(S({},n),o)):y.a.createElement("button",Object(r.a)({key:"0",type:"button"},n)," ","Previous")}}]),n}(y.a.PureComponent),of=function(e){c(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return s(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});Np(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:w()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?y.a.cloneElement(this.props.nextArrow,S(S({},n),o)):y.a.createElement("button",Object(r.a)({key:"1",type:"button"},n)," ","Next")}}]),n}(y.a.PureComponent),af=function(e){c(n,e);var t=m(n);function n(e){var a;i(this,n),a=t.call(this,e),o(Object(p.a)(a),"listRefHandler",(function(e){return a.list=e})),o(Object(p.a)(a),"trackRefHandler",(function(e){return a.track=e})),o(Object(p.a)(a),"adaptHeight",(function(){if(a.props.adaptiveHeight&&a.list){var e=a.list.querySelector('[data-index="'.concat(a.state.currentSlide,'"]'));a.list.style.height=Ip(e)+"px"}})),o(Object(p.a)(a),"componentDidMount",(function(){if(a.props.onInit&&a.props.onInit(),a.props.lazyLoad){var e=Tp(S(S({},a.props),a.state));e.length>0&&(a.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),a.props.onLazyLoad&&a.props.onLazyLoad(e))}var t=S({listRef:a.list,trackRef:a.track},a.props);a.updateState(t,!0,(function(){a.adaptHeight(),a.props.autoplay&&a.autoPlay("update")})),"progressive"===a.props.lazyLoad&&(a.lazyLoadTimer=setInterval(a.progressiveLazyLoad,1e3)),a.ro=new F.default((function(){a.state.animating?(a.onWindowResized(!1),a.callbackTimers.push(setTimeout((function(){return a.onWindowResized()}),a.props.speed))):a.onWindowResized()})),a.ro.observe(a.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=a.props.pauseOnFocus?a.onSlideFocus:null,e.onblur=a.props.pauseOnFocus?a.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",a.onWindowResized):window.attachEvent("onresize",a.onWindowResized)})),o(Object(p.a)(a),"componentWillUnmount",(function(){a.animationEndCallback&&clearTimeout(a.animationEndCallback),a.lazyLoadTimer&&clearInterval(a.lazyLoadTimer),a.callbackTimers.length&&(a.callbackTimers.forEach((function(e){return clearTimeout(e)})),a.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",a.onWindowResized):window.detachEvent("onresize",a.onWindowResized),a.autoplayTimer&&clearInterval(a.autoplayTimer),a.ro.disconnect()})),o(Object(p.a)(a),"componentDidUpdate",(function(e){if(a.checkImagesLoad(),a.props.onReInit&&a.props.onReInit(),a.props.lazyLoad){var t=Tp(S(S({},a.props),a.state));t.length>0&&(a.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),a.props.onLazyLoad&&a.props.onLazyLoad(t))}a.adaptHeight();var n=S(S({listRef:a.list,trackRef:a.track},a.props),a.state),r=a.didPropsChange(e);r&&a.updateState(n,r,(function(){a.state.currentSlide>=y.a.Children.count(a.props.children)&&a.changeSlide({message:"index",index:y.a.Children.count(a.props.children)-a.props.slidesToShow,currentSlide:a.state.currentSlide}),e.autoplay===a.props.autoplay&&e.autoplaySpeed===a.props.autoplaySpeed||(a.props.autoplay?a.autoPlay("update"):a.pause("paused"))}))})),o(Object(p.a)(a),"onWindowResized",(function(e){a.debouncedResize&&a.debouncedResize.cancel(),a.debouncedResize=Sp()((function(){return a.resizeWindow(e)}),50),a.debouncedResize()})),o(Object(p.a)(a),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Boolean(a.track&&a.track.node);if(t){var n=S(S({listRef:a.list,trackRef:a.track},a.props),a.state);a.updateState(n,e,(function(){a.props.autoplay?a.autoPlay("update"):a.pause("paused")})),a.setState({animating:!1}),clearTimeout(a.animationEndCallback),delete a.animationEndCallback}})),o(Object(p.a)(a),"updateState",(function(e,t,n){var r=function(e){var t,n=y.a.Children.count(e.children),r=e.listRef,o=Math.ceil(Dp(r)),i=e.trackRef&&e.trackRef.node,a=Math.ceil(Dp(i));if(e.vertical)t=o;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=o/100),t=Math.ceil((o-s)/e.slidesToShow)}var l=r&&Ip(r.querySelector('[data-index="0"]')),c=l*e.slidesToShow,u=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(u=n-1-e.initialSlide);var d=e.lazyLoadedList||[],h=Tp(S(S({},e),{},{currentSlide:u,lazyLoadedList:d})),p={slideCount:n,slideWidth:t,listWidth:o,trackWidth:a,currentSlide:u,slideHeight:l,listHeight:c,lazyLoadedList:d=d.concat(h)};return null===e.autoplaying&&e.autoplay&&(p.autoplaying="playing"),p}(e);e=S(S(S({},e),r),{},{slideIndex:r.currentSlide});var o=Wp(e);e=S(S({},e),{},{left:o});var i=Vp(e);(t||y.a.Children.count(a.props.children)!==y.a.Children.count(e.children))&&(r.trackStyle=i),a.setState(r,n)})),o(Object(p.a)(a),"ssrInit",(function(){if(a.props.variableWidth){var e=0,t=0,n=[],r=Up(S(S(S({},a.props),a.state),{},{slideCount:a.props.children.length})),o=Kp(S(S(S({},a.props),a.state),{},{slideCount:a.props.children.length}));a.props.children.forEach((function(t){n.push(t.props.style.width),e+=t.props.style.width}));for(var i=0;i<r;i++)t+=n[n.length-1-i],e+=n[n.length-1-i];for(var s=0;s<o;s++)e+=n[s];for(var l=0;l<a.state.currentSlide;l++)t+=n[l];var c={width:e+"px",left:-t+"px"};if(a.props.centerMode){var u="".concat(n[a.state.currentSlide],"px");c.left="calc(".concat(c.left," + (100% - ").concat(u,") / 2 ) ")}return{trackStyle:c}}var d=y.a.Children.count(a.props.children),h=S(S(S({},a.props),a.state),{},{slideCount:d}),p=Up(h)+Kp(h)+d,f=100/a.props.slidesToShow*p,m=100/p,g=-m*(Up(h)+a.state.currentSlide)*f/100;return a.props.centerMode&&(g+=(100-m*f/100)/2),{slideWidth:m+"%",trackStyle:{width:f+"%",left:g+"%"}}})),o(Object(p.a)(a),"checkImagesLoad",(function(){var e=a.list&&a.list.querySelectorAll&&a.list.querySelectorAll(".slick-slide img")||[],t=e.length,n=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++n&&n>=t&&a.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(a.props.lazyLoad?e.onload=function(){a.adaptHeight(),a.callbackTimers.push(setTimeout(a.onWindowResized,a.props.speed))}:(e.onload=r,e.onerror=function(){r(),a.props.onLazyLoadError&&a.props.onLazyLoadError()}))}))})),o(Object(p.a)(a),"progressiveLazyLoad",(function(){for(var e=[],t=S(S({},a.props),a.state),n=a.state.currentSlide;n<a.state.slideCount+Kp(t);n++)if(a.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=a.state.currentSlide-1;r>=-Up(t);r--)if(a.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(a.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),a.props.onLazyLoad&&a.props.onLazyLoad(e)):a.lazyLoadTimer&&(clearInterval(a.lazyLoadTimer),delete a.lazyLoadTimer)})),o(Object(p.a)(a),"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=a.props,r=n.asNavFor,o=n.beforeChange,i=n.onLazyLoad,s=n.speed,l=n.afterChange,c=a.state.currentSlide,u=Rp(S(S(S({index:e},a.props),a.state),{},{trackRef:a.track,useCSS:a.props.useCSS&&!t})),d=u.state,h=u.nextState;if(d){o&&o(c,d.currentSlide);var p=d.lazyLoadedList.filter((function(e){return a.state.lazyLoadedList.indexOf(e)<0}));i&&p.length>0&&i(p),!a.props.waitForAnimate&&a.animationEndCallback&&(clearTimeout(a.animationEndCallback),l&&l(c),delete a.animationEndCallback),a.setState(d,(function(){r&&a.asNavForIndex!==e&&(a.asNavForIndex=e,r.innerSlider.slideHandler(e)),h&&(a.animationEndCallback=setTimeout((function(){var e=h.animating,t=$e(h,["animating"]);a.setState(t,(function(){a.callbackTimers.push(setTimeout((function(){return a.setState({animating:e})}),10)),l&&l(d.currentSlide),delete a.animationEndCallback}))}),s))}))}})),o(Object(p.a)(a),"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=S(S({},a.props),a.state),r=zp(n,e);if((0===r||r)&&(!0===t?a.slideHandler(r,t):a.slideHandler(r),a.props.autoplay&&a.autoPlay("update"),a.props.focusOnSelect)){var o=a.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}})),o(Object(p.a)(a),"clickHandler",(function(e){!1===a.clickable&&(e.stopPropagation(),e.preventDefault()),a.clickable=!0})),o(Object(p.a)(a),"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,a.props.accessibility,a.props.rtl);""!==t&&a.changeSlide({message:t})})),o(Object(p.a)(a),"selectHandler",(function(e){a.changeSlide(e)})),o(Object(p.a)(a),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),o(Object(p.a)(a),"enableBodyScroll",(function(){window.ontouchmove=null})),o(Object(p.a)(a),"swipeStart",(function(e){a.props.verticalSwiping&&a.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&Pp(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,a.props.swipe,a.props.draggable);""!==t&&a.setState(t)})),o(Object(p.a)(a),"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,s=t.rtl,l=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,h=t.swiped,p=t.swiping,f=t.slideCount,m=t.slidesToScroll,g=t.infinite,v=t.touchObject,y=t.swipeEvent,b=t.listHeight,w=t.listWidth;if(!n){if(r)return Pp(e);o&&i&&a&&Pp(e);var C,_={},x=Wp(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));var k=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!a&&!p&&k>10)return{scrolling:!0};a&&(v.swipeLength=k);var P=(s?-1:1)*(v.curX>v.startX?1:-1);a&&(P=v.curY>v.startY?1:-1);var T=Math.ceil(f/m),E=Lp(t.touchObject,a),O=v.swipeLength;return g||(0===l&&("right"===E||"down"===E)||l+1>=T&&("left"===E||"up"===E)||!Np(t)&&("left"===E||"up"===E))&&(O=v.swipeLength*c,!1===u&&d&&(d(E),_.edgeDragged=!0)),!h&&y&&(y(E),_.swiped=!0),C=o?x+O*(b/w)*P:s?x-O*P:x+O*P,a&&(C=x+O*P),_=S(S({},_),{},{touchObject:v,swipeLeft:C,trackStyle:Vp(S(S({},t),{},{left:C}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)?_:(v.swipeLength>10&&(_.swiping=!0,Pp(e)),_)}}(e,S(S(S({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));t&&(t.swiping&&(a.clickable=!1),a.setState(t))})),o(Object(p.a)(a),"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,a=t.touchThreshold,s=t.verticalSwiping,l=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,h=t.targetSlide,p=t.currentSlide,f=t.infinite;if(!n)return r&&Pp(e),{};var m=s?l/a:i/a,g=Lp(o,s),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!o.swipeLength)return v;if(o.swipeLength>m){var y,b;Pp(e),d&&d(g);var w=f?p:h;switch(g){case"left":case"up":b=w+Bp(t),y=c?Fp(t,b):b,v.currentDirection=0;break;case"right":case"down":b=w-Bp(t),y=c?Fp(t,b):b,v.currentDirection=1;break;default:y=w}v.triggerSlideHandler=y}else{var C=Wp(t);v.trackStyle=Yp(S(S({},t),{},{left:C}))}return v}(e,S(S(S({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,a.setState(t),void 0!==n&&(a.slideHandler(n),a.props.verticalSwiping&&a.enableBodyScroll())}})),o(Object(p.a)(a),"touchEnd",(function(e){a.swipeEnd(e),a.clickable=!0})),o(Object(p.a)(a),"slickPrev",(function(){a.callbackTimers.push(setTimeout((function(){return a.changeSlide({message:"previous"})}),0))})),o(Object(p.a)(a),"slickNext",(function(){a.callbackTimers.push(setTimeout((function(){return a.changeSlide({message:"next"})}),0))})),o(Object(p.a)(a),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";a.callbackTimers.push(setTimeout((function(){return a.changeSlide({message:"index",index:e,currentSlide:a.state.currentSlide},t)}),0))})),o(Object(p.a)(a),"play",(function(){var e;if(a.props.rtl)e=a.state.currentSlide-a.props.slidesToScroll;else{if(!Np(S(S({},a.props),a.state)))return!1;e=a.state.currentSlide+a.props.slidesToScroll}a.slideHandler(e)})),o(Object(p.a)(a),"autoPlay",(function(e){a.autoplayTimer&&clearInterval(a.autoplayTimer);var t=a.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;a.autoplayTimer=setInterval(a.play,a.props.autoplaySpeed+50),a.setState({autoplaying:"playing"})})),o(Object(p.a)(a),"pause",(function(e){a.autoplayTimer&&(clearInterval(a.autoplayTimer),a.autoplayTimer=null);var t=a.state.autoplaying;"paused"===e?a.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||a.setState({autoplaying:"focused"}):"playing"===t&&a.setState({autoplaying:"hovered"})})),o(Object(p.a)(a),"onDotsOver",(function(){return a.props.autoplay&&a.pause("hovered")})),o(Object(p.a)(a),"onDotsLeave",(function(){return a.props.autoplay&&"hovered"===a.state.autoplaying&&a.autoPlay("leave")})),o(Object(p.a)(a),"onTrackOver",(function(){return a.props.autoplay&&a.pause("hovered")})),o(Object(p.a)(a),"onTrackLeave",(function(){return a.props.autoplay&&"hovered"===a.state.autoplaying&&a.autoPlay("leave")})),o(Object(p.a)(a),"onSlideFocus",(function(){return a.props.autoplay&&a.pause("focused")})),o(Object(p.a)(a),"onSlideBlur",(function(){return a.props.autoplay&&"focused"===a.state.autoplaying&&a.autoPlay("blur")})),o(Object(p.a)(a),"render",(function(){var e,t,n,o=w()("slick-slider",a.props.className,{"slick-vertical":a.props.vertical,"slick-initialized":!0}),i=S(S({},a.props),a.state),s=jp(i,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=a.props.pauseOnHover;if(s=S(S({},s),{},{onMouseEnter:l?a.onTrackOver:null,onMouseLeave:l?a.onTrackLeave:null,onMouseOver:l?a.onTrackOver:null,focusOnSelect:a.props.focusOnSelect&&a.clickable?a.selectHandler:null}),!0===a.props.dots&&a.state.slideCount>=a.props.slidesToShow){var c=jp(i,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),u=a.props.pauseOnDotsHover;c=S(S({},c),{},{clickHandler:a.changeSlide,onMouseEnter:u?a.onDotsLeave:null,onMouseOver:u?a.onDotsOver:null,onMouseLeave:u?a.onDotsLeave:null}),e=y.a.createElement(nf,c)}var d=jp(i,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);d.clickHandler=a.changeSlide,a.props.arrows&&(t=y.a.createElement(rf,d),n=y.a.createElement(of,d));var h=null;a.props.vertical&&(h={height:a.state.listHeight});var p=null;!1===a.props.vertical?!0===a.props.centerMode&&(p={padding:"0px "+a.props.centerPadding}):!0===a.props.centerMode&&(p={padding:a.props.centerPadding+" 0px"});var f=S(S({},h),p),m=a.props.touchMove,g={className:"slick-list",style:f,onClick:a.clickHandler,onMouseDown:m?a.swipeStart:null,onMouseMove:a.state.dragging&&m?a.swipeMove:null,onMouseUp:m?a.swipeEnd:null,onMouseLeave:a.state.dragging&&m?a.swipeEnd:null,onTouchStart:m?a.swipeStart:null,onTouchMove:a.state.dragging&&m?a.swipeMove:null,onTouchEnd:m?a.touchEnd:null,onTouchCancel:a.state.dragging&&m?a.swipeEnd:null,onKeyDown:a.props.accessibility?a.keyHandler:null},v={className:o,dir:"ltr",style:a.props.style};return a.props.unslick&&(g={className:"slick-list"},v={className:o}),y.a.createElement("div",v,a.props.unslick?"":t,y.a.createElement("div",Object(r.a)({ref:a.listRefHandler},g),y.a.createElement(tf,Object(r.a)({ref:a.trackRefHandler},s),a.props.children)),a.props.unslick?"":n,a.props.unslick?"":e)})),a.list=null,a.track=null,a.state=S(S({},_p),{},{currentSlide:a.props.initialSlide,slideCount:y.a.Children.count(a.props.children)}),a.callbackTimers=[],a.clickable=!0,a.debouncedResize=null;var s=a.ssrInit();return a.state=S(S({},a.state),s),a}return s(n,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var o=r[n];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==g(e[o])&&"function"!=typeof e[o]&&e[o]!==this.props[o]){t=!0;break}}return t||y.a.Children.count(this.props.children)!==y.a.Children.count(e.children)}}]),n}(y.a.Component),sf=n(242),lf=n.n(sf),cf={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return y.a.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return y.a.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},uf=function(e){c(n,e);var t=m(n);function n(e){var r;return i(this,n),r=t.call(this,e),o(Object(p.a)(r),"innerSliderRefHandler",(function(e){return r.innerSlider=e})),o(Object(p.a)(r),"slickPrev",(function(){return r.innerSlider.slickPrev()})),o(Object(p.a)(r),"slickNext",(function(){return r.innerSlider.slickNext()})),o(Object(p.a)(r),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.innerSlider.slickGoTo(e,t)})),o(Object(p.a)(r),"slickPause",(function(){return r.innerSlider.pause("paused")})),o(Object(p.a)(r),"slickPlay",(function(){return r.innerSlider.autoPlay("play")})),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return s(n,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?lf()({minWidth:0,maxWidth:n}):lf()({minWidth:t[r-1]+1,maxWidth:n}),Jp()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=lf()({minWidth:t.slice(-1)[0]});Jp()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":S(S(S({},cf),this.props),t[0].settings):S(S({},cf),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=y.a.Children.toArray(this.props.children);o=o.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,s=0;s<o.length;s+=e.rows*e.slidesPerRow){for(var l=[],c=s;c<s+e.rows*e.slidesPerRow;c+=e.slidesPerRow){for(var u=[],d=c;d<c+e.slidesPerRow&&(e.variableWidth&&o[d].props.style&&(a=o[d].props.style.width),!(d>=o.length));d+=1)u.push(y.a.cloneElement(o[d],{key:100*s+10*c+d,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));l.push(y.a.createElement("div",{key:10*s+c},u))}e.variableWidth?i.push(y.a.createElement("div",{key:s,style:{width:a}},l)):i.push(y.a.createElement("div",{key:s},l))}if("unslick"===e){var h="regular slider "+(this.props.className||"");return y.a.createElement("div",{className:h},o)}return i.length<=e.slidesToShow&&(e.unslick=!0),y.a.createElement(af,Object(r.a)({style:this.props.style,ref:this.innerSliderRefHandler},e),i)}}]),n}(y.a.Component),df=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},hf=v.forwardRef((function(e,t){var n,i=e.dots,a=void 0===i||i,s=e.arrows,l=void 0!==s&&s,c=e.draggable,u=void 0!==c&&c,d=e.dotPosition,h=void 0===d?"bottom":d,p=df(e,["dots","arrows","draggable","dotPosition"]),f=v.useContext(ae),m=f.getPrefixCls,g=f.direction,y=v.useRef(),b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.current.slickGoTo(e,t)};v.useImperativeHandle(t,(function(){return{goTo:b,autoPlay:y.current.innerSlider.autoPlay,innerSlider:y.current.innerSlider,prev:y.current.slickPrev,next:y.current.slickNext}}),[y.current]);var C=v.useRef(v.Children.count(p.children));v.useEffect((function(){C.current!==v.Children.count(p.children)&&(b(p.initialSlide||0,!1),C.current=v.Children.count(p.children))}),[p.children]);var _=Object(r.a)({},p);"fade"===_.effect&&(_.fade=!0);var x=m("carousel",_.prefixCls);_.vertical="left"===h||"right"===h;var S=!!a,k=w()("slick-dots","".concat("slick-dots","-").concat(h),"boolean"!=typeof a&&(null==a?void 0:a.className)),P=w()(x,(o(n={},"".concat(x,"-rtl"),"rtl"===g),o(n,"".concat(x,"-vertical"),_.vertical),n));return v.createElement("div",{className:P},v.createElement(uf,Object(r.a)({ref:y},_,{dots:S,dotsClass:k,arrows:l,draggable:u})))})),pf=n(637),ff=n.n(pf),mf=n(143),gf=n.n(mf);var vf=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).menuItems={},e.saveMenuItem=function(t){return function(n){e.menuItems[t]=n}},e}return s(n,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(e){!e.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(e){var t=this.props,n=t.fieldNames,r=t.defaultFieldNames;return n[e]||r[e]}},{key:"getOption",value:function(e,t){var n=this.props,r=n.prefixCls,o=n.expandTrigger,i=n.expandIcon,a=n.loadingIcon,s=this.props.onSelect.bind(this,e,t),l={onClick:s,onDoubleClick:this.props.onItemDoubleClick.bind(this,e,t)},c="".concat(r,"-menu-item"),u=null,d=e[this.getFieldName("children")]&&e[this.getFieldName("children")].length>0;(d||!1===e.isLeaf)&&(c+=" ".concat(r,"-menu-item-expand"),e.loading||(u=v.createElement("span",{className:"".concat(r,"-menu-item-expand-icon")},i))),"hover"!==o||!d&&!1!==e.isLeaf||(l={onMouseEnter:this.delayOnSelect.bind(this,s),onMouseLeave:this.delayOnSelect.bind(this),onClick:s}),this.isActiveOption(e,t)&&(c+=" ".concat(r,"-menu-item-active"),l.ref=this.saveMenuItem(t)),e.disabled&&(c+=" ".concat(r,"-menu-item-disabled"));var h=null;e.loading&&(c+=" ".concat(r,"-menu-item-loading"),h=a||null);var p="";return"title"in e?p=e.title:"string"==typeof e[this.getFieldName("label")]&&(p=e[this.getFieldName("label")]),v.createElement("li",Object.assign({key:e[this.getFieldName("value")],className:c,title:p},l,{role:"menuitem",onMouseDown:function(e){return e.preventDefault()}}),e[this.getFieldName("label")],u,h)}},{key:"getActiveOptions",value:function(e){var t=this,n=this.props.options,r=e||this.props.activeValue;return gf()(n,(function(e,n){return e[t.getFieldName("value")]===r[n]}),{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var e=this,t=this.props.options,n=this.getActiveOptions().map((function(t){return t[e.getFieldName("children")]})).filter((function(e){return!!e}));return n.unshift(t),n}},{key:"delayOnSelect",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),"function"==typeof e&&(this.delayTimer=window.setTimeout((function(){e(r),t.delayTimer=null}),150))}},{key:"scrollActiveItemToView",value:function(){for(var e=this.getShowOptions().length,t=0;t<e;t++){var n=this.menuItems[t];n&&n.parentElement&&(n.parentElement.scrollTop=n.offsetTop)}}},{key:"isActiveOption",value:function(e,t){var n=this.props.activeValue;return(void 0===n?[]:n)[t]===e[this.getFieldName("value")]}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.dropdownMenuColumnStyle;return v.createElement("div",null,this.getShowOptions().map((function(t,o){return v.createElement("ul",{className:"".concat(n,"-menu"),key:o,style:r},t.map((function(t){return e.getOption(t,o)})))})))}}]),n}(v.Component);vf.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"};var yf=vf,bf={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},wf=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).setPopupVisible=function(e){var t=r.state.value;"popupVisible"in r.props||r.setState({popupVisible:e}),e&&!r.state.popupVisible&&r.setState({activeValue:t}),r.props.onPopupVisibleChange(e)},r.handleChange=function(e,t,n){var o=t.visible;"keydown"===n.type&&n.keyCode!==Je.ENTER||(r.props.onChange(e.map((function(e){return e[r.getFieldName("value")]})),e),r.setPopupVisible(o))},r.handlePopupVisibleChange=function(e){r.setPopupVisible(e)},r.handleMenuSelect=function(e,t,n){var o=r.trigger.getRootDomNode();o&&o.focus&&o.focus();var i=r.props,a=i.changeOnSelect,s=i.loadData,l=i.expandTrigger;if(e&&!e.disabled){var c=r.state.activeValue;(c=c.slice(0,t+1))[t]=e[r.getFieldName("value")];var u=r.getActiveOptions(c);if(!1===e.isLeaf&&!e[r.getFieldName("children")]&&s)return a&&r.handleChange(u,{visible:!0},n),r.setState({activeValue:c}),void s(u);var d={};e[r.getFieldName("children")]&&e[r.getFieldName("children")].length?!a||"click"!==n.type&&"keydown"!==n.type||("hover"===l?r.handleChange(u,{visible:!1},n):r.handleChange(u,{visible:!0},n),d.value=c):(r.handleChange(u,{visible:!1},n),d.value=c),d.activeValue=c,("value"in r.props||"keydown"===n.type&&n.keyCode!==Je.ENTER)&&delete d.value,r.setState(d)}},r.handleItemDoubleClick=function(){r.props.changeOnSelect&&r.setPopupVisible(!1)},r.handleKeyDown=function(e){var t=r.props.children;if(t&&t.props.onKeyDown)t.props.onKeyDown(e);else{var n=de(r.state.activeValue),o=n.length-1<0?0:n.length-1,i=r.getCurrentLevelOptions(),a=i.map((function(e){return e[r.getFieldName("value")]})).indexOf(n[o]);if(e.keyCode===Je.DOWN||e.keyCode===Je.UP||e.keyCode===Je.LEFT||e.keyCode===Je.RIGHT||e.keyCode===Je.ENTER||e.keyCode===Je.SPACE||e.keyCode===Je.BACKSPACE||e.keyCode===Je.ESC||e.keyCode===Je.TAB){if(!r.state.popupVisible&&e.keyCode!==Je.BACKSPACE&&e.keyCode!==Je.LEFT&&e.keyCode!==Je.RIGHT&&e.keyCode!==Je.ESC&&e.keyCode!==Je.TAB)return r.setPopupVisible(!0),void(r.props.onKeyDown&&r.props.onKeyDown(e));if(e.keyCode===Je.DOWN||e.keyCode===Je.UP){e.preventDefault();var s=a;s=-1!==s?e.keyCode===Je.DOWN?(s+=1)>=i.length?0:s:(s-=1)<0?i.length-1:s:0,n[o]=i[s][r.getFieldName("value")]}else if(e.keyCode===Je.LEFT||e.keyCode===Je.BACKSPACE)e.preventDefault(),n.splice(n.length-1,1);else if(e.keyCode===Je.RIGHT)e.preventDefault(),i[a]&&i[a][r.getFieldName("children")]&&n.push(i[a][r.getFieldName("children")][0][r.getFieldName("value")]);else if(e.keyCode===Je.ESC||e.keyCode===Je.TAB)return r.setPopupVisible(!1),void(r.props.onKeyDown&&r.props.onKeyDown(e));n&&0!==n.length||r.setPopupVisible(!1);var l=r.getActiveOptions(n),c=l[l.length-1];r.handleMenuSelect(c,l.length-1,e),r.props.onKeyDown&&r.props.onKeyDown(e)}}},r.saveTrigger=function(e){r.trigger=e};var o=[];return"value"in e?o=e.value||[]:"defaultValue"in e&&(o=e.defaultValue||[]),ff()(!("filedNames"in e),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),r.state={popupVisible:e.popupVisible,activeValue:o,value:o,prevProps:e},r.defaultFieldNames={label:"label",value:"value",children:"children"},r}return s(n,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(e){var t=this.defaultFieldNames,n=this.props,r=n.fieldNames,o=n.filedNames;return"filedNames"in this.props?o[e]||t[e]:r[e]||t[e]}},{key:"getFieldNames",value:function(){var e=this.props,t=e.fieldNames,n=e.filedNames;return"filedNames"in this.props?n:t}},{key:"getCurrentLevelOptions",value:function(){var e=this,t=this.props.options,n=void 0===t?[]:t,r=this.state.activeValue,o=void 0===r?[]:r,i=gf()(n,(function(t,n){return t[e.getFieldName("value")]===o[n]}),{childrenKeyName:this.getFieldName("children")});return i[i.length-2]?i[i.length-2][this.getFieldName("children")]:de(n).filter((function(e){return!e.disabled}))}},{key:"getActiveOptions",value:function(e){var t=this;return gf()(this.props.options||[],(function(n,r){return n[t.getFieldName("value")]===e[r]}),{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.transitionName,r=e.popupClassName,o=e.options,i=void 0===o?[]:o,a=e.disabled,s=e.builtinPlacements,l=e.popupPlacement,c=e.children,u=e.dropdownRender,d=$e(e,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),h=v.createElement("div",null),p="";i&&i.length>0?h=v.createElement(yf,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):p=" ".concat(t,"-menus-empty");var f=h;return u&&(f=u(h)),v.createElement(Io,Object.assign({ref:this.saveTrigger},d,{popupPlacement:l,builtinPlacements:s,popupTransitionName:n,action:a?[]:["click"],popupVisible:!a&&this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(t,"-menus"),popupClassName:r+p,popup:f}),v.cloneElement(c,{onKeyDown:this.handleKeyDown,tabIndex:a?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"value"in e&&!function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}((void 0===n?{}:n).value,e.value)&&(r.value=e.value||[],"loadData"in e||(r.activeValue=e.value||[])),"popupVisible"in e&&(r.popupVisible=e.popupVisible),r}}]),n}(v.Component);wf.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:bf,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"};var Cf=wf,_f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"},xf=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:_f}))};xf.displayName="RedoOutlined";var Sf=v.forwardRef(xf),kf=hs("text","input");function Pf(e){return!!(e.prefix||e.suffix||e.allowClear)}function Tf(e){return!(!e.addonBefore&&!e.addonAfter)}var Ef=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).containerRef=v.createRef(),e.onInputMouseUp=function(t){var n;if(null===(n=e.containerRef.current)||void 0===n?void 0:n.contains(t.target)){var r=e.props.triggerFocus;null==r||r()}},e}return s(n,[{key:"renderClearIcon",value:function(e){var t=this.props,n=t.allowClear,r=t.value,i=t.disabled,a=t.readOnly,s=t.handleReset;if(!n)return null;var l=!i&&!a&&r,c="".concat(e,"-clear-icon");return v.createElement(Yi,{onClick:s,className:w()(o({},"".concat(c,"-hidden"),!l),c),role:"button"})}},{key:"renderSuffix",value:function(e){var t=this.props,n=t.suffix,r=t.allowClear;return n||r?v.createElement("span",{className:"".concat(e,"-suffix")},this.renderClearIcon(e),n):null}},{key:"renderLabeledIcon",value:function(e,t){var n,r=this.props,i=r.focused,a=r.value,s=r.prefix,l=r.className,c=r.size,u=r.suffix,d=r.disabled,h=r.allowClear,p=r.direction,f=r.style,m=r.readOnly,g=r.bordered,y=this.renderSuffix(e);if(!Pf(this.props))return ca(t,{value:a});var b=s?v.createElement("span",{className:"".concat(e,"-prefix")},s):null,C=w()("".concat(e,"-affix-wrapper"),(o(n={},"".concat(e,"-affix-wrapper-focused"),i),o(n,"".concat(e,"-affix-wrapper-disabled"),d),o(n,"".concat(e,"-affix-wrapper-sm"),"small"===c),o(n,"".concat(e,"-affix-wrapper-lg"),"large"===c),o(n,"".concat(e,"-affix-wrapper-input-with-clear-btn"),u&&h&&a),o(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===p),o(n,"".concat(e,"-affix-wrapper-readonly"),m),o(n,"".concat(e,"-affix-wrapper-borderless"),!g),o(n,"".concat(l),!Tf(this.props)&&l),n));return v.createElement("span",{ref:this.containerRef,className:C,style:f,onMouseUp:this.onInputMouseUp},b,ca(t,{style:null,value:a,className:Af(e,g,c,d)}),y)}},{key:"renderInputWithLabel",value:function(e,t){var n,r=this.props,i=r.addonBefore,a=r.addonAfter,s=r.style,l=r.size,c=r.className,u=r.direction;if(!Tf(this.props))return t;var d="".concat(e,"-group"),h="".concat(d,"-addon"),p=i?v.createElement("span",{className:h},i):null,f=a?v.createElement("span",{className:h},a):null,m=w()("".concat(e,"-wrapper"),d,o({},"".concat(d,"-rtl"),"rtl"===u)),g=w()("".concat(e,"-group-wrapper"),(o(n={},"".concat(e,"-group-wrapper-sm"),"small"===l),o(n,"".concat(e,"-group-wrapper-lg"),"large"===l),o(n,"".concat(e,"-group-wrapper-rtl"),"rtl"===u),n),c);return v.createElement("span",{className:g,style:s},v.createElement("span",{className:m},p,ca(t,{style:null}),f))}},{key:"renderTextAreaWithClearIcon",value:function(e,t){var n,r=this.props,i=r.value,a=r.allowClear,s=r.className,l=r.style,c=r.direction,u=r.bordered;if(!a)return ca(t,{value:i});var d=w()("".concat(e,"-affix-wrapper"),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"),(o(n={},"".concat(e,"-affix-wrapper-rtl"),"rtl"===c),o(n,"".concat(e,"-affix-wrapper-borderless"),!u),o(n,"".concat(s),!Tf(this.props)&&s),n));return v.createElement("span",{className:d,style:l},ca(t,{style:null,value:i}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.inputType,r=e.element;return n===kf[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}}]),n}(v.Component);function Of(e){return null==e?"":e}function Mf(e,t,n,r){if(n){var o=t,i=e.value;return"click"===t.type?((o=Object.create(t)).target=e,o.currentTarget=e,e.value="",n(o),void(e.value=i)):void 0!==r?((o=Object.create(t)).target=e,o.currentTarget=e,e.value=r,void n(o)):void n(o)}}function Af(e,t,n,r,i){var a;return w()(e,(o(a={},"".concat(e,"-sm"),"small"===n),o(a,"".concat(e,"-lg"),"large"===n),o(a,"".concat(e,"-disabled"),r),o(a,"".concat(e,"-rtl"),"rtl"===i),o(a,"".concat(e,"-borderless"),!t),a))}function Df(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var If=function(e){c(n,e);var t=m(n);function n(e){var a;i(this,n),(a=t.call(this,e)).direction="ltr",a.focus=function(e){Df(a.input,e)},a.saveClearableInput=function(e){a.clearableInput=e},a.saveInput=function(e){a.input=e},a.onFocus=function(e){var t=a.props.onFocus;a.setState({focused:!0},a.clearPasswordValueAttribute),null==t||t(e)},a.onBlur=function(e){var t=a.props.onBlur;a.setState({focused:!1},a.clearPasswordValueAttribute),null==t||t(e)},a.handleReset=function(e){a.setValue("",(function(){a.focus()})),Mf(a.input,e,a.props.onChange)},a.renderInput=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=a.props,l=s.className,c=s.addonBefore,u=s.addonAfter,d=s.size,h=s.disabled,p=_(a.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return v.createElement("input",Object(r.a)({autoComplete:i.autoComplete},p,{onChange:a.handleChange,onFocus:a.onFocus,onBlur:a.onBlur,onKeyDown:a.handleKeyDown,className:w()(Af(e,n,d||t,h,a.direction),o({},l,l&&!c&&!u)),ref:a.saveInput}))},a.clearPasswordValueAttribute=function(){a.removePasswordTimeout=setTimeout((function(){a.input&&"password"===a.input.getAttribute("type")&&a.input.hasAttribute("value")&&a.input.removeAttribute("value")}))},a.handleChange=function(e){a.setValue(e.target.value,a.clearPasswordValueAttribute),Mf(a.input,e,a.props.onChange)},a.handleKeyDown=function(e){var t=a.props,n=t.onPressEnter,r=t.onKeyDown;n&&13===e.keyCode&&n(e),null==r||r(e)},a.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,o=e.input,i=a.state,s=i.value,l=i.focused,c=a.props,u=c.prefixCls,d=c.bordered,h=void 0===d||d,p=t("input",u);return a.direction=n,v.createElement(Xi.Consumer,null,(function(e){return v.createElement(Ef,Object(r.a)({size:e},a.props,{prefixCls:p,inputType:"input",value:Of(s),element:a.renderInput(p,e,h,o),handleReset:a.handleReset,ref:a.saveClearableInput,direction:n,focused:l,triggerFocus:a.focus,bordered:h}))}))};var s=void 0===e.value?e.defaultValue:e.value;return a.state={value:s,focused:!1,prevValue:e.value},a}return s(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return Pf(e)!==Pf(this.props)&&aa(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(e,t,n){this.input.setSelectionRange(e,t,n)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value?this.setState({value:e},t):null==t||t()}},{key:"render",value:function(){return v.createElement(se,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}]),n}(v.Component);If.defaultProps={type:"text"};var Lf=If,Nf=function(e){return v.createElement(se,null,(function(t){var n,r=t.getPrefixCls,i=t.direction,a=e.prefixCls,s=e.className,l=void 0===s?"":s,c=r("input-group",a),u=w()(c,(o(n={},"".concat(c,"-lg"),"large"===e.size),o(n,"".concat(c,"-sm"),"small"===e.size),o(n,"".concat(c,"-compact"),e.compact),o(n,"".concat(c,"-rtl"),"rtl"===i),n),l);return v.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},jf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Rf=v.forwardRef((function(e,t){var n,i,a=e.prefixCls,s=e.inputPrefixCls,l=e.className,c=e.size,u=e.suffix,d=e.enterButton,h=void 0!==d&&d,p=e.addonAfter,f=e.loading,m=e.disabled,g=e.onSearch,y=e.onChange,b=jf(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange"]),C=v.useContext(ae),_=C.getPrefixCls,x=C.direction,S=v.useContext(Xi),k=c||S,P=v.useRef(null),T=function(e){var t;document.activeElement===(null===(t=P.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=function(e){var t;g&&g(null===(t=P.current)||void 0===t?void 0:t.input.value,e)},O=_("input-search",a),M=_("input",s),A="boolean"==typeof h||void 0===h?v.createElement(Ki,null):null,D="".concat(O,"-button"),I=h||{},L=I.type&&!0===I.type.__ANT_BUTTON;i=L||"button"===I.type?ca(I,Object(r.a)({onMouseDown:T,onClick:E,key:"enterButton"},L?{className:D,size:k}:{})):v.createElement(vl,{className:D,type:h?"primary":void 0,size:k,disabled:m,key:"enterButton",onMouseDown:T,onClick:E,loading:f,icon:A},h),p&&(i=[i,ca(p,{key:"addonAfter"})]);var N=w()(O,(o(n={},"".concat(O,"-rtl"),"rtl"===x),o(n,"".concat(O,"-").concat(k),!!k),o(n,"".concat(O,"-with-button"),!!h),n),l);return v.createElement(Lf,Object(r.a)({ref:R(P,t),onPressEnter:E},b,{size:k,prefixCls:M,addonAfter:i,suffix:u,onChange:function(e){e&&e.target&&"click"===e.type&&g&&g(e.target.value,e),y&&y(e)},className:N,disabled:m}))}));Rf.displayName="Search";var zf,Ff,Bf=Rf,Hf="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",Vf=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],Yf={};function Wf(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Yf[n])return Yf[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Vf.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Yf[n]=l),l}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(Ff||(Ff={}));var Uf=function(e){c(n,e);var t=m(n);function n(e){var a;return i(this,n),(a=t.call(this,e)).saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,o=n.onResize;t===Ff.NONE&&("function"==typeof o&&o(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;zf||((zf=document.createElement("textarea")).setAttribute("tab-index","-1"),zf.setAttribute("aria-hidden","true"),document.body.appendChild(zf)),e.getAttribute("wrap")?zf.setAttribute("wrap",e.getAttribute("wrap")):zf.removeAttribute("wrap");var o=Wf(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;zf.setAttribute("style","".concat(l,";").concat(Hf)),zf.value=e.value||e.placeholder||"";var c,u=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,h=zf.scrollHeight;if("border-box"===s?h+=a:"content-box"===s&&(h-=i),null!==n||null!==r){zf.value=" ";var p=zf.scrollHeight-i;null!==n&&(u=p*n,"border-box"===s&&(u=u+i+a),h=Math.max(u,h)),null!==r&&(d=p*r,"border-box"===s&&(d=d+i+a),c=h>d?"":"hidden",h=Math.min(d,h))}return{height:h,minHeight:u,maxHeight:d,overflowY:c,resize:"none"}}(a.textArea,!1,t,n);a.setState({textareaStyles:r,resizeStatus:Ff.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:Ff.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:Ff.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,i=e.autoSize,s=e.onResize,l=e.className,c=e.disabled,u=a.state,d=u.textareaStyles,h=u.resizeStatus,p=_(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),f=w()(n,l,o({},"".concat(n,"-disabled"),c));"value"in p&&(p.value=p.value||"");var m=S(S(S({},a.props.style),d),h===Ff.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return v.createElement(H,{onResize:a.handleResize,disabled:!(i||s)},v.createElement("textarea",Object(r.a)({},p,{className:f,style:m,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:Ff.NONE},a}return s(n,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(v.Component),Kf=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return s(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return v.createElement(Uf,Object(r.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(v.Component),Gf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function qf(e,t){return de(e||"").slice(0,t).join("")}var $f=v.forwardRef((function(e,t){var n,i=e.prefixCls,a=e.bordered,s=void 0===a||a,l=e.showCount,c=void 0!==l&&l,u=e.maxLength,d=e.className,h=e.style,p=e.size,f=e.onCompositionStart,m=e.onCompositionEnd,y=e.onChange,b=Gf(e,["prefixCls","bordered","showCount","maxLength","className","style","size","onCompositionStart","onCompositionEnd","onChange"]),C=v.useContext(ae),x=C.getPrefixCls,S=C.direction,k=v.useContext(Xi),P=v.useRef(null),T=v.useRef(null),E=Ge(v.useState(!1),2),O=E[0],M=E[1],A=Ge(cn(b.defaultValue,{value:b.value}),2),D=A[0],I=A[1],L=function(e,t){void 0===b.value&&(I(e),null==t||t())},N=Number(u)>0,j=x("input",i);v.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=P.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;Df(null===(n=null===(t=P.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=P.current)||void 0===e?void 0:e.blur()}}}));var R=v.createElement(Kf,Object(r.a)({},_(b,["allowClear"]),{className:w()((n={},o(n,"".concat(j,"-borderless"),!s),o(n,d,d&&!c),o(n,"".concat(j,"-sm"),"small"===k||"small"===p),o(n,"".concat(j,"-lg"),"large"===k||"large"===p),n)),style:c?void 0:h,prefixCls:j,onCompositionStart:function(e){M(!0),null==f||f(e)},onChange:function(e){var t=e.target.value;!O&&N&&(t=qf(t,u)),L(t),Mf(e.currentTarget,e,y,t)},onCompositionEnd:function(e){M(!1);var t=e.currentTarget.value;N&&(t=qf(t,u)),t!==D&&(L(t),Mf(e.currentTarget,e,y,t)),null==m||m(e)},ref:P})),z=Of(D);O||!N||null!==b.value&&void 0!==b.value||(z=qf(z,u));var F=v.createElement(Ef,Object(r.a)({},b,{prefixCls:j,direction:S,inputType:"text",value:z,element:R,handleReset:function(e){var t,n;L("",(function(){var e;null===(e=P.current)||void 0===e||e.focus()})),Mf(null===(n=null===(t=P.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,y)},ref:T,bordered:s}));if(c){var B=de(z).length,H="";return H="object"===g(c)?c.formatter({count:B,maxLength:u}):"".concat(B).concat(N?" / ".concat(u):""),v.createElement("div",{className:w()("".concat(j,"-textarea"),o({},"".concat(j,"-textarea-rtl"),"rtl"===S),"".concat(j,"-textarea-show-count"),d),style:h,"data-count":H},F)}return F})),Xf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Jf=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Xf}))};Jf.displayName="EyeOutlined";var Zf=v.forwardRef(Jf),Qf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},em=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Qf}))};em.displayName="EyeInvisibleOutlined";var tm=v.forwardRef(em),nm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},rm={click:"onClick",hover:"onMouseOver"},om=v.forwardRef((function(e,t){var n=Ge(Object(v.useState)(!1),2),i=n[0],a=n[1],s=function(){e.disabled||a(!i)},l=function(n){var a=n.getPrefixCls,l=e.className,c=e.prefixCls,u=e.inputPrefixCls,d=e.size,h=e.visibilityToggle,p=nm(e,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),f=a("input",u),m=a("input-password",c),g=h&&function(t){var n,r=e.action,a=e.iconRender,l=rm[r]||"",c=(void 0===a?function(){return null}:a)(i),u=(o(n={},l,s),o(n,"className","".concat(t,"-icon")),o(n,"key","passwordIcon"),o(n,"onMouseDown",(function(e){e.preventDefault()})),o(n,"onMouseUp",(function(e){e.preventDefault()})),n);return v.cloneElement(v.isValidElement(c)?c:v.createElement("span",null,c),u)}(m),y=w()(m,l,o({},"".concat(m,"-").concat(d),!!d)),b=Object(r.a)(Object(r.a)({},_(p,["suffix","iconRender"])),{type:i?"text":"password",className:y,prefixCls:f,suffix:g});return d&&(b.size=d),v.createElement(Lf,Object(r.a)({ref:t},b))};return v.createElement(se,null,l)}));om.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(e){return e?v.createElement(Zf,null):v.createElement(tm,null)}},om.displayName="Password";var im=om;Lf.Group=Nf,Lf.Search=Bf,Lf.TextArea=$f,Lf.Password=im;var am=Lf,sm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function lm(e,t,n){return t.some((function(t){return t[n.label].indexOf(e)>-1}))}function cm(e,t,n,r){return t.map((function(t,o){var i=t[r.label],a=i.indexOf(e)>-1?function(e,t,n){return e.split(t).map((function(e,r){return 0===r?e:[v.createElement("span",{className:"".concat(n,"-menu-item-keyword"),key:"seperator"},t),e]}))}(i,e,n):i;return 0===o?a:[" / ",a]}))}function um(e,t,n,r){function o(e){return e[r.label].indexOf(n)>-1}return e.findIndex(o)-t.findIndex(o)}function dm(e){var t=e.fieldNames||{};return{children:t.children||"children",label:t.label||"label",value:t.value||"value"}}function hm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=dm(t),o=[],i=r.children;return e.forEach((function(e){var r=n.concat(e);!t.changeOnSelect&&e[i]&&e[i].length||o.push(r),e[i]&&(o=o.concat(hm(e[i],t,r)))})),o}var pm=function(e){return e.join(" / ")};function fm(e,t,n){var r;return o(r={},t.value,"ANT_CASCADER_NOT_FOUND"),o(r,t.label,n||e("Cascader")),o(r,"disabled",!0),o(r,"isEmptyNode",!0),r}var mm=function(e){c(n,e);var t=m(n);function n(e){var a;return i(this,n),(a=t.call(this,e)).cachedOptions=[],a.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"value"in a.props||a.setState({value:e});var n=a.props.onChange;null==n||n(e,t)},a.saveInput=function(e){a.input=e},a.handleChange=function(e,t){if(a.setState({inputValue:""}),t[0].__IS_FILTERED_OPTION){var n=void 0===t[0].__KEEP_FILTERED_OPTION_VALUE?e[0]:t[0].__KEEP_FILTERED_OPTION_VALUE,r=t[0].path;a.setValue(n,r)}else a.setValue(e,t)},a.handlePopupVisibleChange=function(e){"popupVisible"in a.props||a.setState((function(t){return{popupVisible:e,inputFocused:e,inputValue:e?t.inputValue:""}}));var t=a.props.onPopupVisibleChange;null==t||t(e)},a.handleInputBlur=function(){a.setState({inputFocused:!1})},a.handleInputClick=function(e){var t=a.state,n=t.inputFocused,r=t.popupVisible;(n||r)&&e.stopPropagation()},a.handleKeyDown=function(e){e.keyCode!==Je.BACKSPACE&&e.keyCode!==Je.SPACE||e.stopPropagation()},a.handleInputChange=function(e){var t=a.state.popupVisible,n=e.target.value;t||a.handlePopupVisibleChange(!0),a.setState({inputValue:n})},a.clearSelection=function(e){var t=a.state.inputValue;e.preventDefault(),e.stopPropagation(),t?a.setState({inputValue:""}):(a.handlePopupVisibleChange(!1),a.clearSelectionTimeout=setTimeout((function(){a.setValue([])}),200))},a.renderCascader=function(e,t){var n=e.getPopupContainer,i=e.getPrefixCls,s=e.renderEmpty,l=e.direction;return v.createElement(Xi.Consumer,null,(function(e){var c,u,d,h,f=Object(p.a)(a),m=f.props,g=f.state,y=m.prefixCls,b=m.inputPrefixCls,C=m.children,x=m.placeholder,S=void 0===x?t.placeholder||"Please select":x,k=m.size,P=m.disabled,T=m.className,E=m.style,O=m.allowClear,M=m.showSearch,A=void 0!==M&&M,D=m.suffixIcon,I=m.expandIcon,L=m.notFoundContent,N=m.popupClassName,j=m.bordered,R=m.dropdownRender,z=sm(m,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),F=k||e,B=g.value,H=g.inputFocused,V="rtl"===l,Y=i("cascader",y),W=i("input",b),U=w()((o(c={},"".concat(W,"-lg"),"large"===F),o(c,"".concat(W,"-sm"),"small"===F),c)),K=O&&!P&&B.length>0||g.inputValue?v.createElement(Yi,{className:"".concat(Y,"-picker-clear"),onClick:a.clearSelection}):null,G=w()((o(u={},"".concat(Y,"-picker-arrow"),!0),o(u,"".concat(Y,"-picker-arrow-expand"),g.popupVisible),u)),q=w()("".concat(Y,"-picker"),(o(d={},"".concat(Y,"-picker-rtl"),V),o(d,"".concat(Y,"-picker-with-value"),g.inputValue),o(d,"".concat(Y,"-picker-disabled"),P),o(d,"".concat(Y,"-picker-").concat(F),!!F),o(d,"".concat(Y,"-picker-show-search"),!!A),o(d,"".concat(Y,"-picker-focused"),H),o(d,"".concat(Y,"-picker-borderless"),!j),d),T),$=_(z,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","filterOption","renderFilteredOption","sortFilteredOption","fieldNames"]),X=m.options,J=dm(a.props);X&&X.length>0?g.inputValue&&(X=a.generateFilteredOptions(Y,s)):X=[fm(s,J,L)],g.popupVisible?a.cachedOptions=X:X=a.cachedOptions;var Z,Q={},ee=1===(X||[]).length&&X[0].isEmptyNode;ee&&(Q.height="auto"),!1!==A.matchInputWidth&&(g.inputValue||ee)&&a.input&&(Q.width=a.input.input.offsetWidth),Z=D?la(D,v.createElement("span",{className:"".concat(Y,"-picker-arrow")},D),(function(){var e;return{className:w()((e={},o(e,D.props.className,D.props.className),o(e,"".concat(Y,"-picker-arrow"),!0),e))}})):v.createElement(Ai,{className:G});var te,ne=C||v.createElement("span",{style:E,className:q},v.createElement("span",{className:"".concat(Y,"-picker-label")},a.getLabel()),v.createElement(am,Object(r.a)({},$,{tabIndex:-1,ref:a.saveInput,prefixCls:W,placeholder:B&&B.length>0?void 0:S,className:"".concat(Y,"-input ").concat(U),value:g.inputValue,disabled:P,readOnly:!A,autoComplete:$.autoComplete||"off",onClick:A?a.handleInputClick:void 0,onBlur:A?a.handleInputBlur:void 0,onKeyDown:a.handleKeyDown,onChange:A?a.handleInputChange:void 0})),K,Z);te=I||(V?v.createElement(qc,null):v.createElement(Ks,null));var re=v.createElement("span",{className:"".concat(Y,"-menu-item-loading-icon")},v.createElement(Sf,{spin:!0})),oe=m.getPopupContainer||n,ie=_(m,["inputIcon","expandIcon","loadingIcon","bordered","className"]),ae=w()(N,(o(h={},"".concat(Y,"-menu-").concat(l),"rtl"===l),o(h,"".concat(Y,"-menu-empty"),1===X.length&&"ANT_CASCADER_NOT_FOUND"===X[0].value),h)),se=i();return v.createElement(Cf,Object(r.a)({},ie,{prefixCls:Y,getPopupContainer:oe,options:X,value:B,popupVisible:g.popupVisible,onPopupVisibleChange:a.handlePopupVisibleChange,onChange:a.handleChange,dropdownMenuColumnStyle:Q,expandIcon:te,loadingIcon:re,popupClassName:ae,popupPlacement:a.getPopupPlacement(l),dropdownRender:R,transitionName:ea(se,"slide-up",m.transitionName)}),ne)}))},a.state={value:e.value||e.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:e.popupVisible,flattenOptions:e.showSearch?hm(e.options,e):void 0,prevProps:e},a}return s(n,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var e=this.props,t=e.options,n=e.displayRender,r=void 0===n?pm:n,o=dm(this.props),i=this.state.value,a=Array.isArray(i[0])?i[0]:i,s=gf()(t,(function(e,t){return e[o.value]===a[t]}),{childrenKeyName:o.children});return r(s.length?s.map((function(e){return e[o.label]})):i,s)}},{key:"generateFilteredOptions",value:function(e,t){var n,r=this,i=this.props,a=i.showSearch,s=i.notFoundContent,l=dm(this.props),c=a.filter,u=void 0===c?lm:c,d=a.render,h=void 0===d?cm:d,p=a.sort,f=void 0===p?um:p,m=a.limit,g=void 0===m?50:m,v=this.state,y=v.flattenOptions,b=void 0===y?[]:y,w=v.inputValue;if(g>0){n=[];var C=0;b.some((function(e){return u(r.state.inputValue,e,l)&&(n.push(e),C+=1),C>=g}))}else aa("number"!=typeof g,"Cascader","'limit' of showSearch should be positive number or false."),n=b.filter((function(e){return u(r.state.inputValue,e,l)}));if((n=n.sort((function(e,t){return f(e,t,w,l)}))).length>0){var _=l.value===l.label?"__KEEP_FILTERED_OPTION_VALUE":l.value;return n.map((function(t){var n;return o(n={__IS_FILTERED_OPTION:!0,path:t},_,t.map((function(e){return e[l.value]}))),o(n,l.label,h(w,t,e,l)),o(n,"disabled",t.some((function(e){return!!e.disabled}))),o(n,"isEmptyNode",!0),n}))}return[fm(t,l,s)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ltr",t=this.props.popupPlacement;return void 0!==t?t:"rtl"===e?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var e=this;return v.createElement(se,null,(function(t){return v.createElement(J,null,(function(n){return e.renderCascader(t,n)}))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"value"in e&&(r.value=e.value||[]),"popupVisible"in e&&(r.popupVisible=e.popupVisible),e.showSearch&&n.options!==e.options&&(r.flattenOptions=hm(e.options,e)),r}}]),n}(v.Component);mm.defaultProps={options:[],disabled:!1,allowClear:!0,bordered:!0};var gm=mm,vm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ym=v.createContext(null),bm=function(e,t){var n=e.defaultValue,i=e.children,a=e.options,s=void 0===a?[]:a,l=e.prefixCls,c=e.className,u=e.style,d=e.onChange,h=vm(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),p=v.useContext(ae),f=p.getPrefixCls,m=p.direction,g=Ge(v.useState(h.value||n||[]),2),y=g[0],b=g[1],C=Ge(v.useState([]),2),x=C[0],S=C[1];v.useEffect((function(){"value"in h&&b(h.value||[])}),[h.value]);var k=function(){return s.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))},P=f("checkbox",l),T="".concat(P,"-group"),E=_(h,["value","disabled"]);s&&s.length>0&&(i=k().map((function(e){return v.createElement(km,{prefixCls:P,key:e.value.toString(),disabled:"disabled"in e?e.disabled:h.disabled,value:e.value,checked:-1!==y.indexOf(e.value),onChange:e.onChange,className:"".concat(T,"-item"),style:e.style},e.label)})));var O={toggleOption:function(e){var t=y.indexOf(e.value),n=de(y);-1===t?n.push(e.value):n.splice(t,1),"value"in h||b(n);var r=k();null==d||d(n.filter((function(e){return-1!==x.indexOf(e)})).sort((function(e,t){return r.findIndex((function(t){return t.value===e}))-r.findIndex((function(e){return e.value===t}))})))},value:y,disabled:h.disabled,name:h.name,registerValue:function(e){S((function(t){return[].concat(de(t),[e])}))},cancelValue:function(e){S((function(t){return t.filter((function(t){return t!==e}))}))}},M=w()(T,o({},"".concat(T,"-rtl"),"rtl"===m),c);return v.createElement("div",Object(r.a)({className:M,style:u},E,{ref:t}),v.createElement(ym.Provider,{value:O},i))},wm=v.forwardRef(bm),Cm=v.memo(wm),_m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},xm=function(e,t){var n,i=e.prefixCls,a=e.className,s=e.children,l=e.indeterminate,c=void 0!==l&&l,u=e.style,d=e.onMouseEnter,h=e.onMouseLeave,p=e.skipGroup,f=void 0!==p&&p,m=_m(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup"]),g=v.useContext(ae),y=g.getPrefixCls,b=g.direction,C=v.useContext(ym),_=v.useRef(m.value);v.useEffect((function(){null==C||C.registerValue(m.value),aa("checked"in m||!!C||!("value"in m),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}),[]),v.useEffect((function(){if(!f)return m.value!==_.current&&(null==C||C.cancelValue(_.current),null==C||C.registerValue(m.value)),function(){return null==C?void 0:C.cancelValue(m.value)}}),[m.value]);var x=y("checkbox",i),S=Object(r.a)({},m);C&&!f&&(S.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),C.toggleOption&&C.toggleOption({label:s,value:m.value})},S.name=C.name,S.checked=-1!==C.value.indexOf(m.value),S.disabled=m.disabled||C.disabled);var k=w()((o(n={},"".concat(x,"-wrapper"),!0),o(n,"".concat(x,"-rtl"),"rtl"===b),o(n,"".concat(x,"-wrapper-checked"),S.checked),o(n,"".concat(x,"-wrapper-disabled"),S.disabled),n),a),P=w()(o({},"".concat(x,"-indeterminate"),c));return v.createElement("label",{className:k,style:u,onMouseEnter:d,onMouseLeave:h},v.createElement(th,Object(r.a)({},S,{prefixCls:x,className:P,ref:t})),void 0!==s&&v.createElement("span",null,s))},Sm=v.forwardRef(xm);Sm.displayName="Checkbox";var km=Sm,Pm=km;Pm.Group=Cm,Pm.__ANT_CHECKBOX=!0;var Tm=Pm,Em=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Om=function(e){var t=e.actions,n=e.author,i=e.avatar,a=e.children,s=e.className,l=e.content,c=e.prefixCls,u=e.datetime,d=Em(e,["actions","author","avatar","children","className","content","prefixCls","datetime"]),h=v.useContext(ae),p=h.getPrefixCls,f=h.direction,m=p("comment",c),g=i?v.createElement("div",{className:"".concat(m,"-avatar")},"string"==typeof i?v.createElement("img",{src:i,alt:"comment-avatar"}):i):null,y=t&&t.length?v.createElement("ul",{className:"".concat(m,"-actions")},t.map((function(e,t){return v.createElement("li",{key:"action-".concat(t)},e)}))):null,b=(n||u)&&v.createElement("div",{className:"".concat(m,"-content-author")},n&&v.createElement("span",{className:"".concat(m,"-content-author-name")},n),u&&v.createElement("span",{className:"".concat(m,"-content-author-time")},u)),C=v.createElement("div",{className:"".concat(m,"-content")},b,v.createElement("div",{className:"".concat(m,"-content-detail")},l),y),_=w()(m,o({},"".concat(m,"-rtl"),"rtl"===f),s);return v.createElement("div",Object(r.a)({},d,{className:_}),v.createElement("div",{className:"".concat(m,"-inner")},g,C),a?function(e,t){return v.createElement("div",{className:w()("".concat(e,"-nested"))},t)}(m,a):null)},Mm="RC_FORM_INTERNAL_HOOKS",Am=function(){N(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Dm=v.createContext({getFieldValue:Am,getFieldsValue:Am,getFieldError:Am,getFieldsError:Am,isFieldsTouched:Am,isFieldTouched:Am,isFieldValidating:Am,isFieldsValidating:Am,resetFields:Am,setFields:Am,setFieldsValue:Am,validateFields:Am,submit:Am,getInternalHooks:function(){return Am(),{dispatch:Am,initEntityValue:Am,registerField:Am,useSubscribe:Am,setInitialValues:Am,setCallbacks:Am,getFields:Am,setValidateMessages:Am,setPreserve:Am}}});function Im(e){return null==e?[]:Array.isArray(e)?e:[e]}var Lm=n(638);function Nm(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rm(e,t,n,r){if(!t.length)return n;var i,a=Jt(t),s=a[0],l=a.slice(1);return i=e||"number"!=typeof s?Array.isArray(e)?de(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jm(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e):[],r&&void 0===n&&1===l.length?delete i[s][l[0]]:i[s]=Rm(i[s],l,n,r),i}function zm(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Nm(e,t.slice(0,-1))?e:Rm(e,t,n,r)}function Fm(e){return Im(e)}function Bm(e,t){return Nm(e,t)}function Hm(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=zm(e,t,n,r);return o}function Vm(e,t){var n={};return t.forEach((function(t){var r=Bm(e,t);n=Hm(n,t,r)})),n}function Ym(e,t){return e&&e.some((function(e){return Gm(e,t)}))}function Wm(e){return"object"===g(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function Um(e,t){var n=Array.isArray(e)?de(e):S({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=Wm(r)&&Wm(o);n[e]=i?Um(r,o||{}):o})),n):n}function Km(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return Um(e,t)}),e)}function Gm(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function qm(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&e in t.target?t.target[e]:t}function $m(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(de(e.slice(0,n)),[o],de(e.slice(n,t)),de(e.slice(t+1,r))):i<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,n+1)),[o],de(e.slice(n+1,r))):e}var Xm="'${name}' is not a valid ${type}",Jm={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Xm,method:Xm,array:Xm,object:Xm,number:Xm,date:Xm,boolean:Xm,integer:Xm,float:Xm,regexp:Xm,email:Xm,url:Xm,hex:Xm},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Zm=Lm.a;function Qm(e,t,n,r){var o=S(S({},n),{},{name:t,enum:(n.enum||[]).join(", ")}),i=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,S(S({},o),t))}};return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(o){var a=t[o];"string"==typeof a?n[o]=i(a,r):a&&"object"===g(a)?(n[o]={},e(a,n[o])):n[o]=a})),n}(Km({},Jm,e))}function eg(e,t,n,r,o){return tg.apply(this,arguments)}function tg(){return(tg=yo(go.a.mark((function e(t,n,r,i,a){var s,l,c,u,d,h;return go.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=S({},r),l=null,s&&"array"===s.type&&s.defaultField&&(l=s.defaultField,delete s.defaultField),c=new Zm(o({},t,[s])),u=Qm(i.validateMessages,t,s,a),c.messages(u),d=[],e.prev=7,e.next=10,Promise.resolve(c.validate(o({},t,n),S({},i)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?d=e.t0.errors.map((function(e,t){var n=e.message;return v.isValidElement(n)?v.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),d=[u.default()]);case 15:if(d.length||!l){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return eg("".concat(t,".").concat(n),e,l,i,a)})));case 18:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat(de(e),de(t))}),[]));case 20:return e.abrupt("return",d);case 21:case"end":return e.stop()}}),e,null,[[7,12]])})))).apply(this,arguments)}function ng(e,t,n,r,o,i){var a,s=e.join("."),l=n.map((function(e){var t=e.validator;return t?S(S({},e),{},{validator:function(e,n,r){var o=!1,i=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){N(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,N(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}}):e}));if(!0===o)a=new Promise(function(){var e=yo(go.a.mark((function e(n,o){var a,c;return go.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=11;break}return e.next=4,eg(s,t,l[a],r,i);case 4:if(!(c=e.sent).length){e.next=8;break}return o(c),e.abrupt("return");case 8:a+=1,e.next=1;break;case 11:n([]);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return eg(s,t,e,r,i)}));a=(o?function(e){return og.apply(this,arguments)}(c):function(e){return rg.apply(this,arguments)}(c)).then((function(e){return e.length?Promise.reject(e):[]}))}return a.catch((function(e){return e})),a}function rg(){return(rg=yo(go.a.mark((function e(t){return go.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,de(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function og(){return(og=yo(go.a.mark((function e(t){var n;return go.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.length&&e(r),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ig(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ag=function(e){c(n,e);var t=m(n);function n(e){var r;(i(this,n),(r=t.call(this,e)).state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],r.cancelRegister=function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Fm(o)),r.cancelRegisterFunc=null},r.getNamePath=function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(de(void 0===n?[]:n),de(t)):[]},r.getRules=function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))},r.refresh=function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))},r.onStoreChange=function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),h=r.getValue(c),p=t&&Ym(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==h&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=[]),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],l&&l(),void r.refresh();break;case"setField":if(p){var f=n.data;return"touched"in f&&(r.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(r.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(r.errors=f.errors||[]),r.dirty=!0,void r.reRender()}if(i&&!u.length&&ig(i,e,c,d,h,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Fm).some((function(e){return Ym(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!s.length||u.length||i)&&ig(i,e,c,d,h,n))return void r.reRender()}!0===i&&r.reRender()},r.validateRules=function(e){var t=r.getNamePath(),n=r.getValue(),o=Promise.resolve().then((function(){if(!r.mounted)return[];var i=r.props,a=i.validateFirst,s=void 0!==a&&a,l=i.messageVariables,c=(e||{}).triggerName,u=r.getRules();c&&(u=u.filter((function(e){var t=e.validateTrigger;return!t||Im(t).includes(c)})));var d=ng(t,n,u,e,s,l);return d.catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.validatePromise===o&&(r.validatePromise=null,r.errors=e,r.reRender())})),d}));return r.validatePromise=o,r.dirty=!0,r.errors=[],r.reRender(),o},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return r.dirty},r.getErrors=function(){return r.errors},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,name:r.getNamePath()}},r.getOnlyChild=function(e){if("function"==typeof e){var t=r.getMeta();return S(S({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=O(e);return 1===n.length&&v.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Bm(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,h=r.getNamePath(),p=u.getInternalHooks,f=u.getFieldsValue,m=p(Mm),g=m.dispatch,v=r.getValue(),y=c||function(e){return o({},l,e)},b=e[n],w=S(S({},e),y(v));w[n]=function(){var e;r.touched=!0,r.dirty=!0;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):qm.apply(void 0,[l].concat(n)),s&&(e=s(e,v,f(!0))),g({type:"updateValue",namePath:h,value:e}),b&&b.apply(void 0,n)};var C=Im(d||[]);return C.forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:h,triggerName:e})}})),w},e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Mm).initEntityValue)(Object(p.a)(r));return r}return s(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Mm).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:v.isValidElement(o)?e=v.cloneElement(o,this.getControlled(o.props)):(N(!o,"`children` of Field is not validate ReactElement."),e=o),v.createElement(v.Fragment,{key:t},e)}}]),n}(v.Component);ag.contextType=Dm,ag.defaultProps={trigger:"onChange",valuePropName:"value"};var sg=function(e){var t=e.name,n=$e(e,["name"]),o=v.useContext(Dm),i=void 0!==t?Fm(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),v.createElement(ag,Object(r.a)({key:a,name:i},n,{fieldContext:o}))},lg=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=v.useContext(Dm),s=v.useRef({keys:[],id:0}).current;if("function"!=typeof r)return N(!1,"Form.List only accepts function as children."),null;var l=Fm(a.prefixName)||[],c=[].concat(de(l),de(Fm(t)));return v.createElement(Dm.Provider,{value:S(S({},a),{},{prefixName:c})},v.createElement(sg,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,l=a.getFieldValue,u=function(){return l(c||[])||[]},d={add:function(e,t){var n=u();t>=0&&t<=n.length?(s.keys=[].concat(de(s.keys.slice(0,t)),[s.id],de(s.keys.slice(t))),i([].concat(de(n.slice(0,t)),[e],de(n.slice(t))))):(s.keys=[].concat(de(s.keys),[s.id]),i([].concat(de(n),[e]))),s.id+=1},remove:function(e){var t=u(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=u();e<0||e>=n.length||t<0||t>=n.length||(s.keys=$m(s.keys,e,t),i($m(n,e,t)))}}},h=o||[];return Array.isArray(h)||(h=[]),r(h.map((function(e,t){var n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}})),d,t)})))};var cg="__@field_split__";function ug(e){return e.map((function(e){return"".concat(g(e),":").concat(e)})).join(cg)}var dg=function(){function e(){i(this,e),this.kvs=new Map}return s(e,[{key:"set",value:function(e,t){this.kvs.set(ug(e),t)}},{key:"get",value:function(e){return this.kvs.get(ug(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ug(e))}},{key:"map",value:function(e){return de(this.kvs.entries()).map((function(t){var n=Ge(t,2),r=n[0],o=n[1],i=r.split(cg);return e({key:i.map((function(e){var t=Ge(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),hg=function e(t){var n=this;i(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===Mm?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve}):(N(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=Km({},e,n.store))},this.getInitialValue=function(e){return Bm(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new dg;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Fm(e);return t.get(n)||{INVALIDATE_NAME_PATH:Fm(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(n){var r,i="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&o.push(i)}else o.push(i)})),Vm(n.store,o.map(Fm))},this.getFieldValue=function(e){n.warningUnhooked();var t=Fm(e);return Bm(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors()}:{name:Fm(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=Fm(e);return n.getFieldsError([t])[0].errors},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Fm),s=!1):(o=null,s=i):(o=i.map(Fm),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every(c):l.some(c);var u=new dg;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(de(t),[e])}))}))}));var d=function(e){return e.some(c)},h=u.map((function(e){return e.value}));return s?h.every(d):h.some(d)},this.isFieldTouched=function(e){return n.warningUnhooked(),n.isFieldsTouched([e])},this.isFieldsValidating=function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Fm);return t.some((function(e){var t=e.getNamePath();return Ym(r,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return n.warningUnhooked(),n.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new dg,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o,i=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))N(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)N(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.skipExist&&void 0!==a||(n.store=Hm(n.store,o,de(i)[0].value))}}}}))};e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,de(de(r).map((function(e){return e.entity}))))}))):o=r,i(o)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=Km({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(Fm);r.forEach((function(e){var t=n.getInitialValue(e);n.store=Hm(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,o=(e.errors,$e(e,["name","errors"])),i=Fm(r);"value"in o&&(n.store=Hm(n.store,i,o.value)),n.notifyObservers(t,[i],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=S(S({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Bm(n.store,r)&&(n.store=Hm(n.store,r,t))}},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e}));var i=void 0!==r?r:n.preserve;if(!1===i&&(!t||o.length>1)){var a=e.getNamePath(),s=t?void 0:Bm(n.initialValues,a);a.length&&n.getFieldValue(a)!==s&&n.fieldEntities.every((function(e){return!Gm(e.getNamePath(),a)}))&&(n.store=Hm(n.store,a,s,!0))}}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=S(S({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=Fm(e),o=n.store;n.store=Hm(n.store,r,t),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"});var i=n.getDependencyChildrenFields(r);i.length&&n.validateFields(i),n.notifyObservers(o,i,{type:"dependenciesUpdate",relatedFields:[r].concat(de(i))});var a=n.callbacks.onValuesChange;a&&a(Vm(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(de(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=Km(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new dg;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Fm(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new dg;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return Ym(e,n)})),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,o=r?e.map(Fm):[],i=[];n.getFieldEntities(!0).forEach((function(a){if(r||o.push(a.getNamePath()),(null==t?void 0:t.recursive)&&r){var s=a.getNamePath();s.every((function(t,n){return e[n]===t||void 0===e[n]}))&&o.push(s)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||Ym(o,l)){var c=a.validateRules(S({validateMessages:S(S({},Jm),n.validateMessages)},t));i.push(c.then((function(){return{name:l,errors:[]}})).catch((function(e){return Promise.reject({name:l,errors:e})})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(i);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var s=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return s.catch((function(e){return e})),s},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};var pg=function(e){var t=v.useRef(),n=Ge(v.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new hg((function(){n({})}));t.current=r.getForm()}return[t.current]},fg=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mg=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=v.useContext(fg),s=v.useRef({});return v.createElement(fg.Provider,{value:S(S({},a),{},{validateMessages:S(S({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=S(S({},s.current),{},o({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=S({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},i)},gg=fg,vg=function(e,t){var n=e.name,o=e.initialValues,i=e.fields,a=e.form,s=e.preserve,l=e.children,c=e.component,u=void 0===c?"form":c,d=e.validateMessages,h=e.validateTrigger,p=void 0===h?"onChange":h,f=e.onValuesChange,m=e.onFieldsChange,y=e.onFinish,b=e.onFinishFailed,w=$e(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),C=v.useContext(gg),_=Ge(pg(a),1)[0],x=_.getInternalHooks(Mm),k=x.useSubscribe,P=x.setInitialValues,T=x.setCallbacks,E=x.setValidateMessages,O=x.setPreserve;v.useImperativeHandle(t,(function(){return _})),v.useEffect((function(){return C.registerForm(n,_),function(){C.unregisterForm(n)}}),[C,_,n]),E(S(S({},C.validateMessages),d)),T({onValuesChange:f,onFieldsChange:function(e){if(C.triggerFormChange(n,e),m){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];m.apply(void 0,[e].concat(r))}},onFinish:function(e){C.triggerFormFinish(n,e),y&&y(e)},onFinishFailed:b}),O(s);var M=v.useRef(null);P(o,!M.current),M.current||(M.current=!0);var A=l,D="function"==typeof l;D&&(A=l(_.getFieldsValue(!0),_));k(!D);var I=v.useRef();v.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==g(e)||"object"!==g(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(de(n),de(r)));return de(o).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(I.current||[],i||[])||_.setFields(i||[]),I.current=i}),[i,_]);var L=v.useMemo((function(){return S(S({},_),{},{validateTrigger:p})}),[_,p]),N=v.createElement(Dm.Provider,{value:L},A);return!1===u?N:v.createElement(u,Object(r.a)({},w,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),_.submit()},onReset:function(e){var t;e.preventDefault(),_.resetFields(),null===(t=w.onReset)||void 0===t||t.call(w,e)}}),N)},yg=v.forwardRef(vg);yg.FormProvider=mg,yg.Field=sg,yg.List=lg,yg.useForm=pg;var bg=yg,wg=Object(r.a)({},q.Modal);function Cg(e){wg=e?Object(r.a)(Object(r.a)({},wg),e):Object(r.a)({},q.Modal)}function _g(){return wg}var xg=function(e){c(n,e);var t=m(n);function n(e){var r;return i(this,n),r=t.call(this,e),Cg(e.locale&&e.locale.Modal),aa("internalMark"===e._ANT_MARK__,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),r}return s(n,[{key:"componentDidMount",value:function(){Cg(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&Cg(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){Cg()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return v.createElement(X.Provider,{value:Object(r.a)(Object(r.a)({},t),{exist:!0})},n)}}]),n}(v.Component);xg.defaultProps={locale:{}};var Sg=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return s(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){this.props.duration===e.duration&&this.props.updateMark===e.updateMark||this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,a=t.closable,s=t.closeIcon,l=t.style,c=t.onClick,u=t.children,d=t.holder,h="".concat(n,"-notice"),p=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),f=v.createElement("div",Object(r.a)({className:w()(h,i,o({},"".concat(h,"-closable"),a)),style:l,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:c},p),v.createElement("div",{className:"".concat(h,"-content")},u),a?v.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(h,"-close")},s||v.createElement("span",{className:"".concat(h,"-close-x")})):null);return d?P.a.createPortal(f,d):f}}]),n}(v.Component);function kg(e){var t=v.useRef({}),n=Ge(v.useState([]),2),o=n[0],i=n[1];return[function(n){var o=!0;e.add(n,(function(e,n){var a=n.key;if(e&&(!t.current[a]||o)){var s=v.createElement(Sg,Object(r.a)({},n,{holder:e}));t.current[a]=s,i((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat(de(e),[s]);var r=de(e);return r[t]=s,r}))}o=!1}))},v.createElement(v.Fragment,null,o)]}Sg.defaultProps={onClose:function(){},duration:1.5};var Pg=0,Tg=Date.now();function Eg(){var e=Pg;return Pg+=1,"rcNotification_".concat(Tg,"_").concat(e)}var Og=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key||Eg(),o=S(S({},t),{},{key:r}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),s=t.concat();return-1!==a?s.splice(a,1,{notice:o,holderCallback:n}):(i&&t.length>=i&&(o.key=s[0].notice.key,o.updateMark=Eg(),o.userPassKey=r,s.shift()),s.push({notice:o,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return s(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,o=n.prefixCls,i=n.className,a=n.closeIcon,s=n.style,l=[];return t.forEach((function(n,r){var i=n.notice,s=n.holderCallback,c=r===t.length-1?i.updateMark:void 0,u=i.key,d=i.userPassKey,h=S(S(S({prefixCls:o,closeIcon:a},i),i.props),{},{key:u,noticeKey:d||u,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=i.onClose)||void 0===n||n.call(i)},onClick:i.onClick,children:i.content});l.push(u),e.noticePropsMap[u]={props:h,holderCallback:s}})),v.createElement("div",{className:w()(o,i),style:s},v.createElement(rr,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,i=t.className,a=t.style,s=e.noticePropsMap[n],l=s.props,c=s.holderCallback;return c?v.createElement("div",{key:n,className:w()(i,"".concat(o,"-hook-holder")),style:S({},a),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),c(t,l)):e.hookRefs.delete(n))}}):v.createElement(Sg,Object(r.a)({},l,{className:w()(i,null==l?void 0:l.className),style:S(S({},a),null==l?void 0:l.style)}))})))}}]),n}(v.Component);Og.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Og.newInstance=function(e,t){var n=e||{},o=n.getContainer,i=$e(n,["getContainer"]),a=document.createElement("div");o?o().appendChild(a):document.body.appendChild(a);var s=!1;P.a.render(v.createElement(Og,Object(r.a)({},i,{ref:function(e){s||(s=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){P.a.unmountComponentAtNode(a),a.parentNode&&a.parentNode.removeChild(a)},useNotification:function(){return kg(e)}}))}})),a)};var Mg,Ag=Og;var Dg,Ig,Lg,Ng=3,jg=1,Rg="",zg="move-up",Fg=!1,Bg=!1;function Hg(e,t){var n=e.prefixCls,r=fv(),o=r.getPrefixCls,i=r.getRootPrefixCls,a=o("message",n||Rg),s=i(e.rootPrefixCls,a);if(Mg)t({prefixCls:a,rootPrefixCls:s,instance:Mg});else{var l={prefixCls:a,transitionName:Fg?zg:"".concat(s,"-").concat(zg),style:{top:Dg},getContainer:Ig,maxCount:Lg};Ag.newInstance(l,(function(e){Mg?t({prefixCls:a,rootPrefixCls:s,instance:Mg}):(Mg=e,t({prefixCls:a,rootPrefixCls:s,instance:e}))}))}}var Vg={info:Na,success:Oa,error:Yi,warning:Da,loading:Li};function Yg(e,t){var n,r=void 0!==e.duration?e.duration:Ng,i=Vg[e.type],a=w()("".concat(t,"-custom-content"),(o(n={},"".concat(t,"-").concat(e.type),e.type),o(n,"".concat(t,"-rtl"),!0===Bg),n));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:v.createElement("div",{className:a},e.icon||i&&v.createElement(i,null),v.createElement("span",null,e.content)),onClose:e.onClose,onClick:e.onClick}}var Wg,Ug,Kg={open:function(e){var t=e.key||jg++,n=new Promise((function(n){var o=function(){return"function"==typeof e.onClose&&e.onClose(),n(!0)};Hg(e,(function(n){var i=n.prefixCls;n.instance.notice(Yg(Object(r.a)(Object(r.a)({},e),{key:t,onClose:o}),i))}))})),o=function(){Mg&&Mg.removeNotice(t)};return o.then=function(e,t){return n.then(e,t)},o.promise=n,o},config:function(e){void 0!==e.top&&(Dg=e.top,Mg=null),void 0!==e.duration&&(Ng=e.duration),void 0!==e.prefixCls&&(Rg=e.prefixCls),void 0!==e.getContainer&&(Ig=e.getContainer),void 0!==e.transitionName&&(zg=e.transitionName,Mg=null,Fg=!0),void 0!==e.maxCount&&(Lg=e.maxCount,Mg=null),void 0!==e.rtl&&(Bg=e.rtl)},destroy:function(e){if(Mg)if(e){(0,Mg.removeNotice)(e)}else{var t=Mg.destroy;t(),Mg=null}}};function Gg(e,t){e[t]=function(n,o,i){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(Object(r.a)(Object(r.a)({},n),{type:t})):("function"==typeof o&&(i=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:i}))}}["success","info","warning","error","loading"].forEach((function(e){return Gg(Kg,e)})),Kg.warn=Kg.warning,Kg.useMessage=(Wg=Hg,Ug=Yg,function(){var e,t=null,n=Ge(kg({add:function(e,n){null==t||t.component.add(e,n)}}),2),o=n[0],i=n[1],a=v.useRef({});return a.current.open=function(n){var i=n.prefixCls,a=e("message",i),s=e(),l=n.key||jg++,c=new Promise((function(e){var i=function(){return"function"==typeof n.onClose&&n.onClose(),e(!0)};Wg(Object(r.a)(Object(r.a)({},n),{prefixCls:a,rootPrefixCls:s}),(function(e){var a=e.prefixCls,s=e.instance;t=s,o(Ug(Object(r.a)(Object(r.a)({},n),{key:l,onClose:i}),a))}))})),u=function(){t&&t.removeNotice(l)};return u.then=function(e,t){return c.then(e,t)},u.promise=c,u},["success","info","warning","error","loading"].forEach((function(e){return Gg(a.current,e)})),[a.current,v.createElement(se,{key:"holder"},(function(t){return e=t.getPrefixCls,i}))]});var qg=Kg;var $g,Xg,Jg={},Zg=4.5,Qg=24,ev=24,tv="",nv="topRight",rv=!1;function ov(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qg,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ev;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function iv(e,t){var n=e.placement,r=void 0===n?nv:n,i=e.top,a=e.bottom,s=e.getContainer,l=void 0===s?$g:s,c=e.closeIcon,u=void 0===c?Xg:c,d=e.prefixCls,h=(0,fv().getPrefixCls)("notification",d||tv),p="".concat(h,"-").concat(r),f=Jg[p];if(f)Promise.resolve(f).then((function(e){t({prefixCls:"".concat(h,"-notice"),instance:e})}));else{var m=v.createElement("span",{className:"".concat(h,"-close-x")},u||v.createElement(Bi,{className:"".concat(h,"-close-icon")})),g=w()("".concat(h,"-").concat(r),o({},"".concat(h,"-rtl"),!0===rv));Jg[p]=new Promise((function(e){Ag.newInstance({prefixCls:h,className:g,style:ov(r,i,a),getContainer:l,closeIcon:m},(function(n){e(n),t({prefixCls:"".concat(h,"-notice"),instance:n})}))}))}}var av={success:va,info:xa,error:Pa,warning:wa};function sv(e,t){var n=e.duration,r=e.icon,i=e.type,a=e.description,s=e.message,l=e.btn,c=e.onClose,u=e.onClick,d=e.key,h=e.style,p=e.className,f=void 0===n?Zg:n,m=null;r?m=v.createElement("span",{className:"".concat(t,"-icon")},e.icon):i&&(m=v.createElement(av[i]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(i)}));var g=!a&&m?v.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:v.createElement("div",{className:m?"".concat(t,"-with-icon"):"",role:"alert"},m,v.createElement("div",{className:"".concat(t,"-message")},g,s),v.createElement("div",{className:"".concat(t,"-description")},a),l?v.createElement("span",{className:"".concat(t,"-btn")},l):null),duration:f,closable:!0,onClose:c,onClick:u,key:d,style:h||{},className:w()(p,o({},"".concat(t,"-").concat(i),!!i))}}var lv={open:function(e){iv(e,(function(t){var n=t.prefixCls;t.instance.notice(sv(e,n))}))},close:function(e){Object.keys(Jg).forEach((function(t){return Promise.resolve(Jg[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,s=e.prefixCls;void 0!==s&&(tv=s),void 0!==t&&(Zg=t),void 0!==n?nv=n:e.rtl&&(nv="topLeft"),void 0!==r&&(ev=r),void 0!==o&&(Qg=o),void 0!==i&&($g=i),void 0!==a&&(Xg=a),void 0!==e.rtl&&(rv=e.rtl)},destroy:function(){Object.keys(Jg).forEach((function(e){Promise.resolve(Jg[e]).then((function(e){e.destroy()})),delete Jg[e]}))}};["success","info","warning","error"].forEach((function(e){lv[e]=function(t){return lv.open(Object(r.a)(Object(r.a)({},t),{type:e}))}})),lv.warn=lv.warning,lv.useNotification=function(e,t){return function(){var n,o=null,i=Ge(kg({add:function(e,t){null==o||o.component.add(e,t)}}),2),a=i[0],s=i[1];var l=v.useRef({});return l.current.open=function(i){var s=i.prefixCls,l=n("notification",s);e(Object(r.a)(Object(r.a)({},i),{prefixCls:l}),(function(e){var n=e.prefixCls,r=e.instance;o=r,a(t(i,n))}))},["success","info","warning","error"].forEach((function(e){l.current[e]=function(t){return l.current.open(Object(r.a)(Object(r.a)({},t),{type:e}))}})),[l.current,v.createElement(se,{key:"holder"},(function(e){return n=e.getPrefixCls,s}))]}}(iv,sv);var cv,uv=lv,dv=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"],hv=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"];function pv(){return cv||"ant"}var fv=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(pv(),"-").concat(e):pv())},getRootPrefixCls:function(e,t){return e||(cv||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):pv()))}}},mv=function(e){var t=e.children,n=e.csp,o=e.autoInsertSpaceInButton,i=e.form,a=e.locale,s=e.componentSize,l=e.direction,c=e.space,u=e.virtual,d=e.dropdownMatchSelectWidth,h=e.legacyLocale,p=e.parentContext,f=e.iconPrefixCls,m=v.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var o=r||p.getPrefixCls("");return t?"".concat(o,"-").concat(t):o}),[p.getPrefixCls]),g=Object(r.a)(Object(r.a)({},p),{csp:n,autoInsertSpaceInButton:o,locale:a||h,direction:l,space:c,virtual:u,dropdownMatchSelectWidth:d,getPrefixCls:m});hv.forEach((function(t){var n=e[t];n&&(g[t]=n)}));var y=rt((function(){return g}),g,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),b=v.useMemo((function(){return{prefixCls:f,csp:n}}),[f]),w=t,C={};return a&&a.Form&&a.Form.defaultValidateMessages&&(C=a.Form.defaultValidateMessages),i&&i.validateMessages&&(C=Object(r.a)(Object(r.a)({},C),i.validateMessages)),Object.keys(C).length>0&&(w=v.createElement(mg,{validateMessages:C},t)),a&&(w=v.createElement(xg,{locale:a,_ANT_MARK__:"internalMark"},w)),f&&(w=v.createElement(Wo.Provider,{value:b},w)),s&&(w=v.createElement($i,{size:s},w)),v.createElement(ae.Provider,{value:y},w)},gv=function(e){return v.useEffect((function(){e.direction&&(qg.config({rtl:"rtl"===e.direction}),uv.config({rtl:"rtl"===e.direction}))}),[e.direction]),v.createElement(J,null,(function(t,n,o){return v.createElement(se,null,(function(t){return v.createElement(mv,Object(r.a)({parentContext:t,legacyLocale:o},e))}))}))};gv.ConfigContext=ae,gv.SizeContext=Xi,gv.config=function(e){void 0!==e.prefixCls&&(cv=e.prefixCls)};var vv=gv;var yv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},bv=function(e){var t,n=e.prefixCls,i=e.className,a=e.checked,s=e.onChange,l=e.onClick,c=yv(e,["prefixCls","className","checked","onChange","onClick"]),u=(0,v.useContext(ae).getPrefixCls)("tag",n),d=w()(u,(o(t={},"".concat(u,"-checkable"),!0),o(t,"".concat(u,"-checkable-checked"),a),t),i);return v.createElement("span",Object(r.a)({},c,{className:d,onClick:function(e){null==s||s(!a),null==l||l(e)}}))},wv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Cv=new RegExp("^(".concat(fs.join("|"),")(-inverse)?$")),_v=new RegExp("^(".concat(ps.join("|"),")$")),xv=function(e,t){var n,i=e.prefixCls,a=e.className,s=e.style,l=e.children,c=e.icon,u=e.color,d=e.onClose,h=e.closeIcon,p=e.closable,f=void 0!==p&&p,m=wv(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),g=v.useContext(ae),y=g.getPrefixCls,b=g.direction,C=Ge(v.useState(!0),2),x=C[0],S=C[1];v.useEffect((function(){"visible"in m&&S(m.visible)}),[m.visible]);var k=function(){return!!u&&(Cv.test(u)||_v.test(u))},P=Object(r.a)({backgroundColor:u&&!k()?u:void 0},s),T=k(),E=y("tag",i),O=w()(E,(o(n={},"".concat(E,"-").concat(u),T),o(n,"".concat(E,"-has-color"),u&&!T),o(n,"".concat(E,"-hidden"),!x),o(n,"".concat(E,"-rtl"),"rtl"===b),n),a),M=function(e){e.stopPropagation(),null==d||d(e),e.defaultPrevented||"visible"in m||S(!1)},A="onClick"in m||l&&"a"===l.type,D=_(m,["visible"]),I=c||null,L=I?v.createElement(v.Fragment,null,I,v.createElement("span",null,l)):l,N=v.createElement("span",Object(r.a)({},D,{ref:t,className:O,style:P}),L,f?h?v.createElement("span",{className:"".concat(E,"-close-icon"),onClick:M},h):v.createElement(Bi,{className:"".concat(E,"-close-icon"),onClick:M}):null);return A?v.createElement(il,null,N):N},Sv=v.forwardRef(xv);Sv.displayName="Tag",Sv.CheckableTag=bv;var kv=Sv;var Pv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Tv=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Pv}))};Tv.displayName="CalendarOutlined";var Ev=v.forwardRef(Tv),Ov={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Mv=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ov}))};Mv.displayName="ClockCircleOutlined";var Av=v.forwardRef(Mv);function Dv(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function Iv(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}var Lv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Nv={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},jv=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Nv}))};jv.displayName="SwapRightOutlined";var Rv=v.forwardRef(jv),zv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Fv={button:function(e){return v.createElement(vl,Object(r.a)({size:"small",type:"primary"},e))},rangeItem:function(e){return v.createElement(kv,Object(r.a)({color:"blue"},e))}};function Bv(e){var t,n=e.format,o=e.picker,i=e.showHour,a=e.showMinute,s=e.showSecond,l=e.use12Hours,c=(t=n,t?Array.isArray(t)?t:[t]:[])[0],u=Object(r.a)({},e);return c&&"string"==typeof c&&(c.includes("s")||void 0!==s||(u.showSecond=!1),c.includes("m")||void 0!==a||(u.showMinute=!1),c.includes("H")||c.includes("h")||void 0!==i||(u.showHour=!1),(c.includes("a")||c.includes("A"))&&void 0===l&&(u.use12Hours=!0)),"time"===o?u:("function"==typeof c&&delete u.format,{showTime:u})}var Hv=function(e){var t=function(e){function t(t,n){var a=function(a){c(u,a);var l=m(u);function u(a){var s;return i(this,u),(s=l.call(this,a)).pickerRef=v.createRef(),s.focus=function(){s.pickerRef.current&&s.pickerRef.current.focus()},s.blur=function(){s.pickerRef.current&&s.pickerRef.current.blur()},s.getDefaultLocale=function(){var e=s.props.locale,t=Object(r.a)(Object(r.a)({},U),e);return t.lang=Object(r.a)(Object(r.a)({},t.lang),(e||{}).lang),t},s.renderPicker=function(n){var i=s.context,a=i.getPrefixCls,l=i.direction,c=i.getPopupContainer,u=s.props,d=u.prefixCls,h=u.getPopupContainer,p=u.className,f=u.size,m=u.bordered,g=void 0===m||m,y=u.placeholder,b=Lv(u,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),C=s.props,_=C.format,x=C.showTime,S=a("picker",d),k={showToday:!0},P={};t&&(P.picker=t);var T=t||s.props.picker;P=Object(r.a)(Object(r.a)(Object(r.a)({},P),x?Bv(Object(r.a)({format:_,picker:T},x)):{}),"time"===T?Bv(Object(r.a)(Object(r.a)({format:_},s.props),{picker:T})):{});var E=a();return v.createElement(Xi.Consumer,null,(function(t){var i,a=f||t;return v.createElement(Qd,Object(r.a)({ref:s.pickerRef,placeholder:Dv(T,n,y),suffixIcon:"time"===T?v.createElement(Av,null):v.createElement(Ev,null),clearIcon:v.createElement(Yi,null),allowClear:!0,transitionName:"".concat(E,"-slide-up")},k,b,P,{locale:n.lang,className:w()((i={},o(i,"".concat(S,"-").concat(a),a),o(i,"".concat(S,"-borderless"),!g),i),p),prefixCls:S,getPopupContainer:h||c,generateConfig:e,prevIcon:v.createElement("span",{className:"".concat(S,"-prev-icon")}),nextIcon:v.createElement("span",{className:"".concat(S,"-next-icon")}),superPrevIcon:v.createElement("span",{className:"".concat(S,"-super-prev-icon")}),superNextIcon:v.createElement("span",{className:"".concat(S,"-super-next-icon")}),components:Fv,direction:l}))}))},aa("quarter"!==t,n,"DatePicker.".concat(n," is legacy usage. Please use DatePicker[picker='").concat(t,"'] directly.")),s}return s(u,[{key:"render",value:function(){return v.createElement(J,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),u}(v.Component);return a.contextType=ae,n&&(a.displayName=n),a}return{DatePicker:t(),WeekPicker:t("week","WeekPicker"),MonthPicker:t("month","MonthPicker"),YearPicker:t("year","YearPicker"),TimePicker:t("time","TimePicker"),QuarterPicker:t("quarter","QuarterPicker")}}(e),n=t.DatePicker,a=t.WeekPicker,l=t.MonthPicker,u=t.YearPicker,d=t.TimePicker,h=t.QuarterPicker,p=function(e){var t=function(t){c(a,t);var n=m(a);function a(){var t;return i(this,a),(t=n.apply(this,arguments)).pickerRef=v.createRef(),t.focus=function(){t.pickerRef.current&&t.pickerRef.current.focus()},t.blur=function(){t.pickerRef.current&&t.pickerRef.current.blur()},t.getDefaultLocale=function(){var e=t.props.locale,n=Object(r.a)(Object(r.a)({},U),e);return n.lang=Object(r.a)(Object(r.a)({},n.lang),(e||{}).lang),n},t.renderPicker=function(n){var i=t.context,a=i.getPrefixCls,s=i.direction,l=i.getPopupContainer,c=t.props,u=c.prefixCls,d=c.getPopupContainer,h=c.className,p=c.size,f=c.bordered,m=void 0===f||f,g=c.placeholder,y=zv(c,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),b=t.props,C=b.format,_=b.showTime,x=b.picker,S=a("picker",u),k={};k=Object(r.a)(Object(r.a)(Object(r.a)({},k),_?Bv(Object(r.a)({format:C,picker:x},_)):{}),"time"===x?Bv(Object(r.a)(Object(r.a)({format:C},t.props),{picker:x})):{});var P=a();return v.createElement(Xi.Consumer,null,(function(i){var a,c=p||i;return v.createElement(Zd,Object(r.a)({separator:v.createElement("span",{"aria-label":"to",className:"".concat(S,"-separator")},v.createElement(Rv,null)),ref:t.pickerRef,placeholder:Iv(x,n,g),suffixIcon:"time"===x?v.createElement(Av,null):v.createElement(Ev,null),clearIcon:v.createElement(Yi,null),allowClear:!0,transitionName:"".concat(P,"-slide-up")},y,k,{className:w()((a={},o(a,"".concat(S,"-").concat(c),c),o(a,"".concat(S,"-borderless"),!m),a),h),locale:n.lang,prefixCls:S,getPopupContainer:d||l,generateConfig:e,prevIcon:v.createElement("span",{className:"".concat(S,"-prev-icon")}),nextIcon:v.createElement("span",{className:"".concat(S,"-next-icon")}),superPrevIcon:v.createElement("span",{className:"".concat(S,"-super-prev-icon")}),superNextIcon:v.createElement("span",{className:"".concat(S,"-super-next-icon")}),components:Fv,direction:s}))}))},t}return s(a,[{key:"render",value:function(){return v.createElement(J,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),a}(v.Component);return t.contextType=ae,t}(e),f=n;return f.WeekPicker=a,f.MonthPicker=l,f.YearPicker=u,f.RangePicker=p,f.TimePicker=d,f.QuarterPicker=h,f}(Su);function Vv(e){return null!=e}var Yv=function(e){var t,n=e.itemPrefixCls,r=e.component,i=e.span,a=e.className,s=e.style,l=e.labelStyle,c=e.contentStyle,u=e.bordered,d=e.label,h=e.content,p=e.colon,f=r;return u?v.createElement(f,{className:w()((t={},o(t,"".concat(n,"-item-label"),Vv(d)),o(t,"".concat(n,"-item-content"),Vv(h)),t),a),style:s,colSpan:i},Vv(d)&&v.createElement("span",{style:l},d),Vv(h)&&v.createElement("span",{style:c},h)):v.createElement(f,{className:w()("".concat(n,"-item"),a),style:s,colSpan:i},v.createElement("div",{className:"".concat(n,"-item-container")},d&&v.createElement("span",{className:w()("".concat(n,"-item-label"),o({},"".concat(n,"-item-no-colon"),!p)),style:l},d),h&&v.createElement("span",{className:w()("".concat(n,"-item-content")),style:c},h)))};function Wv(e,t,n){var o=t.colon,i=t.prefixCls,a=t.bordered,s=n.component,l=n.type,c=n.showLabel,u=n.showContent,d=n.labelStyle,h=n.contentStyle;return e.map((function(e,t){var n=e.props,p=n.label,f=n.children,m=n.prefixCls,g=void 0===m?i:m,y=n.className,b=n.style,w=n.labelStyle,C=n.contentStyle,_=n.span,x=void 0===_?1:_,S=e.key;return"string"==typeof s?v.createElement(Yv,{key:"".concat(l,"-").concat(S||t),className:y,style:b,labelStyle:Object(r.a)(Object(r.a)({},d),w),contentStyle:Object(r.a)(Object(r.a)({},h),C),span:x,colon:o,component:s,itemPrefixCls:g,bordered:a,label:c?p:null,content:u?f:null}):[v.createElement(Yv,{key:"label-".concat(S||t),className:y,style:Object(r.a)(Object(r.a)(Object(r.a)({},d),b),w),span:1,colon:o,component:s[0],itemPrefixCls:g,bordered:a,label:p}),v.createElement(Yv,{key:"content-".concat(S||t),className:y,style:Object(r.a)(Object(r.a)(Object(r.a)({},h),b),C),span:2*x-1,component:s[1],itemPrefixCls:g,bordered:a,content:f})]}))}var Uv=function(e){var t=v.useContext(Gv),n=e.prefixCls,o=e.vertical,i=e.row,a=e.index,s=e.bordered;return o?v.createElement(v.Fragment,null,v.createElement("tr",{key:"label-".concat(a),className:"".concat(n,"-row")},Wv(i,e,Object(r.a)({component:"th",type:"label",showLabel:!0},t))),v.createElement("tr",{key:"content-".concat(a),className:"".concat(n,"-row")},Wv(i,e,Object(r.a)({component:"td",type:"content",showContent:!0},t)))):v.createElement("tr",{key:a,className:"".concat(n,"-row")},Wv(i,e,Object(r.a)({component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},Kv=function(e){return e.children},Gv=v.createContext({}),qv={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function $v(e,t,n){var r=e;return(void 0===t||t>n)&&(r=ca(e,{span:n}),aa(void 0===t,"Descriptions","Sum of column `span` in a line not match `column` of Descriptions.")),r}function Xv(e){var t,n=e.prefixCls,r=e.title,i=e.extra,a=e.column,s=void 0===a?qv:a,l=e.colon,c=void 0===l||l,u=e.bordered,d=e.layout,h=e.children,p=e.className,f=e.style,m=e.size,y=e.labelStyle,b=e.contentStyle,C=v.useContext(ae),_=C.getPrefixCls,x=C.direction,S=_("descriptions",n),k=Ge(v.useState({}),2),P=k[0],T=k[1],E=function(e,t){if("number"==typeof e)return e;if("object"===g(e))for(var n=0;n<Va.length;n++){var r=Va[n];if(t[r]&&void 0!==e[r])return e[r]||qv[r]}return 3}(s,P);v.useEffect((function(){var e=Ga.subscribe((function(e){"object"===g(s)&&T(e)}));return function(){Ga.unsubscribe(e)}}),[]);var M=function(e,t){var n=O(e).filter((function(e){return e})),r=[],o=[],i=t;return n.forEach((function(e,a){var s,l=null===(s=e.props)||void 0===s?void 0:s.span,c=l||1;if(a===n.length-1)return o.push($v(e,l,i)),void r.push(o);c<i?(i-=c,o.push(e)):(o.push($v(e,c,i)),r.push(o),i=t,o=[])})),r}(h,E);return v.createElement(Gv.Provider,{value:{labelStyle:y,contentStyle:b}},v.createElement("div",{className:w()(S,(t={},o(t,"".concat(S,"-").concat(m),m&&"default"!==m),o(t,"".concat(S,"-bordered"),!!u),o(t,"".concat(S,"-rtl"),"rtl"===x),t),p),style:f},(r||i)&&v.createElement("div",{className:"".concat(S,"-header")},r&&v.createElement("div",{className:"".concat(S,"-title")},r),i&&v.createElement("div",{className:"".concat(S,"-extra")},i)),v.createElement("div",{className:"".concat(S,"-view")},v.createElement("table",null,v.createElement("tbody",null,M.map((function(e,t){return v.createElement(Uv,{key:t,index:t,colon:c,prefixCls:S,vertical:"vertical"===d,bordered:u,row:e})})))))))}Xv.Item=Kv;var Jv,Zv=Xv,Qv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ey=function(e){return v.createElement(se,null,(function(t){var n,i=t.getPrefixCls,a=t.direction,s=e.prefixCls,l=e.type,c=void 0===l?"horizontal":l,u=e.orientation,d=void 0===u?"center":u,h=e.className,p=e.children,f=e.dashed,m=e.plain,g=Qv(e,["prefixCls","type","orientation","className","children","dashed","plain"]),y=i("divider",s),b=d.length>0?"-".concat(d):d,C=!!p,_=w()(y,"".concat(y,"-").concat(c),(o(n={},"".concat(y,"-with-text"),C),o(n,"".concat(y,"-with-text").concat(b),C),o(n,"".concat(y,"-dashed"),!!f),o(n,"".concat(y,"-plain"),!!m),o(n,"".concat(y,"-rtl"),"rtl"===a),n),h);return v.createElement("div",Object(r.a)({className:_},g,{role:"separator"}),p&&v.createElement("span",{className:"".concat(y,"-inner-text")},p))}))},ty=xl;function ny(e){if("undefined"==typeof document)return 0;if(e||void 0===Jv){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),Jv=o-i}return Jv}var ry=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var oy={},iy=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t=new RegExp("".concat("ant-scrolling-effect"),"g"),n=document.body.className;if(e){if(!t.test(n))return;return ry(oy),oy={},void(document.body.className=n.replace(t,"").trim())}var r=ny();if(r&&(oy=ry({position:"relative",width:"calc(100% - ".concat(r,"px)")}),!t.test(n))){var o="".concat(n," ").concat("ant-scrolling-effect");document.body.className=o.trim()}}},ay=[],sy=new RegExp("".concat("ant-scrolling-effect"),"g"),ly=0,cy=new Map,uy=function e(t){var n=this;i(this,e),this.getContainer=function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container},this.reLock=function(e){var t=ay.find((function(e){return e.target===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())},this.lock=function(){var e;if(!ay.some((function(e){return e.target===n.lockTarget})))if(ay.some((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))ay=[].concat(de(ay),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&(t=ny());var o=r.className;if(0===ay.filter((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&cy.set(r,ry({width:"calc(100% - ".concat(t,"px)"),overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!sy.test(o)){var i="".concat(o," ").concat("ant-scrolling-effect");r.className=i.trim()}ay=[].concat(de(ay),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var e,t=ay.find((function(e){return e.target===n.lockTarget}));if(ay=ay.filter((function(e){return e.target!==n.lockTarget})),t&&!ay.some((function(e){var n,r=e.options;return(null==r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,o=r.className;sy.test(o)&&(ry(cy.get(r),{element:r}),cy.delete(r),r.className=r.className.replace(sy,"").trim())}},this.lockTarget=ly++,this.options=t};function dy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var hy=0,py=Tn();var fy={},my=function(e){if(!py)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===g(e)&&e instanceof window.HTMLElement)return e}return document.body},gy=function(e){c(n,e);var t=dy(n);function n(e){var r;return i(this,n),(r=t.call(this,e)).componentRef=v.createRef(),r.updateScrollLocker=function(e){var t=(e||{}).visible,n=r.props,o=n.getContainer,i=n.visible;i&&i!==t&&py&&my(o)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:my(o)})},r.updateOpenCount=function(e){var t=e||{},n=t.visible,o=t.getContainer,i=r.props,a=i.visible,s=i.getContainer;a!==n&&py&&my(s)===document.body&&(a&&!n?hy+=1:e&&(hy-=1)),("function"==typeof s&&"function"==typeof o?s.toString()!==o.toString():s!==o)&&r.removeCurrentContainer()},r.attachToParent=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||r.container&&!r.container.parentNode){var t=my(r.props.getContainer);return!!t&&(t.appendChild(r.container),!0)}return!0},r.getContainer=function(){return py?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null},r.setWrapperClassName=function(){var e=r.props.wrapperClassName;r.container&&e&&e!==r.container.className&&(r.container.className=e)},r.removeCurrentContainer=function(){var e,t;null===(e=r.container)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(r.container)},r.switchScrollingEffect=function(){1!==hy||Object.keys(fy).length?hy||(ry(fy),fy={},iy(!0)):(iy(),fy=ry({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))},r.scrollLocker=new uy({container:my(e.getContainer)}),r}return s(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=ve((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;py&&my(n)===document.body&&(hy=t&&hy?hy-1:hy),this.removeCurrentContainer(),ve.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.forceRender,r=e.visible,o=null,i={getOpenCount:function(){return hy},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(n||r||this.componentRef.current)&&(o=v.createElement(En,{getContainer:this.getContainer,ref:this.componentRef},t(i))),o}}]),n}(v.Component);var vy={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},yy=Object.keys(vy).filter((function(e){if("undefined"==typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],by=vy[yy];function wy(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function Cy(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on".concat(t),n)}var _y=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},xy=!("undefined"!=typeof window&&window.document&&window.document.createElement),Sy={},ky=function(e){c(n,e);var t=m(n);function n(e){var r;return i(this,n),(r=t.call(this,e)).domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(e){e.touches.length>1||(r.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},r.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var t=e.currentTarget,n=e.changedTouches[0].clientX-r.startPos.x,o=e.changedTouches[0].clientY-r.startPos.y;(t===r.maskDom||t===r.handlerDom||t===r.contentDom&&function e(t,n,r,o){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,c=document.defaultView.getComputedStyle(n),u="auto"===c.overflowY||"scroll"===c.overflowY,d="auto"===c.overflowX||"scroll"===c.overflowX,h=s&&u,p=l&&d;return!!(i&&(!h||h&&(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0))||a&&(!p||p&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0)))&&e(t,n.parentNode,r,o)}(t,e.target,n,o))&&e.cancelable&&e.preventDefault()}},r.transitionEnd=function(e){var t=e.target;Cy(t,by,r.transitionEnd),t.style.transition=""},r.onKeyDown=function(e){if(e.keyCode===Je.ESC){var t=r.props.onClose;e.stopPropagation(),t&&t(e)}},r.onWrapperTransitionEnd=function(e){var t=r.props,n=t.open,o=t.afterVisibleChange;e.target===r.contentWrapper&&e.propertyName.match(/transform$/)&&(r.dom.style.transition="",!n&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),o&&o(!!n))},r.openLevelTransition=function(){var e=r.props,t=e.open,n=e.width,o=e.height,i=r.getHorizontalBoolAndPlacementName(),a=i.isHorizontal,s=i.placementName,l=r.contentDom?r.contentDom.getBoundingClientRect()[a?"width":"height"]:0,c=(a?n:o)||l;r.setLevelAndScrolling(t,s,c)},r.setLevelTransform=function(e,t,n,o){var i=r.props,a=i.placement,s=i.levelMove,l=i.duration,c=i.ease,u=i.showMask;r.levelDom.forEach((function(i){i.style.transition="transform ".concat(l," ").concat(c),wy(i,by,r.transitionEnd);var d,h,p,f=e?n:0;if(s){var m=(h={target:i,open:e},p="function"==typeof(d=s)?d(h):d,Array.isArray(p)?2===p.length?p:[p[0],p[1]]:[p]);f=e?m[0]:m[1]||0}var g="number"==typeof f?"".concat(f,"px"):f,v="left"===a||"top"===a?g:"-".concat(g);v=u&&"right"===a&&o?"calc(".concat(v," + ").concat(o,"px)"):v,i.style.transform=f?"".concat(t,"(").concat(v,")"):""}))},r.setLevelAndScrolling=function(e,t,n){var o=r.props.onChange;if(!xy){var i=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?ny(!0):0;r.setLevelTransform(e,t,n,i),r.toggleScrollingToDrawerAndBody(i)}o&&o(e)},r.toggleScrollingToDrawerAndBody=function(e){var t=r.props,n=t.getContainer,o=t.showMask,i=t.open,a=n&&n();if(a&&a.parentNode===document.body&&o){var s=["touchstart"],l=[document.body,r.maskDom,r.handlerDom,r.contentDom];i&&"hidden"!==document.body.style.overflow?(e&&r.addScrollingEffect(e),document.body.style.touchAction="none",l.forEach((function(e,t){e&&wy(e,s[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)}))):r.getCurrentDrawerSome()&&(document.body.style.touchAction="",e&&r.remScrollingEffect(e),l.forEach((function(e,t){e&&Cy(e,s[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)})))}},r.addScrollingEffect=function(e){var t=r.props,n=t.placement,o=t.duration,i=t.ease,a="width ".concat(o," ").concat(i),s="transform ".concat(o," ").concat(i);switch(r.dom.style.transition="none",n){case"right":r.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(e,"px)"),r.dom.style.transform="translateZ(0)"}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(s,",").concat(a),r.dom.style.width="",r.dom.style.transform="")}))},r.remScrollingEffect=function(e){var t,n=r.props,o=n.placement,i=n.duration,a=n.ease;yy&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var s="width ".concat(i," ").concat(a),l="transform ".concat(i," ").concat(a);switch(o){case"left":r.dom.style.width="100%",s="width 0s ".concat(a," ").concat(i);break;case"right":r.dom.style.transform="translateX(".concat(e,"px)"),r.dom.style.width="100%",s="width 0s ".concat(a," ").concat(i),r.maskDom&&(r.maskDom.style.left="-".concat(e,"px"),r.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":r.dom.style.width="calc(100% + ".concat(e,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",t="height 0s ".concat(a," ").concat(i)}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(l,",").concat(t?"".concat(t,","):"").concat(s),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")}))},r.getCurrentDrawerSome=function(){return!Object.keys(Sy).some((function(e){return Sy[e]}))},r.getLevelDom=function(e){var t=e.level,n=e.getContainer;if(!xy){var o,i=n&&n(),a=i?i.parentNode:null;if(r.levelDom=[],"all"===t)(a?Array.prototype.slice.call(a.children):[]).forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==i&&r.levelDom.push(e)}));else t&&(o=t,Array.isArray(o)?o:[o]).forEach((function(e){document.querySelectorAll(e).forEach((function(e){r.levelDom.push(e)}))}))}},r.getHorizontalBoolAndPlacementName=function(){var e=r.props.placement,t="left"===e||"right"===e;return{isHorizontal:t,placementName:"translate".concat(t?"X":"Y")}},r.state={_self:Object(p.a)(r)},r}return s(n,[{key:"componentDidMount",value:function(){var e=this;if(!xy){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(e){}this.passive=!!t&&{passive:!1}}var n,r=this.props,o=r.open,i=r.getContainer,a=r.showMask,s=i&&i();(this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),o)&&(s&&s.parentNode===document.body&&(Sy[this.drawerId]=o),this.openLevelTransition(),this.forceUpdate((function(){e.domFocus()})),a&&(null===(n=this.props.scrollLocker)||void 0===n||n.lock()))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.open,r=t.getContainer,o=t.scrollLocker,i=t.showMask,a=r&&r();n!==e.open&&(a&&a.parentNode===document.body&&(Sy[this.drawerId]=!!n),this.openLevelTransition(),n?(this.domFocus(),i&&(null==o||o.lock())):null==o||o.unLock())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.open,n=e.scrollLocker;delete Sy[this.drawerId],t&&(this.setLevelTransform(!1),document.body.style.touchAction=""),null==n||n.unLock()}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.className,a=n.children,s=n.style,l=n.width,c=n.height,u=(n.defaultOpen,n.open),d=n.prefixCls,h=n.placement,p=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),f=(n.onChange,n.afterVisibleChange,n.showMask),m=n.maskClosable,g=n.maskStyle,y=n.onClose,b=n.onHandleClick,C=n.keyboard,x=(n.getOpenCount,n.scrollLocker,n.contentWrapperStyle),k=$e(n,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","scrollLocker","contentWrapperStyle"]),P=!!this.dom&&u,T=w()(d,(o(e={},"".concat(d,"-").concat(h),!0),o(e,"".concat(d,"-open"),P),o(e,i||"",!!i),o(e,"no-mask",!f),e)),E=this.getHorizontalBoolAndPlacementName().placementName,O="left"===h||"top"===h?"-100%":"100%",M=P?"":"".concat(E,"(").concat(O,")"),A=p&&v.cloneElement(p,{onClick:function(e){p.props.onClick&&p.props.onClick(),b&&b(e)},ref:function(e){t.handlerDom=e}});return v.createElement("div",Object(r.a)({},_(k,["switchScrollingEffect"]),{tabIndex:-1,className:T,style:s,ref:function(e){t.dom=e},onKeyDown:P&&C?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),f&&v.createElement("div",{className:"".concat(d,"-mask"),onClick:m?y:void 0,style:g,ref:function(e){t.maskDom=e}}),v.createElement("div",{className:"".concat(d,"-content-wrapper"),style:S({transform:M,msTransform:M,width:_y(l)?"".concat(l,"px"):l,height:_y(c)?"".concat(c,"px"):c},x),ref:function(e){t.contentWrapper=e}},v.createElement("div",{className:"".concat(d,"-content"),ref:function(e){t.contentDom=e},onTouchStart:P&&f?this.removeStartHandler:void 0,onTouchMove:P&&f?this.removeMoveHandler:void 0},a),A))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,o={prevProps:e};if(void 0!==n){var i=e.placement,a=e.level;i!==n.placement&&(r.contentDom=null),a!==n.level&&r.getLevelDom(e)}return o}}]),n}(v.Component),Py=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).onHandleClick=function(e){var t=r.props,n=t.onHandleClick,o=t.open;if(n&&n(e),void 0===o){var i=r.state.open;r.setState({open:!i})}},r.onClose=function(e){var t=r.props,n=t.onClose,o=t.open;n&&n(e),void 0===o&&r.setState({open:!1})};var o=void 0!==e.open?e.open:!!e.defaultOpen;return r.state={open:o},"onMaskClick"in e&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return s(n,[{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultOpen,t.getContainer),o=t.wrapperClassName,i=t.forceRender,a=t.handler,s=$e(t,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),l=this.state.open;if(!n)return v.createElement("div",{className:o,ref:function(t){e.dom=t}},v.createElement(ky,Object(r.a)({},s,{open:l,handler:a,getContainer:function(){return e.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var c=!!a||i;return v.createElement(gy,{visible:l,forceRender:c,getContainer:n,wrapperClassName:o},(function(t){var n=t.visible,o=t.afterClose,i=$e(t,["visible","afterClose"]);return v.createElement(ky,Object(r.a)({},s,i,{open:void 0!==n?n:l,afterVisibleChange:void 0!==o?o:s.afterVisibleChange,handler:a,onClose:e.onClose,onHandleClick:e.onHandleClick}))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return void 0!==n&&e.open!==n.open&&(r.open=e.open),r}}]),n}(v.Component);Py.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:v.createElement("div",{className:"drawer-handle"},v.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Ty=Py;function Ey(){return Ge(v.useReducer((function(e){return e+1}),0),2)[1]}var Oy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},My=v.createContext(null),Ay=(hs("top","right","bottom","left"),{distance:180}),Dy=v.forwardRef((function(e,t){var n=e.width,i=void 0===n?256:n,a=e.height,s=void 0===a?256:a,l=e.closable,c=void 0===l||l,u=e.placement,d=void 0===u?"right":u,h=e.maskClosable,p=void 0===h||h,f=e.mask,m=void 0===f||f,g=e.level,y=void 0===g?null:g,b=e.keyboard,C=void 0===b||b,_=e.push,x=void 0===_?Ay:_,S=e.closeIcon,k=void 0===S?v.createElement(Bi,null):S,P=e.bodyStyle,T=e.drawerStyle,E=e.prefixCls,O=e.className,M=e.direction,A=e.visible,D=e.children,I=e.zIndex,L=e.destroyOnClose,N=e.style,j=e.title,R=e.headerStyle,z=e.onClose,F=e.footer,B=e.footerStyle,H=Oy(e,["width","height","closable","placement","maskClosable","mask","level","keyboard","push","closeIcon","bodyStyle","drawerStyle","prefixCls","className","direction","visible","children","zIndex","destroyOnClose","style","title","headerStyle","onClose","footer","footerStyle"]),V=Ey(),Y=Ge(v.useState(!1),2),W=Y[0],U=Y[1],K=v.useContext(My),G=v.useRef(!1);v.useEffect((function(){return A&&K&&K.push(),function(){K&&K.pull()}}),[]),v.useEffect((function(){K&&(A?K.push():K.pull())}),[A]);var q=v.useMemo((function(){return{push:function(){x&&U(!0)},pull:function(){x&&U(!1)}}}),[x]);v.useImperativeHandle(t,(function(){return q}),[q]);var $=L&&!A,X=function(){$&&(A||(G.current=!0,V()))},J=function(){if(!A&&!m)return{};var e={};return"left"===d||"right"===d?e.width=i:e.height=s,e};function Z(){if(!j&&!c)return null;var e="".concat(E,j?"-header":"-header-no-title");return v.createElement("div",{className:e,style:R},j&&v.createElement("div",{className:"".concat(E,"-title")},j),c&&c&&v.createElement("button",{type:"button",onClick:z,"aria-label":"Close",className:"".concat(E,"-close"),style:{"--scroll-bar":"".concat(ny(),"px")}},k))}var Q=w()(o({"no-mask":!m},"".concat(E,"-rtl"),"rtl"===M),O),ee=m?J():{};return v.createElement(My.Provider,{value:q},v.createElement(Ty,Object(r.a)({handler:!1},Object(r.a)({placement:d,prefixCls:E,maskClosable:p,level:y,keyboard:C,children:D,onClose:z},H),ee,{open:A,showMask:m,style:function(){var e,t,n=m?{}:J();return Object(r.a)(Object(r.a)({zIndex:I,transform:W?(e=d,t="boolean"==typeof x?x?Ay.distance:0:x.distance,t=parseFloat(String(t||0)),"left"===e||"right"===e?"translateX(".concat("left"===e?t:-t,"px)"):"top"===e||"bottom"===e?"translateY(".concat("top"===e?t:-t,"px)"):void 0):void 0},n),N)}(),className:Q}),function(){if(G.current&&!A)return null;G.current=!1;var e={};return $&&(e.opacity=0,e.transition="opacity .3s"),v.createElement("div",{className:"".concat(E,"-wrapper-body"),style:Object(r.a)(Object(r.a)({},e),T),onTransitionEnd:X},Z(),v.createElement("div",{className:"".concat(E,"-body"),style:P},D),function(){if(!F)return null;var e="".concat(E,"-footer");return v.createElement("div",{className:e,style:B},F)}())}()))}));Dy.displayName="Drawer";var Iy=v.forwardRef((function(e,t){var n=e.prefixCls,o=e.getContainer,i=v.useContext(ae),a=i.getPopupContainer,s=i.getPrefixCls,l=i.direction,c=s("drawer",n),u=void 0===o&&a?function(){return a(document.body)}:o;return v.createElement(Dy,Object(r.a)({},e,{ref:t,prefixCls:c,getContainer:u,direction:l}))}));Iy.displayName="DrawerWrapper";var Ly=Iy,Ny=v.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),jy=v.createContext({updateItemErrors:function(){}}),Ry=v.createContext({prefixCls:""});function zy(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Fy(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function By(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Fy(n.overflowY,t)||Fy(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Hy(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var Vy=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!zy(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],d=e;zy(d)&&l(d);){if((d=d.parentElement)===c){u.push(d);break}null!=d&&d===document.body&&By(d)&&!By(document.documentElement)||null!=d&&By(d,s)&&u.push(d)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),v=g.height,y=g.width,b=g.top,w=g.right,C=g.bottom,_=g.left,x="start"===o||"nearest"===o?b:"end"===o?C:b+v/2,S="center"===i?_+y/2:"end"===i?w:_,k=[],P=0;P<u.length;P++){var T=u[P],E=T.getBoundingClientRect(),O=E.height,M=E.width,A=E.top,D=E.right,I=E.bottom,L=E.left;if("if-needed"===r&&b>=0&&_>=0&&C<=p&&w<=h&&b>=A&&C<=I&&_>=L&&w<=D)return k;var N=getComputedStyle(T),j=parseInt(N.borderLeftWidth,10),R=parseInt(N.borderTopWidth,10),z=parseInt(N.borderRightWidth,10),F=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in T?T.offsetWidth-T.clientWidth-j-z:0,Y="offsetHeight"in T?T.offsetHeight-T.clientHeight-R-F:0;if(c===T)B="start"===o?x:"end"===o?x-p:"nearest"===o?Hy(m,m+p,p,R,F,m+x,m+x+v,v):x-p/2,H="start"===i?S:"center"===i?S-h/2:"end"===i?S-h:Hy(f,f+h,h,j,z,f+S,f+S+y,y),B=Math.max(0,B+m),H=Math.max(0,H+f);else{B="start"===o?x-A-R:"end"===o?x-I+F+Y:"nearest"===o?Hy(A,I,O,R,F+Y,x,x+v,v):x-(A+O/2)+Y/2,H="start"===i?S-L-j:"center"===i?S-(L+M/2)+V/2:"end"===i?S-D+z+V:Hy(L,D,M,j,z+V,S,S+y,y);var W=T.scrollLeft,U=T.scrollTop;x+=U-(B=Math.max(0,Math.min(U+B,T.scrollHeight-O+Y))),S+=W-(H=Math.max(0,Math.min(W+H,T.scrollWidth-M+V)))}k.push({el:T,top:B,left:H})}return k};function Yy(e){return e===Object(e)&&0!==Object.keys(e).length}var Wy=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(Yy(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:Vy(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:Yy(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(Vy(e,r),r.behavior)}};function Uy(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Ky(e,t){if(e.length){var n=e.join("_");return t?"".concat(t,"_").concat(n):n}}function Gy(e){return Uy(e).join("_")}function qy(e){var t=Ge(pg(),1)[0],n=v.useRef({}),o=v.useMemo((function(){return e||Object(r.a)(Object(r.a)({},t),{__INTERNAL__:{itemRef:function(e){return function(t){var r=Gy(e);t?n.current[r]=t:delete n.current[r]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Uy(e),i=Ky(n,o.__INTERNAL__.name),a=i?document.getElementById(i):null;a&&Wy(a,Object(r.a)({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=Gy(e);return n.current[t]}})}),[e,t]);return[o]}var $y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Xy=function(e,t){var n,i=v.useContext(Xi),a=v.useContext(ae),s=a.getPrefixCls,l=a.direction,c=a.form,u=e.prefixCls,d=e.className,h=void 0===d?"":d,p=e.size,f=void 0===p?i:p,m=e.form,y=e.colon,b=e.labelAlign,C=e.labelCol,_=e.wrapperCol,x=e.hideRequiredMark,S=e.layout,k=void 0===S?"horizontal":S,P=e.scrollToFirstError,T=e.requiredMark,E=e.onFinishFailed,O=e.name,M=$y(e,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),A=Object(v.useMemo)((function(){return void 0!==T?T:c&&void 0!==c.requiredMark?c.requiredMark:!x}),[x,T,c]),D=s("form",u),I=w()(D,(o(n={},"".concat(D,"-").concat(k),!0),o(n,"".concat(D,"-hide-required-mark"),!1===A),o(n,"".concat(D,"-rtl"),"rtl"===l),o(n,"".concat(D,"-").concat(f),f),n),h),L=Ge(qy(m),1)[0],N=L.__INTERNAL__;N.name=O;var j=Object(v.useMemo)((function(){return{name:O,labelAlign:b,labelCol:C,wrapperCol:_,vertical:"vertical"===k,colon:y,requiredMark:A,itemRef:N.itemRef}}),[O,b,C,_,k,y,A]);v.useImperativeHandle(t,(function(){return L}));return v.createElement($i,{size:f},v.createElement(Ny.Provider,{value:j},v.createElement(bg,Object(r.a)({id:O},M,{name:O,onFinishFailed:function(e){null==E||E(e);var t={block:"nearest"};P&&e.errorFields.length&&("object"===g(P)&&(t=P),L.scrollToField(e.errorFields[0].name,t))},form:L,className:I}))))},Jy=v.forwardRef(Xy),Zy=n(241),Qy=n.n(Zy),eb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},tb=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:eb}))};tb.displayName="QuestionCircleOutlined";var nb=v.forwardRef(tb),rb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var ob=function(e){var t,n,i,a=e.prefixCls,s=e.label,l=e.htmlFor,c=e.labelCol,u=e.labelAlign,d=e.colon,h=e.required,p=e.requiredMark,f=e.tooltip,m=Ge((t="Form",i=v.useContext(X),[v.useMemo((function(){var e=n||$[t||"global"],o=t&&i?i[t]:{};return Object(r.a)(Object(r.a)({},"function"==typeof e?e():e),o||{})}),[t,n,i])]),1)[0];return s?v.createElement(Ny.Consumer,{key:"label"},(function(e){var t,n,i=e.vertical,y=e.labelAlign,b=e.labelCol,C=e.colon,_=c||b||{},x=u||y,S="".concat(a,"-item-label"),k=w()(S,"left"===x&&"".concat(S,"-left"),_.className),P=s,T=!0===d||!1!==C&&!1!==d;T&&!i&&"string"==typeof s&&""!==s.trim()&&(P=s.replace(/[:|:]\s*$/,""));var E=function(e){return e?"object"!==g(e)||v.isValidElement(e)?{title:e}:e:null}(f);if(E){var O=E.icon,M=void 0===O?v.createElement(nb,null):O,A=rb(E,["icon"]),D=v.createElement(ys,A,v.cloneElement(M,{className:"".concat(a,"-item-tooltip")}));P=v.createElement(v.Fragment,null,P,D)}"optional"!==p||h||(P=v.createElement(v.Fragment,null,P,v.createElement("span",{className:"".concat(a,"-item-optional")},(null==m?void 0:m.optional)||(null===(n=q.Form)||void 0===n?void 0:n.optional))));var I=w()((o(t={},"".concat(a,"-item-required"),h),o(t,"".concat(a,"-item-required-mark-optional"),"optional"===p),o(t,"".concat(a,"-item-no-colon"),!T),t));return v.createElement(lp,Object(r.a)({},_,{className:k}),v.createElement("label",{htmlFor:l,className:I,title:"string"==typeof s?s:""},P))})):null};var ib=[];function ab(e){var t=e.errors,n=void 0===t?ib:t,r=e.help,i=e.onDomErrorVisibleChange,a=Ey(),s=v.useContext(Ry),l=s.prefixCls,c=s.status,u=v.useContext(ae).getPrefixCls,d=Ge(function(e,t,n){var r=v.useRef({errors:e,visible:!!e.length}),o=Ey(),i=function(){var n=r.current.visible,i=!!e.length,a=r.current.errors;r.current.errors=e,r.current.visible=i,n!==i?t(i):(a.length!==e.length||a.some((function(t,n){return t!==e[n]})))&&o()};return v.useEffect((function(){if(!n){var e=setTimeout(i,10);return function(){return clearTimeout(e)}}}),[e]),n&&i(),[r.current.visible,r.current.errors]}(n,(function(e){e&&Promise.resolve().then((function(){null==i||i(!0)})),a()}),!!r),2),h=d[0],p=d[1],f=rt((function(){return p}),h,(function(e,t){return t})),m=Ge(v.useState(c),2),g=m[0],y=m[1];v.useEffect((function(){h&&c&&y(c)}),[h,c]);var b="".concat(l,"-item-explain"),C=u();return v.createElement(or,{motionDeadline:500,visible:h,motionName:"".concat(C,"-show-help"),onLeaveEnd:function(){null==i||i(!1)},motionAppear:!0,removeOnLeave:!0},(function(e){var t=e.className;return v.createElement("div",{className:w()(b,o({},"".concat(b,"-").concat(g),g),t),key:"help"},f.map((function(e,t){return v.createElement("div",{key:t,role:"alert"},e)})))}))}var sb={success:Oa,warning:Da,error:Yi,validating:Li},lb=function(e){var t=e.prefixCls,n=e.status,o=e.wrapperCol,i=e.children,a=e.help,s=e.errors,l=e.onDomErrorVisibleChange,c=e.hasFeedback,u=e._internalItemRender,d=e.validateStatus,h=e.extra,p="".concat(t,"-item"),f=v.useContext(Ny),m=o||f.wrapperCol||{},g=w()("".concat(p,"-control"),m.className);v.useEffect((function(){return function(){l(!1)}}),[]);var y=d&&sb[d],b=c&&y?v.createElement("span",{className:"".concat(p,"-children-icon")},v.createElement(y,null)):null,C=Object(r.a)({},f);delete C.labelCol,delete C.wrapperCol;var _=v.createElement("div",{className:"".concat(p,"-control-input")},v.createElement("div",{className:"".concat(p,"-control-input-content")},i),b),x=v.createElement(Ry.Provider,{value:{prefixCls:t,status:n}},v.createElement(ab,{errors:s,help:a,onDomErrorVisibleChange:l})),S=h?v.createElement("div",{className:"".concat(p,"-extra")},h):null,k=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:_,errorList:x,extra:S}):v.createElement(v.Fragment,null,_,x,S);return v.createElement(Ny.Provider,{value:C},v.createElement(lp,Object(r.a)({},m,{className:g}),k))};var cb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},ub=(hs("success","warning","error","validating",""),v.memo((function(e){return e.children}),(function(e,t){return e.value===t.value&&e.update===t.update})));var db=function(e){var t=e.name,n=e.fieldKey,i=e.noStyle,a=e.dependencies,s=e.prefixCls,l=e.style,c=e.className,u=e.shouldUpdate,d=e.hasFeedback,h=e.help,p=e.rules,f=e.validateStatus,m=e.children,y=e.required,b=e.label,C=e.messageVariables,x=e.trigger,S=void 0===x?"onChange":x,k=e.validateTrigger,P=e.hidden,T=cb(e,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","messageVariables","trigger","validateTrigger","hidden"]),E=Object(v.useRef)(!1),O=Object(v.useContext)(ae).getPrefixCls,M=Object(v.useContext)(Ny),A=M.name,D=M.requiredMark,I=Object(v.useContext)(jy).updateItemErrors,L=Ge(v.useState(!!h),2),N=L[0],j=L[1],F=function(e){var t=Ge(v.useState(e),2),n=t[0],r=t[1],o=Object(v.useRef)(null),i=Object(v.useRef)([]),a=Object(v.useRef)(!1);return v.useEffect((function(){return function(){a.current=!0,ve.cancel(o.current)}}),[]),[n,function(e){a.current||(null===o.current&&(i.current=[],o.current=ve((function(){o.current=null,r((function(e){var t=e;return i.current.forEach((function(e){t=e(t)})),t}))}))),i.current.push(e))}]}({}),B=Ge(F,2),H=B[0],V=B[1],Y=Object(v.useContext)(Dm).validateTrigger,W=void 0!==k?k:Y;function U(e){E.current||j(e)}var K=function(e){return null===e&&aa(!1,"Form.Item","`null` is passed as `name` property"),!(null==e)}(t),G=Object(v.useRef)([]);v.useEffect((function(){return function(){E.current=!0,I(G.current.join("__SPLIT__"),[])}}),[]);var q,$,X=O("form",s),J=i?I:function(e,t,n){V((function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n!==e&&delete i[n],Qy()(i[e],t)?i:Object(r.a)(Object(r.a)({},i),o({},e,t))}))},Z=(q=v.useContext(Ny).itemRef,$=v.useRef({}),function(e,t){var n=t&&"object"===g(t)&&t.ref,r=e.join("_");return $.current.name===r&&$.current.originRef===n||($.current.name=r,$.current.originRef=n,$.current.ref=R(q(e),n)),$.current.ref});function Q(t,n,a,s){var u,p;if(i&&!P)return t;var m,g=[];Object.keys(H).forEach((function(e){g=[].concat(de(g),de(H[e]||[]))})),null!=h?m=Uy(h):(m=a?a.errors:[],m=[].concat(de(m),de(g)));var y="";void 0!==f?y=f:(null==a?void 0:a.validating)?y="validating":(null===(p=null==a?void 0:a.errors)||void 0===p?void 0:p.length)||g.length?y="error":(null==a?void 0:a.touched)&&(y="success");var b=(o(u={},"".concat(X,"-item"),!0),o(u,"".concat(X,"-item-with-help"),N||!!h),o(u,"".concat(c),!!c),o(u,"".concat(X,"-item-has-feedback"),y&&d),o(u,"".concat(X,"-item-has-success"),"success"===y),o(u,"".concat(X,"-item-has-warning"),"warning"===y),o(u,"".concat(X,"-item-has-error"),"error"===y),o(u,"".concat(X,"-item-is-validating"),"validating"===y),o(u,"".concat(X,"-item-hidden"),P),u);return v.createElement(rp,Object(r.a)({className:w()(b),style:l,key:"row"},_(T,["colon","extra","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","labelAlign","labelCol","normalize","preserve","tooltip","validateFirst","valuePropName","wrapperCol","_internalItemRender"])),v.createElement(ob,Object(r.a)({htmlFor:n,required:s,requiredMark:D},e,{prefixCls:X})),v.createElement(lb,Object(r.a)({},e,a,{errors:m,prefixCls:X,status:y,onDomErrorVisibleChange:U,validateStatus:y}),v.createElement(jy.Provider,{value:{updateItemErrors:J}},t)))}var ee="function"==typeof m,te=Object(v.useRef)(0);if(te.current+=1,!K&&!ee&&!a)return Q(m);var ne={};return"string"==typeof b&&(ne.label=b),C&&(ne=Object(r.a)(Object(r.a)({},ne),C)),v.createElement(sg,Object(r.a)({},e,{messageVariables:ne,trigger:S,validateTrigger:W,onReset:function(){U(!1)}}),(function(o,s,l){var c=s.errors,d=Uy(t).length&&s?s.name:[],h=Ky(d,A);if(i){var f=G.current.join("__SPLIT__");if(G.current=de(d),n){var b=Array.isArray(n)?n:[n];G.current=[].concat(de(d.slice(0,-1)),de(b))}I(G.current.join("__SPLIT__"),c,f)}var w=void 0!==y?y:!(!p||!p.some((function(e){if(e&&"object"===g(e)&&e.required)return!0;if("function"==typeof e){var t=e(l);return t&&t.required}return!1}))),C=Object(r.a)({},o),_=null;if(aa(!(u&&a),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(m)&&K)aa(!1,"Form.Item","`children` is array of render props cannot have `name`."),_=m;else if(ee&&(!u&&!a||K))aa(!(!u&&!a),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),aa(!K,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(!a||ee||K)if(sa(m)){aa(void 0===m.props.defaultValue,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var x=Object(r.a)(Object(r.a)({},m.props),C);x.id||(x.id=h),z(m)&&(x.ref=Z(d,m)),new Set([].concat(de(Uy(S)),de(Uy(W)))).forEach((function(e){x[e]=function(){for(var t,n,r,o,i,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];null===(r=C[e])||void 0===r||(t=r).call.apply(t,[C].concat(s)),null===(i=(o=m.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(s))}})),_=v.createElement(ub,{value:C[e.valuePropName||"value"],update:te.current},ca(m,x))}else ee&&(u||a)&&!K?_=m(l):(aa(!d.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),_=m);else aa(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");return Q(_,h,s,w)}))},hb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},pb=function(e){var t=e.prefixCls,n=e.children,o=hb(e,["prefixCls","children"]);aa(!!o.name,"Form.List","Miss `name` prop.");var i=(0,v.useContext(ae).getPrefixCls)("form",t);return v.createElement(lg,o,(function(e,t,o){return v.createElement(Ry.Provider,{value:{prefixCls:i,status:"error"}},n(e.map((function(e){return Object(r.a)(Object(r.a)({},e),{fieldKey:e.key})})),t,{errors:o.errors}))}))},fb=Jy;fb.Item=db,fb.List=pb,fb.ErrorList=ab,fb.useForm=qy,fb.Provider=function(e){var t=_(e,["prefixCls"]);return v.createElement(mg,t)},fb.create=function(){aa(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var mb=fb,gb={useBreakpoint:qa};function vb(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function yb(e){var t=e.prefixCls,n=e.style,o=e.visible,i=e.maskProps,a=e.motionName;return v.createElement(or,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e){var o=e.className,a=e.style;return v.createElement("div",Object(r.a)({style:S(S({},a),n),className:w()("".concat(t,"-mask"),o)},i))}))}function bb(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}var wb=-1;function Cb(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var _b=v.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),xb={width:0,height:0,overflow:"hidden",outline:"none"},Sb=v.forwardRef((function(e,t){var n=e.closable,o=e.prefixCls,i=e.width,a=e.height,s=e.footer,l=e.title,c=e.closeIcon,u=e.style,d=e.className,h=e.visible,p=e.forceRender,f=e.bodyStyle,m=e.bodyProps,g=e.children,y=e.destroyOnClose,b=e.modalRender,C=e.motionName,_=e.ariaId,x=e.onClose,k=e.onVisibleChanged,P=e.onMouseDown,T=e.onMouseUp,E=e.mousePosition,O=Object(v.useRef)(),M=Object(v.useRef)(),A=Object(v.useRef)();v.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=O.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===M.current?O.current.focus():e||t!==O.current||M.current.focus()}}}));var D,I,L,N=Ge(v.useState(),2),j=N[0],R=N[1],z={};function F(){var e,t,n,r,o,i=(e=A.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=Cb(o),n.top+=Cb(o,!0),n);R(E?"".concat(E.x-i.left,"px ").concat(E.y-i.top,"px"):"")}void 0!==i&&(z.width=i),void 0!==a&&(z.height=a),j&&(z.transformOrigin=j),s&&(D=v.createElement("div",{className:"".concat(o,"-footer")},s)),l&&(I=v.createElement("div",{className:"".concat(o,"-header")},v.createElement("div",{className:"".concat(o,"-title"),id:_},l))),n&&(L=v.createElement("button",{type:"button",onClick:x,"aria-label":"Close",className:"".concat(o,"-close")},c||v.createElement("span",{className:"".concat(o,"-close-x")})));var B=v.createElement("div",{className:"".concat(o,"-content")},L,I,v.createElement("div",Object(r.a)({className:"".concat(o,"-body"),style:f},m),g),D);return v.createElement(or,{visible:h,onVisibleChanged:k,onAppearPrepare:F,onEnterPrepare:F,forceRender:p,motionName:C,removeOnLeave:y,ref:A},(function(e,t){var n=e.className,r=e.style;return v.createElement("div",{key:"dialog-element",role:"document",ref:t,style:S(S(S({},r),u),z),className:w()(o,d,n),onMouseDown:P,onMouseUp:T},v.createElement("div",{tabIndex:0,ref:O,style:xb,"aria-hidden":"true"}),v.createElement(_b,{shouldUpdate:h||p},b?b(B):B),v.createElement("div",{tabIndex:0,ref:M,style:xb,"aria-hidden":"true"}))}))}));Sb.displayName="Content";var kb=Sb;function Pb(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.scrollLocker,h=e.title,p=e.wrapStyle,f=e.wrapClassName,m=e.wrapProps,g=e.onClose,y=e.afterClose,b=e.transitionName,C=e.animation,_=e.closable,x=void 0===_||_,k=e.mask,P=void 0===k||k,T=e.maskTransitionName,E=e.maskAnimation,O=e.maskClosable,M=void 0===O||O,A=e.maskStyle,D=e.maskProps,I=Object(v.useRef)(),L=Object(v.useRef)(),N=Object(v.useRef)(),j=Ge(v.useState(a),2),R=j[0],z=j[1],F=Object(v.useRef)();function B(e){null==g||g(e)}F.current||(F.current="rcDialogTitle".concat(wb+=1));var H=Object(v.useRef)(!1),V=Object(v.useRef)(),Y=null;return M&&(Y=function(e){H.current?H.current=!1:L.current===e.target&&B(e)}),Object(v.useEffect)((function(){return a&&z(!0),function(){}}),[a]),Object(v.useEffect)((function(){return function(){clearTimeout(V.current)}}),[]),Object(v.useEffect)((function(){return R?(null==d||d.lock(),null==d?void 0:d.unLock):function(){}}),[R,d]),v.createElement("div",{className:"".concat(n,"-root")},v.createElement(yb,{prefixCls:n,visible:P&&a,motionName:bb(n,T,E),style:S({zIndex:o},A),maskProps:D}),v.createElement("div",Object(r.a)({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===Je.ESC)return e.stopPropagation(),void B(e);a&&e.keyCode===Je.TAB&&N.current.changeActive(!e.shiftKey)},className:w()("".concat(n,"-wrap"),f),ref:L,onClick:Y,role:"dialog","aria-labelledby":h?F.current:null,style:S(S({zIndex:o},p),{},{display:R?null:"none"})},m),v.createElement(kb,Object(r.a)({},e,{onMouseDown:function(){clearTimeout(V.current),H.current=!0},onMouseUp:function(){V.current=setTimeout((function(){H.current=!1}))},ref:N,closable:x,ariaId:F.current,prefixCls:n,visible:a,onClose:B,onVisibleChanged:function(e){if(e){var t;if(!Pn(L.current,document.activeElement))I.current=document.activeElement,null===(t=N.current)||void 0===t||t.focus()}else{if(z(!1),P&&I.current&&u){try{I.current.focus({preventScroll:!0})}catch(e){}I.current=null}R&&(null==y||y())}},motionName:bb(n,b,C)}))))}var Tb=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,s=e.afterClose,l=Ge(v.useState(t),2),c=l[0],u=l[1];return v.useEffect((function(){t&&u(!0)}),[t]),!1===n?v.createElement(Pb,Object(r.a)({},e,{getOpenCount:function(){return 2}})):o||!a||c?v.createElement(gy,{visible:t,forceRender:o,getContainer:n},(function(t){return v.createElement(Pb,Object(r.a)({},e,{destroyOnClose:a,afterClose:function(){null==s||s(),u(!1)}},t))})):null};Tb.displayName="Dialog";var Eb=Tb;function Ob(e,t,n,r){var i=t+n,a=(n-r)/2;if(n>r){if(t>0)return o({},e,a);if(t<0&&i<r)return o({},e,-a)}else if(t<0||i>r)return o({},e,t<0?a:-a);return{}}function Mb(e,t,n,r){var o={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight},i=o.width,a=o.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=S(S({},Ob("x",n,e,i)),Ob("y",r,t,a))),s}var Ab=v.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}}}),Db=Ab.Provider,Ib=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,o=e.children,i=e.icons,a=void 0===i?{}:i,s=e.preview,l="object"===g(s)?s:{},c=l.visible,u=void 0===c?void 0:c,d=l.onVisibleChange,h=void 0===d?void 0:d,p=l.getContainer,f=void 0===p?void 0:p,m=l.current,y=void 0===m?0:m,b=$e(l,["visible","onVisibleChange","getContainer","current"]),w=Ge(Object(v.useState)(new Map),2),C=w[0],_=w[1],x=Ge(Object(v.useState)(),2),S=x[0],k=x[1],P=Ge(cn(!!u,{value:u,onChange:h}),2),T=P[0],E=P[1],O=Ge(Object(v.useState)(null),2),M=O[0],A=O[1],D=void 0!==u,I=Array.from(C.keys())[y],L=new Map(Array.from(C).filter((function(e){return!!Ge(e,2)[1].canPreview})).map((function(e){var t=Ge(e,2);return[t[0],t[1].url]})));return v.useEffect((function(){k(I)}),[I]),v.useEffect((function(){!T&&D&&k(I)}),[I,D,T]),v.createElement(Db,{value:{isPreviewGroup:!0,previewUrls:L,setPreviewUrls:_,current:S,setCurrent:k,setShowPreview:E,setMousePosition:A,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){_((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return _((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},o,v.createElement(Rb,Object(r.a)({"aria-hidden":!T,visible:T,prefixCls:n,onClose:function(e){e.stopPropagation(),E(!1),A(null)},mousePosition:M,src:L.get(S),icons:a,getContainer:f},b)))},Lb=v.useState,Nb=v.useEffect,jb={x:0,y:0},Rb=function(e){var t=e.prefixCls,n=e.src,i=e.alt,a=e.onClose,s=(e.afterClose,e.visible),l=e.icons,c=void 0===l?{}:l,u=$e(e,["prefixCls","src","alt","onClose","afterClose","visible","icons"]),d=c.rotateLeft,h=c.rotateRight,p=c.zoomIn,f=c.zoomOut,m=c.close,g=c.left,y=c.right,b=Ge(Lb(1),2),C=b[0],_=b[1],x=Ge(Lb(0),2),k=x[0],P=x[1],T=function(e){var t=v.useRef(null),n=Ge(v.useState(e),2),r=n[0],o=n[1],i=v.useRef([]);return v.useEffect((function(){return function(){return t.current&&ve.cancel(t.current)}}),[]),[r,function(e){null===t.current&&(i.current=[],t.current=ve((function(){o((function(e){var n=e;return i.current.forEach((function(e){n=S(S({},n),e)})),t.current=null,n}))}))),i.current.push(e)}]}(jb),E=Ge(T,2),O=E[0],M=E[1],D=v.useRef(),I=v.useRef({originX:0,originY:0,deltaX:0,deltaY:0}),L=Ge(v.useState(!1),2),N=L[0],j=L[1],R=v.useContext(Ab),z=R.previewUrls,F=R.current,B=R.isPreviewGroup,H=R.setCurrent,V=z.size,Y=Array.from(z.keys()),W=Y.indexOf(F),U=B?z.get(F):n,K=B&&V>1,G=Ge(v.useState({wheelDirection:0}),2),q=G[0],$=G[1],X=function(){_((function(e){return e+1})),M(jb)},J=function(){C>1&&_((function(e){return e-1})),M(jb)},Z=w()(o({},"".concat(t,"-moving"),N)),Q="".concat(t,"-operations-operation"),ee="".concat(t,"-operations-icon"),te=[{icon:m,onClick:a,type:"close"},{icon:p,onClick:X,type:"zoomIn"},{icon:f,onClick:J,type:"zoomOut",disabled:1===C},{icon:h,onClick:function(){P((function(e){return e+90}))},type:"rotateRight"},{icon:d,onClick:function(){P((function(e){return e-90}))},type:"rotateLeft"}],ne=function(){if(s&&N){var e=D.current.offsetWidth*C,t=D.current.offsetHeight*C,n=D.current.getBoundingClientRect(),r=n.left,o=n.top,i=k%180!=0;j(!1);var a=Mb(i?t:e,i?e:t,r,o);a&&M(S({},a))}},re=function(e){s&&N&&M({x:e.pageX-I.current.deltaX,y:e.pageY-I.current.deltaY})},oe=function(e){if(s){e.preventDefault();var t=e.deltaY;$({wheelDirection:t})}};return Nb((function(){var e=q.wheelDirection;e>0?J():e<0&&X()}),[q]),Nb((function(){var e,t,n=we(window,"mouseup",ne,!1),r=we(window,"mousemove",re,!1),o=we(window,"wheel",oe,{passive:!1});try{window.top!==window.self&&(e=we(window.top,"mouseup",ne,!1),t=we(window.top,"mousemove",re,!1))}catch(e){A(0,"[rc-image] ".concat(e))}return function(){n.remove(),r.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[s,N]),v.createElement(Eb,Object(r.a)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:t,onClose:a,afterClose:function(){_(1),P(0),M(jb)},visible:s,wrapClassName:Z},u),v.createElement("ul",{className:"".concat(t,"-operations")},te.map((function(e){var n=e.icon,r=e.onClick,i=e.type,a=e.disabled;return v.createElement("li",{className:w()(Q,o({},"".concat(t,"-operations-operation-disabled"),!!a)),onClick:r,key:i},v.isValidElement(n)?v.cloneElement(n,{className:ee}):n)}))),v.createElement("div",{className:"".concat(t,"-img-wrapper"),style:{transform:"translate3d(".concat(O.x,"px, ").concat(O.y,"px, 0)")}},v.createElement("img",{onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),I.current.deltaX=e.pageX-O.x,I.current.deltaY=e.pageY-O.y,I.current.originX=O.x,I.current.originY=O.y,j(!0))},ref:D,className:"".concat(t,"-img"),src:U,alt:i,style:{transform:"scale3d(".concat(C,", ").concat(C,", 1) rotate(").concat(k,"deg)")}})),K&&v.createElement("div",{className:w()("".concat(t,"-switch-left"),o({},"".concat(t,"-switch-left-disabled"),0===W)),onClick:function(e){e.preventDefault(),e.stopPropagation(),W>0&&H(Y[W-1])}},g),K&&v.createElement("div",{className:w()("".concat(t,"-switch-right"),o({},"".concat(t,"-switch-right-disabled"),W===V-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),W<V-1&&H(Y[W+1])}},y))},zb=0,Fb=function(e){var t=e.src,n=e.alt,i=e.onPreviewClose,a=e.prefixCls,s=void 0===a?"rc-image":a,l=e.previewPrefixCls,c=void 0===l?"".concat(s,"-preview"):l,u=e.placeholder,d=e.fallback,h=e.width,p=e.height,f=e.style,m=e.preview,y=void 0===m||m,b=e.className,C=e.onClick,_=e.onError,x=e.wrapperClassName,k=e.wrapperStyle,P=e.crossOrigin,T=e.decoding,E=e.loading,O=e.referrerPolicy,M=e.sizes,A=e.srcSet,D=e.useMap,I=$e(e,["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap"]),L=u&&!0!==u,N="object"===g(y)?y:{},j=N.src,R=N.visible,z=void 0===R?void 0:R,F=N.onVisibleChange,B=void 0===F?i:F,H=N.getContainer,V=void 0===H?void 0:H,Y=N.mask,W=N.maskClassName,U=N.icons,K=$e(N,["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons"]),G=null!=j?j:t,q=void 0!==z,$=Ge(cn(!!z,{value:z,onChange:B}),2),X=$[0],J=$[1],Z=Ge(Object(v.useState)(L?"loading":"normal"),2),Q=Z[0],ee=Z[1],te=Ge(Object(v.useState)(null),2),ne=te[0],re=te[1],oe="error"===Q,ie=v.useContext(Ab),ae=ie.isPreviewGroup,se=ie.setCurrent,le=ie.setShowPreview,ce=ie.setMousePosition,ue=ie.registerImage,de=Ge(v.useState((function(){return zb+=1})),1)[0],he=y&&!oe,pe=v.useRef(!1),fe=function(){ee("normal")};v.useEffect((function(){return ue(de,G)}),[]),v.useEffect((function(){ue(de,G,he)}),[G,he]),v.useEffect((function(){oe&&ee("normal"),L&&!pe.current&&ee("loading")}),[t]);var me=w()(s,x,o({},"".concat(s,"-error"),oe)),ge=oe&&d?d:G,ve={crossOrigin:P,decoding:T,loading:E,referrerPolicy:O,sizes:M,srcSet:A,useMap:D,alt:n,className:w()("".concat(s,"-img"),o({},"".concat(s,"-img-placeholder"),!0===u),b),style:S({height:p},f)};return v.createElement(v.Fragment,null,v.createElement("div",Object(r.a)({},I,{className:me,onClick:y&&!oe?function(e){if(!q){var t=vb(e.target),n=t.left,r=t.top;ae?(se(de),ce({x:n,y:r})):re({x:n,y:r})}ae?le(!0):J(!0),C&&C(e)}:C,style:S({width:h,height:p},k)}),v.createElement("img",Object(r.a)({},ve,{ref:function(e){pe.current=!1,"loading"===Q&&(null==e?void 0:e.complete)&&(e.naturalWidth||e.naturalHeight)&&(pe.current=!0,fe())}},oe&&d?{src:d}:{onLoad:fe,onError:function(e){_&&_(e),ee("error")},src:t})),"loading"===Q&&v.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},u),Y&&he&&v.createElement("div",{className:w()("".concat(s,"-mask"),W)},Y)),!ae&&he&&v.createElement(Rb,Object(r.a)({"aria-hidden":!X,visible:X,prefixCls:c,onClose:function(e){e.stopPropagation(),J(!1),q||re(null)},mousePosition:ne,src:ge,alt:n,getContainer:V,icons:U},K)))};Fb.PreviewGroup=Ib,Fb.displayName="Image";var Bb=Fb,Hb=q,Vb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Yb=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Vb}))};Yb.displayName="RotateLeftOutlined";var Wb=v.forwardRef(Yb),Ub={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Kb=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ub}))};Kb.displayName="RotateRightOutlined";var Gb=v.forwardRef(Kb),qb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},$b=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:qb}))};$b.displayName="ZoomInOutlined";var Xb=v.forwardRef($b),Jb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Zb=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Jb}))};Zb.displayName="ZoomOutOutlined";var Qb=v.forwardRef(Zb),ew=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},tw={rotateLeft:v.createElement(Wb,null),rotateRight:v.createElement(Gb,null),zoomIn:v.createElement(Xb,null),zoomOut:v.createElement(Qb,null),close:v.createElement(Bi,null),left:v.createElement(qc,null),right:v.createElement(Ks,null)},nw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},rw=function(e){var t=e.prefixCls,n=e.preview,o=nw(e,["prefixCls","preview"]),i=Object(v.useContext)(ae).getPrefixCls,a=i("image",t),s=i(),l=Object(v.useContext)(ae).locale,c=(void 0===l?Hb:l).Image||Hb.Image,u=v.useMemo((function(){if(!1===n)return n;var e="object"===g(n)?n:{};return Object(r.a)(Object(r.a)({mask:v.createElement("div",{className:"".concat(a,"-mask-info")},v.createElement(Zf,null),null==c?void 0:c.preview),icons:tw},e),{transitionName:ea(s,"zoom",e.transitionName),maskTransitionName:ea(s,"fade",e.maskTransitionName)})}),[n,c]);return v.createElement(Bb,Object(r.a)({prefixCls:a,preview:u},o))};rw.PreviewGroup=function(e){var t=e.previewPrefixCls,n=e.preview,o=ew(e,["previewPrefixCls","preview"]),i=v.useContext(ae).getPrefixCls,a=i("image-preview",t),s=i(),l=v.useMemo((function(){if(!1===n)return n;var e="object"===g(n)?n:{};return Object(r.a)(Object(r.a)({},e),{transitionName:ea(s,"zoom",e.transitionName),maskTransitionName:ea(s,"fade",e.maskTransitionName)})}),[n]);return v.createElement(Bb.PreviewGroup,Object(r.a)({preview:l,previewPrefixCls:a,icons:tw},o))};var ow=rw;function iw(){return"function"==typeof BigInt}function aw(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function sw(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function lw(e){var t=String(e);if(sw(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return(null==r?void 0:r[1])&&(n+=r[1].length),n}return t.includes(".")&&uw(t)?t.length-t.indexOf(".")-1:0}function cw(e){var t=String(e);if(sw(e)){if(e>Number.MAX_SAFE_INTEGER)return String(iw()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(iw()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(lw(t))}return aw(t).fullStr}function uw(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var dw=function(){function e(t){i(this,e),this.origin="",(t||0===t)&&String(t).trim()?(this.origin=String(t),this.number=Number(t)):this.empty=!0}return s(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(lw(this.number),lw(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.isInvalidate()?e?"":this.origin:cw(this.number)}}]),e}(),hw=function(){function e(t){if(i(this,e),this.origin="",(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(sw(n)&&(n=Number(n)),uw(n="string"==typeof n?n:cw(n))){var r=aw(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return s(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=aw((this.alignDecimal(r)+n.alignDecimal(r)).toString()),i=o.negativeStr,a=o.trimStr,s="".concat(i).concat(a.padStart(r+1,"0"));return new e("".concat(s.slice(0,-r),".").concat(s.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.isInvalidate()?e?"":this.origin:aw("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}();function pw(e){return iw()?new hw(e):new dw(e)}function fw(e,t,n){if(""===e)return"";var r=aw(e),o=r.negativeStr,i=r.integerStr,a=r.decimalStr,s="".concat(t).concat(a),l="".concat(o).concat(i);if(n>=0){var c=Number(a[n]);return c>=5?fw(pw(e).add("0.".concat("0".repeat(n)).concat(10-c)).toString(),t,n):0===n?l:"".concat(l).concat(t).concat(a.padEnd(n,"0").slice(0,n))}return".0"===s?l:"".concat(l).concat(s)}function mw(e){var t=e.prefixCls,n=e.upNode,i=e.downNode,a=e.upDisabled,s=e.downDisabled,l=e.onStep,c=v.useRef(),u=v.useRef();u.current=l;var d=function(e,t){e.preventDefault(),u.current(t),c.current=setTimeout((function e(){u.current(t),c.current=setTimeout(e,200)}),600)},h=function(){clearTimeout(c.current)};if(v.useEffect((function(){return h}),[]),ln())return null;var p="".concat(t,"-handler"),f=w()(p,"".concat(p,"-up"),o({},"".concat(p,"-up-disabled"),a)),m=w()(p,"".concat(p,"-down"),o({},"".concat(p,"-down-disabled"),s)),g={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return v.createElement("div",{className:"".concat(p,"-wrap")},v.createElement("span",Object(r.a)({},g,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":a,className:f}),n||v.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),v.createElement("span",Object(r.a)({},g,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":s,className:m}),i||v.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var gw=Tn()?v.useLayoutEffect:v.useEffect;function vw(e,t){var n=v.useRef(!1);gw((function(){if(n.current)return e();n.current=!0}),t)}var yw=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},bw=function(e){var t=pw(e);return t.isInvalidate()?null:t},ww=v.forwardRef((function(e,t){var n,i=e.prefixCls,a=void 0===i?"rc-input-number":i,s=e.className,l=e.style,c=e.min,u=e.max,d=e.step,h=void 0===d?1:d,p=e.defaultValue,f=e.value,m=e.disabled,y=e.readOnly,b=e.upHandler,C=e.downHandler,_=e.keyboard,x=e.stringMode,S=e.parser,k=e.formatter,P=e.precision,T=e.decimalSeparator,E=e.onChange,O=e.onInput,M=e.onPressEnter,A=e.onStep,D=$e(e,["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"]),I="".concat(a,"-input"),L=v.useRef(null),j=Ge(v.useState(!1),2),z=j[0],F=j[1],B=v.useRef(!1),H=v.useRef(!1),V=Ge(v.useState((function(){return pw(null!=p?p:f)})),2),Y=V[0],W=V[1];var U=v.useCallback((function(e,t){return P>=0?P:t?void 0:Math.max(lw(e),lw(h))}),[P,h]),K=v.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return T&&(n=n.replace(T,".")),n.replace(/[^\w.-]+/g,"")}),[S,T]),G=v.useCallback((function(e,t){if(k)return k(e);var n="number"==typeof e?cw(e):e;if(!t){var r=U(n,t);if(uw(n)&&(T||r>=0))n=fw(n,T||".",r)}return n}),[k,U,T]),q=Ge(v.useState((function(){var e=null!=p?p:f;return Y.isInvalidate()&&["string","number"].includes(g(e))?Number.isNaN(e)?"":e:G(Y.toString(),!1)})),2),$=q[0],X=q[1];function J(e,t){X(G(e.toString(!1),t))}var Z,Q,ee,te,ne=v.useMemo((function(){return bw(u)}),[u]),re=v.useMemo((function(){return bw(c)}),[c]),oe=v.useMemo((function(){return!(!ne||!Y||Y.isInvalidate())&&ne.lessEquals(Y)}),[ne,Y]),ie=v.useMemo((function(){return!(!re||!Y||Y.isInvalidate())&&Y.lessEquals(re)}),[re,Y]),ae=Ge((Z=L.current,Q=z,ee=Object(v.useRef)(null),[function(){try{var e=Z.selectionStart,t=Z.selectionEnd,n=Z.value,r=n.substring(0,e),o=n.substring(t);ee.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(e){}},function(){if(Z&&ee.current&&Q)try{var e=Z.value,t=ee.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-ee.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],s=e.indexOf(a,o-1);-1!==s&&(i=s+1)}Z.setSelectionRange(i,i)}catch(e){N(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),2),se=ae[0],le=ae[1],ce=function(e){return ne&&!e.lessEquals(ne)?ne:re&&!re.lessEquals(e)?re:null},ue=function(e,t){var n,r=e;if(r.isEmpty()||(r=ce(r)||r),!y&&!m){var o=r.toString(),i=U(o,t);return i>=0&&(r=pw(fw(o,".",i))),r.equals(Y)||(n=r,void 0===f&&W(n),null==E||E(r.isEmpty()?null:yw(x,r)),void 0===f&&J(r,t)),r}return Y},de=function(e){if(se(),X(e),!H.current){var t=pw(K(e));t.isInvalidate()||ue(t,!0)}},he=function(e){var t;if(!(e&&oe||!e&&ie)){B.current=!1;var n=pw(h);e||(n=n.negate());var r=(Y||pw(0)).add(n.toString()),o=ue(r,!1);null==A||A(yw(x,o),{offset:h,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},pe=function(){var e=pw(K($)),t=e;t=e.isNaN()?Y:ue(e,!0),void 0!==f?J(Y,!1):t.isNaN()||J(t,!1)};return vw((function(){Y.isInvalidate()||J(Y,!1)}),[P]),vw((function(){var e=pw(f);W(e),(e.isNaN()||!B.current||k)&&J(e,!1)}),[f]),vw((function(){k&&le()}),[$]),v.createElement("div",{className:w()(a,s,(n={},o(n,"".concat(a,"-focused"),z),o(n,"".concat(a,"-disabled"),m),o(n,"".concat(a,"-readonly"),y),o(n,"".concat(a,"-not-a-number"),Y.isNaN()),o(n,"".concat(a,"-out-of-range"),!Y.isInvalidate()&&(te=Y,!!ce(te))),n)),style:l,onFocus:function(){F(!0)},onBlur:function(){pe(),F(!1)},onKeyDown:function(e){var t=e.which;B.current=!0,t===Je.ENTER&&(H.current||(B.current=!1),pe(),null==M||M(e)),!1!==_&&!H.current&&[Je.UP,Je.DOWN].includes(t)&&(he(Je.UP===t),e.preventDefault())},onKeyUp:function(){B.current=!1},onCompositionStart:function(){H.current=!0},onCompositionEnd:function(){H.current=!1,de(L.current.value)}},v.createElement(mw,{prefixCls:a,upNode:b,downNode:C,upDisabled:oe,downDisabled:ie,onStep:he}),v.createElement("div",{className:"".concat(I,"-wrap")},v.createElement("input",Object(r.a)({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:h},D,{ref:R(L,t),className:I,value:$,onChange:function(e){var t=e.target.value;S||(t=t.replace(/。/g,".")),de(t),null==O||O(t)},disabled:m,readOnly:y}))))}));ww.displayName="InputNumber";var Cw=ww,_w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},xw=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:_w}))};xw.displayName="UpOutlined";var Sw=v.forwardRef(xw),kw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Pw=v.forwardRef((function(e,t){var n,i=v.useContext(ae),a=i.getPrefixCls,s=i.direction,l=v.useContext(Xi),c=e.className,u=e.size,d=e.prefixCls,h=e.bordered,p=void 0===h||h,f=e.readOnly,m=kw(e,["className","size","prefixCls","bordered","readOnly"]),g=a("input-number",d),y=v.createElement(Sw,{className:"".concat(g,"-handler-up-inner")}),b=v.createElement(Ai,{className:"".concat(g,"-handler-down-inner")}),C=u||l,_=w()((o(n={},"".concat(g,"-lg"),"large"===C),o(n,"".concat(g,"-sm"),"small"===C),o(n,"".concat(g,"-rtl"),"rtl"===s),o(n,"".concat(g,"-readonly"),f),o(n,"".concat(g,"-borderless"),!p),n),c);return v.createElement(Cw,Object(r.a)({ref:t,className:_,upHandler:y,downHandler:b,prefixCls:g,readOnly:f},m))})),Tw=ou;Tw.Header=tu,Tw.Footer=nu,Tw.Content=ru,Tw.Sider=du;var Ew=Tw,Ow=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Mw=(hs("small","default","large"),null);var Aw=function(e){c(n,e);var t=m(n);function n(e){var a;i(this,n),(a=t.call(this,e)).debouncifyUpdateSpinning=function(e){var t=(e||a.props).delay;t&&(a.cancelExistingSpin(),a.updateSpinning=Sp()(a.originalUpdateSpinning,t))},a.updateSpinning=function(){var e=a.props.spinning;a.state.spinning!==e&&a.setState({spinning:e})},a.renderSpin=function(e){var t,n=e.getPrefixCls,i=e.direction,s=a.props,l=s.prefixCls,c=s.className,u=s.size,d=s.tip,h=s.wrapperClassName,p=s.style,f=Ow(s,["prefixCls","className","size","tip","wrapperClassName","style"]),m=a.state.spinning,g=n("spin",l),y=w()(g,(o(t={},"".concat(g,"-sm"),"small"===u),o(t,"".concat(g,"-lg"),"large"===u),o(t,"".concat(g,"-spinning"),m),o(t,"".concat(g,"-show-text"),!!d),o(t,"".concat(g,"-rtl"),"rtl"===i),t),c),b=_(f,["spinning","delay","indicator"]),C=v.createElement("div",Object(r.a)({},b,{style:p,className:y}),function(e,t){var n=t.indicator,r="".concat(e,"-dot");return null===n?null:sa(n)?ca(n,{className:w()(n.props.className,r)}):sa(Mw)?ca(Mw,{className:w()(Mw.props.className,r)}):v.createElement("span",{className:w()(r,"".concat(e,"-dot-spin"))},v.createElement("i",{className:"".concat(e,"-dot-item")}),v.createElement("i",{className:"".concat(e,"-dot-item")}),v.createElement("i",{className:"".concat(e,"-dot-item")}),v.createElement("i",{className:"".concat(e,"-dot-item")}))}(g,a.props),d?v.createElement("div",{className:"".concat(g,"-text")},d):null);if(a.isNestedPattern()){var x=w()("".concat(g,"-container"),o({},"".concat(g,"-blur"),m));return v.createElement("div",Object(r.a)({},b,{className:w()("".concat(g,"-nested-loading"),h)}),m&&v.createElement("div",{key:"loading"},C),v.createElement("div",{className:x,key:"container"},a.props.children))}return C};var s=e.spinning,l=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(s,e.delay);return a.state={spinning:s&&!l},a.originalUpdateSpinning=a.updateSpinning,a.debouncifyUpdateSpinning(e),a}return s(n,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||void 0===this.props.children)}},{key:"render",value:function(){return v.createElement(se,null,this.renderSpin)}}],[{key:"setDefaultIndicator",value:function(e){Mw=e}}]),n}(v.Component);Aw.defaultProps={spinning:!0,size:"default",wrapperClassName:""};var Dw=Aw,Iw=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=w()(n,"".concat(n,"-").concat(e.page),(o(t={},"".concat(n,"-active"),e.active),o(t,e.className,!!e.className),o(t,"".concat(n,"-disabled"),!e.page),t));return y.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",y.a.createElement("a",{rel:"nofollow"},e.page)))},Lw=13,Nw=38,jw=40,Rw=function(e){c(n,e);var t=m(n);function n(){var e;i(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,o=n.quickGo,i=n.rootPrefixCls,a=e.state.goInputText;r||""===a||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==Lw&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return s(n,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,a=t.quickGo,s=t.goButton,l=t.selectComponentClass,c=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,h=this.state.goInputText,p="".concat(o,"-options"),f=l,m=null,g=null,v=null;if(!i&&!a)return null;var b=this.getPageSizeOptions();if(i&&f){var w=b.map((function(t,n){return y.a.createElement(f.Option,{key:n,value:t.toString()},(c||e.buildOptionText)(t))}));m=y.a.createElement(f,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(p,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},w)}return a&&(s&&(v="boolean"==typeof s?y.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(p,"-quick-jumper-button")},r.jump_to_confirm):y.a.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),g=y.a.createElement("div",{className:"".concat(p,"-quick-jumper")},r.jump_to,y.a.createElement("input",{disabled:d,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),r.page,v)),y.a.createElement("li",{className:"".concat(p)},m,g)}}]),n}(y.a.Component);Rw.defaultProps={pageSizeOptions:["10","20","50","100"]};var zw=Rw;function Fw(){}function Bw(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Hw=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(Bw(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,o=e||y.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=y.a.createElement(e,S({},r.props))),o},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==r.state.current;var t},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},r.handleKeyDown=function(e){e.keyCode!==Nw&&e.keyCode!==jw||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===Lw?r.handleChange(t):e.keyCode===Nw?r.handleChange(t-1):e.keyCode===jw&&r.handleChange(t+1)},r.changePageSize=function(e){var t=r.state.current,n=Bw(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props.disabled,n=e;if(r.isValid(n)&&!t){var o=Bw(void 0,r.state,r.props);n>o?n=o:n<1&&(n=1),"current"in r.props||r.setState({current:n,currentInputValue:n});var i=r.state.pageSize;return r.props.onChange(n,i),n}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<Bw(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==Lw&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var o=e.onChange!==Fw;"current"in e&&!o&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var a=e.defaultCurrent;"current"in e&&(a=e.current);var s=e.defaultPageSize;return"pageSize"in e&&(s=e.pageSize),a=Math.min(a,Bw(s,void 0,e)),r.state={current:a,currentInputValue:a,pageSize:s},r}return s(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=Bw(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),o=!this.hasPrev();return Object(v.isValidElement)(r)?Object(v.cloneElement)(r,{disabled:o}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),o=!this.hasNext();return Object(v.isValidElement)(r)?Object(v.cloneElement)(r,{disabled:o}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,a=t.style,s=t.disabled,l=t.hideOnSinglePage,c=t.total,u=t.locale,d=t.showQuickJumper,h=t.showLessItems,p=t.showTitle,f=t.showTotal,m=t.simple,g=t.itemRender,b=t.showPrevNextJumpers,C=t.jumpPrevIcon,_=t.jumpNextIcon,x=t.selectComponentClass,S=t.selectPrefixCls,k=t.pageSizeOptions,P=this.state,T=P.current,E=P.pageSize,O=P.currentInputValue;if(!0===l&&c<=E)return null;var M=Bw(void 0,this.state,this.props),A=[],D=null,I=null,L=null,N=null,j=null,R=d&&d.goButton,z=h?1:2,F=T-1>0?T-1:0,B=T+1<M?T+1:M,H=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(m)return R&&(j="boolean"==typeof R?y.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},u.jump_to_confirm):y.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},R),j=y.a.createElement("li",{title:p?"".concat(u.jump_to).concat(T,"/").concat(M):null,className:"".concat(n,"-simple-pager")},j)),y.a.createElement("ul",Object(r.a)({className:w()(n,"".concat(n,"-simple"),o({},"".concat(n,"-disabled"),s),i),style:a,ref:this.savePaginationNode},H),y.a.createElement("li",{title:p?u.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:w()("".concat(n,"-prev"),o({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(F)),y.a.createElement("li",{title:p?"".concat(T,"/").concat(M):null,className:"".concat(n,"-simple-pager")},y.a.createElement("input",{type:"text",value:O,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),y.a.createElement("span",{className:"".concat(n,"-slash")},"/"),M),y.a.createElement("li",{title:p?u.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:w()("".concat(n,"-next"),o({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),j);if(M<=3+2*z){var V={locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:g};M||A.push(y.a.createElement(Iw,Object(r.a)({},V,{key:"noPager",page:M,className:"".concat(n,"-disabled")})));for(var Y=1;Y<=M;Y+=1){var W=T===Y;A.push(y.a.createElement(Iw,Object(r.a)({},V,{key:Y,page:Y,active:W})))}}else{var U=h?u.prev_3:u.prev_5,K=h?u.next_3:u.next_5;b&&(D=y.a.createElement("li",{title:p?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:w()("".concat(n,"-jump-prev"),o({},"".concat(n,"-jump-prev-custom-icon"),!!C))},g(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page"))),I=y.a.createElement("li",{title:p?K:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:w()("".concat(n,"-jump-next"),o({},"".concat(n,"-jump-next-custom-icon"),!!_))},g(this.getJumpNextPage(),"jump-next",this.getItemIcon(_,"next page")))),N=y.a.createElement(Iw,{locale:u,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:M,page:M,active:!1,showTitle:p,itemRender:g}),L=y.a.createElement(Iw,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:g});var G=Math.max(1,T-z),q=Math.min(T+z,M);T-1<=z&&(q=1+2*z),M-T<=z&&(G=M-2*z);for(var $=G;$<=q;$+=1){var X=T===$;A.push(y.a.createElement(Iw,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$,page:$,active:X,showTitle:p,itemRender:g}))}T-1>=2*z&&3!==T&&(A[0]=Object(v.cloneElement)(A[0],{className:"".concat(n,"-item-after-jump-prev")}),A.unshift(D)),M-T>=2*z&&T!==M-2&&(A[A.length-1]=Object(v.cloneElement)(A[A.length-1],{className:"".concat(n,"-item-before-jump-next")}),A.push(I)),1!==G&&A.unshift(L),q!==M&&A.push(N)}var J=null;f&&(J=y.a.createElement("li",{className:"".concat(n,"-total-text")},f(c,[0===c?0:(T-1)*E+1,T*E>c?c:T*E])));var Z=!this.hasPrev()||!M,Q=!this.hasNext()||!M;return y.a.createElement("ul",Object(r.a)({className:w()(n,i,o({},"".concat(n,"-disabled"),s)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},H),J,y.a.createElement("li",{title:p?u.prev_page:null,onClick:this.prev,tabIndex:Z?null:0,onKeyPress:this.runIfEnterPrev,className:w()("".concat(n,"-prev"),o({},"".concat(n,"-disabled"),Z)),"aria-disabled":Z},this.renderPrev(F)),A,y.a.createElement("li",{title:p?u.next_page:null,onClick:this.next,tabIndex:Q?null:0,onKeyPress:this.runIfEnterNext,className:w()("".concat(n,"-next"),o({},"".concat(n,"-disabled"),Q)),"aria-disabled":Q},this.renderNext(B)),y.a.createElement(zw,{disabled:s,locale:u,rootPrefixCls:n,selectComponentClass:x,selectPrefixCls:S,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:T,pageSize:E,pageSizeOptions:k,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=Bw(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(y.a.Component);Hw.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Fw,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Fw,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var Vw=Hw,Yw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ww=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Yw}))};Ww.displayName="DoubleLeftOutlined";var Uw=v.forwardRef(Ww),Kw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Gw=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Kw}))};Gw.displayName="DoubleRightOutlined";var qw=v.forwardRef(Gw),$w=function(e){return v.createElement(ia,Object(r.a)({size:"small"},e))};$w.Option=ia.Option;var Xw=$w,Jw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Zw=function(e){var t=e.prefixCls,n=e.selectPrefixCls,i=e.className,a=e.size,s=e.locale,l=Jw(e,["prefixCls","selectPrefixCls","className","size","locale"]),c=qa().xs,u=v.useContext(ae),d=u.getPrefixCls,h=u.direction,p=d("pagination",t),f=function(e){var t=Object(r.a)(Object(r.a)({},e),s),u="small"===a||!(!c||a||!l.responsive),f=d("select",n),m=w()(o({mini:u},"".concat(p,"-rtl"),"rtl"===h),i);return v.createElement(Vw,Object(r.a)({},l,{prefixCls:p,selectPrefixCls:f},function(){var e=v.createElement("span",{className:"".concat(p,"-item-ellipsis")},"•••"),t=v.createElement("button",{className:"".concat(p,"-item-link"),type:"button",tabIndex:-1},v.createElement(qc,null)),n=v.createElement("button",{className:"".concat(p,"-item-link"),type:"button",tabIndex:-1},v.createElement(Ks,null)),r=v.createElement("a",{className:"".concat(p,"-item-link")},v.createElement("div",{className:"".concat(p,"-item-container")},v.createElement(Uw,{className:"".concat(p,"-item-link-icon")}),e)),o=v.createElement("a",{className:"".concat(p,"-item-link")},v.createElement("div",{className:"".concat(p,"-item-container")},v.createElement(qw,{className:"".concat(p,"-item-link-icon")}),e));if("rtl"===h){var i=[n,t];t=i[0],n=i[1];var a=[o,r];r=a[0],o=a[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:o}}(),{className:m,selectComponentClass:u?Xw:ia,locale:t}))};return v.createElement(J,{componentName:"Pagination",defaultLocale:V},f)},Qw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},eC=function(e){var t,n=e.prefixCls,i=e.children,a=e.actions,s=e.extra,l=e.className,c=e.colStyle,u=Qw(e,["prefixCls","children","actions","extra","className","colStyle"]),d=v.useContext(rC),h=d.grid,p=d.itemLayout,f=v.useContext(ae).getPrefixCls,m=f("list",n),g=a&&a.length>0&&v.createElement("ul",{className:"".concat(m,"-item-action"),key:"actions"},a.map((function(e,t){return v.createElement("li",{key:"".concat(m,"-item-action-").concat(t)},e,t!==a.length-1&&v.createElement("em",{className:"".concat(m,"-item-action-split")}))}))),y=h?"div":"li",b=v.createElement(y,Object(r.a)({},u,{className:w()("".concat(m,"-item"),o({},"".concat(m,"-item-no-flex"),!("vertical"===p?s:(v.Children.forEach(i,(function(e){"string"==typeof e&&(t=!0)})),!(t&&v.Children.count(i)>1)))),l)}),"vertical"===p&&s?[v.createElement("div",{className:"".concat(m,"-item-main"),key:"content"},i,g),v.createElement("div",{className:"".concat(m,"-item-extra"),key:"extra"},s)]:[i,g,ca(s,{key:"extra"})]);return h?v.createElement(lp,{flex:1,style:c},b):b};eC.Meta=function(e){var t=e.prefixCls,n=e.className,o=e.avatar,i=e.title,a=e.description,s=Qw(e,["prefixCls","className","avatar","title","description"]),l=(0,v.useContext(ae).getPrefixCls)("list",t),c=w()("".concat(l,"-item-meta"),n),u=v.createElement("div",{className:"".concat(l,"-item-meta-content")},i&&v.createElement("h4",{className:"".concat(l,"-item-meta-title")},i),a&&v.createElement("div",{className:"".concat(l,"-item-meta-description")},a));return v.createElement("div",Object(r.a)({},s,{className:c}),o&&v.createElement("div",{className:"".concat(l,"-item-meta-avatar")},o),(i||a)&&u)};var tC=eC,nC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},rC=v.createContext({});rC.Consumer;function oC(e){var t,n=e.pagination,i=void 0!==n&&n,a=e.prefixCls,s=e.bordered,l=void 0!==s&&s,c=e.split,u=void 0===c||c,d=e.className,h=e.children,p=e.itemLayout,f=e.loadMore,m=e.grid,y=e.dataSource,b=void 0===y?[]:y,C=e.size,_=e.header,x=e.footer,S=e.loading,k=void 0!==S&&S,P=e.rowKey,T=e.renderItem,E=e.locale,O=nC(e,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),M=i&&"object"===g(i)?i:{},A=Ge(v.useState(M.defaultCurrent||1),2),D=A[0],I=A[1],L=Ge(v.useState(M.defaultPageSize||10),2),N=L[0],j=L[1],R=v.useContext(ae),z=R.getPrefixCls,F=R.renderEmpty,B=R.direction,H={},V=function(e){return function(t,n){I(t),j(n),i&&i[e]&&i[e](t,n)}},Y=V("onChange"),W=V("onShowSizeChange"),U=z("list",a),K=k;"boolean"==typeof K&&(K={spinning:K});var G=K&&K.spinning,q="";switch(C){case"large":q="lg";break;case"small":q="sm"}var $=w()(U,(o(t={},"".concat(U,"-vertical"),"vertical"===p),o(t,"".concat(U,"-").concat(q),q),o(t,"".concat(U,"-split"),u),o(t,"".concat(U,"-bordered"),l),o(t,"".concat(U,"-loading"),G),o(t,"".concat(U,"-grid"),!!m),o(t,"".concat(U,"-something-after-last-item"),!!(f||i||x)),o(t,"".concat(U,"-rtl"),"rtl"===B),t),d),X=Object(r.a)(Object(r.a)(Object(r.a)({},{current:1,total:0}),{total:b.length,current:D,pageSize:N}),i||{}),J=Math.ceil(X.total/X.pageSize);X.current>J&&(X.current=J);var Z=i?v.createElement("div",{className:"".concat(U,"-pagination")},v.createElement(Zw,Object(r.a)({},X,{onChange:Y,onShowSizeChange:W}))):null,Q=de(b);i&&b.length>(X.current-1)*X.pageSize&&(Q=de(b).splice((X.current-1)*X.pageSize,X.pageSize));var ee=qa(),te=v.useMemo((function(){for(var e=0;e<Va.length;e+=1){var t=Va[e];if(ee[t])return t}}),[ee]),ne=v.useMemo((function(){if(m){var e=te&&m[te]?m[te]:m.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}}),[null==m?void 0:m.column,te]),re=G&&v.createElement("div",{style:{minHeight:53}});if(Q.length>0){var oe=Q.map((function(e,t){return function(e,t){return T?((n="function"==typeof P?P(e):"string"==typeof P?e[P]:e.key)||(n="list-item-".concat(t)),H[t]=n,T(e,t)):null;var n}(e,t)})),ie=v.Children.map(oe,(function(e,t){return v.createElement("div",{key:H[t],style:ne},e)}));re=m?v.createElement(rp,{gutter:m.gutter},ie):v.createElement("ul",{className:"".concat(U,"-items")},oe)}else h||G||(re=function(e,t){return v.createElement("div",{className:"".concat(e,"-empty-text")},E&&E.emptyText||t("List"))}(U,F));var se=X.position||"bottom";return v.createElement(rC.Provider,{value:{grid:m,itemLayout:p}},v.createElement("div",Object(r.a)({className:$},O),("top"===se||"both"===se)&&Z,_&&v.createElement("div",{className:"".concat(U,"-header")},_),v.createElement(Dw,K,re,h),x&&v.createElement("div",{className:"".concat(U,"-footer")},x),f||("bottom"===se||"both"===se)&&Z))}oC.Item=tC;var iC=oC,aC=v.createContext(null),sC=aC.Provider,lC=aC.Consumer,cC=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).renderDropdown=function(t){var n=t.notFoundContent,r=t.activeIndex,o=t.setActiveIndex,i=t.selectOption,a=t.onFocus,s=t.onBlur,l=e.props,c=l.prefixCls,u=l.options,d=u[r]||{};return v.createElement(Fc,{prefixCls:"".concat(c,"-menu"),activeKey:d.key,onSelect:function(e){var t=e.key,n=u.find((function(e){return e.key===t}));i(n)},onFocus:a,onBlur:s},u.map((function(e,t){var n=e.key,r=e.disabled,i=e.children,a=e.className,s=e.style;return v.createElement(Lc,{key:n,disabled:r,className:a,style:s,onMouseEnter:function(){o(t)}},i)})),!u.length&&v.createElement(Lc,{disabled:!0},n))},e}return s(n,[{key:"render",value:function(){return v.createElement(lC,null,this.renderDropdown)}}]),n}(v.Component),uC={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},dC=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).getDropdownPrefix=function(){return"".concat(e.props.prefixCls,"-dropdown")},e.getDropdownElement=function(){var t=e.props.options;return v.createElement(cC,{prefixCls:e.getDropdownPrefix(),options:t})},e.getDropDownPlacement=function(){var t=e.props,n=t.placement;return"rtl"===t.direction?"top"===n?"topLeft":"bottomLeft":"top"===n?"topRight":"bottomRight"},e}return s(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.visible,r=e.transitionName,o=e.getPopupContainer,i=this.getDropdownElement();return v.createElement(Io,{prefixCls:this.getDropdownPrefix(),popupVisible:n,popup:i,popupPlacement:this.getDropDownPlacement(),popupTransitionName:r,builtinPlacements:uC,getPopupContainer:o},t)}}]),n}(v.Component),hC=function(){return null};function pC(e){return(e||"").toLowerCase()}function fC(e,t){var n=t.measureLocation,r=t.prefix,o=t.targetText,i=t.selectionStart,a=t.split,s=e.slice(0,n);s[s.length-a.length]===a&&(s=s.slice(0,s.length-a.length)),s&&(s="".concat(s).concat(a));var l=function(e,t,n){var r=e[0];if(!r||r===n)return e;for(var o=e,i=t.length,a=0;a<i;a+=1){if(pC(o[a])!==pC(t[a])){o=o.slice(a);break}a===i-1&&(o=o.slice(i))}return o}(e.slice(i),o.slice(i-n-r.length),a);l.slice(0,a.length)===a&&(l=l.slice(a.length));var c="".concat(s).concat(r).concat(o).concat(a);return{text:"".concat(c).concat(l),selectionLocation:c.length}}var mC=function(e){c(n,e);var t=m(n);function n(e){var r;return i(this,n),(r=t.call(this,e)).focusId=void 0,r.triggerChange=function(e){var t=r.props.onChange;"value"in r.props||r.setState({value:e}),t&&t(e)},r.onChange=function(e){var t=e.target.value;r.triggerChange(t)},r.onKeyDown=function(e){var t=e.which,n=r.state,o=n.activeIndex;if(n.measuring)if(t===Je.UP||t===Je.DOWN){var i=r.getOptions().length,a=(o+(t===Je.UP?-1:1)+i)%i;r.setState({activeIndex:a}),e.preventDefault()}else if(t===Je.ESC)r.stopMeasure();else if(t===Je.ENTER){e.preventDefault();var s=r.getOptions();if(!s.length)return void r.stopMeasure();var l=s[o];r.selectOption(l)}},r.onKeyUp=function(e){var t,n,o=e.key,i=e.which,a=r.state,s=a.measureText,l=a.measuring,c=r.props,u=c.prefix,d=void 0===u?"":u,h=c.onSearch,p=c.validateSearch,f=e.target,m=(n=(t=f).selectionStart,t.value.slice(0,n)),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Array.isArray(t)?t:[t];return n.reduce((function(t,n){var r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t}),{location:-1,prefix:""})}(m,d),v=g.location,y=g.prefix;if(-1===[Je.ESC,Je.UP,Je.DOWN,Je.ENTER].indexOf(i))if(-1!==v){var b=m.slice(v+y.length),w=p(b,r.props),C=!!r.getOptions(b).length;w?(o===y||"Shift"===o||l||b!==s&&C)&&r.startMeasure(b,y,v):l&&r.stopMeasure(),h&&w&&h(b,y)}else l&&r.stopMeasure()},r.onPressEnter=function(e){var t=r.state.measuring,n=r.props.onPressEnter;!t&&n&&n(e)},r.onInputFocus=function(e){r.onFocus(e)},r.onInputBlur=function(e){r.onBlur(e)},r.onDropdownFocus=function(){r.onFocus()},r.onDropdownBlur=function(){r.onBlur()},r.onFocus=function(e){window.clearTimeout(r.focusId);var t=r.state.isFocus,n=r.props.onFocus;!t&&e&&n&&n(e),r.setState({isFocus:!0})},r.onBlur=function(e){r.focusId=window.setTimeout((function(){var t=r.props.onBlur;r.setState({isFocus:!1}),r.stopMeasure(),t&&t(e)}),0)},r.selectOption=function(e){var t=r.state,n=t.value,o=t.measureLocation,i=t.measurePrefix,a=r.props,s=a.split,l=a.onSelect,c=e.value,u=fC(n,{measureLocation:o,targetText:void 0===c?"":c,prefix:i,selectionStart:r.textarea.selectionStart,split:s}),d=u.text,h=u.selectionLocation;r.triggerChange(d),r.stopMeasure((function(){!function(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}(r.textarea,h)})),l&&l(e,i)},r.setActiveIndex=function(e){r.setState({activeIndex:e})},r.setTextAreaRef=function(e){var t;r.textarea=null==e||null===(t=e.resizableTextArea)||void 0===t?void 0:t.textArea},r.setMeasureRef=function(e){r.measure=e},r.getOptions=function(e){var t=e||r.state.measureText||"",n=r.props,o=n.children,i=n.filterOption;return O(o).map((function(e){var t=e.props,n=e.key;return S(S({},t),{},{key:n||t.value})})).filter((function(e){return!1===i||i(t,e)}))},r.state={value:e.defaultValue||e.value||"",measuring:!1,measureLocation:0,measureText:null,measurePrefix:"",activeIndex:0,isFocus:!1},r}return s(n,[{key:"componentDidUpdate",value:function(){this.state.measuring&&(this.measure.scrollTop=this.textarea.scrollTop)}},{key:"startMeasure",value:function(e,t,n){this.setState({measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})}},{key:"stopMeasure",value:function(e){this.setState({measuring:!1,measureLocation:0,measureText:null},e)}},{key:"focus",value:function(){this.textarea.focus()}},{key:"blur",value:function(){this.textarea.blur()}},{key:"render",value:function(){var e=this.state,t=e.value,n=e.measureLocation,r=e.measurePrefix,o=e.measuring,i=e.activeIndex,a=this.props,s=a.prefixCls,l=a.placement,c=a.direction,u=a.transitionName,d=a.className,h=a.style,p=a.autoFocus,f=a.notFoundContent,m=a.getPopupContainer,g=function(e){for(var t=S({},e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){delete t[e]})),t}($e(a,["prefixCls","placement","direction","transitionName","className","style","autoFocus","notFoundContent","getPopupContainer"]),"value","defaultValue","prefix","split","children","validateSearch","filterOption","onSelect","onSearch"),y=o?this.getOptions():[];return v.createElement("div",{className:w()(s,d),style:h},v.createElement(Kf,Object.assign({autoFocus:p,ref:this.setTextAreaRef,value:t},g,{onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onPressEnter:this.onPressEnter,onFocus:this.onInputFocus,onBlur:this.onInputBlur})),o&&v.createElement("div",{ref:this.setMeasureRef,className:"".concat(s,"-measure")},t.slice(0,n),v.createElement(sC,{value:{notFoundContent:f,activeIndex:i,setActiveIndex:this.setActiveIndex,selectOption:this.selectOption,onFocus:this.onDropdownFocus,onBlur:this.onDropdownBlur}},v.createElement(dC,{prefixCls:s,transitionName:u,placement:l,direction:c,options:y,visible:!0,getPopupContainer:m},v.createElement("span",null,r))),t.slice(n+r.length)))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};return"value"in e&&e.value!==t.value&&(n.value=e.value||""),n}}]),n}(v.Component);mC.Option=hC,mC.defaultProps={prefixCls:"rc-mentions",prefix:"@",split:" ",validateSearch:function(e,t){var n=t.split;return!n||-1===e.indexOf(n)},filterOption:function(e,t){var n=t.value,r=void 0===n?"":n,o=e.toLowerCase();return-1!==r.toLowerCase().indexOf(o)},notFoundContent:"Not Found",rows:1};var gC=mC,vC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},yC=gC.Option;function bC(){return!0}var wC=function(e,t){var n,i=e.prefixCls,a=e.className,s=e.disabled,l=e.loading,c=e.filterOption,u=e.children,d=e.notFoundContent,h=vC(e,["prefixCls","className","disabled","loading","filterOption","children","notFoundContent"]),p=Ge(v.useState(!1),2),f=p[0],m=p[1],g=R(t,v.useRef()),y=v.useContext(ae),b=y.getPrefixCls,C=y.renderEmpty,_=y.direction,x=b("mentions",i),S=w()((o(n={},"".concat(x,"-disabled"),s),o(n,"".concat(x,"-focused"),f),o(n,"".concat(x,"-rtl"),"rtl"===_),n),a);return v.createElement(gC,Object(r.a)({prefixCls:x,notFoundContent:void 0!==d?d:C("Select"),className:S,disabled:s,direction:_},h,{filterOption:l?bC:c,onFocus:function(){h.onFocus&&h.onFocus.apply(h,arguments),m(!0)},onBlur:function(){h.onBlur&&h.onBlur.apply(h,arguments),m(!1)},ref:g}),l?v.createElement(yC,{value:"ANTD_SEARCHING",disabled:!0},v.createElement(Dw,{size:"small"})):u)},CC=v.forwardRef(wC);CC.displayName="Mentions",CC.Option=yC,CC.getMentions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=t||{},r=n.prefix,o=void 0===r?"@":r,i=n.split,a=void 0===i?" ":i,s=Array.isArray(o)?o:[o];return e.split(a).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return s.some((function(n){return e.slice(0,n.length)===n&&(t=n,!0)})),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((function(e){return!!e&&!!e.value}))};var _C=CC;var xC=function(e){var t=v.useRef(!1),n=v.useRef(),o=Ge(v.useState(!1),2),i=o[0],a=o[1];v.useEffect((function(){var t;if(e.autoFocus){var r=n.current;t=setTimeout((function(){return r.focus()}))}return function(){t&&clearTimeout(t)}}),[]);var s=e.type,l=e.children,c=e.prefixCls,u=e.buttonProps;return v.createElement(vl,Object(r.a)({},fl(s),{onClick:function(){var n=e.actionFn,r=e.closeModal;if(!t.current)if(t.current=!0,n){var o;if(n.length)o=n(r),t.current=!1;else if(!(o=n()))return void r();!function(n){var r=e.closeModal;n&&n.then&&(a(!0),n.then((function(){r.apply(void 0,arguments)}),(function(e){console.error(e),a(!1),t.current=!1})))}(o)}else r()},loading:i,prefixCls:c},u,{ref:n}),l)},SC=function(e){var t=e.icon,n=e.onCancel,r=e.onOk,i=e.close,a=e.zIndex,s=e.afterClose,l=e.visible,c=e.keyboard,u=e.centered,d=e.getContainer,h=e.maskStyle,p=e.okText,f=e.okButtonProps,m=e.cancelText,g=e.cancelButtonProps,y=e.direction,b=e.prefixCls,C=e.rootPrefixCls,_=e.bodyStyle,x=e.closable,S=void 0!==x&&x,k=e.closeIcon,P=e.modalRender,T=e.focusTriggerAfterClose;aa(!("string"==typeof t&&t.length>2),"Modal","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(t,"` at https://ant.design/components/icon"));var E=e.okType||"primary",O="".concat(b,"-confirm"),M=!("okCancel"in e)||e.okCancel,A=e.width||416,D=e.style||{},I=void 0===e.mask||e.mask,L=void 0!==e.maskClosable&&e.maskClosable,N=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),j=w()(O,"".concat(O,"-").concat(e.type),o({},"".concat(O,"-rtl"),"rtl"===y),e.className),R=M&&v.createElement(xC,{actionFn:n,closeModal:i,autoFocus:"cancel"===N,buttonProps:g,prefixCls:"".concat(C,"-btn")},m);return v.createElement(HC,{prefixCls:b,className:j,wrapClassName:w()(o({},"".concat(O,"-centered"),!!e.centered)),onCancel:function(){return i({triggerCancel:!0})},visible:l,title:"",footer:"",transitionName:ea(C,"zoom",e.transitionName),maskTransitionName:ea(C,"fade",e.maskTransitionName),mask:I,maskClosable:L,maskStyle:h,style:D,width:A,zIndex:a,afterClose:s,keyboard:c,centered:u,getContainer:d,closable:S,closeIcon:k,modalRender:P,focusTriggerAfterClose:T},v.createElement("div",{className:"".concat(O,"-body-wrapper")},v.createElement(vv,{prefixCls:C},v.createElement("div",{className:"".concat(O,"-body"),style:_},t,void 0===e.title?null:v.createElement("span",{className:"".concat(O,"-title")},e.title),v.createElement("div",{className:"".concat(O,"-content")},e.content))),v.createElement("div",{className:"".concat(O,"-btns")},R,v.createElement(xC,{type:E,actionFn:r,closeModal:i,autoFocus:"ok"===N,buttonProps:f,prefixCls:"".concat(C,"-btn")},p))))},kC=function(e,t){var n=e.afterClose,o=e.config,i=Ge(v.useState(!0),2),a=i[0],s=i[1],l=Ge(v.useState(o),2),c=l[0],u=l[1],d=v.useContext(ae),h=d.direction,p=d.getPrefixCls,f=p("modal"),m=p();function g(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.some((function(e){return e&&e.triggerCancel}));c.onCancel&&r&&c.onCancel()}return v.useImperativeHandle(t,(function(){return{destroy:g,update:function(e){u((function(t){return Object(r.a)(Object(r.a)({},t),e)}))}}})),v.createElement(J,{componentName:"Modal",defaultLocale:q.Modal},(function(e){return v.createElement(SC,Object(r.a)({prefixCls:f,rootPrefixCls:m},c,{close:g,visible:a,afterClose:n,okText:c.okText||(c.okCancel?e.okText:e.justOkText),direction:h,cancelText:c.cancelText||e.cancelText}))}))},PC=v.forwardRef(kC),TC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},EC="";function OC(e){var t=document.createElement("div");document.body.appendChild(t);var n=Object(r.a)(Object(r.a)({},e),{close:a,visible:!0});function o(){var n=k.unmountComponentAtNode(t);n&&t.parentNode&&t.parentNode.removeChild(t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=o.some((function(e){return e&&e.triggerCancel}));e.onCancel&&s&&e.onCancel.apply(e,o);for(var l=0;l<FC.length;l++){var c=FC[l];if(c===a){FC.splice(l,1);break}}}function i(e){var n=e.okText,o=e.cancelText,i=e.prefixCls,a=TC(e,["okText","cancelText","prefixCls"]);setTimeout((function(){var e=_g(),s=(0,fv().getPrefixCls)(void 0,EC),l=i||"".concat(s,"-modal");k.render(v.createElement(SC,Object(r.a)({},a,{prefixCls:l,rootPrefixCls:s,okText:n||(a.okCancel?e.okText:e.justOkText),cancelText:o||e.cancelText})),t)}))}function a(){for(var t=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];i(n=Object(r.a)(Object(r.a)({},n),{visible:!1,afterClose:function(){"function"==typeof e.afterClose&&e.afterClose(),o.apply(t,s)}}))}return i(n),FC.push(a),{destroy:a,update:function(e){i(n="function"==typeof e?e(n):Object(r.a)(Object(r.a)({},n),e))}}}function MC(e){return Object(r.a)(Object(r.a)({icon:v.createElement(wa,null),okCancel:!1},e),{type:"warning"})}function AC(e){return Object(r.a)(Object(r.a)({icon:v.createElement(xa,null),okCancel:!1},e),{type:"info"})}function DC(e){return Object(r.a)(Object(r.a)({icon:v.createElement(va,null),okCancel:!1},e),{type:"success"})}function IC(e){return Object(r.a)(Object(r.a)({icon:v.createElement(Pa,null),okCancel:!1},e),{type:"error"})}function LC(e){return Object(r.a)(Object(r.a)({icon:v.createElement(wa,null),okCancel:!0},e),{type:"confirm"})}var NC=0,jC=v.memo(v.forwardRef((function(e,t){var n=function(){var e=Ge(v.useState([]),2),t=e[0],n=e[1];return[t,v.useCallback((function(e){return n((function(t){return[].concat(de(t),[e])})),function(){n((function(t){return t.filter((function(t){return t!==e}))}))}}),[])]}(),r=Ge(n,2),o=r[0],i=r[1];return v.useImperativeHandle(t,(function(){return{patchElement:i}}),[]),v.createElement(v.Fragment,null,o)})));var RC,zC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},FC=[];Zh()&&document.documentElement.addEventListener("click",(function(e){RC={x:e.pageX,y:e.pageY},setTimeout((function(){RC=null}),100)}),!0);var BC=function(e){var t,n=v.useContext(ae),i=n.getPopupContainer,a=n.getPrefixCls,s=n.direction,l=function(t){var n=e.onCancel;null==n||n(t)},c=function(t){var n=e.onOk;null==n||n(t)},u=function(t){var n=e.okText,o=e.okType,i=e.cancelText,a=e.confirmLoading;return v.createElement(v.Fragment,null,v.createElement(vl,Object(r.a)({onClick:l},e.cancelButtonProps),i||t.cancelText),v.createElement(vl,Object(r.a)({},fl(o),{loading:a,onClick:c},e.okButtonProps),n||t.okText))},d=e.prefixCls,h=e.footer,p=e.visible,f=e.wrapClassName,m=e.centered,g=e.getContainer,y=e.closeIcon,b=e.focusTriggerAfterClose,C=void 0===b||b,_=zC(e,["prefixCls","footer","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),x=a("modal",d),S=a(),k=v.createElement(J,{componentName:"Modal",defaultLocale:_g()},u),P=v.createElement("span",{className:"".concat(x,"-close-x")},y||v.createElement(Bi,{className:"".concat(x,"-close-icon")})),T=w()(f,(o(t={},"".concat(x,"-centered"),!!m),o(t,"".concat(x,"-wrap-rtl"),"rtl"===s),t));return v.createElement(Eb,Object(r.a)({},_,{getContainer:void 0===g?i:g,prefixCls:x,wrapClassName:T,footer:void 0===h?k:h,visible:p,mousePosition:RC,onClose:l,closeIcon:P,focusTriggerAfterClose:C,transitionName:ea(S,"zoom",e.transitionName),maskTransitionName:ea(S,"fade",e.maskTransitionName)}))};BC.useModal=function(){var e=v.useRef(null),t=Ge(v.useState([]),2),n=t[0],r=t[1];v.useEffect((function(){n.length&&(de(n).forEach((function(e){e()})),r([]))}),[n]);var o=v.useCallback((function(t){return function(n){var o;NC+=1;var i,a=v.createRef(),s=v.createElement(PC,{key:"modal-".concat(NC),config:t(n),ref:a,afterClose:function(){i()}});return i=null===(o=e.current)||void 0===o?void 0:o.patchElement(s),{destroy:function(){function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r((function(t){return[].concat(de(t),[e])}))},update:function(e){function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r((function(e){return[].concat(de(e),[t])}))}}}}),[]);return[v.useMemo((function(){return{info:o(AC),success:o(DC),error:o(IC),warning:o(MC),confirm:o(LC)}}),[]),v.createElement(jC,{ref:e})]},BC.defaultProps={width:520,confirmLoading:!1,visible:!1,okType:"primary"};var HC=BC;function VC(e){return OC(MC(e))}var YC=HC;YC.info=function(e){return OC(AC(e))},YC.success=function(e){return OC(DC(e))},YC.error=function(e){return OC(IC(e))},YC.warning=VC,YC.warn=VC,YC.confirm=function(e){return OC(LC(e))},YC.destroyAll=function(){for(;FC.length;){var e=FC.pop();e&&e()}},YC.config=function(e){var t=e.rootPrefixCls;aa(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),EC=t};var WC=YC,UC=function(e){var t=e.prefixCls,n=e.className,o=e.width,i=e.style;return v.createElement("h3",{className:w()(t,n),style:Object(r.a)({width:o},i)})},KC=function(e){var t=function(t){var n=e.width,r=e.rows,o=void 0===r?2:r;return Array.isArray(n)?n[t]:o-1===t?n:void 0},n=e.prefixCls,r=e.className,o=e.style,i=e.rows,a=de(Array(i)).map((function(e,n){return v.createElement("li",{key:n,style:{width:t(n)}})}));return v.createElement("ul",{className:w()(n,r),style:o},a)},GC=function(e){var t,n,i=e.prefixCls,a=e.className,s=e.style,l=e.size,c=e.shape,u=w()((o(t={},"".concat(i,"-lg"),"large"===l),o(t,"".concat(i,"-sm"),"small"===l),t)),d=w()((o(n={},"".concat(i,"-circle"),"circle"===c),o(n,"".concat(i,"-square"),"square"===c),o(n,"".concat(i,"-round"),"round"===c),n)),h="number"==typeof l?{width:l,height:l,lineHeight:"".concat(l,"px")}:{};return v.createElement("span",{className:w()(i,u,d,a),style:Object(r.a)(Object(r.a)({},h),s)})},qC=function(e){var t=function(t){var n=t.getPrefixCls,i=e.prefixCls,a=e.className,s=e.active,l=n("skeleton",i),c=_(e,["prefixCls"]),u=w()(l,"".concat(l,"-element"),o({},"".concat(l,"-active"),s),a);return v.createElement("div",{className:u},v.createElement(GC,Object(r.a)({prefixCls:"".concat(l,"-avatar")},c)))};return v.createElement(se,null,t)};qC.defaultProps={size:"default",shape:"circle"};var $C=qC,XC=function(e){var t=function(t){var n=t.getPrefixCls,i=e.prefixCls,a=e.className,s=e.active,l=n("skeleton",i),c=_(e,["prefixCls"]),u=w()(l,"".concat(l,"-element"),o({},"".concat(l,"-active"),s),a);return v.createElement("div",{className:u},v.createElement(GC,Object(r.a)({prefixCls:"".concat(l,"-button")},c)))};return v.createElement(se,null,t)};XC.defaultProps={size:"default"};var JC=XC,ZC=function(e){var t=function(t){var n=t.getPrefixCls,i=e.prefixCls,a=e.className,s=e.active,l=n("skeleton",i),c=_(e,["prefixCls"]),u=w()(l,"".concat(l,"-element"),o({},"".concat(l,"-active"),s),a);return v.createElement("div",{className:u},v.createElement(GC,Object(r.a)({prefixCls:"".concat(l,"-input")},c)))};return v.createElement(se,null,t)};ZC.defaultProps={size:"default"};var QC=ZC,e_=function(e){var t=function(t){var n=t.getPrefixCls,r=e.prefixCls,o=e.className,i=e.style,a=n("skeleton",r),s=w()(a,"".concat(a,"-element"),o);return v.createElement("div",{className:s},v.createElement("div",{className:w()("".concat(a,"-image"),o),style:i},v.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(a,"-image-svg")},v.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(a,"-image-path")}))))};return v.createElement(se,null,t)};function t_(e){return e&&"object"===g(e)?e:{}}var n_=function(e){var t=function(t){var n=t.getPrefixCls,i=t.direction,a=e.prefixCls,s=e.loading,l=e.className,c=e.children,u=e.avatar,d=e.title,h=e.paragraph,p=e.active,f=e.round,m=n("skeleton",a);if(s||!("loading"in e)){var g,y,b,C=!!u,_=!!d,x=!!h;if(C){var S=Object(r.a)(Object(r.a)({prefixCls:"".concat(m,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(_,x)),t_(u));y=v.createElement("div",{className:"".concat(m,"-header")},v.createElement(GC,S))}if(_||x){var k,P;if(_){var T=Object(r.a)(Object(r.a)({prefixCls:"".concat(m,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(C,x)),t_(d));k=v.createElement(UC,T)}if(x){var E=Object(r.a)(Object(r.a)({prefixCls:"".concat(m,"-paragraph")},function(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(C,_)),t_(h));P=v.createElement(KC,E)}b=v.createElement("div",{className:"".concat(m,"-content")},k,P)}var O=w()(m,(o(g={},"".concat(m,"-with-avatar"),C),o(g,"".concat(m,"-active"),p),o(g,"".concat(m,"-rtl"),"rtl"===i),o(g,"".concat(m,"-round"),f),g),l);return v.createElement("div",{className:O},y,b)}return c};return v.createElement(se,null,t)};n_.defaultProps={avatar:!1,title:!0,paragraph:!0},n_.Button=JC,n_.Avatar=$C,n_.Input=QC,n_.Image=e_;var r_=n_,o_=n(639),i_=n.n(o_),a_=function(e){var t,n=e.value,r=e.formatter,o=e.precision,i=e.decimalSeparator,a=e.groupSeparator,s=void 0===a?"":a,l=e.prefixCls;if("function"==typeof r)t=r(n);else{var c=String(n),u=c.match(/^(-?)(\d*)(\.(\d+))?$/);if(u&&"-"!==c){var d=u[1],h=u[2]||"0",p=u[4]||"";h=h.replace(/\B(?=(\d{3})+(?!\d))/g,s),"number"==typeof o&&(p=i_()(p,o,"0").slice(0,o)),p&&(p="".concat(i).concat(p)),t=[v.createElement("span",{key:"int",className:"".concat(l,"-content-value-int")},d,h),p&&v.createElement("span",{key:"decimal",className:"".concat(l,"-content-value-decimal")},p)]}else t=c}return v.createElement("span",{className:"".concat(l,"-content-value")},t)},s_=function(e){var t=e.prefixCls,n=e.className,i=e.style,a=e.valueStyle,s=e.value,l=void 0===s?0:s,c=e.title,u=e.valueRender,d=e.prefix,h=e.suffix,p=e.loading,f=e.direction,m=e.onMouseEnter,g=e.onMouseLeave,y=v.createElement(a_,Object(r.a)({},e,{value:l})),b=w()(t,o({},"".concat(t,"-rtl"),"rtl"===f),n);return v.createElement("div",{className:b,style:i,onMouseEnter:m,onMouseLeave:g},c&&v.createElement("div",{className:"".concat(t,"-title")},c),v.createElement(r_,{paragraph:!1,loading:p},v.createElement("div",{style:a,className:"".concat(t,"-content")},d&&v.createElement("span",{className:"".concat(t,"-content-prefix")},d),u?u(y):y,h&&v.createElement("span",{className:"".concat(t,"-content-suffix")},h))))};s_.defaultProps={decimalSeparator:".",groupSeparator:",",loading:!1};var l_,c_=(l_={prefixCls:"statistic"},function(e){var t=function(t){return v.createElement(se,null,(function(n){var o=l_.prefixCls,i=(0,n.getPrefixCls)(o,t.prefixCls);return v.createElement(e,Object(r.a)({},n,t,{prefixCls:i}))}))},n=e.constructor,o=n&&n.displayName||e.name||"Component";return t.displayName="withConfigConsumer(".concat(o,")"),t})(s_),u_=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function d_(e,t){var n=t.format,r=void 0===n?"":n,o=new Date(e).getTime(),i=Date.now();return function(e,t){var n=e,r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((function(e){return e.slice(1,-1)})),i=t.replace(r,"[]"),a=u_.reduce((function(e,t){var r=Ge(t,2),o=r[0],i=r[1];if(-1!==e.indexOf(o)){var a=Math.floor(n/i);return n-=a*i,e.replace(new RegExp("".concat(o,"+"),"g"),(function(e){var t=e.length;return Pu()(a.toString(),t,"0")}))}return e}),i),s=0;return a.replace(r,(function(){var e=o[s];return s+=1,e}))}(Math.max(o-i,0),r)}function h_(e){return new Date(e).getTime()}var p_=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).syncTimer=function(){h_(e.props.value)>=Date.now()?e.startTimer():e.stopTimer()},e.startTimer=function(){e.countdownId||(e.countdownId=window.setInterval((function(){e.forceUpdate()}),1e3/30))},e.stopTimer=function(){var t=e.props,n=t.onFinish,r=t.value;if(e.countdownId){clearInterval(e.countdownId),e.countdownId=void 0;var o=h_(r);n&&o<Date.now()&&n()}},e.formatCountdown=function(t,n){var o=e.props.format;return d_(t,Object(r.a)(Object(r.a)({},n),{format:o}))},e.valueRender=function(e){return ca(e,{title:void 0})},e}return s(n,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return v.createElement(c_,Object(r.a)({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),n}(v.Component);p_.defaultProps={format:"HH:mm:ss"};var f_=p_;c_.Countdown=f_;var m_=c_,g_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},v_=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:g_}))};v_.displayName="ArrowLeftOutlined";var y_=v.forwardRef(v_),b_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},w_=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:b_}))};w_.displayName="ArrowRightOutlined";var C_=v.forwardRef(w_),__=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},x_={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},S_=v.forwardRef((function(e,t){var n=e.style,o=e.noStyle,i=e.disabled,a=__(e,["style","noStyle","disabled"]),s={};return o||(s=Object(r.a)({},x_)),i&&(s.pointerEvents="none"),s=Object(r.a)(Object(r.a)({},s),n),v.createElement("div",Object(r.a)({role:"button",tabIndex:0,ref:t},a,{onKeyDown:function(e){e.keyCode===Je.ENTER&&e.preventDefault()},onKeyUp:function(t){var n=t.keyCode,r=e.onClick;n===Je.ENTER&&r&&r()},style:s}))})),k_=function(e,t,n){return t&&n?v.createElement(J,{componentName:"PageHeader"},(function(r){var o=r.back;return v.createElement("div",{className:"".concat(e,"-back")},v.createElement(S_,{onClick:function(e){null==n||n(e)},className:"".concat(e,"-back-button"),"aria-label":o},t))})):null},P_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";return void 0!==e.backIcon?e.backIcon:"rtl"===t?v.createElement(C_,null):v.createElement(y_,null)},T_=function(e){var t=Ge(v.useState(!1),2),n=t[0],r=t[1],i=function(e){var t=e.width;r(t<768)};return v.createElement(se,null,(function(t){var r,a=t.getPrefixCls,s=t.pageHeader,l=t.direction,c=e.prefixCls,u=e.style,d=e.footer,h=e.children,p=e.breadcrumb,f=e.breadcrumbRender,m=e.className,g=!0;"ghost"in e?g=e.ghost:s&&"ghost"in s&&(g=s.ghost);var y,b=a("page-header",c),C=(null===(y=p)||void 0===y?void 0:y.routes)?function(e){return v.createElement(Cu,e)}(p):null,_=(null==f?void 0:f(e,C))||C,x=w()(b,m,(o(r={"has-breadcrumb":!!_,"has-footer":!!d},"".concat(b,"-ghost"),g),o(r,"".concat(b,"-rtl"),"rtl"===l),o(r,"".concat(b,"-compact"),n),r));return v.createElement(H,{onResize:i},v.createElement("div",{className:x,style:u},_,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=t.title,o=t.avatar,i=t.subTitle,a=t.tags,s=t.extra,l=t.onBack,c="".concat(e,"-heading"),u=r||i||a||s;if(!u)return null;var d=P_(t,n),h=k_(e,d,l),p=h||o||u;return v.createElement("div",{className:c},p&&v.createElement("div",{className:"".concat(c,"-left")},h,o&&v.createElement(ks,o),r&&v.createElement("span",{className:"".concat(c,"-title"),title:"string"==typeof r?r:void 0},r),i&&v.createElement("span",{className:"".concat(c,"-sub-title"),title:"string"==typeof i?i:void 0},i),a&&v.createElement("span",{className:"".concat(c,"-tags")},a)),s&&v.createElement("span",{className:"".concat(c,"-extra")},s))}(b,e,l),h&&function(e,t){return v.createElement("div",{className:"".concat(e,"-content")},t)}(b,h),function(e,t){return t?v.createElement("div",{className:"".concat(e,"-footer")},t):null}(b,d)))}))},E_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O_=v.forwardRef((function(e,t){var n=Ge(cn(!1,{value:e.visible,defaultValue:e.defaultVisible}),2),o=n[0],i=n[1],a=function(t,n){var r;i(t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t,n)},s=function(t){var n;a(!1,t),null===(n=e.onConfirm)||void 0===n||n.call(void 0,t)},l=function(t){var n;a(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)},c=v.useContext(ae).getPrefixCls,u=e.prefixCls,d=e.placement,h=e.children,p=e.overlayClassName,f=E_(e,["prefixCls","placement","children","overlayClassName"]),m=c("popover",u),g=c("popconfirm",u),y=w()(g,p),b=v.createElement(J,{componentName:"Popconfirm",defaultLocale:q.Popconfirm},(function(t){return function(t,n){var o=e.okButtonProps,i=e.cancelButtonProps,a=e.title,c=e.cancelText,u=e.okText,d=e.okType,h=e.icon;return v.createElement("div",{className:"".concat(t,"-inner-content")},v.createElement("div",{className:"".concat(t,"-message")},h,v.createElement("div",{className:"".concat(t,"-message-title")},bs(a))),v.createElement("div",{className:"".concat(t,"-buttons")},v.createElement(vl,Object(r.a)({onClick:l,size:"small"},i),c||n.cancelText),v.createElement(vl,Object(r.a)({onClick:s},fl(d),{size:"small"},o),u||n.okText)))}(m,t)})),C=c();return v.createElement(ys,Object(r.a)({},f,{prefixCls:m,placement:d,onVisibleChange:function(t){e.disabled||a(t)},visible:o,overlay:b,overlayClassName:y,ref:t,transitionName:ea(C,"zoom-big",e.transitionName)}),ca(h,{onKeyDown:function(e){var t,n;v.isValidElement(h)&&(null===(n=null==h?void 0:(t=h.props).onKeyDown)||void 0===n||n.call(t,e)),function(e){e.keyCode===Je.ESC&&o&&a(!1,e)}(e)}}))}));O_.defaultProps={placement:"top",trigger:"click",okType:"primary",icon:v.createElement(Da,null),disabled:!1};var M_=O_;function A_(e){return!e||e<0?0:e>100?100:e}function D_(e){var t=e.success,n=e.successPercent;return t&&"progress"in t&&(aa(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),n=t.progress),t&&"percent"in t&&(n=t.percent),n}var I_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},L_=function(e,t){var n,r,o=e.from,i=void 0===o?hi.blue:o,a=e.to,s=void 0===a?hi.blue:a,l=e.direction,c=void 0===l?"rtl"===t?"to left":"to right":l,u=I_(e,["from","to","direction"]);if(0!==Object.keys(u).length){var d=(n=u,r=[],Object.keys(n).forEach((function(e){var t=parseFloat(e.replace(/%/g,""));isNaN(t)||r.push({key:t,value:n[e]})})),(r=r.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", "));return{backgroundImage:"linear-gradient(".concat(c,", ").concat(d,")")}}return{backgroundImage:"linear-gradient(".concat(c,", ").concat(i,", ").concat(s,")")}},N_=function(e){var t=e.prefixCls,n=e.direction,o=e.percent,i=e.strokeWidth,a=e.size,s=e.strokeColor,l=e.strokeLinecap,c=e.children,u=e.trailColor,d=e.success,h=s&&"string"!=typeof s?L_(s,n):{background:s},p=u?{backgroundColor:u}:void 0,f=Object(r.a)({width:"".concat(A_(o),"%"),height:i||("small"===a?6:8),borderRadius:"square"===l?0:""},h),m=D_(e),g={width:"".concat(A_(m),"%"),height:i||("small"===a?6:8),borderRadius:"square"===l?0:"",backgroundColor:null==d?void 0:d.strokeColor},y=void 0!==m?v.createElement("div",{className:"".concat(t,"-success-bg"),style:g}):null;return v.createElement(v.Fragment,null,v.createElement("div",{className:"".concat(t,"-outer")},v.createElement("div",{className:"".concat(t,"-inner"),style:p},v.createElement("div",{className:"".concat(t,"-bg"),style:f}),y)),c)},j_={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},R_=function(e){var t=e.map((function(){return Object(v.useRef)()})),n=Object(v.useRef)(null);return Object(v.useEffect)((function(){var e=Date.now(),r=!1;Object.keys(t).forEach((function(o){var i=t[o].current;if(i){r=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(a.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),[t]},z_=function(e){var t=e.className,n=e.percent,o=e.prefixCls,i=e.strokeColor,a=e.strokeLinecap,s=e.strokeWidth,l=e.style,c=e.trailColor,u=e.trailWidth,d=e.transition,h=$e(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete h.gapPosition;var p=Array.isArray(n)?n:[n],f=Array.isArray(i)?i:[i],m=Ge(R_(p),1)[0],g=s/2,y=100-s/2,b="M ".concat("round"===a?g:0,",").concat(g,"\n L ").concat("round"===a?y:100,",").concat(g),C="0 0 100 ".concat(s),_=0;return v.createElement("svg",Object(r.a)({className:w()("".concat(o,"-line"),t),viewBox:C,preserveAspectRatio:"none",style:l},h),v.createElement("path",{className:"".concat(o,"-line-trail"),d:b,strokeLinecap:a,stroke:c,strokeWidth:u||s,fillOpacity:"0"}),p.map((function(e,t){var n=1;switch(a){case"round":n=1-s/100;break;case"square":n=1-s/2/100;break;default:n=1}var r={strokeDasharray:"".concat(e*n,"px, 100px"),strokeDashoffset:"-".concat(_,"px"),transition:d||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},i=f[t]||f[f.length-1];return _+=e,v.createElement("path",{key:t,className:"".concat(o,"-line-path"),d:b,strokeLinecap:a,stroke:i,strokeWidth:s,fillOpacity:"0",ref:m[t],style:r})})))};z_.defaultProps=j_,z_.displayName="Line";var F_=0;function B_(e){return+e.replace("%","")}function H_(e){return Array.isArray(e)?e:[e]}function V_(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=50-r/2,s=0,l=-a,c=0,u=-2*a;switch(i){case"left":s=-a,l=0,c=2*a,u=0;break;case"right":s=a,l=0,c=-2*a,u=0;break;case"bottom":l=a,u=2*a}var d="M 50,50 m ".concat(s,",").concat(l,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(c,",").concat(-u,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-c,",").concat(u),h=2*Math.PI*a,p={stroke:n,strokeDasharray:"".concat(t/100*(h-o),"px ").concat(h,"px"),strokeDashoffset:"-".concat(o/2+e/100*(h-o),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:p}}var Y_=function(e){var t,n=e.prefixCls,o=e.strokeWidth,i=e.trailWidth,a=e.gapDegree,s=e.gapPosition,l=e.trailColor,c=e.strokeLinecap,u=e.style,d=e.className,h=e.strokeColor,p=e.percent,f=$e(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),m=v.useMemo((function(){return F_+=1}),[]),g=V_(0,100,l,o,a,s),y=g.pathString,b=g.pathStyle,C=H_(p),_=H_(h),x=_.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),S=Ge(R_(C),1)[0];return v.createElement("svg",Object(r.a)({className:w()("".concat(n,"-circle"),d),viewBox:"0 0 100 100",style:u},f),x&&v.createElement("defs",null,v.createElement("linearGradient",{id:"".concat(n,"-gradient-").concat(m),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(x).sort((function(e,t){return B_(e)-B_(t)})).map((function(e,t){return v.createElement("stop",{key:t,offset:e,stopColor:x[e]})})))),v.createElement("path",{className:"".concat(n,"-circle-trail"),d:y,stroke:l,strokeLinecap:c,strokeWidth:i||o,fillOpacity:"0",style:b}),(t=0,C.map((function(e,r){var i=_[r]||_[_.length-1],l="[object Object]"===Object.prototype.toString.call(i)?"url(#".concat(n,"-gradient-").concat(m,")"):"",u=V_(t,e,i,o,a,s);return t+=e,v.createElement("path",{key:r,className:"".concat(n,"-circle-path"),d:u.pathString,stroke:l,strokeLinecap:c,strokeWidth:o,opacity:0===e?0:1,fillOpacity:"0",style:u.pathStyle,ref:S[r]})}))).reverse())};Y_.defaultProps=j_,Y_.displayName="Circle";var W_=Y_;function U_(e){var t=e.percent,n=e.success,r=e.successPercent,o=A_(t),i=D_({success:n,successPercent:r});return i?[A_(i),A_(o-A_(i))]:o}var K_=function(e){var t,n,r,i=e.prefixCls,a=e.width,s=e.strokeWidth,l=e.trailColor,c=e.strokeLinecap,u=e.gapPosition,d=e.gapDegree,h=e.type,p=e.children,f=a||120,m={width:f,height:f,fontSize:.15*f+6},g=s||6,y=u||"dashboard"===h&&"bottom"||"top",b=(n=(t=e).success,r=t.strokeColor||null,D_({success:n,successPercent:t.successPercent})?[hi.green,r]:r),C="[object Object]"===Object.prototype.toString.call(b),_=w()("".concat(i,"-inner"),o({},"".concat(i,"-circle-gradient"),C));return v.createElement("div",{className:_,style:m},v.createElement(W_,{percent:U_(e),strokeWidth:g,trailWidth:g,strokeColor:b,strokeLinecap:c,trailColor:l,prefixCls:i,gapDegree:d||0===d?d:"dashboard"===h?75:void 0,gapPosition:y}),p)},G_=function(e){for(var t=e.size,n=e.steps,r=e.percent,i=void 0===r?0:r,a=e.strokeWidth,s=void 0===a?8:a,l=e.strokeColor,c=e.trailColor,u=e.prefixCls,d=e.children,h=Math.round(n*(i/100)),p="small"===t?2:14,f=[],m=0;m<n;m+=1)f.push(v.createElement("div",{key:m,className:w()("".concat(u,"-steps-item"),o({},"".concat(u,"-steps-item-active"),m<=h-1)),style:{backgroundColor:m<=h-1?l:c,width:p,height:s}}));return v.createElement("div",{className:"".concat(u,"-steps-outer")},f,d)},q_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},$_=(hs("line","circle","dashboard"),hs("normal","exception","active","success")),X_=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).renderProgress=function(t){var n,i,a=t.getPrefixCls,s=t.direction,l=Object(p.a)(e).props,c=l.prefixCls,u=l.className,d=l.size,h=l.type,f=l.steps,m=l.showInfo,g=l.strokeColor,y=q_(l,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),b=a("progress",c),C=e.getProgressStatus(),x=e.renderProcessInfo(b,C);aa(!("successPercent"in l),"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),"line"===h?i=f?v.createElement(G_,Object(r.a)({},e.props,{strokeColor:"string"==typeof g?g:void 0,prefixCls:b,steps:f}),x):v.createElement(N_,Object(r.a)({},e.props,{prefixCls:b,direction:s}),x):"circle"!==h&&"dashboard"!==h||(i=v.createElement(K_,Object(r.a)({},e.props,{prefixCls:b,progressStatus:C}),x));var S=w()(b,(o(n={},"".concat(b,"-").concat(("dashboard"===h?"circle":f&&"steps")||h),!0),o(n,"".concat(b,"-status-").concat(C),!0),o(n,"".concat(b,"-show-info"),m),o(n,"".concat(b,"-").concat(d),d),o(n,"".concat(b,"-rtl"),"rtl"===s),n),u);return v.createElement("div",Object(r.a)({},_(y,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","percent","success","successPercent"]),{className:S}),i)},e}return s(n,[{key:"getPercentNumber",value:function(){var e=this.props.percent,t=void 0===e?0:e,n=D_(this.props);return parseInt(void 0!==n?n.toString():t.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return $_.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,r=this.props,o=r.showInfo,i=r.format,a=r.type,s=r.percent,l=D_(this.props);if(!o)return null;var c="line"===a;return i||"exception"!==t&&"success"!==t?n=(i||function(e){return"".concat(e,"%")})(A_(s),A_(l)):"exception"===t?n=c?v.createElement(Yi,null):v.createElement(Bi,null):"success"===t&&(n=c?v.createElement(Oa,null):v.createElement(Ri,null)),v.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return v.createElement(se,null,this.renderProgress)}}]),n}(v.Component);X_.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var J_=X_,Z_=lh;Z_.Button=ph,Z_.Group=uh;var Q_=Z_;var ex=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).onHover=function(t){var n=e.props;(0,n.onHover)(t,n.index)},e.onClick=function(t){var n=e.props;(0,n.onClick)(t,n.index)},e.onKeyDown=function(t){var n=e.props,r=n.onClick,o=n.index;13===t.keyCode&&r(t,o)},e}return s(n,[{key:"getClassName",value:function(){var e=this.props,t=e.prefixCls,n=e.index,r=e.value,o=e.allowHalf,i=e.focused,a=n+1,s=t;return 0===r&&0===n&&i?s+=" ".concat(t,"-focused"):o&&r+.5>=a&&r<a?(s+=" ".concat(t,"-half ").concat(t,"-active"),i&&(s+=" ".concat(t,"-focused"))):(s+=" ".concat(t,a<=r?"-full":"-zero"),a===r&&i&&(s+=" ".concat(t,"-focused"))),s}},{key:"render",value:function(){var e=this.onHover,t=this.onClick,n=this.onKeyDown,r=this.props,o=r.disabled,i=r.prefixCls,a=r.character,s=r.characterRender,l=r.index,c=r.count,u=r.value,d="function"==typeof a?a(this.props):a,h=y.a.createElement("li",{className:this.getClassName()},y.a.createElement("div",{onClick:o?null:t,onKeyDown:o?null:n,onMouseMove:o?null:e,role:"radio","aria-checked":u>l?"true":"false","aria-posinset":l+1,"aria-setsize":c,tabIndex:o?-1:0},y.a.createElement("div",{className:"".concat(i,"-first")},d),y.a.createElement("div",{className:"".concat(i,"-second")},d)));return s&&(h=s(h,this.props)),h}}]),n}(y.a.Component);function tx(){}var nx=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).onHover=function(e,t){var n=r.props.onHoverChange,o=r.getStarValue(t,e.pageX);o!==r.state.cleanedValue&&r.setState({hoverValue:o,cleanedValue:null}),n(o)},r.onMouseLeave=function(){var e=r.props.onHoverChange;r.setState({hoverValue:void 0,cleanedValue:null}),e(void 0)},r.onClick=function(e,t){var n=r.props.allowClear,o=r.state.value,i=r.getStarValue(t,e.pageX),a=!1;n&&(a=i===o),r.onMouseLeave(),r.changeValue(a?0:i),r.setState({cleanedValue:a?i:null})},r.onFocus=function(){var e=r.props.onFocus;r.setState({focused:!0}),e&&e()},r.onBlur=function(){var e=r.props.onBlur;r.setState({focused:!1}),e&&e()},r.onKeyDown=function(e){var t=e.keyCode,n=r.props,o=n.count,i=n.allowHalf,a=n.onKeyDown,s="rtl"===n.direction,l=r.state.value;t===Je.RIGHT&&l<o&&!s?(l+=i?.5:1,r.changeValue(l),e.preventDefault()):t===Je.LEFT&&l>0&&!s||t===Je.RIGHT&&l>0&&s?(l-=i?.5:1,r.changeValue(l),e.preventDefault()):t===Je.LEFT&&l<o&&s&&(l+=i?.5:1,r.changeValue(l),e.preventDefault()),a&&a(e)},r.saveRef=function(e){return function(t){r.stars[e]=t}},r.saveRate=function(e){r.rate=e};var o=e.value;return void 0===o&&(o=e.defaultValue),r.stars={},r.state={value:o,focused:!1,cleanedValue:null},r}return s(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"getStarDOM",value:function(e){return T(this.stars[e])}},{key:"getStarValue",value:function(e,t){var n,r,o,i,a=this.props,s=a.allowHalf,l="rtl"===a.direction,c=e+1;if(s){var u=this.getStarDOM(e),d=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||o.clientLeft||0,top:n-=i.clientTop||o.clientTop||0}}(n=u),o=n.ownerDocument,i=o.defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset;if("number"!=typeof t){var n=e.document;"number"!=typeof(t=n.documentElement.scrollLeft)&&(t=n.body.scrollLeft)}return t}(i),r.left),h=u.clientWidth;(l&&t-d>h/2||!l&&t-d<h/2)&&(c-=.5)}return c}},{key:"focus",value:function(){this.props.disabled||this.rate.focus()}},{key:"blur",value:function(){this.props.disabled||this.rate.blur()}},{key:"changeValue",value:function(e){var t=this.props.onChange;"value"in this.props||this.setState({value:e}),t(e)}},{key:"render",value:function(){for(var e=this.props,t=e.count,n=e.allowHalf,r=e.style,i=e.prefixCls,a=e.disabled,s=e.className,l=e.character,c=e.characterRender,u=e.tabIndex,d=e.direction,h=this.state,p=h.value,f=h.hoverValue,m=h.focused,g=[],v=a?"".concat(i,"-disabled"):"",b=0;b<t;b+=1)g.push(y.a.createElement(ex,{ref:this.saveRef(b),index:b,count:t,disabled:a,prefixCls:"".concat(i,"-star"),allowHalf:n,value:void 0===f?p:f,onClick:this.onClick,onHover:this.onHover,key:b,character:l,characterRender:c,focused:m}));var C=w()(i,v,s,o({},"".concat(i,"-rtl"),"rtl"===d));return y.a.createElement("ul",{className:C,style:r,onMouseLeave:a?null:this.onMouseLeave,tabIndex:a?-1:u,onFocus:a?null:this.onFocus,onBlur:a?null:this.onBlur,onKeyDown:a?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},g)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e&&void 0!==e.value?S(S({},t),{},{value:e.value}):t}}]),n}(y.a.Component);nx.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:tx,character:"★",onHoverChange:tx,tabIndex:0,direction:"ltr"};var rx=nx,ox={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},ix=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:ox}))};ix.displayName="StarFilled";var ax=v.forwardRef(ix),sx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},lx=v.forwardRef((function(e,t){var n=e.prefixCls,o=e.tooltips,i=sx(e,["prefixCls","tooltips"]),a=v.useContext(ae),s=a.getPrefixCls,l=a.direction,c=s("rate",n);return v.createElement(rx,Object(r.a)({ref:t,characterRender:function(e,t){var n=t.index;return o?v.createElement(ys,{title:o[n]},e):e}},i,{prefixCls:c,direction:l}))}));lx.displayName="Rate",lx.defaultProps={character:v.createElement(ax,null)};var cx=lx,ux={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},dx=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:ux}))};dx.displayName="WarningFilled";var hx={success:Oa,error:Yi,info:Da,warning:v.forwardRef(dx)},px={404:function(){return v.createElement("svg",{width:"252",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .012)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),v.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),v.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),v.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),v.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),v.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),v.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"}),v.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),v.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),v.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),v.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),v.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),v.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),v.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),v.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),v.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),v.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),v.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),v.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),v.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),v.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),v.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),v.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),v.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),v.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),v.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),v.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),v.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),v.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),v.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),v.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),v.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),v.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),v.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),v.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})))},500:function(){return v.createElement("svg",{width:"254",height:"294"},v.createElement("defs",null,v.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),v.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(0 .067)"},v.createElement("mask",{fill:"#fff"}),v.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),v.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),v.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),v.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),v.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),v.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),v.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),v.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),v.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),v.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),v.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),v.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),v.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),v.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),v.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),v.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),v.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),v.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),v.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),v.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),v.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),v.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),v.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),v.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),v.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),v.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),v.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),v.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),v.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),v.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),v.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),v.createElement("mask",{fill:"#fff"}),v.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),v.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),v.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),v.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),v.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),v.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),v.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"})))},403:function(){return v.createElement("svg",{width:"251",height:"294"},v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),v.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),v.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),v.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),v.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),v.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),v.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),v.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),v.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),v.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),v.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),v.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),v.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),v.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),v.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),v.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),v.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),v.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),v.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),v.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),v.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),v.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),v.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),v.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),v.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),v.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),v.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),v.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),v.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),v.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),v.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),v.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),v.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),v.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),v.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),v.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),v.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),v.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))}},fx=Object.keys(px),mx=function(e){var t=e.prefixCls,n=e.className,r=e.subTitle,i=e.title,a=e.style,s=e.children,l=e.status,c=void 0===l?"info":l,u=e.icon,d=e.extra,h=v.useContext(ae),p=h.getPrefixCls,f=h.direction,m=p("result",t),g=w()(m,"".concat(m,"-").concat(c),n,o({},"".concat(m,"-rtl"),"rtl"===f));return v.createElement("div",{className:g,style:a},function(e,t){var n=t.status,r=t.icon,o=w()("".concat(e,"-icon"));if(aa(!("string"==typeof r&&r.length>2),"Result","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(r,"` at https://ant.design/components/icon")),fx.includes("".concat(n))){var i=px[n];return v.createElement("div",{className:"".concat(o," ").concat(e,"-image")},v.createElement(i,null))}var a=v.createElement(hx[n]);return v.createElement("div",{className:o},r||a)}(m,{status:c,icon:u}),v.createElement("div",{className:"".concat(m,"-title")},i),r&&v.createElement("div",{className:"".concat(m,"-subtitle")},r),function(e,t){var n=t.extra;return n&&v.createElement("div",{className:"".concat(e,"-extra")},n)}(m,{extra:d}),s&&v.createElement("div",{className:"".concat(m,"-content")},s))};mx.PRESENTED_IMAGE_403=px[403],mx.PRESENTED_IMAGE_404=px[404],mx.PRESENTED_IMAGE_500=px[500];var gx=mx,vx=function(e){var t,n,r=e.className,i=e.included,a=e.vertical,s=e.style,l=e.length,c=e.offset,u=e.reverse;l<0&&(u=!u,l=Math.abs(l),c=100-c);var d=a?(o(t={},u?"top":"bottom","".concat(c,"%")),o(t,u?"bottom":"top","auto"),o(t,"height","".concat(l,"%")),t):(o(n={},u?"right":"left","".concat(c,"%")),o(n,u?"left":"right","auto"),o(n,"width","".concat(l,"%")),n),h=S(S({},s),d);return i?y.a.createElement("div",{className:r,style:h}):null};function yx(e,t,n){return(yx="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var bx=function(e){var t=e.prefixCls,n=e.vertical,r=e.reverse,i=e.marks,a=e.dots,s=e.step,l=e.included,c=e.lowerBound,u=e.upperBound,d=e.max,h=e.min,p=e.dotStyle,f=e.activeDotStyle,m=d-h,g=function(e,t,n,r,o,i){N(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var s=o;s<=i;s+=r)-1===a.indexOf(s)&&a.push(s);return a}(0,i,a,s,h,d).map((function(e){var i,a="".concat(Math.abs(e-h)/m*100,"%"),s=!l&&e===u||l&&e<=u&&e>=c,d=S(S({},p),{},o({},n?r?"top":"bottom":r?"right":"left",a));s&&(d=S(S({},d),f));var g=w()((o(i={},"".concat(t,"-dot"),!0),o(i,"".concat(t,"-dot-active"),s),o(i,"".concat(t,"-dot-reverse"),r),i));return y.a.createElement("span",{className:g,style:d,key:e})}));return y.a.createElement("div",{className:"".concat(t,"-step")},g)},wx=function(e){var t=e.className,n=e.vertical,r=e.reverse,i=e.marks,a=e.included,s=e.upperBound,l=e.lowerBound,c=e.max,u=e.min,d=e.onClickLabel,h=Object.keys(i),p=c-u,f=h.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var c,h=i[e],f="object"===g(h)&&!y.a.isValidElement(h),m=f?h.label:h;if(!m&&0!==m)return null;var v=!a&&e===s||a&&e<=s&&e>=l,b=w()((o(c={},"".concat(t,"-text"),!0),o(c,"".concat(t,"-text-active"),v),c)),C=o({marginBottom:"-50%"},r?"top":"bottom","".concat((e-u)/p*100,"%")),_=o({transform:"translateX(".concat(r?"50%":"-50%",")"),msTransform:"translateX(".concat(r?"50%":"-50%",")")},r?"right":"left","".concat((e-u)/p*100,"%")),x=n?C:_,k=f?S(S({},x),h.style):x;return y.a.createElement("span",{className:b,style:k,key:e,onMouseDown:function(t){return d(t,e)},onTouchStart:function(t){return d(t,e)}},m)}));return y.a.createElement("div",{className:t},f)},Cx=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={clickFocused:!1},e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return s(n,[{key:"componentDidMount",value:function(){this.onMouseUpListener=we(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,t,n,i=this.props,a=i.prefixCls,s=i.vertical,l=i.reverse,c=i.offset,u=i.style,d=i.disabled,h=i.min,p=i.max,f=i.value,m=i.tabIndex,g=i.ariaLabel,v=i.ariaLabelledBy,b=i.ariaValueTextFormatter,C=$e(i,["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"]),_=w()(this.props.className,o({},"".concat(a,"-handle-click-focused"),this.state.clickFocused)),x=s?(o(e={},l?"top":"bottom","".concat(c,"%")),o(e,l?"bottom":"top","auto"),o(e,"transform",l?null:"translateY(+50%)"),e):(o(t={},l?"right":"left","".concat(c,"%")),o(t,l?"left":"right","auto"),o(t,"transform","translateX(".concat(l?"+":"-","50%)")),t),k=S(S({},u),x),P=m||0;return(d||null===m)&&(P=null),b&&(n=b(f)),y.a.createElement("div",Object(r.a)({ref:this.setHandleRef,tabIndex:P},C,{className:_,style:k,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":h,"aria-valuemax":p,"aria-valuenow":f,"aria-disabled":!!d,"aria-label":g,"aria-labelledby":v,"aria-valuetext":n}))}}]),n}(y.a.Component);function _x(e,t){try{return Object.keys(t).some((function(n){return e.target===Object(k.findDOMNode)(t[n])}))}catch(e){return!1}}function xx(e,t){var n=t.min,r=t.max;return e<n||e>r}function Sx(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function kx(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var s=Math.pow(10,Px(r)),l=Math.floor((i*s-o*s)/(r*s)),c=Math.min((e-o)/r,l),u=Math.round(c)*r+o;a.push(u)}var d=a.map((function(t){return Math.abs(e-t)}));return a[d.indexOf(Math.min.apply(Math,de(d)))]}function Px(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function Tx(e,t){return e?t.clientY:t.pageX}function Ex(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function Ox(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function Mx(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function Ax(e,t){var n=t.step,r=isFinite(kx(e,t))?kx(e,t):0;return null===n?r:parseFloat(r.toFixed(Px(n)))}function Dx(e){e.stopPropagation(),e.preventDefault()}function Ix(e,t,n){var r="increase";switch(e.keyCode){case Je.UP:r=t&&n?"decrease":"increase";break;case Je.RIGHT:r=!t&&n?"decrease":"increase";break;case Je.DOWN:r=t&&n?"increase":"decrease";break;case Je.LEFT:r=!t&&n?"increase":"decrease";break;case Je.END:return function(e,t){return t.max};case Je.HOME:return function(e,t){return t.min};case Je.PAGE_UP:return function(e,t){return e+2*t.step};case Je.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(r,e,t)}}function Lx(){}function Nx(e){var t;return(t=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).onDown=function(e,t){var n=t,o=r.props,i=o.draggableTrack,a=o.vertical,s=r.state.bounds,l=i&&r.positionGetValue&&r.positionGetValue(n)||[],c=_x(e,r.handlesRefs);if(r.dragTrack=i&&s.length>=2&&!c&&!l.map((function(e,t){var n=!!t||e>=s[t];return t===l.length-1?e<=s[t]:n})).some((function(e){return!e})),r.dragTrack)r.dragOffset=n,r.startBounds=de(s);else{if(c){var u=Ox(a,e.target);r.dragOffset=n-u,n=u}else r.dragOffset=0;r.onStart(n)}},r.onMouseDown=function(e){if(0===e.button){r.removeDocumentEvents();var t=Tx(r.props.vertical,e);r.onDown(e,t),r.addDocumentMouseEvents()}},r.onTouchStart=function(e){if(!Sx(e)){var t=Ex(r.props.vertical,e);r.onDown(e,t),r.addDocumentTouchEvents(),Dx(e)}},r.onFocus=function(e){var t=r.props,n=t.onFocus,o=t.vertical;if(_x(e,r.handlesRefs)&&!r.dragTrack){var i=Ox(o,e.target);r.dragOffset=0,r.onStart(i),Dx(e),n&&n(e)}},r.onBlur=function(e){var t=r.props.onBlur;r.dragTrack||r.onEnd(),t&&t(e)},r.onMouseUp=function(){r.handlesRefs[r.prevMovedHandleIndex]&&r.handlesRefs[r.prevMovedHandleIndex].clickFocus()},r.onMouseMove=function(e){if(r.sliderRef){var t=Tx(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)}else r.onEnd()},r.onTouchMove=function(e){if(!Sx(e)&&r.sliderRef){var t=Ex(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)}else r.onEnd()},r.onKeyDown=function(e){r.sliderRef&&_x(e,r.handlesRefs)&&r.onKeyboard(e)},r.onClickMarkLabel=function(e,t){e.stopPropagation(),r.onChange({value:t}),r.setState({value:t},(function(){return r.onEnd(!0)}))},r.saveSlider=function(e){r.sliderRef=e};var o=e.step,a=e.max,s=e.min,l=!isFinite(a-s)||(a-s)%o==0;return N(!o||Math.floor(o)!==o||l,"Slider[max] - Slider[min] (".concat(a-s,") should be a multiple of Slider[step] (").concat(o,")")),r.handlesRefs={},r}return s(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){yx(u(n.prototype),"componentWillUnmount",this)&&yx(u(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=we(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=we(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=we(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=we(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){var e;this.props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){var n,r;null===(n=e.handlesRefs[t])||void 0===n||null===(r=n.blur)||void 0===r||r.call(n)}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=(e-n)/(t.max-n);return Math.max(0,100*r)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,t=this.props,r=t.prefixCls,i=t.className,a=t.marks,s=t.dots,l=t.step,c=t.included,d=t.disabled,h=t.vertical,p=t.reverse,f=t.min,m=t.max,g=t.children,v=t.maximumTrackStyle,b=t.style,C=t.railStyle,_=t.dotStyle,x=t.activeDotStyle,k=yx(u(n.prototype),"render",this).call(this),P=k.tracks,T=k.handles,E=w()(r,(o(e={},"".concat(r,"-with-marks"),Object.keys(a).length),o(e,"".concat(r,"-disabled"),d),o(e,"".concat(r,"-vertical"),h),o(e,i,i),e));return y.a.createElement("div",{ref:this.saveSlider,className:E,onTouchStart:d?Lx:this.onTouchStart,onMouseDown:d?Lx:this.onMouseDown,onMouseUp:d?Lx:this.onMouseUp,onKeyDown:d?Lx:this.onKeyDown,onFocus:d?Lx:this.onFocus,onBlur:d?Lx:this.onBlur,style:b},y.a.createElement("div",{className:"".concat(r,"-rail"),style:S(S({},v),C)}),P,y.a.createElement(bx,{prefixCls:r,vertical:h,reverse:p,marks:a,dots:s,step:l,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:f,dotStyle:_,activeDotStyle:x}),T,y.a.createElement(wx,{className:"".concat(r,"-mark"),onClickLabel:d?Lx:this.onClickMarkLabel,vertical:h,marks:a,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:f,reverse:p}),g)}}]),n}(e)).displayName="ComponentEnhancer(".concat(e.displayName,")"),t.defaultProps=S(S({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=$e(e,["index"]);return delete n.dragging,null===n.value?null:y.a.createElement(Cx,Object(r.a)({},n,{key:t}))},onBeforeChange:Lx,onChange:Lx,onAfterChange:Lx,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),t}var jx=Nx(function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).positionGetValue=function(e){return[]},r.onEnd=function(e){var t=r.state.dragging;r.removeDocumentEvents(),(t||e)&&r.props.onAfterChange(r.getValue()),r.setState({dragging:!1})};var o=void 0!==e.defaultValue?e.defaultValue:e.min,a=void 0!==e.value?e.value:o;return r.state={value:r.trimAlignValue(a),dragging:!1},N(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),N(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),r}return s(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.min,o=n.max,i=n.value,a=n.onChange;if("min"in this.props||"max"in this.props){var s=void 0!==i?i:t.value,l=this.trimAlignValue(s,this.props);l!==t.value&&(this.setState({value:l}),r===e.min&&o===e.max||!xx(s,this.props)||a(l))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?S(S({},e),{},{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){Dx(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=Ix(e,t.vertical,n);if(r){Dx(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){var e=this.props.startPoint||this.props.min;return this.state.value>e?e:this.state.value}},{key:"getUpperBound",value:function(){return this.state.value<this.props.startPoint?this.props.startPoint:this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=S(S({},this.props),t),r=Mx(e,n);return Ax(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,o=t.included,i=t.disabled,a=t.minimumTrackStyle,s=t.trackStyle,l=t.handleStyle,c=t.tabIndex,u=t.ariaLabelForHandle,d=t.ariaLabelledByForHandle,h=t.ariaValueTextFormatterForHandle,p=t.min,f=t.max,m=t.startPoint,g=t.reverse,v=t.handle,b=this.state,w=b.value,C=b.dragging,_=this.calcOffset(w),x=v({className:"".concat(n,"-handle"),prefixCls:n,vertical:r,offset:_,value:w,dragging:C,disabled:i,min:p,max:f,reverse:g,index:0,tabIndex:c,ariaLabel:u,ariaLabelledBy:d,ariaValueTextFormatter:h,style:l[0]||l,ref:function(t){return e.saveHandle(0,t)}}),k=void 0!==m?this.calcOffset(m):0,P=s[0]||s;return{tracks:y.a.createElement(vx,{className:"".concat(n,"-track"),vertical:r,included:o,offset:k,reverse:g,length:_-k,style:S(S({},a),P)}),handles:x}}}]),n}(y.a.Component)),Rx=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,s=Number(a),l=Mx(t,o),c=l;return i||null==n||void 0===r||(n>0&&l<=r[n-1]+s&&(c=r[n-1]+s),n<r.length-1&&l>=r[n+1]-s&&(c=r[n+1]-s)),Ax(c,o)},zx=function(e){c(n,e);var t=m(n);function n(e){var r;i(this,n),(r=t.call(this,e)).positionGetValue=function(e){var t=r.getValue(),n=r.calcValueByPos(e),o=r.getClosestBound(n),i=r.getBoundNeedMoving(n,o);if(n===t[i])return null;var a=de(t);return a[i]=n,a},r.onEnd=function(e){var t=r.state.handle;r.removeDocumentEvents(),t||(r.dragTrack=!1),(null!==t||e)&&r.props.onAfterChange(r.getValue()),r.setState({handle:null})};var o=e.count,a=e.min,s=e.max,l=Array.apply(void 0,de(Array(o+1))).map((function(){return a})),c="defaultValue"in e?e.defaultValue:l,u=(void 0!==e.value?e.value:c).map((function(t,n){return Rx({value:t,handle:n,props:e})})),d=u[0]===s?0:u.length-1;return r.state={handle:null,recent:d,bounds:u},r}return s(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"getSliderLength",value:function(){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.onChange,i=r.value,a=r.min,s=r.max;if(("min"in this.props||"max"in this.props)&&(a!==e.min||s!==e.max)){var l=i||t.bounds;if(l.some((function(e){return xx(e,n.props)})))o(l.map((function(e){return Mx(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var n={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),Object.keys(n).length&&this.setState(n)}var r=S(S({},this.state),e).bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,i),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var a=de(n.bounds);a[this.prevMovedHandleIndex]=o,this.onChange({bounds:a})}}},{key:"onMove",value:function(e,t,n,r){Dx(e);var o=this.state,i=this.props,a=i.max||100,s=i.min||0;if(n){var l=i.vertical?-t:t;l=i.reverse?-l:l;var c=a-Math.max.apply(Math,de(r)),u=s-Math.min.apply(Math,de(r)),d=Math.min(Math.max(l/(this.getSliderLength()/100),u),c),h=r.map((function(e){return Math.floor(Math.max(Math.min(e+d,a),s))}));o.bounds.map((function(e,t){return e===h[t]})).some((function(e){return!e}))&&this.onChange({bounds:h})}else{var p=this.calcValueByPos(t);p!==o.bounds[o.handle]&&this.moveTo(p)}}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=Ix(e,t.vertical,n);if(r){Dx(e);var o=this.state,i=this.props,a=o.bounds,s=o.handle,l=a[null===s?o.recent:s],c=r(l,i),u=Rx({value:c,handle:s,bounds:o.bounds,props:i});if(u===l)return;this.moveTo(u,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,n=e.step,r=e.min,o=e.max,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==n){var a=S({},t);if(null!==n)for(var s=r;s<=o;s+=n)a[s]=s;var l=Object.keys(a).map(parseFloat);l.sort((function(e,t){return e-t})),this.internalPointsCache={marks:t,step:n,points:l}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,o=this.props,i=de(r.bounds),a=null===r.handle?r.recent:r.handle;i[a]=e;var s=a;!1!==o.pushable?this.pushSurroundingHandles(i,s):o.allowCross&&(i.sort((function(e,t){return e-t})),s=i.indexOf(e)),this.onChange({recent:s,handle:s,bounds:i}),t&&(this.props.onAfterChange(i),this.setState({},(function(){n.handlesRefs[s].focus()})),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=this.props.pushable,o=Number(r),i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0!==i){var a=t+i,s=i*(e[a]-n);this.pushHandle(e,a,i,o-s)||(e[t]=e[a]-i*o)}}},{key:"pushHandle",value:function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],s=this.props.pushable,l=Number(s),c=n*(e[i]-a);return!!this.pushHandle(e,i,n,l-c)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return Rx({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,i=this.props,a=i.prefixCls,s=i.vertical,l=i.included,c=i.disabled,u=i.min,d=i.max,h=i.reverse,p=i.handle,f=i.trackStyle,m=i.handleStyle,g=i.tabIndex,v=i.ariaLabelGroupForHandles,b=i.ariaLabelledByGroupForHandles,C=i.ariaValueTextFormatterGroupForHandles,_=r.map((function(t){return e.calcOffset(t)})),x="".concat(a,"-handle"),S=r.map((function(t,r){var i,l=g[r]||0;(c||null===g[r])&&(l=null);var f=n===r;return p({className:w()((i={},o(i,x,!0),o(i,"".concat(x,"-").concat(r+1),!0),o(i,"".concat(x,"-dragging"),f),i)),prefixCls:a,vertical:s,dragging:f,offset:_[r],value:t,index:r,tabIndex:l,min:u,max:d,reverse:h,disabled:c,style:m[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:v[r],ariaLabelledBy:b[r],ariaValueTextFormatter:C[r]})}));return{tracks:r.slice(0,-1).map((function(e,t){var n,r=t+1,i=w()((o(n={},"".concat(a,"-track"),!0),o(n,"".concat(a,"-track-").concat(r),!0),n));return y.a.createElement(vx,{className:i,vertical:s,reverse:h,included:l,offset:_[r-1],length:_[r]-_[r-1],style:f[t],key:r})})),handles:S}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!("value"in e||"min"in e||"max"in e))return null;var n=e.value||t.bounds,r=n.map((function(n,r){return Rx({value:n,handle:r,bounds:t.bounds,props:e})}));if(t.bounds.length===r.length){if(r.every((function(e,n){return e===t.bounds[n]})))return null}else r=n.map((function(t,n){return Rx({value:t,handle:n,props:e})}));return S(S({},t),{},{bounds:r})}}]),n}(y.a.Component);zx.displayName="Range",zx.defaultProps={count:1,allowCross:!0,pushable:!1,draggableTrack:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var Fx=Nx(zx),Bx=v.forwardRef((function(e,t){var n=e.visible,o=e.overlay,i=v.useRef(null),a=R(t,i),s=v.useRef(null);function l(){ve.cancel(s.current)}return v.useEffect((function(){return n?s.current=ve((function(){var e;null===(e=i.current)||void 0===e||e.forcePopupAlign()})):l(),l}),[n,o]),v.createElement(ss,Object(r.a)({ref:a},e))}));var Hx=jx;Hx.Range=Fx,Hx.Handle=Cx,Hx.createSliderWithTooltip=function(e){var t;return(t=function(t){c(a,t);var n=m(a);function a(){var e;return i(this,a),(e=n.apply(this,arguments)).state={visibles:{}},e.handleTooltipVisibleChange=function(t,n){e.setState((function(e){return{visibles:S(S({},e.visibles),{},o({},t,n))}}))},e.handleWithTooltip=function(t){var n,o=t.value,i=t.dragging,a=t.index,s=t.disabled,l=$e(t,["value","dragging","index","disabled"]),c=e.props,u=c.tipFormatter,d=c.tipProps,h=c.handleStyle,p=c.getTooltipContainer,f=d.prefixCls,m=void 0===f?"rc-slider-tooltip":f,g=d.overlay,v=void 0===g?u(o):g,b=d.placement,w=void 0===b?"top":b,C=d.visible,_=void 0!==C&&C,x=$e(d,["prefixCls","overlay","placement","visible"]);return n=Array.isArray(h)?h[a]||h[0]:h,y.a.createElement(Bx,Object(r.a)({},x,{getTooltipContainer:p,prefixCls:m,overlay:v,placement:w,visible:!s&&(e.state.visibles[a]||i)||_,key:a}),y.a.createElement(Cx,Object(r.a)({},l,{style:S({},n),value:o,onMouseEnter:function(){return e.handleTooltipVisibleChange(a,!0)},onMouseLeave:function(){return e.handleTooltipVisibleChange(a,!1)}})))},e}return s(a,[{key:"render",value:function(){return y.a.createElement(e,Object(r.a)({},this.props,{handle:this.handleWithTooltip}))}}]),a}(y.a.Component)).defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{},getTooltipContainer:function(e){return e.parentNode}},t};var Vx=Hx,Yx=v.forwardRef((function(e,t){var n=e.visible,o=Object(v.useRef)(null),i=Object(v.useRef)(null);function a(){ve.cancel(i.current),i.current=null}return v.useEffect((function(){return n?i.current=ve((function(){var e;null===(e=o.current)||void 0===e||e.forcePopupAlign(),i.current=null})):a(),a}),[n,e.title]),v.createElement(ys,Object(r.a)({ref:R(o,t)},e))})),Wx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Ux=v.forwardRef((function(e,t){var n,i=v.useContext(ae),a=i.getPrefixCls,s=i.direction,l=i.getPopupContainer,c=Ge(v.useState({}),2),u=c[0],d=c[1],h=function(e,t){d((function(n){return Object(r.a)(Object(r.a)({},n),o({},e,t))}))},p=function(e,t){return e||(t?"rtl"===s?"left":"right":"top")},f=function(t){var n=t.tooltipPrefixCls,o=t.prefixCls,i=t.info,s=i.value,c=i.dragging,d=i.index,f=Wx(i,["value","dragging","index"]),m=e.tipFormatter,g=e.tooltipVisible,y=e.tooltipPlacement,b=e.getTooltipPopupContainer,w=e.vertical,C=!!m&&(u[d]||c),_=g||void 0===g&&C,x=a();return v.createElement(Yx,{prefixCls:n,title:m?m(s):"",visible:_,placement:p(y,w),transitionName:"".concat(x,"-zoom-down"),key:d,overlayClassName:"".concat(o,"-tooltip"),getPopupContainer:b||l},v.createElement(Cx,Object(r.a)({},f,{value:s,onMouseEnter:function(){return h(d,!0)},onMouseLeave:function(){return h(d,!1)}})))},m=e.prefixCls,y=e.tooltipPrefixCls,b=e.range,C=e.className,_=Wx(e,["prefixCls","tooltipPrefixCls","range","className"]),x=a("slider",m),S=a("tooltip",y),k=w()(C,o({},"".concat(x,"-rtl"),"rtl"===s));return"rtl"!==s||_.vertical||(_.reverse=!_.reverse),"object"===g(b)&&(n=b.draggableTrack),b?v.createElement(Fx,Object(r.a)({},_,{step:_.step,draggableTrack:n,className:k,ref:t,handle:function(e){return f({tooltipPrefixCls:S,prefixCls:x,info:e})},prefixCls:x})):v.createElement(Vx,Object(r.a)({},_,{step:_.step,className:k,ref:t,handle:function(e){return f({tooltipPrefixCls:S,prefixCls:x,info:e})},prefixCls:x}))}));Ux.displayName="Slider",Ux.defaultProps={tipFormatter:function(e){return"number"==typeof e?e.toString():""}};var Kx=Ux;function Gx(e){var t=e.className,n=e.direction,i=e.index,a=e.marginDirection,s=e.children,l=e.split,c=e.wrap,u=v.useContext($x),d=u.horizontalSize,h=u.verticalSize,p=u.latestIndex,f={};return"vertical"===n?i<p&&(f={marginBottom:d/(l?2:1)}):f=Object(r.a)(Object(r.a)({},i<p&&o({},a,d/(l?2:1))),c&&{paddingBottom:h}),null==s?null:v.createElement(v.Fragment,null,v.createElement("div",{className:t,style:f},s),i<p&&l&&v.createElement("span",{className:"".concat(t,"-split"),style:f},l))}var qx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},$x=v.createContext({latestIndex:0,horizontalSize:0,verticalSize:0}),Xx={small:8,middle:16,large:24};var Jx=function(e){var t,n=v.useContext(ae),i=n.getPrefixCls,a=n.space,s=n.direction,l=e.size,c=void 0===l?(null==a?void 0:a.size)||"small":l,u=e.align,d=e.className,h=e.children,p=e.direction,f=void 0===p?"horizontal":p,m=e.prefixCls,g=e.split,y=e.style,b=e.wrap,C=void 0!==b&&b,_=qx(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),x=Ge(v.useMemo((function(){return(Array.isArray(c)?c:[c,c]).map((function(e){return function(e){return"string"==typeof e?Xx[e]:e||0}(e)}))}),[c]),2),S=x[0],k=x[1],P=O(h,{keepEmpty:!0});if(0===P.length)return null;var T=void 0===u&&"horizontal"===f?"center":u,E=i("space",m),M=w()(E,"".concat(E,"-").concat(f),(o(t={},"".concat(E,"-rtl"),"rtl"===s),o(t,"".concat(E,"-align-").concat(T),T),t),d),A="".concat(E,"-item"),D="rtl"===s?"marginLeft":"marginRight",I=0,L=P.map((function(e,t){return null!=e&&(I=t),v.createElement(Gx,{className:A,key:"".concat(A,"-").concat(t),direction:f,index:t,marginDirection:D,split:g,wrap:C},e)}));return v.createElement("div",Object(r.a)({className:M,style:Object(r.a)(Object(r.a)({},C&&{flexWrap:"wrap",marginBottom:-k}),y)},_),v.createElement($x.Provider,{value:{horizontalSize:S,verticalSize:k,latestIndex:I}},L))};function Zx(e){return"string"==typeof e}var Qx=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).onClick=function(){var t=e.props,n=t.onClick,r=t.onStepClick,o=t.stepIndex;n&&n.apply(void 0,arguments),r(o)},e}return s(n,[{key:"renderIconNode",value:function(){var e,t,n=this.props,r=n.prefixCls,i=n.progressDot,a=n.stepIcon,s=n.stepNumber,l=n.status,c=n.title,u=n.description,d=n.icon,h=n.iconPrefix,p=n.icons,f=w()("".concat(r,"-icon"),"".concat(h,"icon"),(o(e={},"".concat(h,"icon-").concat(d),d&&Zx(d)),o(e,"".concat(h,"icon-check"),!d&&"finish"===l&&(p&&!p.finish||!p)),o(e,"".concat(h,"icon-cross"),!d&&"error"===l&&(p&&!p.error||!p)),e)),m=y.a.createElement("span",{className:"".concat(r,"-icon-dot")});return t=i?"function"==typeof i?y.a.createElement("span",{className:"".concat(r,"-icon")},i(m,{index:s-1,status:l,title:c,description:u})):y.a.createElement("span",{className:"".concat(r,"-icon")},m):d&&!Zx(d)?y.a.createElement("span",{className:"".concat(r,"-icon")},d):p&&p.finish&&"finish"===l?y.a.createElement("span",{className:"".concat(r,"-icon")},p.finish):p&&p.error&&"error"===l?y.a.createElement("span",{className:"".concat(r,"-icon")},p.error):d||"finish"===l||"error"===l?y.a.createElement("span",{className:f}):y.a.createElement("span",{className:"".concat(r,"-icon")},s),a&&(t=a({index:s-1,status:l,title:c,description:u,node:t})),t}},{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.prefixCls,i=t.style,a=t.active,s=t.status,l=void 0===s?"wait":s,c=(t.iconPrefix,t.icon),u=(t.wrapperStyle,t.stepNumber,t.disabled),d=t.description,h=t.title,p=t.subTitle,f=(t.progressDot,t.stepIcon,t.tailContent),m=(t.icons,t.stepIndex,t.onStepClick),g=t.onClick,v=$e(t,["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"]),b=w()("".concat(r,"-item"),"".concat(r,"-item-").concat(l),n,(o(e={},"".concat(r,"-item-custom"),c),o(e,"".concat(r,"-item-active"),a),o(e,"".concat(r,"-item-disabled"),!0===u),e)),C=S({},i),_={};return m&&!u&&(_.role="button",_.tabIndex=0,_.onClick=this.onClick),y.a.createElement("div",Object.assign({},v,{className:b,style:C}),y.a.createElement("div",Object.assign({onClick:g},_,{className:"".concat(r,"-item-container")}),y.a.createElement("div",{className:"".concat(r,"-item-tail")},f),y.a.createElement("div",{className:"".concat(r,"-item-icon")},this.renderIconNode()),y.a.createElement("div",{className:"".concat(r,"-item-content")},y.a.createElement("div",{className:"".concat(r,"-item-title")},h,p&&y.a.createElement("div",{title:"string"==typeof p?p:void 0,className:"".concat(r,"-item-subtitle")},p)),d&&y.a.createElement("div",{className:"".concat(r,"-item-description")},d))))}}]),n}(y.a.Component),eS=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).onStepClick=function(t){var n=e.props,r=n.onChange,o=n.current;r&&o!==t&&r(t)},e}return s(n,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls,i=n.style,a=void 0===i?{}:i,s=n.className,l=n.children,c=n.direction,u=n.type,d=n.labelPlacement,h=n.iconPrefix,p=n.status,f=n.size,m=n.current,g=n.progressDot,b=n.stepIcon,C=n.initial,_=n.icons,x=n.onChange,k=$e(n,["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"]),P="navigation"===u,T=g?"vertical":d,E=w()(r,"".concat(r,"-").concat(c),s,(o(e={},"".concat(r,"-").concat(f),f),o(e,"".concat(r,"-label-").concat(T),"horizontal"===c),o(e,"".concat(r,"-dot"),!!g),o(e,"".concat(r,"-navigation"),P),e));return y.a.createElement("div",Object.assign({className:E,style:a},k),O(l).map((function(e,n){var o=C+n,i=S({stepNumber:"".concat(o+1),stepIndex:o,key:o,prefixCls:r,iconPrefix:h,wrapperStyle:a,progressDot:g,stepIcon:b,icons:_,onStepClick:x&&t.onStepClick},e.props);return"error"===p&&n===m-1&&(i.className="".concat(r,"-next-error")),e.props.status||(i.status=o===m?p:o<m?"finish":"wait"),i.active=o===m,Object(v.cloneElement)(e,i)})))}}]),n}(y.a.Component);eS.Step=Qx,eS.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var tS=eS,nS=function(e){var t,n=e.percent,i=e.size,a=e.className,s=e.direction,l=e.responsive,c=qa().xs,u=v.useContext(ae),d=u.getPrefixCls,h=u.direction,p=v.useCallback((function(){return l&&c?"vertical":s}),[c,s]),f=d("steps",e.prefixCls),m=d("",e.iconPrefix),g=w()((o(t={},"".concat(f,"-rtl"),"rtl"===h),o(t,"".concat(f,"-with-progress"),void 0!==n),t),a),y={finish:v.createElement(Ri,{className:"".concat(f,"-finish-icon")}),error:v.createElement(Bi,{className:"".concat(f,"-error-icon")})};return v.createElement(tS,Object(r.a)({icons:y},_(e,["percent","responsive"]),{direction:p(),stepIcon:function(e){var t=e.node;if("process"===e.status&&void 0!==n){var r="small"===i?32:40;return v.createElement("div",{className:"".concat(f,"-progress-icon")},v.createElement(J_,{type:"circle",percent:n,width:r,strokeWidth:4,format:function(){return null}}),t)}return t},prefixCls:f,iconPrefix:m,className:g}))};nS.Step=tS.Step,nS.defaultProps={current:0};var rS=nS,oS=v.forwardRef((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,h=e.unCheckedChildren,p=e.onClick,f=e.onChange,m=e.onKeyDown,g=$e(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),y=Ge(cn(!1,{value:s,defaultValue:l}),2),b=y[0],C=y[1];function _(e,t){var n=b;return c||(C(n=e),null==f||f(n,t)),n}var x=w()(i,a,(o(n={},"".concat(i,"-checked"),b),o(n,"".concat(i,"-disabled"),c),n));return v.createElement("button",Object.assign({},g,{type:"button",role:"switch","aria-checked":b,disabled:c,className:x,ref:t,onKeyDown:function(e){e.which===Je.LEFT?_(!1,e):e.which===Je.RIGHT&&_(!0,e),null==m||m(e)},onClick:function(e){var t=_(!b,e);null==p||p(t,e)}}),u,v.createElement("span",{className:"".concat(i,"-inner")},b?d:h))}));oS.displayName="Switch";var iS=oS,aS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},sS=v.forwardRef((function(e,t){var n,i=e.prefixCls,a=e.size,s=e.loading,l=e.className,c=void 0===l?"":l,u=e.disabled,d=aS(e,["prefixCls","size","loading","className","disabled"]);aa("checked"in d||!("value"in d),"Switch","`value` is not a valid prop, do you mean `checked`?");var h=v.useContext(ae),p=h.getPrefixCls,f=h.direction,m=v.useContext(Xi),g=p("switch",i),y=v.createElement("div",{className:"".concat(g,"-handle")},s&&v.createElement(Li,{className:"".concat(g,"-loading-icon")})),b=w()((o(n={},"".concat(g,"-small"),"small"===(a||m)),o(n,"".concat(g,"-loading"),s),o(n,"".concat(g,"-rtl"),"rtl"===f),n),c);return v.createElement(il,{insertExtraNode:!0},v.createElement(iS,Object(r.a)({},d,{prefixCls:g,className:b,disabled:u||s,ref:t,loadingIcon:y})))}));sS.__ANT_SWITCH=!0,sS.displayName="Switch";var lS=sS;var cS=function(e){return null};var uS=function(e){return null};function dS(e){return null==e?[]:Array.isArray(e)?e:[e]}function hS(e,t){if(!t&&"number"!=typeof t)return e;for(var n=dS(t),r=e,o=0;o<n.length;o+=1){if(!r)return null;r=r[n[o]]}return r}function pS(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},o=r.key,i=r.dataIndex,a=o||dS(i).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)})),t}function fS(e){return null!=e}function mS(e,t){var n,r,i,a,s=e.prefixCls,l=e.className,c=e.record,u=e.index,d=e.dataIndex,h=e.render,p=e.children,f=e.component,m=void 0===f?"td":f,y=e.colSpan,b=e.rowSpan,C=e.fixLeft,_=e.fixRight,x=e.firstFixLeft,k=e.lastFixLeft,P=e.firstFixRight,T=e.lastFixRight,E=e.appendNode,O=e.additionalProps,M=void 0===O?{}:O,A=e.ellipsis,D=e.align,I=e.rowType,L=e.isSticky,N="".concat(s,"-cell");if(p)i=p;else{var j=hS(c,d);if(i=j,h){var R=h(j,c,u);!(a=R)||"object"!==g(a)||Array.isArray(a)||v.isValidElement(a)?i=R:(i=R.children,r=R.props)}}"object"!==g(i)||Array.isArray(i)||v.isValidElement(i)||(i=null),A&&(k||P)&&(i=v.createElement("span",{className:"".concat(N,"-content")},i));var F=r||{},B=F.colSpan,H=F.rowSpan,V=F.style,Y=F.className,W=$e(F,["colSpan","rowSpan","style","className"]),U=void 0!==B?B:y,K=void 0!==H?H:b;if(0===U||0===K)return null;var G={},q="number"==typeof C,$="number"==typeof _;q&&(G.position="sticky",G.left=C),$&&(G.position="sticky",G.right=_);var X,J={};D&&(J.textAlign=D);var Z=!0===A?{showTitle:!0}:A;Z&&(Z.showTitle||"header"===I)&&("string"==typeof i||"number"==typeof i?X=i.toString():v.isValidElement(i)&&"string"==typeof i.props.children&&(X=i.props.children));var Q,ee=S(S(S({title:X},W),M),{},{colSpan:U&&1!==U?U:null,rowSpan:K&&1!==K?K:null,className:w()(N,l,(n={},o(n,"".concat(N,"-fix-left"),q),o(n,"".concat(N,"-fix-left-first"),x),o(n,"".concat(N,"-fix-left-last"),k),o(n,"".concat(N,"-fix-right"),$),o(n,"".concat(N,"-fix-right-first"),P),o(n,"".concat(N,"-fix-right-last"),T),o(n,"".concat(N,"-ellipsis"),A),o(n,"".concat(N,"-with-append"),E),o(n,"".concat(N,"-fix-sticky"),(q||$)&&L),n),M.className,Y),style:S(S(S(S({},M.style),J),G),V),ref:(Q=m,"string"==typeof Q||z(Q)?t:null)});return v.createElement(m,ee,E,i)}var gS=v.forwardRef(mS);gS.displayName="Cell";var vS=v.memo(gS,(function(e,t){return!!t.shouldCellUpdate&&!t.shouldCellUpdate(t.record,e.record)})),yS=v.createContext(null);function bS(e,t,n,r,o){var i,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?i=r.left[e]:"right"===l.fixed&&(a=r.right[t]);var c=!1,u=!1,d=!1,h=!1,p=n[t+1],f=n[e-1];if("rtl"===o){if(void 0!==i)h=!(f&&"left"===f.fixed);else if(void 0!==a){d=!(p&&"right"===p.fixed)}}else if(void 0!==i){c=!(p&&"left"===p.fixed)}else if(void 0!==a){u=!(f&&"right"===f.fixed)}return{fixLeft:i,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:r.isSticky}}function wS(e){var t,n=e.cells,o=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,s=e.cellComponent,l=e.onHeaderRow,c=e.index,u=v.useContext(yS),d=u.prefixCls,h=u.direction;l&&(t=l(n.map((function(e){return e.column})),c));var p=pS(n.map((function(e){return e.column})));return v.createElement(a,t,n.map((function(e,t){var n,a=e.column,l=bS(e.colStart,e.colEnd,i,o,h);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),v.createElement(vS,Object(r.a)({},e,{ellipsis:a.ellipsis,align:a.align,component:s,prefixCls:d,key:p[t]},l,{additionalProps:n,rowType:"header"}))})))}wS.displayName="HeaderRow";var CS=wS;var _S=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=v.useContext(yS),a=i.prefixCls,s=i.getComponent,l=v.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,s=n.children;return s&&s.length>0&&(a=e(s,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(n)}),[n]),c=s(["header","wrapper"],"thead"),u=s(["header","row"],"tr"),d=s(["header","cell"],"th");return v.createElement(c,{className:"".concat(a,"-thead")},l.map((function(e,n){return v.createElement(CS,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:u,cellComponent:d,onHeaderRow:o,index:n})})))};var xS=function(e){for(var t=e.colWidths,n=e.columns,o=[],i=!1,a=(e.columCount||n.length)-1;a>=0;a-=1){var s=t[a],l=n&&n[a],c=l&&l.RC_TABLE_INTERNAL_COL_DEFINE;(s||c||i)&&(o.unshift(v.createElement("col",Object(r.a)({key:a,style:{width:s,minWidth:s}},c))),i=!0)}return v.createElement("colgroup",null,o)};var SS=v.forwardRef((function(e,t){var n=e.noData,i=e.columns,a=e.flattenColumns,s=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,h=e.offsetHeader,p=e.stickyClassName,f=e.onScroll,m=e.maxContentScroll,g=$e(e,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll","maxContentScroll"]),y=v.useContext(yS),b=y.prefixCls,C=y.scrollbarSize,_=y.isSticky,x=_&&!d?0:C,k=v.useRef(null),P=v.useCallback((function(e){j(t,e),j(k,e)}),[]);v.useEffect((function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(f({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=k.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=k.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var T=v.useMemo((function(){return a.every((function(e){return e.width>=0}))}),[a]),E=a[a.length-1],O={fixed:E?E.fixed:null,onHeaderCell:function(){return{className:"".concat(b,"-cell-scrollbar")}}},M=Object(v.useMemo)((function(){return x?[].concat(de(i),[O]):i}),[x,i]),A=Object(v.useMemo)((function(){return x?[].concat(de(a),[O]):a}),[x,a]),D=Object(v.useMemo)((function(){var e=c.right,t=c.left;return S(S({},c),{},{left:"rtl"===u?[].concat(de(t.map((function(e){return e+x}))),[0]):t,right:"rtl"===u?e:[].concat(de(e.map((function(e){return e+x}))),[0]),isSticky:_})}),[x,c,_]),I=function(e,t){return Object(v.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(void 0===o)return null;n[r]=o}return n}),[e.join("_"),t])}(s,l);return v.createElement("div",{style:S({overflow:"hidden"},_?{top:h}:{}),ref:P,className:w()("".concat(b,"-header"),o({},p,!!p))},v.createElement("table",{style:{tableLayout:"fixed",visibility:n||I?null:"hidden"}},(!n||!m||T)&&v.createElement(xS,{colWidths:I?[].concat(de(I),[x]):[],columCount:l+1,columns:A}),v.createElement(_S,Object(r.a)({},g,{stickyOffsets:D,columns:M,flattenColumns:A}))))}));SS.displayName="FixedHeader";var kS=SS,PS=v.createContext(null);var TS=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.fixHeader,a=e.fixColumn,s=e.horizonScroll,l=e.className,c=e.expanded,u=e.componentWidth,d=e.colSpan,h=v.useContext(yS).scrollbarSize;return v.useMemo((function(){var e=n;return a&&(e=v.createElement("div",{style:{width:u-(i?h:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),v.createElement(r,{className:l,style:{display:c?null:"none"}},v.createElement(vS,{component:o,prefixCls:t,colSpan:d},e))}),[n,r,i,s,l,c,u,d,h])};function ES(e){var t=e.className,n=e.style,o=e.record,i=e.index,a=e.rowKey,s=e.getRowKey,l=e.rowExpandable,c=e.expandedKeys,u=e.onRow,d=e.indent,h=void 0===d?0:d,p=e.rowComponent,f=e.cellComponent,m=e.childrenColumnName,g=v.useContext(yS),y=g.prefixCls,b=g.fixedInfoList,C=v.useContext(PS),_=C.fixHeader,x=C.fixColumn,k=C.horizonScroll,P=C.componentWidth,T=C.flattenColumns,E=C.expandableType,O=C.expandRowByClick,M=C.onTriggerExpand,A=C.rowClassName,D=C.expandedRowClassName,I=C.indentSize,L=C.expandIcon,N=C.expandedRowRender,j=C.expandIconColumnIndex,R=Ge(v.useState(!1),2),z=R[0],F=R[1],B=c&&c.has(e.recordKey);v.useEffect((function(){B&&F(!0)}),[B]);var H,V="row"===E&&(!l||l(o)),Y="nest"===E,W=m&&o&&o[m],U=V||Y;u&&(H=u(o,i));var K;"string"==typeof A?K=A:"function"==typeof A&&(K=A(o,i,h));var G,q,$=pS(T),X=v.createElement(p,Object(r.a)({},H,{"data-row-key":a,className:w()(t,"".concat(y,"-row"),"".concat(y,"-row-level-").concat(h),K,H&&H.className),style:S(S({},n),H?H.style:null),onClick:function(e){if(O&&U&&M(o,e),H&&H.onClick){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=H).onClick.apply(t,[e].concat(r))}}}),T.map((function(e,t){var n,a,s=e.render,l=e.dataIndex,c=e.className,u=$[t],d=b[t];return t===(j||0)&&Y&&(n=v.createElement(v.Fragment,null,v.createElement("span",{style:{paddingLeft:"".concat(I*h,"px")},className:"".concat(y,"-row-indent indent-level-").concat(h)}),L({prefixCls:y,expanded:B,expandable:W,record:o,onExpand:M}))),e.onCell&&(a=e.onCell(o,i)),v.createElement(vS,Object(r.a)({className:c,ellipsis:e.ellipsis,align:e.align,component:f,prefixCls:y,key:u,record:o,index:i,dataIndex:l,render:s,shouldCellUpdate:e.shouldCellUpdate},d,{appendNode:n,additionalProps:a}))})));if(V&&(z||B)){var J=N(o,i,h+1,B),Z=D&&D(o,i,h);G=v.createElement(TS,{expanded:B,className:w()("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(h+1),Z),prefixCls:y,fixHeader:_,fixColumn:x,horizonScroll:k,component:p,componentWidth:P,cellComponent:f,colSpan:T.length},J)}return W&&B&&(q=(o[m]||[]).map((function(t,n){var o=s(t,n);return v.createElement(ES,Object(r.a)({},e,{key:o,rowKey:o,record:t,recordKey:o,index:n,indent:h+1}))}))),v.createElement(v.Fragment,null,X,G,q)}ES.displayName="BodyRow";var OS=ES,MS=v.createContext(null);function AS(e){var t=e.columnKey,n=e.onColumnResize,r=v.useRef();return v.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),v.createElement(H,{onResize:function(e){var r=e.offsetWidth;n(t,r)}},v.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},v.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function DS(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,o=e.expandedKeys,i=e.onRow,a=e.rowExpandable,s=e.emptyNode,l=e.childrenColumnName,c=v.useContext(MS).onColumnResize,u=v.useContext(yS),d=u.prefixCls,h=u.getComponent,p=v.useContext(PS),f=p.fixHeader,m=p.horizonScroll,g=p.flattenColumns,y=p.componentWidth;return v.useMemo((function(){var e,u=h(["body","wrapper"],"tbody"),p=h(["body","row"],"tr"),b=h(["body","cell"],"td");e=t.length?t.map((function(e,t){var r=n(e,t);return v.createElement(OS,{key:r,rowKey:r,record:e,recordKey:r,index:t,rowComponent:p,cellComponent:b,expandedKeys:o,onRow:i,getRowKey:n,rowExpandable:a,childrenColumnName:l})})):v.createElement(TS,{expanded:!0,className:"".concat(d,"-placeholder"),prefixCls:d,fixHeader:f,fixColumn:m,horizonScroll:m,component:p,componentWidth:y,cellComponent:b,colSpan:g.length},s);var w=pS(g);return v.createElement(u,{className:"".concat(d,"-tbody")},r&&v.createElement("tr",{"aria-hidden":"true",className:"".concat(d,"-measure-row"),style:{height:0,fontSize:0}},w.map((function(e){return v.createElement(AS,{key:e,columnKey:e,onColumnResize:c})}))),e)}),[t,d,i,r,o,n,h,y,s,g])}var IS=v.memo(DS);IS.displayName="Body";var LS=IS;function NS(e){return O(e).filter((function(e){return v.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=S({key:t},$e(n,["children"]));return r&&(o.children=NS(r)),o}))}function jS(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,o=t.children;return o&&o.length>0?[].concat(de(e),de(jS(o).map((function(e){return S({fixed:r},e)})))):[].concat(de(e),[S(S({},t),{},{fixed:r})])}),[])}var RS=function(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,s=e.expandedKeys,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,p=e.direction,f=e.expandRowByClick,m=e.columnWidth,g=v.useMemo((function(){return r||NS(i)}),[r,i]),y=v.useMemo((function(){if(a){var e,t=h||0,r=g[t],i=(o(e={},"RC_TABLE_INTERNAL_COL_DEFINE",{className:"".concat(n,"-expand-icon-col")}),o(e,"title",""),o(e,"fixed",r?r.fixed:null),o(e,"className","".concat(n,"-row-expand-icon-cell")),o(e,"width",m),o(e,"render",(function(e,t,r){var o=l(t,r),i=s.has(o),a=!d||d(t),h=u({prefixCls:n,expanded:i,expandable:a,record:t,onExpand:c});return f?v.createElement("span",{onClick:function(e){return e.stopPropagation()}},h):h})),e),p=g.slice();return t>=0&&p.splice(t,0,i),p}return g}),[a,g,l,s,u,p]),b=v.useMemo((function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,y,p]),w=v.useMemo((function(){return"rtl"===p?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),S({fixed:n},$e(e,["fixed"]))}))}(jS(b)):jS(b)}),[b,p]);return[b,w]};function zS(e){var t=Object(v.useRef)(e),n=Ge(Object(v.useState)({}),2)[1],r=Object(v.useRef)(null),o=Object(v.useRef)([]);return Object(v.useEffect)((function(){return function(){r.current=null}}),[]),[t.current,function(e){o.current.push(e);var i=Promise.resolve();r.current=i,i.then((function(){if(r.current===i){var e=o.current,a=t.current;o.current=[],e.forEach((function(e){t.current=e(t.current)})),r.current=null,a!==t.current&&n({})}}))}]}var FS=function(e,t,n){return Object(v.useMemo)((function(){for(var r=[],o=[],i=0,a=0,s=0;s<t;s+=1)if("rtl"===n){o[s]=a,a+=e[s]||0;var l=t-s-1;r[l]=i,i+=e[l]||0}else{r[s]=i,i+=e[s]||0;var c=t-s-1;o[c]=a,a+=e[c]||0}return{left:r,right:o}}),[e,t,n])};var BS=function(e){var t=e.className,n=e.children;return v.createElement("div",{className:t},n)};var HS=function(e){var t=e.children,n=v.useContext(yS).prefixCls;return v.createElement("tfoot",{className:"".concat(n,"-summary")},t)},VS={Cell:function(e){var t=e.className,n=e.index,o=e.children,i=e.colSpan,a=e.rowSpan,s=e.align,l=v.useContext(yS),c=l.prefixCls,u=l.fixedInfoList[n];return v.createElement(vS,Object(r.a)({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,render:function(){return{children:o,props:{colSpan:i,rowSpan:a}}}},u))},Row:function(e){return v.createElement("tr",e)}};function YS(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,a=e.expanded,s=e.expandable,l="".concat(n,"-row-expand-icon");if(!s)return v.createElement("span",{className:w()(l,"".concat(n,"-row-spaced"))});return v.createElement("span",{className:w()(l,(t={},o(t,"".concat(n,"-row-expanded"),a),o(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:function(e){i(r,e),e.stopPropagation()}})}var WS=function(e,t){var n,r,i=e.scrollBodyRef,a=e.onScroll,s=e.offsetScroll,l=e.container,c=v.useContext(yS).prefixCls,u=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,d=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,h=u&&d*(d/u),p=v.useRef(),f=Ge(zS({scrollLeft:0,isHiddenScrollBar:!1}),2),m=f[0],g=f[1],y=v.useRef({delta:0,x:0}),b=Ge(v.useState(!1),2),C=b[0],_=b[1],x=function(){_(!1)},k=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(C&&0!==n){var r=y.current.x+e.pageX-y.current.x-y.current.delta;r<=0&&(r=0),r+h>=d&&(r=d-h),a({scrollLeft:r/d*(u+2)}),y.current.x=e.pageX}else C&&_(!1)},P=function(){var e=vb(i.current).top,t=e+i.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:vb(l).top+l.clientHeight;t-ny()<=n||e>=n-s?g((function(e){return S(S({},e),{},{isHiddenScrollBar:!0})})):g((function(e){return S(S({},e),{},{isHiddenScrollBar:!1})}))},T=function(e){g((function(t){return S(S({},t),{},{scrollLeft:e/u*d||0})}))};return v.useImperativeHandle(t,(function(){return{setScrollLeft:T}})),v.useEffect((function(){var e=we(document.body,"mouseup",x,!1),t=we(document.body,"mousemove",k,!1);return P(),function(){e.remove(),t.remove()}}),[h,C]),v.useEffect((function(){var e=we(l,"scroll",P,!1),t=we(window,"resize",P,!1);return function(){e.remove(),t.remove()}}),[l]),v.useEffect((function(){m.isHiddenScrollBar||g((function(e){var t=i.current;return t?S(S({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[m.isHiddenScrollBar]),u<=d||!h||m.isHiddenScrollBar?null:v.createElement("div",{style:{height:ny(),width:d,bottom:s},className:"".concat(c,"-sticky-scroll")},v.createElement("div",{onMouseDown:function(e){e.persist(),y.current.delta=e.pageX-m.scrollLeft,y.current.x=0,_(!0),e.preventDefault()},ref:p,className:w()("".concat(c,"-sticky-scroll-bar"),o({},"".concat(c,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(m.scrollLeft,"px, 0, 0)")}}))},US=v.forwardRef(WS),KS=Tn()?window:null;var GS=[],qS={},$S=v.memo((function(e){return e.children}),(function(e,t){return!!Ll()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function XS(e){var t,n=e.prefixCls,i=e.className,a=e.rowClassName,s=e.style,l=e.data,c=e.rowKey,u=e.scroll,d=e.tableLayout,h=e.direction,p=e.title,f=e.footer,m=e.summary,y=e.id,b=e.showHeader,C=e.components,_=e.emptyText,x=e.onRow,k=e.onHeaderRow,P=e.internalHooks,T=e.transformColumns,E=e.internalRefs,O=e.sticky,M=l||GS,A=!!M.length,D=Ge(v.useState(0),2),I=D[0],L=D[1];v.useEffect((function(){L(ny())}));var j,R,z,F=v.useMemo((function(){return function(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(r){var o=n[r];o&&"object"===g(o)?(e[r]=e[r]||{},t(e[r],o)):e[r]=o}))}for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.forEach((function(n){t(e,n)})),e}(C,{})}),[C]),B=v.useCallback((function(e,t){return hS(F,e)||t}),[F]),V=v.useMemo((function(){return"function"==typeof c?c:function(e){return e&&e[c]}}),[c]),Y=function(e){var t=e.expandable,n=$e(e,["expandable"]);return"expandable"in e?S(S({},n),t):n}(e),W=Y.expandIcon,U=Y.expandedRowKeys,K=Y.defaultExpandedRowKeys,G=Y.defaultExpandAllRows,q=Y.expandedRowRender,$=Y.onExpand,X=Y.onExpandedRowsChange,J=Y.expandRowByClick,Z=Y.rowExpandable,Q=Y.expandIconColumnIndex,ee=Y.expandedRowClassName,te=Y.childrenColumnName,ne=Y.indentSize,re=W||YS,oe=te||"children",ie=v.useMemo((function(){return q?"row":!!(e.expandable&&"rc-table-internal-hook"===P&&e.expandable.__PARENT_RENDER_ICON__||M.some((function(e){return e&&"object"===g(e)&&e[oe]})))&&"nest"}),[!!q,M]),ae=Ge(v.useState((function(){return K||(G?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,i){r.push(t(o,i)),e(o[n])}))}(e),r}(M,V,oe):[])})),2),se=ae[0],le=ae[1],ce=v.useMemo((function(){return new Set(U||se||[])}),[U,se]),ue=v.useCallback((function(e){var t,n=V(e,M.indexOf(e)),r=ce.has(n);r?(ce.delete(n),t=de(ce)):t=[].concat(de(ce),[n]),le(t),$&&$(!r,e),X&&X(t)}),[V,ce,M,$,X]),he=Ge(v.useState(0),2),pe=he[0],fe=he[1],me=Ge(RS(S(S(S({},e),Y),{},{expandable:!!q,expandedKeys:ce,getRowKey:V,onTriggerExpand:ue,expandIcon:re,expandIconColumnIndex:Q,direction:h}),"rc-table-internal-hook"===P?T:null),2),ge=me[0],ve=me[1],ye=v.useMemo((function(){return{columns:ge,flattenColumns:ve}}),[ge,ve]),be=v.useRef(),we=v.useRef(),Ce=v.useRef(),_e=Ge(v.useState(!1),2),xe=_e[0],Se=_e[1],ke=Ge(v.useState(!1),2),Pe=ke[0],Te=ke[1],Ee=Ge(zS(new Map),2),Oe=Ee[0],Me=Ee[1],Ae=pS(ve).map((function(e){return Oe.get(e)})),De=v.useMemo((function(){return Ae}),[Ae.join("_")]),Ie=FS(De,ve.length,h),Le=u&&fS(u.y),Ne=u&&fS(u.x),je=Ne&&ve.some((function(e){return e.fixed})),Re=v.useRef(),ze=function(e,t){var n="object"===g(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetScroll,a=void 0===i?0:i,s=n.getContainer,l=(void 0===s?function(){return KS}:s)()||KS;return v.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-header"):"",offsetHeader:o,offsetScroll:a,container:l}}),[a,o,t,l])}(O,n),Fe=ze.isSticky,Be=ze.offsetHeader,He=ze.offsetScroll,Ve=ze.stickyClassName,Ye=ze.container;Le&&(R={overflowY:"scroll",maxHeight:u.y}),Ne&&(j={overflowX:"auto"},Le||(R={overflowY:"hidden"}),z={width:!0===u.x?"auto":u.x,minWidth:"100%"});var We=v.useCallback((function(e,t){lr(be.current)&&Me((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Ue=Ge(function(e){var t=Object(v.useRef)(e||null),n=Object(v.useRef)();function r(){window.clearTimeout(n.current)}return Object(v.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),2),Ke=Ue[0],qe=Ue[1];function Xe(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e))}var Je=function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===h,i="number"==typeof r?r:n.scrollLeft,a=n||qS;qe()&&qe()!==a||(Ke(a),Xe(i,we.current),Xe(i,Ce.current),Xe(i,null===(t=Re.current)||void 0===t?void 0:t.setScrollLeft));if(n){var s=n.scrollWidth,l=n.clientWidth;o?(Se(-i<s-l),Te(-i>0)):(Se(i>0),Te(i<s-l))}},Ze=function(){Ce.current&&Je({currentTarget:Ce.current})};v.useEffect((function(){return Ze}),[]),v.useEffect((function(){Ne&&Ze()}),[Ne]),v.useEffect((function(){"rc-table-internal-hook"===P&&E&&(E.body.current=Ce.current)}));var Qe,et,tt=B(["table"],"table"),nt=v.useMemo((function(){return d||(je?"max-content"===u.x?"auto":"fixed":Le||Fe||ve.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[Le,je,ve,d,Fe]),rt={colWidths:De,columCount:ve.length,stickyOffsets:Ie,onHeaderRow:k,fixHeader:Le,scroll:u},ot=v.useMemo((function(){return A?null:"function"==typeof _?_():_}),[A,_]),it=v.createElement(LS,{data:M,measureColumnWidth:Le||Ne||Fe,expandedKeys:ce,rowExpandable:Z,getRowKey:V,onRow:x,emptyNode:ot,childrenColumnName:oe}),at=v.createElement(xS,{colWidths:ve.map((function(e){return e.width})),columns:ve}),st=m&&v.createElement(HS,null,m(M)),lt=B(["body"]);Le||Fe?("function"==typeof lt?(et=lt(M,{scrollbarSize:I,ref:Ce,onScroll:Je}),rt.colWidths=ve.map((function(e,t){var n=e.width,r=t===ge.length-1?n-I:n;return"number"!=typeof r||Number.isNaN(r)?(N(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):et=v.createElement("div",{style:S(S({},j),R),onScroll:Je,ref:Ce,className:w()("".concat(n,"-body"))},v.createElement(tt,{style:S(S({},z),{},{tableLayout:nt})},at,it,st)),Qe=v.createElement(v.Fragment,null,!1!==b&&v.createElement(kS,Object(r.a)({noData:!M.length,maxContentScroll:Ne&&"max-content"===u.x},rt,ye,{direction:h,offsetHeader:Be,stickyClassName:Ve,ref:we,onScroll:Je})),et,Fe&&v.createElement(US,{ref:Re,offsetScroll:He,scrollBodyRef:Ce,onScroll:Je,container:Ye}))):Qe=v.createElement("div",{style:S(S({},j),R),className:w()("".concat(n,"-content")),onScroll:Je,ref:Ce},v.createElement(tt,{style:S(S({},z),{},{tableLayout:nt})},at,!1!==b&&v.createElement(_S,Object(r.a)({},rt,ye)),it,st));var ct=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}(e),ut=v.createElement("div",Object(r.a)({className:w()(n,i,(t={},o(t,"".concat(n,"-rtl"),"rtl"===h),o(t,"".concat(n,"-ping-left"),xe),o(t,"".concat(n,"-ping-right"),Pe),o(t,"".concat(n,"-layout-fixed"),"fixed"===d),o(t,"".concat(n,"-fixed-header"),Le),o(t,"".concat(n,"-fixed-column"),je),o(t,"".concat(n,"-scroll-horizontal"),Ne),o(t,"".concat(n,"-has-fix-left"),ve[0]&&ve[0].fixed),o(t,"".concat(n,"-has-fix-right"),ve[ve.length-1]&&"right"===ve[ve.length-1].fixed),t)),style:s,id:y,ref:be},ct),v.createElement($S,{pingLeft:xe,pingRight:Pe,props:S(S({},e),{},{stickyOffsets:Ie,mergedExpandedKeys:ce})},p&&v.createElement(BS,{className:"".concat(n,"-title")},p(M)),v.createElement("div",{className:"".concat(n,"-container")},Qe),f&&v.createElement(BS,{className:"".concat(n,"-footer")},f(M))));Ne&&(ut=v.createElement(H,{onResize:function(e){var t=e.width;Ze(),fe(be.current?be.current.offsetWidth:t)}},ut));var dt=v.useMemo((function(){return{prefixCls:n,getComponent:B,scrollbarSize:I,direction:h,fixedInfoList:ve.map((function(e,t){return bS(t,t,ve,Ie,h)})),isSticky:Fe}}),[n,B,I,h,ve,Ie,h,Fe]),ht=v.useMemo((function(){return S(S({},ye),{},{tableLayout:nt,rowClassName:a,expandedRowClassName:ee,componentWidth:pe,fixHeader:Le,fixColumn:je,horizonScroll:Ne,expandIcon:re,expandableType:ie,expandRowByClick:J,expandedRowRender:q,onTriggerExpand:ue,expandIconColumnIndex:Q,indentSize:ne})}),[ye,nt,a,ee,pe,Le,je,Ne,re,ie,J,q,ue,Q,ne]),pt=v.useMemo((function(){return{onColumnResize:We}}),[We]);return v.createElement(yS.Provider,{value:dt},v.createElement(PS.Provider,{value:ht},v.createElement(MS.Provider,{value:pt},ut)))}XS.Column=uS,XS.ColumnGroup=cS,XS.Summary=VS,XS.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var JS=XS,ZS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function QS(e,t,n){var o=t&&"object"===g(t)?t:{},i=o.total,a=void 0===i?0:i,s=ZS(o,["total"]),l=Ge(Object(v.useState)((function(){return{current:"defaultCurrent"in s?s.defaultCurrent:1,pageSize:"defaultPageSize"in s?s.defaultPageSize:10}})),2),c=l[0],u=l[1],d=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(c,s,{total:a>0?a:e}),h=Math.ceil((a||e)/d.pageSize);d.current>h&&(d.current=h||1);var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;u({current:e,pageSize:t||d.pageSize})};return!1===t?[{},function(){}]:[Object(r.a)(Object(r.a)({},d),{onChange:function(e,r){var o;t&&(null===(o=t.onChange)||void 0===o||o.call(t,e,r)),p(e,r),n(e,r||(null==d?void 0:d.pageSize))}}),p]}var ek=v.createContext(null),tk=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,a="".concat(t,"-indent-unit"),s=[],l=0;l<n;l+=1){var c;s.push(v.createElement("span",{key:l,className:w()(a,(c={},o(c,"".concat(a,"-start"),r[l]),o(c,"".concat(a,"-end"),i[l]),c))}))}return v.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},s)},nk=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={dragNodeHighlight:!1},e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,_k(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,_k(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,_k(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,o=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!o;i(t,_k(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,_k(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,_k(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,_k(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Object(p.a)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Object(p.a)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Object(p.a)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Object(p.a)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(p.a)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(p.a)(e))},e.onExpand=function(t){var n=e.props,r=n.loading,o=n.context.onNodeExpand;r||o(t,_k(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,o=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!o&&!i||o&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,o=t.loaded,i=e.props.context,a=i.loadData,s=i.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||o||s(_k(e.props)))},e.renderSwitcherIconDom=function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,o=n||r;return"function"==typeof o?o(S(S({},e.props),{},{isLeaf:t})):o},e.renderSwitcher=function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?v.createElement("span",{className:w()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var o=w()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?"open":"close")),i=e.renderSwitcherIconDom(!1);return!1!==i?v.createElement("span",{onClick:e.onExpand,className:o},i):null},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,o=t.disableCheckbox,i=e.props.context.prefixCls,a=e.isDisabled(),s=e.isCheckable();if(!s)return null;var l="boolean"!=typeof s?s:null;return v.createElement("span",{className:w()("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(a||o)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},l)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return v.createElement("span",{className:w()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n,r=e.state.dragNodeHighlight,o=e.props,i=o.title,a=o.selected,s=o.icon,l=o.loading,c=o.data,u=e.props.context,d=u.prefixCls,h=u.showIcon,p=u.icon,f=u.draggable,m=u.loadData,g=u.titleRender,y=e.isDisabled(),b="function"==typeof f?f(c):f,C="".concat(d,"-node-content-wrapper");if(h){var _=s||p;t=_?v.createElement("span",{className:w()("".concat(d,"-iconEle"),"".concat(d,"-icon__customize"))},"function"==typeof _?_(e.props):_):e.renderIcon()}else m&&l&&(t=e.renderIcon());n="function"==typeof i?i(c):g?g(c):i;var x=v.createElement("span",{className:"".concat(d,"-title")},n);return v.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof i?i:"",className:w()("".concat(C),"".concat(C,"-").concat(e.getNodeState()||"normal"),!y&&(a||r)&&"".concat(d,"-node-selected"),!y&&b&&"draggable"),draggable:!y&&b||void 0,"aria-grabbed":!y&&b||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:b?e.onDragStart:void 0},t,x,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,n=t.disabled,r=t.eventKey,o=e.props.context,i=o.draggable,a=o.dropLevelOffset,s=o.dropPosition,l=o.prefixCls,c=o.indent,u=o.dropIndicatorRender,d=o.dragOverNodeKey,h=o.direction;return!n&&!1!==i&&d===r?u({dropPosition:s,dropLevelOffset:a,indent:c,prefixCls:l,direction:h}):null},e}return s(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,i=t.className,a=t.style,s=t.dragOver,l=t.dragOverGapTop,c=t.dragOverGapBottom,u=t.isLeaf,d=t.isStart,h=t.isEnd,p=t.expanded,f=t.selected,m=t.checked,g=t.halfChecked,y=t.loading,b=t.domRef,C=t.active,_=t.data,x=t.onMouseMove,S=$e(t,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove"]),k=this.props.context,P=k.prefixCls,T=k.filterTreeNode,E=k.draggable,O=k.keyEntities,M=k.dropContainerKey,A=k.dropTargetKey,D=this.isDisabled(),I=mk(S),L=(O[n]||{}).level,N=h[h.length-1],j="function"==typeof E?E(_):E;return v.createElement("div",Object(r.a)({ref:b,className:w()(i,"".concat(P,"-treenode"),(e={},o(e,"".concat(P,"-treenode-disabled"),D),o(e,"".concat(P,"-treenode-switcher-").concat(p?"open":"close"),!u),o(e,"".concat(P,"-treenode-checkbox-checked"),m),o(e,"".concat(P,"-treenode-checkbox-indeterminate"),g),o(e,"".concat(P,"-treenode-selected"),f),o(e,"".concat(P,"-treenode-loading"),y),o(e,"".concat(P,"-treenode-active"),C),o(e,"".concat(P,"-treenode-leaf-last"),N),o(e,"drop-target",A===n),o(e,"drop-container",M===n),o(e,"drag-over",!D&&s),o(e,"drag-over-gap-top",!D&&l),o(e,"drag-over-gap-bottom",!D&&c),o(e,"filter-node",T&&T(_k(this.props))),e)),style:a,onDragEnter:j?this.onDragEnter:void 0,onDragOver:j?this.onDragOver:void 0,onDragLeave:j?this.onDragLeave:void 0,onDrop:j?this.onDrop:void 0,onDragEnd:j?this.onDragEnd:void 0,onMouseMove:x},I),v.createElement(tk,{prefixCls:P,level:L,isStart:d,isEnd:h}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(v.Component),rk=function(e){return v.createElement(ek.Consumer,null,(function(t){return v.createElement(nk,Object(r.a)({},e,{context:t}))}))};rk.displayName="TreeNode",rk.defaultProps={title:"---"},rk.isTreeNode=1;var ok=rk;function ik(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ak(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function sk(e){return e.split("-")}function lk(e,t){return"".concat(e,"-").concat(t)}function ck(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(t[e].children),n}function uk(e){if(e.parent){var t=sk(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function dk(e,t,n,r,o,i,a,s,l,c){var u,d=e.clientX,h=e.clientY,p=e.target.getBoundingClientRect(),f=p.top,m=p.height,g=(("rtl"===c?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=s[n.props.eventKey];if(h<f+m/2){var y=a.findIndex((function(e){return e.data.key===v.key})),b=a[y<=0?0:y-1].data.key;v=s[b]}var w=v.key,C=v,_=v.key,x=0,S=0;if(!l.includes(w))for(var k=0;k<g&&uk(v);k+=1)v=v.parent,S+=1;var P,T=v.node,E=!0;return P=sk(v.pos),0===Number(P[P.length-1])&&0===v.level&&h<f+m/2&&i({dropNode:T,dropPosition:-1})&&v.key===n.props.eventKey?x=-1:(C.children||[]).length&&l.includes(_)?i({dropNode:T,dropPosition:0})?x=0:E=!1:0===S?g>-1.5?i({dropNode:T,dropPosition:1})?x=1:E=!1:i({dropNode:T,dropPosition:0})?x=0:i({dropNode:T,dropPosition:1})?x=1:E=!1:i({dropNode:T,dropPosition:1})?x=1:E=!1,{dropPosition:x,dropLevelOffset:S,dropTargetKey:v.key,dropTargetPos:v.pos,dragOverNodeKey:_,dropContainerKey:0===x?null:(null===(u=v.parent)||void 0===u?void 0:u.key)||null,dropAllowed:E}}function hk(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function pk(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==g(e))return N(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function fk(e,t){var n=new Set;return(e||[]).forEach((function(e){!function e(r){if(!n.has(r)){var o=t[r];if(o){n.add(r);var i=o.parent;o.node.disabled||i&&e(i.key)}}}(e)})),de(n)}function mk(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}function gk(e,t){return null!=e?e:t}function vk(e){return function e(t){return O(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return N(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=S({key:n},$e(r,["children"])),a=e(o);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(e)}function yk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),r=[];function o(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(a,s){var l=lk(i?i.pos:"0",s),c=gk(a.key,l),u=S(S({},a),{},{parent:i,pos:l,children:null,data:a,isStart:[].concat(de(i?i.isStart:[]),[0===s]),isEnd:[].concat(de(i?i.isEnd:[]),[s===e.length-1])});return r.push(u),!0===t||n.has(c)?u.children=o(a.children||[],u):u.children=[],u}))}return o(e),r}function bk(e,t,n){var r,o,i=null,a=g(n);"function"===a||"string"===a?i=n:n&&"object"===a&&(r=n.childrenPropName,i=n.externalGetKey),r=r||"children",i?"string"==typeof i?o=function(e){return e[i]}:"function"==typeof i&&(o=function(e){return i(e)}):o=function(e,t){return gk(e.key,t)},function n(i,a,s){var l=i?i[r]:e,c=i?lk(s.pos,a):"0";if(i){var u=o(i,c),d={node:i,index:a,pos:c,key:u,parentPos:s.node?s.pos:null,level:s.level+1};t(d)}l&&l.forEach((function(e,t){n(e,t,{node:i,pos:c,level:s?s.level+1:-1})}))}(null)}function wk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=arguments.length>2?arguments[2]:void 0,l=i||s,c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),bk(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,s={node:t,index:n,key:i,pos:o,level:e.level},l=gk(i,o);c[o]=s,u[l]=s,s.parent=c[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)}),{externalGetKey:l,childrenPropName:a}),o&&o(d),d}function Ck(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function _k(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,h=e.active,p=S(S({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return N(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function xk(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Sk(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function kk(e,t,n,r){var o,i=[];o=r||Sk;var a=new Set(e.filter((function(e){var t=!!n[e];return t||i.push(e),t}))),s=new Map,l=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=s.get(r);o||(o=new Set,s.set(r,o)),o.add(t),l=Math.max(l,r)})),N(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}))}for(var s=new Set,l=n;l>=0;l-=1){(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),l||!n&&!i.has(t)||(l=!0)})),a&&o.add(t.key),l&&i.add(t.key),s.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(xk(i,o))}}(a,s,l,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||s.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}))}a=new Set;for(var l=new Set,c=r;c>=0;c-=1){(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)})),r||i.delete(t.key),s&&a.add(t.key),l.add(t.key)}}))}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(xk(a,i))}}(a,t.halfCheckedKeys,s,l,o)}function Pk(e){return e&&e.fixed}function Tk(e,t){var n=e||{},i=n.preserveSelectedRowKeys,a=n.selectedRowKeys,s=n.defaultSelectedRowKeys,l=n.getCheckboxProps,c=n.onChange,u=n.onSelect,d=n.onSelectAll,h=n.onSelectInvert,p=n.onSelectNone,f=n.onSelectMultiple,m=n.columnWidth,y=n.type,b=n.selections,w=n.fixed,C=n.renderCell,_=n.hideSelectAll,x=n.checkStrictly,S=void 0===x||x,k=t.prefixCls,P=t.data,T=t.pageData,E=t.getRecordByKey,O=t.getRowKey,M=t.expandType,A=t.childrenColumnName,D=t.locale,I=t.expandIconColumnIndex,L=t.getPopupContainer,N=v.useRef(new Map),j=Ge(cn(a||s||[],{value:a}),2),R=j[0],z=j[1],F=Object(v.useMemo)((function(){return S?{keyEntities:null}:wk(P,{externalGetKey:O,childrenPropName:A})}),[P,O,S,A]).keyEntities,B=Object(v.useMemo)((function(){return function e(t,n){var r=[];return(t||[]).forEach((function(t){r.push(t),t&&"object"===g(t)&&n in t&&(r=[].concat(de(r),de(e(t[n],n))))})),r}(T,A)}),[T,A]),H=Object(v.useMemo)((function(){var e=new Map;return B.forEach((function(t,n){var r=O(t,n),o=(l?l(t):null)||{};e.set(r,o)})),e}),[B,O,l]),V=Object(v.useCallback)((function(e){var t;return!!(null===(t=H.get(O(e)))||void 0===t?void 0:t.disabled)}),[H,O]),Y=Ge(Object(v.useMemo)((function(){if(S)return[R||[],[]];var e=kk(R,!0,F,V);return[e.checkedKeys||[],e.halfCheckedKeys]}),[R,S,F,V]),2),W=Y[0],U=Y[1],K=Object(v.useMemo)((function(){var e="radio"===y?W.slice(0,1):W;return new Set(e)}),[W,y]),G=Object(v.useMemo)((function(){return"radio"===y?new Set:new Set(U)}),[U,y]),q=Ge(Object(v.useState)(null),2),$=q[0],X=q[1];v.useEffect((function(){e||z([])}),[!!e]);var J=Object(v.useCallback)((function(e){var t,n;if(i){var r=new Map;t=e,n=e.map((function(e){var t=E(e);return!t&&N.current.has(e)&&(t=N.current.get(e)),r.set(e,t),t})),N.current=r}else t=[],n=[],e.forEach((function(e){var r=E(e);void 0!==r&&(t.push(e),n.push(r))}));z(t),null==c||c(t,n)}),[z,E,c,i]),Z=Object(v.useCallback)((function(e,t,n,r){if(u){var o=n.map((function(e){return E(e)}));u(E(e),t,o,r)}J(n)}),[u,E,J]),Q=Object(v.useMemo)((function(){return!b||_?null:(!0===b?["SELECT_ALL","SELECT_INVERT","SELECT_NONE"]:b).map((function(e){return"SELECT_ALL"===e?{key:"all",text:D.selectionAll,onSelect:function(){J(P.map((function(e,t){return O(e,t)})))}}:"SELECT_INVERT"===e?{key:"invert",text:D.selectInvert,onSelect:function(){var e=new Set(K);T.forEach((function(t,n){var r=O(t,n);e.has(r)?e.delete(r):e.add(r)}));var t=Array.from(e);h&&(aa(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),h(t)),J(t)}}:"SELECT_NONE"===e?{key:"none",text:D.selectNone,onSelect:function(){null==p||p(),J([])}}:e}))}),[b,K,T,O,h,J]);return[Object(v.useCallback)((function(t){if(!e)return t;var n,i,a=new Set(K),s=B.map(O).filter((function(e){return!H.get(e).disabled})),l=s.every((function(e){return a.has(e)})),c=s.some((function(e){return a.has(e)}));if("radio"!==y){var u;if(Q){var h=v.createElement(gu,{getPopupContainer:L},Q.map((function(e,t){var n=e.key,r=e.text,o=e.onSelect;return v.createElement(gu.Item,{key:n||t,onClick:function(){null==o||o(s)}},r)})));u=v.createElement("div",{className:"".concat(k,"-selection-extra")},v.createElement(ty,{overlay:h,getPopupContainer:L},v.createElement("span",null,v.createElement(Ai,null))))}var p=B.every((function(e,t){var n=O(e,t);return(H.get(n)||{}).disabled}));n=!_&&v.createElement("div",{className:"".concat(k,"-selection")},v.createElement(Tm,{checked:!p&&!!B.length&&l,indeterminate:!l&&c,onChange:function(){var e=[];l?s.forEach((function(t){a.delete(t),e.push(t)})):s.forEach((function(t){a.has(t)||(a.add(t),e.push(t))}));var t=Array.from(a);null==d||d(!l,t.map((function(e){return E(e)})),e.map((function(e){return E(e)}))),J(t)},disabled:0===B.length||p,skipGroup:!0}),u)}i="radio"===y?function(e,t,n){var o=O(t,n),i=a.has(o);return{node:v.createElement(Q_,Object(r.a)({},H.get(o),{checked:i,onClick:function(e){return e.stopPropagation()},onChange:function(e){a.has(o)||Z(o,!0,[o],e.nativeEvent)}})),checked:i}}:function(e,t,n){var o,i,l=O(t,n),c=a.has(l),u=G.has(l),d=H.get(l);return"nest"===M?(i=u,aa("boolean"!=typeof(null==d?void 0:d.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):i=null!==(o=null==d?void 0:d.indeterminate)&&void 0!==o?o:u,{node:v.createElement(Tm,Object(r.a)({},d,{indeterminate:i,checked:c,skipGroup:!0,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,r=-1,o=-1;if(n&&S){var i=new Set([$,l]);s.some((function(e,t){if(i.has(e)){if(-1!==r)return o=t,!0;r=t}return!1}))}if(-1!==o&&r!==o&&S){var u=s.slice(r,o+1),d=[];c?u.forEach((function(e){a.has(e)&&(d.push(e),a.delete(e))})):u.forEach((function(e){a.has(e)||(d.push(e),a.add(e))}));var h=Array.from(a);null==f||f(!c,h.map((function(e){return E(e)})),d.map((function(e){return E(e)}))),J(h)}else{var p=W;if(S){var m=c?ik(p,l):ak(p,l);Z(l,!c,m,t)}else{var g=kk([].concat(de(p),[l]),!0,F,V),v=g.checkedKeys,y=g.halfCheckedKeys,b=v;if(c){var w=new Set(v);w.delete(l),b=kk(Array.from(w),{checked:!1,halfCheckedKeys:y},F,V).checkedKeys}Z(l,!c,b,t)}}X(l)}})),checked:c}};var g=o({width:m,className:"".concat(k,"-selection-column"),title:e.columnTitle||n,render:function(e,t,n){var r=i(e,t,n),o=r.node,a=r.checked;return C?C(a,t,n,o):o}},"RC_TABLE_INTERNAL_COL_DEFINE",{className:"".concat(k,"-selection-col")});if("row"===M&&t.length&&!I){var b=Jt(t),x=b[0],P=b.slice(1),T=w||Pk(P[0]);return T&&(x.fixed=T),[x,Object(r.a)(Object(r.a)({},g),{fixed:T})].concat(de(P))}return[Object(r.a)(Object(r.a)({},g),{fixed:w||Pk(t[0])})].concat(de(t))}),[O,B,e,W,K,G,m,Q,M,$,H,f,Z,V]),K]}var Ek={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ok=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ek}))};Ok.displayName="CaretDownOutlined";var Mk=v.forwardRef(Ok),Ak={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Dk=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Ak}))};Dk.displayName="CaretUpOutlined";var Ik=v.forwardRef(Dk);function Lk(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Nk(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function jk(e,t){return"function"==typeof e?e(t):e}function Rk(e){return"object"===g(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function zk(e){return"function"==typeof e?e:!(!e||"object"!==g(e)||!e.compare)&&e.compare}function Fk(e,t,n){var r=[];function o(e,t){r.push({column:e,key:Lk(e,t),multiplePriority:Rk(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=Nk(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(de(r),de(Fk(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:Lk(e,a),multiplePriority:Rk(e),sortOrder:e.defaultSortOrder}))})),r}function Bk(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function Hk(e){var t=e.filter((function(e){return e.sortOrder})).map(Bk);return 0===t.length&&e.length?Object(r.a)(Object(r.a)({},Bk(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Vk(e,t,n){var i=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),a=e.slice(),s=i.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return zk(t)&&n}));return s.length?a.sort((function(e,t){for(var n=0;n<s.length;n+=1){var r=s[n],o=r.column.sorter,i=r.sortOrder,a=zk(o);if(a&&i){var l=a(e,t,i);if(0!==l)return"ascend"===i?l:-l}}return 0})).map((function(e){var i=e[n];return i?Object(r.a)(Object(r.a)({},e),o({},n,Vk(i,t,n))):e})):a}function Yk(e){var t=e.prefixCls,n=e.mergedColumns,i=e.onSorterChange,a=e.sortDirections,s=e.tableLocale,l=e.showSorterTooltip,c=Ge(v.useState(Fk(n,!0)),2),u=c[0],d=c[1],h=v.useMemo((function(){var e=!0,t=Fk(n,!1);if(!t.length)return u;var o=[];function i(t){e?o.push(t):o.push(Object(r.a)(Object(r.a)({},t),{sortOrder:null}))}var a=null;return t.forEach((function(t){null===a?(i(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),i(t))})),o}),[n,u]),p=v.useMemo((function(){var e=h.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[h]);function f(e){var t;t=!1!==e.multiplePriority&&h.length&&!1!==h[0].multiplePriority?[].concat(de(h.filter((function(t){return t.key!==e.key}))),[e]):[e],d(t),i(Hk(t),t)}return[function(e){return function e(t,n,i,a,s,l,c,u){return(n||[]).map((function(n,d){var h=Nk(d,u),p=n;if(p.sorter){var f=p.sortDirections||s,m=void 0===p.showSorterTooltip?c:p.showSorterTooltip,y=Lk(p,h),b=i.find((function(e){return e.key===y})),C=b?b.sortOrder:null,_=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(f,C),x=f.includes("ascend")&&v.createElement(Ik,{className:w()("".concat(t,"-column-sorter-up"),{active:"ascend"===C})}),S=f.includes("descend")&&v.createElement(Mk,{className:w()("".concat(t,"-column-sorter-down"),{active:"descend"===C})}),k=l||{},P=k.cancelSort,T=k.triggerAsc,E=k.triggerDesc,O=P;"descend"===_?O=E:"ascend"===_&&(O=T);var M="object"===g(m)?m:{title:O};p=Object(r.a)(Object(r.a)({},p),{className:w()(p.className,o({},"".concat(t,"-column-sort"),C)),title:function(e){var r=v.createElement("div",{className:"".concat(t,"-column-sorters")},v.createElement("span",null,jk(n.title,e)),v.createElement("span",{className:w()("".concat(t,"-column-sorter"),o({},"".concat(t,"-column-sorter-full"),!(!x||!S)))},v.createElement("span",{className:"".concat(t,"-column-sorter-inner")},x,S)));return m?v.createElement(ys,M,v.createElement("div",{className:"".concat(t,"-column-sorters-with-tooltip")},r)):r},onHeaderCell:function(e){var r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick;return r.onClick=function(e){a({column:n,key:y,sortOrder:_,multiplePriority:Rk(n)}),o&&o(e)},r.className=w()(r.className,"".concat(t,"-column-has-sorters")),r}})}return"children"in p&&(p=Object(r.a)(Object(r.a)({},p),{children:e(t,p.children,i,a,s,l,c,h)})),p}))}(t,e,h,f,a,s,l)},h,p,function(){return Hk(h)}]}var Wk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Uk=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:Wk}))};Uk.displayName="FilterFilled";var Kk=v.forwardRef(Uk),Gk=function(e){return v.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};var qk=gu.SubMenu,$k=gu.Item;var Xk=function(e){var t,n,r,i,a=e.prefixCls,s=e.column,l=e.dropdownPrefixCls,c=e.columnKey,u=e.filterMultiple,d=e.filterState,h=e.triggerFilter,p=e.locale,f=e.children,m=e.getPopupContainer,g=s.filterDropdownVisible,y=s.onFilterDropdownVisibleChange,b=Ge(v.useState(!1),2),C=b[0],_=b[1],x=!(!d||!(null===(t=d.filteredKeys)||void 0===t?void 0:t.length)&&!d.forceFiltered),S=function(e){_(e),null==y||y(e)},k="boolean"==typeof g?g:C,P=null==d?void 0:d.filteredKeys,T=Ge((n=P||[],r=v.useRef(n),i=Ey(),[function(){return r.current},function(e){r.current=e,i()}]),2),E=T[0],O=T[1],M=function(e){var t=e.selectedKeys;O(t)};v.useEffect((function(){M({selectedKeys:P||[]})}),[P]);var A=Ge(v.useState([]),2),D=A[0],I=A[1],L=v.useRef();v.useEffect((function(){return function(){window.clearTimeout(L.current)}}),[]);var N,j=function(e){var t=e&&e.length?e:null;return null!==t||d&&d.filteredKeys?Qy()(t,null==d?void 0:d.filteredKeys)?null:void h({column:s,key:c,filteredKeys:t}):null},R=function(){S(!1),j(E())},z=function(){O([]),S(!1),j([])},F=w()(o({},"".concat(l,"-menu-without-submenu"),!(s.filters||[]).some((function(e){return e.children}))));if("function"==typeof s.filterDropdown)N=s.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(e){return M({selectedKeys:e})},selectedKeys:E(),confirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};S(!e.closeDropdown),j(E())},clearFilters:z,filters:s.filters,visible:k});else if(s.filterDropdown)N=s.filterDropdown;else{var B=E()||[];N=v.createElement(v.Fragment,null,v.createElement(gu,{multiple:u,prefixCls:"".concat(l,"-menu"),className:F,onClick:function(){window.clearTimeout(L.current)},onSelect:M,onDeselect:M,selectedKeys:B,getPopupContainer:m,openKeys:D,onOpenChange:function(e){L.current=window.setTimeout((function(){I(e)}))}},function e(t){var n=t.filters,r=t.prefixCls,o=t.filteredKeys,i=t.filterMultiple,a=t.locale;return 0===n.length?v.createElement("div",{style:{margin:"16px 0"}},v.createElement(oe,{image:oe.PRESENTED_IMAGE_SIMPLE,description:a.filterEmptyText,imageStyle:{height:24}})):n.map((function(t,n){var s=String(t.value);if(t.children)return v.createElement(qk,{key:s||n,title:t.text,popupClassName:"".concat(r,"-dropdown-submenu")},e({filters:t.children,prefixCls:r,filteredKeys:o,filterMultiple:i,locale:a}));var l=i?Tm:Q_;return v.createElement($k,{key:void 0!==t.value?s:n},v.createElement(l,{checked:o.includes(s)}),v.createElement("span",null,t.text))}))}({filters:s.filters||[],prefixCls:a,filteredKeys:E(),filterMultiple:u,locale:p})),v.createElement("div",{className:"".concat(a,"-dropdown-btns")},v.createElement(vl,{type:"link",size:"small",disabled:0===B.length,onClick:z},p.filterReset),v.createElement(vl,{type:"primary",size:"small",onClick:R},p.filterConfirm)))}var H,V=v.createElement(Gk,{className:"".concat(a,"-dropdown")},N);H="function"==typeof s.filterIcon?s.filterIcon(x):s.filterIcon?s.filterIcon:v.createElement(Kk,null);var Y=v.useContext(ae).direction;return v.createElement("div",{className:w()("".concat(a,"-column"))},v.createElement("span",{className:"".concat(a,"-column-title")},f),v.createElement("span",{className:w()("".concat(a,"-trigger-container"),o({},"".concat(a,"-trigger-container-open"),k)),onClick:function(e){e.stopPropagation()}},v.createElement(ty,{overlay:V,trigger:["click"],visible:k,onVisibleChange:function(e){e&&void 0!==P&&O(P||[]),S(e),e||s.filterDropdown||R()},getPopupContainer:m,placement:"rtl"===Y?"bottomLeft":"bottomRight"},v.createElement("span",{role:"button",tabIndex:-1,className:w()("".concat(a,"-trigger"),{active:x})},H))))};function Jk(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i,a=Nk(o,n);if("children"in e)r=[].concat(de(r),de(Jk(e.children,t,a)));else if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var s=e.filteredValue;"filterDropdown"in e||(s=null!==(i=null==s?void 0:s.map(String))&&void 0!==i?i:s),r.push({column:e,key:Lk(e,a),filteredKeys:s,forceFiltered:e.filtered})}else r.push({column:e,key:Lk(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})})),r}function Zk(e){var t=[];return(e||[]).forEach((function(e){var n=e.value,r=e.children;t.push(n),r&&(t=[].concat(de(t),de(Zk(r))))})),t}function Qk(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys,o=e.column,i=o.filters;if(o.filterDropdown)t[n]=r||null;else if(Array.isArray(r)){var a=Zk(i);t[n]=a.filter((function(e){return r.includes(String(e))}))}else t[n]=null})),t}function eP(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=Zk(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)}var tP=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,o=e.mergedColumns,i=e.onFilterChange,a=e.getPopupContainer,s=e.locale,l=Ge(v.useState(Jk(o,!0)),2),c=l[0],u=l[1],d=v.useMemo((function(){var e=Jk(o,!1);return e.every((function(e){return void 0===e.filteredKeys}))?c:e}),[o,c]),h=v.useCallback((function(){return Qk(d)}),[d]),p=function(e){var t=d.filter((function(t){return t.key!==e.key}));t.push(e),u(t),i(Qk(t),t)};return[function(e){return function e(t,n,o,i,a,s,l,c){return o.map((function(o,u){var d=Nk(u,c),h=o.filterMultiple,p=void 0===h||h,f=o;if(f.filters||f.filterDropdown){var m=Lk(f,d),g=i.find((function(e){var t=e.key;return m===t}));f=Object(r.a)(Object(r.a)({},f),{title:function(e){return v.createElement(Xk,{prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:n,column:f,columnKey:m,filterState:g,filterMultiple:p,triggerFilter:a,locale:l,getPopupContainer:s},jk(o.title,e))}})}return"children"in f&&(f=Object(r.a)(Object(r.a)({},f),{children:e(t,n,f.children,i,a,s,l,d)})),f}))}(t,n,e,d,p,a,s)},d,h]};function nP(e){return[v.useCallback((function(t){return function e(t,n){return t.map((function(t){var o=Object(r.a)({},t);return o.title=jk(t.title,n),"children"in o&&(o.children=e(o.children,n)),o}))}(t,e)}),[e])]}var rP=function(e){return function(t){var n,r=t.prefixCls,i=t.onExpand,a=t.record,s=t.expanded,l=t.expandable,c="".concat(r,"-row-expand-icon");return v.createElement("button",{type:"button",onClick:function(e){i(a,e),e.stopPropagation()},className:w()(c,(n={},o(n,"".concat(c,"-spaced"),!l),o(n,"".concat(c,"-expanded"),l&&s),o(n,"".concat(c,"-collapsed"),l&&!s),n)),"aria-label":s?e.collapse:e.expand})}};var oP=function(e){return null};var iP=function(e){return null},aP=[];function sP(e){var t,n=e.prefixCls,i=e.className,a=e.style,s=e.size,l=e.bordered,c=e.dropdownPrefixCls,u=e.dataSource,d=e.pagination,h=e.rowSelection,p=e.rowKey,f=e.rowClassName,m=e.columns,y=e.children,b=e.childrenColumnName,C=e.onChange,x=e.getPopupContainer,S=e.loading,k=e.expandIcon,P=e.expandable,T=e.expandedRowRender,E=e.expandIconColumnIndex,O=e.indentSize,M=e.scroll,A=e.sortDirections,D=e.locale,I=e.showSorterTooltip,L=void 0===I||I;aa(!("function"==typeof p&&p.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var N=qa(),j=v.useMemo((function(){var e=new Set(Object.keys(N).filter((function(e){return N[e]})));return(m||NS(y)).filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[y,m,N]),R=_(e,["className","style","columns"]),z=v.useContext(Xi),F=v.useContext(ae),B=F.locale,H=void 0===B?Hb:B,V=F.renderEmpty,Y=F.direction,W=s||z,U=Object(r.a)(Object(r.a)({},H.Table),D),K=u||aP,G=v.useContext(ae).getPrefixCls,q=G("table",n),$=G("dropdown",c),X=Object(r.a)({childrenColumnName:b,expandIconColumnIndex:E},P),J=X.childrenColumnName,Z=void 0===J?"children":J,Q=v.useMemo((function(){return K.some((function(e){var t;return null===(t=e)||void 0===t?void 0:t[Z]}))?"nest":T||P&&P.expandedRowRender?"row":null}),[K]),ee={body:v.useRef()},te=v.useMemo((function(){return"function"==typeof p?p:function(e){var t;return null===(t=e)||void 0===t?void 0:t[p]}}),[p]),ne=Ge(function(e,t,n){var r=v.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){var i=new Map;!function e(r){r.forEach((function(r,o){var a=n(r,o);i.set(a,r),r&&"object"===g(r)&&t in r&&e(r[t]||[])}))}(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(o)}]}(K,Z,te),1)[0],re={},oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object(r.a)(Object(r.a)({},re),e);n&&(re.resetPagination(),o.pagination.current&&(o.pagination.current=1),d&&d.onChange&&d.onChange(1,o.pagination.pageSize)),M&&!1!==M.scrollToFirstRowOnChange&&ee.body.current&&je(0,{getContainer:function(){return ee.body.current}}),null==C||C(o.pagination,o.filters,o.sorter,{currentDataSource:eP(Vk(K,o.sorterStates,Z),o.filterStates),action:t})},ie=Ge(Yk({prefixCls:q,mergedColumns:j,onSorterChange:function(e,t){oe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:A||["ascend","descend"],tableLocale:U,showSorterTooltip:L}),4),se=ie[0],le=ie[1],ce=ie[2],ue=ie[3],de=v.useMemo((function(){return Vk(K,le,Z)}),[K,le]);re.sorter=ue(),re.sorterStates=le;var he=Ge(tP({prefixCls:q,locale:U,dropdownPrefixCls:$,mergedColumns:j,onFilterChange:function(e,t){oe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x}),3),pe=he[0],fe=he[1],me=he[2],ge=eP(de,fe);re.filters=me(),re.filterStates=fe;var ve=Ge(nP(v.useMemo((function(){return Object(r.a)({},ce)}),[ce])),1)[0],ye=Ge(QS(ge.length,d,(function(e,t){oe({pagination:Object(r.a)(Object(r.a)({},re.pagination),{current:e,pageSize:t})},"paginate")})),2),be=ye[0],we=ye[1];re.pagination=!1===d?{}:function(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===g(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!=typeof r&&(n[e]=r)})),n}(d,be),re.resetPagination=we;var Ce=v.useMemo((function(){if(!1===d||!be.pageSize)return ge;var e=be.current,t=void 0===e?1:e,n=be.total,r=be.pageSize,o=void 0===r?10:r;return aa(t>0,"Table","`current` should be positive number."),ge.length<n?ge.length>o?(aa(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),ge.slice((t-1)*o,t*o)):ge:ge.slice((t-1)*o,t*o)}),[!!d,ge,be&&be.current,be&&be.pageSize,be&&be.total]),_e=Ge(Tk(h,{prefixCls:q,data:ge,pageData:Ce,getRowKey:te,getRecordByKey:ne,expandType:Q,childrenColumnName:Z,locale:U,expandIconColumnIndex:X.expandIconColumnIndex,getPopupContainer:x}),2),xe=_e[0],Se=_e[1];X.__PARENT_RENDER_ICON__=X.expandIcon,X.expandIcon=X.expandIcon||k||rP(U),"nest"===Q&&void 0===X.expandIconColumnIndex?X.expandIconColumnIndex=h?1:0:X.expandIconColumnIndex>0&&h&&(X.expandIconColumnIndex-=1),"number"!=typeof X.indentSize&&(X.indentSize="number"==typeof O?O:15);var ke,Pe,Te,Ee=v.useCallback((function(e){return ve(xe(pe(se(e))))}),[se,pe,xe]);if(!1!==d&&(null==be?void 0:be.total)){var Oe;Oe=be.size?be.size:"small"===W||"middle"===W?"small":void 0;var Me=function(e){return v.createElement(Zw,Object(r.a)({className:"".concat(q,"-pagination ").concat(q,"-pagination-").concat(e)},be,{size:Oe}))},Ae="rtl"===Y?"left":"right",De=be.position;if(null!==De&&Array.isArray(De)){var Ie=De.find((function(e){return-1!==e.indexOf("top")})),Le=De.find((function(e){return-1!==e.indexOf("bottom")})),Ne=De.every((function(e){return"none"==="".concat(e)}));Ie||Le||Ne||(Pe=Me(Ae)),Ie&&(ke=Me(Ie.toLowerCase().replace("top",""))),Le&&(Pe=Me(Le.toLowerCase().replace("bottom","")))}else Pe=Me(Ae)}"boolean"==typeof S?Te={spinning:S}:"object"===g(S)&&(Te=Object(r.a)({spinning:!0},S));var Re=w()("".concat(q,"-wrapper"),o({},"".concat(q,"-wrapper-rtl"),"rtl"===Y),i);return v.createElement("div",{className:Re,style:a},v.createElement(Dw,Object(r.a)({spinning:!1},Te),ke,v.createElement(JS,Object(r.a)({},R,{columns:j,direction:Y,expandable:X,prefixCls:q,className:w()((t={},o(t,"".concat(q,"-middle"),"middle"===W),o(t,"".concat(q,"-small"),"small"===W),o(t,"".concat(q,"-bordered"),l),o(t,"".concat(q,"-empty"),0===K.length),t)),data:Ce,rowKey:te,rowClassName:function(e,t,n){var r;return r="function"==typeof f?w()(f(e,t,n)):w()(f),w()(o({},"".concat(q,"-row-selected"),Se.has(te(e,t))),r)},emptyText:D&&D.emptyText||V("Table"),internalHooks:"rc-table-internal-hook",internalRefs:ee,transformColumns:Ee})),Pe))}sP.defaultProps={rowKey:"key"},sP.SELECTION_ALL="SELECT_ALL",sP.SELECTION_INVERT="SELECT_INVERT",sP.SELECTION_NONE="SELECT_NONE",sP.Column=oP,sP.ColumnGroup=iP,sP.Summary=VS;var lP=sP;function cP(e){var t=e.placeholder,n=void 0===t?"":t,r=e.value,o=e.prefixCls,i=e.disabled,a=e.onChange,s=e.handleClear,l=v.useCallback((function(e){null==a||a(e)}),[a]);return v.createElement(v.Fragment,null,v.createElement(am,{placeholder:n,className:o,value:r,onChange:l,disabled:i}),r&&r.length>0?v.createElement("a",{className:"".concat(o,"-action"),onClick:function(e){e.preventDefault(),!i&&s&&s(e)}},v.createElement(Yi,null)):v.createElement("span",{className:"".concat(o,"-action")},v.createElement(Ki,null)))}var uP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},dP=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:uP}))};dP.displayName="DeleteOutlined";var hP=v.forwardRef(dP),pP=function(e){var t,n,r=e.renderedText,i=e.renderedEl,a=e.item,s=e.checked,l=e.disabled,c=e.prefixCls,u=e.onClick,d=e.onRemove,h=e.showRemove,p=w()((o(t={},"".concat(c,"-content-item"),!0),o(t,"".concat(c,"-content-item-disabled"),l||a.disabled),o(t,"".concat(c,"-content-item-checked"),s),t));return"string"!=typeof r&&"number"!=typeof r||(n=String(r)),v.createElement(J,{componentName:"Transfer",defaultLocale:q.Transfer},(function(e){var t={className:p,title:n},r=v.createElement("span",{className:"".concat(c,"-content-item-text")},i);return h?v.createElement("li",t,r,v.createElement(S_,{disabled:l||a.disabled,className:"".concat(c,"-content-item-remove"),"aria-label":e.remove,onClick:function(){null==d||d(a)}},v.createElement(hP,null))):(t.onClick=l||a.disabled?void 0:function(){return u(a)},v.createElement("li",t,v.createElement(Tm,{className:"".concat(c,"-checkbox"),checked:s,disabled:l||a.disabled}),r))}))},fP=v.memo(pP),mP=hs("handleFilter","handleClear","checkedKeys");function gP(e){if(!e)return null;var t={pageSize:10};return"object"===g(e)?Object(r.a)(Object(r.a)({},t),e):t}var vP=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={current:1},e.onItemSelect=function(t){var n=e.props,r=n.onItemSelect,o=n.selectedKeys.indexOf(t.key)>=0;r(t.key,!o)},e.onItemRemove=function(t){var n=e.props.onItemRemove;null==n||n([t.key])},e.onPageChange=function(t){e.setState({current:t})},e.getItems=function(){var t=e.state.current,n=e.props,r=n.pagination,o=n.filteredRenderItems,i=gP(r),a=o;return i&&(a=o.slice((t-1)*i.pageSize,t*i.pageSize)),a},e}return s(n,[{key:"render",value:function(){var e=this,t=this.state.current,n=this.props,r=n.prefixCls,i=n.onScroll,a=n.filteredRenderItems,s=n.selectedKeys,l=n.disabled,c=n.showRemove,u=gP(n.pagination),d=null;return u&&(d=v.createElement(Zw,{simple:!0,size:"small",disabled:l,className:"".concat(r,"-pagination"),total:a.length,pageSize:u.pageSize,current:t,onChange:this.onPageChange})),v.createElement(v.Fragment,null,v.createElement("ul",{className:w()("".concat(r,"-content"),o({},"".concat(r,"-content-show-remove"),c)),onScroll:i},this.getItems().map((function(t){var n=t.renderedEl,o=t.renderedText,i=t.item,a=i.disabled,u=s.indexOf(i.key)>=0;return v.createElement(fP,{disabled:l||a,key:i.key,item:i,renderedText:o,renderedEl:n,checked:u,prefixCls:r,onClick:e.onItemSelect,onRemove:e.onItemRemove,showRemove:c})}))),d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.filteredRenderItems,r=e.pagination,o=t.current,i=gP(r);if(i){var a=Math.ceil(n.length/i.pageSize);if(o>a)return{current:a}}return null}}]),n}(v.Component),yP=function(){return null};function bP(e){return e.filter((function(e){return!e.disabled})).map((function(e){return e.key}))}var wP=function(e){c(n,e);var t=m(n);function n(e){var o;return i(this,n),(o=t.call(this,e)).defaultListBodyRef=v.createRef(),o.handleFilter=function(e){var t=o.props.handleFilter,n=e.target.value;o.setState({filterValue:n}),t(e)},o.handleClear=function(){var e=o.props.handleClear;o.setState({filterValue:""}),e()},o.matchFilter=function(e,t){var n=o.state.filterValue,r=o.props.filterOption;return r?r(n,t):e.indexOf(n)>=0},o.getCurrentPageItems=function(){},o.renderListBody=function(e,t){var n=e?e(t):null,i=!!n;return i||(n=v.createElement(vP,Object(r.a)({ref:o.defaultListBodyRef},t))),{customize:i,bodyContent:n}},o.renderItem=function(e){var t,n=o.props.render,r=(void 0===n?yP:n)(e),i=(t=r)&&!sa(t)&&"[object Object]"===Object.prototype.toString.call(t);return{renderedText:i?r.value:r,renderedEl:i?r.label:r,item:e}},o.getSelectAllLabel=function(e,t){var n=o.props,r=n.itemsUnit,i=n.itemUnit,a=n.selectAllLabel;if(a)return"function"==typeof a?a({selectedCount:e,totalCount:t}):a;var s=t>1?r:i;return v.createElement(v.Fragment,null,(e>0?"".concat(e,"/"):"")+t," ",s)},o.state={filterValue:""},o}return s(n,[{key:"componentWillUnmount",value:function(){clearTimeout(this.triggerScrollTimer)}},{key:"getCheckStatus",value:function(e){var t=this.props.checkedKeys;return 0===t.length?"none":e.every((function(e){return t.indexOf(e.key)>=0||!!e.disabled}))?"all":"part"}},{key:"getFilteredItems",value:function(e,t){var n=this,r=[],o=[];return e.forEach((function(e){var i=n.renderItem(e),a=i.renderedText;if(t&&!n.matchFilter(a,e))return null;r.push(e),o.push(i)})),{filteredItems:r,filteredRenderItems:o}}},{key:"getListBody",value:function(e,t,n,o,i,a,s,l,c,u){var d,h=c?v.createElement("div",{className:"".concat(e,"-body-search-wrapper")},v.createElement(cP,{prefixCls:"".concat(e,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:t,value:n,disabled:u})):null,p=this.renderListBody(l,Object(r.a)(Object(r.a)({},_(this.props,mP)),{filteredItems:o,filteredRenderItems:a,selectedKeys:s})),f=p.bodyContent;return d=p.customize?v.createElement("div",{className:"".concat(e,"-body-customize-wrapper")},f):o.length?f:v.createElement("div",{className:"".concat(e,"-body-not-found")},i),v.createElement("div",{className:w()(c?"".concat(e,"-body ").concat(e,"-body-with-search"):"".concat(e,"-body"))},h,d)}},{key:"getCheckBox",value:function(e,t,n,r,o){var i=this.getCheckStatus(e),a="all"===i;return!1!==n&&v.createElement(Tm,{disabled:r,checked:a,indeterminate:"part"===i,className:"".concat(o,"-checkbox"),onChange:function(){t(e.filter((function(e){return!e.disabled})).map((function(e){return e.key})),!a)}})}},{key:"render",value:function(){var e,t=this,n=this.state.filterValue,r=this.props,i=r.prefixCls,a=r.dataSource,s=r.titleText,l=r.checkedKeys,c=r.disabled,u=r.footer,d=r.showSearch,h=r.style,p=r.searchPlaceholder,f=r.notFoundContent,m=r.selectAll,g=r.selectCurrent,y=r.selectInvert,b=r.removeAll,C=r.removeCurrent,_=r.renderList,x=r.onItemSelectAll,S=r.onItemRemove,k=r.showSelectAll,P=r.showRemove,T=r.pagination,E=u&&u(this.props),O=w()(i,(o(e={},"".concat(i,"-with-pagination"),!!T),o(e,"".concat(i,"-with-footer"),!!E),e)),M=this.getFilteredItems(a,n),A=M.filteredItems,D=M.filteredRenderItems,I=this.getListBody(i,p,n,A,f,D,l,_,d,c),L=E?v.createElement("div",{className:"".concat(i,"-footer")},E):null,N=!P&&!T&&this.getCheckBox(A,x,k,c,i),j=null;j=P?v.createElement(gu,null,T&&v.createElement(gu.Item,{onClick:function(){var e,n=bP(((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})));null==S||S(n)}},C),v.createElement(gu.Item,{onClick:function(){null==S||S(bP(A))}},b)):v.createElement(gu,null,v.createElement(gu.Item,{onClick:function(){var e=bP(A);x(e,e.length!==l.length)}},m),T&&v.createElement(gu.Item,{onClick:function(){var e,n=(null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[];x(bP(n.map((function(e){return e.item}))),!0)}},g),v.createElement(gu.Item,{onClick:function(){var e,n;n=bP(T?((null===(e=t.defaultListBodyRef.current)||void 0===e?void 0:e.getItems())||[]).map((function(e){return e.item})):A);var r=new Set(l),o=[],i=[];n.forEach((function(e){r.has(e)?i.push(e):o.push(e)})),x(o,!0),x(i,!1)}},y));var R=v.createElement(ty,{className:"".concat(i,"-header-dropdown"),overlay:j,disabled:c},v.createElement(Ai,null));return v.createElement("div",{className:O,style:h},v.createElement("div",{className:"".concat(i,"-header")},N,R,v.createElement("span",{className:"".concat(i,"-header-selected")},this.getSelectAllLabel(l.length,A.length)),v.createElement("span",{className:"".concat(i,"-header-title")},s)),I,L)}}]),n}(v.PureComponent);wP.defaultProps={dataSource:[],titleText:"",showSearch:!1};var CP=function(e){var t=e.disabled,n=e.moveToLeft,r=e.moveToRight,o=e.leftArrowText,i=void 0===o?"":o,a=e.rightArrowText,s=void 0===a?"":a,l=e.leftActive,c=e.rightActive,u=e.className,d=e.style,h=e.direction,p=e.oneWay;return v.createElement("div",{className:u,style:d},v.createElement(vl,{type:"primary",size:"small",disabled:t||!c,onClick:r,icon:"rtl"!==h?v.createElement(Ks,null):v.createElement(qc,null)},s),!p&&v.createElement(vl,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:"rtl"!==h?v.createElement(qc,null):v.createElement(Ks,null)},i))},_P=function(e){c(n,e);var t=m(n);function n(e){var a;i(this,n),(a=t.call(this,e)).separatedDataSource=null,a.setStateKeys=function(e,t){"left"===e?a.setState((function(e){var n=e.sourceSelectedKeys;return{sourceSelectedKeys:"function"==typeof t?t(n||[]):t}})):a.setState((function(e){var n=e.targetSelectedKeys;return{targetSelectedKeys:"function"==typeof t?t(n||[]):t}}))},a.getLocale=function(e,t){return Object(r.a)(Object(r.a)(Object(r.a)({},e),{notFoundContent:t("Transfer")}),a.props.locale)},a.moveTo=function(e){var t=a.props,n=t.targetKeys,r=void 0===n?[]:n,o=t.dataSource,i=void 0===o?[]:o,s=t.onChange,l=a.state,c=l.sourceSelectedKeys,u=l.targetSelectedKeys,d=("right"===e?c:u).filter((function(e){return!i.some((function(t){return!(e!==t.key||!t.disabled)}))})),h="right"===e?d.concat(r):r.filter((function(e){return-1===d.indexOf(e)})),p="right"===e?"left":"right";a.setStateKeys(p,[]),a.handleSelectChange(p,[]),null==s||s(h,e,d)},a.moveToLeft=function(){return a.moveTo("left")},a.moveToRight=function(){return a.moveTo("right")},a.onItemSelectAll=function(e,t,n){a.setStateKeys(e,(function(r){var o=[];return o=n?Array.from(new Set([].concat(de(r),de(t)))):r.filter((function(e){return-1===t.indexOf(e)})),a.handleSelectChange(e,o),o}))},a.onLeftItemSelectAll=function(e,t){return a.onItemSelectAll("left",e,t)},a.onRightItemSelectAll=function(e,t){return a.onItemSelectAll("right",e,t)},a.handleFilter=function(e,t){var n=a.props.onSearch,r=t.target.value;null==n||n(e,r)},a.handleLeftFilter=function(e){return a.handleFilter("left",e)},a.handleRightFilter=function(e){return a.handleFilter("right",e)},a.handleClear=function(e){var t=a.props.onSearch;null==t||t(e,"")},a.handleLeftClear=function(){return a.handleClear("left")},a.handleRightClear=function(){return a.handleClear("right")},a.onItemSelect=function(e,t,n){var r=a.state,o=r.sourceSelectedKeys,i=r.targetSelectedKeys,s=de("left"===e?o:i),l=s.indexOf(t);l>-1&&s.splice(l,1),n&&s.push(t),a.handleSelectChange(e,s),a.props.selectedKeys||a.setStateKeys(e,s)},a.onLeftItemSelect=function(e,t){return a.onItemSelect("left",e,t)},a.onRightItemSelect=function(e,t){return a.onItemSelect("right",e,t)},a.onRightItemRemove=function(e){var t=a.props,n=t.targetKeys,r=void 0===n?[]:n,o=t.onChange;a.setStateKeys("right",[]),null==o||o(r.filter((function(t){return!e.includes(t)})),"left",de(e))},a.handleScroll=function(e,t){var n=a.props.onScroll;null==n||n(e,t)},a.handleLeftScroll=function(e){return a.handleScroll("left",e)},a.handleRightScroll=function(e){return a.handleScroll("right",e)},a.handleListStyle=function(e,t){return"function"==typeof e?e({direction:t}):e},a.renderTransfer=function(e){return v.createElement(se,null,(function(t){var n,i=t.getPrefixCls,s=t.renderEmpty,l=t.direction,c=a.props,u=c.prefixCls,d=c.className,h=c.disabled,p=c.operations,f=void 0===p?[]:p,m=c.showSearch,g=c.footer,y=c.style,b=c.listStyle,C=c.operationStyle,_=c.filterOption,x=c.render,S=c.children,k=c.showSelectAll,P=c.oneWay,T=c.pagination,E=i("transfer",u),O=a.getLocale(e,s),M=a.state,A=M.sourceSelectedKeys,D=M.targetSelectedKeys,I=!S&&T,L=a.separateDataSource(),N=L.leftDataSource,j=L.rightDataSource,R=D.length>0,z=A.length>0,F=w()(E,(o(n={},"".concat(E,"-disabled"),h),o(n,"".concat(E,"-customize-list"),!!S),o(n,"".concat(E,"-rtl"),"rtl"===l),n),d),B=a.getTitles(O),H=a.props.selectAllLabels||[];return v.createElement("div",{className:F,style:y},v.createElement(wP,Object(r.a)({prefixCls:"".concat(E,"-list"),titleText:B[0],dataSource:N,filterOption:_,style:a.handleListStyle(b,"left"),checkedKeys:A,handleFilter:a.handleLeftFilter,handleClear:a.handleLeftClear,onItemSelect:a.onLeftItemSelect,onItemSelectAll:a.onLeftItemSelectAll,render:x,showSearch:m,renderList:S,footer:g,onScroll:a.handleLeftScroll,disabled:h,direction:"left",showSelectAll:k,selectAllLabel:H[0],pagination:I},O)),v.createElement(CP,{className:"".concat(E,"-operation"),rightActive:z,rightArrowText:f[0],moveToRight:a.moveToRight,leftActive:R,leftArrowText:f[1],moveToLeft:a.moveToLeft,style:C,disabled:h,direction:l,oneWay:P}),v.createElement(wP,Object(r.a)({prefixCls:"".concat(E,"-list"),titleText:B[1],dataSource:j,filterOption:_,style:a.handleListStyle(b,"right"),checkedKeys:D,handleFilter:a.handleRightFilter,handleClear:a.handleRightClear,onItemSelect:a.onRightItemSelect,onItemSelectAll:a.onRightItemSelectAll,onItemRemove:a.onRightItemRemove,render:x,showSearch:m,renderList:S,footer:g,onScroll:a.handleRightScroll,disabled:h,direction:"right",showSelectAll:k,selectAllLabel:H[1],showRemove:P,pagination:I},O)))}))};var s=e.selectedKeys,l=void 0===s?[]:s,c=e.targetKeys,u=void 0===c?[]:c;return a.state={sourceSelectedKeys:l.filter((function(e){return-1===u.indexOf(e)})),targetSelectedKeys:l.filter((function(e){return u.indexOf(e)>-1}))},a}return s(n,[{key:"getTitles",value:function(e){var t=this.props.titles;return t||e.titles}},{key:"handleSelectChange",value:function(e,t){var n=this.state,r=n.sourceSelectedKeys,o=n.targetSelectedKeys,i=this.props.onSelectChange;i&&("left"===e?i(t,o):i(r,t))}},{key:"separateDataSource",value:function(){var e=this.props,t=e.dataSource,n=e.rowKey,o=e.targetKeys,i=void 0===o?[]:o,a=[],s=new Array(i.length);return t.forEach((function(e){n&&(e=Object(r.a)(Object(r.a)({},e),{key:n(e)}));var t=i.indexOf(e.key);-1!==t?s[t]=e:a.push(e)})),{leftDataSource:a,rightDataSource:s}}},{key:"render",value:function(){return v.createElement(J,{componentName:"Transfer",defaultLocale:q.Transfer},this.renderTransfer)}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.selectedKeys,n=e.targetKeys,r=e.pagination,o=e.children;if(t){var i=n||[];return{sourceSelectedKeys:t.filter((function(e){return!i.includes(e)})),targetSelectedKeys:t.filter((function(e){return i.includes(e)}))}}return aa(!r||!o,"Transfer","`pagination` not support customize render list."),null}}]),n}(v.Component);_P.List=wP,_P.Operation=CP,_P.Search=cP,_P.defaultProps={dataSource:[],locale:{},showSearch:!1,listStyle:function(){}};var xP=_P,SP=function(e,t){var n=e.className,o=e.style,i=e.motion,a=e.motionNodes,s=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,h=$e(e,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),p=Ge(v.useState(!0),2),f=p[0],m=p[1],g=v.useContext(ek).prefixCls,y=v.useRef(!1),b=function(){y.current||c(),y.current=!0};return Object(v.useEffect)((function(){a&&"hide"===s&&f&&m(!1)}),[a]),Object(v.useEffect)((function(){return a&&l(),function(){a&&b()}}),[]),a?v.createElement(or,Object(r.a)({ref:t,visible:f},i,{motionAppear:"show"===s,onAppearEnd:b,onLeaveEnd:b}),(function(e,t){var n=e.className,o=e.style;return v.createElement("div",{ref:t,className:w()("".concat(g,"-treenode-motion"),n),style:o},a.map((function(e){var t=e.data,n=t.key,o=$e(t,["key"]),i=e.isStart,a=e.isEnd;delete o.children;var s=Ck(n,d);return v.createElement(ok,Object(r.a)({},o,s,{active:u,data:e.data,key:n,isStart:i,isEnd:a}))})))})):v.createElement(ok,Object(r.a)({domRef:t,className:n,style:o},h,{active:u}))};SP.displayName="MotionTreeNode";var kP=v.forwardRef(SP);function PP(e,t,n){var r=e.findIndex((function(e){return e.data.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.data.key===n}));if(o){var a=t.findIndex((function(e){return e.data.key===o.data.key}));return t.slice(i+1,a)}return t.slice(i+1)}var TP={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},EP=function(){},OP="RC_TREE_MOTION_".concat(Math.random()),MP={key:OP},AP={key:OP,level:0,index:0,pos:"0",node:MP},DP={parent:null,children:[],pos:AP.pos,data:MP,isStart:[],isEnd:[]};function IP(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function LP(e){return gk(e.data.key,e.pos)}var NP=function(e,t){var n=e.prefixCls,o=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,s=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,h=e.disabled,p=e.dragging,f=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,y=e.height,b=e.itemHeight,w=e.virtual,C=e.focusable,_=e.activeItem,x=e.focused,S=e.tabIndex,k=e.onKeyDown,P=e.onFocus,T=e.onBlur,E=e.onActiveChange,O=e.onListChangeStart,M=e.onListChangeEnd,A=$e(e,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),D=v.useRef(null),I=v.useRef(null);v.useImperativeHandle(t,(function(){return{scrollTo:function(e){D.current.scrollTo(e)},getIndentWidth:function(){return I.current.offsetWidth}}}));var L=Ge(v.useState(i),2),N=L[0],j=L[1],R=Ge(v.useState(o),2),z=R[0],F=R[1],B=Ge(v.useState(o),2),H=B[0],V=B[1],Y=Ge(v.useState([]),2),W=Y[0],U=Y[1],K=Ge(v.useState(null),2),G=K[0],q=K[1];function $(){F(o),V(o),U([]),q(null),M()}v.useEffect((function(){j(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(N,i);if(null!==e.key)if(e.add){var t=z.findIndex((function(t){return t.data.key===e.key})),n=IP(PP(z,o,e.key),w,y,b),r=z.slice();r.splice(t+1,0,DP),V(r),U(n),q("show")}else{var a=o.findIndex((function(t){return t.data.key===e.key})),s=IP(PP(o,z,e.key),w,y,b),l=o.slice();l.splice(a+1,0,DP),V(l),U(s),q("hide")}else z!==o&&(F(o),V(o))}),[i,o]),v.useEffect((function(){p||$()}),[p]);var X=g?H:o,J={expandedKeys:i,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:f,dropPosition:m,keyEntities:d};return v.createElement(v.Fragment,null,x&&_&&v.createElement("span",{style:TP,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(_)),v.createElement("div",{role:"tree"},v.createElement("input",{style:TP,disabled:!1===C||h,tabIndex:!1!==C?S:null,onKeyDown:k,onFocus:P,onBlur:T,value:"",onChange:EP})),v.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},v.createElement("div",{className:"".concat(n,"-indent")},v.createElement("div",{ref:I,className:"".concat(n,"-indent-unit")}))),v.createElement(Bt,Object(r.a)({},A,{data:X,itemKey:LP,height:y,fullHeight:!1,virtual:w,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:D}),(function(e){var t=e.pos,n=e.data,o=n.key,i=$e(n,["key"]),a=e.isStart,s=e.isEnd,l=gk(o,t);delete i.children;var c=Ck(l,J);return v.createElement(kP,Object(r.a)({},i,c,{active:!!_&&o===_.data.key,pos:t,data:e.data,isStart:a,isEnd:s,motion:g,motionNodes:o===OP?W:null,motionType:G,onMotionStart:O,onMotionEnd:$,treeNodeRequiredProps:J,onMouseMove:function(){E(null)}}))})))},jP=v.forwardRef(NP);jP.displayName="NodeList";var RP=jP;var zP=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).destroyed=!1,e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},e.dragStartMousePosition=null,e.listRef=v.createRef(),e.onNodeDragStart=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var l=ik(o,s);e.setState({dragging:!0,dragChildrenKeys:ck(s,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(l),window.addEventListener("dragend",e.onWindowDragEnd),a&&a({event:t,node:_k(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,s=r.flattenNodes,l=r.indent,c=e.props,u=c.onDragEnter,d=c.onExpand,h=c.allowDrop,f=c.direction,m=n.props.pos,g=Object(p.a)(e).dragNode,v=dk(t,0,n,l,e.dragStartMousePosition,h,s,i,o,f),y=v.dropPosition,b=v.dropLevelOffset,w=v.dropTargetKey,C=v.dropContainerKey,_=v.dropTargetPos,x=v.dropAllowed,S=v.dragOverNodeKey;g&&-1===a.indexOf(w)&&x?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),g.props.eventKey!==n.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[m]=window.setTimeout((function(){if(e.state.dragging){var r=de(o),a=i[n.props.eventKey];a&&(a.children||[]).length&&(r=ak(o,n.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),d&&d(r,{node:_k(n.props),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),g.props.eventKey!==w||0!==b?(e.setState({dragOverNodeKey:S,dropPosition:y,dropLevelOffset:b,dropTargetKey:w,dropContainerKey:C,dropTargetPos:_,dropAllowed:x}),u&&u({event:t,node:_k(n.props),expandedKeys:o})):e.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})):e.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},e.onNodeDragOver=function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,s=r.expandedKeys,l=r.indent,c=e.props,u=c.onDragOver,d=c.allowDrop,h=c.direction,f=Object(p.a)(e).dragNode,m=dk(t,0,n,l,e.dragStartMousePosition,d,i,a,s,h),g=m.dropPosition,v=m.dropLevelOffset,y=m.dropTargetKey,b=m.dropContainerKey,w=m.dropAllowed,C=m.dropTargetPos,_=m.dragOverNodeKey;f&&-1===o.indexOf(y)&&w&&(f.props.eventKey===y&&0===v?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.setState({dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1,dragOverNodeKey:null}):g===e.state.dropPosition&&v===e.state.dropLevelOffset&&y===e.state.dropTargetKey&&b===e.state.dropContainerKey&&C===e.state.dropTargetPos&&w===e.state.dropAllowed&&_===e.state.dragOverNodeKey||e.setState({dropPosition:g,dropLevelOffset:v,dropTargetKey:y,dropContainerKey:b,dropTargetPos:C,dropAllowed:w,dragOverNodeKey:_}),u&&u({event:t,node:_k(n.props)}))},e.onNodeDragLeave=function(t,n){var r=e.props.onDragLeave;r&&r({event:t,node:_k(n.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),o&&!r&&o({event:t,node:_k(n.props)}),e.dragNode=null},e.onNodeDrop=function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,s=i.dropPosition,l=i.dropTargetKey,c=i.dropTargetPos,u=i.dropAllowed;if(u){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var h=S(S({},Ck(l,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.data.key)===l,data:e.state.keyEntities[l].node}),p=-1!==a.indexOf(l);N(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=sk(c),m={event:t,node:_k(h),dragNode:e.dragNode?_k(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(f[f.length-1])};d&&!o&&d(m),e.dragNode=null}}},e.cleanDragState=function(){e.state.dragging&&e.setState({dragging:!1,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null},e.onNodeClick=function(t,n){var r=e.props.onClick;r&&r(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props.onDoubleClick;r&&r(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,o=e.state.keyEntities,i=e.props,a=i.onSelect,s=i.multiple,l=n.selected,c=n.key,u=!l,d=(r=u?s?ak(r,c):[c]:ik(r,c)).map((function(e){var t=o[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),a&&a(r,{event:"select",selected:u,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var o,i=e.state,a=i.keyEntities,s=i.checkedKeys,l=i.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,h=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var f=r?ak(s,h):ik(s,h);o={checked:f,halfChecked:ik(l,h)},p.checkedNodes=f.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:f})}else{var m=kk([].concat(de(s),[h]),!0,a),g=m.checkedKeys,v=m.halfCheckedKeys;if(!r){var y=new Set(g);y.delete(h);var b=kk(Array.from(y),{checked:!1,halfCheckedKeys:v},a);g=b.checkedKeys,v=b.halfCheckedKeys}o=g,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,g.forEach((function(e){var t=a[e];if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:v})}d&&d(o,p)},e.onNodeLoad=function(t){return new Promise((function(n){e.setState((function(r){var o=r.loadedKeys,i=void 0===o?[]:o,a=r.loadingKeys,s=void 0===a?[]:a,l=e.props,c=l.loadData,u=l.onLoad,d=t.key;return c&&-1===i.indexOf(d)&&-1===s.indexOf(d)?(c(t).then((function(){var r=e.state,o=r.loadedKeys,i=r.loadingKeys,a=ak(o,d),s=ik(i,d);u&&u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState({loadingKeys:s}),n()})),{loadingKeys:ak(s,d)}):{}}))}))},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;r&&r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;r&&r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0}),t&&t.apply(void 0,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null),t&&t.apply(void 0,arguments)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=yk(e.state.treeData,t);e.setUncontrolledState({expandedKeys:t,flattenNodes:n},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,o=e.state.listChanging,i=e.props,a=i.onExpand,s=i.loadData,l=n.key,c=n.expanded;if(!o){var u=r.indexOf(l),d=!c;if(N(c&&-1!==u||!c&&-1===u,"Expand state not sync with index check"),r=d?ak(r,l):ik(r,l),e.setExpandedKeys(r),a&&a(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&s){var h=e.onNodeLoad(n);h&&h.then((function(){var t=yk(e.state.treeData,r);e.setUncontrolledState({flattenNodes:t})}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),r&&r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.data.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex((function(e){return e.data.key===o}));-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var s=a.data.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=e.props,s=a.onKeyDown,l=a.checkable,c=a.selectable;switch(t.which){case Je.UP:e.offsetActiveKey(-1),t.preventDefault();break;case Je.DOWN:e.offsetActiveKey(1),t.preventDefault()}var u=e.getActiveItem();if(u&&u.data){var d=e.getTreeNodeRequiredProps(),h=!1===u.data.isLeaf||!!(u.data.children||[]).length,p=_k(S(S({},Ck(r,d)),{},{data:u.data,active:!0}));switch(t.which){case Je.LEFT:h&&o.includes(r)?e.onNodeExpand({},p):u.parent&&e.onActiveChange(u.parent.data.key),t.preventDefault();break;case Je.RIGHT:h&&!o.includes(r)?e.onNodeExpand({},p):u.children&&u.children.length&&e.onActiveChange(u.children[0].data.key),t.preventDefault();break;case Je.ENTER:case Je.SPACE:!l||p.disabled||!1===p.checkable||p.disableCheckbox?l||!c||p.disabled||!1===p.selectable||e.onNodeSelect({},p):e.onNodeCheck({},p,!i.includes(r))}}s&&s(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach((function(n){n in e.props?i=!1:(o=!0,a[n]=t[n])})),!o||n&&!i||e.setState(S(S({},a),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return s(n,[{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"render",value:function(){var e,t=this.state,n=t.focused,i=t.flattenNodes,a=t.keyEntities,s=t.dragging,l=t.activeKey,c=t.dropLevelOffset,u=t.dropContainerKey,d=t.dropTargetKey,h=t.dropPosition,p=t.dragOverNodeKey,f=t.indent,m=this.props,g=m.prefixCls,y=m.className,b=m.style,C=m.showLine,_=m.focusable,x=m.tabIndex,S=void 0===x?0:x,k=m.selectable,P=m.showIcon,T=m.icon,E=m.switcherIcon,O=m.draggable,M=m.checkable,A=m.checkStrictly,D=m.disabled,I=m.motion,L=m.loadData,N=m.filterTreeNode,j=m.height,R=m.itemHeight,z=m.virtual,F=m.titleRender,B=m.dropIndicatorRender,H=m.onContextMenu,V=m.direction,Y=mk(this.props);return v.createElement(ek.Provider,{value:{prefixCls:g,selectable:k,showIcon:P,icon:T,switcherIcon:E,draggable:O,checkable:M,checkStrictly:A,disabled:D,keyEntities:a,dropLevelOffset:c,dropContainerKey:u,dropTargetKey:d,dropPosition:h,dragOverNodeKey:p,indent:f,direction:V,dropIndicatorRender:B,loadData:L,filterTreeNode:N,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},v.createElement("div",{className:w()(g,y,(e={},o(e,"".concat(g,"-show-line"),C),o(e,"".concat(g,"-focused"),n),o(e,"".concat(g,"-active-focused"),null!==l),e))},v.createElement(RP,Object(r.a)({ref:this.listRef,prefixCls:g,style:b,data:i,disabled:D,selectable:k,checkable:!!M,motion:I,dragging:s,height:j,itemHeight:R,virtual:z,focusable:_,focused:n,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H},this.getTreeNodeRequiredProps(),Y))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}if(a("treeData")?n=e.treeData:a("children")&&(N(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=vk(e.children)),n){i.treeData=n;var s=wk(n);i.keyEntities=S(o({},OP,AP),s.keyEntities)}var l,c=i.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?fk(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=S({},c);delete u[OP],i.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?fk(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var d=yk(n||t.treeData,i.expandedKeys||t.expandedKeys);i.flattenNodes=d}if((e.selectable&&(a("selectedKeys")?i.selectedKeys=hk(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=hk(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?l=pk(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?l=pk(e.defaultCheckedKeys)||{}:n&&(l=pk(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var h=l,p=h.checkedKeys,f=void 0===p?[]:p,m=h.halfCheckedKeys,g=void 0===m?[]:m;if(!e.checkStrictly){var v=kk(f,!0,c);f=v.checkedKeys,g=v.halfCheckedKeys}i.checkedKeys=f,i.halfCheckedKeys=g}return a("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(v.Component);zP.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return v.createElement("div",{style:o})},allowDrop:function(){return!0}},zP.TreeNode=ok;var FP=zP,BP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},HP=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:BP}))};HP.displayName="FileOutlined";var VP=v.forwardRef(HP),YP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},WP=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:YP}))};WP.displayName="FolderOpenOutlined";var UP=v.forwardRef(WP),KP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},GP=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:KP}))};GP.displayName="FolderOutlined";var qP,$P=v.forwardRef(GP);function XP(e,t){e.forEach((function(e){var n=e.key,r=e.children;!1!==t(n,e)&&XP(r||[],t)}))}function JP(e){var t=e.treeData,n=e.expandedKeys,r=e.startKey,o=e.endKey,i=[],a=qP.None;if(r&&r===o)return[r];if(!r||!o)return[];return XP(t,(function(e){if(a===qP.End)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),a===qP.None)a=qP.Start;else if(a===qP.Start)return a=qP.End,!1}else a===qP.Start&&i.push(e);return-1!==n.indexOf(e)})),i}function ZP(e,t){var n=de(t),r=[];return XP(e,(function(e,t){var o=n.indexOf(e);return-1!==o&&(r.push(t),n.splice(o,1)),!!n.length})),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(qP||(qP={}));var QP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function eT(e){var t=e.isLeaf,n=e.expanded;return t?v.createElement(VP,null):n?v.createElement(UP,null):v.createElement($P,null)}function tT(e){var t=e.treeData,n=e.children;return t||vk(n)}var nT=function(e,t){var n=e.defaultExpandAll,i=e.defaultExpandParent,a=e.defaultExpandedKeys,s=QP(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),l=v.useRef(),c=v.useRef(),u=v.createRef();v.useImperativeHandle(t,(function(){return u.current}));var d,h=Ge(v.useState(s.selectedKeys||s.defaultSelectedKeys||[]),2),p=h[0],f=h[1],m=Ge(v.useState((d=wk(tT(s)).keyEntities,n?Object.keys(d):i?fk(s.expandedKeys||a,d):s.expandedKeys||a)),2),g=m[0],y=m[1];v.useEffect((function(){"selectedKeys"in s&&f(s.selectedKeys)}),[s.selectedKeys]),v.useEffect((function(){"expandedKeys"in s&&y(s.expandedKeys)}),[s.expandedKeys]);var b=Sp()((function(e,t){t.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey||u.current.onNodeExpand(e,t)}),200,{leading:!0}),C=v.useContext(ae),_=C.getPrefixCls,x=C.direction,S=s.prefixCls,k=s.className,P=QP(s,["prefixCls","className"]),T=_("tree",S),E=w()("".concat(T,"-directory"),o({},"".concat(T,"-directory-rtl"),"rtl"===x),k);return v.createElement(vT,Object(r.a)({icon:eT,ref:u,blockNode:!0},P,{prefixCls:T,className:E,expandedKeys:g,selectedKeys:p,onSelect:function(e,t){var n,o,i=s.multiple,a=t.node,u=t.nativeEvent,d=a.key,h=void 0===d?"":d,p=tT(s),m=Object(r.a)(Object(r.a)({},t),{selected:!0}),v=u.ctrlKey||u.metaKey,y=u.shiftKey;i&&v?(o=e,l.current=h,c.current=o,m.selectedNodes=ZP(p,o)):i&&y?(o=Array.from(new Set([].concat(de(c.current||[]),de(JP({treeData:p,expandedKeys:g,startKey:h,endKey:l.current}))))),m.selectedNodes=ZP(p,o)):(o=[h],l.current=h,c.current=o,m.selectedNodes=ZP(p,o)),null===(n=s.onSelect)||void 0===n||n.call(s,o,m),"selectedKeys"in s||f(o)},onClick:function(e,t){var n;"click"===s.expandAction&&b(e,t),null===(n=s.onClick)||void 0===n||n.call(s,e,t)},onDoubleClick:function(e,t){var n;"doubleClick"===s.expandAction&&b(e,t),null===(n=s.onDoubleClick)||void 0===n||n.call(s,e,t)},onExpand:function(e,t){var n;return"expandedKeys"in s||y(e),null===(n=s.onExpand)||void 0===n?void 0:n.call(s,e,t)}}))},rT=v.forwardRef(nT);rT.displayName="DirectoryTree",rT.defaultProps={showIcon:!0,expandAction:"click"};var oT=rT,iT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},aT=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:iT}))};aT.displayName="MinusSquareOutlined";var sT=v.forwardRef(aT),lT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},cT=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:lT}))};cT.displayName="PlusSquareOutlined";var uT=v.forwardRef(cT),dT={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},hT=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:dT}))};hT.displayName="CaretDownFilled";var pT=v.forwardRef(hT);function fT(e,t,n,r){var o,i=r.isLeaf,a=r.expanded;if(r.loading)return v.createElement(Li,{className:"".concat(e,"-switcher-loading-icon")});if(n&&"object"===g(n)&&(o=n.showLeafIcon),i)return n?"object"!==g(n)||o?v.createElement(VP,{className:"".concat(e,"-switcher-line-icon")}):v.createElement("span",{className:"".concat(e,"-switcher-leaf-line")}):null;var s="".concat(e,"-switcher-icon");return sa(t)?ca(t,{className:w()(t.props.className||"",s)}):t||(n?a?v.createElement(sT,{className:"".concat(e,"-switcher-line-icon")}):v.createElement(uT,{className:"".concat(e,"-switcher-line-icon")}):v.createElement(pT,{className:s}))}function mT(e){var t,n=e.dropPosition,r=e.dropLevelOffset,i=e.prefixCls,a=e.indent,s=e.direction,l=void 0===s?"ltr":s,c="ltr"===l?"left":"right",u="ltr"===l?"right":"left",d=(o(t={},c,-r*a+4),o(t,u,0),t);switch(n){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[c]=a+4}return y.a.createElement("div",{style:d,className:"".concat(i,"-drop-indicator")})}var gT=v.forwardRef((function(e,t){var n,i=v.useContext(ae),a=i.getPrefixCls,s=i.direction,l=i.virtual,c=e.prefixCls,u=e.className,d=e.showIcon,h=e.showLine,p=e.switcherIcon,f=e.blockNode,m=e.children,g=e.checkable,y=e.selectable,b=a("tree",c),C=Object(r.a)(Object(r.a)({},e),{showLine:Boolean(h),dropIndicatorRender:mT});return v.createElement(FP,Object(r.a)({itemHeight:20,ref:t,virtual:l},C,{prefixCls:b,className:w()((n={},o(n,"".concat(b,"-icon-hide"),!d),o(n,"".concat(b,"-block-node"),f),o(n,"".concat(b,"-unselectable"),!y),o(n,"".concat(b,"-rtl"),"rtl"===s),n),u),direction:s,checkable:g?v.createElement("span",{className:"".concat(b,"-checkbox-inner")}):g,selectable:y,switcherIcon:function(e){return fT(b,p,h,e)}}),m)}));gT.TreeNode=ok,gT.DirectoryTree=oT,gT.defaultProps={checkable:!1,selectable:!0,showIcon:!1,motion:Object(r.a)(Object(r.a)({},ta),{motionAppear:!1}),blockNode:!1};var vT=gT,yT=vT,bT=v.createContext(null);function wT(e,t){if(!e)return!0;var n=e.data,r=n.disabled,o=n.disableCheckbox;switch(t){case"select":return r;case"checkbox":return r||o}return!1}function CT(e,t){return[v.useCallback((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"select",r=arguments.length>2?arguments[2]:void 0,o=e.get(t);return!r&&wT(o,n)?null:o}),[e]),v.useCallback((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"select",r=arguments.length>2?arguments[2]:void 0,o=t.get(e);return!r&&wT(o,n)?null:o}),[t])]}function _T(e){return v.useMemo((function(){var t=new Map,n=new Map;return e.forEach((function(e){t.set(e.key,e),n.set(e.data.value,e)})),[t,n]}),[e])}var xT={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ST=function(e,t){var n=e.prefixCls,o=e.height,i=e.itemHeight,a=e.virtual,s=e.options,l=e.flattenOptions,c=e.multiple,u=e.searchValue,d=e.onSelect,h=e.onToggleOpen,p=e.open,f=e.notFoundContent,m=e.onMouseEnter,g=v.useContext(bT),y=g.checkable,b=g.checkedKeys,w=g.halfCheckedKeys,C=g.treeExpandedKeys,_=g.treeDefaultExpandAll,x=g.treeDefaultExpandedKeys,S=g.onTreeExpand,k=g.treeIcon,P=g.showTreeIcon,T=g.switcherIcon,E=g.treeLine,O=g.treeNodeFilterProp,M=g.loadData,A=g.treeLoadedKeys,D=g.treeMotion,I=g.onTreeLoad,L=v.useRef(),N=rt((function(){return s}),[p,s],(function(e,t){return t[0]&&e[1]!==t[1]})),j=Ge(_T(l),2),R=Ge(CT(j[0],j[1]),2),z=R[0],F=R[1],B=v.useMemo((function(){return b.map((function(e){var t=F(e);return t?t.key:null}))}),[b,F]),H=v.useMemo((function(){return y?{checked:B,halfChecked:w}:null}),[B,w,y]);v.useEffect((function(){var e;p&&!c&&B.length&&(null===(e=L.current)||void 0===e||e.scrollTo({key:B[0]}))}),[p]);var V=String(u).toLowerCase(),Y=Ge(v.useState(x),2),W=Y[0],U=Y[1],K=Ge(v.useState(null),2),G=K[0],q=K[1],$=v.useMemo((function(){return C?de(C):u?G:W}),[W,G,V,C]);v.useEffect((function(){u&&q(l.map((function(e){return e.key})))}),[u]);var X=function(e){e.preventDefault()},J=function(e,t){var n=t.node.key,r=z(n,y?"checkbox":"select");null!==r&&d(r.data.value,{selected:!b.includes(r.data.value)}),c||h(!1)},Z=Ge(v.useState(null),2),Q=Z[0],ee=Z[1],te=z(Q);if(v.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=L.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case Je.UP:case Je.DOWN:case Je.LEFT:case Je.RIGHT:null===(t=L.current)||void 0===t||t.onKeyDown(e);break;case Je.ENTER:var n;!1!==(null==te||null===(n=te.data)||void 0===n?void 0:n.selectable)&&J(0,{node:{key:Q},selected:!b.includes(te.data.value)});break;case Je.ESC:h(!1)}},onKeyUp:function(){}}})),0===N.length)return v.createElement("div",{role:"listbox",className:"".concat(n,"-empty"),onMouseDown:X},f);var ne={};return A&&(ne.loadedKeys=A),$&&(ne.expandedKeys=$),v.createElement("div",{onMouseDown:X,onMouseEnter:m},te&&p&&v.createElement("span",{style:xT,"aria-live":"assertive"},te.data.value),v.createElement(FP,Object(r.a)({ref:L,focusable:!1,prefixCls:"".concat(n,"-tree"),treeData:N,height:o,itemHeight:i,virtual:a,multiple:c,icon:k,showIcon:P,switcherIcon:T,showLine:E,loadData:u?null:M,motion:D,checkable:y,checkStrictly:!0,checkedKeys:H,selectedKeys:y?[]:B,defaultExpandAll:_},ne,{onActiveChange:ee,onSelect:J,onCheck:J,onExpand:function(e){U(e),q(e),S&&S(e)},onLoad:I,filterTreeNode:function(e){return!!V&&String(e[O]).toLowerCase().includes(V)}})))},kT=v.forwardRef(ST);kT.displayName="OptionList";var PT=function(){return null};function TT(e){if(!e)return e;var t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return N(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function ET(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function OT(e,t){var n=new Map;return t.forEach((function(e){var t=e.data;n.set(t.value,t)})),e.map((function(e){return TT(n.get(e))}))}function MT(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function AT(e){for(var t=0,n=e.parent;n;)n=n.parent,t+=1;return t}function DT(e){return yk(function e(t){return(t||[]).map((function(t){var n=t.value,r=t.key,o=t.children,i=S(S({},t),{},{key:"key"in t?r:n});return o&&(i.children=e(o)),i}))}(e),!0).map((function(e){return{key:e.data.key,data:e.data,level:AT(e)}}))}function IT(e,t,n,r){var o=new Map;return ET(t).forEach((function(e){e&&"object"===g(e)&&"value"in e&&o.set(e.value,e)})),e.map((function(e){var t={value:e},i=n(e,"select",!0),a=i?r(i.data):e;if(o.has(e)){var s=o.get(e);t.label="label"in s?s.label:a,"halfChecked"in s&&(t.halfChecked=s.halfChecked)}else t.label=a;return t}))}function LT(e,t){new Set;return function e(n){return(n||[]).map((function(n){var r=n.key,o=n.value,i=n.children,a="value"in n?o:r,s=S(S({},$e(n,["key","value","children"])),{},{key:null!=r?r:a,value:a,title:t(n)});return"children"in n&&(s.children=e(i)),s}))}(e)}function NT(e,t,n){var r=n.getLabelProp,o=n.simpleMode,i=v.useRef({});return e?(i.current.formatTreeData=i.current.treeData===e?i.current.formatTreeData:LT(o?function(e,t){var n=t.id,r=t.pId,o=t.rootPId,i={},a=[];return e.map((function(e){var t=S({},e),r=t[n];return i[r]=t,t.key=t.key||r,t})).forEach((function(e){var t=e[r],n=i[t];n&&(n.children=n.children||[],n.children.push(e)),(t===o||!n&&null===o)&&a.push(e)})),a}(e,S({id:"id",pId:"pId",rootPId:null},!0!==o?o:{})):e,r),i.current.treeData=e):i.current.formatTreeData=i.current.children===t?i.current.formatTreeData:LT(function e(t){return O(t).map((function(t){if(!v.isValidElement(t)||!t.type)return null;var n=t.key,r=t.props,o=r.children,i=S({key:n,value:r.value},$e(r,["children","value"])),a=e(o);return a.length&&(i.children=a),i})).filter((function(e){return e}))}(t),r),i.current.formatTreeData}function jT(e,t,n){var r=new Set(e);return"SHOW_CHILD"===t?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.every((function(e){var t=e.node;return MT(t)||r.has(t.key)})))})):"SHOW_PARENT"===t?e.filter((function(e){var t=n[e],o=t?t.parent:null;return!(o&&!MT(o.node)&&r.has(o.node.key))})):e}var RT=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],zT=zo({prefixCls:"rc-tree-select",components:{optionList:kT},convertChildrenToData:function(){return null},flattenOptions:DT,getLabeledValue:an,filterOptions:function(e,t,n){var r,o=n.optionFilterProp,i=n.filterOption;return!1===i?t:(r="function"==typeof i?i:function(e){return function(t,n){var r=n[e];return String(r).toLowerCase().includes(String(t).toLowerCase())}}(o),function t(n){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.map((function(n){var i=n.children,a=o||r(e,TT(n)),s=t(i||[],a);return a||s.length?S(S({},n),{},{children:s}):null})).filter((function(e){return e}))}(t))},isValueDisabled:function(e,t){var n=OT([e],t)[0];return!!n&&n.disabled},findValueOption:OT,omitDOMProps:function(e){var t=S({},e);return RT.forEach((function(e){delete t[e]})),t}});zT.displayName="Select";var FT=v.forwardRef((function(e,t){var n=e.multiple,o=e.treeCheckable,i=e.treeCheckStrictly,a=e.showCheckedStrategy,s=void 0===a?"SHOW_CHILD":a,l=e.labelInValue,c=e.loadData,u=e.treeLoadedKeys,d=e.treeNodeFilterProp,h=void 0===d?"value":d,p=e.treeNodeLabelProp,f=e.treeDataSimpleMode,m=e.treeData,y=e.treeExpandedKeys,b=e.treeDefaultExpandedKeys,w=e.treeDefaultExpandAll,C=e.children,_=e.treeIcon,x=e.showTreeIcon,S=e.switcherIcon,k=e.treeLine,P=e.treeMotion,T=e.filterTreeNode,E=e.dropdownPopupAlign,O=e.onChange,M=e.onTreeExpand,A=e.onTreeLoad,D=e.onDropdownVisibleChange,I=e.onSelect,L=e.onDeselect,j=o||i,R=n||j,z=o&&!i,F=i||l,B=v.useRef(null);v.useImperativeHandle(t,(function(){return{scrollTo:B.current.scrollTo,focus:B.current.focus,blur:B.current.blur}}));var H=function(e){return m&&e.label||e.title},V=function(e){return p?e[p]:H(e)},Y=NT(m,C,{getLabelProp:H,simpleMode:f}),W=Ge(_T(Object(v.useMemo)((function(){return DT(Y)}),[Y])),2),U=Ge(CT(W[0],W[1]),2),K=U[0],G=U[1],q=Object(v.useMemo)((function(){return z?wk(Y):{keyEntities:null}}),[Y,o,i]).keyEntities,$=Ge(cn(e.defaultValue,{value:e.value}),2),X=$[0],J=$[1],Z=function(e){var t=[],n=[];return e.forEach((function(e){G(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}},Q=Ge(Object(v.useMemo)((function(){var e=[],t=[];if(ET(X).forEach((function(n){if(n&&"object"===g(n)&&"value"in n)if(n.halfChecked&&i){var r=G(n.value);e.push(r?r.key:n.value)}else t.push(n.value);else t.push(n)})),z){var n=Z(t),r=n.missingRawValues,o=kk(n.existRawValues.map((function(e){return G(e).key})),!0,q),a=o.checkedKeys,s=o.halfCheckedKeys;return[[].concat(de(r),de(a.map((function(e){return K(e).data.value})))),s]}return[t,e]}),[X,R,F,o,i]),2),ee=Q[0],te=Q[1],ne=function(e,t){var n=t.value,r=t.getEntityByValue,o=t.getEntityByKey,i=t.treeConduction,a=t.showCheckedStrategy,s=t.conductKeyEntities,l=t.getLabelProp;return v.useMemo((function(){var t=e;i&&(t=jT(e.map((function(e){var t=r(e);return t?t.key:e})),a,s).map((function(e){var t=o(e);return t?t.data.value:e})));return IT(t,n,r,l)}),[e,n,i,a,r])}(ee,{treeConduction:z,value:X,showCheckedStrategy:s,conductKeyEntities:q,getEntityByValue:G,getEntityByKey:K,getLabelProp:V}),re=function(e,t,n){if(J(R?e:e[0]),O){var r=e;if(z&&"SHOW_ALL"!==s){var o=jT(e.map((function(e){var t=G(e);return t?t.key:e})),s,q);r=o.map((function(e){var t=K(e);return t?t.data.value:e}))}var a=t||{triggerValue:void 0,selected:void 0},l=a.triggerValue,c=a.selected,u=F?IT(r,X,G,V):r;if(i){var d=te.map((function(e){var t=K(e);return t?t.data.value:e})).filter((function(e){return!r.includes(e)}));u=[].concat(de(u),de(IT(d,X,G,V)))}var h={preValue:ne,triggerValue:l},p=!0;(i||"selection"===n&&!c)&&(p=!1),function(e,t,n,r,o){var i=null,a=null;function s(){a||(a=[],function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,l){var c="".concat(o,"-").concat(l),u=n.includes(r.value),d=e(r.children||[],c,u),h=v.createElement(PT,r,d.map((function(e){return e.node})));if(t===r.value&&(i=h),u){var p={pos:c,node:h,children:d};return s||a.push(p),p}return null})).filter((function(e){return e}))}(r),a.sort((function(e,t){var r=e.node.props.value,o=t.node.props.value;return n.indexOf(r)-n.indexOf(o)})))}Object.defineProperty(e,"triggerNode",{get:function(){return N(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return N(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),o?a:a.map((function(e){return e.node}))}})}(h,l,e,Y,p),j?h.checked=c:h.selected=c,O(R?u:u[0],F?null:r.map((function(e){var t=G(e);return t?V(t.data):null})),h)}},oe=v.useCallback((function(e){if(D){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return N(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),D(e,t)}}),[D]);var ie={optionLabelProp:null,optionFilterProp:h,dropdownAlign:E,internalProps:{mark:"RC_SELECT_INTERNAL_PROPS_MARK",onClear:function(){re([],null,"clear")},skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:function(e,t,n){var r=e;if(R){var o=function(e,t){var n=new Set(e);return n.add(t),Array.from(n)}(ee,e);if(z){var i=Z(o),a=i.missingRawValues,s=kk(i.existRawValues.map((function(e){return G(e).key})),!0,q).checkedKeys;o=[].concat(de(a),de(s.map((function(e){return K(e).data.value}))))}re(o,{selected:!0,triggerValue:e},n)}else re([e],{selected:!0,triggerValue:e},n);I&&I(r,t)},onRawDeselect:function(e,t,n){var r=e,o=function(e,t){var n=new Set(e);return n.delete(t),Array.from(n)}(ee,e);if(z){var i=Z(o),a=i.missingRawValues,s=kk(i.existRawValues.map((function(e){return G(e).key})),{checked:!1,halfCheckedKeys:te},q).checkedKeys;o=[].concat(de(a),de(s.map((function(e){return K(e).data.value}))))}re(o,{selected:!1,triggerValue:e},n),L&&L(r,t)}}};return"filterTreeNode"in e&&(ie.filterOption=T),v.createElement(bT.Provider,{value:{checkable:j,loadData:c,treeLoadedKeys:u,onTreeLoad:A,checkedKeys:ee,halfCheckedKeys:te,treeDefaultExpandAll:w,treeExpandedKeys:y,treeDefaultExpandedKeys:b,onTreeExpand:M,treeIcon:_,treeMotion:P,showTreeIcon:x,switcherIcon:S,treeLine:k,treeNodeFilterProp:h}},v.createElement(zT,Object(r.a)({ref:B,mode:R?"multiple":null},e,ie,{value:ne,labelInValue:!0,options:Y,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:oe})))})),BT=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).selectRef=v.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return s(n,[{key:"render",value:function(){return v.createElement(FT,Object(r.a)({ref:this.selectRef},this.props))}}]),n}(v.Component);BT.TreeNode=PT,BT.SHOW_ALL="SHOW_ALL",BT.SHOW_PARENT="SHOW_PARENT",BT.SHOW_CHILD="SHOW_CHILD";var HT=BT,VT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},YT=function(e,t){var n,i=e.prefixCls,a=e.size,s=e.bordered,l=void 0===s||s,c=e.className,u=e.treeCheckable,d=e.multiple,h=e.listHeight,p=void 0===h?256:h,f=e.listItemHeight,m=void 0===f?26:f,g=e.notFoundContent,y=e.switcherIcon,b=e.treeLine,C=e.getPopupContainer,x=e.dropdownClassName,S=e.treeIcon,k=void 0!==S&&S,P=e.transitionName,T=e.choiceTransitionName,E=void 0===T?"":T,O=VT(e,["prefixCls","size","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","notFoundContent","switcherIcon","treeLine","getPopupContainer","dropdownClassName","treeIcon","transitionName","choiceTransitionName"]),M=v.useContext(ae),A=M.getPopupContainer,D=M.getPrefixCls,I=M.renderEmpty,L=M.direction,N=M.virtual,j=M.dropdownMatchSelectWidth,R=v.useContext(Xi);aa(!1!==d||!u,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true");var z,F=D("select",i),B=D("select-tree",i),H=D("tree-select",i),V=w()(x,"".concat(H,"-dropdown"),o({},"".concat(H,"-dropdown-rtl"),"rtl"===L)),Y=!(!u&&!d),W=Gi(Object(r.a)(Object(r.a)({},O),{multiple:Y,prefixCls:F})),U=W.suffixIcon,K=W.removeIcon,G=W.clearIcon;z=void 0!==g?g:I("Select");var q=_(O,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),$=a||R,X=w()(!i&&H,(o(n={},"".concat(F,"-lg"),"large"===$),o(n,"".concat(F,"-sm"),"small"===$),o(n,"".concat(F,"-rtl"),"rtl"===L),o(n,"".concat(F,"-borderless"),!l),n),c),J=D();return v.createElement(HT,Object(r.a)({virtual:N,dropdownMatchSelectWidth:j},q,{ref:t,prefixCls:F,className:X,listHeight:p,listItemHeight:m,treeCheckable:u?v.createElement("span",{className:"".concat(F,"-tree-checkbox-inner")}):u,inputIcon:U,multiple:d,removeIcon:K,clearIcon:G,switcherIcon:function(e){return fT(B,y,b,e)},showTreeIcon:k,notFoundContent:z,getPopupContainer:C||A,treeMotion:null,dropdownClassName:V,choiceTransitionName:ea(J,"",E),transitionName:ea(J,"slide-up",P)}))},WT=v.forwardRef(YT);WT.TreeNode=PT,WT.SHOW_ALL="SHOW_ALL",WT.SHOW_PARENT="SHOW_PARENT",WT.SHOW_CHILD="SHOW_CHILD";var UT=WT,KT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},GT=Hv.TimePicker,qT=Hv.RangePicker,$T=v.forwardRef((function(e,t){return v.createElement(qT,Object(r.a)({},e,{dropdownClassName:e.popupClassName,picker:"time",mode:void 0,ref:t}))})),XT=v.forwardRef((function(e,t){var n=e.addon,o=e.renderExtraFooter,i=e.popupClassName,a=KT(e,["addon","renderExtraFooter","popupClassName"]),s=v.useMemo((function(){return o||(n?(aa(!1,"TimePicker","`addon` is deprecated. Please use `renderExtraFooter` instead."),n):void 0)}),[n,o]);return v.createElement(GT,Object(r.a)({},a,{dropdownClassName:i,mode:void 0,ref:t,renderExtraFooter:s}))}));XT.displayName="TimePicker",XT.RangePicker=$T;var JT=XT,ZT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},QT=function(e){var t,n,i=e.prefixCls,a=e.className,s=e.color,l=void 0===s?"blue":s,c=e.dot,u=e.pending,d=void 0!==u&&u,h=(e.position,e.label),p=e.children,f=ZT(e,["prefixCls","className","color","dot","pending","position","label","children"]),m=(0,v.useContext(ae).getPrefixCls)("timeline",i),g=w()((o(t={},"".concat(m,"-item"),!0),o(t,"".concat(m,"-item-pending"),d),t),a),y=w()((o(n={},"".concat(m,"-item-head"),!0),o(n,"".concat(m,"-item-head-custom"),!!c),o(n,"".concat(m,"-item-head-").concat(l),!0),n));return v.createElement("li",Object(r.a)({},f,{className:g}),h&&v.createElement("div",{className:"".concat(m,"-item-label")},h),v.createElement("div",{className:"".concat(m,"-item-tail")}),v.createElement("div",{className:y,style:{borderColor:/blue|red|green|gray/.test(l||"")?void 0:l}},c),v.createElement("div",{className:"".concat(m,"-item-content")},p))},eE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},tE=function(e){var t,n=v.useContext(ae),i=n.getPrefixCls,a=n.direction,s=e.prefixCls,l=e.pending,c=void 0===l?null:l,u=e.pendingDot,d=e.children,h=e.className,p=e.reverse,f=void 0!==p&&p,m=e.mode,g=void 0===m?"":m,y=eE(e,["prefixCls","pending","pendingDot","children","className","reverse","mode"]),b=i("timeline",s),C="boolean"==typeof c?null:c,_=c?v.createElement(QT,{pending:!!c,dot:u||v.createElement(Li,null)},C):null,x=v.Children.toArray(d);x.push(_),f&&x.reverse();var S=function(e,t){return"alternate"===g?"right"===e.props.position?"".concat(b,"-item-right"):"left"===e.props.position?"".concat(b,"-item-left"):"".concat(b,t%2==0?"-item-left":"-item-right"):"left"===g?"".concat(b,"-item-left"):"right"===g||"right"===e.props.position?"".concat(b,"-item-right"):""},k=x.filter((function(e){return!!e})),P=v.Children.count(k),T="".concat(b,"-item-last"),E=v.Children.map(k,(function(e,t){var n=t===P-2?T:"",r=t===P-1?T:"";return ca(e,{className:w()([e.props.className,!f&&c?n:r,S(e,t)])})})),O=x.some((function(e){var t;return!!(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.label)})),M=w()(b,(o(t={},"".concat(b,"-pending"),!!c),o(t,"".concat(b,"-reverse"),!!f),o(t,"".concat(b,"-").concat(g),!!g&&!O),o(t,"".concat(b,"-label"),O),o(t,"".concat(b,"-rtl"),"rtl"===a),t),h);return v.createElement("ul",Object(r.a)({},y,{className:M}),E)};tE.Item=QT;var nE=tE,rE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},oE=function(e,t){var n=e.prefixCls,i=e.component,a=void 0===i?"article":i,s=e.className,l=e["aria-label"],c=e.setContentRef,u=e.children,d=rE(e,["prefixCls","component","className","aria-label","setContentRef","children"]),h=t;return c&&(aa(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),h=R(t,c)),v.createElement(se,null,(function(e){var t=e.getPrefixCls,i=e.direction,c=a,p=t("typography",n),f=w()(p,o({},"".concat(p,"-rtl"),"rtl"===i),s);return v.createElement(c,Object(r.a)({className:f,"aria-label":l,ref:h},d),u)}))},iE=v.forwardRef(oE);iE.displayName="Typography";var aE=iE,sE=n(640),lE=n.n(sE),cE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},uE=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:cE}))};uE.displayName="EditOutlined";var dE=v.forwardRef(uE),hE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},pE=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:hE}))};pE.displayName="CopyOutlined";var fE=v.forwardRef(pE),mE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},gE=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:mE}))};gE.displayName="EnterOutlined";var vE,yE=v.forwardRef(gE),bE=function(e){var t=e.prefixCls,n=e["aria-label"],r=e.className,i=e.style,a=e.direction,s=e.maxLength,l=e.autoSize,c=void 0===l||l,u=e.value,d=e.onSave,h=e.onCancel,p=e.onEnd,f=v.useRef(),m=v.useRef(!1),g=v.useRef(),y=Ge(v.useState(u),2),b=y[0],C=y[1];v.useEffect((function(){C(u)}),[u]),v.useEffect((function(){if(f.current&&f.current.resizableTextArea){var e=f.current.resizableTextArea.textArea;e.focus();var t=e.value.length;e.setSelectionRange(t,t)}}),[]);var _=function(){d(b.trim())},x=w()(t,"".concat(t,"-edit-content"),o({},"".concat(t,"-rtl"),"rtl"===a),r);return v.createElement("div",{className:x,style:i},v.createElement($f,{ref:f,maxLength:s,value:b,onChange:function(e){var t=e.target;C(t.value.replace(/[\n\r]/g,""))},onKeyDown:function(e){var t=e.keyCode;m.current||(g.current=t)},onKeyUp:function(e){var t=e.keyCode,n=e.ctrlKey,r=e.altKey,o=e.metaKey,i=e.shiftKey;g.current!==t||m.current||n||r||o||i||(t===Je.ENTER?(_(),null==p||p()):t===Je.ESC&&h())},onCompositionStart:function(){m.current=!0},onCompositionEnd:function(){m.current=!1},onBlur:function(){_()},"aria-label":n,autoSize:c}),v.createElement(yE,{className:"".concat(t,"-edit-content-confirm")}))},wE={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function CE(e){if(!e)return 0;var t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var _E=function(e,t,n,r,o){vE||((vE=document.createElement("div")).setAttribute("aria-hidden","true"),document.body.appendChild(vE));var i,a=t.rows,s=t.suffix,l=void 0===s?"":s,c=window.getComputedStyle(e),u=(i=c,Array.prototype.slice.apply(i).map((function(e){return"".concat(e,": ").concat(i.getPropertyValue(e),";")})).join("")),d=CE(c.lineHeight),h=Math.round(d*(a+1)+CE(c.paddingTop)+CE(c.paddingBottom));vE.setAttribute("style",u),vE.style.position="fixed",vE.style.left="0",vE.style.height="auto",vE.style.minHeight="auto",vE.style.maxHeight="auto",vE.style.top="-999999px",vE.style.zIndex="-1000",vE.style.textOverflow="clip",vE.style.whiteSpace="normal",vE.style.webkitLineClamp="none";var p,f,m=(p=O(n),f=[],p.forEach((function(e){var t=f[f.length-1];"string"==typeof e&&"string"==typeof t?f[f.length-1]+=e:f.push(e)})),f);function g(){return vE.offsetHeight<h}if(Object(k.render)(v.createElement("div",{style:wE},v.createElement("span",{style:wE},m,l),v.createElement("span",{style:wE},r)),vE),g())return Object(k.unmountComponentAtNode)(vE),{content:n,text:vE.innerHTML,ellipsis:!1};var y=Array.prototype.slice.apply(vE.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((function(e){return 8!==e.nodeType})),b=Array.prototype.slice.apply(vE.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Object(k.unmountComponentAtNode)(vE);var w=[];vE.innerHTML="";var C=document.createElement("span");vE.appendChild(C);var _=document.createTextNode(o+l);function x(e){C.insertBefore(e,_)}function S(e,t){var n=e.nodeType;if(1===n)return x(e),g()?{finished:!1,reactNode:m[t]}:(C.removeChild(e),{finished:!0,reactNode:null});if(3===n){var r=e.textContent||"",o=document.createTextNode(r);return x(o),function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=Math.floor((r+o)/2),s=n.slice(0,a);if(t.textContent=s,r>=o-1)for(var l=o;l>=r;l-=1){var c=n.slice(0,l);if(t.textContent=c,g()||!c)return l===n.length?{finished:!1,reactNode:n}:{finished:!0,reactNode:c}}return g()?e(t,n,a,o,a):e(t,n,r,a,i)}(o,r)}return{finished:!1,reactNode:null}}return C.appendChild(_),b.forEach((function(e){vE.appendChild(e)})),y.some((function(e,t){var n=S(e,t),r=n.finished,o=n.reactNode;return o&&w.push(o),r})),{content:w,text:vE.innerHTML,ellipsis:!0}},xE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},SE=Qh("webkitLineClamp"),kE=Qh("textOverflow");var PE=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).contentRef=v.createRef(),e.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},e.getPrefixCls=function(){var t=e.props.prefixCls;return(0,e.context.getPrefixCls)("typography",t)},e.onExpandClick=function(t){var n,r=e.getEllipsis().onExpand;e.setState({expanded:!0}),null===(n=r)||void 0===n||n(t)},e.onEditClick=function(){e.triggerEdit(!0)},e.onEditChange=function(t){var n=e.getEditable().onChange;null==n||n(t),e.triggerEdit(!1)},e.onEditCancel=function(){var t,n;null===(n=(t=e.getEditable()).onCancel)||void 0===n||n.call(t),e.triggerEdit(!1)},e.onCopyClick=function(t){t.preventDefault();var n=e.props,o=n.children,i=n.copyable,a=Object(r.a)({},"object"===g(i)?i:null);void 0===a.text&&(a.text=String(o)),lE()(a.text||""),e.setState({copied:!0},(function(){a.onCopy&&a.onCopy(),e.copyId=window.setTimeout((function(){e.setState({copied:!1})}),3e3)}))},e.setEditRef=function(t){e.editIcon=t},e.triggerEdit=function(t){var n=e.getEditable().onStart;t&&n&&n(),e.setState({edit:t},(function(){!t&&e.editIcon&&e.editIcon.focus()}))},e.resizeOnNextFrame=function(){nl.cancel(e.rafId),e.rafId=nl((function(){e.syncEllipsis()}))},e}return s(n,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.getEllipsis(),r=this.getEllipsis(e);t===e.children&&n.rows===r.rows||this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),nl.cancel(this.rafId)}},{key:"getEditable",value:function(e){var t=this.state.edit,n=(e||this.props).editable;return n?Object(r.a)({editing:t},"object"===g(n)?n:null):{editing:t}}},{key:"getEllipsis",value:function(e){var t=(e||this.props).ellipsis;return t?Object(r.a)({rows:1,expandable:!1},"object"===g(t)?t:null):{}}},{key:"canUseCSSEllipsis",value:function(){var e=this.state.clientRendered,t=this.props,n=t.editable,r=t.copyable,o=this.getEllipsis(),i=o.rows,a=o.expandable,s=o.suffix,l=o.onEllipsis,c=o.tooltip;return!s&&!c&&(!(n||r||a||!e||l)&&(1===i?kE:SE))}},{key:"syncEllipsis",value:function(){var e=this.state,t=e.ellipsisText,n=e.isEllipsis,r=e.expanded,o=this.getEllipsis(),i=o.rows,a=o.suffix,s=o.onEllipsis,l=this.props.children;if(i&&!(i<0)&&this.contentRef.current&&!r&&!this.canUseCSSEllipsis()){aa(O(l).every((function(e){return"string"==typeof e})),"Typography","`ellipsis` should use string as children only.");var c=_E(this.contentRef.current,{rows:i,suffix:a},l,this.renderOperations(!0),"..."),u=c.content,d=c.text,h=c.ellipsis;t===d&&n===h||(this.setState({ellipsisText:d,ellipsisContent:u,isEllipsis:h}),n!==h&&s&&s(h))}}},{key:"renderExpand",value:function(e){var t,n=this.getEllipsis(),r=n.expandable,o=n.symbol,i=this.state,a=i.expanded,s=i.isEllipsis;return r&&(e||!a&&s)?(t=o||this.expandStr,v.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},t)):null}},{key:"renderEdit",value:function(){var e=this.props.editable;if(e){var t=e.icon,n=e.tooltip,r=O(n)[0]||this.editStr,o="string"==typeof r?r:"";return v.createElement(ys,{key:"edit",title:!1===n?"":r},v.createElement(S_,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":o},t||v.createElement(dE,{role:"button"})))}}},{key:"renderCopy",value:function(){var e=this.state.copied,t=this.props.copyable;if(t){var n=this.getPrefixCls(),r=t.tooltips,o=O(r);0===o.length&&(o=[this.copyStr,this.copiedStr]);var i=e?o[1]:o[0],a="string"==typeof i?i:"",s=O(t.icon);return v.createElement(ys,{key:"copy",title:!1===r?"":i},v.createElement(S_,{className:w()("".concat(n,"-copy"),e&&"".concat(n,"-copy-success")),onClick:this.onCopyClick,"aria-label":a},e?s[1]||v.createElement(Ri,null):s[0]||v.createElement(fE,null)))}}},{key:"renderEditInput",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style,o=this.context.direction,i=this.getEditable(),a=i.maxLength,s=i.autoSize,l=i.onEnd;return v.createElement(bE,{value:"string"==typeof t?t:"",onSave:this.onEditChange,onCancel:this.onEditCancel,onEnd:l,prefixCls:this.getPrefixCls(),className:n,style:r,direction:o,maxLength:a,autoSize:s})}},{key:"renderOperations",value:function(e){return[this.renderExpand(e),this.renderEdit(),this.renderCopy()].filter((function(e){return e}))}},{key:"renderContent",value:function(){var e=this,t=this.state,n=t.ellipsisContent,i=t.isEllipsis,a=t.expanded,s=this.props,l=s.component,c=s.children,u=s.className,d=s.type,h=s.disabled,p=s.style,f=xE(s,["component","children","className","type","disabled","style"]),m=this.context.direction,g=this.getEllipsis(),y=g.rows,b=g.suffix,C=g.tooltip,x=this.getPrefixCls(),S=_(f,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat(de(dv))),k=this.canUseCSSEllipsis(),P=1===y&&k,T=y&&y>1&&k,E=c;if(y&&i&&!a&&!k){var O=f.title,M=O||"";O||"string"!=typeof c&&"number"!=typeof c||(M=String(c)),M=M.slice(String(n||"").length),E=v.createElement(v.Fragment,null,n,v.createElement("span",{title:M,"aria-hidden":"true"},"..."),b),C&&(E=v.createElement(ys,{title:!0===C?c:C},v.createElement("span",null,E)))}else E=v.createElement(v.Fragment,null,c,b);return E=function(e,t){var n=e.mark,r=e.code,o=e.underline,i=e.delete,a=e.strong,s=e.keyboard,l=t;function c(e,t){e&&(l=v.createElement(t,{},l))}return c(a,"strong"),c(o,"u"),c(i,"del"),c(r,"code"),c(n,"mark"),c(s,"kbd"),l}(this.props,E),v.createElement(J,{componentName:"Text"},(function(t){var n,i=t.edit,a=t.copy,s=t.copied,c=t.expand;return e.editStr=i,e.copyStr=a,e.copiedStr=s,e.expandStr=c,v.createElement(H,{onResize:e.resizeOnNextFrame,disabled:!y},v.createElement(aE,Object(r.a)({className:w()((n={},o(n,"".concat(x,"-").concat(d),d),o(n,"".concat(x,"-disabled"),h),o(n,"".concat(x,"-ellipsis"),y),o(n,"".concat(x,"-ellipsis-single-line"),P),o(n,"".concat(x,"-ellipsis-multiple-line"),T),n),u),style:Object(r.a)(Object(r.a)({},p),{WebkitLineClamp:T?y:void 0}),component:l,ref:e.contentRef,direction:m},S),E,e.renderOperations()))}))}},{key:"render",value:function(){return this.getEditable().editing?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.children,n=e.editable;return aa(!n||"string"==typeof t,"Typography","When `editable` is enabled, the `children` should use string."),{}}}]),n}(v.Component);PE.contextType=ae,PE.defaultProps={children:""};var TE=PE,EE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},OE=function(e){var t=e.ellipsis,n=EE(e,["ellipsis"]),o=v.useMemo((function(){return t&&"object"===g(t)?_(t,["expandable","rows"]):t}),[t]);return aa("object"!==g(t)||!t||!("expandable"in t)&&!("rows"in t),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props."),v.createElement(TE,Object(r.a)({},n,{ellipsis:o,component:"span"}))},ME=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},AE=function(e,t){var n=e.ellipsis,o=e.rel,i=ME(e,["ellipsis","rel"]);aa("object"!==g(n),"Typography.Link","`ellipsis` only supports boolean value.");var a=v.useRef(null);v.useImperativeHandle(t,(function(){var e;return null===(e=a.current)||void 0===e?void 0:e.contentRef.current}));var s=Object(r.a)(Object(r.a)({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete s.navigate,v.createElement(TE,Object(r.a)({},s,{ref:a,ellipsis:!!n,component:"a"}))},DE=v.forwardRef(AE),IE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},LE=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}(1,2,3,4,5),NE=function(e){var t,n=e.level,o=void 0===n?1:n,i=IE(e,["level"]);return-1!==LE.indexOf(o)?t="h".concat(o):(aa(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),t="h1"),v.createElement(TE,Object(r.a)({},i,{component:t}))},jE=function(e){return v.createElement(TE,Object(r.a)({},e,{component:"div"}))},RE=aE;RE.Text=OE,RE.Link=DE,RE.Title=NE,RE.Paragraph=jE;var zE=RE;function FE(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function BE(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,e.data[t])})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),FE(t)):e.onSuccess(FE(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var HE=+new Date,VE=0;function YE(){return"rc-upload-".concat(HE,"-").concat(++VE)}var WE=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t,n,a=e.trim();return!!/^\*(\/\*)?$/.test(e)||("."===a.charAt(0)?(t=r.toLowerCase(),n=a.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(a)?i===a.replace(/\/.*$/,""):o===a)}))}return!0};var UE=function(e,t,n){var r=function e(r,o){r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),!o.length?t(r):e()}))}()}(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},KE=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).state={uid:YE()},e.reqs={},e.onChange=function(t){var n=de(t.target.files).filter((function(t){return WE(t,e.props.accept)}));e.uploadFiles(n),e.reset()},e.onClick=function(t){var n=e.fileInput;if(n){var r=e.props,o=r.children,i=r.onClick;if(o&&"button"===o.type){var a=n.parentNode;a.focus(),a.querySelector("button").blur()}n.click(),i&&i(t)}},e.onKeyDown=function(t){"Enter"===t.key&&e.onClick(t)},e.onFileDrop=function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)UE(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,(function(t){return WE(t,e.props.accept)}));else{var r=de(t.dataTransfer.files).filter((function(t){return WE(t,e.props.accept)}));!1===n&&(r=r.slice(0,1)),e.uploadFiles(r)}},e.uploadFiles=function(t){var n=de(t),r=n.map((function(t){return t.uid=YE(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null==n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))},e.processFile=function(){var t=yo(go.a.mark((function t(n,r){var o,i,a,s,l,c,u,d,h;return go.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:s=t.sent,t.next=22;break;case 21:s=a;case 22:if("function"!=typeof(l=e.props.data)){t.next=29;break}return t.next=26,l(n);case 26:c=t.sent,t.next=30;break;case 29:c=l;case 30:return u="object"!==g(i)&&"string"!=typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(h=d).uid=n.uid,t.abrupt("return",{origin:n,data:c,parsedFile:h,action:s});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}(),e.saveFileInput=function(t){e.fileInput=t},e}return s(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,s=a.onStart,l=a.customRequest,c=a.name,u=a.headers,d=a.withCredentials,h=a.method,p=r.uid,f=l||BE,m={action:o,filename:c,data:n,file:i,headers:u,withCredentials:d,method:h||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,i,n),delete t.reqs[p]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,i),delete t.reqs[p]}};s(r),this.reqs[p]=f(m)}}},{key:"reset",value:function(){this.setState({uid:YE()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,i=t.prefixCls,a=t.className,s=t.disabled,l=t.id,c=t.style,u=t.multiple,d=t.accept,h=t.children,p=t.directory,f=t.openFileDialogOnClick,m=t.onMouseEnter,g=t.onMouseLeave,v=t.capture,b=$e(t,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","capture"]),C=w()((o(e={},i,!0),o(e,"".concat(i,"-disabled"),s),o(e,a,a),e)),_=p?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},x=s?{}:{onClick:f?this.onClick:function(){},onKeyDown:f?this.onKeyDown:function(){},onMouseEnter:m,onMouseLeave:g,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return y.a.createElement(n,Object(r.a)({},x,{className:C,role:"button",style:c}),y.a.createElement("input",Object(r.a)({},nt(b,{aria:!0,data:!0}),{id:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:d},_,{multiple:u,onChange:this.onChange},null!=v?{capture:v}:{})),h)}}]),n}(v.Component);function GE(){}var qE=function(e){c(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.apply(this,arguments)).saveUploader=function(t){e.uploader=t},e}return s(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return y.a.createElement(KE,Object(r.a)({},this.props,{ref:this.saveUploader}))}}]),n}(v.Component);qE.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:GE,onError:GE,onSuccess:GE,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var $E=qE,XE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},JE=function(e,t){var n=e.style,o=e.height,i=XE(e,["style","height"]);return v.createElement(kO,Object(r.a)({ref:t},i,{type:"drag",style:Object(r.a)(Object(r.a)({},n),{height:o})}))},ZE=v.forwardRef(JE);ZE.displayName="Dragger";var QE=ZE,eO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},tO=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:eO}))};tO.displayName="PaperClipOutlined";var nO=v.forwardRef(tO),rO={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},oO=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:rO}))};oO.displayName="PictureTwoTone";var iO=v.forwardRef(oO),aO={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},sO=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:aO}))};sO.displayName="FileTwoTone";var lO=v.forwardRef(sO);function cO(e){return Object(r.a)(Object(r.a)({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function uO(e,t){var n=de(t),r=n.findIndex((function(t){return t.uid===e.uid}));return-1===r?n.push(e):n[r]=e,n}function dO(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}var hO=function(e){return 0===e.indexOf("image/")};var pO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},fO=function(e,t){return v.createElement(Oi,Object.assign({},e,{ref:t,icon:pO}))};fO.displayName="DownloadOutlined";var mO=v.forwardRef(fO),gO=v.forwardRef((function(e,t){var n,i,a,s=e.prefixCls,l=e.className,c=e.style,u=e.locale,d=e.listType,h=e.file,p=e.items,f=e.progress,m=e.iconRender,g=e.actionIconRender,y=e.itemRender,b=e.isImgUrl,C=e.showPreviewIcon,_=e.showRemoveIcon,x=e.showDownloadIcon,S=e.removeIcon,k=e.downloadIcon,P=e.onPreview,T=e.onDownload,E=e.onClose,O=Ge(v.useState(!1),2),M=O[0],A=O[1],D=v.useRef();v.useEffect((function(){return D.current=setTimeout((function(){A(!0)}),300),function(){window.clearTimeout(D.current)}}),[]);var I="".concat(s,"-span"),L=m(h),N=v.createElement("div",{className:"".concat(s,"-text-icon")},L);if("picture"===d||"picture-card"===d)if("uploading"===h.status||!h.thumbUrl&&!h.url){var j,R=w()((o(j={},"".concat(s,"-list-item-thumbnail"),!0),o(j,"".concat(s,"-list-item-file"),"uploading"!==h.status),j));N=v.createElement("div",{className:R},L)}else{var z,F=(null==b?void 0:b(h))?v.createElement("img",{src:h.thumbUrl||h.url,alt:h.name,className:"".concat(s,"-list-item-image")}):L,B=w()((o(z={},"".concat(s,"-list-item-thumbnail"),!0),o(z,"".concat(s,"-list-item-file"),b&&!b(h)),z));N=v.createElement("a",{className:B,onClick:function(e){return P(h,e)},href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},F)}var H,V=w()((o(n={},"".concat(s,"-list-item"),!0),o(n,"".concat(s,"-list-item-").concat(h.status),!0),o(n,"".concat(s,"-list-item-list-type-").concat(d),!0),n)),Y="string"==typeof h.linkProps?JSON.parse(h.linkProps):h.linkProps,W=_?g(("function"==typeof S?S(h):S)||v.createElement(hP,null),(function(){return E(h)}),s,u.removeFile):null,U=x&&"done"===h.status?g(("function"==typeof k?k(h):k)||v.createElement(mO,null),(function(){return T(h)}),s,u.downloadFile):null,K="picture-card"!==d&&v.createElement("span",{key:"download-delete",className:w()("".concat(s,"-list-item-card-actions"),{picture:"picture"===d})},U,W),G=w()("".concat(s,"-list-item-name")),q=h.url?[v.createElement("a",Object(r.a)({key:"view",target:"_blank",rel:"noopener noreferrer",className:G,title:h.name},Y,{href:h.url,onClick:function(e){return P(h,e)}}),h.name),K]:[v.createElement("span",{key:"view",className:G,onClick:function(e){return P(h,e)},title:h.name},h.name),K],$=C?v.createElement("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return P(h,e)},title:u.previewFile},v.createElement(Zf,null)):null,X="picture-card"===d&&"uploading"!==h.status&&v.createElement("span",{className:"".concat(s,"-list-item-actions")},$,"done"===h.status&&U,W);H=h.response&&"string"==typeof h.response?h.response:(null===(i=h.error)||void 0===i?void 0:i.statusText)||(null===(a=h.error)||void 0===a?void 0:a.message)||u.uploadError;var J=v.createElement("span",{className:I},N,q),Z=(0,v.useContext(ae).getPrefixCls)(),Q=v.createElement("div",{className:V},v.createElement("div",{className:"".concat(s,"-list-item-info")},J),X,M&&v.createElement(or,{motionName:"".concat(Z,"-fade"),visible:"uploading"===h.status,motionDeadline:2e3},(function(e){var t=e.className,n="percent"in h?v.createElement(J_,Object(r.a)({},f,{type:"line",percent:h.percent})):null;return v.createElement("div",{className:w()("".concat(s,"-list-item-progress"),t)},n)}))),ee=w()("".concat(s,"-list-").concat(d,"-container"),l),te="error"===h.status?v.createElement(ys,{title:H,getPopupContainer:function(e){return e.parentNode}},Q):Q;return v.createElement("div",{className:ee,style:c,ref:t},y?y(te,h,p):te)})),vO=Object(r.a)({},ta);delete vO.onAppearEnd,delete vO.onEnterEnd,delete vO.onLeaveEnd;var yO=function(e,t){var n,i=e.listType,a=e.previewFile,s=e.onPreview,l=e.onDownload,c=e.onRemove,u=e.locale,d=e.iconRender,h=e.isImageUrl,p=e.prefixCls,f=e.items,m=void 0===f?[]:f,g=e.showPreviewIcon,y=e.showRemoveIcon,b=e.showDownloadIcon,C=e.removeIcon,_=e.downloadIcon,x=e.progress,S=e.appendAction,k=e.itemRender,P=Ey(),T=Ge(v.useState(!1),2),E=T[0],O=T[1];v.useEffect((function(){"picture"!==i&&"picture-card"!==i||(m||[]).forEach((function(e){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then((function(t){e.thumbUrl=t||"",P()})))}))}),[i,m,a]),v.useEffect((function(){O(!0)}),[]);var M=function(e,t){if(s)return t.preventDefault(),s(e)},A=function(e){"function"==typeof l?l(e):e.url&&window.open(e.url)},D=function(e){null==c||c(e)},I=function(e){if(d)return d(e,i);var t="uploading"===e.status,n=h&&h(e)?v.createElement(iO,null):v.createElement(lO,null),r=t?v.createElement(Li,null):v.createElement(nO,null);return"picture"===i?r=t?v.createElement(Li,null):n:"picture-card"===i&&(r=t?u.uploading:n),r},L=function(e,t,n,o){var i={type:"text",size:"small",title:o,onClick:function(n){t(),sa(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if(sa(e)){var a=ca(e,Object(r.a)(Object(r.a)({},e.props),{onClick:function(){}}));return v.createElement(vl,Object(r.a)({},i,{icon:a}))}return v.createElement(vl,i,v.createElement("span",null,e))};v.useImperativeHandle(t,(function(){return{handlePreview:M,handleDownload:A}}));var N=v.useContext(ae),j=N.getPrefixCls,R=N.direction,z=j("upload",p),F=w()((o(n={},"".concat(z,"-list"),!0),o(n,"".concat(z,"-list-").concat(i),!0),o(n,"".concat(z,"-list-rtl"),"rtl"===R),n)),B=de(m.map((function(e){return{key:e.uid,file:e}}))),H="picture-card"===i?"animate-inline":"animate",V={motionDeadline:2e3,motionName:"".concat(z,"-").concat(H),keys:B,motionAppear:E};return"picture-card"!==i&&(V=Object(r.a)(Object(r.a)({},vO),V)),v.createElement("div",{className:F},v.createElement(rr,Object(r.a)({},V,{component:!1}),(function(e){var t=e.key,n=e.file,r=e.className,o=e.style;return v.createElement(gO,{key:t,locale:u,prefixCls:z,className:r,style:o,file:n,items:m,progress:x,listType:i,isImgUrl:h,showPreviewIcon:g,showRemoveIcon:y,showDownloadIcon:b,removeIcon:C,downloadIcon:_,iconRender:I,actionIconRender:L,itemRender:k,onPreview:M,onDownload:A,onClose:D})})),S&&v.createElement(or,V,(function(e){var t=e.className,n=e.style;return ca(S,(function(e){return{className:w()(e.className,t),style:Object(r.a)(Object(r.a)({},n),e.style)}}))})))},bO=v.forwardRef(yO);bO.displayName="UploadList",bO.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((function(t){if(e.type&&hO(e.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),o=new Image;o.onload=function(){var e=o.width,i=o.height,a=200,s=200,l=0,c=0;e>i?c=-((s=i*(200/e))-a)/2:l=-((a=e*(200/i))-s)/2,r.drawImage(o,l,c,a,s);var u=n.toDataURL();document.body.removeChild(n),t(u)},o.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type&&!e.thumbUrl)return hO(e.type);var t=e.thumbUrl||e.url||"",n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n}};var wO=bO,CO=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())}))},_O="__LIST_IGNORE_".concat(Date.now(),"__"),xO=function(e,t){var n,i=e.fileList,a=e.defaultFileList,s=e.onRemove,l=e.showUploadList,c=e.listType,u=e.onPreview,d=e.onDownload,h=e.onChange,p=e.previewFile,f=e.disabled,m=e.locale,y=e.iconRender,b=e.isImageUrl,C=e.progress,_=e.prefixCls,x=e.className,S=e.type,k=e.children,P=e.style,T=e.itemRender,E=e.maxCount,O=Ge(cn(a||[],{value:i,postState:function(e){return null!=e?e:[]}}),2),M=O[0],A=O[1],D=Ge(v.useState("drop"),2),I=D[0],L=D[1],N=v.useRef();v.useEffect((function(){aa("fileList"in e||!("value"in e),"Upload","`value` is not a valid prop, do you mean `fileList`?"),aa(!("transformFile"in e),"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly.")}),[]),v.useMemo((function(){var e=Date.now();(i||[]).forEach((function(t,n){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))}))}),[i]);var j=function(e,t,n){var r=de(t);1===E?r=r.slice(-1):E&&(r=r.slice(0,E)),A(r);var o={file:e,fileList:r};n&&(o.event=n),null==h||h(o)},R=function(e){var t=e.filter((function(e){return!e.file[_O]}));if(t.length){var n=t.map((function(e){return cO(e.file)})),r=de(M);n.forEach((function(e){r=uO(e,r)})),n.forEach((function(e,n){var o=e;if(t[n].parsedFile)e.status="uploading";else{var i=e.originFileObj,a=new File([i],i.name,{type:i.type});a.uid=e.uid,o=a}j(o,r)}))}},z=function(e,t,n){try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(dO(t,M)){var r=cO(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;var o=uO(r,M);j(r,o)}},F=function(e,t){if(dO(t,M)){var n=cO(t);n.status="uploading",n.percent=e.percent;var r=uO(n,M);j(n,r,e)}},B=function(e,t,n){if(dO(n,M)){var r=cO(n);r.error=e,r.response=t,r.status="error";var o=uO(r,M);j(r,o)}},H=function(e){var t;Promise.resolve("function"==typeof s?s(e):s).then((function(n){var o;if(!1!==n){var i=function(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter((function(t){return t[n]!==e[n]}));return r.length===t.length?null:r}(e,M);i&&(t=Object(r.a)(Object(r.a)({},e),{status:"removed"}),null==M||M.forEach((function(e){var n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(o=N.current)||void 0===o||o.abort(t),j(t,i))}}))},V=function(e){e.stopPropagation(),L(e.type)};v.useImperativeHandle(t,(function(){return{onBatchStart:R,onSuccess:z,onProgress:F,onError:B,fileList:M,upload:N.current}}));var Y=v.useContext(ae),W=Y.getPrefixCls,U=Y.direction,K=W("upload",_),G=Object(r.a)(Object(r.a)({onBatchStart:R,onError:B,onProgress:F,onSuccess:z},e),{prefixCls:K,beforeUpload:function(t,n){return CO(void 0,void 0,void 0,go.a.mark((function r(){var o,i,a,s;return go.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.beforeUpload,i=e.transformFile,a=t,!o){r.next=13;break}return r.next=5,o(t,n);case 5:if(!1!==(s=r.sent)){r.next=8;break}return r.abrupt("return",!1);case 8:if(delete t[_O],s!==_O){r.next=12;break}return Object.defineProperty(t,_O,{value:!0,configurable:!0}),r.abrupt("return",!1);case 12:"object"===g(s)&&s&&(a=s);case 13:if(!i){r.next=17;break}return r.next=16,i(a);case 16:a=r.sent;case 17:return r.abrupt("return",a);case 18:case"end":return r.stop()}}),r)})))},onChange:void 0});delete G.className,delete G.style,k&&!f||delete G.id;var $=function(e){return l?v.createElement(J,{componentName:"Upload",defaultLocale:q.Upload},(function(t){var n="boolean"==typeof l?{}:l,o=n.showRemoveIcon,i=n.showPreviewIcon,a=n.showDownloadIcon,s=n.removeIcon,h=n.downloadIcon;return v.createElement(wO,{listType:c,items:M,previewFile:p,onPreview:u,onDownload:d,onRemove:H,showRemoveIcon:!f&&o,showPreviewIcon:i,showDownloadIcon:a,removeIcon:s,downloadIcon:h,iconRender:y,locale:Object(r.a)(Object(r.a)({},t),m),isImageUrl:b,progress:C,appendAction:e,itemRender:T})})):e};if("drag"===S){var X,Z=w()(K,(o(X={},"".concat(K,"-drag"),!0),o(X,"".concat(K,"-drag-uploading"),M.some((function(e){return"uploading"===e.status}))),o(X,"".concat(K,"-drag-hover"),"dragover"===I),o(X,"".concat(K,"-disabled"),f),o(X,"".concat(K,"-rtl"),"rtl"===U),X),x);return v.createElement("span",null,v.createElement("div",{className:Z,onDrop:V,onDragOver:V,onDragLeave:V,style:P},v.createElement($E,Object(r.a)({},G,{ref:N,className:"".concat(K,"-btn")}),v.createElement("div",{className:"".concat(K,"-drag-container")},k))),$())}var Q=w()(K,(o(n={},"".concat(K,"-select"),!0),o(n,"".concat(K,"-select-").concat(c),!0),o(n,"".concat(K,"-disabled"),f),o(n,"".concat(K,"-rtl"),"rtl"===U),n)),ee=v.createElement("div",{className:Q,style:k?void 0:{display:"none"}},v.createElement($E,Object(r.a)({},G,{ref:N})));return"picture-card"===c?v.createElement("span",{className:w()("".concat(K,"-picture-card-wrapper"),x)},$(ee)):v.createElement("span",{className:x},ee,$())},SO=v.forwardRef(xO);SO.Dragger=QE,SO.LIST_IGNORE=_O,SO.displayName="Upload",SO.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var kO=SO;kO.Dragger=QE;var PO=kO,TO="4.15.3"}]); |