/*! Tripetto Classic Runner 7.0.1 - Copyright (C) 2024 Tripetto B.V. - All Rights Reserved */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("TripettoRunner")):"function"==typeof define&&define.amd?define("TripettoClassic",["TripettoRunner"],t):"object"==typeof exports?exports.TripettoClassic=t(require("TripettoRunner")):e.TripettoClassic=t(e.TripettoRunner)}(this,(function(e){return function(){var t={6780:function(e,t,n){!function(){"use strict";var t={466:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.calculateAgeInYears=t.calculateAgeInMonths=void 0;var r=n(226);t.calculateAgeInMonths=function(e,t){var n=new Date(r.Num.min(e,t)),o=new Date(r.Num.max(e,t));return(12*(o.getFullYear()-n.getFullYear())+(o.getMonth()-n.getMonth())-(o.getDate()-n.getDate()<0?1:0))*(e>t?-1:1)},t.calculateAgeInYears=function(e,t){var n=new Date(r.Num.min(e,t)),o=new Date(r.Num.max(e,t)),i=o.getMonth()-n.getMonth(),a=o.getFullYear()-n.getFullYear();return(i<0||0===i&&o.getDate()<n.getDate())&&a--,a*(e>t?-1:1)}},865:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertAngle=t.convertToRadians=void 0,t.convertToRadians=function(e,t){switch(t){case"radians":return e;case"gradians":return e*(Math.PI/200);default:return e*(Math.PI/180)}},t.convertAngle=function(e,t){switch(t){case"radians":return e;case"gradians":return e*(200/Math.PI);default:return e*(180/Math.PI)}}},583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.calculator=void 0;var r=n(226),o=n(865),i=n(466),a=n(907),l=n(508),u=n(680);function s(e,t,n,o){if((0,r.isString)(e)){var i=(0,u.getConstant)(e,n);if((0,r.isNumberFinite)(i))return i;var a=o(e);return a&&a.hasValue&&(a.slot instanceof r.Slots.Number||a.slot instanceof r.Slots.Numeric||a.slot instanceof r.Slots.Date)?a.slot.toValue(a.value):void 0}return(0,r.isNumberFinite)(e)?e:t}function c(e,t){return(0,r.isNumberFinite)(e)?t(e):void 0}function d(e,t,n,u,f,p,h){var v,b=0;switch(n.opcode){case"abs":b=c(s(n.value,u,e,f),(function(e){return Math.abs(e)}));break;case"acos":b=c(s(n.value,u,e,f),(function(e){return(0,o.convertAngle)(Math.acos(e),n.angleUnits)}));break;case"acosh":b=c(s(n.value,u,e,f),(function(e){return Math.acosh(e)}));break;case"age":b=function(){var t=(0,r.isFilledString)(n.value)&&f(n.value);if(t&&t.hasValue&&t.slot instanceof r.Slots.Date){var o=s(n.reference,r.DateTime.UTC,e,f),a=t.slot.toValue(t.value);if((0,r.isNumberFinite)(o)){var l=t.slot.toValue(o);switch(n.ageIn){case"milliseconds":return l-a;case"seconds":return r.Num.floor((l-a)/1e3);case"minutes":return r.Num.floor((l-a)/6e4);case"hours":return r.Num.floor((l-a)/36e5);case"days":return r.Num.floor((l-a)/864e5);case"months":return(0,i.calculateAgeInMonths)(a,l);default:return(0,i.calculateAgeInYears)(a,l)}}}}(),n.ageAbs&&(0,r.isNumberFinite)(b)&&(b=Math.abs(b));break;case"asin":b=c(s(n.value,u,e,f),(function(e){return(0,o.convertAngle)(Math.asin(e),n.angleUnits)}));break;case"asinh":b=c(s(n.value,u,e,f),(function(e){return Math.asinh(e)}));break;case"atan":b=c(s(n.value,u,e,f),(function(e){return(0,o.convertAngle)(Math.atan(e),n.angleUnits)}));break;case"atanh":b=c(s(n.value,u,e,f),(function(e){return Math.atanh(e)}));break;case"boolean":b=function(){var t=(0,r.isFilledString)(n.value)&&f(n.value);if(t&&t.slot instanceof r.Slots.Boolean)return s(t.hasValue&&!0===t.value?n.outa:n.outb,u,e,f)}();break;case"calc":var m=h&&h(n.id);n.operations&&n.operations.length>0&&(b=u,(0,r.each)(n.operations,(function(t){(0,r.isNumberFinite)(b)&&(b=d(e,t.operator,t,b,f,p,h))}))),m&&m.set(b);break;case"cast":v=(0,r.isFilledString)(n.value)&&f(n.value),b=v&&v.hasValue?(0,r.castToFloat)(v.string):0;break;case"ceil":b=c(s(n.value,u,e,f),(function(e){return r.Num.ceil(e)}));break;case"chars":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value);return e&&e.hasValue?e.string.length:0}();break;case"clamp":b=c(s(n.value,u,e,f),(function(t){var o=s(n.min,u,e,f),i=s(n.max,u,e,f);return t=(0,r.isNumberFinite)(o)?r.Num.max(t,o):t,(0,r.isNumberFinite)(i)?r.Num.min(t,i):t}));break;case"cos":b=c(s(n.value,u,e,f),(function(e){return Math.cos((0,o.convertToRadians)(e,n.angleUnits))}));break;case"cosh":b=c(s(n.value,u,e,f),(function(e){return Math.cosh(e)}));break;case"count":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value)||void 0;return e?e.refs.length:0}();break;case"date":case"datetime":b=function(){var t=function(e){if((0,r.isNumberFinite)(e)){var t=new Date(e);return"datetime"===n.opcode?(t.setUTCSeconds(0),t.setUTCMilliseconds(0)):(t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0)),t.getTime()}},o=r.DateTime.UTC,i=t(s(n.value,o,e,f)),a=t(s(n.cona,o,e,f)),l=!1;switch(n.compareMode){case"equal":l=i===a;break;case"before":l=(0,r.isNumberFinite)(i)&&(0,r.isNumberFinite)(a)&&i<a;break;case"after":l=(0,r.isNumberFinite)(i)&&(0,r.isNumberFinite)(a)&&i>a;break;case"between":var c=s(n.conb,o,e,f);l=(0,r.isNumberFinite)(i)&&(0,r.isNumberFinite)(a)&&(0,r.isNumberFinite)(c)&&i>=r.Num.min(a,c)&&i<=r.Num.max(a,c);break;case"defined":l=(0,r.isNumberFinite)(i)}return s(l?n.outa:n.outb,u,e,f)}();break;case"day-of-month":case"day-of-week":case"hour":case"millisecond":case"minute":case"month":case"second":case"year":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value);if(e&&e.hasValue&&e.slot instanceof r.Slots.Date){var t=e.slot.toDate(e.value);switch(n.opcode){case"year":return t.getUTCFullYear();case"month":return t.getUTCMonth()+1;case"day-of-month":return t.getUTCDate();case"day-of-week":return t.getUTCDay();case"hour":return t.getUTCHours();case"minute":return t.getUTCMinutes();case"second":return t.getUTCSeconds();case"millisecond":return t.getUTCMilliseconds()}}}();break;case"equation":b=function(){var t=s(n.value,u,e,f),o=s(n.cona,u,e,f),i=!1;switch(n.compareMode){case"equal":i=t===o;break;case"below":i=(0,r.isNumberFinite)(t)&&(0,r.isNumberFinite)(o)&&t<o;break;case"above":i=(0,r.isNumberFinite)(t)&&(0,r.isNumberFinite)(o)&&t>o;break;case"between":var a=s(n.conb,u,e,f);i=(0,r.isNumberFinite)(t)&&(0,r.isNumberFinite)(o)&&(0,r.isNumberFinite)(a)&&t>=r.Num.min(o,a)&&t<=r.Num.max(o,a);break;case"defined":i=(0,r.isNumberFinite)(t)}return s(i?n.outa:n.outb,u,e,f)}();break;case"evaluate":b=function(){var t,o=!1,i=(0,r.isFilledString)(n.value)&&f(n.value);if(i&&i.hasValue){var a=n.ignoreCase?r.Str.lowercase(i.string):i.string,l=(t=p((0,r.isFilledString)(n.cona)?n.cona:""),n.ignoreCase?r.Str.lowercase(t):t);switch(n.compareMode){case"equal":o=a===l;break;case"contains":o=l&&-1!==a.indexOf(l)||!1;break;case"starts":o=l&&0===a.indexOf(l)||!1;break;case"ends":o=l&&a.length>=l.length&&a.lastIndexOf(l)===a.length-l.length||!1;break;case"defined":o=""!==a}}return s(o?n.outa:n.outb,u,e,f)}();break;case"exp":b=c(s(n.exponent,u,e,f),(function(e){return Math.exp(e)}));break;case"fact":b=c(s(n.value,u,e,f),l.factorial);break;case"floor":b=c(s(n.value,u,e,f),(function(e){return r.Num.floor(e)}));break;case"gamma":b=c(s(n.value,u,e,f),a.gamma);break;case"lines":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value);return e&&e.hasValue&&e.string&&e.string.split("\n").length||0}();break;case"ln":b=c(s(n.value,u,e,f),(function(e){return Math.log(e)}));break;case"log":b=c(s(n.value,u,e,f),(function(e){return Math.log10(e)}));break;case"max":b=c(s(n.value,u,e,f),(function(t){var o=s(n.max,u,e,f);return(0,r.isNumberFinite)(o)?r.Num.max(t,o):t}));break;case"min":b=c(s(n.value,u,e,f),(function(t){var o=s(n.min,u,e,f);return(0,r.isNumberFinite)(o)?r.Num.min(t,o):t}));break;case"mod":b=c(s(n.value,u,e,f),(function(t){var o=s(n.divisor,u,e,f);return(0,r.isNumberFinite)(o)&&0!==o?t%o:void 0}));break;case"number":b=s(n.value,u,e,f);break;case"occurrences":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value);if(e&&e.hasValue){if("regex"!==n.compareMode){var t=(0,r.isFilledString)(n.cona)&&(n.ignoreCase?r.Str.lowercase(n.cona):n.cona)||"",o=n.ignoreCase?r.Str.lowercase(e.string):e.string;return t&&o?o.split(t).length-1:0}try{var i=(0,r.isFilledString)(n.cona)&&n.cona||"",a=i.indexOf("/"),l=i.lastIndexOf("/");return 0===a&&l>a&&function(e){try{return(e.match(new RegExp(i.substring(1,l),i.substr(l+1)))||[]).length}catch(e){return 0}}(e.string)||0}catch(e){return 0}}return 0}();break;case"percentage":b=c(s(n.value,u,e,f),(function(t){var o=s(n.percentage,u,e,f);return(0,r.isNumberFinite)(o)?t/100*o:void 0}));break;case"pow":b=c(s(n.value,u,e,f),(function(t){var o=s(n.exponent,u,e,f);return(0,r.isNumberFinite)(o)?Math.pow(t,o):void 0}));break;case"round":b=c(s(n.value,u,e,f),(function(e){return r.Num.round(e)}));break;case"score":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value)||void 0;if(e&&n.scores){var t=0;return(0,r.each)(e.refs,(function(e){t+=n.scores[e]||0})),t}}();break;case"sgn":b=c(s(n.value,u,e,f),(function(e){return Math.sign(e)}));break;case"sin":b=c(s(n.value,u,e,f),(function(e){return Math.sin((0,o.convertToRadians)(e,n.angleUnits))}));break;case"sinh":b=c(s(n.value,u,e,f),(function(e){return Math.sinh(e)}));break;case"sqrt":b=c(s(n.value,u,e,f),(function(e){return Math.sqrt(e)}));break;case"square":b=c(s(n.value,u,e,f),(function(e){return e*e}));break;case"sum":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value)||void 0;return e?(0,r.castToFloat)(e.value):void 0}();break;case"tan":b=c(s(n.value,u,e,f),(function(e){return Math.tan((0,o.convertToRadians)(e,n.angleUnits))}));break;case"tanh":b=c(s(n.value,u,e,f),(function(e){return Math.tanh(e)}));break;case"trunc":b=c(s(n.value,u,e,f),(function(e){return Math.trunc(e)}));break;case"words":b=function(){var e=(0,r.isFilledString)(n.value)&&f(n.value);return e&&e.hasValue?e.string.split(" ").filter((function(e){return""!==e})).length:0}();break;default:return}switch(t){case"+":return(0,r.isNumberFinite)(u)||(0,r.isNumberFinite)(b)?(u||0)+(b||0):void 0;case"-":return(0,r.isNumberFinite)(u)||(0,r.isNumberFinite)(b)?(u||0)-(b||0):void 0;case"*":return(0,r.isNumberFinite)(u)&&(0,r.isNumberFinite)(b)?u*b:void 0;case"/":return(0,r.isNumberFinite)(u)&&(0,r.isNumberFinite)(b)&&0!==b?u/b:void 0;case"=":return b}}t.calculator=function(e,t,n,o,i,a,l){var u=n&&n.hasValue?n.slot.toValue(n.value):void 0;if(!n||(0,r.isNumberFinite)(u)){var s=(0,r.arraySize)(t);if(s>0){n||(u=0);for(var c=0;c<s;c++){var f=t[c],p=0!==c||n?f.operator:"=";if(u=d(e,p,f,u,i,a,l),!(0,r.isNumberFinite)(u)&&("*"===p||"/"===p))break}}}return o&&o.set(u),u}},407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.CalculatorCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-calculator"})],t)}(a.ConditionBlock);t.CalculatorCondition=l},680:function(e,t){function n(e){if("string"==typeof e)for(var n=t.CONSTANTS.length,r=0;r<n;r++)if(t.CONSTANTS[r]===e)return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getConstant=t.castToConstant=t.isConstant=t.CONSTANTS=void 0,t.CONSTANTS=["π","e","γ","c","random","timestamp","year","month","day","day-of-week","hour","minute","second","millisecond","timezone","branch"],t.isConstant=n,t.castToConstant=function(e){return"string"==typeof e&&n(e)?e:"π"},t.getConstant=function(e,t){switch(e){case"π":return Math.PI;case"e":return Math.E;case"γ":return.5772156649015329;case"c":return 299792458;case"random":return Math.random();case"timestamp":return Date.now()/1e3;case"year":return(new Date).getFullYear();case"month":return(new Date).getMonth()+1;case"day":return(new Date).getDate();case"day-of-week":return(new Date).getDay();case"hour":return(new Date).getHours();case"minute":return(new Date).getMinutes();case"second":return(new Date).getSeconds();case"millisecond":return(new Date).getMilliseconds();case"timezone":return 60*(new Date).getTimezoneOffset()*1e3;case"branch":return t.index}}},508:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.factorial=void 0;var r=n(226),o=n(907);t.factorial=function(e){if(e>=0){if(0===e)return 1;if(e<1)return(0,o.gamma)(e+1);for(var t=0,n=1;n<=e;n++){if(!(0,r.isNumberFinite)(t))return;t+=Math.log(n)}return Math.exp(t)}}},907:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.gamma=void 0;var r=n(226);t.gamma=function e(t){if(t>0){if(t>=.5){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],o=n[0];t--;for(var i=1;i<9;i++)o+=n[i]/(t+i);var a=t+7.5;return Math.sqrt(2*Math.PI)*Math.pow(a,t+.5)*Math.exp(-a)*o}var l=e(1-t);return(0,r.isNumberFinite)(l)?Math.PI/(Math.sin(Math.PI*t)*l):void 0}}},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Calculator=t.calculator=void 0;var a=n(226),l=n(583);n(407);var u=n(583);Object.defineProperty(t,"calculator",{enumerable:!0,get:function(){return u.calculator}});var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.calculatorSlot=(0,a.assert)(t.valueOf("calculator")),t}return o(t,e),t.prototype.do=function(){var e=this;(0,l.calculator)(this.context,this.props.operations||[],void 0,this.calculatorSlot,(function(t){return e.variableFor(t)}),(function(t){return e.parseVariables(t)}),(function(t){return e.valueOf(t,"dynamic")}))},i([(0,a.tripetto)({type:"headless",legacyBlock:!0,identifier:"@tripetto/block-calculator"})],t)}(a.HeadlessBlock);t.Calculator=s},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},5827:function(e,t,n){!function(){"use strict";var t={126: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isChecked=function(){var e=this.valueOf();return!!e&&e.value===this.props.checked},i([a.condition],t.prototype,"isChecked",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-checkbox",alias:"checkbox"})],t)}(a.ConditionBlock);t.CheckboxCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-checkbox",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Checkbox=void 0;var a=n(226);n(126),n(502);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scoreSlot=t.valueOf("score","feature"),t.checkboxSlot=(0,a.assert)(t.valueOf("checked","static",{confirm:!0,onChange:function(e){t.scoreSlot&&e.slot instanceof a.Slots.Boolean&&t.scoreSlot.set(e.hasValue?(0,a.castToNumber)(!0===e.value?t.props.scoreForTrue:t.props.scoreForFalse):void 0)}})),t.required=t.checkboxSlot.slot.required||!1,t}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.checkboxSlot.value},set:function(e){this.checkboxSlot.value=e},enumerable:!1,configurable:!0}),t.prototype.toggle=function(){this.checkboxSlot.value=!this.checkboxSlot.value},t.prototype.validate=function(){return!this.required||!0===this.checkboxSlot.value},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.Checkbox=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},4527:function(e,t,n){!function(){"use strict";var t={250: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboxes=void 0;var a=n(226),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.counterSlot=t.valueOf("counter"),t.concatenationSlot=t.valueOf("concatenation","feature"),t.scoreSlot=t.valueOf("score","feature"),t}return o(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this.props.required||!1},enumerable:!1,configurable:!0}),t.prototype.transform=function(){var e=this,t=(0,a.filter)((0,a.map)(this.props.checkboxes,(function(t){return{id:t.id,label:t.value||t.name||"",exclusive:t.exclusive,valueRef:e.valueOf(t.id)}})),(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).sort((function(e,t){var n,r;return((null===(n=t.valueRef)||void 0===n?void 0:n.time)||0)-((null===(r=e.valueRef)||void 0===r?void 0:r.time)||0)})),n=t.length&&t[0];if(n&&t.forEach((function(e){e.id!==n.id&&(n.exclusive||e.exclusive)&&(e.valueRef.value=!1)})),this.props.max){var r=this.props.max,o=0;t.forEach((function(e){var t;!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)&&++o>r&&(e.valueRef.value=!1)}))}if(this.counterSlot){var i=(0,a.filter)(t,(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).length;this.counterSlot.set(i)}if(this.concatenationSlot){var l=[],u="",s=0;if((0,a.each)(this.props.checkboxes,(function(t){var n,r=t.value||t.name||"";if(r&&!0===(null===(n=e.valueOf(t.id))||void 0===n?void 0:n.value))switch(e.props.formatSeparator){case"space":u+=(""===u?"":" ")+r;break;case"list":u+=(""===u?"":"\n")+r;break;case"bullets":u+=(""===u?"":"\n")+"- "+r;break;case"numbers":u+=(""===u?"":"\n")+"".concat(++s,". ").concat(r);break;case"conjunction":case"disjunction":l.push(r);break;case"custom":u+=(""===u?"":e.props.formatSeparatorCustom||"")+r;break;default:u+=(""===u?"":", ")+r}})),"conjunction"===this.props.formatSeparator||"disjunction"===this.props.formatSeparator)try{var c=new Intl.ListFormat(this.context.l10n.current||"en",{type:this.props.formatSeparator});u=c.format(l)}catch(e){u=a.Str.iterateToString(l,", ")}this.concatenationSlot.set(u)}},t.prototype.score=function(e){var t=this;this.scoreSlot&&(0,a.isNumberFinite)(e.score)&&this.scoreSlot.set((0,a.reduce)(this.props.checkboxes,(function(e,n){var r;return e+(!0===(null===(r=t.valueOf(n.id))||void 0===r?void 0:r.value)&&n.score||0)}),0))},t.prototype.checkboxSlot=function(e){var t=this;return this.valueOf(e.id,"dynamic",{confirm:!0,onChange:function(){t.transform(),t.score(e)},onContext:function(n,r){var o;t.scoreSlot&&(null===(o=r.contextualValueOf(t.scoreSlot))||void 0===o||o.set(!0===n.value?e.score||0:void 0))}})},t.prototype.isChecked=function(e){var t=this.checkboxSlot(e);return(null==t?void 0:t.value)||!1},t.prototype.check=function(e,t){var n=this.checkboxSlot(e);return!!n&&(n.value=t,n.value)},t.prototype.toggle=function(e){var t=this.checkboxSlot(e);t&&(t.value=!t.value)},t.prototype.checkboxes=function(e){var t,n=this,r=0,o=this,i=(null===(t=this.props.checkboxes)||void 0===t?void 0:t.map((function(t){var i=n.checkboxSlot(t);return n.props.max&&!0===(null==i?void 0:i.value)&&r++,{id:t.id,score:t.score,exclusive:t.exclusive,label:e.markdownifyToJSX(t.name,!1),description:t.description&&e.markdownifyToJSX(t.description,!0)||void 0,value:i,tabIndex:e.tabIndex,get disabled(){return o.props.max&&r>=o.props.max&&!0!==(null==i?void 0:i.value)||!1}}})))||[];if(this.props.randomize&&i.length>1){if(!this.randomized||this.randomized.length!==i.length||(0,a.findFirst)(this.randomized,(function(e){var t;return(null===(t=i[e.index])||void 0===t?void 0:t.id)!==e.id}))){this.randomized=i.map((function(e,t){return{index:t,id:e.id}}));for(var l=this.randomized.length;--l;){var u=Math.floor(Math.random()*l),s=this.randomized[l];this.randomized[l]=this.randomized[u],this.randomized[u]=s}}return this.randomized.map((function(e){return i[e.index]}))}return this.randomized&&(this.randomized=void 0),i},t.prototype.validate=function(){var e=this;if(this.props.min||this.props.max){var t=(0,a.filter)(this.props.checkboxes,(function(t){var n;return!0===(null===(n=e.checkboxSlot(t))||void 0===n?void 0:n.value)})).length;if(this.props.min&&t<this.props.min||this.props.max&&t>this.props.max)return!1}return!this.props.required||!!(0,a.findFirst)(this.props.checkboxes,(function(t){var n;return!0===(null===(n=e.valueOf(t.id))||void 0===n?void 0:n.value)}))},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.Checkboxes=l},126: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isChecked=function(){var e=this.valueOf();return e&&e.value===this.props.checked||!1},i([a.condition],t.prototype,"isChecked",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-checkboxes"})],t)}(a.ConditionBlock);t.CheckboxCondition=l},924: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.CounterCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Number){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode)}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-checkboxes",":counter")})],t)}(a.ConditionBlock);t.CounterCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-checkboxes",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},87: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.UncheckedCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.allUnchecked=function(){var e=this,t=this.slots;return!t||!t.each((function(t){var n=e.valueOf(t);return n&&n.value||!1}))},i([a.condition],t.prototype,"allUnchecked",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-checkboxes",":unchecked")})],t)}(a.ConditionBlock);t.UncheckedCondition=l},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.Checkboxes=void 0,o(126),o(87),o(924),o(502);var t=o(250);Object.defineProperty(e,"Checkboxes",{enumerable:!0,get:function(){return t.Checkboxes}})}(),e.exports=i}()},9064:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Date){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return e.toValue((0,a.isNumberFinite)(t)?t:a.DateTime.UTC)},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value),n=e.hasValue?e.slot.toValue(e.value):void 0;switch(this.props.mode){case"equal":return n===t;case"not-equal":return n!==t;case"before":return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&n<t;case"after":return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&n>t;case"between":case"not-between":var r=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(r)&&((0,a.isNumberFinite)(n)&&n>=a.Num.min(t,r)&&n<=a.Num.max(t,r))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-date"})],t)}(a.ConditionBlock);t.DateTimeCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.DateTime=void 0;var a=n(226);n(407);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dateSlot=(0,a.assert)(t.valueOf("date")),t.toSlot=t.valueOf("to"),t.required=t.dateSlot.slot.required||!1,t}return o(t,e),Object.defineProperty(t.prototype,"fromError",{get:function(){return!this.dateSlot.hasValue||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toError",{get:function(){return!this.toSlot||!this.toSlot.hasValue||this.toSlot.value<this.dateSlot.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toPlaceholder",{get:function(){return(0,a.markdownifyToString)(this.props.placeholder||"",this.context)||""},enumerable:!1,configurable:!0}),t.prototype.validate=function(){return!this.props.range||this.toSlot&&this.dateSlot.hasValue===this.toSlot.hasValue&&this.toSlot.value>=this.dateSlot.value||!1},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.DateTime=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},582:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.evaluateDevice=function(){if(window){var e="live"===this.view&&window.screen&&a.Num.min(window.screen.width,window.screen.height)||a.Num.min(window.innerWidth,window.innerHeight);return e<400?"phone"===this.props.deviceType:e<800?"tablet"===this.props.deviceType:"desktop"===this.props.deviceType}return!1},i([a.condition],t.prototype,"evaluateDevice",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-device"})],t)}(a.ConditionBlock);t.DeviceCondition=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},3907:function(e,t,n){!function(){"use strict";var t={566: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isSelected=function(){var e=this.valueOf();return e&&(e.reference===this.props.option||!this.props.option&&!e.reference)||!1},i([a.condition],t.prototype,"isSelected",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-dropdown"})],t)}(a.ConditionBlock);t.DropdownCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-dropdown",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},58: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;var a=n(226),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scoreSlot=t.valueOf("score","feature"),t.dropdownSlot=(0,a.assert)(t.valueOf("option","static",{confirm:!0,modifier:function(e){if(e.value){if(!e.reference){var n=(0,a.findFirst)(t.props.options,(function(t){return t.value===e.value}))||(0,a.findFirst)(t.props.options,(function(t){return t.id===e.value}))||(0,a.findFirst)(t.props.options,(function(t){return t.name===e.value}))||(0,a.findFirst)(t.props.options,(function(t){return t.name.toLowerCase()===e.value.toLowerCase()}));return{value:n&&(n.value||n.name),reference:n&&n.id,display:null==n?void 0:n.name}}if(!(0,a.findFirst)(t.props.options,(function(t){return t.id===e.reference})))return{value:void 0,reference:void 0,display:void 0}}},onChange:function(e){if(t.scoreSlot){var n=(0,a.findFirst)(t.props.options,(function(t){return t.id===e.reference}));t.scoreSlot.set(n&&((null==n?void 0:n.score)||0))}}})),t.required=t.dropdownSlot.slot.required||!1,t}return o(t,e),Object.defineProperty(t.prototype,"options",{get:function(){var e,t=this,n=(null===(e=this.props.options)||void 0===e?void 0:e.map((function(e){return i(i({},e),{name:(0,a.markdownifyToString)(e.name,t.context)})})))||[];if(this.props.randomize&&n.length>1){if(!this.randomized||this.randomized.length!==n.length||(0,a.findFirst)(this.randomized,(function(e){var t;return(null===(t=n[e.index])||void 0===t?void 0:t.id)!==e.id}))){this.randomized=n.map((function(e,t){return{index:t,id:e.id}}));for(var r=this.randomized.length;--r;){var o=Math.floor(Math.random()*r),l=this.randomized[r];this.randomized[r]=this.randomized[o],this.randomized[o]=l}}return this.randomized.map((function(e){return n[e.index]}))}return this.randomized&&(this.randomized=void 0),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=this,t=(0,a.findFirst)(this.props.options,(function(t){return t.id===e.dropdownSlot.reference}));if(!t&&!this.node.placeholder){var n=(0,a.findFirst)(this.props.options,(function(e){return!!e.name}));return this.dropdownSlot.default(n&&(n.value||n.name),n&&n.id),n&&n.id||""}return t&&t.id||""},set:function(e){this.select((0,a.findFirst)(this.props.options,(function(t){return t.id===e})))},enumerable:!1,configurable:!0}),t.prototype.select=function(e){return this.dropdownSlot.set(e&&(e.value||e.name),e&&e.id,null==e?void 0:e.name),e&&e.id||""},t}(a.NodeBlock);t.Dropdown=l},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.Dropdown=void 0,o(566),o(502);var t=o(58);Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return t.Dropdown}})}(),e.exports=i}()},2298:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.EmailCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isMatch=function(){var e=this,t=this.valueOf();if(t){var n=a.Str.lowercase(t.string),r=a.Str.lowercase(function(){if((0,a.isVariable)(e.props.match)){var t=e.variableFor(e.props.match);return t&&t.hasValue?t.string:""}return e.parseVariables(e.props.match||"")}());switch(this.props.mode){case"domain":case"not-domain":return r&&n.substr(n.lastIndexOf("@")+1)===r==("domain"===this.props.mode)||!1;case"address":case"not-address":return n===r==("address"===this.props.mode)||!1;case"defined":return""!==n;case"undefined":return""===n}}return!1},i([a.condition],t.prototype,"isMatch",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-email"})],t)}(a.ConditionBlock);t.EmailCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Email=void 0;var a=n(226);n(407);var l=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,u=/^(([^<>()\[\]\\.,;:\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,}))$/,s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.emailSlot=(0,a.assert)(t.valueOf("email")),t.required=t.emailSlot.slot.required||!1,t}return o(t,e),t.prototype.validate=function(){return!this.emailSlot.string||("rfc822"===this.props.validation?l:u).test(this.emailSlot.value)},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.Email=s},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},3440:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Error=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.stopHere=function(){return!1},i([a.validator],t.prototype,"stopHere",null),t}(a.NodeBlock);t.Error=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},6281:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluateCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getMatchString=function(){var e=(0,a.castToString)(this.props.value);if((0,a.isVariable)(e)){var t=this.variableFor(e);return t&&t.hasValue?t.string:""}return this.parseVariables(e,"",!0)},t.prototype.getNumber=function(e,t){if((0,a.isString)(t)&&(e instanceof a.Slots.Number||e instanceof a.Slots.Numeric)){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.getDate=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Date){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value,e.supportsTime?"minutes":void 0):void 0}return e.toValue((0,a.isNumberFinite)(t)?t:a.DateTime.UTC,e.supportsTime?"minutes":void 0)},t.prototype.validate=function(){if(this.props.variable){var e=this.variableFor(this.props.variable);if(e)if(e.slot instanceof a.Slots.String||e.slot instanceof a.Slots.Text){var t=this.props.ignoreCase?a.Str.lowercase(this.getMatchString()):this.getMatchString(),n=this.props.ignoreCase?a.Str.lowercase(e.string):e.string;switch(this.props.mode){case"equal":return n===t;case"not-equal":return n!==t;case"contains":return t&&-1!==n.indexOf(t)||!1;case"not-contains":return t&&-1===n.indexOf(t)||!1;case"starts":return t&&0===n.indexOf(t)||!1;case"ends":return t&&n.length>=t.length&&n.lastIndexOf(t)===n.length-t.length||!1;case"defined":return""!==n;case"undefined":return""===n}}else if(e.slot instanceof a.Slots.Number||e.slot instanceof a.Slots.Numeric)switch(n=this.getNumber(e.slot,this.props.value),this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===n;case"not-equal":return(e.hasValue?e.value:void 0)!==n;case"below":return(0,a.isNumberFinite)(n)&&e.hasValue&&(0,a.castToNumber)(e.value)<n;case"above":return(0,a.isNumberFinite)(n)&&e.hasValue&&(0,a.castToNumber)(e.value)>n;case"between":case"not-between":var r=this.getNumber(e.slot,this.props.to);return(0,a.isNumberFinite)(n)&&(0,a.isNumberFinite)(r)&&(e.hasValue&&(0,a.castToNumber)(e.value)>=a.Num.min(n,r)&&(0,a.castToNumber)(e.value)<=a.Num.max(n,r))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}else if(e.slot instanceof a.Slots.Date){n=this.getDate(e.slot,this.props.value);var o=e.hasValue?e.slot.toValue(e.value,e.slot.supportsTime?"minutes":void 0):void 0;switch(this.props.mode){case"equal":return o===n;case"not-equal":return o!==n;case"before":return(0,a.isNumberFinite)(n)&&(0,a.isNumberFinite)(o)&&o<n;case"after":return(0,a.isNumberFinite)(n)&&(0,a.isNumberFinite)(o)&&o>n;case"between":case"not-between":return r=this.getDate(e.slot,this.props.to),(0,a.isNumberFinite)(n)&&(0,a.isNumberFinite)(r)&&((0,a.isNumberFinite)(o)&&o>=a.Num.min(n,r)&&o<=a.Num.max(n,r))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}else if(e.slot instanceof a.Slots.Boolean)switch(this.props.mode){case"true":return e.hasValue&&(0,a.castToBoolean)(e.value);case"false":return e.hasValue&&!(0,a.castToBoolean)(e.value);case"equal":case"not-equal":return(n=(0,a.isFilledString)(this.props.value)&&this.variableFor(this.props.value)||void 0)&&(e.hasValue?(0,a.castToBoolean)(e.value):void 0)===(n.hasValue?(0,a.castToBoolean)(n.value):void 0)||!1;case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"validate",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-evaluate"})],t)}(a.ConditionBlock);t.EvaluateCondition=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},8842:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isUploaded=function(){var e=this.valueOf();return!(!e||!e.value)===this.props.isUploaded},i([a.condition],t.prototype,"isUploaded",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-file-upload"})],t)}(a.ConditionBlock);t.FileUploadCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FileUpload=void 0;var i=n(226);n(407);var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fileSlot=(0,i.assert)(t.valueOf("file")),t.required=t.fileSlot.slot.required||!1,t}return o(t,e),Object.defineProperty(t.prototype,"isUploading",{get:function(){return this.fileSlot.isAwaiting},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isImage",{get:function(){return this.fileSlot.hasValue&&this.hasImageExtension(this.fileSlot.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"limit",{get:function(){return this.props.limit&&this.props.limit>0?this.props.limit:10},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowedExtensions",{get:function(){return(0,i.filter)(this.props.extensions&&i.Str.replace(this.props.extensions.toLowerCase()," ","").split(",")||[],(function(e){return e.length>=2&&"."===e.charAt(0)}))},enumerable:!1,configurable:!0}),t.prototype.getExtension=function(e){var t=e.lastIndexOf(".");return-1!==t&&t>0?e.substr(t).toLowerCase():""},t.prototype.hasImageExtension=function(e){return e&&[".jpg",".jpeg",".png",".gif",".webp"].indexOf(this.getExtension(e))>-1||!1},t.prototype.hasValidFileSize=function(e){if(this.props.limit){var t=1024*this.props.limit*1024;return e.size<=t}return!0},t.prototype.hasValidFileExtension=function(e){var t=this.getExtension(e.name),n=this.allowedExtensions;return!(n.length>0)||n.indexOf(t)>-1},t.prototype.convertToBase64=function(e,t,n){var r=new FileReader;n&&(r.onprogress=function(e){return n(e.loaded/e.total*100)}),r.onload=function(){t(r.result)},r.readAsDataURL(e)},t.prototype.upload=function(e,t,n){var r=this;return this.cache=void 0,this.fileSlot.clear(),new Promise((function(o,i){if(1!==e.length)return i("invalid-amount");var a=e[0];return r.hasValidFileExtension(a)?r.hasValidFileSize(a)?(r.fileSlot.await(),void(t?t.put(a,n).then((function(e){r.fileSlot.set(a.name,e),r.isImage?r.convertToBase64(a,(function(e){r.cache=e,o()})):o()})).catch((function(e){r.fileSlot.clear(),i(e)})):r.convertToBase64(a,(function(e){r.fileSlot.set(a.name,e),o()}),n))):i("invalid-size"):i("invalid-extension")}))},t.prototype.download=function(e){var t=this;return new Promise((function(n,r){t.cache?n(t.cache):t.fileSlot.reference?e?e.get(t.fileSlot.reference).then((function(e){return t.convertToBase64(e,(function(e){return n(e)}))})).catch((function(){t.fileSlot.clear(),r()})):n(t.fileSlot.reference):r()}))},t.prototype.delete=function(e){var t=this;return new Promise((function(n,r){t.fileSlot.reference&&e?(t.fileSlot.await(),e.delete(t.fileSlot.reference).then((function(){t.cache=void 0,t.fileSlot.clear(),n()})).catch((function(){t.fileSlot.cancelAwait(),r()}))):(t.cache=void 0,t.fileSlot.clear(),n())}))},t}(i.NodeBlock);t.FileUpload=a},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},1619:function(e,t,n){!function(){"use strict";var t={232: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenFieldDateCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Date){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value,"minutes"):void 0}return(0,a.isNumberFinite)(t)?e.toValue(t,"minutes"):void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value),n=e.hasValue?e.slot.toValue(e.value,"minutes"):void 0;switch(this.props.mode){case"equal":return n===t;case"not-equal":return n!==t;case"before":return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&n<t;case"after":return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&n>t;case"between":case"not-between":var r=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(r)&&((0,a.isNumberFinite)(n)&&n>=a.Num.min(t,r)&&n<=a.Num.max(t,r))===("between"===this.props.mode)}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-hidden-field",":date")})],t)}(a.ConditionBlock);t.HiddenFieldDateCondition=l},188: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenFieldNumberCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Number){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.compare=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode)}}return!1},i([a.condition],t.prototype,"compare",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-hidden-field",":number"),alias:"".concat("@tripetto/block-hidden-field","-number")})],t)}(a.ConditionBlock);t.HiddenFieldNumberCondition=l},159: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenFieldOrientationCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.compare=function(){var e=this.valueOf();return e&&e.value===this.props.orientation||!1},i([a.condition],t.prototype,"compare",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-hidden-field",":orientation"),alias:"".concat("@tripetto/block-hidden-field","-orientation")})],t)}(a.ConditionBlock);t.HiddenFieldOrientationCondition=l},339: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenFieldStringCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getMatchString=function(){if((0,a.isVariable)(this.props.value)){var e=this.variableFor(this.props.value);return e&&e.hasValue?e.string:""}return this.parseVariables(this.props.value||"","",!0)},t.prototype.isEqual=function(){var e=this,t=this.valueOf();if(t){var n=this.props.ignoreCase?a.Str.lowercase(this.getMatchString()):this.getMatchString(),r=this.props.ignoreCase?a.Str.lowercase(t.string):t.string;switch(this.props.mode){case"equals":return r===n;case"not-equals":return r!==n;case"contains":return n&&-1!==r.indexOf(n)||!1;case"not-contains":return n&&-1===r.indexOf(n)||!1;case"starts":return n&&0===r.indexOf(n)||!1;case"ends":return n&&r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length||!1;case"defined":return""!==r;case"undefined":return""===r;case"regex":try{var o=this.props.regex||"",i=o.indexOf("/"),l=o.lastIndexOf("/");return 0===i&&l>i&&function(t){try{return new RegExp(o.substring(1,l),o.substr(l+1)).test(t)===!e.props.invert}catch(e){return!1}}(t.string)}catch(e){return!1}}}return!1},i([a.condition],t.prototype,"isEqual",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-hidden-field",":string"),alias:"".concat("@tripetto/block-hidden-field","-string")})],t)}(a.ConditionBlock);t.HiddenFieldStringCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenField=void 0;var a=n(226);n(339),n(188),n(159),n(232);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fieldSlot=(0,a.assert)(t.valueOf("value")),t}return o(t,e),t.prototype.do=function(){if(!this.fieldSlot.hasValue||"value"===this.props.fieldType||0===this.props.fieldType.indexOf("custom-variable:"))switch(this.props.fieldType){case"value":var e=this.parseVariables(this.props.fieldValue||"","",!0);this.fieldSlot.hasValue&&!e||(this.fieldSlot.value=e);break;case"uuid":this.fieldSlot.value=a.SHA2.SHA2_256("10000000-1000-4000-8000-100000000000".replace(/1|0/g,(function(){return(0|16*Math.random()).toString(16)})));break;case"timestamp":this.fieldSlot.value=a.DateTime.UTC;break;case"variable":var t=void 0;if(this.props.fieldVariable)try{for(var n=window;!t&&n;)t=(0,a.getAny)(n,this.props.fieldVariable),n=n!==window.parent&&window.parent||void 0}catch(e){console.log("".concat("@tripetto/block-hidden-field",": Access to variable '").concat(this.props.fieldVariable,"' is prohibited!"))}"string"==typeof t?this.fieldSlot.value=t:this.fieldSlot.clear();break;case"language":this.fieldSlot.value=navigator.language||"";break;case"querystring":this.fieldSlot.value=(this.props.fieldQueryStringParameter?new URLSearchParams(document.location.search.substring(1)).get(this.props.fieldQueryStringParameter):document.location.search.substring(1))||"";break;case"cookie":if(this.props.fieldCookie){var r=document.cookie.match(RegExp("(?:^|;\\s*)".concat(this.props.fieldCookie.replace(/([.*+?\^${}()|\[\]\/\\])/g,"\\$1"),"=([^;]*)")));this.fieldSlot.value=r&&r[1]||""}else this.fieldSlot.value=document.cookie||"";break;case"localStorage":var o=this.props.fieldLocalStorage&&localStorage.getItem(this.props.fieldLocalStorage);this.fieldSlot.value="string"==typeof o?o:"";break;case"sessionStorage":var i=this.props.fieldSessionStorage&&sessionStorage.getItem(this.props.fieldSessionStorage);this.fieldSlot.value="string"==typeof i?i:"";break;case"user-agent":this.fieldSlot.value=navigator.userAgent||"";break;case"title":this.fieldSlot.value=document.title||"";break;case"url":try{this.fieldSlot.value=document.URL||window.parent.location.href||""}catch(e){this.fieldSlot.clear(),console.log("".concat("@tripetto/block-hidden-field",": Access to document URL is prohibited!"))}break;case"referrer":this.fieldSlot.value=document.referrer||"";break;case"screenOrientation":window.screen&&window.screen.orientation&&window.screen.orientation.type?this.fieldSlot.value="portrait-primary"===window.screen.orientation.type||"portrait-secondary"===window.screen.orientation.type?"portrait":"landscape":this.fieldSlot.value=window.screen&&window.screen.height>window.screen.width?"portrait":"landscape";break;case"screenWidth":this.fieldSlot.value=window.screen&&window.screen.width||0;break;case"screenHeight":this.fieldSlot.value=window.screen&&window.screen.height||0;break;case"devicePixelRatio":this.fieldSlot.value=window.devicePixelRatio||1;break;default:if(0===this.props.fieldType.indexOf("custom-variable:")){var l=void 0;try{for(n=window;!l&&n;)l=(0,a.getAny)(n,"TRIPETTO_CUSTOM_VARIABLES"),n=n!==window.parent&&window.parent||void 0}catch(e){l=void 0}(0,a.isObject)(l)?this.fieldSlot.value=(0,a.castToString)((0,a.getAny)(l,this.props.fieldType.replace("custom-variable:",""))):this.fieldSlot.clear()}}},i([(0,a.tripetto)({type:"headless",legacyBlock:!0,identifier:"@tripetto/block-hidden-field"})],t)}(a.HeadlessBlock);t.HiddenField=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},4984:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.MailerCondition=void 0;var a=n(226),l=n(961),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.willMail=function(){var e=this.valueOf("recipient");return this.props.willMail?e&&e.hasValue&&l.IS_EMAIL.test(e.string)||!1:!e||""===e.string},i([a.condition],t.prototype,"willMail",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-mailer"})],t)}(a.ConditionBlock);t.MailerCondition=u},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Mailer=void 0;var a=n(226),l=n(961);n(407);var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.recipientSlot=(0,a.assert)(t.valueOf("recipient")),t.subjectSlot=(0,a.assert)(t.valueOf("subject")),t.messageSlot=(0,a.assert)(t.valueOf("message")),t.senderSlot=t.valueOf("sender"),t.dataSlot=t.valueOf("data"),t}return o(t,e),t.prototype.do=function(){var e,t;if(this.recipientSlot.value=(this.props.recipient&&"fixed"!==this.props.recipient?null===(e=this.variableFor(this.props.recipient))||void 0===e?void 0:e.string:this.props.recipientFixed)||"",this.subjectSlot.value=this.parseVariables(this.node.name||"","-"),this.messageSlot.value=this.parseVariables(this.node.description||"","-",!0),this.senderSlot){var n=(this.props.sender&&"fixed"!==this.props.sender?null===(t=this.variableFor(this.props.sender))||void 0===t?void 0:t.string:this.props.senderFixed)||"";this.senderSlot.value=l.IS_EMAIL.test(n)&&n||""}this.dataSlot&&this.props.includeData&&(this.dataSlot.value=!0)},t.prototype.validate=function(){return!this.recipientSlot.string||l.IS_EMAIL.test(this.recipientSlot.string)},i([a.validator],t.prototype,"validate",null),i([(0,a.tripetto)({type:"headless",legacyBlock:!0,identifier:"@tripetto/block-mailer"})],t)}(a.HeadlessBlock);t.Mailer=u},961:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.IS_EMAIL=void 0,t.IS_EMAIL=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},7703:function(e,t,n){!function(){"use strict";var t={599: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isSelected=function(){var e=this.valueOf();return e&&e.reference===this.props.column||!1},i([a.condition],t.prototype,"isSelected",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-matrix"})],t)}(a.ConditionBlock);t.MatrixCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-matrix",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},206: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=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},i.apply(this,arguments)},a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Matrix=void 0;var l=n(226),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scoreSlot=t.valueOf("score","feature"),t.required=!(!t.props.required&&!(0,l.findFirst)(t.props.rows,(function(e){return t.isRowRequired(e)}))),t}return o(t,e),t.prototype.rowSlot=function(e){var t=this;return this.valueOf(e.id,"dynamic",{modifier:function(e){if(e.value){if(!e.reference){var n=(0,l.findFirst)(t.props.columns,(function(t){return t.value===e.value}))||(0,l.findFirst)(t.props.columns,(function(t){return t.id===e.value}))||(0,l.findFirst)(t.props.columns,(function(t){return t.label===e.value}))||(0,l.findFirst)(t.props.columns,(function(t){return t.label.toLowerCase()===e.value.toLowerCase()}));return{value:n&&(n.value||n.label),reference:n&&n.id,display:null==n?void 0:n.label}}if(!(0,l.findFirst)(t.props.columns,(function(t){return t.id===e.reference})))return{value:void 0,reference:void 0,display:void 0}}},onChange:function(){t.scoreSlot&&t.scoreSlot.set((0,l.reduce)(t.props.rows,(function(e,n){var r;return e+((null===(r=(0,l.findFirst)(t.props.columns,(function(e){var r;return e.id===(null===(r=t.valueOf(n.id))||void 0===r?void 0:r.reference)})))||void 0===r?void 0:r.score)||0)}),0))}})},t.prototype.isRowRequired=function(e){var t;return(null===(t=this.rowSlot(e))||void 0===t?void 0:t.slot.required)||!1},t.prototype.isColumnSelected=function(e,t){var n;return(null===(n=this.rowSlot(e))||void 0===n?void 0:n.reference)===t.id},t.prototype.getSelectedColumn=function(e){var t=this;return(0,l.findFirst)(this.props.columns,(function(n){return t.isColumnSelected(e,n)}))},t.prototype.selectColumn=function(e,t){var n;null===(n=this.rowSlot(e))||void 0===n||n.set(t&&(t.value||t.label),t&&t.id,null==t?void 0:t.label)},t.prototype.columns=function(e){var t,n=this;return(null===(t=this.props.columns)||void 0===t?void 0:t.map((function(t){return i(i({},t),{name:(0,l.markdownifyToString)(t.label,n.context,void 0,!1,l.MarkdownFeatures.Formatting|l.MarkdownFeatures.Hyperlinks),label:e.markdownifyToJSX(t.label,!1)})})))||[]},t.prototype.rows=function(e){var t,n=this;return(null===(t=this.props.rows)||void 0===t?void 0:t.map((function(t){var r=n.rowSlot(t),o=!(n.props.required||!r||!r.slot.required);return i(i({},t),{label:e.markdownifyToJSX(t.name,!1),explanation:t.explanation&&e.markdownifyToJSX(t.explanation,!0)||void 0,required:o,value:r,tabIndex:e.tabIndex})})))||[]},t.prototype.validate=function(){var e=this;return!(0,l.findFirst)(this.props.rows,(function(t){var n=e.rowSlot(t);return!(!e.props.required&&!(null==n?void 0:n.slot.required)||(null==n?void 0:n.reference))}))},a([l.validator],t.prototype,"validate",null),t}(l.NodeBlock);t.Matrix=u},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.Matrix=void 0,o(599),o(502);var t=o(206);Object.defineProperty(e,"Matrix",{enumerable:!0,get:function(){return t.Matrix}})}(),e.exports=i}()},4948:function(e,t,n){!function(){"use strict";var t={924: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.CounterCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Number){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode)}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-multi-select",":counter")})],t)}(a.ConditionBlock);t.CounterCondition=l},514: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.NoneCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.noneSelected=function(){var e=this,t=this.slots;return!t||!t.each((function(t){var n=e.valueOf(t);return n&&n.value||!1}))},i([a.condition],t.prototype,"noneSelected",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-multi-select",":none")})],t)}(a.ConditionBlock);t.NoneCondition=l},716: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isSelected=function(){var e=this.valueOf();return e&&e.value===this.props.selected||!1},i([a.condition],t.prototype,"isSelected",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-multi-select"})],t)}(a.ConditionBlock);t.OptionCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-multi-select",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},58: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelect=void 0;var a=n(226),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.counterSlot=t.valueOf("counter","meta"),t.concatenationSlot=t.valueOf("concatenation","feature"),t.scoreSlot=t.valueOf("score","feature"),t}return o(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this.props.required||!1},enumerable:!1,configurable:!0}),t.prototype.transform=function(){var e=this,t=(0,a.filter)((0,a.map)(this.props.options,(function(t){return{id:t.id,label:t.value||t.name||"",exclusive:t.exclusive,valueRef:e.valueOf(t.id)}})),(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).sort((function(e,t){var n,r;return((null===(n=t.valueRef)||void 0===n?void 0:n.time)||0)-((null===(r=e.valueRef)||void 0===r?void 0:r.time)||0)})),n=t.length&&t[0];if(n&&t.forEach((function(e){e.id!==n.id&&(n.exclusive||e.exclusive)&&(e.valueRef.value=!1)})),this.props.max){var r=this.props.max,o=0;t.forEach((function(e){var t;!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)&&++o>r&&(e.valueRef.value=!1)}))}if(this.counterSlot){var i=(0,a.filter)(t,(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).length;this.counterSlot.set(i)}if(this.concatenationSlot){var l=[],u="",s=0;if((0,a.each)(this.props.options,(function(t){var n,r=t.value||t.name||"";if(r&&!0===(null===(n=e.valueOf(t.id))||void 0===n?void 0:n.value))switch(e.props.formatSeparator){case"space":u+=(""===u?"":" ")+r;break;case"list":u+=(""===u?"":"\n")+r;break;case"bullets":u+=(""===u?"":"\n")+"- "+r;break;case"numbers":u+=(""===u?"":"\n")+"".concat(++s,". ").concat(r);break;case"conjunction":case"disjunction":l.push(r);break;case"custom":u+=(""===u?"":e.props.formatSeparatorCustom||"")+r;break;default:u+=(""===u?"":", ")+r}})),"conjunction"===this.props.formatSeparator||"disjunction"===this.props.formatSeparator)try{var c=new Intl.ListFormat(this.context.l10n.current||"en",{type:this.props.formatSeparator});u=c.format(l)}catch(e){u=a.Str.iterateToString(l,", ")}this.concatenationSlot.set(u)}},t.prototype.score=function(e){var t=this;this.scoreSlot&&(0,a.isNumberFinite)(e.score)&&this.scoreSlot.set((0,a.reduce)(this.props.options,(function(e,n){var r;return e+(!0===(null===(r=t.valueOf(n.id))||void 0===r?void 0:r.value)&&n.score||0)}),0))},t.prototype.optionSlot=function(e){var t=this;return this.valueOf(e.id,"dynamic",{confirm:"shallow",onChange:function(){t.transform(),t.score(e)},onContext:function(n,r){var o;t.scoreSlot&&(null===(o=r.contextualValueOf(t.scoreSlot))||void 0===o||o.set(!0===n.value?e.score||0:void 0))}})},t.prototype.isSelected=function(e){var t=this.optionSlot(e);return!0===(null==t?void 0:t.value)||!1},t.prototype.select=function(e,t){var n=this.optionSlot(e);return!!n&&(n.value=t,n.value)},t.prototype.toggle=function(e){var t=this.optionSlot(e);t&&(t.value=!t.value)},t.prototype.options=function(e){var t,n=this,r=0,o=this,i=(null===(t=this.props.options)||void 0===t?void 0:t.map((function(t){var i=n.optionSlot(t);return n.props.max&&!0===(null==i?void 0:i.value)&&r++,{id:t.id,name:e.markdownifyToString(t.name),label:e.markdownifyToJSX(t.name,!1),description:t.description&&e.markdownifyToJSX(t.description,!0)||void 0,value:i,score:t.score,exclusive:t.exclusive,get disabled(){return o.props.max&&r>=o.props.max&&!0!==(null==i?void 0:i.value)||!1}}})))||[];if(this.props.randomize&&i.length>1){if(!this.randomized||this.randomized.length!==i.length||(0,a.findFirst)(this.randomized,(function(e){var t;return(null===(t=i[e.index])||void 0===t?void 0:t.id)!==e.id}))){this.randomized=i.map((function(e,t){return{index:t,id:e.id}}));for(var l=this.randomized.length;--l;){var u=Math.floor(Math.random()*l),s=this.randomized[l];this.randomized[l]=this.randomized[u],this.randomized[u]=s}}return this.randomized.map((function(e){return i[e.index]}))}return this.randomized&&(this.randomized=void 0),i},t.prototype.validate=function(){var e=this;if(this.props.min||this.props.max){var t=(0,a.filter)(this.props.options,(function(t){var n;return!0===(null===(n=e.optionSlot(t))||void 0===n?void 0:n.value)})).length;if(this.props.min&&t<this.props.min||this.props.max&&t>this.props.max)return!1}return!this.props.required||!!(0,a.findFirst)(this.props.options,(function(t){var n;return!0===(null===(n=e.valueOf(t.id))||void 0===n?void 0:n.value)}))},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.MultiSelect=l},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.MultiSelect=void 0,o(716),o(514),o(924),o(502);var t=o(58);Object.defineProperty(e,"MultiSelect",{enumerable:!0,get:function(){return t.MultiSelect}})}(),e.exports=i}()},7426:function(e,t,n){!function(){"use strict";var t={974: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoiceCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isChosen=function(){var e=this.valueOf(this.props.choice)||this.valueOf("choice");return!!e&&((0,a.isBoolean)(e.value)?e.value:e.reference===this.props.choice)},i([a.condition],t.prototype,"isChosen",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-multiple-choice",alias:"multiple-choice"})],t)}(a.ConditionBlock);t.MultipleChoiceCondition=l},924: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.CounterCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Number){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode)}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-multiple-choice",":counter")})],t)}(a.ConditionBlock);t.CounterCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-multiple-choice",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},955: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoiceUndefinedCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isUndefined=function(){var e=this,t=this.valueOf("choice");if(t)return!t.value;var n=this.slots;return!n||!n.each((function(t){var n=e.valueOf(t);return n&&n.value||!1}))},i([a.condition],t.prototype,"isUndefined",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-multiple-choice",":undefined")})],t)}(a.ConditionBlock);t.MultipleChoiceUndefinedCondition=l},724: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoice=void 0;var a=n(226);n(974);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.counterSlot=t.valueOf("counter"),t.concatenationSlot=t.valueOf("concatenation","feature"),t.scoreSlot=t.valueOf("score","feature"),t.singleChoiceSlot=t.valueOf("choice","static",{modifier:function(e){if(e.value){if(!e.reference){var n=(0,a.findFirst)(t.props.choices,(function(t){return t.value===e.value}))||(0,a.findFirst)(t.props.choices,(function(t){return t.id===e.value}))||(0,a.findFirst)(t.props.choices,(function(t){return t.name===e.value}))||(0,a.findFirst)(t.props.choices,(function(t){return t.name.toLowerCase()===e.value.toLowerCase()}));return{value:n&&(n.value||n.name),reference:n&&n.id,display:null==n?void 0:n.name}}if(!(0,a.findFirst)(t.props.choices,(function(t){return t.id===e.reference})))return{value:void 0,reference:void 0,display:void 0}}},onChange:function(e){if(t.scoreSlot){var n=(0,a.findFirst)(t.props.choices,(function(t){return t.id===e.reference}));t.scoreSlot.set(n&&((null==n?void 0:n.score)||0))}}}),t}return o(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this.props.required||!1},enumerable:!1,configurable:!0}),t.prototype.transform=function(){var e=this;if(this.props.multiple){var t=(0,a.filter)((0,a.map)(this.props.choices,(function(t){return{id:t.id,exclusive:t.exclusive,valueRef:e.choiceSlot(t)}})),(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).sort((function(e,t){var n,r;return((null===(n=t.valueRef)||void 0===n?void 0:n.time)||0)-((null===(r=e.valueRef)||void 0===r?void 0:r.time)||0)})),n=t.length&&t[0];if(n&&t.forEach((function(e){e.id!==n.id&&(n.exclusive||e.exclusive)&&(e.valueRef.value=!1)})),this.props.max){var r=this.props.max,o=0;t.forEach((function(e){var t;!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)&&++o>r&&(e.valueRef.value=!1)}))}if(this.counterSlot){var i=(0,a.filter)(t,(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).length;this.counterSlot.set(i)}if(this.concatenationSlot){var l=[],u="",s=0;if((0,a.each)(this.props.choices,(function(t){var n,r=t.value||t.name||"";if(r&&!0===(null===(n=e.valueOf(t.id))||void 0===n?void 0:n.value))switch(e.props.formatSeparator){case"space":u+=(""===u?"":" ")+r;break;case"list":u+=(""===u?"":"\n")+r;break;case"bullets":u+=(""===u?"":"\n")+"- "+r;break;case"numbers":u+=(""===u?"":"\n")+"".concat(++s,". ").concat(r);break;case"conjunction":case"disjunction":l.push(r);break;case"custom":u+=(""===u?"":e.props.formatSeparatorCustom||"")+r;break;default:u+=(""===u?"":", ")+r}})),"conjunction"===this.props.formatSeparator||"disjunction"===this.props.formatSeparator)try{var c=new Intl.ListFormat(this.context.l10n.current||"en",{type:this.props.formatSeparator});u=c.format(l)}catch(e){u=a.Str.iterateToString(l,", ")}this.concatenationSlot.set(u)}}},t.prototype.score=function(e){var t=this;this.scoreSlot&&(0,a.isNumberFinite)(e.score)&&this.scoreSlot.set((0,a.reduce)(this.props.choices,(function(e,n){var r;return e+(!0===(null===(r=t.valueOf(n.id))||void 0===r?void 0:r.value)&&n.score||0)}),0))},t.prototype.choiceSlot=function(e){var t=this;return this.props.multiple&&this.valueOf(e.id,"dynamic",{confirm:!0,onChange:function(){t.transform(),t.score(e)},onContext:function(n,r){var o;t.scoreSlot&&(null===(o=r.contextualValueOf(t.scoreSlot))||void 0===o||o.set(!0===n.value?e.score||0:void 0))}})||void 0},t.prototype.choices=function(e){var t,n=this,r=0,o=this,i=(null===(t=this.props.choices)||void 0===t?void 0:t.map((function(t){var i=n.choiceSlot(t),l=n.context;return n.props.multiple&&n.props.max&&!0===(null==i?void 0:i.value)&&r++,{id:t.id,get name(){return(0,a.markdownifyToString)(t.name,l,void 0,!1,a.MarkdownFeatures.Formatting|a.MarkdownFeatures.Hyperlinks)},get label(){return e.markdownifyToJSX(t.name,!1)},get description(){return t.description&&e.markdownifyToJSX(t.description,!0)||void 0},get descriptionString(){return t.description&&(0,a.markdownifyToString)(t.description,l,void 0,!0,a.MarkdownFeatures.Formatting|a.MarkdownFeatures.Hyperlinks)||void 0},url:t.url&&(0,a.markdownifyToURL)(t.url,n.context)||void 0,target:t.target,value:t.value,score:t.score,exclusive:t.exclusive,color:t.color,slot:i,tabIndex:e.tabIndex,get disabled(){return o.props.max&&r>=o.props.max&&!0!==(null==i?void 0:i.value)||!1}}})))||[];if(this.props.randomize&&i.length>1){if(!this.randomized||this.randomized.length!==i.length||(0,a.findFirst)(this.randomized,(function(e){var t;return(null===(t=i[e.index])||void 0===t?void 0:t.id)!==e.id}))){this.randomized=i.map((function(e,t){return{index:t,id:e.id}}));for(var l=this.randomized.length;--l;){var u=Math.floor(Math.random()*l),s=this.randomized[l];this.randomized[l]=this.randomized[u],this.randomized[u]=s}}return this.randomized.map((function(e){return i[e.index]}))}return this.randomized&&(this.randomized=void 0),i},t.prototype.validate=function(){var e,t=this;if(this.props.multiple&&(this.props.min||this.props.max)){var n=(0,a.filter)(this.props.choices,(function(e){var n;return!0===(null===(n=t.choiceSlot(e))||void 0===n?void 0:n.value)})).length;if(this.props.min&&n<this.props.min||this.props.max&&n>this.props.max)return!1}return!this.props.required||(this.props.multiple?!!(0,a.findFirst)(this.props.choices,(function(e){var n;return!0===(null===(n=t.choiceSlot(e))||void 0===n?void 0:n.value)})):(null===(e=this.singleChoiceSlot)||void 0===e?void 0:e.hasValue)||!1)},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.MultipleChoice=l},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.MultipleChoice=void 0,o(974),o(955),o(924),o(502);var t=o(724);Object.defineProperty(e,"MultipleChoice",{enumerable:!0,get:function(){return t.MultipleChoice}})}(),e.exports=i}()},4171:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-number"})],t)}(a.ConditionBlock);t.NumberCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Number=void 0;var i=n(226);n(407),n(873);var a=n(39);n(982);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.calculatorSlot=t.valueOf("calculator","feature"),t.numberSlot=(0,i.assert)(t.valueOf("number","static",{prefill:(0,i.isNumberFinite)(t.props.prefill)&&{value:t.props.prefill}||void 0,onChange:function(e){t.calculatorSlot&&e.slot instanceof i.Slots.Numeric&&(0,a.calculator)(t.context,t.props.operations||[],e,t.calculatorSlot,(function(e){return t.variableFor(e)}),(function(e){return t.parseVariables(e)}))}})),t.required=t.numberSlot.slot.required||!1,t}return o(t,e),t}(i.NodeBlock);t.Number=l},873:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),(0,n(226).mountNamespace)("@tripetto/block-number")},982:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),(0,n(226).unmountNamespace)()},39:function(e){e.exports=n(6780)},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},3824:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Paragraph=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(226).NodeBlock);t.Paragraph=i},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},6955:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordCondition=void 0;var a=n(226),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return o(t,e),t.prototype.isPassword=function(){var e=this.valueOf();return!!(this.props.passphrase&&e&&e.value)&&((0,a.isBoolean)(this.cache[e.value])?this.cache[e.value]:this.cache[e.value]=a.AES.decrypt(this.props.passphrase,e.value+this.condition.id,256,atob)===this.condition.id)===!this.props.invert},i([a.condition],t.prototype,"isPassword",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-password"})],t)}(a.ConditionBlock);t.PasswordCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Password=void 0;var i=n(226);n(407);var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.passwordSlot=(0,i.assert)(t.valueOf("password")),t.required=t.passwordSlot.slot.required||!1,t}return o(t,e),t}(i.NodeBlock);t.Password=a},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},7558:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneNumberCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.verify=function(){var e=this.valueOf();if(e)switch(this.props.mode){case"defined":return""!==e.string;case"undefined":return""===e.string}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-phone-number"})],t)}(a.ConditionBlock);t.PhoneNumberCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneNumber=void 0;var a=n(226);n(407);var l=/^(?:(?:\(?(?:00|\+)([1-4]\d\d|[1-9]\d?)\)?)?[\-\.\ \\\/]?)?((?:\(?\d{1,}\)?[\-\.\ \\\/]?){0,})(?:[\-\.\ \\\/]?(?:#|ext\.?|extension|x)[\-\.\ \\\/]?(\d+))?$/i,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.phoneNumberSlot=(0,a.assert)(t.valueOf("phone-number")),t.required=t.phoneNumberSlot.slot.required||!1,t}return o(t,e),t.prototype.validate=function(){return!this.phoneNumberSlot.string||l.test(this.phoneNumberSlot.value)},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.PhoneNumber=u},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},1178:function(e,t,n){!function(){"use strict";var t={974: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.PictureChoiceCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isChosen=function(){var e=this.valueOf(this.props.choice)||this.valueOf("choice");return!!e&&((0,a.isBoolean)(e.value)?e.value:e.reference===this.props.choice)},i([a.condition],t.prototype,"isChosen",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-picture-choice",alias:"picture-choice"})],t)}(a.ConditionBlock);t.PictureChoiceCondition=l},924: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.CounterCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Number){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode)}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-picture-choice",":counter")})],t)}(a.ConditionBlock);t.CounterCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-picture-choice",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},955: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.PictureChoiceUndefinedCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isUndefined=function(){var e=this,t=this.valueOf("choice");if(t)return!t.value;var n=this.slots;return!n||!n.each((function(t){var n=e.valueOf(t);return n&&n.value||!1}))},i([a.condition],t.prototype,"isUndefined",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-picture-choice",":undefined")})],t)}(a.ConditionBlock);t.PictureChoiceUndefinedCondition=l},315: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.PictureChoice=void 0;var a=n(226);n(974);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.counterSlot=t.valueOf("counter"),t.concatenationSlot=t.valueOf("concatenation","feature"),t.scoreSlot=t.valueOf("score","feature"),t.singleChoiceSlot=t.valueOf("choice","static",{modifier:function(e){if(e.value){if(!e.reference){var n=(0,a.findFirst)(t.props.choices,(function(t){return t.value===e.value}))||(0,a.findFirst)(t.props.choices,(function(t){return t.id===e.value}))||(0,a.findFirst)(t.props.choices,(function(t){return t.name===e.value}))||(0,a.findFirst)(t.props.choices,(function(t){return t.name.toLowerCase()===e.value.toLowerCase()}));return{value:n&&(n.value||n.name),reference:n&&n.id,display:null==n?void 0:n.name}}if(!(0,a.findFirst)(t.props.choices,(function(t){return t.id===e.reference})))return{value:void 0,reference:void 0,display:void 0}}},onChange:function(e){if(t.scoreSlot){var n=(0,a.findFirst)(t.props.choices,(function(t){return t.id===e.reference}));t.scoreSlot.set(n&&((null==n?void 0:n.score)||0))}}}),t}return o(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this.props.required||!1},enumerable:!1,configurable:!0}),t.prototype.transform=function(){var e=this;if(this.props.multiple){var t=(0,a.filter)((0,a.map)(this.props.choices,(function(t){return{id:t.id,exclusive:t.exclusive,valueRef:e.choiceSlot(t)}})),(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).sort((function(e,t){var n,r;return((null===(n=t.valueRef)||void 0===n?void 0:n.time)||0)-((null===(r=e.valueRef)||void 0===r?void 0:r.time)||0)})),n=t.length&&t[0];if(n&&t.forEach((function(e){e.id!==n.id&&(n.exclusive||e.exclusive)&&(e.valueRef.value=!1)})),this.props.max){var r=this.props.max,o=0;t.forEach((function(e){var t;!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)&&++o>r&&(e.valueRef.value=!1)}))}if(this.counterSlot){var i=(0,a.filter)(t,(function(e){var t;return!0===(null===(t=e.valueRef)||void 0===t?void 0:t.value)})).length;this.counterSlot.set(i)}if(this.concatenationSlot){var l=[],u="",s=0;if((0,a.each)(this.props.choices,(function(t){var n,r=t.value||t.name||"";if(r&&!0===(null===(n=e.valueOf(t.id))||void 0===n?void 0:n.value))switch(e.props.formatSeparator){case"space":u+=(""===u?"":" ")+r;break;case"list":u+=(""===u?"":"\n")+r;break;case"bullets":u+=(""===u?"":"\n")+"- "+r;break;case"numbers":u+=(""===u?"":"\n")+"".concat(++s,". ").concat(r);break;case"conjunction":case"disjunction":l.push(r);break;case"custom":u+=(""===u?"":e.props.formatSeparatorCustom||"")+r;break;default:u+=(""===u?"":", ")+r}})),"conjunction"===this.props.formatSeparator||"disjunction"===this.props.formatSeparator)try{var c=new Intl.ListFormat(this.context.l10n.current||"en",{type:this.props.formatSeparator});u=c.format(l)}catch(e){u=a.Str.iterateToString(l,", ")}this.concatenationSlot.set(u)}}},t.prototype.score=function(e){var t=this;this.scoreSlot&&(0,a.isNumberFinite)(e.score)&&this.scoreSlot.set((0,a.reduce)(this.props.choices,(function(e,n){var r;return e+(!0===(null===(r=t.valueOf(n.id))||void 0===r?void 0:r.value)&&n.score||0)}),0))},t.prototype.choiceSlot=function(e){var t=this;return this.props.multiple&&this.valueOf(e.id,"dynamic",{confirm:!0,onChange:function(){t.transform(),t.score(e)},onContext:function(n,r){var o;t.scoreSlot&&(null===(o=r.contextualValueOf(t.scoreSlot))||void 0===o||o.set(!0===n.value?e.score||0:void 0))}})||void 0},t.prototype.choices=function(e){var t,n=this,r=0,o=this,i=(null===(t=this.props.choices)||void 0===t?void 0:t.map((function(t){var i=n.choiceSlot(t);return n.props.multiple&&n.props.max&&!0===(null==i?void 0:i.value)&&r++,{id:t.id,name:(0,a.markdownifyToString)(t.name,n.context,void 0,!1,a.MarkdownFeatures.Formatting|a.MarkdownFeatures.Hyperlinks),nameVisible:t.nameVisible,label:e.markdownifyToJSX(t.name,!1),description:t.description&&e.markdownifyToJSX(t.description,!0)||void 0,image:t.image&&(0,a.markdownifyToURL)(t.image,n.context,void 0,["image/jpeg","image/png","image/svg","image/gif"])||void 0,emoji:t.emoji,url:t.url&&(0,a.markdownifyToURL)(t.url,n.context)||void 0,target:t.target,value:t.value,score:t.score,exclusive:t.exclusive,color:t.color,slot:i,tabIndex:e.tabIndex,get disabled(){return o.props.max&&r>=o.props.max&&!0!==(null==i?void 0:i.value)||!1}}})))||[];if(this.props.randomize&&i.length>1){if(!this.randomized||this.randomized.length!==i.length||(0,a.findFirst)(this.randomized,(function(e){var t;return(null===(t=i[e.index])||void 0===t?void 0:t.id)!==e.id}))){this.randomized=i.map((function(e,t){return{index:t,id:e.id}}));for(var l=this.randomized.length;--l;){var u=Math.floor(Math.random()*l),s=this.randomized[l];this.randomized[l]=this.randomized[u],this.randomized[u]=s}}return this.randomized.map((function(e){return i[e.index]}))}return this.randomized&&(this.randomized=void 0),i},t.prototype.validate=function(){var e,t=this;if(this.props.multiple&&(this.props.min||this.props.max)){var n=(0,a.filter)(this.props.choices,(function(e){var n;return!0===(null===(n=t.choiceSlot(e))||void 0===n?void 0:n.value)})).length;if(this.props.min&&n<this.props.min||this.props.max&&n>this.props.max)return!1}return!this.props.required||(this.props.multiple?!!(0,a.findFirst)(this.props.choices,(function(e){var n;return!0===(null===(n=t.choiceSlot(e))||void 0===n?void 0:n.value)})):(null===(e=this.singleChoiceSlot)||void 0===e?void 0:e.hasValue)||!1)},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.PictureChoice=l},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.PictureChoice=void 0,o(974),o(955),o(924),o(502);var t=o(315);Object.defineProperty(e,"PictureChoice",{enumerable:!0,get:function(){return t.PictureChoice}})}(),e.exports=i}()},8376:function(e,t,n){!function(){"use strict";var t={654: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.RadiobuttonCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isSelected=function(){var e=this.valueOf();return e&&e.reference===this.props.button||!1},i([a.condition],t.prototype,"isSelected",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-radiobuttons"})],t)}(a.ConditionBlock);t.RadiobuttonCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-radiobuttons",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},272: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Radiobuttons=void 0;var a=n(226),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scoreSlot=t.valueOf("score","feature"),t.radioSlot=(0,a.assert)(t.valueOf("button","static",{modifier:function(e){if(e.value){if(!e.reference){var n=(0,a.findFirst)(t.props.buttons,(function(t){return t.value===e.value}))||(0,a.findFirst)(t.props.buttons,(function(t){return t.id===e.value}))||(0,a.findFirst)(t.props.buttons,(function(t){return t.name===e.value}))||(0,a.findFirst)(t.props.buttons,(function(t){return t.name.toLowerCase()===e.value.toLowerCase()}));return{value:n&&(n.value||n.name),reference:n&&n.id,display:null==n?void 0:n.name}}if(!(0,a.findFirst)(t.props.buttons,(function(t){return t.id===e.reference})))return{value:void 0,reference:void 0,display:void 0}}},onChange:function(e){if(t.scoreSlot){var n=(0,a.findFirst)(t.props.buttons,(function(t){return t.id===e.reference}));t.scoreSlot.set(n&&((null==n?void 0:n.score)||0))}}})),t.required=t.radioSlot.slot.required||!1,t}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){var e=this,t=(0,a.findFirst)(this.props.buttons,(function(t){return t.id===e.radioSlot.reference}));return!t&&this.required&&this.props.buttons&&this.props.buttons.length>0?this.select(this.props.buttons[0]):t&&t.id||""},set:function(e){var t=(0,a.findFirst)(this.props.buttons,(function(t){return t.id===e}));t&&this.select(t)},enumerable:!1,configurable:!0}),t.prototype.buttons=function(e){var t,n=this,r=(null===(t=this.props.buttons)||void 0===t?void 0:t.map((function(t){return i(i({},t),{name:(0,a.markdownifyToString)(t.name,n.context,void 0,!1,a.MarkdownFeatures.Formatting|a.MarkdownFeatures.Hyperlinks),label:e.markdownifyToJSX(t.name,!1),description:t.description&&e.markdownifyToJSX(t.description,!0)||void 0})})))||[];if(this.props.randomize&&r.length>1){if(!this.randomized||this.randomized.length!==r.length||(0,a.findFirst)(this.randomized,(function(e){var t;return(null===(t=r[e.index])||void 0===t?void 0:t.id)!==e.id}))){this.randomized=r.map((function(e,t){return{index:t,id:e.id}}));for(var o=this.randomized.length;--o;){var l=Math.floor(Math.random()*o),u=this.randomized[o];this.randomized[o]=this.randomized[l],this.randomized[l]=u}}return this.randomized.map((function(e){return r[e.index]}))}return this.randomized&&(this.randomized=void 0),r},t.prototype.isSelected=function(e){return this.value===e.id},t.prototype.select=function(e){return this.radioSlot.set(e.value||e.name,e.id,e.name),e.id},t}(a.NodeBlock);t.Radiobuttons=l},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.Radiobuttons=void 0,o(654),o(502);var t=o(272);Object.defineProperty(e,"Radiobuttons",{enumerable:!0,get:function(){return t.Radiobuttons}})}(),e.exports=i}()},6488:function(e,t,n){!function(){"use strict";var t={2: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.PositionCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isSelected=function(){var e=this.valueOf();return e&&e.reference===this.props.option||!1},i([a.condition],t.prototype,"isSelected",null),i([(0,a.tripetto)({type:"condition",identifier:"@tripetto/block-ranking"})],t)}(a.ConditionBlock);t.PositionCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",identifier:"".concat("@tripetto/block-ranking",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},354: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Ranking=void 0;var i=n(226),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.concatenationSlot=t.valueOf("concatenation","feature"),t.scoreSlot=t.valueOf("score","feature"),t}return o(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this.props.required||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slots",{get:function(){for(var e=this,t=[],n=function(t){return e.valueOf("position:".concat(t),"dynamic",{confirm:!0,onChange:function(n){e.transform(),e.score(t,n.reference)}})},r=1,o=n(r);o;)t.push(o),o=n(++r);return t},enumerable:!1,configurable:!0}),t.prototype.transform=function(){var e=this;if(this.concatenationSlot){var t=[],n="",r=0;if((0,i.each)(this.slots,(function(o){var i=o.value||"";if(i)switch(e.props.formatSeparator){case"space":n+=(""===n?"":" ")+i;break;case"list":n+=(""===n?"":"\n")+i;break;case"bullets":n+=(""===n?"":"\n")+"- "+i;break;case"numbers":n+=(""===n?"":"\n")+"".concat(++r,". ").concat(i);break;case"conjunction":case"disjunction":t.push(i);break;case"custom":n+=(""===n?"":e.props.formatSeparatorCustom||"")+i;break;default:n+=(""===n?"":", ")+i}})),"conjunction"===this.props.formatSeparator||"disjunction"===this.props.formatSeparator)try{var o=new Intl.ListFormat(this.context.l10n.current||"en",{type:this.props.formatSeparator});n=o.format(t)}catch(e){n=i.Str.iterateToString(t,", ")}this.concatenationSlot.set(n)}},t.prototype.score=function(e,t){var n,r=this,o=this.valueOf("score:".concat(e),"feature",{onChange:function(){var e=void 0;if(r.scoreSlot){for(var t=1,n=r.valueOf("score:".concat(t),"feature");n;)n.hasValue&&(e=(e||0)+n.value),t++,n=r.valueOf("score:".concat(t),"feature");r.scoreSlot.set(e)}}});o&&o.set(t?(null===(n=(0,i.findFirst)(this.props.options,(function(e){return e.id===t})))||void 0===n?void 0:n.score)||0:void 0)},t.prototype.options=function(e){var t,n=this,r=(null===(t=this.props.options)||void 0===t?void 0:t.map((function(t){return{id:t.id,name:(0,i.markdownifyToString)(t.name,n.context,void 0,!1,i.MarkdownFeatures.Formatting|i.MarkdownFeatures.Hyperlinks),label:e.markdownifyToJSX(t.name,!1),description:t.description&&e.markdownifyToJSX(t.description,!0)||void 0,value:t.value,score:t.score}})))||[];if(this.props.randomize&&r.length>1){if(!this.randomized||this.randomized.length!==r.length||(0,i.findFirst)(this.randomized,(function(e){var t;return(null===(t=r[e.index])||void 0===t?void 0:t.id)!==e.id}))){this.randomized=r.map((function(e,t){return{index:t,id:e.id}}));for(var o=this.randomized.length;--o;){var a=Math.floor(Math.random()*o),l=this.randomized[o];this.randomized[o]=this.randomized[a],this.randomized[a]=l}}return this.randomized.map((function(e){return r[e.index]}))}return this.randomized&&(this.randomized=void 0),r},t}(i.NodeBlock);t.Ranking=a},226:function(e){e.exports=n(9849)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}var i={};!function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.Ranking=void 0,o(2),o(502);var t=o(354);Object.defineProperty(e,"Ranking",{enumerable:!0,get:function(){return t.Ranking}})}(),e.exports=i}()},4035:function(e,t,n){!function(){"use strict";var t={169: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.RatingCompareCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Number){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.compare=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"compare",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-rating",":compare")})],t)}(a.ConditionBlock);t.RatingCompareCondition=l},874: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.RatingMatchCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.stars=function(){var e=this.valueOf("rating");return e&&e.value===this.props.stars||!1},i([a.condition],t.prototype,"stars",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-rating",alias:"rating"})],t)}(a.ConditionBlock);t.RatingMatchCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Rating=void 0;var i=n(226);n(169),n(874);var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ratingSlot=(0,i.assert)(t.valueOf("rating")),t.required=t.ratingSlot.slot.required||!1,t.steps=t.props.steps||5,t.shape=t.props.shape||"stars",t}return o(t,e),t}(i.NodeBlock);t.Rating=a},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},4691:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.RegExCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.validate=function(){var e=this;if(this.props.variable){var t=this.variableFor(this.props.variable);if(t)try{var n=this.props.regex||"",r=n.indexOf("/"),o=n.lastIndexOf("/");return 0===r&&o>r&&function(t){try{return new RegExp(n.substring(1,o),n.substr(o+1)).test(t)===!e.props.invert}catch(e){return!1}}(t.string)}catch(e){return!1}}return!1},i([a.condition],t.prototype,"validate",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-regex"})],t)}(a.ConditionBlock);t.RegExCondition=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},672:function(e,t,n){!function(){"use strict";var t={169: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleCompareCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Number){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.compare=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"compare",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-scale",":compare")})],t)}(a.ConditionBlock);t.ScaleCompareCondition=l},874: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleMatchCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.match=function(){var e=this.valueOf();return e&&this.props.option===e.reference||!1},i([a.condition],t.prototype,"match",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-scale",":match")})],t)}(a.ConditionBlock);t.ScaleMatchCondition=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-scale",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},856:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}: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(t,"__esModule",{value:!0}),t.Scale=void 0,n(169),n(874),n(502);var i=n(153);Object.defineProperty(t,"Scale",{enumerable:!0,get:function(){return i.Scale}}),o(n(316),t)},316:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},868:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_DEFAULT=t.MAX=t.MIN_DEFAULT=t.MIN=void 0,t.MIN=-25,t.MIN_DEFAULT=0,t.MAX=25,t.MAX_DEFAULT=10},153: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=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},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Scale=void 0;var a=n(226),l=n(868),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scoreSlot=t.valueOf("score","feature"),t.scaleSlot=(0,a.assert)(t.valueOf("scale","static",{modifier:function(e){if("options"===t.props.mode&&e.value){if(!e.reference){var n=(0,a.findFirst)(t.props.options,(function(t){return t.value===e.value}))||(0,a.findFirst)(t.props.options,(function(t){return t.id===e.value}))||(0,a.findFirst)(t.props.options,(function(t){return t.name===e.value}))||(0,a.findFirst)(t.props.options,(function(t){return t.name.toLowerCase()===e.string.toLowerCase()}));return{value:n&&(n.value||n.name),reference:n&&n.id}}if(!(0,a.findFirst)(t.props.options,(function(t){return t.id===e.reference})))return{value:void 0,reference:void 0}}},onChange:function(e){if(t.scoreSlot){var n=(0,a.findFirst)(t.props.options,(function(t){return t.id===e.reference}));t.scoreSlot.set(n&&((null==n?void 0:n.score)||0))}}})),t.required=t.scaleSlot.slot.required||!1,t}return o(t,e),Object.defineProperty(t.prototype,"from",{get:function(){return a.Num.range(a.Num.min((0,a.castToNumber)(this.props.from,l.MIN_DEFAULT),(0,a.castToNumber)(this.props.to,l.MAX_DEFAULT)),l.MIN,l.MAX)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"to",{get:function(){return a.Num.range(a.Num.max((0,a.castToNumber)(this.props.from,l.MIN_DEFAULT),(0,a.castToNumber)(this.props.to,l.MAX_DEFAULT)),l.MIN,l.MAX)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stepSize",{get:function(){return a.Num.max((0,a.castToNumber)(this.props.stepSize,l.MIN_DEFAULT),1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){var e,t=this;return"options"===this.props.mode?(null===(e=this.props.options)||void 0===e?void 0:e.map((function(e){return i(i({},e),{name:(0,a.markdownifyToString)(e.name,t.context)})})))||[]:{from:this.from,to:this.to,stepSize:this.stepSize}},enumerable:!1,configurable:!0}),t}(a.NodeBlock);t.Scale=u},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},5301:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Setter=void 0;var a=n(226);n(873);var l=n(39);n(982);var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.querystring=function(e,t){var n=new URLSearchParams(document.location.search.substring(1)).get(e);return(0,a.isString)(n)?n:t},t.prototype.do=function(){var e=this;(0,a.each)(this.props.values,(function(t){if(t.variable&&((0,a.isDefined)(t.value)||(0,a.isBoolean)(t.lock))){var n=e.mutableValueOf(t.variable);if(n&&!n.slot.protected){var r=n.isLocked;if((0,a.isDefined)(t.value)&&(!n.isSealed||!r||(0,a.isBoolean)(t.lock)))if(r&&n.unlock(),t.value===(n.slot instanceof a.Slots.Boolean&&0))n.clear();else if(void 0!==t.mode||n.allowPrefill)if(n.slot instanceof a.Slots.String||n.slot instanceof a.Slots.Text)if(t.querystring){var o=n.slot.toValue(e.querystring((0,a.isString)(t.value)&&t.value||""));"concatenate"===t.mode?n.concatenate(o,t,t.separator):n.set(o)}else(0,a.isFilledString)(t.value)&&(0,a.isVariable)(t.value)?(u=e.variableFor(t.value))&&u.hasValue?"concatenate"===t.mode?n.concatenate(u.string,t,t.separator):n.set(u.string,u.reference):"concatenate"!==t.mode&&n.clear():(0,a.isString)(t.value)&&(o=e.parseVariables(t.value,"",!0),"concatenate"===t.mode?n.concatenate(o,t,t.separator):n.set(o,t.reference));else if(n.slot instanceof a.Slots.Number||n.slot instanceof a.Slots.Numeric){var i=function(e){if((0,a.isNumberFinite)(e)){var r=n.hasValue&&(n.slot instanceof a.Slots.Number||n.slot instanceof a.Slots.Numeric)?n.slot.toValue(n.value):0;switch(t.mode){case"+":n.operation(r+e,t);break;case"-":n.operation(r-e,t);break;case"*":n.operation(r*e,t);break;case"/":n.operation(0!==e?r/e:void 0,t);break;default:n.set(e)}}else"+"!==t.mode&&"-"!==t.mode&&n.clear()};t.querystring?i(n.slot.toValue(e.querystring((0,a.isString)(t.value)&&t.value||""))):!0===t.value?i((0,l.calculator)(e.context,t.operations||[],void 0,void 0,(function(t){return e.variableFor(t)}),(function(t){return e.parseVariables(t)}))):(0,a.isString)(t.value)?i((u=e.variableFor(t.value))&&(u.slot instanceof a.Slots.Number||u.slot instanceof a.Slots.Numeric)&&u.hasValue?u.slot.toValue(u.value):void 0):(0,a.isNumberFinite)(t.value)&&i(t.value)}else if(n.slot instanceof a.Slots.Boolean)i=function(e){var r=n.hasValue&&n.slot instanceof a.Slots.Boolean?n.slot.toValue(n.value):void 0;switch(t.mode){case"OR":n.operation(!(!r&&!e),t);break;case"NOR":n.operation(!0!==r&&!0!==e,t);break;case"AND":n.operation(!0===r&&!0===e,t);break;case"NAND":n.operation(!0!==r||!0!==e,t);break;case"XOR":n.operation(r!==e,t);break;case"XNOR":n.operation(r===e,t);break;default:n.set(e)}},t.querystring?i(n.slot.toValue(e.querystring((0,a.isString)(t.value)&&t.value||"","false"))):(0,a.isString)(t.value)?i((u=e.variableFor(t.value))&&u.slot instanceof a.Slots.Boolean&&u.hasValue?u.slot.toValue(u.value):void 0):(0,a.isBoolean)(t.value)&&i(t.value);else if(n.slot instanceof a.Slots.Date)if(t.querystring)n.set(n.slot.toValue(e.querystring((0,a.isString)(t.value)&&t.value||"")));else if(!0===t.value)n.set(a.DateTime.UTC);else if((0,a.isString)(t.value)){var u=e.variableFor(t.value);n.set(u&&u.slot instanceof a.Slots.Date&&u.hasValue?u.slot.toValue(u.value):void 0)}else(0,a.isNumberFinite)(t.value)&&n.set(t.value);((0,a.isBoolean)(t.lock)||r)&&(!(0,a.isBoolean)(t.lock)||t.lock?n.lock():n.unlock())}}}))},i([(0,a.tripetto)({type:"headless",legacyBlock:!0,identifier:"@tripetto/block-setter"})],t)}(a.HeadlessBlock);t.Setter=u},873:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),(0,n(226).mountNamespace)("@tripetto/block-setter")},982:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),(0,n(226).unmountNamespace)()},39:function(e){e.exports=n(6780)},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},9108:function(e,t,n){!function(){"use strict";var t={550: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureCondition=void 0;var a=n(298),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isSigned=function(){var e=this.valueOf();return!(!e||!e.value)===this.props.isSigned},i([a.condition],t.prototype,"isSigned",null),i([(0,a.tripetto)({type:"condition",identifier:"@tripetto/block-signature"})],t)}(a.ConditionBlock);t.SignatureCondition=l},951: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;var i=n(298);n(550);var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.signatureSlot=(0,i.assert)(t.valueOf("signature")),t.required=t.signatureSlot.slot.required||!1,t}return o(t,e),Object.defineProperty(t.prototype,"isSigning",{get:function(){return this.signatureSlot.isAwaiting},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.props.size||"md"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.props.color||void 0},enumerable:!1,configurable:!0}),t.prototype.convertToBase64=function(e,t,n){var r=new FileReader;n&&(r.onprogress=function(e){return n(e.loaded/e.total*100)}),r.onload=function(){t(r.result)},r.readAsDataURL(e)},t.prototype.upload=function(e,t,n){var r=this;return this.cache=void 0,this.signatureSlot.clear(),new Promise((function(o,i){if(1!==e.length)return i("");var a=e[0];r.signatureSlot.await(),t?t.put(a,n).then((function(e){r.signatureSlot.set(a.name,e),r.convertToBase64(a,(function(e){r.cache=e,o()}))})).catch((function(e){r.signatureSlot.clear(),i(e)})):r.convertToBase64(a,(function(e){r.signatureSlot.set(a.name,e),o()}),n)}))},t.prototype.download=function(e){var t=this;return new Promise((function(n,r){t.cache?n(t.cache):t.signatureSlot.reference?e?e.get(t.signatureSlot.reference).then((function(e){return t.convertToBase64(e,(function(e){return n(e)}))})).catch((function(){t.signatureSlot.clear(),r()})):n(t.signatureSlot.reference):r()}))},t.prototype.delete=function(e){var t=this;return new Promise((function(n,r){t.signatureSlot.reference&&e?(t.signatureSlot.await(),e.delete(t.signatureSlot.reference).then((function(){t.cache=void 0,t.signatureSlot.clear(),n()})).catch((function(){t.signatureSlot.cancelAwait(),r()}))):(t.cache=void 0,t.signatureSlot.clear(),n())}))},t}(i.NodeBlock);t.Signature=a},298:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(951);e.exports=o}()},8261:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Statement=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(226).NodeBlock);t.Statement=i},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},8028:function(e,t,n){!function(){"use strict";var t={856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Stop=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.stopHere=function(){return!1},i([a.validator],t.prototype,"stopHere",null),t}(a.NodeBlock);t.Stop=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},6421:function(e,t,n){!function(){"use strict";var t={502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-text",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},400: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.TextCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getMatchString=function(){if((0,a.isVariable)(this.props.match)){var e=this.variableFor(this.props.match);return e&&e.hasValue?e.string:""}return this.parseVariables(this.props.match||"")},t.prototype.isEqual=function(){var e=this.valueOf();if(e){var t=this.props.ignoreCase?a.Str.lowercase(this.getMatchString()):this.getMatchString(),n=this.props.ignoreCase?a.Str.lowercase(e.string):e.string;switch(this.props.mode){case"exact":return n===t;case"not-exact":return n!==t;case"contains":return t&&-1!==n.indexOf(t)||!1;case"not-contains":return t&&-1===n.indexOf(t)||!1;case"starts":return t&&0===n.indexOf(t)||!1;case"ends":return t&&n.length>=t.length&&n.lastIndexOf(t)===n.length-t.length||!1;case"defined":return""!==n;case"undefined":return""===n}}return!1},i([a.condition],t.prototype,"isEqual",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-text"})],t)}(a.ConditionBlock);t.TextCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Text=void 0;var a=n(226);n(400),n(502);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scoreSlot=t.valueOf("score","feature"),t.textSlot=(0,a.assert)(t.valueOf("value","static",{prefill:(0,a.isString)(t.props.prefill)&&{value:t.props.prefill}||void 0,modifier:function(e){var n;if(t.props.useSuggestions)return{value:e.value,reference:e.value&&(null===(n=(0,a.findFirst)(t.props.suggestions,(function(t){return t.name===e.value})))||void 0===n?void 0:n.id)||void 0}},onChange:function(e){if(t.scoreSlot){var n=t.props.useSuggestions&&(0,a.findFirst)(t.props.suggestions,(function(t){return t.name===e.value}))||void 0;t.scoreSlot.set(n&&((null==n?void 0:n.score)||0))}}})),t.required=t.textSlot.slot.required||!1,t.maxLength=t.textSlot.slot.maxLength,t.autoComplete=t.props.autoComplete,t}return o(t,e),Object.defineProperty(t.prototype,"suggestions",{get:function(){var e;return this.props.useSuggestions&&(null===(e=this.props.suggestions)||void 0===e?void 0:e.map((function(e){return e.name})))||void 0},enumerable:!1,configurable:!0}),t.prototype.validate=function(){return!this.props.minLength||!this.textSlot.value.length||this.textSlot.value.length>=this.props.minLength},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.Text=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},6814:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.TextareaCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getMatchString=function(){if((0,a.isVariable)(this.props.match)){var e=this.variableFor(this.props.match);return e&&e.hasValue?e.string:""}return this.parseVariables(this.props.match||"","",!0)},t.prototype.isEqual=function(){var e=this.valueOf();if(e){var t=this.props.ignoreCase?a.Str.lowercase(this.getMatchString()):this.getMatchString(),n=this.props.ignoreCase?a.Str.lowercase(e.string):e.string;switch(this.props.mode){case"exact":return n===t;case"not-exact":return n!==t;case"contains":return t&&-1!==n.indexOf(t)||!1;case"not-contains":return t&&-1===n.indexOf(t)||!1;case"starts":return t&&0===n.indexOf(t)||!1;case"ends":return t&&n.length>=t.length&&n.lastIndexOf(t)===n.length-t.length||!1;case"defined":return""!==n;case"undefined":return""===n}}return!1},i([a.condition],t.prototype,"isEqual",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-textarea"})],t)}(a.ConditionBlock);t.TextareaCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Textarea=void 0;var a=n(226);n(407);var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.textareaSlot=(0,a.assert)(t.valueOf("value","static",{prefill:(0,a.isString)(t.props.prefill)&&{value:t.props.prefill}||void 0})),t.required=t.textareaSlot.slot.required||!1,t.maxLength=t.textareaSlot.slot.maxLength,t}return o(t,e),t.prototype.validate=function(){return!this.props.minLength||!this.textareaSlot.value.length||this.textareaSlot.value.length>=this.props.minLength},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.Textarea=l},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},5733:function(e,t,n){!function(){"use strict";var t={407: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.URLCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.verify=function(){var e=this.valueOf();if(e)switch(this.props.mode){case"defined":return""!==e.string;case"undefined":return""===e.string}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"@tripetto/block-url"})],t)}(a.ConditionBlock);t.URLCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.URL=void 0;var a=n(226);n(407);var l=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-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,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.urlSlot=(0,a.assert)(t.valueOf("url")),t.required=t.urlSlot.slot.required||!1,t}return o(t,e),t.prototype.validate=function(){return!this.urlSlot.string||l.test(this.urlSlot.value)},i([a.validator],t.prototype,"validate",null),t}(a.NodeBlock);t.URL=u},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},6388:function(e,t,n){!function(){"use strict";var t={199: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableBooleanCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.verify=function(){var e=this.valueOf();if(e)switch(this.props.mode){case"true":return e.hasValue&&(0,a.castToBoolean)(e.value);case"false":return e.hasValue&&!(0,a.castToBoolean)(e.value);case"equal":case"not-equal":var t=(0,a.isFilledString)(this.props.value)&&this.variableFor(this.props.value)||void 0;return t&&(e.hasValue?(0,a.castToBoolean)(e.value):void 0)===(t.hasValue?(0,a.castToBoolean)(t.value):void 0)||!1;case"defined":return e.hasValue;case"undefined":return!e.hasValue}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-variable",":boolean")})],t)}(a.ConditionBlock);t.VariableBooleanCondition=l},333: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableDateCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Date){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return e.toValue((0,a.isNumberFinite)(t)?t:a.DateTime.UTC)},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value),n=e.hasValue?e.slot.toValue(e.value):void 0;switch(this.props.mode){case"equal":return n===t;case"not-equal":return n!==t;case"before":return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&n<t;case"after":return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&n>t;case"between":case"not-between":var r=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(r)&&((0,a.isNumberFinite)(n)&&n>=a.Num.min(t,r)&&n<=a.Num.max(t,r))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-variable",":date")})],t)}(a.ConditionBlock);t.VariableDateCondition=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Variable=void 0;var a=n(226);n(199),n(333),n(261),n(463),n(873);var l=n(39);n(982);var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.variableSlot=(0,a.assert)(t.valueOf("variable","static",{modifier:function(e){return t.props.calculator&&t.props.operations&&e.slot instanceof a.Slots.Numeric&&{value:(0,l.calculator)(t.context,t.props.operations,e,void 0,(function(e){return t.variableFor(e)}),(function(e){return t.parseVariables(e)}))}||void 0}})),t}return o(t,e),t.prototype.do=function(){this.variableSlot.reset((0,a.isFilledString)(this.props.prefill)?this.parseVariables(this.props.prefill,"",!0):this.props.prefill)},i([(0,a.tripetto)({type:"headless",legacyBlock:!0,identifier:"@tripetto/block-variable"})],t)}(a.HeadlessBlock);t.Variable=u},873:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),(0,n(226).mountNamespace)("@tripetto/block-variable")},982:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),(0,n(226).unmountNamespace)()},261: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableNumericCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-variable",":numeric")})],t)}(a.ConditionBlock);t.VariableNumericCondition=l},463: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableTextCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getMatchString=function(){if((0,a.isVariable)(this.props.match)){var e=this.variableFor(this.props.match);return e&&e.hasValue?e.string:""}return this.parseVariables(this.props.match||"","",!0)},t.prototype.isEqual=function(){var e=this.valueOf();if(e){var t=this.props.ignoreCase?a.Str.lowercase(this.getMatchString()):this.getMatchString(),n=this.props.ignoreCase?a.Str.lowercase(e.string):e.string;switch(this.props.mode){case"exact":return n===t;case"not-exact":return n!==t;case"contains":return t&&-1!==n.indexOf(t)||!1;case"not-contains":return t&&-1===n.indexOf(t)||!1;case"starts":return t&&0===n.indexOf(t)||!1;case"ends":return t&&n.length>=t.length&&n.lastIndexOf(t)===n.length-t.length||!1;case"defined":return""!==n;case"undefined":return""===n}}return!1},i([a.condition],t.prototype,"isEqual",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-variable",":text")})],t)}(a.ConditionBlock);t.VariableTextCondition=l},39:function(e){e.exports=n(6780)},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},4183:function(e,t,n){!function(){"use strict";var t={591: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.No=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isNo=function(){var e=this.valueOf();return!!e&&"no"===e.reference},i([a.condition],t.prototype,"isNo",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-yes-no",":no"),alias:"yes-no:no"})],t)}(a.ConditionBlock);t.No=l},502: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.ScoreCondition=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getValue=function(e,t){if((0,a.isString)(t)&&e instanceof a.Slots.Numeric){var n=this.variableFor(t);return n&&n.hasValue?e.toValue(n.value):void 0}return(0,a.isNumberFinite)(t)?t:void 0},t.prototype.verify=function(){var e=this.valueOf();if(e){var t=this.getValue(e.slot,this.props.value);switch(this.props.mode){case"equal":return(e.hasValue?e.value:void 0)===t;case"not-equal":return(e.hasValue?e.value:void 0)!==t;case"below":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value<t;case"above":return(0,a.isNumberFinite)(t)&&e.hasValue&&e.value>t;case"between":case"not-between":var n=this.getValue(e.slot,this.props.to);return(0,a.isNumberFinite)(t)&&(0,a.isNumberFinite)(n)&&(e.hasValue&&e.value>=a.Num.min(t,n)&&e.value<=a.Num.max(t,n))===("between"===this.props.mode);case"defined":return e.hasValue;case"undefined":return!e.hasValue}}return!1},i([a.condition],t.prototype,"verify",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-yes-no",":score")})],t)}(a.ConditionBlock);t.ScoreCondition=l},383: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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};Object.defineProperty(t,"__esModule",{value:!0}),t.Yes=void 0;var a=n(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isYes=function(){var e=this.valueOf();return!!e&&"yes"===e.reference},i([a.condition],t.prototype,"isYes",null),i([(0,a.tripetto)({type:"condition",legacyBlock:!0,identifier:"".concat("@tripetto/block-yes-no",":yes"),alias:"yes-no:yes"})],t)}(a.ConditionBlock);t.Yes=l},856: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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.YesNo=void 0;var i=n(226);n(591),n(383),n(502);var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scoreSlot=t.valueOf("score","feature"),t.answerSlot=(0,i.assert)(t.valueOf("answer","static",{modifier:function(e){var n=e.reference;if("yes"!==n&&"no"!==n)if(e.string){var r=[t.props.aliasYes||"",t.parseVariables(t.props.altYes||""),"Yes"],o=[t.props.aliasNo||"",t.parseVariables(t.props.altNo||""),"No"];(0,i.findFirst)(r,(function(t){return t===e.string}))?n="yes":(0,i.findFirst)(o,(function(t){return t===e.string}))?n="no":(0,i.findFirst)(r,(function(t){return t.toLowerCase()===e.string.toLowerCase()}))?n="yes":(0,i.findFirst)(o,(function(t){return t.toLowerCase()===e.string.toLowerCase()}))&&(n="no")}else n=void 0;return{value:"yes"===n?t.props.aliasYes||t.parseVariables(t.props.altYes||"")||"Yes":"no"===n?t.props.aliasNo||t.parseVariables(t.props.altNo||"")||"No":void 0,reference:n,display:e.display}},onChange:function(e){t.scoreSlot&&t.scoreSlot.set(e.hasValue?(0,i.castToNumber)("yes"===e.reference?t.props.scoreForTrue:t.props.scoreForFalse):void 0)}})),t.required=t.answerSlot.slot.required||!1,t}return o(t,e),t.prototype.toggle=function(e){var t=this.answerSlot.reference===e?void 0:e;this.answerSlot.set("",t)},t}(i.NodeBlock);t.YesNo=a},226:function(e){e.exports=n(9849)}},r={},o=function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}(856);e.exports=o}()},7624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.color=t.getColor=void 0;var r=n(1635).__importStar(n(2520));t.getColor=function(e){if(e&&"transparent"!==(e=e.toLowerCase()))try{return r.default(e)}catch(t){try{return r.default("#"+e)}catch(e){return r.default("rgba(255,255,255,0)")}}return r.default("rgba(255,255,255,0)")};t.color=function(e,n){var r=(0,t.getColor)(e);if(n){var o={manipulate:function(e,t){return void 0===t&&(t=!0),t&&(r=e(r)),o},makeBlackOrWhite:function(e){if(void 0===e&&(e=!0),e){var t=(.299*r.red()+.587*r.green()+.114*r.blue())/255;r=r.red(t>.55?0:255).green(t>.55?0:255).blue(t>.55?0:255).alpha(1)}return o},makeUnclear:function(e){return e&&0===r.alpha()&&(r=(0,t.getColor)(e)),o}};n(o)}return r.rgb().string()}},6494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonFabric=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(9849),u=n(7624),s=a.styled.button(r||(r=o.__makeTemplateObject(["\n    appearance: none;\n    font-size: 1em;\n    line-height: 1.5em;\n    outline: none;\n    user-select: none;\n    box-sizing: border-box;\n    background-color: ",";\n    border: ",";\n    border-left: ",";\n    color: ",";\n    text-align: left;\n    border-radius: ",";\n    border-top-left-radius: ",";\n    border-bottom-left-radius: ",";\n    border-top-right-radius: ",";\n    border-bottom-right-radius: ",";\n    width: ",";\n    overflow: ",";\n    padding: ",";\n    padding-top: ",";\n    padding-bottom: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    @media (max-device-width: 500px) {\n        width: ",";\n    }\n\n    @media (max-width: 500px) {\n        width: ",";\n    }\n\n    > div {\n        display: flex;\n        width: ",";\n        height: ",";\n        min-width: 100%;\n        background-repeat: no-repeat;\n        background-size: cover;\n        background-position: center center;\n        justify-content: center;\n        align-items: center;\n        overflow: hidden;\n        white-space: nowrap;\n\n        > span {\n            font-size: ",";\n        }\n\n        @media (max-device-width: 500px) {\n            width: ",";\n            height: ",";\n\n            > span {\n                font-size: ",";\n            }\n        }\n\n        @media (max-width: 500px) {\n            width: ",";\n            height: ",";\n\n            > span {\n                font-size: ",";\n            }\n        }\n    }\n\n    > span {\n        display: block;\n\n        > span {\n            display: table-cell;\n\n            > small {\n                display: block;\n                font-size: 0.8em;\n                opacity: 0.8;\n            }\n\n            > svg {\n                width: 1em;\n                height: 1em;\n                position: relative;\n                top: ",";\n                margin-left: ",";\n                margin-right: ",";\n                overflow: hidden;\n                vertical-align: middle;\n\n                path {\n                    fill: ",";\n                    transition: fill 0.15s ease-in-out;\n                }\n            }\n        }\n    }\n\n    > div + span {\n        display: flex;\n        justify-content: center;\n        margin-top: ",";\n        text-align: center;\n    }\n\n    &:not(:disabled) {\n        cursor: pointer;\n        opacity: 1;\n\n        &:hover {\n            background-color: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: 0 0 0 0.2rem ",";\n\n            svg {\n                path {\n                    fill: ",";\n                }\n            }\n        }\n\n        &:focus {\n            box-shadow: 0 0 0 0.2rem ",";\n        }\n\n        &:active {\n            box-shadow: 0 0 0 0.2rem ",";\n            background-color: ",";\n        }\n    }\n"],["\n    appearance: none;\n    font-size: 1em;\n    line-height: 1.5em;\n    outline: none;\n    user-select: none;\n    box-sizing: border-box;\n    background-color: ",";\n    border: ",";\n    border-left: ",";\n    color: ",";\n    text-align: left;\n    border-radius: ",";\n    border-top-left-radius: ",";\n    border-bottom-left-radius: ",";\n    border-top-right-radius: ",";\n    border-bottom-right-radius: ",";\n    width: ",";\n    overflow: ",";\n    padding: ",";\n    padding-top: ",";\n    padding-bottom: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    @media (max-device-width: 500px) {\n        width: ",";\n    }\n\n    @media (max-width: 500px) {\n        width: ",";\n    }\n\n    > div {\n        display: flex;\n        width: ",";\n        height: ",";\n        min-width: 100%;\n        background-repeat: no-repeat;\n        background-size: cover;\n        background-position: center center;\n        justify-content: center;\n        align-items: center;\n        overflow: hidden;\n        white-space: nowrap;\n\n        > span {\n            font-size: ",";\n        }\n\n        @media (max-device-width: 500px) {\n            width: ",";\n            height: ",";\n\n            > span {\n                font-size: ",";\n            }\n        }\n\n        @media (max-width: 500px) {\n            width: ",";\n            height: ",";\n\n            > span {\n                font-size: ",";\n            }\n        }\n    }\n\n    > span {\n        display: block;\n\n        > span {\n            display: table-cell;\n\n            > small {\n                display: block;\n                font-size: 0.8em;\n                opacity: 0.8;\n            }\n\n            > svg {\n                width: 1em;\n                height: 1em;\n                position: relative;\n                top: ",";\n                margin-left: ",";\n                margin-right: ",";\n                overflow: hidden;\n                vertical-align: middle;\n\n                path {\n                    fill: ",";\n                    transition: fill 0.15s ease-in-out;\n                }\n            }\n        }\n    }\n\n    > div + span {\n        display: flex;\n        justify-content: center;\n        margin-top: ",";\n        text-align: center;\n    }\n\n    &:not(:disabled) {\n        cursor: pointer;\n        opacity: 1;\n\n        &:hover {\n            background-color: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: 0 0 0 0.2rem ",";\n\n            svg {\n                path {\n                    fill: ",";\n                }\n            }\n        }\n\n        &:focus {\n            box-shadow: 0 0 0 0.2rem ",";\n        }\n\n        &:active {\n            box-shadow: 0 0 0 0.2rem ",";\n            background-color: ",";\n        }\n    }\n"])),(function(e){return"fill"===e.$mode&&(0,u.color)(e.$baseColor)||"transparent"}),(function(e){return"".concat(e.$outlineSize,"px solid ").concat((0,u.color)(e.$baseColor,(function(t){return t.manipulate((function(e){return e.darken(.1)}),"fill"===e.$mode)})))}),(function(e){return"middle"===e.$group||"end"===e.$group?"none":void 0}),(function(e){return(0,u.color)(e.$textColor||e.$baseColor,(function(t){return t.makeBlackOrWhite(!e.$textColor&&"fill"===e.$mode)}))}),(function(e){return(0,l.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return e.$group&&"start"!==e.$group?"0":void 0}),(function(e){return e.$group&&"start"!==e.$group?"0":void 0}),(function(e){return e.$group&&"end"!==e.$group?"0":void 0}),(function(e){return e.$group&&"end"!==e.$group?"0":void 0}),(function(e){return e.$isImage&&"calc(".concat("small"===e.$size?75:"large"===e.$size?300:150,"px + 1.5em)")}),(function(e){return e.$isImage?"hidden":void 0}),(function(e){return"".concat(.375*e.$scale,"em 0.75em")}),(function(e){return e.$isImage?"0.75em":void 0}),(function(e){return e.$isImage&&!e.$hasLabel?"0.75em":void 0}),(function(e){return"outline"===e.$mode?.2:.4}),(function(e){return e.$isImage&&"calc(".concat("small"===e.$size?75:"large"===e.$size?280:120,"px + 1.5em)")}),(function(e){return e.$isImage&&"calc(".concat("small"===e.$size?75:"large"===e.$size?240:120,"px + 1.5em)")}),(function(e){return"".concat("small"===e.$size?75:"large"===e.$size?300:150,"px")}),(function(e){return"".concat("small"===e.$size?75:"large"===e.$size?300:150,"px")}),(function(e){return"".concat("small"===e.$size?40:"large"===e.$size?160:80,"px")}),(function(e){return"".concat("small"===e.$size?75:"large"===e.$size?240:120,"px")}),(function(e){return"".concat("small"===e.$size?75:"large"===e.$size?240:120,"px")}),(function(e){return"".concat("small"===e.$size?40:"large"===e.$size?136:68,"px")}),(function(e){return"".concat("small"===e.$size?75:"large"===e.$size?240:120,"px")}),(function(e){return"".concat("small"===e.$size?75:"large"===e.$size?240:120,"px")}),(function(e){return"".concat("small"===e.$size?40:"large"===e.$size?136:68,"px")}),(function(e){return"solo"!==e.$iconPosition&&"-2px"}),(function(e){return"right"===e.$iconPosition&&"0.5em"}),(function(e){return"left"===e.$iconPosition&&"0.5em"}),(function(e){return(0,u.color)(e.$textColor||e.$baseColor,(function(t){return t.makeBlackOrWhite(!e.$textColor&&"fill"===e.$mode)}))}),(function(e){return"".concat(.375*e.$scale,"em")}),(function(e){return"fill"===e.$hover&&(0,u.color)(e.$baseColor,(function(t){return t.manipulate((function(e){return e.darken(.05)}),"fill"===e.$mode)}))||void 0}),(function(e){return"fill"===e.$hover&&(0,u.color)(e.$baseColor,(function(t){return t.manipulate((function(e){return e.darken(.1)}),"fill"===e.$mode)}))||void 0}),(function(e){return"outline"===e.$mode&&"fill"===e.$hover&&(0,u.color)(e.$baseColor,(function(e){return e.makeBlackOrWhite()}))||void 0}),(function(e){return(0,u.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))}))}),(function(e){return"outline"===e.$mode&&"fill"===e.$hover&&(0,u.color)(e.$baseColor,(function(e){return e.makeBlackOrWhite()}))||void 0}),(function(e){return(0,u.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))}))}),(function(e){return(0,u.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))}))}),(function(e){return"fill"===e.$hover&&(0,u.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.darken(.15)}))}))}));t.ButtonFabric=function(e){var t=e.label?e.iconPosition||"left":"solo",n=e.disabled||!e.onClick&&!e.hyperlink;return(0,i.jsxs)(s,{ref:e.onAutoFocus,type:"button",disabled:n,tabIndex:e.tabIndex,"aria-describedby":e.ariaDescribedBy,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){return e.onTab&&"Tab"===t.key&&!t.shiftKey?(t.preventDefault(),void e.onTab()):e.onCancel&&"Tab"===t.key&&t.shiftKey?(t.preventDefault(),void e.onCancel()):void(e.onKeyDown&&e.onKeyDown(t))},onClick:function(t){t.stopPropagation(),e.hyperlink?window.open(e.hyperlink.url,"_".concat(e.hyperlink.target||"self"),"noopener"):e.onClick&&e.onClick()},$baseColor:e.styles.baseColor,$textColor:e.styles.textColor,$outlineSize:e.styles.outlineSize||1,$roundness:e.styles.roundness,$mode:e.styles.mode||"fill",$hover:e.styles.hover||"fill",$iconPosition:t,$scale:e.styles.scale||1,$group:e.styles.group,$hasLabel:!(!e.icon&&!e.label),$isImage:!(!e.image&&!e.emoji),$size:e.size||"medium",children:[(e.image||e.emoji)&&(0,i.jsx)("div",{style:{backgroundImage:e.image&&'url("'.concat(e.image,'")')||void 0},children:e.emoji&&(0,i.jsx)("span",{children:e.emoji})}),(e.icon||e.label)&&(0,i.jsxs)("span",{children:[e.icon&&"right"!==t&&(0,i.jsx)("span",{children:e.icon}),e.label&&(0,i.jsxs)("span",{children:[e.label,e.description&&(0,i.jsx)("small",{children:e.description})]}),e.icon&&"right"===t&&(0,i.jsx)("span",{children:e.icon})]})]})}},6627:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxFabric=t.CheckboxElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(6540),l=n(9849),u=n(7624),s=n(8227),c=n(5442);t.CheckboxElement=i.styled.div(d||(d=r.__makeTemplateObject(["\n    display: block;\n    width: 100%;\n    margin: 0;\n    padding: 0;\n"],["\n    display: block;\n    width: 100%;\n    margin: 0;\n    padding: 0;\n"])));var d,f,p=i.styled.label(f||(f=r.__makeTemplateObject(["\n    box-sizing: border-box;\n    appearance: none;\n    outline: none;\n    font-size: 1em;\n    line-height: 1.6em;\n    padding-left: calc(","em + ","px);\n    margin: 0;\n    position: relative;\n    display: inline-flex;\n    min-height: ","em;\n    user-select: none;\n    opacity: ",";\n    transition: opacity 0.15s ease-in-out;\n\n    > input {\n        position: absolute;\n        opacity: 0;\n        cursor: pointer;\n        height: 0;\n        width: 0;\n    }\n\n    > span {\n        box-sizing: content-box;\n        color: ",";\n    }\n\n    > span:last-child {\n        position: absolute;\n        width: ","em;\n        height: ","em;\n        top: 0.095em;\n        left: 0;\n        background-color: ",";\n        border: ",";\n        border-radius: ",";\n        transition:\n            background-color 0.15s ease-in-out,\n            border-color 0.15s ease-in-out,\n            box-shadow 0.15s ease-in-out,\n            opacity 0.15s ease-in-out;\n\n        &:after {\n            width: ","em;\n            height: ","em;\n            left: ","em;\n            top: ","em;\n            border-style: solid;\n            border-width: 0 ","em ","em 0;\n            border-color: ",';\n            transform: rotate(45deg) scale(0.1);\n            transition:\n                transform 0.15s linear,\n                opacity 0s linear 0.15s;\n            content: "";\n            position: absolute;\n            opacity: 0;\n        }\n    }\n\n    &:hover {\n        > input:not(:disabled) + span + span {\n            box-shadow: ',";\n        }\n    }\n\n    > input {\n        &:not(:disabled) {\n            &:active + span {\n                color: ",";\n            }\n\n            &:active + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    border-color: ",";\n                }\n            }\n\n            &:focus + span {\n                color: ",";\n            }\n\n            &:focus + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    border-color: ",";\n                }\n            }\n        }\n\n        &:checked + span + span {\n            &:after {\n                transform: rotate(45deg);\n                opacity: 1;\n                transition:\n                    transform 0.15s linear,\n                    opacity 0s linear;\n            }\n        }\n    }\n"],["\n    box-sizing: border-box;\n    appearance: none;\n    outline: none;\n    font-size: 1em;\n    line-height: 1.6em;\n    padding-left: calc(","em + ","px);\n    margin: 0;\n    position: relative;\n    display: inline-flex;\n    min-height: ","em;\n    user-select: none;\n    opacity: ",";\n    transition: opacity 0.15s ease-in-out;\n\n    > input {\n        position: absolute;\n        opacity: 0;\n        cursor: pointer;\n        height: 0;\n        width: 0;\n    }\n\n    > span {\n        box-sizing: content-box;\n        color: ",";\n    }\n\n    > span:last-child {\n        position: absolute;\n        width: ","em;\n        height: ","em;\n        top: 0.095em;\n        left: 0;\n        background-color: ",";\n        border: ",";\n        border-radius: ",";\n        transition:\n            background-color 0.15s ease-in-out,\n            border-color 0.15s ease-in-out,\n            box-shadow 0.15s ease-in-out,\n            opacity 0.15s ease-in-out;\n\n        &:after {\n            width: ","em;\n            height: ","em;\n            left: ","em;\n            top: ","em;\n            border-style: solid;\n            border-width: 0 ","em ","em 0;\n            border-color: ",';\n            transform: rotate(45deg) scale(0.1);\n            transition:\n                transform 0.15s linear,\n                opacity 0s linear 0.15s;\n            content: "";\n            position: absolute;\n            opacity: 0;\n        }\n    }\n\n    &:hover {\n        > input:not(:disabled) + span + span {\n            box-shadow: ',";\n        }\n    }\n\n    > input {\n        &:not(:disabled) {\n            &:active + span {\n                color: ",";\n            }\n\n            &:active + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    border-color: ",";\n                }\n            }\n\n            &:focus + span {\n                color: ",";\n            }\n\n            &:focus + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    border-color: ",";\n                }\n            }\n        }\n\n        &:checked + span + span {\n            &:after {\n                transform: rotate(45deg);\n                opacity: 1;\n                transition:\n                    transform 0.15s linear,\n                    opacity 0s linear;\n            }\n        }\n    }\n"])),(function(e){return 8/7*e.$scale+.375}),(function(e){return 2*e.$borderSize}),(function(e){return(8/7+.19)*e.$scale}),(function(e){return e.$disabled?".4":void 0}),(function(e){return(0,u.color)(e.$error?e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.makeUnclear("#000")}))}),(function(e){return 8/7*e.$scale}),(function(e){return 8/7*e.$scale}),(function(e){return(0,u.color)(e.$error&&"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?e.$errorColor:e.$backgroundColor)}),(function(e){return"".concat(e.$borderSize,"px solid ").concat((0,u.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,l.isNumberFinite)(e.$roundness)?"".concat(l.Num.min(e.$roundness,4),"px"):"".concat(4/14*e.$scale,"em")}),(function(e){return 3/14*e.$scale}),(function(e){return.5*e.$scale}),(function(e){return 6/14*e.$scale}),(function(e){return 2/14*e.$scale}),(function(e){return 2/14*e.$scale}),(function(e){return 2/14*e.$scale}),(function(e){return(0,u.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&(e.$error||"transparent"===e.$borderColor))}))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.makeUnclear("#000")}))}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return e.$borderSize}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.1rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.makeUnclear("#000")}))}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return e.$borderSize}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))}));t.CheckboxFabric=function(e){var n=e.value,r=(0,a.useRef)(0),i=(0,a.useState)("object"!=typeof n&&n||!1),d=i[0],f=i[1],h="object"==typeof n?[0!==r.current?d:n.value,function(e){(0,l.cancelUITimeout)(r.current),f(e),r.current=(0,l.scheduleUITimeout)((function(){r.current=0,n.value=e}),c.DEBOUNCE_NORMAL)}]:[d,f],v=h[0],b=h[1],m=function(t){b(t),e.onChange&&e.onChange(t)},g=e.disabled||e.readOnly||"object"==typeof n&&(n.isFrozen||n.isLocked)||!1;return(0,a.useEffect)((function(){return function(){(0,l.cancelUITimeout)(r.current)}}),[]),"object"==typeof n&&n.confirm(),(0,o.jsx)(t.CheckboxElement,{children:(0,o.jsxs)(p,{$disabled:g,$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:"transparent"===e.styles.borderColor&&"transparent"===e.styles.backgroundColor&&(0,u.color)(e.styles.textColor,(function(e){return e.makeUnclear("#000")}))||(0,u.color)(e.styles.borderColor)!==(0,u.color)(e.styles.backgroundColor)&&e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$error:e.error||!1,$scale:e.styles.scale||1,children:[(0,o.jsx)("input",{ref:e.onAutoFocus,type:"checkbox",checked:v,tabIndex:e.tabIndex,"aria-describedby":e.ariaDescribedBy,disabled:g,onChange:function(e){return m(e.target.checked)},onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){"Enter"===t.key?(t.preventDefault(),t.shiftKey&&e.onSubmit?e.onSubmit():m(!v)):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):(e.tabSubmit||"boolean"!=typeof e.tabSubmit)&&e.onSubmit&&(t.preventDefault(),e.onSubmit()))}}),(0,o.jsxs)("span",{children:[e.label||"...",e.required&&!e.styles.hideRequiredIndicator&&(0,o.jsx)(s.RequiredIndicatorFabric,{$errorColor:e.styles.errorColor}),e.description&&(0,o.jsxs)("small",{children:[(0,o.jsx)("br",{}),e.description]})]}),(0,o.jsx)("span",{})]})})}},7827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxesFabric=void 0;var r=n(4848),o=n(6627);t.CheckboxesFabric=function(e){return(0,r.jsx)(r.Fragment,{children:e.checkboxes.map((function(t,n){return("preview"===e.view||t.label)&&(0,r.jsx)(o.CheckboxFabric,{styles:e.styles,label:t.label,description:t.description,required:t.required,disabled:t.disabled,readOnly:t.readOnly,error:t.error,tabIndex:t.tabIndex||e.tabIndex,tabSubmit:n+1===e.checkboxes.length,value:t.value,ariaDescribedBy:e.ariaDescribedBy,onChange:t.onChange,onAutoFocus:0===n&&e.onAutoFocus||void 0,onFocus:e.onFocus,onBlur:e.onBlur,onSubmit:e.onSubmit,onCancel:0===n&&e.onCancel||void 0},t.id||n)}))})}},5442:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEBOUNCE_MAX=t.DEBOUNCE_MIN=t.DEBOUNCE_NORMAL=void 0,t.DEBOUNCE_NORMAL=50,t.DEBOUNCE_MIN=1e3/60,t.DEBOUNCE_MAX=1e3},9267:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeFabric=t.DateInputElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(6540),l=n(9849),u=n(8956),s=n(7624),c=n(369),d=n(5442);function f(e,t){if(void 0===t&&(t="datetime"),!e)return"";if(e instanceof Date&&(e=e.getTime()),0!==e){var n=!0===e?new Date:new Date(e);return"".concat(n.getUTCFullYear(),"-").concat(l.Str.padLeft(n.getUTCMonth()+1,"0",2),"-").concat(l.Str.padLeft(n.getUTCDate(),"0",2))+("datetime"===t?"T".concat(l.Str.padLeft(n.getUTCHours(),"0",2),":").concat(l.Str.padLeft(n.getUTCMinutes(),"0",2)):"")}return""}function p(e){if(e){var t=l.Str.uppercase(l.Str.sanitize(e)).replace(" ","T").split("T");if(t.length>0){var n=l.Str.replaceMultiple(t[0],["/","\\"],"-").split("-"),r=t.length>1?l.Str.replace(t[1],".",":").split(":"):["0","0"];if(3===n.length&&r.length>=2)return new Date("".concat(l.Str.padLeft((0,l.castToNumber)(n[0]),"0",4),"-").concat(l.Str.padLeft((0,l.castToNumber)(n[1]),"0",2),"-").concat(l.Str.padLeft((0,l.castToNumber)(n[2]),"0",2),"T").concat(l.Str.padLeft((0,l.castToNumber)(r[0]),"0",2),":").concat(l.Str.padLeft((0,l.castToNumber)(r[1]),"0",2),":00.000Z"))}}return new Date(0)}t.DateInputElement=i.styled.input(v||(v=r.__makeTemplateObject(["\n    appearance: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    height: ",";\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.6em center;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:not(:disabled):not([readonly]) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        ","\n    }\n\n    &::-webkit-clear-button,\n    &::-webkit-inner-spin-button {\n        -webkit-appearance: none;\n        margin: 0;\n        height: 1px;\n        display: none;\n    }\n"],["\n    appearance: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    height: ",";\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.6em center;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:not(:disabled):not([readonly]) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        ","\n    }\n\n    &::-webkit-clear-button,\n    &::-webkit-inner-spin-button {\n        -webkit-appearance: none;\n        margin: 0;\n        height: 1px;\n        display: none;\n    }\n"])),(function(e){return e.$height?"".concat(e.$height,"px"):void 0}),(function(e){return(0,s.color)(e.$error&&"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?e.$errorColor:e.$backgroundColor)}),(function(e){return e.$error?'url("data:image/svg+xml;base64,'.concat((0,c.warningIcon)((0,s.color)(e.$errorColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))),'")'):""}),8/7,(function(e){return"".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px solid ").concat((0,s.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,s.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,s.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return(0,l.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return"transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?"0":"".concat(.375*e.$scale,"em 0.75em")}),(function(e){return e.$error&&"".concat(8/7+.75,"em")||void 0}),(function(e){return(0,s.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,s.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return e.$placeholder&&("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,s.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return!e.$placeholder&&(0,i.css)(h||(h=r.__makeTemplateObject(["\n                background-color: ",";\n                background-image: none;\n                border-color: ",";\n                color: ",";\n                box-shadow: ",";\n                &::placeholder {\n                    color: ",";\n                    opacity: 0.3;\n                }\n            "],["\n                background-color: ",";\n                background-image: none;\n                border-color: ",";\n                color: ",";\n                box-shadow: ",";\n                &::placeholder {\n                    color: ",";\n                    opacity: 0.3;\n                }\n            "])),(0,s.color)(e.$backgroundColor),(0,s.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor),(0,s.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()}))),("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,s.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0,(0,s.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()}))))}));var h,v;t.DateTimeFabric=function(e){var n,i,s=e.value instanceof Date?e.value.getTime():e.value,c=(0,a.useRef)({duration:0,handle:0}),h=(0,a.useState)("text"),v=h[0],b=h[1],m=(0,a.useState)(0),g=m[0],y=m[1],w=(0,a.useState)(!1),x=w[0],k=w[1],_=(0,a.useState)("object"==typeof s?f(s.slot.toValue(s.pristine),e.mode||"date"):"number"==typeof s?f(s,e.mode||"date"):""),C=_[0],S=_[1],O="object"!=typeof s||s instanceof Date?[C,S]:[x?C:s.hasValue?f(s.slot.toValue(s.pristine),e.mode||"date"):"",function(e){(0,l.cancelUITimeout)(c.current.handle),S(e);var t=l.Num.range(2*c.current.duration,d.DEBOUNCE_MIN,d.DEBOUNCE_MAX);c.current.handle=(0,l.scheduleUITimeout)((function(){var t=l.DateTime.precise;c.current.handle=0,c.current.update=function(){c.current.duration=l.DateTime.elapsed(t,!0),c.current.update=void 0},s.pristine=""!==e?p(e).getTime():void 0}),t)}],j=O[0],$=O[1],P=(0,a.useState)(!!j),F=P[0],E=P[1],R=(0,a.useRef)(!1),T=function(){return e.readOnly||"object"==typeof s&&(s.isFrozen||s.isLocked)||!1},N={$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$errorVisible:F,$error:e.error||!1,$scale:e.styles.scale||1,$placeholder:!0,$height:g};return(0,a.useEffect)((function(){return function(){(0,l.cancelUITimeout)(c.current.handle)}}),[]),c.current.update&&c.current.update(),(0,o.jsxs)(o.Fragment,{children:[("text"===v||T())&&(0,o.jsx)(t.DateInputElement,r.__assign({id:e.id,ref:e.onAutoFocus,type:"text",tabIndex:e.tabIndex,placeholder:e.placeholder,required:e.required||!1,disabled:e.disabled||!1,readOnly:T(),value:j&&("datetime"===e.mode?((null===(n=e.l10n)||void 0===n?void 0:n.locale)||l.L10n.Locales).dateTimeFull(p(j).getTime(),!0):((null===(i=e.l10n)||void 0===i?void 0:i.locale)||l.L10n.Locales).dateFull(p(j).getTime(),!0))||"",autoComplete:"off",inputMode:"none","aria-describedby":e.ariaDescribedBy,onChange:function(){},onFocus:function(t){T()||(R.current=!0,y(t.target.getBoundingClientRect().height),b("datetime"===e.mode?"datetime-local":"date")),(0,u.handleFocus)(k,$,e.onFocus)(t)},onBlur:function(t){T()||(0,u.handleBlur)(k,$,e.onBlur)(t)}},N)),"text"!==v&&!T()&&(0,o.jsx)(t.DateInputElement,r.__assign({id:e.id,ref:function(e){R.current&&e&&(R.current=!1,e.focus())},type:v,placeholder:"yyyy-MM-ddThh:mm",tabIndex:e.tabIndex,required:!0,disabled:e.disabled||!1,defaultValue:j,autoComplete:"off","aria-describedby":e.ariaDescribedBy,min:f("object"==typeof s&&s.slot.minimum||void 0)||void 0,max:f("object"==typeof s&&s.slot.maximum||void 0)||void 0,onChange:function(t){if($(t.target.value),E(!0),e.onChange){var n=e.onChange(p(t.target.value));n instanceof Date&&(0,u.setReturnValue)($,f(n,e.mode||"date"))}},onFocus:function(t){(0,u.handleFocus)(k,$,e.onFocus)(t)},onBlur:function(t){b("text"),"object"==typeof s&&s.hasValue&&S(f(s.slot.toValue(s.pristine),e.mode||"date")),(0,u.handleBlur)(k,$,e.onBlur)(t)},onKeyDown:function(t){"Enter"===t.key&&e.onSubmit?(t.preventDefault(),e.onSubmit()):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):e.onSubmit&&(t.preventDefault(),e.onSubmit()))}},N))]})}},4335:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownFabric=void 0;var r,o,i=n(1635),a=n(4848),l=n(780),u=n(6540),s=n(9849),c=n(7624),d=n(5720),f=n(369),p=n(5442),h=l.styled.select(r||(r=i.__makeTemplateObject(["\n    appearance: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: 1em, ","em;\n    background-position:\n        right 0.375em center,\n        right 1.75em center;\n    border: ",";\n    border-radius: ",";\n    color: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    &::-ms-expand {\n        display: none;\n    }\n\n    > option {\n        background-color: ",";\n        color: ",";\n    }\n\n    &:not(:disabled) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        &:focus {\n            background-color: ",";\n            background-image: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: ",";\n        }\n    }\n"],["\n    appearance: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: 1em, ","em;\n    background-position:\n        right 0.375em center,\n        right 1.75em center;\n    border: ",";\n    border-radius: ",";\n    color: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    &::-ms-expand {\n        display: none;\n    }\n\n    > option {\n        background-color: ",";\n        color: ",";\n    }\n\n    &:not(:disabled) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        &:focus {\n            background-color: ",";\n            background-image: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: ",";\n        }\n    }\n"])),(function(e){return(0,c.color)(e.$error&&"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?e.$errorColor:e.$backgroundColor)}),(function(e){return'url("data:image/svg+xml;base64,'.concat((0,d.dropdownIcon)((0,c.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,c.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))),'")')+(e.$error?',url("data:image/svg+xml;base64,'.concat((0,f.warningIcon)((0,c.color)(e.$errorColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))),'")'):"")}),8/7,(function(e){return"".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px solid ").concat((0,c.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,s.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return(0,c.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,c.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,c.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})),(function(t){return t.manipulate((function(e){return e.alpha(.5)}),e.$placeholder&&!e.$error)}))}),(function(e){return"transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?"0 1.75em 0 0":"".concat(.375*e.$scale,"em 1.75em ").concat(.375*e.$scale,"em 0.75em")}),(function(e){return e.$error&&"".concat(1.75+8/7+.375,"em")||void 0}),(function(e){return(0,c.color)(e.$backgroundColor)}),(function(e){return(0,c.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,c.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,c.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return(0,c.color)(e.$backgroundColor)}),(function(e){return!e.$errorVisible&&'url("data:image/svg+xml;base64,'.concat((0,d.dropdownIcon)((0,c.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,c.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))),'")')||void 0}),(function(e){return(0,c.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)}),(function(e){return(0,c.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,c.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})),(function(t){return t.manipulate((function(e){return e.alpha(.5)}),e.$placeholder)}))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,c.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0})),v=l.styled.option(o||(o=i.__makeTemplateObject(["\n    color: "," !important;\n"],["\n    color: "," !important;\n"])),(function(e){return(0,c.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,c.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})),(function(e){return e.manipulate((function(e){return e.alpha(.5)}))}))})),b=function(e,t,n){var r=(0,s.findFirst)(t.options,(function(e){return e.id===n}));if(!r&&!t.placeholder&&t.options.length>0){var o=(0,s.findFirst)(t.options,(function(e){return!!e.name}));o&&e.default(o.value||o.name,o.id,o.name)}else e.reference!==(null==r?void 0:r.id)&&e.set(r&&(r.value||r.name),null==r?void 0:r.id,null==r?void 0:r.name);return r&&r.id||""};t.DropdownFabric=function(e){var t=e.value,n=(0,u.useRef)(0),r=(0,u.useState)("object"!=typeof t&&t||""),o=r[0],i=r[1],l="object"==typeof t?[0!==n.current?o:b(t,e,t.reference),function(r){(0,s.cancelUITimeout)(n.current),i(r),n.current=(0,s.scheduleUITimeout)((function(){n.current=0,b(t,e,r)}),p.DEBOUNCE_NORMAL)}]:[o,i],c=l[0],d=l[1],f=(0,u.useState)(!!c),m=f[0],g=f[1];return(0,u.useEffect)((function(){return function(){(0,s.cancelUITimeout)(n.current)}}),[]),(0,a.jsxs)(h,{id:e.id,ref:e.onAutoFocus,tabIndex:e.tabIndex,required:e.required||!1,disabled:e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||!1,value:c,"aria-describedby":e.ariaDescribedBy,onChange:function(t){d(t.target.value),g(!0),e.onChange&&e.onChange(t.target.value)},onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){t.shiftKey&&"Enter"===t.key&&e.onSubmit?(t.preventDefault(),e.onSubmit()):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):e.onSubmit&&(t.preventDefault(),e.onSubmit()))},$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$errorVisible:m,$error:e.error||!1,$scale:e.styles.scale||1,$placeholder:e.placeholder&&""===c||!1,children:[e.placeholder&&(0,a.jsx)(v,{value:"",$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$error:e.error||!1,children:e.placeholder}),e.options.map((function(e,t){return e.name&&e.id&&(0,a.jsx)("option",{value:e.id,children:e.name},t)}))]})}},2466:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmailFabric=void 0;var r=n(1635),o=n(3162);t.EmailFabric=function(e){return(0,o.InputFabric)(r.__assign(r.__assign({type:"email",inputMode:"email",autoComplete:"email"},e),{placeholder:e.placeholder||"@"}))}},2076:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileFabric=t.FileThumbnailFabric=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(6540),l=n(9849),u=n(7624),s=n(6494),c=n(369),d=n(5747),f=n(3108),p=i.styled.div(g||(g=r.__makeTemplateObject(["\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    height: ",";\n    position: relative;\n    overflow: hidden;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em top 0.375em;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    cursor: default;\n\n    svg {\n        fill: ",";\n        transition: fill 0.15s ease-in-out;\n    }\n\n    > div,\n    > label {\n        position: absolute;\n        left: 0.75em;\n        right: 0.75em;\n        top: 0.75em;\n        bottom: 0.75em;\n        display: flex;\n        flex-direction: column;\n        justify-content: center;\n        align-items: center;\n    }\n\n    &:hover {\n        box-shadow: ",";\n    }\n\n    &:focus {\n        background-color: ",";\n        background-image: ",";\n        border-color: ",";\n        color: ",";\n        box-shadow: ",";\n    }\n"],["\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    height: ",";\n    position: relative;\n    overflow: hidden;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em top 0.375em;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    cursor: default;\n\n    svg {\n        fill: ",";\n        transition: fill 0.15s ease-in-out;\n    }\n\n    > div,\n    > label {\n        position: absolute;\n        left: 0.75em;\n        right: 0.75em;\n        top: 0.75em;\n        bottom: 0.75em;\n        display: flex;\n        flex-direction: column;\n        justify-content: center;\n        align-items: center;\n    }\n\n    &:hover {\n        box-shadow: ",";\n    }\n\n    &:focus {\n        background-color: ",";\n        background-image: ",";\n        border-color: ",";\n        color: ",";\n        box-shadow: ",";\n    }\n"])),(function(e){return"".concat(14*e.$scale,"em")}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return e.$error?'url("data:image/svg+xml;base64,'.concat((0,c.warningIcon)((0,u.color)(e.$errorColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))),'")'):void 0}),8/7,(function(e){return"".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px solid ").concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return(0,l.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return"transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?"0":"".concat(.375*e.$scale,"em 0.75em")}),(function(e){return e.$disabled?.65:1}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return!e.$disabled&&("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return!e.$disabled&&(0,u.color)(e.$backgroundColor)||void 0}),(function(e){return e.$errorVisible?void 0:"none"}),(function(e){return!e.$disabled&&(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)||void 0}),(function(e){return!e.$disabled&&(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))||void 0}),(function(e){return!e.$disabled&&("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0})),h=i.styled.label(y||(y=r.__makeTemplateObject(["\n    cursor: pointer;\n\n    * {\n        pointer-events: none;\n    }\n\n    > svg {\n        display: block;\n        height: ",";\n        margin-bottom: 0.375em;\n    }\n\n    > input {\n        width: 1px;\n        height: 1px;\n        opacity: 0;\n        overflow: hidden;\n        position: absolute;\n        z-index: -1;\n    }\n\n    > span {\n        display: block;\n        text-align: center;\n    }\n\n    > small {\n        display: block;\n        text-align: center;\n    }\n"],["\n    cursor: pointer;\n\n    * {\n        pointer-events: none;\n    }\n\n    > svg {\n        display: block;\n        height: ",";\n        margin-bottom: 0.375em;\n    }\n\n    > input {\n        width: 1px;\n        height: 1px;\n        opacity: 0;\n        overflow: hidden;\n        position: absolute;\n        z-index: -1;\n    }\n\n    > span {\n        display: block;\n        text-align: center;\n    }\n\n    > small {\n        display: block;\n        text-align: center;\n    }\n"])),(function(e){return"".concat(5*e.$scale,"em")})),v=i.styled.div(w||(w=r.__makeTemplateObject(["\n    > div {\n        display: block;\n        text-align: center;\n    }\n\n    > div:first-child {\n        font-weight: bold;\n    }\n\n    > div:last-of-type {\n        margin-bottom: 0.375em;\n    }\n"],["\n    > div {\n        display: block;\n        text-align: center;\n    }\n\n    > div:first-child {\n        font-weight: bold;\n    }\n\n    > div:last-of-type {\n        margin-bottom: 0.375em;\n    }\n"]))),b=i.styled.div(x||(x=r.__makeTemplateObject(["\n    > div {\n        display: inline-block;\n        width: 80%;\n        max-width: 300px;\n        height: 16px;\n        background-color: ",";\n        border-radius: 4px;\n        overflow: hidden;\n        margin-bottom: 0.375em;\n\n        > div {\n            width: 0%;\n            height: 16px;\n            background-color: ",";\n            background-image: linear-gradient(\n                45deg,\n                "," 25%,\n                transparent 25%,\n                transparent 50%,\n                "," 50%,\n                "," 75%,\n                transparent 75%,\n                transparent\n            );\n            background-size: 1rem 1rem;\n            transition: width 0.5s ease-out;\n        }\n    }\n\n    > span {\n        display: block;\n        text-align: center;\n    }\n"],["\n    > div {\n        display: inline-block;\n        width: 80%;\n        max-width: 300px;\n        height: 16px;\n        background-color: ",";\n        border-radius: 4px;\n        overflow: hidden;\n        margin-bottom: 0.375em;\n\n        > div {\n            width: 0%;\n            height: 16px;\n            background-color: ",";\n            background-image: linear-gradient(\n                45deg,\n                "," 25%,\n                transparent 25%,\n                transparent 50%,\n                "," 50%,\n                "," 75%,\n                transparent 75%,\n                transparent\n            );\n            background-size: 1rem 1rem;\n            transition: width 0.5s ease-out;\n        }\n    }\n\n    > span {\n        display: block;\n        text-align: center;\n    }\n"])),(function(e){return(0,u.color)(e.$color,(function(e){return e.manipulate((function(e){return e.alpha(.25)}))}))}),(function(e){return(0,u.color)(e.$color)}),(function(e){return(0,u.color)(e.$color,(function(e){return e.makeBlackOrWhite().manipulate((function(e){return e.alpha(.25)}))}))}),(function(e){return(0,u.color)(e.$color,(function(e){return e.makeBlackOrWhite().manipulate((function(e){return e.alpha(.25)}))}))}),(function(e){return(0,u.color)(e.$color,(function(e){return e.makeBlackOrWhite().manipulate((function(e){return e.alpha(.25)}))}))})),m=i.styled.div(k||(k=r.__makeTemplateObject(["\n    > img,\n    > svg {\n        display: block;\n        height: ",";\n        margin: 0.375em;\n    }\n\n    > div {\n        display: block;\n        text-align: center;\n        white-space: nowrap;\n        text-overflow: ellipsis;\n    }\n\n    > div:last-of-type {\n        margin-bottom: 0.75em;\n    }\n"],["\n    > img,\n    > svg {\n        display: block;\n        height: ",";\n        margin: 0.375em;\n    }\n\n    > div {\n        display: block;\n        text-align: center;\n        white-space: nowrap;\n        text-overflow: ellipsis;\n    }\n\n    > div:last-of-type {\n        margin-bottom: 0.75em;\n    }\n"])),(function(e){return"".concat(6*e.$scale,"em")}));t.FileThumbnailFabric=function(e){var t=(0,a.useState)({loading:e.controller.isImage,base64data:""}),n=t[0],r=t[1];return(0,a.useEffect)((function(){e.controller.isImage&&(n.loading||r({loading:!0,base64data:""}),e.controller.download(e.service).then((function(e){return r({loading:!1,base64data:e})})).catch((function(){return r({loading:!1,base64data:""})})))}),[e.controller.fileSlot.reference]),n.loading?(0,o.jsx)(o.Fragment,{children:e.loading}):n.base64data&&(e.host?(0,o.jsx)(e.host,{children:(0,o.jsx)("img",{src:n.base64data})}):(0,o.jsx)("img",{src:n.base64data}))||(0,o.jsx)(o.Fragment,{children:e.error})};var g,y,w,x,k;t.FileFabric=function(e){var n=(0,a.useState)(!1),r=n[0],i=n[1],c=(0,a.useState)(!1),g=c[0],y=c[1],w=(0,a.useState)(-1),x=w[0],k=w[1],_=(0,a.useState)(""),C=_[0],S=_[1],O=(0,a.useState)(!1),j=O[0],$=O[1],P=(0,a.useRef)(),F=e.disabled||e.controller.fileSlot.isFrozen||e.controller.fileSlot.isLocked||!1,E=e.styles.textColor?e.styles.textColor:e.styles.borderColor&&"transparent"!==e.styles.borderColor?e.styles.borderColor:(0,u.color)(e.styles.backgroundColor||"transparent",(function(e){return e.makeBlackOrWhite()})),R=function(t){F||(k(0),$(!0),e.controller.upload(t,e.service,(function(e){return k(l.Num.floor(e))})).then((function(){return k(-1)})).catch((function(e){S(e),k(-1)})))},T=function(){e.controller.fileSlot.hasValue&&!C&&-1===x&&(y(!0),$(!0),e.controller.delete(e.service).then((function(){return y(!1)})).catch((function(){return y(!1)})))};return(0,o.jsxs)(p,{ref:e.onAutoFocus,tabIndex:e.tabIndex||0,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){"Enter"===t.key?t.shiftKey?e.onSubmit&&(t.preventDefault(),e.onSubmit()):C||-1!==x||(e.controller.fileSlot.hasValue&&e.onSubmit?(t.preventDefault(),e.onSubmit()):P.current&&(t.preventDefault(),P.current.click())):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key?t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):e.onSubmit&&(t.preventDefault(),e.onSubmit()):"Delete"===t.key&&e.controller.fileSlot.hasValue&&!C&&-1===x&&(t.preventDefault(),T())},$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$errorVisible:j,$error:e.error||!1,$scale:e.styles.scale||1,$disabled:F,children:[!e.controller.fileSlot.hasValue&&!C&&-1===x&&(0,o.jsxs)(h,{onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),F||-1!==x||i(!0)},onDragOver:function(e){e.preventDefault(),e.stopPropagation()},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),i(!1)},onDrop:function(e){if(e.preventDefault(),e.stopPropagation(),i(!1),!F&&-1===x){var t=e.dataTransfer.files;t&&R(t)}},$scale:e.styles.scale||1,children:[f.uploadIcon,(0,o.jsx)("input",{ref:function(e){return P.current=e},type:"file",multiple:!1,tabIndex:-1,disabled:F,"aria-describedby":e.ariaDescribedBy,onChange:function(e){e.target&&e.target.files&&R(e.target.files)}}),(0,o.jsx)("span",{children:e.labels(r?"dragging":"explanation","")}),e.controller.limit>0&&(0,o.jsx)("small",{children:e.labels("limit","".concat(e.controller.limit,"Mb"))}),e.controller.allowedExtensions.length>0&&(0,o.jsx)("small",{children:e.labels("extensions",l.Str.iterateToString(e.controller.allowedExtensions,", "))})]}),!C&&-1!==x&&(0,o.jsxs)(b,{onDragOver:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault()},$color:E,children:[(0,o.jsx)("div",{children:(0,o.jsx)("div",{style:{width:"".concat(l.Num.range(x,0,100),"%")}})}),(0,o.jsx)("span",{children:e.labels("progress","".concat(l.Num.range(x,0,100),"%"))})]}),C&&(0,o.jsxs)(v,{onDragOver:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault()},children:[(0,o.jsx)("div",{children:e.labels("invalid-file","")}),(0,o.jsx)("div",{children:"invalid-amount"===C?e.labels("invalid-amount",""):"invalid-extension"===C?e.labels("invalid-extension",""):"invalid-size"===C?e.labels("invalid-size",""):e.labels("error",C)}),(0,o.jsx)(s.ButtonFabric,{styles:{baseColor:E,mode:"outline"},tabIndex:e.tabIndex||0,label:e.labels("retry",""),onClick:function(){return S("")}})]}),e.controller.fileSlot.hasValue&&!C&&-1===x&&(0,o.jsxs)(m,{onDragOver:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault()},$scale:e.styles.scale||1,children:[e.controller.isImage?(0,o.jsx)(t.FileThumbnailFabric,{controller:e.controller,service:e.service,loading:d.fileIcon,error:d.fileIcon}):d.fileIcon,(0,o.jsx)("div",{children:e.controller.fileSlot.string}),(0,o.jsx)(s.ButtonFabric,{styles:{baseColor:E,mode:"outline"},tabIndex:e.tabIndex||0,label:e.labels("delete",""),disabled:g,onClick:T})]})]})}},8956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleAutoSubmit=t.handleBlur=t.handleFocus=t.handleEvent=t.setReturnValue=void 0;t.setReturnValue=function(e,t){void 0!==t&&e(t)};t.handleEvent=function(e,n){return function(r){n&&(0,t.setReturnValue)(e,n(r))}};t.handleFocus=function(e,n,r){return function(o){e(!0),r&&(0,t.setReturnValue)(n,r(o))}};t.handleBlur=function(e,n,r){return function(o){e(!1),r&&(0,t.setReturnValue)(n,r(o))}};t.handleAutoSubmit=function(e){e.current.id=setTimeout((function(){return e.current.cb&&e.current.cb()}),200)}},3162:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFabric=t.InputElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(6540),l=n(9849),u=n(7624),s=n(8956),c=n(369),d=n(5442);t.InputElement=i.styled.input(f||(f=r.__makeTemplateObject(["\n    appearance: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em center;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:not(:disabled):not([readonly]) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        &:focus {\n            background-color: ",";\n            background-image: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: ",";\n            &::placeholder {\n                color: ",";\n                opacity: 0.3;\n            }\n        }\n    }\n"],["\n    appearance: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em center;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:not(:disabled):not([readonly]) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        &:focus {\n            background-color: ",";\n            background-image: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: ",";\n            &::placeholder {\n                color: ",";\n                opacity: 0.3;\n            }\n        }\n    }\n"])),(function(e){return(0,u.color)(e.$error&&"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?e.$errorColor:e.$backgroundColor)}),(function(e){return e.$error?'url("data:image/svg+xml;base64,'.concat((0,c.warningIcon)((0,u.color)(e.$errorColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))),'")'):void 0}),8/7,(function(e){return"".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px solid ").concat((0,u.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,u.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,u.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return(0,l.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return"transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?"0":"".concat(.375*e.$scale,"em 0.75em")}),(function(e){return e.$error&&"".concat(8/7+.75,"em")||void 0}),(function(e){return(0,u.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,u.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return e.$errorVisible?void 0:"none"}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}));var f;t.InputFabric=function(e){var n=e.value,r=(0,a.useRef)({duration:0,handle:0}),i=(0,a.useState)(!1),u=i[0],c=i[1],f=(0,a.useState)("object"==typeof n?(0,l.castToString)(n.pristine):n||""),p=f[0],h=f[1],v="object"==typeof n?[u?p:n.string,function(t){(0,l.cancelUITimeout)(r.current.handle),h(t);var o=l.Num.range(2*r.current.duration,d.DEBOUNCE_MIN,d.DEBOUNCE_MAX);r.current.handle=(0,l.scheduleUITimeout)((function(){var o=l.DateTime.precise;r.current.handle=0,r.current.update=function(){r.current.duration=l.DateTime.elapsed(o,!0),r.current.update=void 0},"url"===e.type&&t&&-1===t.toLowerCase().indexOf("://")?n.pristine="https://".concat(t):n.pristine=t||void 0}),o)}]:[p,h],b=v[0],m=v[1],g=(0,a.useState)(!!b),y=g[0],w=g[1],x=(0,a.useRef)();return(0,a.useEffect)((function(){x.current&&!u&&(x.current.value=b)}),[b]),(0,a.useEffect)((function(){return function(){(0,l.cancelUITimeout)(r.current.handle)}}),[]),r.current.update&&r.current.update(),(0,o.jsx)(t.InputElement,{id:e.id,ref:function(t){e.onAutoFocus&&e.onAutoFocus(t),x.current=t},type:e.type||"text",list:e.list,tabIndex:e.tabIndex,placeholder:e.placeholder,required:e.required||!1,disabled:e.disabled||!1,readOnly:e.readOnly||"object"==typeof n&&(n.isFrozen||n.isLocked)||!1,maxLength:e.maxLength||void 0,defaultValue:b,name:e.autoComplete,autoComplete:e.autoComplete||"off",inputMode:e.inputMode||"text","aria-describedby":e.ariaDescribedBy,onChange:function(t){m(t.target.value),w(!0),e.onChange&&(0,s.setReturnValue)(m,e.onChange(t.target.value))},onFocus:(0,s.handleFocus)(c,m,e.onFocus),onBlur:(0,s.handleBlur)(c,m,e.onBlur),onKeyDown:function(t){"Enter"===t.key&&e.onSubmit?(t.preventDefault(),e.onSubmit()):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):e.onSubmit&&(t.preventDefault(),e.onSubmit()))},$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$errorVisible:y,$error:e.error||!1,$scale:e.styles.scale||1})}},8899:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixFabric=void 0;var r,o,i=n(1635),a=n(4848),l=n(780),u=n(6540),s=n(9849),c=n(7624),d=n(8630),f=n(8227),p=n(5442),h=l.styled.div(r||(r=i.__makeTemplateObject(["\n    overflow-x: auto;\n    scroll-behavior: smooth;\n    scrollbar-width: none;\n    -ms-overflow-style: none;\n    -webkit-overflow-scrolling: touch;\n    -webkit-tap-highlight-color: transparent;\n\n    &::-webkit-scrollbar {\n        display: none;\n    }\n"],["\n    overflow-x: auto;\n    scroll-behavior: smooth;\n    scrollbar-width: none;\n    -ms-overflow-style: none;\n    -webkit-overflow-scrolling: touch;\n    -webkit-tap-highlight-color: transparent;\n\n    &::-webkit-scrollbar {\n        display: none;\n    }\n"]))),v=l.styled.table(o||(o=i.__makeTemplateObject(["\n    display: table;\n    width: 100%;\n    border-collapse: collapse;\n    font-size: 1em;\n    line-height: 1.5em;\n\n    > thead > tr {\n        > th {\n            text-align: center;\n            vertical-align: bottom;\n            font-weight: normal;\n            color: ",";\n            background-color: ",";\n            border-bottom: 1px solid ",";\n            cursor: default;\n            padding-top: 0.5em;\n            padding-bottom: 0.5em;\n\n            &:first-child {\n                background-color: transparent;\n            }\n        }\n\n        > th + th {\n            padding-left: 8px;\n            padding-right: 8px;\n        }\n    }\n\n    > tbody {\n        > tr {\n            > th {\n                text-align: left;\n                font-weight: normal;\n                padding-right: 8px;\n                padding-top: 0.5em;\n                padding-bottom: 0.5em;\n                color: ",";\n                border-bottom: 1px solid ",";\n                cursor: default;\n                min-width: 50%;\n\n                > small {\n                    opacity: 0.8;\n                }\n            }\n\n            > td {\n                position: relative;\n                border-bottom: 1px solid ",";\n\n                > label {\n                    display: flex;\n                    justify-content: center;\n                    position: absolute;\n                    left: 0;\n                    top: 0;\n                    right: 0;\n                    bottom: 0;\n                    padding-left: 0;\n\n                    > span:nth-child(2) {\n                        position: absolute;\n                    }\n\n                    > span:last-child {\n                        position: relative;\n                        align-self: center;\n                    }\n                }\n            }\n        }\n\n        > tr:last-child {\n            > th,\n            > td {\n                border-bottom: none;\n            }\n        }\n    }\n"],["\n    display: table;\n    width: 100%;\n    border-collapse: collapse;\n    font-size: 1em;\n    line-height: 1.5em;\n\n    > thead > tr {\n        > th {\n            text-align: center;\n            vertical-align: bottom;\n            font-weight: normal;\n            color: ",";\n            background-color: ",";\n            border-bottom: 1px solid ",";\n            cursor: default;\n            padding-top: 0.5em;\n            padding-bottom: 0.5em;\n\n            &:first-child {\n                background-color: transparent;\n            }\n        }\n\n        > th + th {\n            padding-left: 8px;\n            padding-right: 8px;\n        }\n    }\n\n    > tbody {\n        > tr {\n            > th {\n                text-align: left;\n                font-weight: normal;\n                padding-right: 8px;\n                padding-top: 0.5em;\n                padding-bottom: 0.5em;\n                color: ",";\n                border-bottom: 1px solid ",";\n                cursor: default;\n                min-width: 50%;\n\n                > small {\n                    opacity: 0.8;\n                }\n            }\n\n            > td {\n                position: relative;\n                border-bottom: 1px solid ",";\n\n                > label {\n                    display: flex;\n                    justify-content: center;\n                    position: absolute;\n                    left: 0;\n                    top: 0;\n                    right: 0;\n                    bottom: 0;\n                    padding-left: 0;\n\n                    > span:nth-child(2) {\n                        position: absolute;\n                    }\n\n                    > span:last-child {\n                        position: relative;\n                        align-self: center;\n                    }\n                }\n            }\n        }\n\n        > tr:last-child {\n            > th,\n            > td {\n                border-bottom: none;\n            }\n        }\n    }\n"])),(function(e){return e.$textColor}),(function(e){return(0,c.color)(e.$textColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))}))}),(function(e){return(0,c.color)(e.$textColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))}))}),(function(e){return e.$textColor}),(function(e){return(0,c.color)(e.$textColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))}))}),(function(e){return(0,c.color)(e.$textColor,(function(e){return e.manipulate((function(e){return e.alpha(.15)}))}))})),b=0;t.MatrixFabric=function(e){var t=(0,u.useState)((function(){return s.SHA2.SHA2_256("Matrix"+b++)}))[0],n=(0,u.useRef)(0),r=(0,u.useRef)({}),o=(0,u.useState)({})[1],l={$disabled:e.disabled||e.readOnly||!1,$color:e.styles.backgroundColor,$backgroundColor:e.styles.backgroundColor!==e.styles.borderColor&&e.styles.backgroundColor||"transparent",$borderColor:"transparent"===e.styles.borderColor&&"transparent"===e.styles.backgroundColor&&(0,c.color)(e.styles.textColor,(function(e){return e.makeUnclear("#000")}))||(0,c.color)(e.styles.borderColor)!==(0,c.color)(e.styles.backgroundColor)&&e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$scale:e.styles.scale||1,$label:!1},m=function(t,i){"object"==typeof t.value&&((0,s.cancelUITimeout)(n.current),r.current[t.id]=i?i.id:"",o({}),n.current=(0,s.scheduleUITimeout)((function(){n.current=0,(0,s.each)(r.current,(function(t,n){var o=(0,s.findFirst)(e.rows,(function(e){return e.id===n}));if(delete r.current[n],o&&"object"==typeof o.value){var i=t&&(0,s.findFirst)(e.columns,(function(e){return e.id===t}))||void 0;o.value.set(i&&(i.value||i.name),null==i?void 0:i.id,null==i?void 0:i.name)}}),{keys:!0})}),p.DEBOUNCE_NORMAL)),t.onChange&&t.onChange(i&&i.id||"")};return(0,u.useEffect)((function(){return function(){(0,s.cancelUITimeout)(n.current)}}),[]),(0,a.jsx)(h,{children:(0,a.jsxs)(v,i.__assign({},l,{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"col"}),e.columns.map((function(e,t){return(0,a.jsx)("th",{scope:"col",children:e.label||e.name||"..."},t)}))]})}),(0,a.jsx)("tbody",{children:e.rows.map((function(n,o){return(0,a.jsxs)("tr",{children:[(0,a.jsxs)("th",{scope:"row",children:[n.label||"...",(n.required||e.required)&&!e.styles.hideRequiredIndicator&&(0,a.jsx)(f.RequiredIndicatorFabric,{$errorColor:e.styles.errorColor}),n.explanation&&(0,a.jsxs)("small",{children:[(0,a.jsx)("br",{}),n.explanation]})]}),e.columns.map((function(u,c){var f=("object"==typeof n.value?(0,s.castToString)(r.current[n.id],n.value.reference||""):n.value)===u.id;return(0,a.jsx)("td",{children:(0,a.jsxs)(d.RadiobuttonLabelElement,i.__assign({},l,{children:[(0,a.jsx)("input",{ref:0===o&&0===c&&e.onAutoFocus||void 0,type:"radio",name:t+o,checked:f,tabIndex:n.tabIndex||e.tabIndex,"aria-describedby":e.ariaDescribedBy,disabled:e.disabled||e.readOnly||"object"==typeof n.value&&(n.value.isFrozen||n.value.isLocked)||!1,onChange:function(){return m(n,u)},onClick:function(){e.allowUnselect&&f&&m(n,void 0)},onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){if((e.allowUnselect||!f)&&("Enter"===t.key||" "===t.key)&&!t.shiftKey)return t.preventDefault(),void m(n,!f&&u||void 0);"Enter"===t.key&&t.shiftKey&&e.onSubmit?e.onSubmit():"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&0===o&&(t.preventDefault(),e.onCancel()):e.onSubmit&&o+1===e.rows.length&&(t.preventDefault(),e.onSubmit()))}}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}))},o+"-"+c)}))]},o)}))})]}))})}},4774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectFabric=void 0;var r,o,i,a,l,u=n(1635),s=n(4848),c=n(780),d=n(6540),f=n(9849),p=n(8956),h=n(7624),v=n(5720),b=n(3657),m=n(369),g=c.styled.div(r||(r=u.__makeTemplateObject(["\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: 1em, ","em;\n    background-position:\n        right 0.375em center,\n        right 1.75em center;\n    border: ",";\n    border-radius: ",";\n    padding: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    cursor: default;\n\n    > div:first-child {\n        display: flex;\n        align-items: center;\n        flex-wrap: wrap;\n        flex-direction: row;\n    }\n\n    &:not(:disabled) {\n        opacity: 1;\n\n        ","\n    }\n"],["\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: 1em, ","em;\n    background-position:\n        right 0.375em center,\n        right 1.75em center;\n    border: ",";\n    border-radius: ",";\n    padding: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    cursor: default;\n\n    > div:first-child {\n        display: flex;\n        align-items: center;\n        flex-wrap: wrap;\n        flex-direction: row;\n    }\n\n    &:not(:disabled) {\n        opacity: 1;\n\n        ","\n    }\n"])),(function(e){return(0,h.color)(e.$error&&"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?e.$errorColor:e.$backgroundColor)}),(function(e){return'url("data:image/svg+xml;base64,'.concat((0,v.dropdownIcon)((0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))),'")')+(e.$error?',url("data:image/svg+xml;base64,'.concat((0,m.warningIcon)((0,h.color)(e.$errorColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))),'")'):"")}),8/7,(function(e){return"".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px solid ").concat((0,h.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,f.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return"transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?"0 1.75em 0 0":"".concat(.375*e.$scale/2,"em ").concat(e.$error?1.75+8/7+.375:1.75,"em ").concat(.375*e.$scale/2,"em ").concat(5/14*e.$scale,"em")}),(function(e){return e.$focus?"\n            background-color: ".concat((0,h.color)(e.$backgroundColor),";\n            background-image: ").concat(!e.$errorVisible&&'url("data:image/svg+xml;base64,'.concat((0,v.dropdownIcon)((0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))),'")')||void 0,";\n            border-color: ").concat((0,h.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor),";\n            box-shadow: ").concat(("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,h.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0,";\n        "):"\n            &:hover {\n                box-shadow: ".concat(("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,h.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0,";\n            }\n        ")})),y=c.styled.input(o||(o=u.__makeTemplateObject(["\n    flex: 1 1 0%;\n    min-width: 60px;\n    background-color: transparent;\n    border: 0;\n    outline: 0;\n    padding: 0;\n    font-size: 1em;\n    line-height: 1.5em;\n    color: ",";\n    appearance: none;\n    overflow: hidden;\n    padding: 0;\n    margin: ",";\n    opacity: ",";\n\n    &:first-child {\n        margin-left: 0.375em;\n    }\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:focus {\n        &::placeholder {\n            color: ",";\n            opacity: 0.3;\n        }\n    }\n\n    &::-webkit-search-cancel-button {\n        display: none;\n    }\n"],["\n    flex: 1 1 0%;\n    min-width: 60px;\n    background-color: transparent;\n    border: 0;\n    outline: 0;\n    padding: 0;\n    font-size: 1em;\n    line-height: 1.5em;\n    color: ",";\n    appearance: none;\n    overflow: hidden;\n    padding: 0;\n    margin: ",";\n    opacity: ",";\n\n    &:first-child {\n        margin-left: 0.375em;\n    }\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:focus {\n        &::placeholder {\n            color: ",";\n            opacity: 0.3;\n        }\n    }\n\n    &::-webkit-search-cancel-button {\n        display: none;\n    }\n"])),(function(e){return(0,h.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,h.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return"".concat(.375*e.$scale/2,"em 0")}),(function(e){return e.$visible?"1":"0"}),(function(e){return(0,h.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,h.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return(0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))})),w=c.styled.div(i||(i=u.__makeTemplateObject(["\n    margin: ",";\n    padding-left: 0.5em;\n    cursor: default;\n    background-color: ",";\n    border: ",";\n    border-radius: ",";\n    color: ",";\n    display: flex;\n    align-items: stretch;\n    max-width: 50%;\n\n    > div {\n        font-size: 0.8em;\n        overflow: hidden;\n        white-space: nowrap;\n        text-overflow: ellipsis;\n    }\n\n    > button {\n        appearance: none;\n        background-color: transparent;\n        border: none;\n        outline: 0;\n        width: 1.6em;\n        min-width: 1.6em;\n        background-image: ",";\n        background-repeat: no-repeat;\n        background-size: 1em;\n        background-position: center;\n        opacity: ",";\n\n        &:hover {\n            opacity: ",";\n        }\n    }\n"],["\n    margin: ",";\n    padding-left: 0.5em;\n    cursor: default;\n    background-color: ",";\n    border: ",";\n    border-radius: ",";\n    color: ",";\n    display: flex;\n    align-items: stretch;\n    max-width: 50%;\n\n    > div {\n        font-size: 0.8em;\n        overflow: hidden;\n        white-space: nowrap;\n        text-overflow: ellipsis;\n    }\n\n    > button {\n        appearance: none;\n        background-color: transparent;\n        border: none;\n        outline: 0;\n        width: 1.6em;\n        min-width: 1.6em;\n        background-image: ",";\n        background-repeat: no-repeat;\n        background-size: 1em;\n        background-position: center;\n        opacity: ",";\n\n        &:hover {\n            opacity: ",";\n        }\n    }\n"])),(function(e){return"".concat(.375*e.$scale/2,"em 0.375em ").concat(.375*e.$scale/2,"em 0")}),(function(e){return e.$filled?(0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()}))):void 0}),(function(e){return e.$filled?void 0:"1px solid ".concat((0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()}))))}),(function(e){return 0!==e.$roundness?"".concat(e.$roundness||5,"px"):"0px"}),(function(e){return(0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})),(function(t){return e.$filled?t.makeBlackOrWhite():t}))}),(function(e){return'url("data:image/svg+xml;base64,'.concat((0,b.closeIcon)((0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})),(function(t){return e.$filled?t.makeBlackOrWhite():t}))),'")')}),(function(e){return e.$readOnly?"0.4":"0.7"}),(function(e){return e.$readOnly?"0.4":"1"})),x=c.styled.div(a||(a=u.__makeTemplateObject(["\n    position: fixed;\n    display: block;\n    top: 0;\n    left: 0;\n    z-index: 2147483638;\n    cursor: default;\n    box-sizing: border-box;\n    padding: ",";\n\n    > div {\n        background-color: ",";\n        border-radius: ",";\n        border: ",";\n        overflow: auto;\n        scroll-behavior: auto;\n        scrollbar-width: none;\n        -webkit-overflow-scrolling: touch;\n        -webkit-tap-highlight-color: transparent;\n        -ms-overflow-style: none;\n\n        &::-webkit-scrollbar {\n            display: none;\n        }\n    }\n"],["\n    position: fixed;\n    display: block;\n    top: 0;\n    left: 0;\n    z-index: 2147483638;\n    cursor: default;\n    box-sizing: border-box;\n    padding: ",";\n\n    > div {\n        background-color: ",";\n        border-radius: ",";\n        border: ",";\n        overflow: auto;\n        scroll-behavior: auto;\n        scrollbar-width: none;\n        -webkit-overflow-scrolling: touch;\n        -webkit-tap-highlight-color: transparent;\n        -ms-overflow-style: none;\n\n        &::-webkit-scrollbar {\n            display: none;\n        }\n    }\n"])),(function(e){return"calc(0.2rem + ".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px) 0")}),(function(e){return(0,h.color)("transparent"!==e.$backgroundColor?e.$backgroundColor:"#fff")}),(function(e){return(0,f.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return"".concat(("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize)||1,"px solid ").concat((0,h.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(t){return t.makeUnclear(e.$textColor||"#000")})))})),k=c.styled.div(l||(l=u.__makeTemplateObject(["\n    display: flex;\n    flex-direction: column;\n    font-size: 1em;\n    line-height: 1.5em;\n    width: 100%;\n    padding: 0.375em 0.75em;\n    padding-right: 4em;\n    opacity: ",";\n    background-color: ",";\n    color: ",";\n\n    > div:nth-child(2) {\n        font-size: 0.8em;\n        line-height: 1.3em;\n    }\n"],["\n    display: flex;\n    flex-direction: column;\n    font-size: 1em;\n    line-height: 1.5em;\n    width: 100%;\n    padding: 0.375em 0.75em;\n    padding-right: 4em;\n    opacity: ",";\n    background-color: ",";\n    color: ",";\n\n    > div:nth-child(2) {\n        font-size: 0.8em;\n        line-height: 1.3em;\n    }\n"])),(function(e){return e.$disabled?"0.5":"1"}),(function(e){return e.$selected&&!e.$disabled?(0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()}))):"transparent"}),(function(e){return(0,h.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,h.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})),(function(t){return e.$selected&&!e.$disabled?t.makeBlackOrWhite():t}))}));t.MultiSelectFabric=function(e){var t=(0,f.filter)(e.options,(function(e){var t;return!(!0!==(null===(t=e.value)||void 0===t?void 0:t.value)||!e.name)})),n=(0,d.useState)(!1),r=n[0],o=n[1],i=(0,d.useState)(""),a=i[0],l=i[1],c=(0,d.useState)(""),h=c[0],v=c[1],b=(0,d.useState)(),m=b[0],_=b[1],C=(0,d.useState)(t.length>0),S=C[0],O=C[1],j=(0,d.useRef)({position:0,time:0}),$=(0,d.useRef)(!1),P=(0,d.useRef)(),F=(0,d.useRef)(null),E=(0,d.useRef)(null),R=(0,d.useRef)(null),T=r&&(0,f.filter)(e.options,(function(e){var t;return!0!==(null===(t=e.value)||void 0===t?void 0:t.value)&&e.name&&!e.disabled&&(!a||-1!==e.name.toLowerCase().indexOf(a.toLowerCase()))||!1}))||[],N={$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$errorVisible:S,$error:e.error||!1,$scale:e.styles.scale||1,$placeholder:e.placeholder&&0===t.length&&(!r||!a)||!1,$focus:r},B=function(){var e,t;j.current={position:(null===(t=null===(e=E.current)||void 0===e?void 0:e.firstElementChild)||void 0===t?void 0:t.scrollTop)||0,time:f.DateTime.now}};return!r&&h&&(v(""),$.current=!1),!r&&m&&_(void 0),(0,s.jsxs)(g,u.__assign({ref:F,onMouseDown:function(e){var t=e.target.tagName.toLowerCase();!r||"button"===t||"input"===t&&a?"input"!==t&&(e.preventDefault(),e.stopPropagation(),P.current&&P.current.focus()):(e.preventDefault(),e.stopPropagation(),P.current&&P.current.blur())},role:"combobox","aria-haspopup":"listbox","aria-owns":r&&"".concat(e.id,"-options")||void 0,"aria-controls":e.id,"aria-expanded":r,"aria-describedby":e.ariaDescribedBy},N,{children:[(0,s.jsxs)("div",{children:[t.map((function(t,n){var r,o;return(0,s.jsxs)(w,u.__assign({$filled:"outline"!==e.styles.pills,$readOnly:t.disabled||(null===(r=t.value)||void 0===r?void 0:r.isFrozen)||(null===(o=t.value)||void 0===o?void 0:o.isLocked)||!1},N,{children:[(0,s.jsx)("div",{children:t.label||t.name}),(0,s.jsx)("button",{onClick:function(){var e,n;!t.value||t.disabled||(null===(e=t.value)||void 0===e?void 0:e.isFrozen)||(null===(n=t.value)||void 0===n?void 0:n.isLocked)||(t.value.value=!1,B(),O(!0))}})]}),t.id||n)})),(0,s.jsx)(y,u.__assign({ref:function(n){e.onAutoFocus&&0===t.length&&e.onAutoFocus(n),P.current=n},id:e.id,type:"search",autoComplete:"off",spellCheck:"false",inputMode:"text",value:r&&a||"",placeholder:!t.length&&e.placeholder||"",onChange:function(e){return l(e.target.value||"")},onFocus:(0,p.handleFocus)(o,l,e.onFocus),onBlur:(0,p.handleBlur)(o,l,e.onBlur),onKeyDown:function(n){var r,o;if("Enter"===n.key&&h){n.preventDefault();var i=0,l=(0,f.findFirst)(T,(function(e){return i++,e.id===h}));!l||l.disabled||!l.value||l.value.isFrozen||l.value.isLocked||e.maxSelected&&!(t.length<e.maxSelected)||(l.value.value=!0,B(),v((null===(r=(0,f.arrayItem)(T,i))||void 0===r?void 0:r.id)||""),O(!0))}else if("Escape"===n.key)n.currentTarget.blur();else if("Tab"===n.key)n.currentTarget.blur(),n.shiftKey?e.onCancel&&(n.preventDefault(),e.onCancel()):e.onSubmit&&(n.preventDefault(),e.onSubmit());else if("ArrowDown"===n.key||"ArrowUp"===n.key||"ArrowLeft"===n.key||"ArrowRight"===n.key){if($.current=!0,h){var u=!1,s="";if(("ArrowDown"===n.key||"ArrowRight"===n.key?f.eachReverse:f.each)(T,(function(e){e.id===h?u=!0:u||(s=e.id)})),u&&s)return void v(s)}v((null===(o=(0,f.arrayItem)(T,"ArrowUp"===n.key||"ArrowLeft"===n.key?T.length-1:0))||void 0===o?void 0:o.id)||"")}else if("Backspace"===n.key&&!a&&t.length>0){var c=t[t.length-1];c.value&&(c.value.value=!1,B(),O(!0))}},$visible:!!(r||!t.length&&e.placeholder)},N))]}),r&&T.length>0&&(0,s.jsx)(e.overlay,{onEffect:function(){var e,t=function(){var e,t;if(F.current&&E.current){var n=F.current.getBoundingClientRect(),r=E.current.getBoundingClientRect(),o=(null===(e=E.current.firstElementChild)||void 0===e?void 0:e.getBoundingClientRect())||r,i=(F.current.ownerDocument.documentElement.clientHeight||window.innerHeight)-n.bottom,a=((null===(t=E.current.firstElementChild)||void 0===t?void 0:t.scrollHeight)||0)>i&&n.top>i,l={left:r.left+(n.left-r.left),top:r.top+(a?n.top-r.height-r.top+N.$borderSize-1:n.bottom-r.top-N.$borderSize+1),width:n.width,height:f.Num.max((a?n.top:i)-f.Num.max(r.height-o.height,0),120)};(0,f.compare)(m,l,!0)||_(l)}};if(m||t(),f.DateTime.elapsed(j.current.time)<300&&(null===(e=E.current)||void 0===e?void 0:e.firstElementChild)&&E.current.firstElementChild.scrollTo(0,j.current.position),R.current&&(R.current.scrollIntoView({behavior:"auto",block:"nearest"}),$.current=!1),F.current){var n="ResizeObserver"in window&&new ResizeObserver((function(){return t()})),r=F.current.getBoundingClientRect(),o=r.top,i=r.width,a=function(){if(F.current){var e=F.current.getBoundingClientRect();e.top!==o||e.width!==i?t():l=requestAnimationFrame(a)}},l=requestAnimationFrame(a);return n&&n.observe(F.current),function(){n&&n.disconnect(),cancelAnimationFrame(l)}}},children:(0,s.jsx)(x,u.__assign({ref:E,id:"".concat(e.id,"-options"),style:{transform:"translate(".concat((null==m?void 0:m.left)||0,"px,").concat((null==m?void 0:m.top)||0,"px)"),maxWidth:"full"!==e.styles.overlayWidth?null==m?void 0:m.width:void 0,width:"full"===e.styles.overlayWidth?null==m?void 0:m.width:void 0,opacity:m?1:0}},N,{children:(0,s.jsx)("div",{style:{maxHeight:null==m?void 0:m.height},children:T.map((function(n,r){var o,i;return(0,s.jsxs)(k,u.__assign({ref:$.current&&h===n.id&&R||void 0,"data-id":n.id,role:"option","aria-selected":h===n.id,onMouseMove:function(){return v(n.id)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(){var o;!n.value||n.disabled||n.value.isFrozen||n.value.isLocked||e.maxSelected&&!(t.length<e.maxSelected)||(n.value.value=!0,B(),v((null===(o=(0,f.arrayItem)(T,r+1))||void 0===o?void 0:o.id)||""),O(!0))},$disabled:n.disabled||(null===(o=n.value)||void 0===o?void 0:o.isFrozen)||(null===(i=n.value)||void 0===i?void 0:i.isLocked)||e.maxSelected&&t.length>=e.maxSelected||!1,$selected:h===n.id},N,{children:[(0,s.jsx)("div",{children:n.label||n.name}),n.description&&(0,s.jsx)("div",{children:n.description})]}),n.id||r)}))},"".concat(e.id,"-list"))}),"".concat(e.id,"-options"))})]}))}},7062:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoiceFabric=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(6540),u=n(9849),s=n(8956),c=n(6494),d=n(4539),f=n(5442),p=a.styled.div(r||(r=o.__makeTemplateObject(["\n    display: table;\n    width: ",";\n\n    > * {\n        display: ",";\n        width: ",";\n        margin-top: 8px;\n        margin-right: ",";\n\n        &:nth-child(even) {\n            margin-right: ",";\n        }\n\n        &:last-child {\n            margin-right: ",";\n        }\n\n        > span {\n            display: ",";\n            justify-content: ",";\n            text-align: ",";\n            overflow: hidden;\n        }\n    }\n"],["\n    display: table;\n    width: ",";\n\n    > * {\n        display: ",";\n        width: ",";\n        margin-top: 8px;\n        margin-right: ",";\n\n        &:nth-child(even) {\n            margin-right: ",";\n        }\n\n        &:last-child {\n            margin-right: ",";\n        }\n\n        > span {\n            display: ",";\n            justify-content: ",";\n            text-align: ",";\n            overflow: hidden;\n        }\n    }\n"])),(function(e){return"equal"===e.$alignment?"auto":"100%"}),(function(e){return"vertical"===e.$alignment||"equal"===e.$alignment||"full"===e.$alignment?"block":"inline-block"}),(function(e){return("equal"===e.$alignment||"full"===e.$alignment?"100%":"columns"===e.$alignment&&"calc(50% - 4px)")||void 0}),(function(e){return("columns"===e.$alignment||"horizontal"===e.$alignment)&&"".concat(e.$margin||8,"px")||void 0}),(function(e){return"columns"===e.$alignment?"0px":void 0}),(function(e){return"horizontal"===e.$alignment?"0px":void 0}),(function(e){return"full"===e.$alignment?"flex":void 0}),(function(e){return"full"===e.$alignment?"center":void 0}),(function(e){return"full"===e.$alignment?"center":void 0})),h=function(e,t,n){var r=(0,u.findFirst)(t,(function(e){return e.id===n}));return e.reference!==(null==r?void 0:r.id)&&e.set(r&&(r.value||r.name),null==r?void 0:r.id,null==r?void 0:r.name),r&&r.id||""};t.MultipleChoiceFabric=function(e){var t=e.value,n=(0,l.useRef)(0),r=(0,l.useRef)({}),o=(0,l.useState)("object"!=typeof t&&t||""),a=o[0],v=o[1],b="object"==typeof t?[0!==n.current?a:h(t,e.buttons,t.reference),function(r){(0,u.cancelUITimeout)(n.current),v(r),n.current=(0,u.scheduleUITimeout)((function(){n.current=0,h(t,e.buttons,r),e.autoSubmit&&r&&(0,s.handleAutoSubmit)(w)}),f.DEBOUNCE_NORMAL)}]:[a,v],m=b[0],g=b[1],y=(0,l.useState)({})[1],w=(0,l.useRef)({id:0,cb:e.onSubmit}),x=function(o){if(!o.url){var i=o.slot?(0,u.castToBoolean)(r.current[o.id],o.slot.value):m===o.id;if(o.slot)(0,u.cancelUITimeout)(n.current),r.current[o.id]=!i,y({}),n.current=(0,u.scheduleUITimeout)((function(){n.current=0,(0,u.each)(r.current,(function(t,n){var o=(0,u.findFirst)(e.buttons,(function(e){return e.id===n}));delete r.current[n],o&&o.slot&&(o.slot.value=t)}),{keys:!0})}),f.DEBOUNCE_NORMAL);else{var a=i&&!e.required?"":o.id;w.current.id&&(clearTimeout(w.current.id),w.current.id=0),g(a),e.onChange&&e.onChange(a),"object"!=typeof t&&e.autoSubmit&&a&&(0,s.handleAutoSubmit)(w)}o.onChange&&o.onChange(!(o.slot||!e.required)||!i)}};return(0,l.useEffect)((function(){return function(){(0,u.cancelUITimeout)(n.current)}}),[]),w.current.cb=e.onSubmit,(0,i.jsx)(p,{$alignment:e.alignment||"vertical",$margin:e.styles.margin,children:e.buttons.map((function(n,o){var a=n.slot?(0,u.castToBoolean)(r.current[n.id],n.slot.value):m===n.id;return n.slot&&n.slot.confirm(),("preview"===e.view||n.name||n.description)&&(0,i.jsx)(c.ButtonFabric,{styles:{baseColor:n.color||e.styles.color,mode:a?"fill":"outline",hover:"outline",outlineSize:e.styles.outlineSize,roundness:e.styles.roundness,scale:e.styles.scale},hyperlink:n.url&&{url:n.url,target:n.target||"blank"}||void 0,label:n.label||n.name||"...",description:n.description,icon:n.url&&"self"!==n.target&&d.hyperlinkIcon||void 0,iconPosition:"right",tabIndex:n.tabIndex||e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,disabled:n.disabled||e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||n.slot&&(n.slot.isFrozen||n.slot.isLocked)||!1,onAutoFocus:(n.slot||!m?0===o:a)&&e.onAutoFocus||void 0,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){if(t.shiftKey&&"Enter"===t.key&&e.onSubmit)t.preventDefault(),e.onSubmit();else if("Escape"===t.key)t.currentTarget.blur();else if("Tab"===t.key)t.shiftKey?e.onCancel&&0===o&&(t.preventDefault(),e.onCancel()):e.onSubmit&&o+1===e.buttons.length&&(t.preventDefault(),e.onSubmit());else{var n=1===t.key.length&&t.key.charCodeAt(0)||0,r=(n<=57?n-48:0)||(n<=90?n-64:0)||(n<=122?n-96:0);if(r>0&&r<=26){var i=(0,u.arrayItem)(e.buttons,r-1);i&&x(i)}}},onClick:function(){return x(n)}},n.id||o)}))})}},3555:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFabric=void 0;var r=n(4848),o=n(6540),i=n(9849),a=n(3162),l=n(8956),u=n(5442);t.NumberFabric=function(e){var t,n=e.value,s=(0,o.useRef)({duration:0,handle:0}),c=(0,o.useState)("text"),d=c[0],f=c[1],p=(0,o.useState)(!1),h=p[0],v=p[1],b=(0,o.useState)("object"==typeof n?(0,i.castToString)(n.pristine):"number"==typeof n?n.toString():""),m=b[0],g=b[1],y="object"==typeof n?[h?m:n.hasValue?n.slot.formatString(n.slot.digits?i.Str.padLeft(n.value,"0",n.slot.digits,!1,!0):((null===(t=e.l10n)||void 0===t?void 0:t.locale)||i.L10n.Locales).number(n.value,n.slot.precision,!!n.slot.separator),1!==n.value):"",function(e){(0,i.cancelUITimeout)(s.current.handle),g(e);var t=i.Num.range(2*s.current.duration,u.DEBOUNCE_MIN,u.DEBOUNCE_MAX);s.current.handle=(0,i.scheduleUITimeout)((function(){var t=i.DateTime.precise;s.current.handle=0,s.current.update=function(){s.current.duration=i.DateTime.elapsed(t,!0),s.current.update=void 0},n.pristine=""!==e?n.slot.toValue(e):void 0,n.pristine=e||void 0}),t)}]:[m,g],w=y[0],x=y[1],k=(0,o.useState)(!!w),_=k[0],C=k[1],S=(0,o.useRef)(0),O=h&&"object"==typeof n?(0,i.castToFloat)(m):0,j=e.error||h&&"object"==typeof n&&((0,i.isNumberFinite)(n.slot.minimum)&&O<n.slot.minimum||(0,i.isNumberFinite)(n.slot.maximum)&&O>n.slot.maximum)||!1;return(0,o.useEffect)((function(){return function(){(0,i.cancelUITimeout)(s.current.handle)}}),[]),s.current.update&&s.current.update(),(0,r.jsx)(a.InputElement,{id:e.id,ref:e.onAutoFocus,type:d,tabIndex:e.tabIndex,placeholder:e.placeholder,required:e.required||!1,disabled:e.disabled||!1,readOnly:e.readOnly||"object"==typeof n&&(n.isFrozen||n.isLocked)||!1,maxLength:e.maxLength,value:w,autoComplete:"off",step:"number"===d?"object"==typeof n&&n.slot.precision&&"0.".concat(i.Str.fill("0",n.slot.precision-1),"1")||"1":void 0,inputMode:e.precision||"object"==typeof n&&n.slot.precision?"decimal":"numeric","aria-describedby":e.ariaDescribedBy,onChange:function(t){x(t.target.value),C(!0),e.onChange&&(0,l.setReturnValue)(x,e.onChange(t.target.value))},onFocus:function(t){if(S.current&&(cancelAnimationFrame(S.current),S.current=0),"text"===d){var n=t.target;requestAnimationFrame((function(){n.focus()})),f("number")}(0,l.handleFocus)(v,x,e.onFocus)(t)},onBlur:function(t){S.current=requestAnimationFrame((function(){S.current=0,"number"===d&&f("text"),"object"==typeof n&&n.hasValue&&g((0,i.castToString)(n.pristine)),(0,l.handleBlur)(v,x,e.onBlur)(t)}))},onKeyDown:function(t){"Enter"===t.key&&e.onSubmit?(t.preventDefault(),e.onSubmit()):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):e.onSubmit&&(t.preventDefault(),e.onSubmit()))},$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$errorVisible:_,$error:j,$scale:e.styles.scale||1})}},9227:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordFabric=void 0;var r=n(1635),o=n(3162);t.PasswordFabric=function(e){return(0,o.InputFabric)(r.__assign({type:"password",autoComplete:"new-password"},e))}},3792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneNumberFabric=void 0;var r=n(1635),o=n(3162);t.PhoneNumberFabric=function(e){return(0,o.InputFabric)(r.__assign(r.__assign({type:"tel",inputMode:"tel",autoComplete:"tel"},e),{placeholder:e.placeholder||"+1 (201) 555-5555"}))}},2316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PictureChoiceFabric=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(6540),u=n(9849),s=n(8956),c=n(6494),d=n(7624),f=n(4220),p=n(5442),h=a.styled.div(r||(r=o.__makeTemplateObject(["\n    display: flex;\n    width: 100%;\n    flex-direction: row;\n    flex-wrap: wrap;\n    align-items: stretch;\n\n    > * {\n        margin-top: 8px;\n        margin-right: 8px;\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n    }\n"],["\n    display: flex;\n    width: 100%;\n    flex-direction: row;\n    flex-wrap: wrap;\n    align-items: stretch;\n\n    > * {\n        margin-top: 8px;\n        margin-right: 8px;\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n    }\n"]))),v=function(e,t,n){var r=(0,u.findFirst)(t,(function(e){return e.id===n}));return e.reference!==(null==r?void 0:r.id)&&e.set(r&&(r.value||r.name),null==r?void 0:r.id,null==r?void 0:r.name),r&&r.id||""};t.PictureChoiceFabric=function(e){var t=e.value,n=(0,l.useRef)(0),r=(0,l.useRef)({}),o=(0,l.useState)("object"!=typeof t&&t||""),a=o[0],b=o[1],m="object"==typeof t?[0!==n.current?a:v(t,e.options,t.reference),function(r){(0,u.cancelUITimeout)(n.current),b(r),n.current=(0,u.scheduleUITimeout)((function(){n.current=0,v(t,e.options,r),e.autoSubmit&&r&&(0,s.handleAutoSubmit)(x)}),p.DEBOUNCE_NORMAL)}]:[a,b],g=m[0],y=m[1],w=(0,l.useState)({})[1],x=(0,l.useRef)({id:0,cb:e.onSubmit}),k=function(o){if(!o.url){var i=o.slot?(0,u.castToBoolean)(r.current[o.id],o.slot.value):g===o.id;if(o.slot)(0,u.cancelUITimeout)(n.current),r.current[o.id]=!i,w({}),n.current=(0,u.scheduleUITimeout)((function(){n.current=0,(0,u.each)(r.current,(function(t,n){var o=(0,u.findFirst)(e.options,(function(e){return e.id===n}));delete r.current[n],o&&o.slot&&(o.slot.value=t)}),{keys:!0})}),p.DEBOUNCE_NORMAL);else{var a=i&&!e.required?"":o.id;x.current.id&&(clearTimeout(x.current.id),x.current.id=0),y(a),e.onChange&&e.onChange(a),"object"!=typeof t&&e.autoSubmit&&a&&(0,s.handleAutoSubmit)(x)}o.onChange&&o.onChange(!(o.slot||!e.required)||!i)}};return(0,l.useEffect)((function(){return function(){(0,u.cancelUITimeout)(n.current)}}),[]),x.current.cb=e.onSubmit,(0,i.jsx)(h,{children:e.options.map((function(n,o){var a=n.slot?(0,u.castToBoolean)(r.current[n.id],n.slot.value):g===n.id;return n.slot&&n.slot.confirm(),("preview"===e.view||n.image||n.emoji||n.nameVisible&&n.name||n.description)&&(0,i.jsx)(c.ButtonFabric,{styles:{baseColor:n.color||e.styles.color,mode:a?"fill":"outline",hover:"outline",outlineSize:e.styles.outlineSize,roundness:e.styles.roundness,scale:e.styles.scale},hyperlink:n.url&&{url:n.url,target:n.target||"blank"}||void 0,image:n.image||!n.emoji&&"data:image/svg+xml;base64,".concat((0,f.placeholderImage)((0,d.color)(e.styles.color,(function(e){return e.makeBlackOrWhite(a).manipulate((function(e){return e.alpha(.2)}))}))))||void 0,emoji:n.emoji,label:n.nameVisible&&(n.label||n.name)||void 0,description:n.description,size:e.size,tabIndex:n.tabIndex||e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,disabled:n.disabled||e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||n.slot&&(n.slot.isFrozen||n.slot.isLocked)||!1,onAutoFocus:(n.slot||!g?0===o:a)&&e.onAutoFocus||void 0,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){if(t.shiftKey&&"Enter"===t.key&&e.onSubmit)t.preventDefault(),e.onSubmit();else if("Escape"===t.key)t.currentTarget.blur();else if("Tab"===t.key)t.shiftKey?e.onCancel&&0===o&&(t.preventDefault(),e.onCancel()):e.onSubmit&&o+1===e.options.length&&(t.preventDefault(),e.onSubmit());else{var n=1===t.key.length&&t.key.charCodeAt(0)||0,r=(n<=57?n-48:0)||(n<=90?n-64:0)||(n<=122?n-96:0);if(r>0&&r<=26){var i=(0,u.arrayItem)(e.options,r-1);i&&k(i)}}},onClick:function(){return k(n)}},n.id||o)}))})}},8630:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadiobuttonsFabric=t.RadiobuttonLabelElement=t.RadiobuttonElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(6540),l=n(9849),u=n(7624),s=n(5442);t.RadiobuttonElement=i.styled.div(c||(c=r.__makeTemplateObject(["\n    display: block;\n    width: 100%;\n    margin: 0;\n    padding: 0;\n"],["\n    display: block;\n    width: 100%;\n    margin: 0;\n    padding: 0;\n"]))),t.RadiobuttonLabelElement=i.styled.label(d||(d=r.__makeTemplateObject(["\n    box-sizing: border-box;\n    appearance: none;\n    outline: none;\n    font-size: 1em;\n    line-height: 1.6em;\n    padding-left: calc(","em + ","px);\n    margin: 0;\n    position: relative;\n    display: inline-flex;\n    min-height: ","em;\n    user-select: none;\n    opacity: ",";\n    transition: opacity 0.15s ease-in-out;\n\n    > input {\n        position: absolute;\n        opacity: 0;\n        cursor: pointer;\n        height: 0;\n        width: 0;\n    }\n\n    > span {\n        box-sizing: content-box;\n        color: ",";\n    }\n\n    > span:last-child {\n        position: absolute;\n        width: ","em;\n        min-width: ","em;\n        height: ","em;\n        min-height: ","em;\n        top: ",";\n        left: 0;\n        background-color: ",";\n        border: ",";\n        border-radius: 50%;\n        transition:\n            background-color 0.15s ease-in-out,\n            border-color 0.15s ease-in-out,\n            box-shadow 0.15s ease-in-out,\n            opacity 0.15s ease-in-out;\n\n        &:after {\n            width: ","em;\n            height: ","em;\n            left: ","em;\n            top: ","em;\n            border-radius: 50%;\n            background-color: ",';\n            transform: scale(0.1);\n            transition:\n                transform 0.15s linear,\n                opacity 0s linear 0.15s;\n            content: "";\n            position: absolute;\n            opacity: 0;\n        }\n    }\n\n    &:hover {\n        > input:not(:disabled) + span + span {\n            box-shadow: ',";\n        }\n    }\n\n    > input {\n        &:not(:disabled) {\n            &:active + span {\n                color: ",";\n            }\n\n            &:active + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    background-color: ",";\n                }\n            }\n\n            &:focus + span {\n                color: ",";\n            }\n\n            &:focus + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    background-color: ",";\n                }\n            }\n        }\n\n        &:checked + span + span {\n            &:after {\n                transform: none;\n                opacity: 1;\n                transition:\n                    transform 0.15s linear,\n                    opacity 0s linear;\n            }\n        }\n    }\n"],["\n    box-sizing: border-box;\n    appearance: none;\n    outline: none;\n    font-size: 1em;\n    line-height: 1.6em;\n    padding-left: calc(","em + ","px);\n    margin: 0;\n    position: relative;\n    display: inline-flex;\n    min-height: ","em;\n    user-select: none;\n    opacity: ",";\n    transition: opacity 0.15s ease-in-out;\n\n    > input {\n        position: absolute;\n        opacity: 0;\n        cursor: pointer;\n        height: 0;\n        width: 0;\n    }\n\n    > span {\n        box-sizing: content-box;\n        color: ",";\n    }\n\n    > span:last-child {\n        position: absolute;\n        width: ","em;\n        min-width: ","em;\n        height: ","em;\n        min-height: ","em;\n        top: ",";\n        left: 0;\n        background-color: ",";\n        border: ",";\n        border-radius: 50%;\n        transition:\n            background-color 0.15s ease-in-out,\n            border-color 0.15s ease-in-out,\n            box-shadow 0.15s ease-in-out,\n            opacity 0.15s ease-in-out;\n\n        &:after {\n            width: ","em;\n            height: ","em;\n            left: ","em;\n            top: ","em;\n            border-radius: 50%;\n            background-color: ",';\n            transform: scale(0.1);\n            transition:\n                transform 0.15s linear,\n                opacity 0s linear 0.15s;\n            content: "";\n            position: absolute;\n            opacity: 0;\n        }\n    }\n\n    &:hover {\n        > input:not(:disabled) + span + span {\n            box-shadow: ',";\n        }\n    }\n\n    > input {\n        &:not(:disabled) {\n            &:active + span {\n                color: ",";\n            }\n\n            &:active + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    background-color: ",";\n                }\n            }\n\n            &:focus + span {\n                color: ",";\n            }\n\n            &:focus + span + span {\n                background-color: ",";\n                border: ","px solid\n                    ",";\n                box-shadow: ",";\n\n                &:after {\n                    background-color: ",";\n                }\n            }\n        }\n\n        &:checked + span + span {\n            &:after {\n                transform: none;\n                opacity: 1;\n                transition:\n                    transform 0.15s linear,\n                    opacity 0s linear;\n            }\n        }\n    }\n"])),(function(e){return 8/7*e.$scale+.375}),(function(e){return 2*e.$borderSize}),(function(e){return(8/7+.19)*e.$scale}),(function(e){return e.$disabled?".4":void 0}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.makeUnclear("#000")}))}),(function(e){return 8/7*e.$scale}),(function(e){return 8/7*e.$scale}),(function(e){return 8/7*e.$scale}),(function(e){return 8/7*e.$scale}),(function(e){return e.$label?"0.095em":"0em"}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return"".concat(e.$borderSize,"px solid ").concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return 12/14*e.$scale}),(function(e){return 12/14*e.$scale}),(function(e){return 2/14*e.$scale}),(function(e){return 2/14*e.$scale}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.makeUnclear("#000")}))}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return e.$borderSize}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.1rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.makeUnclear("#000")}))}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return e.$borderSize}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0}),(function(e){return(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))}));var c,d,f=function(e,t,n){var r=(0,l.findFirst)(t.buttons,(function(e){return e.id===n}));return e.reference!==(null==r?void 0:r.id)&&e.set(r&&(r.value||r.name),null==r?void 0:r.id,null==r?void 0:r.name),r&&r.id||""},p=0;t.RadiobuttonsFabric=function(e){var n=e.value,i=(0,a.useRef)(0),c=(0,a.useState)("object"!=typeof n&&n||""),d=c[0],h=c[1],v="object"==typeof n?[0!==i.current?d:f(n,e,n.reference),function(t){(0,l.cancelUITimeout)(i.current),h(t),i.current=(0,l.scheduleUITimeout)((function(){i.current=0,f(n,e,t)}),s.DEBOUNCE_NORMAL)}]:[d,h],b=v[0],m=v[1],g=(0,a.useState)((function(){return l.SHA2.SHA2_256("Radiobuttons"+p++)}))[0],y=function(t){m(t),e.onChange&&e.onChange(t)},w=e.disabled||e.readOnly||"object"==typeof n&&(n.isFrozen||n.isLocked)||!1,x={$disabled:w,$color:e.styles.backgroundColor,$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:"transparent"===e.styles.borderColor&&"transparent"===e.styles.backgroundColor&&(0,u.color)(e.styles.textColor,(function(e){return e.makeUnclear("#000")}))||(0,u.color)(e.styles.borderColor)!==(0,u.color)(e.styles.backgroundColor)&&e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$textColor:e.styles.textColor,$scale:e.styles.scale||1,$label:!0};return(0,a.useEffect)((function(){return function(){(0,l.cancelUITimeout)(i.current)}}),[]),(0,o.jsx)(o.Fragment,{children:e.buttons.map((function(n,i){return n.id&&("preview"===e.view||n.label||n.name||n.description)&&(0,o.jsx)(t.RadiobuttonElement,{children:(0,o.jsxs)(t.RadiobuttonLabelElement,r.__assign({},x,{children:[(0,o.jsx)("input",{ref:(b?b===n.id:0===i)&&e.onAutoFocus||void 0,type:"radio",name:g,checked:b===n.id,tabIndex:n.tabIndex||e.tabIndex,"aria-describedby":e.ariaDescribedBy,disabled:w,onChange:function(){return y(n.id)},onClick:function(){e.allowUnselect&&b===n.id&&y("")},onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){if((e.allowUnselect||b!==n.id)&&("Enter"===t.key||" "===t.key)&&!t.shiftKey)return t.preventDefault(),void y(b===n.id?"":n.id);"Enter"===t.key&&t.shiftKey&&e.onSubmit?e.onSubmit():"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):e.onSubmit&&(t.preventDefault(),e.onSubmit()))}}),(0,o.jsxs)("span",{children:[n.label||n.name||"...",n.description&&(0,o.jsxs)("small",{children:[(0,o.jsx)("br",{}),n.description]})]}),(0,o.jsx)("span",{})]}))},n.id||i)}))})}},3156:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RankingFabric=void 0;var r,o,i=n(1635),a=n(4848),l=n(780),u=n(6540),s=n(9849),c=n(7624),d=n(7582),f=l.styled.div(r||(r=i.__makeTemplateObject(["\n    display: table;\n    width: auto;\n\n    > * {\n        display: block;\n        width: 100%;\n        margin-top: 8px !important;\n\n        > span {\n            overflow: hidden;\n        }\n    }\n"],["\n    display: table;\n    width: auto;\n\n    > * {\n        display: block;\n        width: 100%;\n        margin-top: 8px !important;\n\n        > span {\n            overflow: hidden;\n        }\n    }\n"]))),p=l.styled.button(o||(o=i.__makeTemplateObject(["\n    appearance: none;\n    position: relative;\n    display: flex;\n    flex-direction: row;\n    flex-wrap: nowrap;\n    align-items: flex-start;\n    justify-content: space-between;\n    font-size: 1em;\n    line-height: 1.5em;\n    outline: none;\n    user-select: none;\n    box-sizing: border-box;\n    background-color: ",";\n    border: ",";\n    color: ",";\n    text-align: left;\n    border-radius: ",";\n    padding: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out,\n        transform 0.15s ease-out;\n\n    > select {\n        display: block;\n        flex-shrink: 0;\n        font-size: 0.8em;\n        background-color: ",";\n        color: ",";\n        border: ",";\n        border-radius: ",";\n        margin-right: 0.75em;\n    }\n\n    > span {\n        display: table-cell;\n        flex-grow: 1;\n\n        > small {\n            display: block;\n            font-size: 0.8em;\n            opacity: 0.8;\n        }\n    }\n\n    > div {\n        position: absolute;\n        top: 0;\n        right: 0;\n        width: 3em;\n        bottom: 0;\n        display: flex;\n        align-items: center;\n        justify-content: flex-end;\n        touch-action: none;\n        padding-right: 0.75em;\n\n        > svg {\n            width: 1.3em;\n            height: 1.3em;\n            pointer-events: none;\n\n            path {\n                fill: ",";\n                transition: fill 0.15s ease-in-out;\n            }\n        }\n    }\n\n    &:not(:disabled) {\n        cursor: grab;\n        opacity: 1;\n\n        &:hover {\n            background-color: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: 0 0 0 0.2rem ",";\n\n            svg {\n                path {\n                    fill: ",";\n                }\n            }\n        }\n\n        &:focus {\n            box-shadow: 0 0 0 0.2rem ",";\n        }\n\n        &:active {\n            box-shadow: 0 0 0 0.2rem ",";\n            background-color: ",";\n        }\n    }\n"],["\n    appearance: none;\n    position: relative;\n    display: flex;\n    flex-direction: row;\n    flex-wrap: nowrap;\n    align-items: flex-start;\n    justify-content: space-between;\n    font-size: 1em;\n    line-height: 1.5em;\n    outline: none;\n    user-select: none;\n    box-sizing: border-box;\n    background-color: ",";\n    border: ",";\n    color: ",";\n    text-align: left;\n    border-radius: ",";\n    padding: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out,\n        transform 0.15s ease-out;\n\n    > select {\n        display: block;\n        flex-shrink: 0;\n        font-size: 0.8em;\n        background-color: ",";\n        color: ",";\n        border: ",";\n        border-radius: ",";\n        margin-right: 0.75em;\n    }\n\n    > span {\n        display: table-cell;\n        flex-grow: 1;\n\n        > small {\n            display: block;\n            font-size: 0.8em;\n            opacity: 0.8;\n        }\n    }\n\n    > div {\n        position: absolute;\n        top: 0;\n        right: 0;\n        width: 3em;\n        bottom: 0;\n        display: flex;\n        align-items: center;\n        justify-content: flex-end;\n        touch-action: none;\n        padding-right: 0.75em;\n\n        > svg {\n            width: 1.3em;\n            height: 1.3em;\n            pointer-events: none;\n\n            path {\n                fill: ",";\n                transition: fill 0.15s ease-in-out;\n            }\n        }\n    }\n\n    &:not(:disabled) {\n        cursor: grab;\n        opacity: 1;\n\n        &:hover {\n            background-color: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: 0 0 0 0.2rem ",";\n\n            svg {\n                path {\n                    fill: ",";\n                }\n            }\n        }\n\n        &:focus {\n            box-shadow: 0 0 0 0.2rem ",";\n        }\n\n        &:active {\n            box-shadow: 0 0 0 0.2rem ",";\n            background-color: ",";\n        }\n    }\n"])),(function(e){return"fill"===e.$mode&&(0,c.color)(e.$baseColor)||"transparent"}),(function(e){return"".concat(e.$outlineSize,"px solid ").concat((0,c.color)(e.$baseColor,(function(t){return t.manipulate((function(e){return e.darken(.1)}),"fill"===e.$mode)})))}),(function(e){return(0,c.color)(e.$baseColor,(function(t){return t.makeBlackOrWhite("fill"===e.$mode)}))}),(function(e){return(0,s.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return"".concat(.375*e.$scale,"em 2.75em ").concat(.375*e.$scale,"em ").concat(.375*e.$scale,"em")}),(function(e){return"outline"===e.$mode?.2:.4}),(function(e){return"fill"===e.$mode?(0,c.color)(e.$baseColor,(function(e){return e.makeBlackOrWhite(!0)})):e.$baseColor}),(function(e){return"fill"===e.$mode?e.$baseColor:(0,c.color)(e.$baseColor,(function(e){return e.makeBlackOrWhite(!0)}))}),(function(e){return"0.3em solid ".concat("fill"===e.$mode?(0,c.color)(e.$baseColor,(function(e){return e.makeBlackOrWhite(!0)})):e.$baseColor)}),(function(e){return 0!==e.$roundness?"".concat(e.$roundness||5,"px"):"0px"}),(function(e){return(0,c.color)(e.$baseColor,(function(t){return t.makeBlackOrWhite("fill"===e.$mode)}))}),(function(e){return"fill"===e.$hover&&(0,c.color)(e.$baseColor,(function(t){return t.manipulate((function(e){return e.darken(.05)}),"fill"===e.$mode)}))||void 0}),(function(e){return"fill"===e.$hover&&(0,c.color)(e.$baseColor,(function(t){return t.manipulate((function(e){return e.darken(.1)}),"fill"===e.$mode)}))||void 0}),(function(e){return"outline"===e.$mode&&"fill"===e.$hover&&(0,c.color)(e.$baseColor,(function(e){return e.makeBlackOrWhite()}))||void 0}),(function(e){return(0,c.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))}))}),(function(e){return"outline"===e.$mode&&"fill"===e.$hover&&(0,c.color)(e.$baseColor,(function(e){return e.makeBlackOrWhite()}))||void 0}),(function(e){return(0,c.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))}))}),(function(e){return(0,c.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))}))}),(function(e){return"fill"===e.$hover&&(0,c.color)(e.$baseColor,(function(e){return e.manipulate((function(e){return e.darken(.15)}))}))}));t.RankingFabric=function(e){var t,n=(0,u.useRef)([]),r=(0,u.useRef)({}),o=(0,u.useState)({}),i=o[0],l=o[1],c=function(e){return function(t){var r=n.current[e];r.ref&&"number"!=typeof r.moveId&&t.isPrimary&&"SELECT"!==t.target.tagName&&"A"!==t.target.tagName&&("mouse"===t.pointerType||"DIV"===t.target.tagName)&&(r.moveHeight=r.ref.nextElementSibling?r.ref.nextElementSibling.getBoundingClientRect().top-r.ref.getBoundingClientRect().top:r.ref.previousElementSibling?r.ref.getBoundingClientRect().bottom-r.ref.previousElementSibling.getBoundingClientRect().bottom:0,r.moveHeight>0&&(t.preventDefault(),t.stopPropagation(),r.moveId=t.pointerId,r.moveX=t.clientX,r.moveY=r.moveDirection=t.clientY,r.ref.setPointerCapture(r.moveId),r.ref.focus(),l({})))}},h=function(e){return function(t){var r=n.current[e];if(t.isPrimary&&"number"==typeof r.moveId&&r.ref){var o=r.ref.getBoundingClientRect(),i=t.clientY-(r.moveDirection||0);t.preventDefault(),t.stopPropagation(),r.moveDirection=t.clientY,r.ref.style.transform=r.moveTransform="translate3d(".concat(t.clientX-(r.moveX||0),"px,").concat(t.clientY-(r.moveY||0),"px,0)");for(var a=0;a<n.current.length;a++)if(a!==e){var u=n.current[a];if(u.ref){var s=u.ref.getBoundingClientRect();i>0&&o.bottom>s.top+s.height/2?u.moveTransform=a>e?"translateY(-".concat(r.moveHeight||0,"px)"):"":i<0&&o.top<s.top+s.height/2&&(u.moveTransform=a<e?"translateY(".concat(r.moveHeight||0,"px)"):"")}}l({})}}},v=function(e){return function(t){var r,o,i=n.current[e];if(t.isPrimary&&"number"==typeof i.moveId){var a=null===(r=i.ref)||void 0===r?void 0:r.getBoundingClientRect(),u=-1;t.preventDefault(),t.stopPropagation(),null===(o=i.ref)||void 0===o||o.releasePointerCapture(i.moveId),i.moveId=void 0;for(var s=0;s<n.current.length;s++){var c=n.current[s];if(c.moveTransform=void 0,(-1===u||s>e)&&s!==e&&c.ref&&a){var d=c.ref.getBoundingClientRect();(s<e&&a.top<d.top+d.height/2||s>e&&a.bottom>d.top+d.height/2)&&(u=s)}}-1!==u?m(e,u):l({disable:!0})}}},b=function(t){return function(r){"SELECT"!==r.target.tagName&&("Escape"===r.key?r.currentTarget.blur():"Tab"===r.key?(r.currentTarget.blur(),r.shiftKey?e.onCancel&&0===t&&(r.preventDefault(),e.onCancel()):e.onSubmit&&!r.shiftKey&&t===n.current.length-1&&(r.preventDefault(),e.onSubmit())):"ArrowDown"===r.key||"ArrowUp"===r.key?(r.preventDefault(),r.stopPropagation(),("ArrowDown"===r.key&&t<n.current.length-1||"ArrowUp"===r.key&&t>0)&&m(t,"ArrowDown"===r.key?t+1:t-1)):r.keyCode>=49&&r.keyCode<=57&&m(t,r.keyCode-49))}},m=function(t,r){if(-1===r&&e.slots&&(r=s.Num.min(e.slots.length,n.current.length)),t>=0&&t<n.current.length&&r>=0&&t!==r&&(n.current.splice(r,0,n.current.splice(t,1)[0]),e.slots)){for(var o=0;o<e.slots.length&&e.slots[o].reference;)o++;r<e.slots.length&&r-1===o&&o++;for(var i=0;i<o;i++){var a=(0,s.arrayItem)(n.current,i);e.slots[i].set((null==a?void 0:a.value)||(null==a?void 0:a.name),null==a?void 0:a.id,null==a?void 0:a.name)}}l({disable:!0})};if(n.current.length!==e.options.length||(0,s.findFirst)(e.slots,(function(e){return r.current[e.key]!==e.reference}))){var g=[],y=(0,s.filter)(n.current.splice(0,n.current.length),(function(t){return!!(0,s.findFirst)(e.options,(function(e){return e.id===t.id}))}));(0,s.each)(e.slots,(function(t){if(t.reference&&!(0,s.findFirst)(g,(function(e){return e===t.reference}))){var o=(0,s.findFirst)(e.options,(function(e){return e.id===t.reference}));if(o){r.current[t.key]=t.reference,g.push(t.reference),n.current.push(o);for(var i=0;i<y.length;i++)if(y[i].id===o.id){y.splice(i,1);break}}else r.current[t.key]=void 0,t.set(void 0,void 0,void 0)}else r.current[t.key]=void 0,t.reference&&t.set(void 0,void 0,void 0)})),(t=n.current).push.apply(t,y),(0,s.each)(e.options,(function(e){(0,s.findFirst)(n.current,(function(t){return t.id===e.id}))||n.current.push(e)}))}if(e.slots&&(0,s.findFirst)(e.slots,(function(e){return!e.reference})))for(var w=0;w<e.slots.length;w++){var x=(0,s.arrayItem)(n.current,w);e.slots[w].set((null==x?void 0:x.value)||(null==x?void 0:x.name),null==x?void 0:x.id,null==x?void 0:x.name)}var k=e.slots&&e.slots.length<n.current.length||!1;return(0,a.jsx)(f,{$margin:e.styles.margin,children:n.current.map((function(t,r){var o,l=(0,s.arrayItem)(e.slots,r),u=(null==l?void 0:l.reference)===t.id,f=(null==l?void 0:l.isFrozen)||(null==l?void 0:l.isLocked)||e.disabled;return(0,a.jsxs)(p,{ref:function(n){n&&(t.ref=n),!r&&e.onAutoFocus&&e.onAutoFocus(n)},type:"button",style:t.moveTransform&&{zIndex:"number"==typeof t.moveId?214748364:void 0,transition:"number"==typeof t.moveId?"none":void 0,transform:t.moveTransform,cursor:"grabbing"}||i.disable&&{transition:"none"}||void 0,disabled:f,tabIndex:e.tabIndex,"aria-describedby":e.ariaDescribedBy,onFocus:e.onFocus,onBlur:e.onBlur,onPointerDown:c(r),onPointerMove:h(r),onPointerUp:v(r),onPointerCancel:v(r),onKeyDown:b(r),$baseColor:e.styles.color,$mode:u&&((null===(o=e.slots)||void 0===o?void 0:o.length)||0)<n.current.length?"fill":"outline",$hover:"outline",$outlineSize:e.styles.outlineSize||1,$roundness:e.styles.roundness,$scale:e.styles.scale||1,children:[(0,a.jsxs)("select",{tabIndex:-1,value:!k||u?r:-1,onChange:function(e){return m(r,(0,s.castToNumber)(e.currentTarget.value,-1))},title:t.name,children:[(e.slots||n.current).map((function(e,t){return(0,a.jsx)("option",{value:t,children:t+1},t)})),k&&(0,a.jsx)("option",{value:-1,children:"-"})||void 0]}),(0,a.jsxs)("span",{children:[t.label||t.name||"...",t.description&&(0,a.jsx)("small",{children:t.description})]}),(0,a.jsx)("div",{children:d.positionIcon})]},t.id)}))})}},6175:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RatingFabric=void 0;var r,o,i,a,l=n(1635),u=n(4848),s=n(780),c=n(6540),d=n(9849),f=n(8956),p=n(7624),h=n(8631),v=n(5147),b=n(2682),m=n(9695),g=n(4126),y=n(5442),w=s.styled.div(r||(r=l.__makeTemplateObject(["\n    display: block;\n    width: 100%;\n"],["\n    display: block;\n    width: 100%;\n"]))),x=s.styled.button(a||(a=l.__makeTemplateObject(["\n    appearance: none;\n    box-sizing: border-box;\n    background: none;\n    border: none;\n    outline: none;\n    width: ",";\n    height: ",";\n    margin: 0;\n    padding: 0;\n    margin-bottom: ",";\n    display: inline-block;\n    opacity: 0.2;\n    cursor: default;\n    transition:\n        width 0.15s ease-in-out,\n        height 0.15s ease-in-out,\n        opacity 0.15 ease-in-out;\n\n    > svg {\n        path {\n            fill: ",";\n            stroke: ",";\n            stroke-width: 1px;\n            transition:\n                fill 0.15s ease-in-out,\n                stroke 0.15s ease-in-out;\n        }\n    }\n\n    > small {\n        display: block;\n        font-size: 0.8em;\n        line-height: 1em;\n        text-align: center;\n        margin: 0;\n        padding: 0;\n        color: ",";\n    }\n\n    animation: ",";\n\n    &:not(:disabled) {\n        opacity: 1;\n        cursor: pointer;\n\n        &:focus {\n            > svg {\n                path {\n                    stroke-width: ",";\n                    fill: ",";\n                    stroke: ",";\n                }\n            }\n        }\n    }\n"],["\n    appearance: none;\n    box-sizing: border-box;\n    background: none;\n    border: none;\n    outline: none;\n    width: ",";\n    height: ",";\n    margin: 0;\n    padding: 0;\n    margin-bottom: ",";\n    display: inline-block;\n    opacity: 0.2;\n    cursor: default;\n    transition:\n        width 0.15s ease-in-out,\n        height 0.15s ease-in-out,\n        opacity 0.15 ease-in-out;\n\n    > svg {\n        path {\n            fill: ",";\n            stroke: ",";\n            stroke-width: 1px;\n            transition:\n                fill 0.15s ease-in-out,\n                stroke 0.15s ease-in-out;\n        }\n    }\n\n    > small {\n        display: block;\n        font-size: 0.8em;\n        line-height: 1em;\n        text-align: center;\n        margin: 0;\n        padding: 0;\n        color: ",";\n    }\n\n    animation: ",";\n\n    &:not(:disabled) {\n        opacity: 1;\n        cursor: pointer;\n\n        &:focus {\n            > svg {\n                path {\n                    stroke-width: ",";\n                    fill: ",";\n                    stroke: ",";\n                }\n            }\n        }\n    }\n"])),(function(e){return"".concat(2*e.$scale,"em")}),(function(e){return"".concat(2*e.$scale,"em")}),(function(e){return e.$showLabels&&"1em"}),(function(e){return e.$checked&&(0,p.color)(e.$color)||e.$hover&&(0,p.color)(e.$color,(function(e){return e.manipulate((function(e){return e.alpha(.3)}))}))||"none"}),(function(e){return(0,p.color)(e.$color)}),(function(e){return(0,p.color)(e.$color)}),(function(e){return e.$checked?(0,s.css)(i||(i=l.__makeTemplateObject(["\n                  "," .5s linear\n              "],["\n                  "," .5s linear\n              "])),(0,s.keyframes)(o||(o=l.__makeTemplateObject(["\n                        50% {\n                            transform: scale(1.1);\n                        }\n\n                        100% {\n                            transform: none;\n                        }\n                    "],["\n                        50% {\n                            transform: scale(1.1);\n                        }\n\n                        100% {\n                            transform: none;\n                        }\n                    "])))):void 0}),(function(e){return e.$checked?"2px":void 0}),(function(e){return!e.$checked&&(0,p.color)(e.$color,(function(e){return e.manipulate((function(e){return e.alpha(.3)}))}))||void 0}),(function(e){return e.$checked&&(0,p.color)(e.$color,(function(e){return e.manipulate((function(e){return e.alpha(.3)}))}))||void 0})),k=function(e){switch(e){case"stars":return h.starShape;case"hearts":return v.heartShape;case"thumbs-up":return b.thumbsUpShape;case"thumbs-down":return m.thumbsDownShape;case"persons":return g.personShape}},_=function(e,t){return t?e.value=t:(e.clear(),0)};t.RatingFabric=function(e){var t=e.value,n=(0,c.useRef)(0),r=(0,c.useState)("object"!=typeof t&&t||0),o=r[0],i=r[1],a="object"==typeof t?[0!==n.current?o:_(t,t.value),function(r,o){(0,d.cancelUITimeout)(n.current),i(r),n.current=(0,d.scheduleUITimeout)((function(){n.current=0,_(t,r),o&&e.autoSubmit&&r&&(0,f.handleAutoSubmit)(m)}),y.DEBOUNCE_NORMAL)}]:[o,i],l=a[0],s=a[1],p=(0,c.useState)(0),h=p[0],v=p[1],b=[],m=(0,c.useRef)({id:0,cb:e.onSubmit}),g=d.Num.max(1,e.steps),C=e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||!1,S=function(t,n){e.disabled||e.readOnly||(t=d.Num.range(t,0,g),m.current.id&&(clearTimeout(m.current.id),m.current.id=0),s(t,n),e.onChange&&e.onChange(t),n&&e.autoSubmit&&t&&(0,f.handleAutoSubmit)(m))};(0,c.useEffect)((function(){return function(){(0,d.cancelUITimeout)(n.current)}}),[]);for(var O=function(t){b.push((0,u.jsxs)(x,{ref:t===(l||1)&&e.onAutoFocus||void 0,disabled:C,tabIndex:e.tabIndex,"aria-describedby":e.ariaDescribedBy,onMouseOver:function(){return v(t)},onMouseOut:function(){return v(0)},onClick:function(){return S(1!==l||e.required?t:0,!0)},onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(n){if(n.shiftKey&&"Enter"===n.key&&e.onSubmit)n.preventDefault(),e.onSubmit();else if("Enter"===n.key||" "===n.key)n.preventDefault(),S(1!==l||e.required?t:0,!0);else if("Escape"===n.key)n.currentTarget.blur();else if("Tab"===n.key)n.shiftKey?e.onCancel&&1===t&&(n.preventDefault(),e.onCancel()):e.onSubmit&&t===g&&(n.preventDefault(),e.onSubmit());else if("-"===n.key)l>0&&S(l-1,!1);else if("+"===n.key)l<g&&S(l+1,!1);else{var r=1===n.key.length?n.key.charCodeAt(0)-48:-1;r>=0&&r<=9&&S(l===r?r-1:r,!0)}},$color:e.styles.color,$scale:e.styles.scale||1,$hover:!C&&h>=t,$checked:t<=l,$showLabels:e.showLabels||!1,children:[k(e.shape||"stars"),e.showLabels&&(0,u.jsx)("small",{children:t})]},t))},j=1;j<=g;j++)O(j);return m.current.cb=e.onSubmit,(0,u.jsx)(w,{children:b})}},8227:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredIndicatorFabric=void 0;var r,o=n(1635),i=n(780),a=n(7624);t.RequiredIndicatorFabric=i.styled.span(r||(r=o.__makeTemplateObject(["\n    color: ",';\n    position: relative;\n    left: 0.1em;\n    top: 0.18em;\n    text-transform: uppercase;\n    font-size: 1.4em;\n    line-height: 0.5em;\n\n    &:after {\n        content: "*";\n    }\n'],["\n    color: ",';\n    position: relative;\n    left: 0.1em;\n    top: 0.18em;\n    text-transform: uppercase;\n    font-size: 1.4em;\n    line-height: 0.5em;\n\n    &:after {\n        content: "*";\n    }\n'])),(function(e){return(0,a.color)(e.$errorColor)}))},6312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleFabric=void 0;var r,o,i=n(1635),a=n(4848),l=n(780),u=n(6540),s=n(9849),c=n(8956),d=n(6494),f=n(5442),p=l.styled.div(r||(r=i.__makeTemplateObject(["\n    display: block;\n    width: 100%;\n\n    > div {\n        max-width: calc(100% + 0.4rem);\n        overflow-x: scroll;\n        -ms-overflow-style: none;\n        -webkit-overflow-scrolling: touch;\n        scrollbar-width: none;\n        padding: 0.2rem;\n        margin -0.2rem;\n\n        &::-webkit-scrollbar {\n            display: none;\n        }\n\n        > div {\n            display: inline-block;\n            white-space: nowrap;\n            min-width: ",";\n\n            @media (max-device-width: 500px) {\n                min-width: 100%;\n            }\n\n            @media (max-width: 500px) {\n                min-width: 100%;\n            }\n\n            > div {\n                display: flex;\n                flex-wrap: nowrap;\n\n                > button {\n                    flex-grow: ",";\n                    min-width: ",";\n\n                    @media (max-device-width: 500px) {\n                        min-width: auto;\n                        flex-grow: 1;\n                        padding-left: 0.55em;\n                        padding-right: 0.55em;\n                    }\n\n                    @media (max-width: 500px) {\n                        min-width: auto;\n                        flex-grow: 1;\n                        padding-left: 0.55em;\n                        padding-right: 0.55em;\n                    }\n\n                    > span > span {\n                        display: flex;\n                        align-content: center;\n                        justify-content: center;\n                    }\n                }\n            }\n        }\n    }\n"],["\n    display: block;\n    width: 100%;\n\n    > div {\n        max-width: calc(100% + 0.4rem);\n        overflow-x: scroll;\n        -ms-overflow-style: none;\n        -webkit-overflow-scrolling: touch;\n        scrollbar-width: none;\n        padding: 0.2rem;\n        margin -0.2rem;\n\n        &::-webkit-scrollbar {\n            display: none;\n        }\n\n        > div {\n            display: inline-block;\n            white-space: nowrap;\n            min-width: ",";\n\n            @media (max-device-width: 500px) {\n                min-width: 100%;\n            }\n\n            @media (max-width: 500px) {\n                min-width: 100%;\n            }\n\n            > div {\n                display: flex;\n                flex-wrap: nowrap;\n\n                > button {\n                    flex-grow: ",";\n                    min-width: ",";\n\n                    @media (max-device-width: 500px) {\n                        min-width: auto;\n                        flex-grow: 1;\n                        padding-left: 0.55em;\n                        padding-right: 0.55em;\n                    }\n\n                    @media (max-width: 500px) {\n                        min-width: auto;\n                        flex-grow: 1;\n                        padding-left: 0.55em;\n                        padding-right: 0.55em;\n                    }\n\n                    > span > span {\n                        display: flex;\n                        align-content: center;\n                        justify-content: center;\n                    }\n                }\n            }\n        }\n    }\n"])),(function(e){return e.$justify?"100%":void 0}),(function(e){return e.$justify?"1":void 0}),(function(e){return e.$justify?void 0:"3em"})),h=l.styled.div(o||(o=i.__makeTemplateObject(["\n    display: flex;\n    flex-direction: row;\n    padding-top: 0.1em;\n\n    > small {\n        flex: 1 1 0%;\n        font-size: 0.8em;\n        color: ",";\n\n        &:first-child {\n            text-align: left;\n        }\n\n        &:nth-child(2) {\n            text-align: center;\n        }\n\n        &:last-child {\n            text-align: right;\n        }\n    }\n"],["\n    display: flex;\n    flex-direction: row;\n    padding-top: 0.1em;\n\n    > small {\n        flex: 1 1 0%;\n        font-size: 0.8em;\n        color: ",";\n\n        &:first-child {\n            text-align: left;\n        }\n\n        &:nth-child(2) {\n            text-align: center;\n        }\n\n        &:last-child {\n            text-align: right;\n        }\n    }\n"])),(function(e){return e.$labelColor})),v=function(e,t,n){if((0,s.isArray)(t)){var r=(0,s.findFirst)(t,(function(e){return e.id===n}));return e.reference!==(null==r?void 0:r.id)&&e.set(r&&(r.value||r.name),null==r?void 0:r.id,null==r?void 0:r.name),r&&r.id||""}if((0,s.isNumberFinite)(n)&&t){var o=s.Num.range(n,s.Num.min(t.from,t.to),s.Num.max(t.from,t.to));return e.set(o),o}e.clear()};t.ScaleFabric=function(e){var t=e.value,n=(0,u.useRef)(0),r=(0,u.useState)("object"!=typeof t&&t||void 0),o=r[0],i=r[1],l="object"==typeof t?[0!==n.current?o:v(t,e.options,(0,s.isArray)(e.options)?t.reference:(0,s.isNumberFinite)(t.pristine)?t.pristine:void 0),function(r,o){(0,s.cancelUITimeout)(n.current),i(r),n.current=(0,s.scheduleUITimeout)((function(){n.current=0,v(t,e.options,r),o&&e.autoSubmit&&void 0!==r&&(0,c.handleAutoSubmit)(g)}),f.DEBOUNCE_NORMAL)}]:[o,i],b=l[0],m=l[1],g=(0,u.useRef)({id:0,cb:e.onSubmit}),y=function(t,n){g.current.id&&(clearTimeout(g.current.id),g.current.id=0),m(t,n),e.onChange&&e.onChange(t),n&&e.autoSubmit&&void 0!==t&&(0,c.handleAutoSubmit)(g)},w=[],x=function(t,n){return function(r){if(r.shiftKey&&"Enter"===r.key&&e.onSubmit)r.preventDefault(),e.onSubmit();else if("Escape"===r.key)r.currentTarget.blur();else if("Tab"===r.key)r.shiftKey?e.onCancel&&0===t&&(r.preventDefault(),e.onCancel()):e.onSubmit&&t+1===w.length&&(r.preventDefault(),e.onSubmit());else if(n)if("-"===r.key||"+"===r.key)n(r.key);else{var o=1===r.key.length?r.key.charCodeAt(0)-48:-1;o>=0&&o<=9&&n(o)}}};if((0,u.useEffect)((function(){return function(){(0,s.cancelUITimeout)(n.current)}}),[]),g.current.cb=e.onSubmit,(0,s.isArray)(e.options)){var k="preview"===e.view?e.options:e.options.filter((function(e){return!!e.name})),_=k.length;w=k.map((function(n,r){return(0,a.jsx)(d.ButtonFabric,{styles:{baseColor:e.styles.color,mode:b===n.id?"fill":"outline",hover:"outline",outlineSize:e.styles.outlineSize,roundness:e.styles.roundness,scale:e.styles.scale,group:_>1?0===r?"start":r+1===_?"end":"middle":void 0},label:n.name||"...",tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,disabled:e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||!1,onAutoFocus:(!b&&0===r||b===n.id)&&e.onAutoFocus||void 0,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:x(r),onClick:function(){return y(e.required||b!==n.id?n.id:void 0,!0)}},r)}))}else if(e.options)for(var C=s.Num.min(e.options.from,e.options.to),S=s.Num.max(e.options.from,e.options.to),O=s.Num.max(e.options.stepSize||0,1),j=function(n){w.push((0,a.jsx)(d.ButtonFabric,{styles:{baseColor:e.styles.color,mode:b===n?"fill":"outline",hover:"outline",outlineSize:e.styles.outlineSize,roundness:e.styles.roundness,scale:e.styles.scale,group:S>C&&C+O<=S?n===C?"start":n+O>S?"end":"middle":void 0},label:(0,s.castToString)(n),tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,disabled:e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||!1,onAutoFocus:n===((0,s.isNumberFinite)(b)?b:C)&&e.onAutoFocus||void 0,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:x(n-C,(function(e){"-"===e||"+"===e?(0,s.isNumberFinite)(b)?("-"===e&&b>C||"+"===e&&b<S)&&y(b+("-"===e?-1:1),!1):y(n,!1):e>=C&&e<=S&&y(b!==e?e:void 0,!0)})),onClick:function(){return y(e.required||b!==n?n:void 0,!0)}},n))},$=C;$<=S;$+=O)j($);return(0,a.jsx)(p,{$justify:e.justify,children:(0,a.jsx)("div",{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:w}),w.length>0&&(e.labelLeft||e.labelCenter&&w.length>2||e.labelRight&&w.length>1)&&(0,a.jsxs)(h,{$labelColor:e.styles.labelColor,children:[(0,a.jsx)("small",{children:e.labelLeft||""}),(0,a.jsx)("small",{children:w.length>2&&e.labelCenter||""}),(0,a.jsx)("small",{children:w.length>1&&e.labelRight||""})]})]})})})}},9376:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureFabric=t.SignatureViewFabric=t.SignatureSignedElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(6540),l=n(9849),u=n(7624),s=n(6974),c=n(369),d=n(8440),f=n(6494),p=i.styled.div(v||(v=r.__makeTemplateObject(["\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    height: ",";\n    position: relative;\n    overflow: hidden;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em top 0.375em;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    cursor: default;\n\n    &:hover {\n        box-shadow: ",";\n    }\n\n    &:focus {\n        background-color: ",";\n        border-color: ",";\n        color: ",";\n        box-shadow: ",";\n    }\n\n    > canvas {\n        position: absolute;\n        left: 0;\n        top: 0;\n        width: 1px;\n        height: 1px;\n        touch-action: none;\n\n        &:first-of-type {\n            pointer-events: none;\n            opacity: 0;\n        }\n\n        &:last-of-type {\n            cursor: ",";\n            pointer-events: ",";\n            opacity: ",";\n            transition: opacity 0.3s;\n            filter: blur(0.5px);\n        }\n    }\n\n    > div {\n        position: absolute;\n        left: 0;\n        right: 0;\n        top: 0;\n        bottom: 0;\n        opacity: ",";\n        pointer-events: ",";\n        transition: opacity 0.3s;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n    }\n"],["\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    height: ",";\n    position: relative;\n    overflow: hidden;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em top 0.375em;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    margin: 0;\n    opacity: ",";\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    cursor: default;\n\n    &:hover {\n        box-shadow: ",";\n    }\n\n    &:focus {\n        background-color: ",";\n        border-color: ",";\n        color: ",";\n        box-shadow: ",";\n    }\n\n    > canvas {\n        position: absolute;\n        left: 0;\n        top: 0;\n        width: 1px;\n        height: 1px;\n        touch-action: none;\n\n        &:first-of-type {\n            pointer-events: none;\n            opacity: 0;\n        }\n\n        &:last-of-type {\n            cursor: ",";\n            pointer-events: ",";\n            opacity: ",";\n            transition: opacity 0.3s;\n            filter: blur(0.5px);\n        }\n    }\n\n    > div {\n        position: absolute;\n        left: 0;\n        right: 0;\n        top: 0;\n        bottom: 0;\n        opacity: ",";\n        pointer-events: ",";\n        transition: opacity 0.3s;\n        display: flex;\n        align-items: center;\n        justify-content: center;\n    }\n"])),(function(e){return"".concat(("sm"===e.$size?9:"lg"===e.$size?19:14)*e.$scale,"em")}),(function(e){return(0,u.color)(e.$backgroundColor)}),(function(e){return e.$error?'url("data:image/svg+xml;base64,'.concat((0,c.warningIcon)((0,u.color)(e.$errorColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))),'")'):void 0}),8/7,(function(e){return"".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px solid ").concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return(0,l.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return e.$disabled?.65:1}),(function(e){return!e.$disabled&&("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return!e.$disabled&&(0,u.color)(e.$backgroundColor)||void 0}),(function(e){return!e.$disabled&&(0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)||void 0}),(function(e){return!e.$disabled&&(0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))||void 0}),(function(e){return!e.$disabled&&("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,u.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0}),(function(e){return'url("data:image/svg+xml;base64,'.concat((0,s.penIcon)((0,u.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,u.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))),'") 1 32, auto')}),(function(e){return!e.$disabled&&e.$allowSign?"auto":"none"}),(function(e){return e.$disabled||e.$processing?.3:1}),(function(e){return e.$disabled||e.$allowSign?0:1}),(function(e){return e.$disabled||e.$allowSign?"none":"auto"})),h=i.styled.div(b||(b=r.__makeTemplateObject(["\n    position: absolute;\n    left: 0;\n    right: 0;\n    top: 0;\n    bottom: 0;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-direction: column;\n\n    > div {\n        display: inline-block;\n        width: 80%;\n        max-width: 300px;\n        height: 16px;\n        background-color: ",";\n        border-radius: 4px;\n        overflow: hidden;\n        margin-bottom: 0.375em;\n\n        > div {\n            width: 0%;\n            height: 16px;\n            background-color: ",";\n            background-image: linear-gradient(\n                45deg,\n                "," 25%,\n                transparent 25%,\n                transparent 50%,\n                "," 50%,\n                "," 75%,\n                transparent 75%,\n                transparent\n            );\n            background-size: 1rem 1rem;\n            transition: width 0.5s ease-out;\n        }\n    }\n\n    > span {\n        display: block;\n        text-align: center;\n        white-space: nowrap;\n    }\n"],["\n    position: absolute;\n    left: 0;\n    right: 0;\n    top: 0;\n    bottom: 0;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-direction: column;\n\n    > div {\n        display: inline-block;\n        width: 80%;\n        max-width: 300px;\n        height: 16px;\n        background-color: ",";\n        border-radius: 4px;\n        overflow: hidden;\n        margin-bottom: 0.375em;\n\n        > div {\n            width: 0%;\n            height: 16px;\n            background-color: ",";\n            background-image: linear-gradient(\n                45deg,\n                "," 25%,\n                transparent 25%,\n                transparent 50%,\n                "," 50%,\n                "," 75%,\n                transparent 75%,\n                transparent\n            );\n            background-size: 1rem 1rem;\n            transition: width 0.5s ease-out;\n        }\n    }\n\n    > span {\n        display: block;\n        text-align: center;\n        white-space: nowrap;\n    }\n"])),(function(e){return(0,u.color)(e.$color,(function(e){return e.manipulate((function(e){return e.alpha(.25)}))}))}),(function(e){return(0,u.color)(e.$color)}),(function(e){return(0,u.color)(e.$color,(function(e){return e.makeBlackOrWhite().manipulate((function(e){return e.alpha(.25)}))}))}),(function(e){return(0,u.color)(e.$color,(function(e){return e.makeBlackOrWhite().manipulate((function(e){return e.alpha(.25)}))}))}),(function(e){return(0,u.color)(e.$color,(function(e){return e.makeBlackOrWhite().manipulate((function(e){return e.alpha(.25)}))}))}));t.SignatureSignedElement=i.styled.div(m||(m=r.__makeTemplateObject(["\n    position: absolute;\n    right: 10px;\n    top: 10px;\n    display: flex;\n    align-items: center;\n\n    > span {\n        display: block;\n        margin-right: 10px;\n        white-space: nowrap;\n    }\n"],["\n    position: absolute;\n    right: 10px;\n    top: 10px;\n    display: flex;\n    align-items: center;\n\n    > span {\n        display: block;\n        margin-right: 10px;\n        white-space: nowrap;\n    }\n"])));t.SignatureViewFabric=function(e){var t=(0,a.useState)({loading:!0,base64data:""}),n=t[0],r=t[1];return(0,a.useEffect)((function(){n.loading||r({loading:!0,base64data:""}),e.controller.download(e.service).then((function(e){return r({loading:!1,base64data:e})})).catch((function(){return r({loading:!1,base64data:""})}))}),[e.controller.signatureSlot.reference]),n.loading?(0,o.jsx)(o.Fragment,{children:e.loading}):n.base64data&&(e.host?(0,o.jsx)(e.host,{children:(0,o.jsx)("img",{src:n.base64data})}):(0,o.jsx)("img",{src:n.base64data}))||(0,o.jsx)(o.Fragment,{children:e.error})};var v,b,m;t.SignatureFabric=function(e){var n,r=(0,a.useRef)(),i=(0,a.useRef)(),s=(0,a.useState)(-1),c=s[0],v=s[1],b=(0,a.useState)(!1),m=b[0],g=b[1],y=(0,a.useState)(!1),w=y[0],x=y[1],k=(0,a.useRef)(),_=(0,a.useRef)(!1),C=(0,a.useRef)(!1),S=(0,a.useRef)(""),O=e.disabled||e.controller.signatureSlot.isFrozen||e.controller.signatureSlot.isLocked||!1,j=e.styles.textColor?e.styles.textColor:e.styles.borderColor&&"transparent"!==e.styles.borderColor?e.styles.borderColor:(0,u.color)(e.styles.backgroundColor||"transparent",(function(e){return e.makeBlackOrWhite()}));S.current=e.color||j;var $=function(){var e=r.current;if(e&&e.width>0&&e.height>0){var t=e.getContext("2d");if(t){for(var n=t.getImageData(0,0,e.width,e.height),o=(0,u.getColor)(S.current),i=0;i<n.data.length;i+=4)0!==n.data[i+3]&&(n.data[i]=o.red(),n.data[i+1]=o.green(),n.data[i+2]=o.blue());t.putImageData(n,0,0)}}};return(0,a.useEffect)((function(){var e;if(r.current){var t=null===(e=r.current.parentElement)||void 0===e?void 0:e.getBoundingClientRect();if(t){var n=!1,o=0,a=r.current,s=a.getContext("2d",{willReadFrequently:!0}),c="ResizeObserver"in window&&new ResizeObserver((function(){var e=getComputedStyle(a.parentElement),t=(0,l.castToNumber)(e.width),n=(0,l.castToNumber)(e.height);if(t>0&&n>0&&(2*t!==a.width||2*n!==a.height)){var r=a.width>0&&a.height>0&&(null==s?void 0:s.getImageData(0,0,a.width,a.height))||void 0;a.style.width="".concat(t,"px"),a.style.height="".concat(n,"px"),a.width=2*t,a.height=2*n,r&&(null==s||s.putImageData(r,0,0))}}));if(a.style.width="".concat(t.width,"px"),a.style.height="".concat(t.height,"px"),a.width=2*t.width,a.height=2*t.height,s){var d=function(e){var t,r=e.target.getBoundingClientRect();o&&(clearTimeout(o),o=0),!_.current||a.width<1||a.height<1?n=!1:(s.lineWidth=6,s.lineJoin=s.lineCap="round",s.imageSmoothingQuality="high",s.strokeStyle=(0,u.color)(S.current),s.beginPath(),s.moveTo(2*(e.clientX-r.x),2*(e.clientY-r.y)),n=!0,null===(t=a.parentElement)||void 0===t||t.focus())},f=function(e){if(e.target&&n&&_.current){var t=e.target.getBoundingClientRect();o&&(clearTimeout(o),o=0);var r=2*(e.clientX-t.x),i=2*(e.clientY-t.y);s.lineTo(r,i),s.stroke()}e.preventDefault(),e.stopPropagation()},p=function(){n=!1,o&&clearTimeout(o),o=setTimeout((function(){var e=i.current;if(v(0),e&&a.width>0&&a.height>0){var t=e.getContext("2d");if(t){for(var n=s.getImageData(0,0,a.width,a.height),r=-1,u=-1,c=0,d=0,f=0;f<n.data.length;f+=4)if(0!==n.data[f+3]){var p=f/4%a.width,h=l.Num.floor(f/4/a.width);n.data[f]=0,n.data[f+1]=0,n.data[f+2]=0,(-1===r||p<r)&&(r=p),(-1===u||h<u)&&(u=h),p>c&&(c=p),h>d&&(d=h)}var b=c-r,m=d-u;if(r>=0&&u>=0&&b>0&&m>0){var g=s.getImageData(r,u,b,m);for(f=0;f<g.data.length;f+=4)0!==g.data[f+3]&&(g.data[f]=0,g.data[f+1]=0,g.data[f+2]=0);e.width=l.Num.min(b+50,a.width),e.height=l.Num.min(m+50,a.height),t.clearRect(0,0,e.width,e.height),t.putImageData(g,(e.width-b)/2,(e.height-m)/2),C.current=!0,e.toBlob((function(e){if(e&&k.current){var t=new DataTransfer;t.items.add(new File([e],"signature-".concat(l.DateTime.format("yyyyMMddHHmmss"),".png"),{type:"image/png",lastModified:(new Date).getTime()})),k.current.controller.upload(t.files,k.current.service,(function(e){return v(l.Num.floor(e))})).then((function(){return v(-1)})).catch((function(){return v(-1)}))}}),"image/png")}else v(-1)}}o=0}),1500)};return a.addEventListener("pointerdown",d),a.addEventListener("pointermove",f),a.addEventListener("pointerup",p),c&&a.parentElement&&c.observe(a.parentElement),function(){c&&c.disconnect(),a.removeEventListener("pointerdown",d),a.removeEventListener("pointermove",f),a.removeEventListener("pointerup",p)}}}}}),[]),(0,a.useEffect)((function(){!e.controller.signatureSlot.hasValue||-1!==c||w||C.current||(x(!0),e.controller.download(e.service).then((function(e){if(e){var t=new Image;t.onload=function(){var e=r.current;if(e){var n=e.getContext("2d");n&&(n.clearRect(0,0,e.width,e.height),n.drawImage(t,l.Num.min(50,l.Num.max(e.width-t.width,0)),l.Num.max(e.height-t.height,0)/2),$())}},t.src=e}x(!1)})).catch((function(){return x(!1)})))}),[e.controller.signatureSlot.reference]),(0,a.useEffect)((function(){return $()}),[S.current]),k.current=e,_.current=!w&&!m&&-1===c&&!e.controller.signatureSlot.hasValue,(0,o.jsxs)(p,{ref:e.onAutoFocus,tabIndex:e.tabIndex||0,onFocus:e.onFocus,onBlur:e.onBlur,$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$error:e.error||!1,$scale:e.styles.scale||1,$disabled:O,$allowSign:_.current,$size:e.size||"md",$processing:-1!==c,children:[(0,o.jsx)("canvas",{ref:function(e){return i.current=e},width:"1",height:"1"}),(0,o.jsx)("canvas",{ref:function(e){return r.current=e},width:"1",height:"1"}),(0,o.jsx)("div",{children:-1!==c?(0,o.jsxs)(h,{$color:j,children:[(0,o.jsx)("div",{children:(0,o.jsx)("div",{style:{width:"".concat(l.Num.range(c,0,100),"%")}})}),(0,o.jsx)("span",{children:e.labels("processing","".concat(l.Num.range(c,0,100),"%"))})]}):(0,o.jsxs)(t.SignatureSignedElement,{children:[e.controller.signatureSlot.hasValue&&(e.controller.signatureSlot.time||0)>0&&(0,o.jsx)("span",{children:e.labels("signed",((null===(n=e.l10n)||void 0===n?void 0:n.locale)||l.L10n.Locales).dateLong(e.controller.signatureSlot.time))})||void 0,(0,o.jsx)(f.ButtonFabric,{styles:{baseColor:j,mode:"outline"},tabIndex:e.tabIndex||0,label:e.labels("clear",""),icon:d.clearIcon,disabled:m,onClick:function(){e.controller.signatureSlot.hasValue&&-1===c&&(g(!0),e.controller.delete(e.service).then((function(){var e,t=r.current;t&&(null===(e=t.getContext("2d"))||void 0===e||e.clearRect(0,0,t.width,t.height)),g(!1)})).catch((function(){return g(!1)})))}})]})})]})}},7209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextFabric=void 0;var r=n(1635),o=n(4848),i=n(6540),a=n(9849),l=n(3162),u=0;t.TextFabric=function(e){var t=(0,i.useState)((function(){return a.SHA2.SHA2_256("Text"+u++)}))[0];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.InputFabric,r.__assign({list:e.suggestions&&t,type:"text",inputMode:"tel"===e.autoComplete?"tel":"text"},e)),e.suggestions&&(0,o.jsx)("datalist",{id:t,children:e.suggestions.map((function(e,t){return e&&(0,o.jsx)("option",{value:e},t)}))})]})}},168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextareaFabric=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(6540),u=n(9849),s=n(7624),c=n(8956),d=n(369),f=n(5442),p=a.styled.textarea(r||(r=o.__makeTemplateObject(["\n    appearance: none;\n    resize: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em top 0.375em;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    overflow-y: auto;\n    overflow-x: hidden;\n    scroll-behavior: smooth;\n    -ms-overflow-style: none;\n    -webkit-overflow-scrolling: touch;\n    -webkit-tap-highlight-color: transparent;\n\n    &::-webkit-scrollbar {\n        display: none;\n    }\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:not(:disabled):not([readonly]) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        &:focus {\n            background-color: ",";\n            background-image: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: ",";\n            &::placeholder {\n                color: ",";\n                opacity: 0.3;\n            }\n        }\n    }\n"],["\n    appearance: none;\n    resize: none;\n    outline: none;\n    box-sizing: border-box;\n    display: block;\n    width: 100%;\n    font-size: 1em;\n    line-height: 1.5em;\n    background-color: ",";\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: ","em;\n    background-position: right 0.375em top 0.375em;\n    border: ",";\n    color: ",";\n    border-radius: ",";\n    padding: ",";\n    padding-right: ",";\n    margin: 0;\n    opacity: 0.65;\n    transition:\n        color 0.15s ease-in-out,\n        background-color 0.15s ease-in-out,\n        border-color 0.15s ease-in-out,\n        box-shadow 0.15s ease-in-out,\n        opacity 0.15s ease-in-out;\n    overflow-y: auto;\n    overflow-x: hidden;\n    scroll-behavior: smooth;\n    -ms-overflow-style: none;\n    -webkit-overflow-scrolling: touch;\n    -webkit-tap-highlight-color: transparent;\n\n    &::-webkit-scrollbar {\n        display: none;\n    }\n\n    &::placeholder {\n        color: ",";\n        opacity: 0.5;\n        transition: color 0.15s ease-in-out opacity 0.15s ease-in-out;\n    }\n\n    &:not(:disabled):not([readonly]) {\n        opacity: 1;\n\n        &:hover {\n            box-shadow: ",";\n        }\n\n        &:focus {\n            background-color: ",";\n            background-image: ",";\n            border-color: ",";\n            color: ",";\n            box-shadow: ",";\n            &::placeholder {\n                color: ",";\n                opacity: 0.3;\n            }\n        }\n    }\n"])),(function(e){return(0,s.color)(e.$error&&"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?e.$errorColor:e.$backgroundColor)}),(function(e){return e.$error?'url("data:image/svg+xml;base64,'.concat((0,d.warningIcon)((0,s.color)(e.$errorColor,(function(t){return t.makeBlackOrWhite("transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor)}))),'")'):void 0}),8/7,(function(e){return"".concat("transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?0:e.$borderSize,"px solid ").concat((0,s.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor))}),(function(e){return(0,s.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,s.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return(0,u.isNumberFinite)(e.$roundness)?"".concat(e.$roundness,"px"):"0.5em"}),(function(e){return"transparent"===e.$backgroundColor&&"transparent"===e.$borderColor?"0":"".concat(.375*e.$scale,"em 0.75em")}),(function(e){return e.$error&&"".concat(8/7+.75,"em")||void 0}),(function(e){return(0,s.color)(e.$error?"transparent"!==e.$backgroundColor&&"transparent"===e.$borderColor?(0,s.color)(e.$errorColor,(function(e){return e.makeBlackOrWhite()})):e.$errorColor:e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,s.color)(e.$error?e.$errorColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))})))||void 0}),(function(e){return(0,s.color)(e.$backgroundColor)}),(function(e){return e.$errorVisible?void 0:"none"}),(function(e){return(0,s.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor)}),(function(e){return(0,s.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}),(function(e){return("transparent"!==e.$backgroundColor||"transparent"!==e.$borderColor)&&"0 0 0 0.2rem ".concat((0,s.color)(e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:e.$backgroundColor,(function(e){return e.manipulate((function(e){return e.alpha(.5)}))})))||void 0}),(function(e){return(0,s.color)(e.$textColor?e.$textColor:e.$borderColor&&"transparent"!==e.$borderColor?e.$borderColor:(0,s.color)(e.$backgroundColor,(function(e){return e.makeBlackOrWhite()})))}));t.TextareaFabric=function(e){var t=e.value,n=(0,l.useRef)({duration:0,handle:0}),r=(0,l.useState)(!1),o=r[0],a=r[1],s=(0,l.useState)("object"==typeof t?(0,u.castToString)(t.pristine):t||""),d=s[0],h=s[1],v="object"==typeof t?[o?d:t.string,function(e){(0,u.cancelUITimeout)(n.current.handle),h(e);var r=u.Num.range(2*n.current.duration,f.DEBOUNCE_MIN,f.DEBOUNCE_MAX);n.current.handle=(0,u.scheduleUITimeout)((function(){var r=u.DateTime.precise;n.current.handle=0,n.current.update=function(){n.current.duration=u.DateTime.elapsed(r,!0),n.current.update=void 0},t.pristine=e||void 0}),r)}]:[d,h],b=v[0],m=v[1],g=(0,l.useState)(!!b),y=g[0],w=g[1],x=(0,l.useState)("auto"),k=x[0],_=x[1],C=(0,l.useRef)(),S=(0,l.useRef)();return(0,l.useEffect)((function(){if(S.current&&(o||(S.current.value=b),e.autoSize)){"number"!=typeof C.current&&(C.current=S.current.getBoundingClientRect().height);var t=S.current.style.height;S.current.style.height="auto";var n=Math.max(C.current,S.current.scrollHeight);_(n>10?n+"px":"auto"),S.current.style.height=t}}),[b]),(0,l.useEffect)((function(){return function(){(0,u.cancelUITimeout)(n.current.handle)}}),[]),n.current.update&&n.current.update(),(0,i.jsx)(p,{id:e.id,ref:function(t){e.onAutoFocus&&e.onAutoFocus(t),S.current=t},tabIndex:e.tabIndex,placeholder:e.placeholder,required:e.required||!1,disabled:e.disabled||!1,readOnly:e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||!1,rows:e.rows||2,maxLength:e.maxLength||void 0,defaultValue:b,autoComplete:"off",inputMode:"text","aria-describedby":e.ariaDescribedBy,style:{height:k,overflowY:e.autoSize?"hidden":void 0},onChange:function(t){m(t.target.value),w(!0),e.onChange&&(0,c.setReturnValue)(m,e.onChange(t.target.value))},onFocus:(0,c.handleFocus)(a,m,e.onFocus),onBlur:(0,c.handleBlur)(a,m,e.onBlur),onKeyDown:function(t){t.shiftKey&&"Enter"===t.key&&e.onSubmit?(t.preventDefault(),e.onSubmit()):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?e.onCancel&&(t.preventDefault(),e.onCancel()):e.onSubmit&&(t.preventDefault(),e.onSubmit()))},$backgroundColor:e.styles.backgroundColor||"transparent",$borderColor:e.styles.borderColor||"transparent",$borderSize:e.styles.borderSize||1,$roundness:e.styles.roundness,$textColor:e.styles.textColor,$errorColor:e.styles.errorColor,$errorVisible:y,$error:e.error||!1,$scale:e.styles.scale||1})}},223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URLFabric=void 0;var r=n(1635),o=n(3162);t.URLFabric=function(e){return(0,o.InputFabric)(r.__assign(r.__assign({type:"url",inputMode:"url"},e),{placeholder:e.placeholder||"https://"}))}},9699:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YesNoFabric=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(6540),u=n(9849),s=n(8956),c=n(6494),d=n(3550),f=n(6570),p=n(5442),h=a.styled.div(r||(r=o.__makeTemplateObject(["\n    display: block;\n    width: 100%;\n\n    > * {\n        display: ",";\n    }\n\n    > * + * {\n        margin-top: ",";\n    }\n"],["\n    display: block;\n    width: 100%;\n\n    > * {\n        display: ",";\n    }\n\n    > * + * {\n        margin-top: ",";\n    }\n"])),(function(e){return"vertical"===e.$alignment?"block":void 0}),(function(e){return"vertical"===e.$alignment&&"".concat(e.$margin||8,"px")||void 0})),v=function(e){switch(e){case"yes":return d.yesIcon;case"no":return f.noIcon}},b=function(e,t,n){if("yes"===t||"no"===t){if(e.reference!==t){var r="yes"===t?n.yes.label:n.no.label;e.set(r,t,r)}return t}return e.clear(),""};t.YesNoFabric=function(e){var t=e.value,n=(0,l.useRef)(0),r=(0,l.useState)("object"!=typeof t&&t||""),o=r[0],a=r[1],d="object"==typeof t?[0!==n.current?o:b(t,t.reference,e),function(r){(0,u.cancelUITimeout)(n.current),a(r),n.current=(0,u.scheduleUITimeout)((function(){n.current=0,b(t,r,e),e.autoSubmit&&r&&(0,s.handleAutoSubmit)(g)}),p.DEBOUNCE_NORMAL)}]:[o,a],f=d[0],m=d[1],g=(0,l.useRef)({id:0,cb:e.onSubmit}),y=function(n){g.current.id&&(clearTimeout(g.current.id),g.current.id=0),m(n||""),e.onChange&&e.onChange(n||""),"object"!=typeof t&&e.autoSubmit&&n&&(0,s.handleAutoSubmit)(g)},w=function(t,n){"y"===t.key||"Y"===t.key||t.key===e.yes.label.charAt(0).toLowerCase()||t.key===e.yes.label.charAt(0).toUpperCase()?(t.preventDefault(),y("yes")):"n"===t.key||"N"===t.key||t.key===e.no.label.charAt(0).toLowerCase()||t.key===e.no.label.charAt(0).toUpperCase()?(t.preventDefault(),y("no")):t.shiftKey&&"Enter"===t.key&&e.onSubmit?(t.preventDefault(),e.onSubmit()):"Escape"===t.key?t.currentTarget.blur():"Tab"===t.key&&(t.shiftKey?"yes"===n&&e.onCancel&&(t.preventDefault(),e.onCancel()):"no"===n&&e.onSubmit&&(t.preventDefault(),e.onSubmit()))};return(0,l.useEffect)((function(){return function(){(0,u.cancelUITimeout)(n.current)}}),[]),g.current.cb=e.onSubmit,(0,i.jsxs)(h,{$alignment:e.styles.alignment,$margin:e.styles.margin,children:[(0,i.jsx)(c.ButtonFabric,{styles:{baseColor:e.yes.color||e.styles.yesColor,mode:"yes"===f?"fill":"outline",hover:"outline",outlineSize:e.styles.outlineSize,roundness:e.styles.roundness,scale:e.styles.scale,group:"vertical"!==e.styles.alignment?"start":void 0},label:e.yes.label,icon:e.yes.icon&&v(e.yes.icon),iconPosition:"left",tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,disabled:e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||!1,onAutoFocus:(!f||"yes"===f)&&e.onAutoFocus||void 0,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(e){return w(e,"yes")},onClick:function(){return y((e.required||"yes"!==f)&&"yes")}}),(0,i.jsx)(c.ButtonFabric,{styles:{baseColor:e.no.color||e.styles.noColor,mode:"no"===f?"fill":"outline",hover:"outline",outlineSize:e.styles.outlineSize,roundness:e.styles.roundness,scale:e.styles.scale,group:"vertical"!==e.styles.alignment?"end":void 0},label:e.no.label,icon:e.no.icon&&v(e.no.icon),iconPosition:"right",tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,disabled:e.disabled||e.readOnly||"object"==typeof t&&(t.isFrozen||t.isLocked)||!1,onAutoFocus:"no"===f&&e.onAutoFocus||void 0,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(e){return w(e,"no")},onClick:function(){return y((e.required||"no"!==f)&&"no")}})]})}},3215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFontLoader=void 0;var r=n(6540),o=n(4892);t.useFontLoader=function(e,t,n){var i=(0,r.useState)((function(){return e?o.FontLoader.isStandardFont(e)?e:void 0:""})),a=i[0],l=i[1],u=(0,r.useRef)(""),s=(0,r.useRef)(""),c=(0,r.useRef)(l);return u.current||(u.current=o.FontLoader.id),c.current=l,(0,r.useEffect)((function(){s.current!==e&&(s.current=e,a!==e&&o.FontLoader.request(u,s,t,c,n))})),["string"!=typeof a,a]}},4892:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=void 0;var r=n(1635),o=n(9849),i=function(){function e(){}return Object.defineProperty(e,"id",{get:function(){return"".concat(++this.counter)},enumerable:!1,configurable:!0}),e.init=function(){var e=this;return this.initialized||(this.initialized=!0,navigator.userAgent.toLowerCase().indexOf("firefox")>-1?(0,o.scheduleAnimation)((function(){e.ready=!0,e.load()})):this.ready=!0),!this.ready},e.load=function(){var e,t=this;if(!this.init()&&(0,o.arraySize)(this.requests)>0){var i=(0,o.findFirst)(this.requests,(function(e){return!(e.context&&!e.context.current)}));if(i){var a=(0,o.findFirst)(this.requests,(function(e){return e.loading||!1}));if(a&&a.id!==i.id)return;var l=i.ref.current,u=i.url?{custom:{families:[i.font],urls:[i.url]}}:{google:{families:[i.font]}};i.loading=!0,n(5371).load(r.__assign(r.__assign({},u),{classes:!1,fontactive:function(e){return t.done(i,l,e)},inactive:function(){return t.done(i,l,i.fallback||"")},context:null===(e=i.context)||void 0===e?void 0:e.current.contentWindow}))}else(0,o.scheduleFrame)((function(){return t.load()}))}},e.done=function(e,t,n){e.ref.current===t?(delete this.requests[e.id],e.set.current(n)):e.loading=!1,this.load()},e.request=function(e,t,n,r,o){if(!t.current||this.isStandardFont(t.current))return delete this.requests[e.current],void r.current(t.current);var i=t.current,a="";if(0===i.indexOf("https://")||0===i.indexOf("/")){var l=i.lastIndexOf("#");if(-1!==l){var u=i.substr(l+1);a=i.substr(0,l),-1!==u.indexOf("&")&&(u=u.substr(0,u.indexOf("&"))),-1!==u.indexOf("|")&&(u=u.substr(0,u.indexOf("|")));try{i=decodeURIComponent(u.replace(/\+/g," "))}catch(e){i="",a=""}}else i=""}if(i){var s=this.requests[e.current];s?(s.font=i,s.url=a,s.set=r):this.requests[e.current]={id:e.current,ref:t,font:i,url:a,context:n,set:r,fallback:o},this.load()}else delete this.requests[e.current],r.current(o||"")},e.isStandardFont=function(e){switch(e.toLowerCase()){case"arial":case"helvetica":case"times new roman":case"times":case"courier new":case"courier":case"sans-serif":return!0}return!1},e.counter=0,e.initialized=!1,e.ready=!1,e.requests={},e}();t.FontLoader=i},8440:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearIcon=void 0;var r=n(4848);t.clearIcon=(0,r.jsx)("svg",{viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M19.521 0.564l-0.086-0.086c-0.283-0.283-0.659-0.438-1.061-0.438s-0.778 0.156-1.061 0.438l-5.314 5.314-0.146-0.146c-0.195-0.195-0.512-0.195-0.707 0l-1.147 1.147c-0.498-0.488-1.202-0.768-1.936-0.768-0.625 0-1.226 0.203-1.693 0.571-0.031 0.025-3.149 2.469-6.029 3.429-0.204 0.068-0.342 0.259-0.342 0.474 0 2.538 0.988 4.923 2.782 6.717s4.18 2.782 6.717 2.782c0.215 0 0.406-0.138 0.474-0.342 0.96-2.88 3.404-5.997 3.429-6.029 0.83-1.051 0.74-2.673-0.197-3.629l1.147-1.147c0.195-0.195 0.195-0.512 0-0.707l-0.146-0.146 5.314-5.314c0.585-0.585 0.585-1.536-0-2.121zM8.063 7.025c0.48 0 0.934 0.179 1.247 0.492l0.336 0.336c0 0 0 0 0 0l2.836 2.836c0.596 0.596 0.658 1.659 0.136 2.321-0.015 0.019-0.078 0.099-0.177 0.23l-5.679-5.684c0.13-0.098 0.208-0.16 0.227-0.174 0.291-0.23 0.672-0.356 1.073-0.356zM9.148 18.993c-0.745-0.031-1.466-0.158-2.15-0.369 0.967-1.87 2.837-3.751 2.856-3.77 0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0c-0.084 0.084-2.065 2.077-3.091 4.124-0.807-0.359-1.548-0.84-2.199-1.42l2.997-2.997c0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0l-2.997 2.997c-0.58-0.652-1.061-1.392-1.42-2.199 2.047-1.025 4.040-3.007 4.124-3.091 0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0c-0.019 0.019-1.897 1.887-3.77 2.856-0.211-0.684-0.338-1.405-0.369-2.15 1.905-0.7 3.803-1.91 4.936-2.701l5.904 5.91c-0.791 1.133-2 3.030-2.699 4.933zM12.5 9.293l-1.793-1.793 0.793-0.793 1.793 1.793-0.793 0.793zM18.814 1.979l-5.314 5.314-0.793-0.793 5.314-5.314c0.094-0.094 0.219-0.145 0.354-0.145s0.26 0.052 0.354 0.145l0.086 0.086c0.195 0.195 0.195 0.512 0 0.707z"})})},3657:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closeIcon=void 0;t.closeIcon=function(e){return btoa('<?xml version="1.0" encoding="utf-8"?>\n        <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n        <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20">\n            <path d="M10.707 10.5l5.646-5.646c0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0l-5.646 5.646-5.646-5.646c-0.195-0.195-0.512-0.195-0.707 0s-0.195 0.512 0 0.707l5.646 5.646-5.646 5.646c-0.195 0.195-0.195 0.512 0 0.707 0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146l5.646-5.646 5.646 5.646c0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146c0.195-0.195 0.195-0.512 0-0.707l-5.646-5.646z" fill="'.concat(e,'"></path>\n        </svg>'))}},5720:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropdownIcon=void 0;t.dropdownIcon=function(e){return btoa('<?xml version="1.0" encoding="utf-8"?>\n        <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n        <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20">\n            <path d="M15.5 7.5c-0.128 0-0.256-0.049-0.354-0.146l-5.646-5.646-5.646 5.646c-0.195 0.195-0.512 0.195-0.707 0s-0.195-0.512 0-0.707l6-6c0.195-0.195 0.512-0.195 0.707 0l6 6c0.195 0.195 0.195 0.512 0 0.707-0.098 0.098-0.226 0.146-0.354 0.146z" fill="'.concat(e,'"></path>\n            <path d="M9.5 19.5c-0.128 0-0.256-0.049-0.354-0.146l-6-6c-0.195-0.195-0.195-0.512 0-0.707s0.512-0.195 0.707 0l5.646 5.646 5.646-5.646c0.195-0.195 0.512-0.195 0.707 0s0.195 0.512 0 0.707l-6 6c-0.098 0.098-0.226 0.146-0.354 0.146z" fill="').concat(e,'"></path>\n        </svg>'))}},5747:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileIcon=void 0;var r=n(4848);t.fileIcon=(0,r.jsxs)("svg",{viewBox:"0 0 10240 10240",children:[(0,r.jsx)("path",{d:"M1280 640l5230 0c352,0 656,126 905,375l1170 1170c249,249 375,553 375,905l0 6510 -7680 0 0 -3761 640 1278 0 1843 6400 0 0 -5440c0,-176 -144,-320 -320,-320l-1600 0 0 -1600c0,-176 -144,-320 -320,-320l-4160 0 0 1562 -640 321 0 -2523zm5760 960l0 960 960 0 -960 -960z"}),(0,r.jsx)("path",{d:"M1155 3583l3035 -1520c158,-79 350,-14 429,143l1636 3266c79,158 15,350 -143,429l-3266 1636c-157,79 -350,14 -429,-143l-670 -1337c55,15 112,23 172,23l556 0 371 741 2693 -1349 -1349 -2693 -1480 741 -1110 0c-154,0 -304,22 -445,63zm168 1626l-43 -85 0 -4c0,-163 157,-320 320,-320l234 0 2 5c-235,31 -430,190 -513,404z"}),(0,r.jsx)("path",{d:"M1919 5760c-176,0 -319,-144 -319,-320 0,-177 143,-320 320,-320l1280 0c176,0 320,-144 320,-320 0,-176 -144,-320 -320,-320l-1600 0c-341,0 -640,301 -640,640l0 1108c-97,-56 -186,-125 -265,-203 -240,-241 -375,-565 -375,-905 0,-705 575,-1280 1280,-1280l1600 0c529,0 960,431 960,960 0,528 -430,959 -958,960l-1283 0z"})]})},4539:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hyperlinkIcon=void 0;var r=n(4848);t.hyperlinkIcon=(0,r.jsxs)("svg",{viewBox:"0 0 20 20",children:[(0,r.jsx)("path",{d:"M19.5 0h-5c-0.276 0-0.5 0.224-0.5 0.5s0.224 0.5 0.5 0.5h3.833l-11.186 11.146c-0.196 0.195-0.196 0.511-0.001 0.707 0.098 0.098 0.226 0.147 0.354 0.147s0.255-0.049 0.353-0.146l11.147-11.107v3.753c0 0.276 0.224 0.5 0.5 0.5s0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5z"}),(0,r.jsx)("path",{d:"M16.5 20h-15c-0.827 0-1.5-0.673-1.5-1.5v-15c0-0.827 0.673-1.5 1.5-1.5h10c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5h-10c-0.276 0-0.5 0.224-0.5 0.5v15c0 0.276 0.224 0.5 0.5 0.5h15c0.276 0 0.5-0.224 0.5-0.5v-10c0-0.276 0.224-0.5 0.5-0.5s0.5 0.224 0.5 0.5v10c0 0.827-0.673 1.5-1.5 1.5z"})]})},6570:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noIcon=void 0;var r=n(4848);t.noIcon=(0,r.jsx)("svg",{viewBox:"0 0 10240 10240",children:(0,r.jsx)("path",{d:"M7906 1506l828 828c124,124 124,328 0,452l-2334 2334 2334 2334c124,124 124,328 0,452l-828 828c-124,124 -328,124 -452,0l-2334 -2334 -2334 2334c-124,124 -328,124 -452,0l-828 -828c-124,-124 -124,-328 0,-452l2334 -2334 -2334 -2334c-124,-124 -124,-328 0,-452l828 -828c124,-124 328,-124 452,0l2334 2334 2334 -2334c124,-124 328,-124 452,0z"})})},6974:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.penIcon=void 0;t.penIcon=function(e){return btoa('<?xml version="1.0" encoding="UTF-8"?>\n        <svg width="32" height="32" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">\n            <path d="m31.325 0.67378c-0.44812-0.44812-1.0483-0.67378-1.7877-0.67378-1.2051 0-2.8248 0.63057-4.8349 1.8789-0.64338-0.68019-1.8677-1.7237-3.4105-1.8485-1.2307-0.099227-2.3927 0.38571-3.4521 1.4452-2.2486 2.2486-3.3561 4.995-4.0891 6.8115-0.24967 0.61777-0.55855 1.386-0.7122 1.5444-0.05281 0.05281-0.21126 0.21126-0.48653-0.02081-0.31369-0.29608-0.80822-0.28968-1.1139 0.016-0.31209 0.31209-0.31209 0.81942 0 1.1315 0.13124 0.13124 0.46893 0.38571 0.89944 0.50574 0.17285 0.04801 0.34569 0.07202 0.51534 0.07202 0.20326 0 0.40171-0.03521 0.59056-0.10403-0.21926 0.22566-0.43852 0.45132-0.65778 0.68018-5.6287 5.8784-11.939 13.945-12.775 18.952-0.043212 0.25447 0.040011 0.51534 0.22406 0.69779 0.15204 0.15204 0.3553 0.23366 0.56655 0.23366 0.043212 0 0.088024-0.0032 0.13124-0.0112 2.0934-0.3489 4.8525-1.6741 8.2022-3.9371 2.964-2.0021 6.2513-4.6541 9.5066-7.6677 3.1753-2.94 6.0721-5.9888 8.3783-8.82 1.7221-2.1142 3.9339-5.1342 4.6957-7.5092 0.48173-1.5028 0.3505-2.6391-0.39051-3.3801zm-12.352 1.9317c0.7202-0.7202 1.434-1.0419 2.1846-0.98267 0.89784 0.070419 1.6853 0.66898 2.1846 1.1523-0.39531 0.27528-0.80182 0.56816-1.2211 0.88344-2.279 1.7109-4.8653 3.9819-7.442 6.5314 0.17125-0.3489 0.34569-0.78101 0.55855-1.306 0.68339-1.6965 1.7173-4.2604 3.7354-6.2785zm-14.113 21.779 2.756 2.756c-2.1846 1.4276-4.1355 2.4423-5.7136 2.956 0.51534-1.5796 1.5332-3.5306 2.9576-5.712zm12.696-5.1758c-3.0024 2.7784-5.9376 5.1662-8.5895 7.0195l-3.1929-3.1929c2.1142-3.028 4.9149-6.4146 8.1702-9.8139 3.7802-3.9483 7.514-7.21 10.502-9.2617l3.5914 3.5914c-2.2902 3.3385-6.0593 7.5637-10.481 11.658zm12.635-15.643c-0.23686 0.7394-0.66898 1.6212-1.2659 2.6103l-3.1064-3.1064c1.5652-0.94586 2.8488-1.4692 3.7194-1.4692 0.44972 0 0.60496 0.15524 0.65618 0.20486 0.3713 0.3713 0.15844 1.2627-0.0016 1.7605z" stroke-width="1.6004" fill="'.concat(e,'" />\n        </svg>'))}},4220:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderImage=void 0;t.placeholderImage=function(e){return btoa('<?xml version="1.0" encoding="utf-8"?>\n        <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n        <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20">\n            <path d="M13.5 9c-1.378 0-2.5-1.122-2.5-2.5s1.122-2.5 2.5-2.5 2.5 1.122 2.5 2.5-1.122 2.5-2.5 2.5zM13.5 5c-0.827 0-1.5 0.673-1.5 1.5s0.673 1.5 1.5 1.5 1.5-0.673 1.5-1.5-0.673-1.5-1.5-1.5z" fill="'.concat(e,'"></path>\n            <path d="M18.5 0h-17c-0.827 0-1.5 0.673-1.5 1.5v17c0 0.827 0.673 1.5 1.5 1.5h17c0.827 0 1.5-0.673 1.5-1.5v-17c0-0.827-0.673-1.5-1.5-1.5zM1 18.5v-4.807l4.197-4.617c0.085-0.093 0.196-0.145 0.314-0.147s0.231 0.048 0.318 0.139l9.5 9.932h-13.83c-0.276 0-0.5-0.224-0.5-0.5zM19 18.5c0 0.276-0.224 0.5-0.5 0.5h-1.786l-10.161-10.623c-0.281-0.294-0.655-0.452-1.053-0.447s-0.768 0.173-1.042 0.474l-3.457 3.803v-10.707c0-0.276 0.224-0.5 0.5-0.5h17c0.276 0 0.5 0.224 0.5 0.5v17z" fill="').concat(e,'"></path>\n        </svg>'))}},7582:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.positionIcon=void 0;var r=n(4848);t.positionIcon=(0,r.jsxs)("svg",{viewBox:"0 0 20 20",children:[(0,r.jsx)("path",{d:"M18.5 5h-10c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h10c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M18.5 9h-10c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h10c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M18.5 13h-10c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h10c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M18.5 17h-10c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h10c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M5.146 13.646l-1.146 1.146v-8.586l1.146 1.146c0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146c0.195-0.195 0.195-0.512 0-0.707l-2-2c-0.195-0.195-0.512-0.195-0.707 0l-2 2c-0.195 0.195-0.195 0.512 0 0.707s0.512 0.195 0.707 0l1.146-1.146v8.586l-1.146-1.146c-0.195-0.195-0.512-0.195-0.707 0s-0.195 0.512 0 0.707l2 2c0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146l2-2c0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0z"})]})},3108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uploadIcon=void 0;var r=n(4848);t.uploadIcon=(0,r.jsxs)("svg",{className:"icon",viewBox:"0 0 10240 10240",children:[(0,r.jsx)("path",{d:"M640 5760l640 0c248,0 461,132 572,354l607 1212c111,222 324,354 572,354l4178 0c248,0 461,-132 572,-354l607 -1212c111,-222 324,-354 572,-354l640 0 0 3520c0,176 -144,320 -320,320l-8320 0c-176,0 -320,-144 -320,-320l0 -3520z"}),(0,r.jsx)("path",{d:"M7887 6400l-160 320 -5214 0 -160 -320 5534 0zm-320 640l-72 143c-57,114 -159,177 -286,177l-4178 0c-127,0 -229,-63 -286,-177l-72 -143 4894 0z"}),(0,r.jsx)("path",{d:"M6853 4293l-1507 1506c-124,124 -328,124 -452,0l-1507 -1506c-124,-125 -187,-277 -187,-453l0 -1159c0,-66 38,-122 99,-147 61,-26 127,-13 174,34l1007 1007 0 -2135c0,-88 72,-160 160,-160l960 0c88,0 160,72 160,160l0 2135 1007 -1007c47,-47 113,-60 174,-34 61,25 99,81 99,147l0 1159c0,176 -63,328 -187,453z"})]})},369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warningIcon=void 0;t.warningIcon=function(e){return btoa('<?xml version="1.0" encoding="utf-8"?>\n        <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n        <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20">\n            <path d="M16.218 3.782c-1.794-1.794-4.18-2.782-6.718-2.782s-4.923 0.988-6.718 2.782-2.782 4.18-2.782 6.717 0.988 4.923 2.782 6.718 4.18 2.782 6.718 2.782 4.923-0.988 6.718-2.782 2.782-4.18 2.782-6.718-0.988-4.923-2.782-6.717zM9.5 19c-4.687 0-8.5-3.813-8.5-8.5s3.813-8.5 8.5-8.5c4.687 0 8.5 3.813 8.5 8.5s-3.813 8.5-8.5 8.5z" fill="'.concat(e,'"></path>\n            <path d="M9.5 18c-0 0 0 0 0 0-0.276 0-0.5-0.224-0.5-0.5v-1c0-0.276 0.224-0.5 0.5-0.5v0c0.276 0 0.5 0.224 0.5 0.5v1c0 0.276-0.224 0.5-0.5 0.5z" fill="').concat(e,'"></path>\n            <path d="M9.5 15c-0.276 0-0.5-0.224-0.5-0.5v-10c0-0.276 0.224-0.5 0.5-0.5s0.5 0.224 0.5 0.5v10c0 0.276-0.224 0.5-0.5 0.5z" fill="').concat(e,'"></path>\n        </svg>'))}},3550:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yesIcon=void 0;var r=n(4848);t.yesIcon=(0,r.jsx)("svg",{viewBox:"0 0 10240 10240",children:(0,r.jsx)("path",{d:"M3840 5760l3934 -3934c124,-124 328,-124 452,0l1148 1148c124,124 124,328 0,452l-5308 5308c-124,124 -328,124 -452,0l-2748 -2748c-124,-124 -124,-328 0,-452l1148 -1148c124,-124 328,-124 452,0l1374 1374z"})})},7663:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOverlay=void 0;var r=n(1635),o=n(4848),i=n(6540);t.useOverlay=function(){var e=(0,i.useRef)(),t=(0,i.useRef)(),n=(0,i.useRef)(0);return[function(n){var a,l,u,s=(0,i.useState)()[1];return(0,i.useEffect)((function(){var t;return(null===(t=e.current)||void 0===t?void 0:t.onEffect)&&e.current.onEffect()})),t.current=function(){return s({})},e.current&&(e.current.rendered=!0),n.element&&(null===(a=e.current)||void 0===a?void 0:a.children)?(0,o.jsx)(n.element,r.__assign({},n.props,{children:null===(l=e.current)||void 0===l?void 0:l.children})):(0,o.jsx)(o.Fragment,{children:null===(u=e.current)||void 0===u?void 0:u.children})},function(a){var l=++n.current;return e.current=r.__assign(r.__assign({},a),{id:l,rendered:!1}),(0,i.useEffect)((function(){return e.current&&!e.current.rendered&&t.current&&t.current(),function(){var n,r;(null===(n=e.current)||void 0===n?void 0:n.id)===l&&((null===(r=e.current)||void 0===r?void 0:r.rendered)&&t.current&&t.current(),e.current=void 0)}})),(0,o.jsx)(o.Fragment,{})}]}},5147:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heartShape=void 0;var r=n(4848);t.heartShape=(0,r.jsx)("svg",{viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"m5.75 2.539c-2.343 0-4.25 1.907-4.25 4.25 0 3.04 2.35 5.802 4.321 7.585 1.76 1.592 3.544 2.708 4.179 3.087 0.635-0.379 2.419-1.495 4.179-3.087 1.971-1.782 4.321-4.545 4.321-7.585 0-2.343-1.907-4.25-4.25-4.25-1.703 0-3.357 1.401-3.776 2.658-0.068 0.204-0.259 0.64132-0.474 0.64132s-0.406-0.43732-0.474-0.64132c-0.419-1.257-2.073-2.658-3.776-2.658z",strokeLinejoin:"round"})})},4126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.personShape=void 0;var r=n(4848);t.personShape=(0,r.jsxs)("svg",{viewBox:"0 0 20 20",children:[(0,r.jsx)("path",{d:"m9.5 1.3c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z"}),(0,r.jsx)("path",{d:"m9.5 11.9c-3.487 0-6.06 0.953-7.441 2.756-1.035 1.351-1.058 2.732-1.059 2.746 0 0.274 0.224 0.498 0.5 0.498h16c0.276 0 0.5-0.224 0.5-0.5 0-0.012-0.023-1.393-1.059-2.744-1.382-1.803-3.955-2.756-7.441-2.756z"})]})},8631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.starShape=void 0;var r=n(4848);t.starShape=(0,r.jsx)("svg",{viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"m15.094 17.79-5.0784-2.6559-5.0669 2.6778 0.95658-5.6506-4.1125-3.9914 5.6696-0.83638 2.5252-5.1447 2.5475 5.1337 5.6732 0.81184-4.0952 4.0092z",strokeLinejoin:"round"})})},9695:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.thumbsDownShape=void 0;var r=n(4848);t.thumbsDownShape=(0,r.jsx)("svg",{viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"m4.5945 2.034h-3c-0.276 0-0.5 0.224-0.5 0.5v9c0 0.276 0.224 0.5 0.5 0.5h3c0.276 0 0.50307-0.22402 0.5-0.5v-9c0-0.276-0.224-0.5-0.5-0.5zm14.039 7.726c-0.151-0.304-0.304-0.414-0.37-0.414-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5c0.042 0 0.072 0 0.117-0.078 0.066-0.117 0.104-0.32 0.104-0.558 0-0.445-0.126-0.974-0.328-1.382-0.198-0.399-0.399-0.544-0.487-0.544-0.276 0-0.5-0.224-0.5-0.5 0-0.177 0.092-0.333 0.231-0.422 0.031-0.317-0.117-1.165-0.501-1.718-0.145-0.209-0.298-0.329-0.418-0.329-0.276 0-0.5-0.224-0.5-0.5 0-0.88-0.972-1.281-1.875-1.281-2.513 0-3.217 0.376-4.032 0.812-0.762 0.407-1.618 0.865-3.781 1.134v8.187c2.101 0.689 4.152 1.877 5.812 3.373 1.593 1.436 2.639 2.988 2.994 4.426 0.272-0.087 0.579-0.271 0.776-0.618 0.334-0.59 0.584-2.096-1.493-5.557-0.093-0.154-0.095-0.347-6e-3 -0.504s0.255-0.254 0.435-0.254h3.483c0.199 0 0.327-0.07 0.43-0.234 0.117-0.187 0.181-0.477 0.181-0.815 0-0.424-0.102-0.882-0.272-1.225z",strokeLinejoin:"round"})})},2682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.thumbsUpShape=void 0;var r=n(4848);t.thumbsUpShape=(0,r.jsx)("svg",{viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"m4.6945 17.966h-3c-0.276 0-0.5-0.224-0.5-0.5v-9c0-0.276 0.224-0.5 0.5-0.5h3c0.276 0 0.5 0.224 0.5 0.5v9c0 0.276-0.224 0.5-0.5 0.5zm13.839-7.726c-0.151 0.304-0.304 0.414-0.37 0.414-0.276 0-0.5 0.224-0.5 0.5s0.224 0.5 0.5 0.5c0.042 0 0.072 0 0.117 0.078 0.066 0.117 0.104 0.32 0.104 0.558 0 0.445-0.126 0.974-0.328 1.382-0.198 0.399-0.399 0.544-0.487 0.544-0.276 0-0.5 0.224-0.5 0.5 0 0.177 0.092 0.333 0.231 0.422 0.031 0.317-0.117 1.165-0.501 1.718-0.145 0.209-0.298 0.329-0.418 0.329-0.276 0-0.5 0.224-0.5 0.5 0 0.88-0.972 1.281-1.875 1.281-2.513 0-3.217-0.376-4.032-0.812-0.762-0.407-1.2175-0.865-3.3805-1.134v-8.187c2.101-0.689 3.7515-1.877 5.4115-3.373 1.593-1.436 2.639-2.988 2.994-4.426 0.272 0.087 0.579 0.271 0.776 0.618 0.334 0.59 0.584 2.096-1.493 5.557-0.093 0.154-0.095 0.347-6e-3 0.504s0.255 0.254 0.435 0.254h3.483c0.199 0 0.327 0.07 0.43 0.234 0.117 0.187 0.181 0.477 0.181 0.815 0 0.424-0.102 0.882-0.272 1.225z",strokeLinejoin:"round"})})},8652:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownifyToJSX=t.findActiveItem=t.useL10n=t.useRunner=void 0;var r=n(5205);Object.defineProperty(t,"useRunner",{enumerable:!0,get:function(){return r.useRunner}});var o=n(219);Object.defineProperty(t,"useL10n",{enumerable:!0,get:function(){return o.useL10n}});var i=n(2880);Object.defineProperty(t,"findActiveItem",{enumerable:!0,get:function(){return i.findActiveItem}});var a=n(2835);Object.defineProperty(t,"markdownifyToJSX",{enumerable:!0,get:function(){return a.markdownifyToJSX}})},5205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRunner=void 0;var r=n(1635),o=n(9849),i=n(6540),a=n(5154),l=n(2880);t.useRunner=function(e,t){var n=t||{},u=(0,i.useRef)(),s=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)([]),f=(0,i.useRef)(),p=(0,i.useRef)((0,a.verifyView)(e.view)),h=(0,i.useRef)(!1),v=(0,i.useRef)(),b=(0,i.useRef)("live"===p.current&&e.snapshot&&n.restore),m=(0,i.useState)(),g=m[0],y=m[1],w=(0,i.useState)(),x=w[0],k=w[1],_=(0,i.useRef)(),C=(0,i.useState)({}),S=C[0],O=C[1],j=(0,i.useRef)(),$=function(e){return j.current&&j.current(e)},P=function(e){return{runnerRef:u,storylineRef:c,viewRef:p,promiseRef:v,sequence:e,rules:n,reset:function(){return $(void 0)},restart:V,update:D}},F=!1,E=(0,i.useRef)(new o.Debounce((function(){u.current&&u.current.instance&&s.current&&s.current.onChange&&s.current.onChange(u.current.instance)}))),R=(0,i.useRef)(new o.Debounce((function(){u.current&&u.current.instance&&s.current&&s.current.onData&&s.current.onData(u.current.instance)}))),T=function(){return u.current&&!u.current.isRunning&&!u.current.isFinishing&&!u.current.isPausing||!1},N=function(){return"preview"!==p.current&&u.current&&!u.current.isFinishing&&!u.current.isPausing||!1},B=function(e){if("live"===p.current&&u.current&&u.current.isRunning&&c.current&&!c.current.isEmpty&&!c.current.isEvaluating&&!u.current.isFinishing&&!u.current.isPausing){if(!e&&"sequence"===n.mode){if(!((t=(0,l.findActiveItem)(d.current))&&(n.canInteract?n.canInteract(t):"node"===t.type)&&t||void 0))return!1}return!0}var t;return!1},M=function(){return u.current&&u.current.isRunning&&!u.current.isFinishing&&!u.current.isPausing&&(!c.current||!c.current.isEmpty)||!1},z=function(t,n){e.onAction&&n&&u.current&&u.current.isRunning&&e.onAction(t,{fingerprint:u.current.fingerprint,name:u.current.name},n&&{id:n.key,name:n.props.name||"",get alias(){var e,t=(0,o.getString)(null===(e=n.block)||void 0===e?void 0:e.props,"alias");if(t)return t;if(n.node.slots){var r=(0,o.findFirst)(n.node.slots.all,(function(e){return!("static"!==e.kind||!e.alias)}));if(r)return r.alias}}})},I=function(e){if(F=!0,u.current){var t=u.current.storyline;if(c.current=t,"sequence"===n.mode){var r=d.current;if(!t||t.isFinishing||t.isPausing||!t.isChanged&&!e){if(!t&&"finished"!==u.current.status&&"paused"!==u.current.status){m=((0,o.findFirst)(r,(function(e){return("test"===p.current||!e.isHistory)&&"prologue"!==e.type}))||{index:r.length}).index;r.splice(m,r.length-m)}}else{var i=r.length>0&&"prologue"===r[0].type&&r[0],a=t.prologue;i&&!a||!i&&a?A():i&&a&&(0,o.set)(i,"prologue",a);for(var s=t.nodes,h=0,v=(_=(0,l.findActiveItem)(r))&&(_.node&&_.node.key||_.index)||b.current&&b.current.key||-1,m=((0,o.findFirst)(r,(function(e){return"preview"===p.current?"prologue"!==e.type:!e.isHistory&&"node"===e.type}))||{index:r.length}).index;m<r.length&&h<s.length;m++,h++){var g=r[m],y=s[h];if(!g.node||g.node.key!==y.key)break;if((0,o.set)(g,"node",y),(g.isPreActive||g.isBeforeActive||g.isActive||g.isAfterActive||g.isPostActive)&&(v=m),"preview"!==p.current&&y.isFailed){m++,h++;break}}for(m<r.length&&r.splice(m,r.length-m);h<s.length;h++,m++){y=s[h];"active"===(g=(0,l.addItemToSequence)(P(r),v===y.key||-1===v&&"preview"!==p.current||((0,o.isFilledString)(v)||-1===v)&&"preview"!==p.current&&y.isFailed?"active":(0,o.isFilledString)(v)||-1===v&&"preview"===p.current?"past":"upcoming","node",y,z)).state&&(g.activate(y.key!==b.current&&(1===r.length||g.index>0&&g.index<r.length&&r[g.index-1].isHistory)),v=m)}if("preview"!==p.current){if(t.isEmpty&&1===r.length&&"prologue"===r[0].type&&((0,l.addItemToSequence)(P(r),"upcoming","epilogue",t.epilogue),"live"===p.current&&n.banner&&f.current)){var w=n.banner(f.current);w&&(0,l.addItemToSequence)(P(r),"upcoming","epilogue",w)}if((0,o.isFilledString)(v)||-1===v){var x=(0,o.findFirst)(r,(function(e){return!e.isHistory&&(!e.node||e.node.isFailed)}))||(0,o.findLast)(r,(function(e){return!e.isHistory}));x&&x.activate(!0)}}else{var k=r.length>0&&"epilogue"===r[r.length-1].type&&r[r.length-1];if(!k&&r.length>0){g=(0,l.addItemToSequence)(P(r),"upcoming","epilogue",t.epilogue);_&&"epilogue"===_.type&&g.activate(!1)}else k&&(0,o.set)(k,"epilogue",t.epilogue)}}if(b.current){var _;if(b.current.timeStamp)(_=(0,l.findActiveItem)(r))&&(0,o.set)(_,"timeStamp",b.current.timeStamp);b.current=void 0}}!t&&n.onRestart&&n.onRestart()}F=!1,D()},D=function(){var e;if(!F){if("sequence"===n.mode&&"preview"!==p.current){var t=(0,l.findActiveItem)(d.current);if(t&&"active"===t.state&&("node"===t.type&&n.canActivate&&n.canActivate(t)||"epilogue"===t.type||"paused"===t.type))t.next();else if(!t&&"blend"===n.prologue){var r=1===d.current.length&&"prologue"===d.current[0].type&&d.current[0];r&&r.isHistory&&r.prologue&&!r.prologue.button&&(null===(e=u.current)||void 0===e||e.start())}}O((function(e){return{current:e.current}})),E.current.invoke()}},A=function(){$(void 0),_.current=void 0,"sequence"===n.mode&&(d.current.splice(0,d.current.length),u.current&&u.current.prologue&&(0,l.addItemToSequence)(P(d.current),"history","prologue",u.current.prologue))},V=function(e){if(void 0===e&&(e=!1),N()&&u.current){if(A(),e&&u.current.isRunning||!u.current.prologue)u.current.restart(e);else if(u.current.stop(),"sequence"===n.mode){var t=1===d.current.length&&"prologue"===d.current[0].type&&d.current[0];t&&t.activate(!e)}else D();!e&&n.onRestart&&n.onRestart()}},L=function(){if(u.current&&T()){if("sequence"===n.mode){var e=(0,o.arrayItem)(d.current,0);if(e&&"prologue"===e.type)return void e.activate(!0)}u.current.start()}};if(j.current=function(e){S.current!==e&&(O({current:e}),E.current.invoke())},f.current||(f.current=e.l10nNamespace||o.L10n.Namespace.create(n.namespace||"")),g&&"sequence"===n.mode){var U=d.current.length>0&&"prologue"===d.current[0].type&&d.current[0];U&&(0,o.set)(U,"prologue",g.prologue)}if(x){if("sequence"===n.mode){var q=d.current,W=q.length>0&&"epilogue"===q[q.length-1].type&&q[q.length-1];!W&&x.epilogue&&"preview"===p.current?(0,l.addItemToSequence)(P(q),"upcoming","epilogue",x.epilogue):W&&(0,o.set)(W,"epilogue",x.epilogue)}_.current&&(_.current=r.__assign(r.__assign({},x.epilogue),{context:_.current.context}))}if(!u.current){if(u.current=new o.Runner({namespace:n.namespace,definition:e.definition,l10n:f.current,mode:"sequence"===n.mode?"progressive":n.mode||"progressive",bookmarks:n.bookmarks||"default",preview:"preview"===p.current,test:"test"===p.current,snapshot:"live"===p.current&&e.snapshot||void 0,data:e.onImport}),b.current="live"===p.current&&n.restore||void 0,u.current.onChange=function(){return I(!1)},u.current.onData=function(){$(void 0),R.current.invoke(),n.onInteraction&&n.onInteraction()},u.current.onFinish=function(t){return("live"!==p.current||e.onSubmit||e.onComplete)&&new Promise((function(r,i){var a=u.current&&u.current.storyline,s="sequence"===n.mode&&d.current,c=s&&(0,l.addItemToSequence)(P(s),"upcoming","finishing"),h=function(i){s&&(0,o.each)(s,(function(e){"node"===e.type&&e.changeState("history")})),r(i),e.onComplete&&e.onComplete(t,i),(0,o.scheduleFrame)((function(){if(_.current=a&&a.epilogue,$("finished"),"live"===p.current&&a&&a.epilogue&&a.epilogue.getRedirect){var e=a.epilogue.getRedirect();if(e)return void window.location.replace(e)}if(s&&(c&&c.changeToEpilogue((null==a?void 0:a.epilogue)||{}),"live"===p.current&&n.banner&&f.current)){var t=n.banner(f.current);t&&(0,l.addItemToSequence)(P(s),"upcoming","epilogue",t)}}))},v=function(e){c&&c.changeToError("outdated"===e||"rejected"===e?e:"unknown",a&&a.isFinishable&&function(){a&&a.isFinishable&&(s&&s.splice(c.index,s.length-c.index),a.finish())}||void 0),$("outdated"===e?"error-outdated":"rejected"===e?"error-rejected":"error"),e&&"outdated"!==e&&"rejected"!==e&&console.log(e),i(e)},b="live"===p.current&&e.onSubmit&&e.onSubmit(t,(e.l10nNamespace||o.L10n.Namespace.global).current,(e.l10nNamespace||o.L10n.Namespace.global).locale.identifier,n.namespace)||void 0;!b||(0,o.isBoolean)(b)?!(0,o.isBoolean)(b)||b?h("live"!==p.current?"TEST123":void 0):v():($("finishing"),c&&c.activate(!0),b.then(h).catch(v))}))||!1},e.onAction){var H=u.current,Y=e.onAction;u.current.hook("OnStart","synchronous",(function(){Y("start",{fingerprint:H.fingerprint,name:H.name})})),u.current.hook("OnFinish","synchronous",(function(){Y("complete",{fingerprint:H.fingerprint,name:H.name})})),u.current.hook("OnPause","synchronous",(function(){Y("pause",{fingerprint:H.fingerprint,name:H.name})}))}A(),("boolean"==typeof n.autoStart||"blend"!==n.prologue&&u.current.prologue)&&!n.autoStart||L()}return s.current=e,(0,i.useEffect)((function(){var e,t,r=(null===(e=u.current)||void 0===e?void 0:e.uniqueId)||0;return s.current&&s.current.onReady&&s.current.onReady(null===(t=u.current)||void 0===t?void 0:t.instance),function(){var e;(null===(e=u.current)||void 0===e?void 0:e.uniqueId)===r&&("sequence"===n.mode&&d.current.splice(0,d.current.length),u.current.destroy(),n.onDestroy&&n.onDestroy(),s.current&&s.current.onDestroy&&s.current.onDestroy(),u.current=void 0)}}),[e.definition,e.snapshot]),{l10n:f.current,get definition(){return u.current&&u.current.definition||e.definition},set definition(e){if(b.current&&(b.current=void 0),u.current&&!u.current.isFinishing&&!u.current.isPausing){var t=u.current.reload(e,!("preview"===p.current||!e.prologue)),n=t||u.current.instance;F=!!t,"preview"===p.current||g||x||n&&n.isRunning&&!(d.current.length>0&&"epilogue"===d.current[d.current.length-1].type)||(F=!1,V("test"===p.current))}},get instance(){return u.current&&u.current.instance},get fingerprint(){return u.current&&u.current.fingerprint||""},get stencil(){return u.current&&u.current.stencil("exportables")||""},get actionables(){return u.current&&u.current.stencil("actionables")||""},get view(){return p.current},set view(e){if(e!==p.current){"test"===p.current&&(h.current=u.current&&u.current.isRunning||!1);var t="preview"===e,n="test"===e;if(p.current=e,u.current&&(u.current.isTest=n,u.current.isPreview!==t&&(A(),u.current.isPreview=t,"preview"===e||"test"===e&&h.current)))return;V()}},get mode(){var e;return"sequence"!==n.mode&&((null===(e=u.current)||void 0===e?void 0:e.mode)||"progressive")||void 0},set mode(e){"sequence"!==n.mode&&e&&u.current&&(u.current.mode=e)},storyline:"sequence"===n.mode?d.current:c.current,get prologue(){var e,t;return("preview"===p.current||"test"===p.current&&!(null===(e=u.current)||void 0===e?void 0:e.isRunning)&&"finished"!==S.current)&&g?g.prologue:null===(t=u.current)||void 0===t?void 0:t.prologue},get epilogue(){var e;return("preview"===p.current||"test"===p.current&&!(null===(e=u.current)||void 0===e?void 0:e.isRunning)&&"finished"===S.current)&&x?x.epilogue:_.current},get status(){return(c.current&&c.current.isEvaluating?"evaluating":S.current)||u.current&&u.current.status||"empty"},get isRunning(){return u.current&&u.current.isRunning||!1},get isFinishing(){return u.current&&u.current.isFinishing||!1},get isPausing(){return u.current&&u.current.isPausing||!1},get isEvaluating(){return c.current&&c.current.isEvaluating||!1},get allowStart(){return T()},get allowRestart(){return N()},get allowPause(){return B(!1)},get allowStop(){return M()},kickOff:L,start:function(){if(T()&&u.current)return $(void 0),u.current.start()},restart:V,reload:function(e){b.current&&(b.current=void 0),!u.current||u.current.isFinishing||u.current.isPausing||(F=!!u.current.reload(e,!1),D())},pause:function(e,t){if(u.current&&B(!1)){var r,i="sequence"===n.mode&&d.current;if(i){var a=(0,l.findActiveItem)(i);if(a&&"error"===a.type&&"paused"===a.error)i.splice(a.index,i.length-a.index);else{var s=(r=a)&&(n.canInteract?n.canInteract(r):"node"===r.type)&&r||void 0;s&&s.index+1<i.length&&i.splice(s.index+1,i.length-s.index-1)}}return t?u.current.pause(e,(function(e,n){var r=function(){n(!1),$(void 0),a&&(a.undo(),I(!0))},a=i&&(0,l.addItemToSequence)(P(i),"upcoming","pausing",r);$("pausing"),a&&a.activate(!0),t(e,(function(e,t){if(n("succeeded"===e),$("succeeded"===e?"paused":"failed"===e?"error-paused":void 0),a&&"canceled"!==e)if("succeeded"===e)a.changeToPaused(),i&&(0,o.each)(i,(function(e){"node"===e.type&&e.changeState("history")}));else if(a.changeToError("paused",t&&function(){a.changeToPausing(r),$("pausing"),t()},r),t)return;a&&"canceled"===e&&(a.undo(),I(!0))}),a||void 0)})):u.current.pause(e)}},snapshot:function(e){if(u.current&&B(!0))return u.current.snapshot(e)},stop:function(){return M()&&u.current&&u.current.stop()},update:D,discard:function(){"error"!==S.current&&"error-outdated"!==S.current&&"error-rejected"!==S.current&&"error-paused"!==S.current||$(void 0)},get preview(){return"preview"===p.current?g?"prologue":x?"epilogue":"blocks":void 0},doAction:z,doPreview:function(e){if("prologue"===e.type){if(y("start"===e.action?{prologue:e.ref}:void 0),"start"===e.action&&e.subscribe){var t=new o.Debounce((function(e){return y({prologue:e})}),100);e.subscribe((function(e){return t.invoke(e)}))}}else if("epilogue"===e.type&&(k("start"===e.action?{epilogue:e.ref}:void 0),"start"===e.action&&e.subscribe)){var r=new o.Debounce((function(e){return k({epilogue:e})}),100);e.subscribe((function(e){return r.invoke(e)}))}"preview"===p.current&&n.onPreview&&("prologue"===e.type?n.onPreview(e.action,"prologue",void 0):"epilogue"===e.type?n.onPreview(e.action,"epilogue",void 0):"node"===e.type&&n.onPreview(e.action,"block",e.ref.id))},resetPreview:function(){g&&y({prologue:void 0}),x&&k({epilogue:void 0})}}}},219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useL10n=void 0;var r=n(6540);t.useL10n=function(e,t,n,o){var i=(0,r.useRef)(e||{}),a=(0,r.useRef)(),l=function(e){i.current=e,a.current&&a.current()};return a.current=function(){o&&o(),n.update()},[i.current,function(e){t?t(e).then((function(){return l(e)})).catch((function(){return l(e)})):l(e)},function(e){t&&("auto"!==i.current.language&&i.current.language||e||navigator.language)!==n.l10n.current&&t(i.current).then((function(){a.current&&a.current()}))}]}},2835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownifyToJSX=void 0;var r=n(1635),o=n(6540),i=n(9849),a=new i.Enumerator;t.markdownifyToJSX=function e(t,n,l,u,s){return void 0===l&&(l=!0),(0,i.markdownifyTo)(t,n,{lineBreaks:l,features:u,reduce:function(t,u,c){var d=(0,i.isString)(u)?[u]:u;switch(t){case"bold":return o.createElement.apply(void 0,r.__spreadArray(["b",void 0],d,!1));case"italic":return o.createElement.apply(void 0,r.__spreadArray(["i",void 0],d,!1));case"bold+italic":return(0,o.createElement)("b",void 0,o.createElement.apply(void 0,r.__spreadArray(["i",void 0],d,!1)));case"underline":return o.createElement.apply(void 0,r.__spreadArray(["u",void 0],d,!1));case"strikethrough":return o.createElement.apply(void 0,r.__spreadArray(["s",void 0],d,!1));case"break":return(0,o.createElement)("br");case"hyperlink":return o.createElement.apply(void 0,r.__spreadArray(["a",{href:(0,i.castToString)(c),target:"_blank",rel:"noopener"}],d,!1));case"mention":var f=c&&c||void 0;if(f&&f.content.length>0){var p=[];return(0,i.each)(f.content,(function(t){var r=t.value;r&&(p.length>0&&t.separator&&p.push((0,o.createElement)("span",void 0,t.separator)),"string"===t.type?p.push(l&&r&&-1!==r.indexOf("\n")?e(r.replace(/[@\\]/g,"\\$&"),n,!0,i.MarkdownFeatures.None):(0,o.createElement)(r?"span":"u",void 0,r||"   ")):s&&-1!==s.indexOf("@"+f.id)||p.push(e(r,n,l,"text"===t.type?i.MarkdownFeatures.None:i.MarkdownFeatures.Formatting|i.MarkdownFeatures.Hyperlinks,(s||"")+"@"+f.id)))})),p.length>0?o.createElement.apply(void 0,r.__spreadArray(["span",void 0],p,!1)):(0,o.createElement)("u",void 0,"   ")}return(0,o.createElement)("u",void 0,"   ")}return o.createElement.apply(void 0,r.__spreadArray(["span",{key:a.n}],d,!1))}})}},7837:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promise=void 0;t.promise=function(e){var t=e.current,n=function(){t&&0!==t.handle&&(clearTimeout(t.handle),t.handle=0)};return{resolve:function(){e.current=void 0,t&&(n(),t.resolve())},reject:function(){e.current=void 0,t&&(n(),t.reject())},cancel:n}}},2880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addItemToSequence=t.findActiveItem=void 0;var r=n(9849),o=n(7837),i=0;function a(e){return(0,r.findLast)(e,(function(e){return e.isPreActive||e.isBeforeActive||e.isActive||e.isAfterActive||e.isPostActive}))}function l(e,t,n){var o=(0,r.arrayItem)(e,t);if(o&&o.isHealthy)for(var i=o.index;--i>=0;){var a=e[i];if(a.isHistory)break;if(!n||n(a))return a}}t.findActiveItem=a,t.addItemToSequence=function(e,t,n,u,s){var c="node"===n&&u||void 0,d="prologue"===n&&u||void 0,f="epilogue"===n&&u||void 0,p=("finishing"===n||"pausing"===n)&&u||void 0,h=i++,v={id:"_"+r.SHA2.CSHA2_256(c?c.key+("live"===e.viewRef.current&&e.storylineRef.current&&e.storylineRef.current.instance.id):"".concat(n,"-").concat(e.sequence.length)),key:c&&c.key||"_"+r.SHA2.CSHA2_256("".concat(n,"-").concat(e.sequence.length)),type:n,node:c,prologue:d,epilogue:f,cancel:p,index:e.sequence.length,state:t,changeState:function(t){(0,r.set)(v,"state","prologue"===v.type&&"preview"!==e.viewRef.current&&"active"===t?"history":t),"history"===v.state&&"live"===e.viewRef.current&&c&&(0,r.set)(v,"key","_"+r.SHA2.CSHA2_256("history-".concat(h))),c&&"upcoming"===v.state&&(0,r.set)(v,"timeStamp",void 0)},get isHealthy(){var t=(0,r.arrayItem)(e.sequence,v.index);return t&&t.id===v.id||!1},get isHistory(){return"history"===v.state},get isPast(){return"past"===v.state},get isPreActive(){return"pre-active"===v.state},get isBeforeActive(){return"before-active"===v.state},get isActive(){return"active"===v.state},get isAfterActive(){return"after-active"===v.state},get isPostActive(){return"post-active"===v.state},get isUpcoming(){return"upcoming"===v.state},get isFirst(){return 0===v.index},get isLast(){return v.index===e.sequence.length-1},get isPaused(){if(v.index+1<e.sequence.length){var t=e.sequence[v.index+1];if("pausing"===t.type||"paused"===t.type||"error"===t.type&&"paused"===t.error)return!0}return!1},get allowActivate(){return!(!v.isHealthy||v.isHistory||!c||!e.storylineRef.current||e.storylineRef.current.isFinishing||e.storylineRef.current.isPausing)},activate:function(t){if(void 0===t&&(t=!1),c&&e.storylineRef.current&&e.storylineRef.current.isPausing){var n=a(e.sequence);n&&n.cancel&&n.cancel()}if(c&&(!e.storylineRef.current||e.storylineRef.current.isFinishing||e.storylineRef.current.isPausing))return!1;if((0,o.promise)(e.promiseRef).reject(),function(e,t,n,o){if(0===e.length||t<0||t>=e.length||!e[t].isHealthy||!n&&e[t].isHistory&&"prologue"!==e[t].type)return!1;var i=a(e),l=(i||{index:-1}).index;if(l!==t){for(var u=-1===l?0:r.Num.min(t,l),s=-1===l?e.length-1:r.Num.max(t,l),c=void 0,d=u;d<=s;d++){var f=e[d];if((!f.isHistory||"prologue"===f.type)&&(f.changeState(d===t?"active":d<t?"node"!==f.type?"history":"past":"upcoming"),c||d!==t||(c=f),!n&&d>t&&"node"!==f.type&&"epilogue"!==f.type)){e.splice(d,e.length-d);break}}o&&(i&&!i.isActive&&o("unstage",i.node),c&&o("stage",c.node))}return!0}(e.sequence,v.index,"preview"===e.viewRef.current,s)){var i=function(){v.changeState("active"),e.update(),e.rules.onInteraction&&e.rules.onInteraction()},l=function(){if(t&&"preview"!==e.viewRef.current&&e.rules.beforeActiveDuration){var n=e.rules.beforeActiveDuration(v)||0;n?(e.promiseRef.current={resolve:function(){return"before-active"===v.state&&i()},reject:function(){return v.changeState("upcoming")},handle:setTimeout((function(){return v.continue()}),n)},v.changeState("before-active"),e.update()):i()}else i()};if("node"===v.type&&e.reset(),t&&"preview"!==e.viewRef.current&&e.rules.preActiveDuration){var u=e.rules.preActiveDuration(v)||0;u>0?(e.promiseRef.current={resolve:function(){return"pre-active"===v.state&&l()},reject:function(){return v.changeState("upcoming")},handle:setTimeout((function(){return v.continue()}),u)},v.changeState("pre-active"),e.update()):l()}else l();return e.rules.onInteraction&&e.rules.onInteraction(),!0}return!1},deactivate:function(){return!("preview"!==e.viewRef.current||!function(e,t,n){if(t<0||t>=e.length||!e[t].isHealthy||!e[t].isActive)return!1;if(n){var r=e[t];(null==r?void 0:r.isActive)&&n("unstage",r.node)}for(;t<e.length;){var o=e[t];o.isHistory||o.isAfterActive||o.isPostActive||o.changeState("node"!==o.type?"history":"past"),t++}return!0}(e.sequence,v.index,s))&&(e.update(),!0)},get allowNext(){return!v.isHistory&&e.storylineRef.current&&!e.storylineRef.current.isEvaluating&&!e.storylineRef.current.isFinishing&&!e.storylineRef.current.isPausing&&(!v.node||v.node.isPassed)&&v.isHealthy&&("preview"===e.viewRef.current||v.index+1<e.sequence.length||e.storylineRef.current.isFinishable||!1)||!1},next:function(){if(!v.isHealthy)return!1;if("preview"!==e.viewRef.current){var t,n=function(){v.node&&v.node.block&&v.node.block.lock()},r=function(){return v.node&&v.node.block&&v.node.block.unlock(),!0};if(e.rules.afterActiveDuration&&v.isActive)if((t=e.rules.afterActiveDuration(v)||0)>0)return e.promiseRef.current={resolve:function(){return"after-active"===v.state&&v.next()},reject:function(){return r()&&v.changeState("node"!==v.type?"history":"past")},handle:setTimeout((function(){return v.continue()}),t)},n(),v.changeState("after-active"),e.update(),!0;if(e.rules.postActiveDuration&&(v.isActive||v.isAfterActive))if((t=e.rules.postActiveDuration(v)||0)>0)return e.promiseRef.current={resolve:function(){return"post-active"===v.state&&v.next()},reject:function(){return r()&&v.changeState("node"!==v.type?"history":"past")},handle:setTimeout((function(){return v.continue()}),t)},n(),v.changeState("post-active"),e.update(),!0;r()}else if(v.deactivate())return!0;return!(v.node&&!v.node.isPassed||v.isHistory)&&(v.index+1<e.sequence.length?e.sequence[v.index+1].activate(!0):"node"!==v.type?(v.changeState("history"),!1):(v.changeState("past"),e.storylineRef.current&&e.storylineRef.current.stepForward()||!1))},get allowUndo(){return!(!e.storylineRef.current||e.storylineRef.current.isFinishing||e.storylineRef.current.isEvaluating||!("node"===v.type&&!e.storylineRef.current.isPausing||"pausing"===v.type&&v.pausingRecipe)||!l(e.sequence,v.index,e.rules.canInteract))},undo:function(){if(e.storylineRef.current&&!e.storylineRef.current.isEvaluating){if("pausing"===v.type&&v.pausingRecipe)return v.pausingRecipe.cancel(),!0;var t=l(e.sequence,v.index,e.rules.canInteract);return t&&t.activate(!1)||!1}return!1},get allowSkip(){return e.storylineRef.current&&!e.storylineRef.current.isFinishing&&!e.storylineRef.current.isPausing&&!e.storylineRef.current.isEvaluating&&"node"===v.type&&e.rules.canSkip&&e.rules.canSkip(v)||!1},skip:function(){return!(!v.isHealthy||!v.allowSkip)&&(v.node&&v.node.block&&v.node.block.clear(),v.next())},wait:function(){return(0,o.promise)(e.promiseRef).cancel()},continue:function(){return(0,o.promise)(e.promiseRef).resolve()},get repeat(){if("epilogue"===v.type&&v.epilogue&&("test"===e.viewRef.current||"live"===e.viewRef.current&&v.epilogue.repeatable)){for(var t=v.index+1;t<e.sequence.length;t++)if("epilogue"!==e.sequence[t].type)return;return function(){"test"===e.viewRef.current?e.restart():e.runnerRef.current&&!e.runnerRef.current.isRunning&&e.runnerRef.current.start()}}},get kickOff(){if("preview"!==e.viewRef.current&&"prologue"===v.type&&e.runnerRef.current&&!e.runnerRef.current.isRunning&&!e.runnerRef.current.isFinishing&&!e.runnerRef.current.isPausing&&v.isLast)return function(){return e.runnerRef.current&&e.runnerRef.current.start()}},changeToError:function(t,n,o){(0,r.set)(v,"type","error"),(0,r.set)(v,"error",t),(0,r.set)(v,"retry",n),(0,r.set)(v,"cancel",o),(0,r.set)(v,"timeStamp",r.DateTime.now),v.activate(!0)||e.update()},changeToEpilogue:function(t){(0,r.set)(v,"type","epilogue"),(0,r.set)(v,"epilogue",t),(0,r.set)(v,"timeStamp",r.DateTime.now),v.activate(!0)||e.update()},changeToPausing:function(t){(0,r.set)(v,"type","pausing"),(0,r.set)(v,"retry",void 0),(0,r.set)(v,"cancel",t),(0,r.set)(v,"timeStamp",void 0),v.activate(!0)||e.update()},changeToPaused:function(){(0,r.set)(v,"type","paused"),(0,r.set)(v,"retry",void 0),(0,r.set)(v,"cancel",void 0),(0,r.set)(v,"timeStamp",r.DateTime.now),v.activate(!0)||e.update()},pausingRecipe:void 0,setPausingRecipe:function(t){if("email"===t.recipe)if("pausing"===v.type){var n=function(){(0,r.set)(v,"pausingRecipe",void 0),(0,r.set)(v,"cancel",void 0),e.update()};(0,r.set)(v,"pausingRecipe",{recipe:t.recipe,complete:function(e){n(),t.complete(e)},cancel:function(){n(),t.cancel()}}),e.update()}}};return e.sequence.push(v),s&&"active"===t&&s("stage",v.node),v}},5154:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyView=void 0,t.verifyView=function(e){return"test"===e||"preview"===e?e:"live"}},5659:function(e,t,n){var r=n(8156),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var l in a)if(a.hasOwnProperty(l)){if(!("channels"in a[l]))throw new Error("missing channels property: "+l);if(!("labels"in a[l]))throw new Error("missing channel labels property: "+l);if(a[l].labels.length!==a[l].channels)throw new Error("channel and label counts mismatch: "+l);var u=a[l].channels,s=a[l].labels;delete a[l].channels,delete a[l].labels,Object.defineProperty(a[l],"channels",{value:u}),Object.defineProperty(a[l],"labels",{value:s})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),l=Math.max(r,o,i),u=l-a;return l===a?t=0:r===l?t=(o-i)/u:o===l?t=2+(i-r)/u:i===l&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+l)/2,[t,100*(l===a?0:n<=.5?u/(l+a):u/(2-l-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,o,i,a=e[0]/255,l=e[1]/255,u=e[2]/255,s=Math.max(a,l,u),c=s-Math.min(a,l,u),d=function(e){return(s-e)/6/c+.5};return 0===c?o=i=0:(i=c/s,t=d(a),n=d(l),r=d(u),a===s?o=r-n:l===s?o=1/3+t-r:u===s&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*s]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=o[e];if(t)return t;var n,i,a,l=1/0;for(var u in r)if(r.hasOwnProperty(u)){var s=r[u],c=(i=e,a=s,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c<l&&(l=c,n=u)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,l=e[1]/100,u=e[2]/100;if(0===l)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+l):u+l-u*l),o=[0,0,0];for(var s=0;s<3;s++)(r=a+1/3*-(s-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[s]=255*i;return o},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,a];case 1:return[l,r,a];case 2:return[a,r,u];case 3:return[a,l,r];case 4:return[u,a,r];case 5:return[r,a,l]}},a.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,l=Math.max(a,.01);return r=(2-i)*a,n=i*l,[o,100*(n=(n/=(t=(2-i)*l)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,o,i,a,l,u=e[0]/360,s=e[1]/100,c=e[2]/100,d=s+c;switch(d>1&&(s/=d,c/=d),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),o=s+r*((n=1-c)-s),t){default:case 6:case 0:i=n,a=o,l=s;break;case 1:i=o,a=n,l=s;break;case 2:i=s,a=n,l=o;break;case 3:i=s,a=o,l=n;break;case 4:i=o,a=s,l=n;break;case 5:i=n,a=s,l=o}return[255*i,255*a,255*l]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),a=Math.pow(t,3),l=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),l=i-a;return t=l<=0?0:i===n?(r-o)/l%6:i===r?2+(o-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?a/(1-l):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],a=t%1*6,l=a%1,u=1-l;switch(Math.floor(a)){case 0:i[0]=1,i[1]=l,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=l;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=l,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},734:function(e,t,n){var r=n(5659),o=n(8507),i={};Object.keys(r).forEach((function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});var t=o(e);Object.keys(t).forEach((function(n){var r=t[n];i[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),i[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},8507:function(e,t,n){var r=n(5659);function o(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,o=0;o<n;o++)e[t[o]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var o=n.pop(),i=Object.keys(r[o]),a=i.length,l=0;l<a;l++){var u=i[l],s=t[u];-1===s.distance&&(s.distance=t[o].distance+1,s.parent=o,n.unshift(u))}return t}function i(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],o=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),o=i(r[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){for(var t=o(e),n={},r=Object.keys(t),i=r.length,l=0;l<i;l++){var u=r[l];null!==t[u].parent&&(n[u]=a(u,t))}return n}},8156:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8854:function(e,t,n){var r=n(8156),o=n(9872),i=Object.hasOwnProperty,a=Object.create(null);for(var l in r)i.call(r,l)&&(a[r[l]]=l);var u=e.exports={to:{},get:{}};function s(e,t,n){return Math.min(Math.max(t,e),n)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}u.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=u.get.hsl(e),n="hsl";break;case"hwb":t=u.get.hwb(e),n="hwb";break;default:t=u.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},u.get.rgb=function(e){if(!e)return null;var t,n,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var l=2*n;a[n]=parseInt(t.slice(l,l+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=s(a[n],0,255);return a[3]=s(a[3],0,1),a},u.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(n)?1:n,0,1)]}return null},u.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,s(parseFloat(t[2]),0,100),s(parseFloat(t[3]),0,100),s(isNaN(n)?1:n,0,1)]}return null},u.to.hex=function(){var e=o(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},u.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},u.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},u.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},u.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},u.to.keyword=function(e){return a[e.slice(0,3)]}},2520:function(e,t,n){"use strict";var r=n(8854),o=n(734),i=[].slice,a=["keyword","gray","hex"],l={};Object.keys(o).forEach((function(e){l[i.call(o[e].labels).sort().join("")]=e}));var u={};function s(e,t){if(!(this instanceof s))return new s(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);var n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof s)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,c=o[this.model].channels,this.color=d.value.slice(0,c),this.valpha="number"==typeof d.value[c]?d.value[c]:1}else if(e.length){this.model=t||"rgb",c=o[this.model].channels;var p=i.call(e,0,c);this.color=f(p,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var v=h.sort().join("");if(!(v in l))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=l[v];var b=o[this.model].labels,m=[];for(n=0;n<b.length;n++)m.push(e[b[n]]);this.color=f(m)}if(u[this.model])for(c=o[this.model].channels,n=0;n<c;n++){var g=u[this.model][n];g&&(this.color[n]=g(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function c(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(u[e]||(u[e]=[]))[t]=n})),e=e[0],function(r){var o;return arguments.length?(n&&(r=n(r)),(o=this[e]()).color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}s.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=o[this.model].channels,n=o[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new s(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new s(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:c("rgb",0,d(255)),green:c("rgb",1,d(255)),blue:c("rgb",2,d(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:c("hsl",1,d(100)),lightness:c("hsl",2,d(100)),saturationv:c("hsv",1,d(100)),value:c("hsv",2,d(100)),chroma:c("hcg",1,d(100)),gray:c("hcg",2,d(100)),white:c("hwb",1,d(100)),wblack:c("hwb",2,d(100)),cyan:c("cmyk",0,d(100)),magenta:c("cmyk",1,d(100)),yellow:c("cmyk",2,d(100)),black:c("cmyk",3,d(100)),x:c("xyz",0,d(100)),y:c("xyz",1,d(100)),z:c("xyz",2,d(100)),l:c("lab",0,d(100)),a:c("lab",1),b:c("lab",2),keyword:function(e){return arguments.length?new s(e):o[this.model].keyword(this.color)},hex:function(e){return arguments.length?new s(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return s.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),l=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,u=1-l;return s.rgb(l*n.red()+u*r.red(),l*n.green()+u*r.green(),l*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach((function(e){if(-1===a.indexOf(e)){var t=o[e].channels;s.prototype[e]=function(){if(this.model===e)return new s(this);if(arguments.length)return new s(arguments,e);var n,r="number"==typeof arguments[t]?t:this.valpha;return new s((n=o[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(r),e)},s[e]=function(n){return"number"==typeof n&&(n=f(i.call(arguments),t)),new s(n,e)}}})),e.exports=s},8937:function(e){"use strict";var t={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,r=/[ -,\.\/:-@\[\]\^`\{-~]/,o=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,i=function e(i,a){"single"!=(a=function(e,n){if(!e)return n;var r={};for(var o in n)r[o]=t.call(e,o)?e[o]:n[o];return r}(a,e.options)).quotes&&"double"!=a.quotes&&(a.quotes="single");for(var l="double"==a.quotes?'"':"'",u=a.isIdentifier,s=i.charAt(0),c="",d=0,f=i.length;d<f;){var p=i.charAt(d++),h=p.charCodeAt(),v=void 0;if(h<32||h>126){if(h>=55296&&h<=56319&&d<f){var b=i.charCodeAt(d++);56320==(64512&b)?h=((1023&h)<<10)+(1023&b)+65536:d--}v="\\"+h.toString(16).toUpperCase()+" "}else v=a.escapeEverything?n.test(p)?"\\"+p:"\\"+h.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(p)?"\\"+h.toString(16).toUpperCase()+" ":"\\"==p||!u&&('"'==p&&l==p||"'"==p&&l==p)||u&&r.test(p)?"\\"+p:p;c+=v}return u&&(/^-[-\d]/.test(c)?c="\\-"+c.slice(1):/\d/.test(s)&&(c="\\3"+s+" "+c.slice(1))),c=c.replace(o,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!u&&a.wrap?l+c+l:c};i.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},i.version="3.0.0",e.exports=i},761:function(e,t,n){"use strict";n.r(t);var r=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))};var o=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))};function i(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}i.prototype=Error.prototype;var a=function(e){var t=this;return new t((function(n,r){if(!e||void 0===e.length)return r(new TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(e);if(0===o.length)return r();for(var a=[],l=0;l<o.length;l++)try{t.resolve(o[l]).then(n).catch((function(e){a.push(e),a.length===o.length&&r(new i(a,"All promises were rejected"))}))}catch(e){r(e)}}))},l=setTimeout;function u(e){return Boolean(e&&void 0!==e.length)}function s(){}function c(e){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],b(e,this)}function d(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,c._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void p(t.promise,e)}f(t.promise,r)}else(1===e._state?f:p)(t.promise,e._value)}))):e._deferreds.push(t)}function f(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof c)return e._state=3,e._value=t,void h(e);if("function"==typeof n)return void b((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,h(e)}catch(t){p(e,t)}var r,o}function p(e,t){e._state=2,e._value=t,h(e)}function h(e){2===e._state&&0===e._deferreds.length&&c._immediateFn((function(){e._handled||c._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)d(e,e._deferreds[t]);e._deferreds=null}function v(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function b(e,t){var n=!1;try{e((function(e){n||(n=!0,f(t,e))}),(function(e){n||(n=!0,p(t,e))}))}catch(e){if(n)return;n=!0,p(t,e)}}c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){var n=new this.constructor(s);return d(this,new v(e,t,n)),n},c.prototype.finally=r,c.all=function(e){return new c((function(t,n){if(!u(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var l=a.then;if("function"==typeof l)return void l.call(a,(function(t){i(e,t)}),n)}r[e]=a,0==--o&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},c.any=a,c.allSettled=o,c.resolve=function(e){return e&&"object"==typeof e&&e.constructor===c?e:new c((function(t){t(e)}))},c.reject=function(e){return new c((function(t,n){n(e)}))},c.race=function(e){return new c((function(t,n){if(!u(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)c.resolve(e[r]).then(t,n)}))},c._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){l(e,0)},c._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var m=c,g=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}();"function"!=typeof g.Promise?g.Promise=m:(g.Promise.prototype.finally||(g.Promise.prototype.finally=r),g.Promise.allSettled||(g.Promise.allSettled=o),g.Promise.any||(g.Promise.any=a))},2551:function(e,t,n){"use strict";var r=n(6540),o=n(9982);function i(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 a=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function v(e,t,n,r,o,i,a){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,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=b.hasOwnProperty(t)?b[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!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[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))))}"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(m,g);b[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,g);b[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,g);b[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),j=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function B(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var M,z=Object.assign;function I(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var D=!1;function A(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?I(e):""}function V(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return e=A(e.type,!1);case 11:return e=A(e.type.render,!1);case 1:return e=A(e.type,!0);default:return""}}function L(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 _:return"Fragment";case k:return"Portal";case S:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case F:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case $:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return L(e(t))}catch(e){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return L(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(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 X(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(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 Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=q(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+q(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 re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function ie(e,t){var n=q(t.value),r=q(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!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},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var me=z({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 ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(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 we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,_e=null,Ce=null;function Se(e){if(e=wo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Oe(e){_e?Ce?Ce.push(e):Ce=[e]:_e=e}function je(){if(_e){var e=_e,t=Ce;if(Ce=_e=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function $e(e,t){return e(t)}function Pe(){}var Fe=!1;function Ee(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return $e(e,t,n)}finally{Fe=!1,(null!==_e||null!==Ce)&&(Pe(),je())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(n);if(null===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(i(231,t,typeof n));return n}var Te=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ce){Te=!1}function Be(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Me=!1,ze=null,Ie=!1,De=null,Ae={onError:function(e){Me=!0,ze=e}};function Ve(e,t,n,r,o,i,a,l,u){Me=!1,ze=null,Be.apply(Ae,arguments)}function Le(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(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 qe(e){if(Le(e)!==e)throw Error(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Le(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return qe(o),e;if(a===r)return qe(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?He(e):null}function He(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=He(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Ge=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var st=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=st;return 0==(4194240&(st<<=1))&&(st=64),e}function bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,kt,_t,Ct,St,Ot=!1,jt=[],$t=null,Pt=null,Ft=null,Et=new Map,Rt=new Map,Tt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Bt(e,t){switch(e){case"focusin":case"focusout":$t=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=yo(e.target);if(null!==t){var n=Le(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void St(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Dt(e,t,n){It(e)&&n.delete(t)}function At(){Ot=!1,null!==$t&&It($t)&&($t=null),null!==Pt&&It(Pt)&&(Pt=null),null!==Ft&&It(Ft)&&(Ft=null),Et.forEach(Dt),Rt.forEach(Dt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,At)))}function Lt(e){function t(t){return Vt(t,e)}if(0<jt.length){Vt(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==$t&&Vt($t,e),null!==Pt&&Vt(Pt,e),null!==Ft&&Vt(Ft,e),Et.forEach(t),Rt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)zt(n),null===n.blockedOn&&Tt.shift()}var Ut=w.ReactCurrentBatchConfig,qt=!0;function Wt(e,t,n,r){var o=yt,i=Ut.transition;Ut.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Ut.transition=i}}function Ht(e,t,n,r){var o=yt,i=Ut.transition;Ut.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Ut.transition=i}}function Yt(e,t,n,r){if(qt){var o=Xt(e,t,n,r);if(null===o)qr(e,t,r,Kt,n),Bt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return $t=Mt($t,e,t,n,r,o),!0;case"dragenter":return Pt=Mt(Pt,e,t,n,r,o),!0;case"mouseover":return Ft=Mt(Ft,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Et.set(i,Mt(Et.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Bt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Xt(e,t,n,r))&&qr(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Kt=null;function Xt(e,t,n,r){if(Kt=null,null!==(e=yo(e=xe(r))))if(null===(t=Le(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.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 Jt=o.slice(e,1<t?1-t:void 0)}function tn(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}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),dn=z({},sn,{view:0,detail:0}),fn=on(dn),pn=z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),vn=on(z({},pn,{dataTransfer:0})),bn=on(z({},dn,{relatedTarget:0})),mn=on(z({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=z({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(gn),wn=on(z({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Sn(){return Cn}var On=z({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=on(On),$n=on(z({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=on(z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Fn=on(z({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),En=z({},pn,{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:0,deltaMode:0}),Rn=on(En),Tn=[9,13,27,32],Nn=c&&"CompositionEvent"in window,Bn=null;c&&"documentMode"in document&&(Bn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Bn,zn=c&&(!Nn||Bn&&8<Bn&&11>=Bn),In=String.fromCharCode(32),Dn=!1;function An(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var Un={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Wn(e,t,n,r){Oe(r),0<(t=Hr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Yn=null;function Kn(e){Ir(e,0)}function Xn(e){if(Y(xo(e)))return e}function Gn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Hn&&(Hn.detachEvent("onpropertychange",nr),Yn=Hn=null)}function nr(e){if("value"===e.propertyName&&Xn(Yn)){var t=[];Wn(t,Yn,e,xe(e)),Ee(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Hn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Yn)}function ir(e,t){if("click"===e)return Xn(t)}function ar(e,t){if("input"===e||"change"===e)return Xn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(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++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(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=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(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)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,br=null,mr=null,gr=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==br||br!==K(r)||("selectionStart"in(r=br)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=Hr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},_r={},Cr={};function Sr(e){if(_r[e])return _r[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return _r[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Or=Sr("animationend"),jr=Sr("animationiteration"),$r=Sr("animationstart"),Pr=Sr("transitionend"),Fr=new Map,Er="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Fr.set(e,t),u(t,[e])}for(var Tr=0;Tr<Er.length;Tr++){var Nr=Er[Tr];Rr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Rr(Or,"onAnimationEnd"),Rr(jr,"onAnimationIteration"),Rr($r,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Pr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function zr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,s){if(Ve.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=ze;Me=!1,ze=null,Ie||(Ie=!0,De=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;zr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;zr(o,l,s),i=u}}}if(Ie)throw e=De,Ie=!1,De=null,e}function Dr(e,t){var n=t[bo];void 0===n&&(n=t[bo]=new Set);var r=e+"__bubble";n.has(r)||(Ur(t,e,2,!1),n.add(r))}function Ar(e,t,n){var r=0;t&&(r|=4),Ur(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Ar(t,!1,e),Ar(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Ar("selectionchange",!1,t))}}function Ur(e,t,n,r){switch(Gt(t)){case 1:var o=Wt;break;case 4:o=Ht;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Ee((function(){var r=i,o=xe(n),a=[];e:{var l=Fr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=jn;break;case"focusin":s="focus",u=bn;break;case"focusout":s="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pn;break;case Or:case jr:case $r:u=mn;break;case Pr:u=Fn;break;case"scroll":u=fn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=$n}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==f&&(null!=(v=Re(h,f))&&c.push(Wr(h,v,p)))),d)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[vo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=Le(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,v="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=$n,v="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==u?l:xo(u),p=null==s?l:xo(s),(l=new c(v,h+"leave",u,n,o)).target=d,l.relatedTarget=p,v=null,yo(o)===r&&((c=new c(f,h+"enter",s,n,o)).target=p,c.relatedTarget=d,v=c),d=v,u&&s)e:{for(f=s,h=0,p=c=u;p;p=Yr(p))h++;for(p=0,v=f;v;v=Yr(v))p++;for(;0<h-p;)c=Yr(c),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==u&&Kr(a,l,u,c,!1),null!==s&&null!==d&&Kr(a,d,s,c,!0)}if("select"===(u=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var b=Gn;else if(qn(l))if(Qn)b=ar;else{b=or;var m=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(b=ir);switch(b&&(b=b(e,r))?Wn(a,b,n,o):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&ee(l,"number",l.value)),m=r?xo(r):window,e){case"focusin":(qn(m)||"true"===m.contentEditable)&&(br=m,mr=r,gr=null);break;case"focusout":gr=mr=br=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,o)}var g;if(Nn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Ln?An(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(zn&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==y?"onCompositionEnd"===y&&Ln&&(g=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Ln=!0)),0<(m=Hr(r,y)).length&&(y=new wn(y,e,null,n,o),a.push({event:y,listeners:m}),g?y.data=g:null!==(g=Vn(n))&&(y.data=g))),(g=Mn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Dn=!0,In);case"textInput":return(e=t.data)===In&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Nn&&An(e,t)?(e=en(),Jt=Zt=Qt=null,Ln=!1,e):null;switch(e){case"paste":default: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 zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Hr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g))}Ir(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(Wr(e,i,o)),null!=(i=Re(e,t))&&r.push(Wr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Re(n,i))&&a.unshift(Wr(n,u,l)):o||null!=(u=Re(n,i))&&a.push(Wr(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Gr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Lt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Lt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,vo="__reactContainer$"+fo,bo="__reactEvents$"+fo,mo="__reactListeners$"+fo,go="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ko(e){return e[ho]||null}var _o=[],Co=-1;function So(e){return{current:e}}function Oo(e){0>Co||(e.current=_o[Co],_o[Co]=null,Co--)}function jo(e,t){Co++,_o[Co]=e.current,e.current=t}var $o={},Po=So($o),Fo=So(!1),Eo=$o;function Ro(e,t){var n=e.type.contextTypes;if(!n)return $o;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 To(e){return null!=(e=e.childContextTypes)}function No(){Oo(Fo),Oo(Po)}function Bo(e,t,n){if(Po.current!==$o)throw Error(i(168));jo(Po,t),jo(Fo,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,U(e)||"Unknown",o));return z({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$o,Eo=Po.current,jo(Po,e),jo(Fo,Fo.current),!0}function Io(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Eo),r.__reactInternalMemoizedMergedChildContext=e,Oo(Fo),Oo(Po),jo(Po,e)):Oo(Fo),jo(Fo,n)}var Do=null,Ao=!1,Vo=!1;function Lo(e){null===Do?Do=[e]:Do.push(e)}function Uo(){if(!Vo&&null!==Do){Vo=!0;var e=0,t=yt;try{var n=Do;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Do=null,Ao=!1}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),Ye(Je,Uo),t}finally{yt=t,Vo=!1}}return null}var qo=[],Wo=0,Ho=null,Yo=0,Ko=[],Xo=0,Go=null,Qo=1,Zo="";function Jo(e,t){qo[Wo++]=Yo,qo[Wo++]=Ho,Ho=e,Yo=t}function ei(e,t,n){Ko[Xo++]=Qo,Ko[Xo++]=Zo,Ko[Xo++]=Go,Go=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Ho;)Ho=qo[--Wo],qo[Wo]=null,Yo=qo[--Wo],qo[Wo]=null;for(;e===Go;)Go=Ko[--Xo],Ko[Xo]=null,Zo=Ko[--Xo],Ko[Xo]=null,Qo=Ko[--Xo],Ko[Xo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Es(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(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,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Es(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!ui(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ui(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var bi=w.ReactCurrentBatchConfig;function mi(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(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}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=Ts(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=zs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&yi(i)===t.type)?((r=o(t,n.props)).ref=mi(e,t,n),r.return=e,r):((r=Ns(n.type,n.key,n.props,null,e.mode,r)).ref=mi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Is(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=Bs(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=zs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ns(t.type,t.key,t.props,null,e.mode,n)).ref=mi(e,null,t),n.return=e,n;case k:return(t=Is(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||B(t))return(t=Bs(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||B(n))return null!==o?null:d(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||B(r))return d(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function v(o,i,l,u){for(var s=null,c=null,d=i,v=i=0,b=null;null!==d&&v<l.length;v++){d.index>v?(b=d,d=null):b=d.sibling;var m=p(o,d,l[v],u);if(null===m){null===d&&(d=b);break}e&&d&&null===m.alternate&&t(o,d),i=a(m,i,v),null===c?s=m:c.sibling=m,c=m,d=b}if(v===l.length)return n(o,d),ii&&Jo(o,v),s;if(null===d){for(;v<l.length;v++)null!==(d=f(o,l[v],u))&&(i=a(d,i,v),null===c?s=d:c.sibling=d,c=d);return ii&&Jo(o,v),s}for(d=r(o,d);v<l.length;v++)null!==(b=h(d,o,v,l[v],u))&&(e&&null!==b.alternate&&d.delete(null===b.key?v:b.key),i=a(b,i,v),null===c?s=b:c.sibling=b,c=b);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),s}function b(o,l,u,s){var c=B(u);if("function"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var d=c=null,v=l,b=l=0,m=null,g=u.next();null!==v&&!g.done;b++,g=u.next()){v.index>b?(m=v,v=null):m=v.sibling;var y=p(o,v,g.value,s);if(null===y){null===v&&(v=m);break}e&&v&&null===y.alternate&&t(o,v),l=a(y,l,b),null===d?c=y:d.sibling=y,d=y,v=m}if(g.done)return n(o,v),ii&&Jo(o,b),c;if(null===v){for(;!g.done;b++,g=u.next())null!==(g=f(o,g.value,s))&&(l=a(g,l,b),null===d?c=g:d.sibling=g,d=g);return ii&&Jo(o,b),c}for(v=r(o,v);!g.done;b++,g=u.next())null!==(g=h(v,o,b,g.value,s))&&(e&&null!==g.alternate&&v.delete(null===g.key?b:g.key),l=a(g,l,b),null===d?c=g:d.sibling=g,d=g);return e&&v.forEach((function(e){return t(o,e)})),ii&&Jo(o,b),c}return function e(r,i,a,u){if("object"==typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===_){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===R&&yi(s)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=mi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===_?((i=Bs(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Ns(a.type,a.key,a.props,null,r.mode,u)).ref=mi(r,i,a),u.return=r,r=u)}return l(r);case k:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Is(a,r.mode,u)).return=r,r=i}return l(r);case R:return e(r,i,(c=a._init)(a._payload),u)}if(te(a))return v(r,i,a,u);if(B(a))return b(r,i,a,u);gi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=zs(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var xi=wi(!0),ki=wi(!1),_i=So(null),Ci=null,Si=null,Oi=null;function ji(){Oi=Si=Ci=null}function $i(e){var t=_i.current;Oo(_i),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fi(e,t){Ci=e,Oi=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ei(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===Ci)throw Error(i(308));Si=e,Ci.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Ri=null;function Ti(e){null===Ri?Ri=[e]:Ri.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bi(e,r)}function Bi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ii(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&$u)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bi(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bi(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==i){var d=o.baseState;for(a=0,c=s=u=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(f=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=v.payload)?h.call(p,d,f):h))break e;d=z({},d,f);break e;case 2:Mi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Mu|=a,e.lanes=a,e.memoizedState=d}}function qi(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=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Wi={},Hi=So(Wi),Yi=So(Wi),Ki=So(Wi);function Xi(e){if(e===Wi)throw Error(i(174));return e}function Gi(e,t){switch(jo(Ki,t),jo(Yi,e),jo(Hi,Wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(Hi),jo(Hi,t)}function Qi(){Oo(Hi),Oo(Yi),Oo(Ki)}function Zi(e){Xi(Ki.current);var t=Xi(Hi.current),n=ue(t,e.type);t!==n&&(jo(Yi,e),jo(Hi,n))}function Ji(e){Yi.current===e&&(Oo(Hi),Oo(Yi))}var ea=So(0);function ta(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!=(128&t.flags))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}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,la=null,ua=null,sa=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ba(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,sa=ua=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Za,t=null!==ua&&null!==ua.next,aa=0,sa=ua=la=null,ca=!1,t)throw Error(i(300));return e}function ma(){var e=0!==fa;return fa=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ya(){if(null===ua){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ua=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function wa(e,t){return"function"==typeof t?t(e):t}function xa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ua,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,s=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=f,l=r):s=s.next=f,la.lanes|=d,Mu|=d}c=c.next}while(null!==c&&c!==a);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Mu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _a(){}function Ca(e,t){var n=la,r=ya(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,yl=!0),r=r.queue,Ma(ja.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(n.flags|=2048,Ea(9,Oa.bind(null,n,r,o,t),void 0,null),null===Pu)throw Error(i(349));0!=(30&aa)||Sa(n,t,o)}return o}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,$a(t)&&Pa(e)}function ja(e,t,n){return n((function(){$a(t)&&Pa(e)}))}function $a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Pa(e){var t=Bi(e,1);null!==t&&ns(t,e,1,-1)}function Fa(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,la,e),[t.memoizedState,e]}function Ea(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.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 Ra(){return ya().memoizedState}function Ta(e,t,n,r){var o=ga();la.flags|=e,o.memoizedState=Ea(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==ua){var a=ua.memoizedState;if(i=a.destroy,null!==r&&va(r,a.deps))return void(o.memoizedState=Ea(t,n,i,r))}la.flags|=e,o.memoizedState=Ea(1|t,n,i,r)}function Ba(e,t){return Ta(8390656,8,e,t)}function Ma(e,t){return Na(2048,8,e,t)}function za(e,t){return Na(4,2,e,t)}function Ia(e,t){return Na(4,4,e,t)}function Da(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 Aa(e,t,n){return n=null!=n?n.concat([e]):null,Na(4,4,Da.bind(null,t,e),n)}function Va(){}function La(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qa(e,t,n){return 0==(21&aa)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(lr(n,t)||(n=vt(),la.lanes|=n,Mu|=n,e.baseState=!0),t)}function Wa(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ha(){return ya().memoizedState}function Ya(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Ga(t,n);else if(null!==(n=Ni(e,t,n,r))){ns(n,e,r,es()),Qa(n,t,r)}}function Ka(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Ga(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var u=t.interleaved;return null===u?(o.next=o,Ti(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(ns(n,e,r,o=es()),Qa(n,t,r))}}function Xa(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ga(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Za={readContext:Ei,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Ei,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ei,useEffect:Ba,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ta(4194308,4,Da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ta(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ta(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Fa,useDebugValue:Va,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Wa.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ga();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Pu)throw Error(i(349));0!=(30&aa)||Sa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ba(ja.bind(null,r,a,e),[e]),r.flags|=2048,Ea(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ga(),t=Pu.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ei,useCallback:La,useContext:Ei,useEffect:Ma,useImperativeHandle:Aa,useInsertionEffect:za,useLayoutEffect:Ia,useMemo:Ua,useReducer:xa,useRef:Ra,useState:function(){return xa(wa)},useDebugValue:Va,useDeferredValue:function(e){return qa(ya(),ua.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ya().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ha,unstable_isNewReconciler:!1},tl={readContext:Ei,useCallback:La,useContext:Ei,useEffect:Ma,useImperativeHandle:Aa,useInsertionEffect:za,useLayoutEffect:Ia,useMemo:Ua,useReducer:ka,useRef:Ra,useState:function(){return ka(wa)},useDebugValue:Va,useDeferredValue:function(e){var t=ya();return null===ua?t.memoizedState=e:qa(t,ua.memoizedState,e)},useTransition:function(){return[ka(wa)[0],ya().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ha,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Le(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Di(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,o))&&(ns(t,e,o,r),Vi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Di(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,o))&&(ns(t,e,o,r),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Di(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ai(e,o,r))&&(ns(t,e,r,n),Vi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(o,i))}function al(e,t,n){var r=!1,o=$o,i=t.contextType;return"object"==typeof i&&null!==i?i=Ei(i):(o=To(t)?Eo:Po.current,i=(r=null!=(r=t.contextTypes))?Ro(e,o):$o),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function ul(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},zi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ei(i):(i=To(t)?Eo:Po.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(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&&ol.enqueueReplaceState(o,o.state,null),Ui(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Wu=r),dl(0,t)},n}function hl(e,t,n){(n=Di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Hu?Hu=new Set([this]):Hu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ss.bind(null,e,t,n),t.then(e,e))}function bl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ml(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Di(-1,1)).tag=2,Ai(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var gl=w.ReactCurrentOwner,yl=!1;function wl(e,t,n,r){t.child=null===e?ki(t,null,n,r):xi(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var i=t.ref;return Fi(t,o),r=ba(e,t,n,r,i,o),n=ma(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ql(e,t,o))}function kl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Rs(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ns(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_l(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return ql(e,t,o)}return t.flags|=1,(e=Ts(i,r)).ref=t.ref,e.return=t,t.child=e}function _l(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,ql(e,t,o);0!=(131072&e.flags)&&(yl=!0)}}return Ol(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jo(Tu,Ru),Ru|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jo(Tu,Ru),Ru|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,jo(Tu,Ru),Ru|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,jo(Tu,Ru),Ru|=r;return wl(e,t,o,n),t.child}function Sl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ol(e,t,n,r,o){var i=To(n)?Eo:Po.current;return i=Ro(t,i),Fi(t,o),n=ba(e,t,n,r,i,o),r=ma(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ql(e,t,o))}function jl(e,t,n,r,o){if(To(n)){var i=!0;zo(t)}else i=!1;if(Fi(t,o),null===t.stateNode)Ul(e,t),al(t,n,r),ul(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=Ei(s):s=Ro(t,s=To(n)?Eo:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&ll(t,a,r,s),Mi=!1;var f=t.memoizedState;a.state=f,Ui(t,r,a,o),u=t.memoizedState,l!==r||f!==u||Fo.current||Mi?("function"==typeof c&&(rl(t,n,c,r),u=t.memoizedState),(l=Mi||il(t,n,l,r,f,u,s))?(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.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ii(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ei(u):u=Ro(t,u=To(n)?Eo:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==u)&&ll(t,a,r,u),Mi=!1,f=t.memoizedState,a.state=f,Ui(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Fo.current||Mi?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(s=Mi||il(t,n,s,r,f,h,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return $l(e,t,n,r,i,o)}function $l(e,t,n,r,o,i){Sl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Io(t,n,!1),ql(e,t,i);r=t.stateNode,gl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Io(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?Bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Bo(0,t.context,!1),Gi(e,t.containerInfo)}function Fl(e,t,n,r,o){return hi(),vi(o),t.flags|=256,wl(e,t,n,r),t.child}var El,Rl,Tl,Nl,Bl={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function zl(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),jo(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Ms(u,o,0,null),e=Bs(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(n),t.memoizedState=Bl,e):Il(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Dl(e,t,l,r=cl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ms({mode:"visible",children:r.children},o,0,null),(a=Bs(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&xi(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Bl,a);if(0==(1&t.mode))return Dl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,Dl(e,t,l,r=cl(a=Error(i(419)),r,void 0))}if(u=0!=(l&e.childLanes),yl||u){if(null!==(r=Pu)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Bi(e,o),ns(r,e,o,-1))}return vs(),Dl(e,t,l,r=cl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=js.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Xo++]=Qo,Ko[Xo++]=Zo,Ko[Xo++]=Go,Qo=e.id,Zo=e.overflow,Go=t),t=Il(t,r.children),t.flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ts(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Ts(r,l):(l=Bs(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Ml(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Bl,o}return e=(l=e.child).sibling,o=Ts(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Il(e,t){return(t=Ms({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,n,r){return null!==r&&vi(r),xi(t,e.child,null,n),(e=Il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Al(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function Vl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ll(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),0!=(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Al(e,n,t);else if(19===e.tag)Al(e,n,t);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(jo(ea,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ul(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ql(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ts(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ts(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wl(e,t){if(!ii)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 Hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hl(t),null;case 1:case 17:return To(t.type)&&No(),Hl(t),null;case 3:return r=t.stateNode,Qi(),Oo(Fo),Oo(Po),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Rl(e,t),Hl(t),null;case 5:Ji(t);var o=Xi(Ki.current);if(n=t.type,null!==e&&null!=t.stateNode)Tl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Hl(t),null}if(e=Xi(Hi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(o=0;o<Br.length;o++)Dr(Br[o],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":G(r,a),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Dr("invalid",r);break;case"textarea":oe(r,a),Dr("invalid",r)}for(var u in ge(n,a),o=null,a)if(a.hasOwnProperty(u)){var s=a[u];"children"===u?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Dr("scroll",r)}switch(n){case"input":H(r),J(r,a,!0);break;case"textarea":H(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[ho]=r,El(e,t,!1,!1),t.stateNode=e;e:{switch(u=ye(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),o=r;break;case"iframe":case"object":case"embed":Dr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Br.length;o++)Dr(Br[o],e);o=r;break;case"source":Dr("error",e),o=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=r;break;case"details":Dr("toggle",e),o=r;break;case"input":G(e,r),o=X(e,r),Dr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=z({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Dr("invalid",e)}for(a in ge(n,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?be(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Dr("scroll",e):null!=c&&y(e,a,c,u))}switch(n){case"input":H(e),J(e,r,!1);break;case"textarea":H(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Hl(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Xi(Ki.current),Xi(Hi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Hl(t),null;case 13:if(Oo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hl(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ea.current)?0===Nu&&(Nu=3):vs())),null!==t.updateQueue&&(t.flags|=4),Hl(t),null);case 4:return Qi(),Rl(e,t),null===e&&Lr(t.stateNode.containerInfo),Hl(t),null;case 10:return $i(t.type._context),Hl(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return Hl(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)Wl(a,!1);else{if(0!==Nu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ta(e))){for(t.flags|=128,Wl(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return jo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Lu&&(t.flags|=128,r=!0,Wl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return Hl(t),null}else 2*Qe()-a.renderingStartTime>Lu&&1073741824!==n&&(t.flags|=128,r=!0,Wl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,jo(ea,r?1&n|2:1&n),t):(Hl(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ru)&&(Hl(t),6&t.subtreeFlags&&(t.flags|=8192)):Hl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Kl(e,t){switch(ni(t),t.tag){case 1:return To(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Oo(Fo),Oo(Po),ra(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Oo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ea),null;case 4:return Qi(),null;case 10:return $i(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}El=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}},Rl=function(){},Tl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xi(Hi.current);var i,a=null;switch(n){case"input":o=X(e,o),r=X(e,r),a=[];break;case"select":o=z({},o,{value:void 0}),r=z({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ge(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Dr("scroll",e),a||u===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Gl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cs(e,t,n)}else n.current=null}function eu(e,t,n){try{n()}catch(n){Cs(e,t,n)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&eu(t,n,i)}o=o.next}while(o!==r)}}function ru(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 ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[bo],delete t[mo],delete t[go])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Gl||Jl(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Lt(e)):uo(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Gl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&eu(n,t,a),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!Gl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cs(n,t,e)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Gl=(r=Gl)||null!==n.memoizedState,fu(e,t,n),Gl=r):fu(e,t,n);break;default:fu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=$s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(i(160));pu(a,l,o),cu=null,du=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Cs(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bu(t,e),t=t.sibling}function bu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),mu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(t){Cs(e,e.return,t)}try{nu(5,e,e.return)}catch(t){Cs(e,e.return,t)}}break;case 1:vu(t,e),mu(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(vu(t,e),mu(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Cs(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(u,l);var c=ye(u,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?be(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(u){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){Cs(e,e.return,t)}}break;case 6:if(vu(t,e),mu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Cs(e,e.return,t)}}break;case 3:if(vu(t,e),mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Lt(t.containerInfo)}catch(t){Cs(e,e.return,t)}break;case 4:default:vu(t,e),mu(e);break;case 13:vu(t,e),mu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vu=Qe())),4&r&&hu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gl=(c=Gl)||d,vu(t,e),Gl=c):vu(t,e),mu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Jl(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Cs(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){xu(f);continue}}null!==h?(h.return=p,Zl=h):xu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,l=null!=(s=f.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=ve("display",l))}catch(t){Cs(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Cs(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vu(t,e),mu(e),4&r&&hu(e);case 21:}}function mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),su(e,lu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,lu(e),a);break;default:throw Error(i(161))}}catch(t){Cs(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gu(e,t,n){Zl=e,yu(e,t,n)}function yu(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Gl;l=Xl;var s=Gl;if(Xl=a,(Gl=u)&&!s)for(Zl=o;null!==Zl;)u=(a=Zl).child,22===a.tag&&null!==a.memoizedState?ku(o):null!==u?(u.return=a,Zl=u):ku(o);for(;null!==i;)Zl=i,yu(i,t,n),i=i.sibling;Zl=o,Xl=l,Gl=s}wu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zl=i):wu(e)}}function wu(e){for(;null!==Zl;){var t=Zl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gl||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&qi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qi(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Lt(f)}}}break;default:throw Error(i(163))}Gl||512&t.flags&&ou(t)}catch(e){Cs(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xu(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function ku(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(e){Cs(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cs(t,o,e)}}var i=t.return;try{ou(t)}catch(e){Cs(t,i,e)}break;case 5:var a=t.return;try{ou(t)}catch(e){Cs(t,a,e)}}}catch(e){Cs(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var _u,Cu=Math.ceil,Su=w.ReactCurrentDispatcher,Ou=w.ReactCurrentOwner,ju=w.ReactCurrentBatchConfig,$u=0,Pu=null,Fu=null,Eu=0,Ru=0,Tu=So(0),Nu=0,Bu=null,Mu=0,zu=0,Iu=0,Du=null,Au=null,Vu=0,Lu=1/0,Uu=null,qu=!1,Wu=null,Hu=null,Yu=!1,Ku=null,Xu=0,Gu=0,Qu=null,Zu=-1,Ju=0;function es(){return 0!=(6&$u)?Qe():-1!==Zu?Zu:Zu=Qe()}function ts(e){return 0==(1&e.mode)?1:0!=(2&$u)&&0!==Eu?Eu&-Eu:null!==bi.transition?(0===Ju&&(Ju=vt()),Ju):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function ns(e,t,n,r){if(50<Gu)throw Gu=0,Qu=null,Error(i(185));mt(e,n,r),0!=(2&$u)&&e===Pu||(e===Pu&&(0==(2&$u)&&(zu|=n),4===Nu&&ls(e,Eu)),rs(e,r),1===n&&0===$u&&0==(1&t.mode)&&(Lu=Qe()+500,Ao&&Uo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Pu?Eu:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Ao=!0,Lo(e)}(us.bind(null,e)):Lo(us.bind(null,e)),ao((function(){0==(6&$u)&&Uo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ps(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zu=-1,Ju=0,0!=(6&$u))throw Error(i(327));var n=e.callbackNode;if(ks()&&e.callbackNode!==n)return null;var r=ft(e,e===Pu?Eu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=bs(e,r);else{t=r;var o=$u;$u|=2;var a=hs();for(Pu===e&&Eu===t||(Uu=null,Lu=Qe()+500,fs(e,t));;)try{gs();break}catch(t){ps(e,t)}ji(),Su.current=a,$u=o,null!==Fu?t=0:(Pu=null,Eu=0,t=Nu)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=Bu,fs(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=bs(e,r))&&(0!==(a=ht(e))&&(r=a,t=is(e,a))),1===t))throw n=Bu,fs(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xs(e,Au,Uu);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Vu+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xs.bind(null,e,Au,Uu),t);break}xs(e,Au,Uu);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cu(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,Au,Uu),r);break}xs(e,Au,Uu);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Du;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=bs(e,t))&&(t=Au,Au=n,null!==t&&as(t)),e}function as(e){null===Au?Au=e:Au.push.apply(Au,e)}function ls(e,t){for(t&=~Iu,t&=~zu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function us(e){if(0!=(6&$u))throw Error(i(327));ks();var t=ft(e,0);if(0==(1&t))return rs(e,Qe()),null;var n=bs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Bu,fs(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,Au,Uu),rs(e,Qe()),null}function ss(e,t){var n=$u;$u|=1;try{return e(t)}finally{0===($u=n)&&(Lu=Qe()+500,Ao&&Uo())}}function cs(e){null!==Ku&&0===Ku.tag&&0==(6&$u)&&ks();var t=$u;$u|=1;var n=ju.transition,r=yt;try{if(ju.transition=null,yt=1,e)return e()}finally{yt=r,ju.transition=n,0==(6&($u=t))&&Uo()}}function ds(){Ru=Tu.current,Oo(Tu)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Fu)for(n=Fu.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:Qi(),Oo(Fo),Oo(Po),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:Oo(ea);break;case 10:$i(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Pu=e,Fu=e=Ts(e.current,null),Eu=Ru=t,Nu=0,Bu=null,Iu=zu=Mu=0,Au=Du=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ri=null}return e}function ps(e,t){for(;;){var n=Fu;try{if(ji(),oa.current=Za,ca){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ca=!1}if(aa=0,sa=ua=la=null,da=!1,fa=0,Ou.current=null,null===n||null===n.return){Nu=1,Bu=t,Fu=null;break}e:{var a=e,l=n.return,u=n,s=t;if(t=Eu,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,d=u,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=bl(l);if(null!==h){h.flags&=-257,ml(h,l,u,0,t),1&h.mode&&vl(a,c,t),s=c;var v=(t=h).updateQueue;if(null===v){var b=new Set;b.add(s),t.updateQueue=b}else v.add(s);break e}if(0==(1&t)){vl(a,c,t),vs();break e}s=Error(i(426))}else if(ii&&1&u.mode){var m=bl(l);if(null!==m){0==(65536&m.flags)&&(m.flags|=256),ml(m,l,u,0,t),vi(sl(s,u));break e}}a=s=sl(s,u),4!==Nu&&(Nu=2),null===Du?Du=[a]:Du.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Li(a,pl(0,s,t));break e;case 1:u=s;var g=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Hu||!Hu.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Li(a,hl(a,u,t));break e}}a=a.return}while(null!==a)}ws(n)}catch(e){t=e,Fu===n&&null!==n&&(Fu=n=n.return);continue}break}}function hs(){var e=Su.current;return Su.current=Za,null===e?Za:e}function vs(){0!==Nu&&3!==Nu&&2!==Nu||(Nu=4),null===Pu||0==(268435455&Mu)&&0==(268435455&zu)||ls(Pu,Eu)}function bs(e,t){var n=$u;$u|=2;var r=hs();for(Pu===e&&Eu===t||(Uu=null,fs(e,t));;)try{ms();break}catch(t){ps(e,t)}if(ji(),$u=n,Su.current=r,null!==Fu)throw Error(i(261));return Pu=null,Eu=0,Nu}function ms(){for(;null!==Fu;)ys(Fu)}function gs(){for(;null!==Fu&&!Xe();)ys(Fu)}function ys(e){var t=_u(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?ws(e):Fu=t,Ou.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Yl(n,t,Ru)))return void(Fu=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Fu=n);if(null===e)return Nu=6,void(Fu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Fu=t);Fu=t=e}while(null!==t);0===Nu&&(Nu=5)}function xs(e,t,n){var r=yt,o=ju.transition;try{ju.transition=null,yt=1,function(e,t,n,r){do{ks()}while(null!==Ku);if(0!=(6&$u))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pu&&(Fu=Pu=null,Eu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Yu||(Yu=!0,Ps(tt,(function(){return ks(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=ju.transition,ju.transition=null;var l=yt;yt=1;var u=$u;$u|=4,Ou.current=null,function(e,t){if(eo=qt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,u=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(u=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(u=l),p===a&&++d===r&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},qt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var b=v.memoizedProps,m=v.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:nl(t.type,b),m);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Cs(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}v=tu,tu=!1}(e,n),bu(n,e),hr(to),qt=!!eo,to=eo=null,e.current=n,gu(n,e,o),Ge(),$u=u,yt=l,ju.transition=a}else e.current=n;if(Yu&&(Yu=!1,Ku=e,Xu=o),a=e.pendingLanes,0===a&&(Hu=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(qu)throw qu=!1,e=Wu,Wu=null,e;0!=(1&Xu)&&0!==e.tag&&ks(),a=e.pendingLanes,0!=(1&a)?e===Qu?Gu++:(Gu=0,Qu=e):Gu=0,Uo()}(e,t,n,r)}finally{ju.transition=o,yt=r}return null}function ks(){if(null!==Ku){var e=wt(Xu),t=ju.transition,n=yt;try{if(ju.transition=null,yt=16>e?16:e,null===Ku)var r=!1;else{if(e=Ku,Ku=null,Xu=0,0!=(6&$u))throw Error(i(331));var o=$u;for($u|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(0!=(16&Zl.flags)){var u=a.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:nu(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,h=d.return;if(iu(d),d===c){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var v=a.alternate;if(null!==v){var b=v.child;if(null!==b){v.child=null;do{var m=b.sibling;b.sibling=null,b=m}while(null!==b)}}Zl=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Zl=g;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(0!=(2048&(u=Zl).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(e){Cs(u,u.return,e)}if(u===l){Zl=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Zl=x;break e}Zl=u.return}}if($u=o,Uo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,ju.transition=t}}return!1}function _s(e,t,n){e=Ai(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(mt(e,1,t),rs(e,t))}function Cs(e,t,n){if(3===e.tag)_s(e,e,n);else for(;null!==t;){if(3===t.tag){_s(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hu||!Hu.has(r))){t=Ai(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(mt(t,1,e),rs(t,e));break}}t=t.return}}function Ss(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,Pu===e&&(Eu&n)===n&&(4===Nu||3===Nu&&(130023424&Eu)===Eu&&500>Qe()-Vu?fs(e,0):Iu|=n),rs(e,t)}function Os(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=es();null!==(e=Bi(e,t))&&(mt(e,t,n),rs(e,n))}function js(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Os(e,n)}function $s(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Os(e,n)}function Ps(e,t){return Ye(e,t)}function Fs(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Es(e,t,n,r){return new Fs(e,t,n,r)}function Rs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ts(e,t){var n=e.alternate;return null===n?((n=Es(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.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ns(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Rs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case _:return Bs(n.children,o,a,t);case C:l=8,o|=8;break;case S:return(e=Es(12,n,t,2|o)).elementType=S,e.lanes=a,e;case P:return(e=Es(13,n,t,o)).elementType=P,e.lanes=a,e;case F:return(e=Es(19,n,t,o)).elementType=F,e.lanes=a,e;case T:return Ms(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case j:l=9;break e;case $:l=11;break e;case E:l=14;break e;case R:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Es(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Bs(e,t,n,r){return(e=Es(7,e,r,t)).lanes=n,e}function Ms(e,t,n,r){return(e=Es(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function zs(e,t,n){return(e=Es(6,e,null,t)).lanes=n,e}function Is(e,t,n){return(t=Es(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ds(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function As(e,t,n,r,o,i,a,l,u){return e=new Ds(e,t,n,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Es(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zi(i),e}function Vs(e){if(!e)return $o;e:{if(Le(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(To(n))return Mo(e,n,t)}return t}function Ls(e,t,n,r,o,i,a,l,u){return(e=As(n,r,!0,e,0,i,0,l,u)).context=Vs(null),n=e.current,(i=Di(r=es(),o=ts(n))).callback=null!=t?t:null,Ai(n,i,o),e.current.lanes=o,mt(e,o,r),rs(e,r),e}function Us(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Vs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Di(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ai(o,t,a))&&(ns(e,o,a,i),Vi(e,o,a)),a}function qs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ws(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Hs(e,t){Ws(e,t),(e=e.alternate)&&Ws(e,t)}_u=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Fo.current)yl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),hi();break;case 5:Zi(t);break;case 1:To(t.type)&&zo(t);break;case 4:Gi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;jo(_i,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(jo(ea,1&ea.current),t.flags|=128,null):0!=(n&t.child.childLanes)?zl(e,t,n):(jo(ea,1&ea.current),null!==(e=ql(e,t,n))?e.sibling:null);jo(ea,1&ea.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ll(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),jo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return ql(e,t,n)}(e,t,n);yl=0!=(131072&e.flags)}else yl=!1,ii&&0!=(1048576&t.flags)&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var o=Ro(t,Po.current);Fi(t,n),o=ba(null,t,r,e,o,n);var a=ma();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,To(r)?(a=!0,zo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,zi(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,ul(t,r,e,n),t=$l(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Rs(e)?1:0;if(null!=e){if((e=e.$$typeof)===$)return 11;if(e===E)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Ol(null,t,r,e,n);break e;case 1:t=jl(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,jl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ii(e,t),Ui(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Fl(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Fl(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=ki(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=ql(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Sl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return zl(e,t,n);case 4:return Gi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,jo(_i,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Fo.current){t=ql(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Di(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Pi(a.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),Pi(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fi(t,n),r=r(o=Ei(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),kl(e,t,r,o=nl(r.type,o),n);case 15:return _l(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Ul(e,t),t.tag=1,To(r)?(e=!0,zo(t)):e=!1,Fi(t,n),al(t,r,o),ul(t,r,o,n),$l(null,t,r,!0,e,n);case 19:return Ll(e,t,n);case 22:return Cl(e,t,n)}throw Error(i(156,t.tag))};var Ys="function"==typeof reportError?reportError:function(e){console.error(e)};function Ks(e){this._internalRoot=e}function Xs(e){this._internalRoot=e}function Gs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=qs(a);l.call(e)}}Us(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=qs(a);i.call(e)}}var a=Ls(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[vo]=a.current,Lr(8===e.nodeType?e.parentNode:e),cs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=qs(u);l.call(e)}}var u=As(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=u,e[vo]=u.current,Lr(8===e.nodeType?e.parentNode:e),cs((function(){Us(t,u,n,r)})),u}(n,t,e,o,r);return qs(a)}Xs.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Us(e,t,null,null)},Xs.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Us(null,e,null,null)})),t[vo]=null}},Xs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&zt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(gt(t,1|n),rs(t,Qe()),0==(6&$u)&&(Lu=Qe()+500,Uo()))}break;case 13:cs((function(){var t=Bi(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Hs(e,1)}},kt=function(e){if(13===e.tag){var t=Bi(e,134217728);if(null!==t)ns(t,e,134217728,es());Hs(e,134217728)}},_t=function(e){if(13===e.tag){var t=ts(e),n=Bi(e,t);if(null!==n)ns(n,e,t,es());Hs(e,t)}},Ct=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(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=ko(r);if(!o)throw Error(i(90));Y(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},$e=ss,Pe=cs;var ec={usingClientEntryPoint:!1,Events:[wo,xo,ko,Oe,je,ss]},tc={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gs(e))throw Error(i(299));var n=!1,r="",o=Ys;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=As(e,1,!1,null,0,n,0,r,o),e[vo]=t.current,Lr(8===e.nodeType?e.parentNode:e),new Ks(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cs(e)},t.hydrate=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Ys;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Ls(t,null,e,1,null!=n?n:null,o,0,a,l),e[vo]=t.current,Lr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xs(t)},t.render=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(i(40));return!!e._reactRootContainer&&(cs((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[vo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:function(e,t,n){"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1020:function(e,t,n){"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},5287:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function m(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var w=y.prototype=new g;w.constructor=y,v(w,m.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!C.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:_.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function $(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 P(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===i?"."+$(u,0):i,x(a)?(o="",null!=e&&(o=e.replace(j,"$&/")+"/"),P(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(j,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var c=i+$(l=e[s],s);u+=P(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=P(l=l.value,t,o,c=i+$(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function F(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function E(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},T={transition:null},N={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:T,ReactCurrentOwner:_};function B(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=B,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)k.call(t,s)&&!C.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:E}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=B,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},6540:function(e,t,n){"use strict";e.exports=n(5287)},4848:function(e,t,n){"use strict";e.exports=n(1020)},7463:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],d=1,f=null,p=3,h=!1,v=!1,b=!1,m="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function x(e){if(b=!1,w(e),!v)if(null!==r(s))v=!0,T(k);else{var t=r(c);null!==t&&N(x,t.startTime-e)}}function k(e,n){v=!1,b&&(b=!1,g(O),O=-1),h=!0;var i=p;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!P());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(s)&&o(s),w(n)}else o(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&N(x,d.startTime-n),u=!1}return u}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,C=!1,S=null,O=-1,j=5,$=-1;function P(){return!(t.unstable_now()-$<j)}function F(){if(null!==S){var e=t.unstable_now();$=e;var n=!0;try{n=S(!0,e)}finally{n?_():(C=!1,S=null)}}else C=!1}if("function"==typeof y)_=function(){y(F)};else if("undefined"!=typeof MessageChannel){var E=new MessageChannel,R=E.port2;E.port1.onmessage=F,_=function(){R.postMessage(null)}}else _=function(){m(F,0)};function T(e){S=e,C||(C=!0,_())}function N(e,n){O=m((function(){e(t.unstable_now())}),n)}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(){v||h||(v=!0,T(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(b?(g(O),O=-1):b=!0,N(x,i-a))):(e.sortIndex=l,n(s,e),v||h||(v=!0,T(k))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:function(e,t,n){"use strict";e.exports=n(7463)},2833:function(e){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 l=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!l(s))return!1;var c=e[s],d=t[s];if(!1===(o=n?n.call(r,c,d,s):void 0)||void 0===o&&c!==d)return!1}return!0}},9872:function(e,t,n){"use strict";var r=n(3496),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var l=e[n];r(l)?t=o.call(t,i.call(l)):t.push(l)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},3496:function(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},780:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheet:function(){return rn},StyleSheetConsumer:function(){return $t},StyleSheetContext:function(){return jt},StyleSheetManager:function(){return Et},ThemeConsumer:function(){return Lt},ThemeContext:function(){return Vt},ThemeProvider:function(){return qt},__PRIVATE__:function(){return on},createGlobalStyle:function(){return en},css:function(){return Xt},default:function(){return Zt},isStyledComponent:function(){return Ge},keyframes:function(){return tn},styled:function(){return Zt},useTheme:function(){return Ut},version:function(){return de},withTheme:function(){return nn}});var r=n(1635),o=n(6540),i=n(2833),a=n.n(i),l="-ms-",u="-moz-",s="-webkit-",c="comm",d="rule",f="decl",p="@import",h="@keyframes",v="@layer",b=Math.abs,m=String.fromCharCode,g=Object.assign;function y(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function x(e,t,n){return e.replace(t,n)}function k(e,t,n){return e.indexOf(t,n)}function _(e,t){return 0|e.charCodeAt(t)}function C(e,t,n){return e.slice(t,n)}function S(e){return e.length}function O(e){return e.length}function j(e,t){return t.push(e),e}function $(e,t){return e.filter((function(e){return!w(e,t)}))}var P=1,F=1,E=0,R=0,T=0,N="";function B(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:P,column:F,length:a,return:"",siblings:l}}function M(e,t){return g(B("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function z(e){for(;e.root;)e=M(e.root,{children:[e]});j(e,e.siblings)}function I(){return T=R>0?_(N,--R):0,F--,10===T&&(F=1,P--),T}function D(){return T=R<E?_(N,R++):0,F++,10===T&&(F=1,P++),T}function A(){return _(N,R)}function V(){return R}function L(e,t){return C(N,e,t)}function U(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q(e){return P=F=1,E=S(N=e),R=0,[]}function W(e){return N="",e}function H(e){return y(L(R-1,X(91===e?e+2:40===e?e+1:e)))}function Y(e){for(;(T=A())&&T<33;)D();return U(e)>2||U(T)>3?"":" "}function K(e,t){for(;--t&&D()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return L(e,V()+(t<6&&32==A()&&32==D()))}function X(e){for(;D();)switch(T){case e:return R;case 34:case 39:34!==e&&39!==e&&X(T);break;case 40:41===e&&X(e);break;case 92:D()}return R}function G(e,t){for(;D()&&e+T!==57&&(e+T!==84||47!==A()););return"/*"+L(t,R-1)+"*"+m(47===e?e:D())}function Q(e){for(;!U(A());)D();return L(e,R)}function Z(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function J(e,t,n,r){switch(e.type){case v:if(e.children.length)break;case p:case f:return e.return=e.return||e.value;case c:return"";case h:return e.return=e.value+"{"+Z(e.children,r)+"}";case d:if(!S(e.value=e.props.join(",")))return""}return S(n=Z(e.children,r))?e.return=e.value+"{"+n+"}":""}function ee(e,t,n){switch(function(e,t){return 45^_(e,0)?(((t<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}(e,t)){case 5103:return s+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return s+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return s+e+u+e+l+e+e;case 5936:switch(_(e,t+11)){case 114:return s+e+l+x(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return s+e+l+x(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return s+e+l+x(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return s+e+l+e+e;case 6165:return s+e+l+"flex-"+e+e;case 5187:return s+e+x(e,/(\w+).+(:[^]+)/,s+"box-$1$2"+l+"flex-$1$2")+e;case 5443:return s+e+l+"flex-item-"+x(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":l+"grid-row-"+x(e,/flex-|-self/g,""))+e;case 4675:return s+e+l+"flex-line-pack"+x(e,/align-content|flex-|-self/g,"")+e;case 5548:return s+e+l+x(e,"shrink","negative")+e;case 5292:return s+e+l+x(e,"basis","preferred-size")+e;case 6060:return s+"box-"+x(e,"-grow","")+s+e+l+x(e,"grow","positive")+e;case 4554:return s+x(e,/([^-])(transform)/g,"$1"+s+"$2")+e;case 6187:return x(x(x(e,/(zoom-|grab)/,s+"$1"),/(image-set)/,s+"$1"),e,"")+e;case 5495:case 3959:return x(e,/(image-set\([^]*)/,s+"$1$`$1");case 4968:return x(x(e,/(.+:)(flex-)?(.*)/,s+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+s+e+e;case 4200:if(!w(e,/flex-|baseline/))return l+"grid-column-align"+C(e,t)+e;break;case 2592:case 3360:return l+x(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,w(e.props,/grid-\w+-end/)}))?~k(e+(n=n[t].value),"span",0)?e:l+x(e,"-start","")+e+l+"grid-row-span:"+(~k(n,"span",0)?w(n,/\d+/):+w(n,/\d+/)-+w(e,/\d+/))+";":l+x(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:l+x(x(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return x(e,/(.+)-inline(.+)/,s+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(e)-1-t>6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return x(e,/(.+:)(.+)-([^]+)/,"$1"+s+"$2-$3$1"+u+(108==_(e,t+3)?"$3":"$2-$3"))+e;case 115:return~k(e,"stretch",0)?ee(x(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return x(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,u){return l+n+":"+r+u+(o?l+n+"-span:"+(i?a:+a-+r)+u:"")+e}));case 4949:if(121===_(e,t+6))return x(e,":",":"+s)+e;break;case 6444:switch(_(e,45===_(e,14)?18:11)){case 120:return x(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+s+(45===_(e,14)?"inline-":"")+"box$3$1"+s+"$2$3$1"+l+"$2box$3")+e;case 100:return x(e,":",":"+l)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return x(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case f:return void(e.return=ee(e.value,e.length,n));case h:return Z([M(e,{value:x(e.value,"@","@"+s)})],r);case d:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":z(M(e,{props:[x(t,/:(read-\w+)/,":"+u+"$1")]})),z(M(e,{props:[t]})),g(e,{props:$(n,r)});break;case"::placeholder":z(M(e,{props:[x(t,/:(plac\w+)/,":"+s+"input-$1")]})),z(M(e,{props:[x(t,/:(plac\w+)/,":"+u+"$1")]})),z(M(e,{props:[x(t,/:(plac\w+)/,l+"input-$1")]})),z(M(e,{props:[t]})),g(e,{props:$(n,r)})}return""}))}}function ne(e){return W(re("",null,null,null,[""],e=q(e),0,[0],e))}function re(e,t,n,r,o,i,a,l,u){for(var s=0,c=0,d=a,f=0,p=0,h=0,v=1,g=1,y=1,w=0,C="",O=o,$=i,P=r,F=C;g;)switch(h=w,w=D()){case 40:if(108!=h&&58==_(F,d-1)){-1!=k(F+=x(H(w),"&","&\f"),"&\f",b(s?l[s-1]:0))&&(y=-1);break}case 34:case 39:case 91:F+=H(w);break;case 9:case 10:case 13:case 32:F+=Y(h);break;case 92:F+=K(V()-1,7);continue;case 47:switch(A()){case 42:case 47:j(ie(G(D(),V()),t,n,u),u);break;default:F+="/"}break;case 123*v:l[s++]=S(F)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+c:-1==y&&(F=x(F,/\f/g,"")),p>0&&S(F)-d&&j(p>32?ae(F+";",r,n,d-1,u):ae(x(F," ","")+";",r,n,d-2,u),u);break;case 59:F+=";";default:if(j(P=oe(F,t,n,s,c,o,l,C,O=[],$=[],d,i),i),123===w)if(0===c)re(F,t,P,P,O,i,d,l,$);else switch(99===f&&110===_(F,3)?100:f){case 100:case 108:case 109:case 115:re(e,P,P,r&&j(oe(e,P,P,0,0,o,l,C,o,O=[],d,$),$),o,$,d,l,r?O:$);break;default:re(F,P,P,P,[""],$,0,l,$)}}s=c=p=0,v=y=1,C=F="",d=a;break;case 58:d=1+S(F),p=h;default:if(v<1)if(123==w)--v;else if(125==w&&0==v++&&125==I())continue;switch(F+=m(w),w*v){case 38:y=c>0?1:(F+="\f",-1);break;case 44:l[s++]=(S(F)-1)*y,y=1;break;case 64:45===A()&&(F+=H(D())),f=A(),c=d=S(C=F+=Q(V())),w++;break;case 45:45===h&&2==S(F)&&(v=0)}}return i}function oe(e,t,n,r,o,i,a,l,u,s,c,f){for(var p=o-1,h=0===o?i:[""],v=O(h),m=0,g=0,w=0;m<r;++m)for(var k=0,_=C(e,p+1,p=b(g=a[m])),S=e;k<v;++k)(S=y(g>0?h[k]+" "+_:x(_,/&\f/g,h[k])))&&(u[w++]=S);return B(e,t,n,0===o?d:l,u,s,c,f)}function ie(e,t,n,r){return B(e,t,n,c,m(T),C(e,2,-2),0,r)}function ae(e,t,n,r,o){return B(e,t,n,f,C(e,0,r),C(e,r+1,-1),r,o)}var le={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ue="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",se="active",ce="data-styled-version",de="6.1.11",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"HTMLElement"in window,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),ve={},be=(new Set,Object.freeze([])),me=Object.freeze({});function ge(e,t,n){return void 0===n&&(n=me),e.theme!==n.theme&&e.theme||t||n.theme}var ye=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function ke(e){return e.replace(we,"-").replace(xe,"")}var _e=/(a)(d)/gi,Ce=52,Se=function(e){return String.fromCharCode(e+(e>25?39:97))};function Oe(e){var t,n="";for(t=Math.abs(e);t>Ce;t=t/Ce|0)n=Se(t%Ce)+n;return(Se(t%Ce)+n).replace(_e,"$1-$2")}var je,$e=5381,Pe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fe=function(e){return Pe($e,e)};function Ee(e){return Oe(Fe(e)>>>0)}function Re(e){return e.displayName||e.name||"Component"}function Te(e){return"string"==typeof e&&!0}var Ne="function"==typeof Symbol&&Symbol.for,Be=Ne?Symbol.for("react.memo"):60115,Me=Ne?Symbol.for("react.forward_ref"):60112,ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ie={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},De={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ae=((je={})[Me]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},je[Be]=De,je);function Ve(e){return("type"in(t=e)&&t.type.$$typeof)===Be?De:"$$typeof"in e?Ae[e.$$typeof]:ze;var t}var Le=Object.defineProperty,Ue=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,We=Object.getOwnPropertyDescriptor,He=Object.getPrototypeOf,Ye=Object.prototype;function Ke(e,t,n){if("string"!=typeof t){if(Ye){var r=He(t);r&&r!==Ye&&Ke(e,r,n)}var o=Ue(t);qe&&(o=o.concat(qe(t)));for(var i=Ve(e),a=Ve(t),l=0;l<o.length;++l){var u=o[l];if(!(u in Ie||n&&n[u]||a&&u in a||i&&u in i)){var s=We(t,u);try{Le(e,u,s)}catch(e){}}}}return e}function Xe(e){return"function"==typeof e}function Ge(e){return"object"==typeof e&&"styledComponentId"in e}function Qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ze(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Je(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function et(e,t,n){if(void 0===n&&(n=!1),!n&&!Je(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=et(e[r],t[r]);else if(Je(t))for(var r in t)e[r]=et(e[r],t[r]);return e}function tt(e,t){Object.defineProperty(e,"toString",{value:t})}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var rt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw nt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(fe);return t},e}(),ot=new Map,it=new Map,at=1,lt=function(e){if(ot.has(e))return ot.get(e);for(;it.has(at);)at++;var t=at++;return ot.set(e,t),it.set(t,e),t},ut=function(e,t){at=t+1,ot.set(e,t),it.set(t,e)},st="style[".concat(ue,"][").concat(ce,'="').concat(de,'"]'),ct=new RegExp("^".concat(ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dt=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},ft=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(fe),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var u=l.match(ct);if(u){var s=0|parseInt(u[1],10),c=u[2];0!==s&&(ut(c,s),dt(e,c,u[3]),e.getTag().insertRules(s,o)),o.length=0}else o.push(l)}}};function pt(){return n.nc}var ht=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ue,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ue,se),r.setAttribute(ce,de);var a=pt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},vt=function(){function e(e){this.element=ht(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw nt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),bt=function(){function e(e){this.element=ht(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),mt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),gt=pe,yt={isServer:!pe,useCSSOMInjection:!he},wt=function(){function e(e,t,n){void 0===e&&(e=me),void 0===t&&(t={});var o=this;this.options=(0,r.__assign)((0,r.__assign)({},yt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pe&&gt&&(gt=!1,function(e){for(var t=document.querySelectorAll(st),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ue)!==se&&(ft(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),tt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return it.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(ue,".g").concat(n,'[id="').concat(o,'"]'),u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(u,'"}').concat(fe)},i=0;i<n;i++)o(i);return r}(o)}))}return e.registerId=function(e){return lt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e((0,r.__assign)((0,r.__assign)({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new mt(n):t?new vt(n):new bt(n)}(this.options),new rt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(lt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(lt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(lt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),xt=/&/g,kt=/^\s*\/\/.*$/gm;function _t(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=_t(e.children,t)),e}))}function Ct(e){var t,n,r,o=void 0===e?me:e,i=o.options,a=void 0===i?me:i,l=o.plugins,u=void 0===l?be:l,s=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=u.slice();c.push((function(e){e.type===d&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(xt,n).replace(r,s))})),a.prefix&&c.push(te),c.push(J);var f=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(kt,""),s=ne(i||o?"".concat(i," ").concat(o," { ").concat(u," }"):u);a.namespace&&(s=_t(s,a.namespace));var d,f,p,h=[];return Z(s,(d=c.concat((p=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&p(e)})),f=O(d),function(e,t,n,r){for(var o="",i=0;i<f;i++)o+=d[i](e,t,n,r)||"";return o})),h};return f.hash=u.length?u.reduce((function(e,t){return t.name||nt(15),Pe(e,t.name)}),$e).toString():"",f}var St=new wt,Ot=Ct(),jt=o.createContext({shouldForwardProp:void 0,styleSheet:St,stylis:Ot}),$t=jt.Consumer,Pt=o.createContext(void 0);function Ft(){return(0,o.useContext)(jt)}function Et(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=Ft().styleSheet,l=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),u=(0,o.useMemo)((function(){return Ct({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)((function(){a()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var s=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:u}}),[e.shouldForwardProp,l,u]);return o.createElement(jt.Provider,{value:s},o.createElement(Pt.Provider,{value:u},e.children))}var Rt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ot);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,tt(this,(function(){throw nt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ot),this.name+e.hash},e}(),Tt=function(e){return e>="A"&&e<="Z"};function Nt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Tt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Bt=function(e){return null==e||!1===e||""===e},Mt=function(e){var t,n,o=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Bt(a)&&(Array.isArray(a)&&a.isCss||Xe(a)?o.push("".concat(Nt(i),":"),a,";"):Je(a)?o.push.apply(o,(0,r.__spreadArray)((0,r.__spreadArray)(["".concat(i," {")],Mt(a),!1),["}"],!1)):o.push("".concat(Nt(i),": ").concat((t=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in le||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function zt(e,t,n,r){return Bt(e)?[]:Ge(e)?[".".concat(e.styledComponentId)]:Xe(e)?!Xe(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:zt(e(t),t,n,r):e instanceof Rt?n?(e.inject(n,r),[e.getName(r)]):[e]:Je(e)?Mt(e):Array.isArray(e)?Array.prototype.concat.apply(be,e.map((function(e){return zt(e,t,n,r)}))):[e.toString()];var o}function It(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Xe(n)&&!Ge(n))return!1}return!0}var Dt=Fe(de),At=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&It(e),this.componentId=t,this.baseHash=Pe(Dt,t),this.baseStyle=n,wt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Qe(r,this.staticRulesId);else{var o=Ze(zt(this.rules,e,t,n)),i=Oe(Pe(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Qe(r,i),this.staticRulesId=i}else{for(var l=Pe(this.baseHash,n.hash),u="",s=0;s<this.rules.length;s++){var c=this.rules[s];if("string"==typeof c)u+=c;else if(c){var d=Ze(zt(c,e,t,n));l=Pe(l,d+s),u+=d}}if(u){var f=Oe(l>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(u,".".concat(f),void 0,this.componentId)),r=Qe(r,f)}}return r},e}(),Vt=o.createContext(void 0),Lt=Vt.Consumer;function Ut(){var e=(0,o.useContext)(Vt);if(!e)throw nt(18);return e}function qt(e){var t=o.useContext(Vt),n=(0,o.useMemo)((function(){return function(e,t){if(!e)throw nt(14);if(Xe(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw nt(8);return t?(0,r.__assign)((0,r.__assign)({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(Vt.Provider,{value:n},e.children):null}var Wt={};new Set;function Ht(e,t,n){var i=Ge(e),a=e,l=!Te(e),u=t.attrs,s=void 0===u?be:u,c=t.componentId,d=void 0===c?function(e,t){var n="string"!=typeof e?"sc":ke(e);Wt[n]=(Wt[n]||0)+1;var r="".concat(n,"-").concat(Ee(de+n+Wt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):c,f=t.displayName,p=void 0===f?function(e){return Te(e)?"styled.".concat(e):"Styled(".concat(Re(e),")")}(e):f,h=t.displayName&&t.componentId?"".concat(ke(t.displayName),"-").concat(t.componentId):t.componentId||d,v=i&&a.attrs?a.attrs.concat(s).filter(Boolean):s,b=t.shouldForwardProp;if(i&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;b=function(e,t){return m(e,t)&&g(e,t)}}else b=m}var y=new At(n,h,i?a.componentStyle:void 0);function w(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,s=e.styledComponentId,c=e.target,d=o.useContext(Vt),f=Ft(),p=e.shouldForwardProp||f.shouldForwardProp,h=ge(t,d,l)||me,v=function(e,t,n){for(var o,i=(0,r.__assign)((0,r.__assign)({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var l=Xe(o=e[a])?o(i):o;for(var u in l)i[u]="className"===u?Qe(i[u],l[u]):"style"===u?(0,r.__assign)((0,r.__assign)({},i[u]),l[u]):l[u]}return t.className&&(i.className=Qe(i.className,t.className)),i}(i,t,h),b=v.as||c,m={};for(var g in v)void 0===v[g]||"$"===g[0]||"as"===g||"theme"===g&&v.theme===h||("forwardedAs"===g?m.as=v.forwardedAs:p&&!p(g,b)||(m[g]=v[g]));var y=function(e,t){var n=Ft();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,v),w=Qe(u,s);return y&&(w+=" "+y),v.className&&(w+=" "+v.className),m[Te(b)&&!ye.has(b)?"class":"className"]=w,m.ref=n,(0,o.createElement)(b,m)}(x,e,t)}w.displayName=p;var x=o.forwardRef(w);return x.attrs=v,x.componentStyle=y,x.displayName=p,x.shouldForwardProp=b,x.foldedComponentIds=i?Qe(a.foldedComponentIds,a.styledComponentId):"",x.styledComponentId=h,x.target=i?a.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)et(e,o[r],!0);return e}({},a.defaultProps,e):e}}),tt(x,(function(){return".".concat(x.styledComponentId)})),l&&Ke(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Yt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Kt=function(e){return Object.assign(e,{isCss:!0})};function Xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Xe(e)||Je(e))return Kt(zt(Yt(be,(0,r.__spreadArray)([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?zt(o):Kt(zt(Yt(o,t)))}function Gt(e,t,n){if(void 0===n&&(n=me),!t)throw nt(1,t);var o=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,Xt.apply(void 0,(0,r.__spreadArray)([o],i,!1)))};return o.attrs=function(o){return Gt(e,t,(0,r.__assign)((0,r.__assign)({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return Gt(e,t,(0,r.__assign)((0,r.__assign)({},n),o))},o}var Qt=function(e){return Gt(Ht,e)},Zt=Qt;ye.forEach((function(e){Zt[e]=Qt(e)}));var Jt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=It(e),wt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Ze(zt(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&wt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function en(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Xt.apply(void 0,(0,r.__spreadArray)([e],t,!1)),a="sc-global-".concat(Ee(JSON.stringify(i))),l=new Jt(i,a),u=function(e){var t=Ft(),n=o.useContext(Vt),r=o.useRef(t.styleSheet.allocateGSInstance(a)).current;return t.styleSheet.server&&s(r,e,t.styleSheet,n,t.stylis),o.useLayoutEffect((function(){if(!t.styleSheet.server)return s(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}}),[r,e,t.styleSheet,n,t.stylis]),null};function s(e,t,n,o,i){if(l.isStatic)l.renderStyles(e,ve,n,i);else{var a=(0,r.__assign)((0,r.__assign)({},t),{theme:ge(t,o,u.defaultProps)});l.renderStyles(e,a,n,i)}}return o.memo(u)}function tn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Ze(Xt.apply(void 0,(0,r.__spreadArray)([e],t,!1))),i=Ee(o);return new Rt(i,o)}function nn(e){var t=o.forwardRef((function(t,n){var i=ge(t,o.useContext(Vt),e.defaultProps);return o.createElement(e,(0,r.__assign)({},t,{theme:i,ref:n}))}));return t.displayName="WithTheme(".concat(Re(e),")"),Ke(t,e)}var rn=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=pt(),r=Ze([n&&'nonce="'.concat(n,'"'),"".concat(ue,'="true"'),"".concat(ce,'="').concat(de,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw nt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw nt(2);var n=((t={})[ue]="",t[ce]=de,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),i=pt();return i&&(n.nonce=i),[o.createElement("style",(0,r.__assign)({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new wt({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw nt(2);return o.createElement(Et,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw nt(3)},e}(),on={StyleSheet:wt,mainSheet:St};"__sc-".concat(ue,"__")},1388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(5827),u=n(6627),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hideRequiredIndicatorFromName=!0,t}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.placeholder&&e.name,e.description,(0,o.jsx)(u.CheckboxFabric,{styles:e.styles.checkboxes,value:this.checkboxSlot,required:this.required,error:e.isFailed,label:e.label,tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-checkbox",alias:"checkbox"})],t)}(l.Checkbox);t.CheckboxBlock=s},7832:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxesBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(4527),u=n(7827),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.CheckboxesFabric,{styles:e.styles.checkboxes,view:e.view,checkboxes:this.checkboxes(e),ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-checkboxes"})],t)}(l.Checkboxes);t.CheckboxesBlock=s},1878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(9064),u=n(9267),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.DateTimeFabric,{id:e.id,mode:this.props.time?"datetime":"date",styles:e.styles.inputs,l10n:e.l10n,value:this.dateSlot,required:this.required,error:e.isFailed&&(!this.props.range||this.fromError),tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:!this.props.range&&e.onSubmit||void 0}),this.props.range&&this.toSlot&&(0,o.jsx)(u.DateTimeFabric,{mode:this.props.time?"datetime":"date",styles:e.styles.inputs,l10n:e.l10n,value:this.toSlot,required:this.required,error:e.isFailed&&(!this.props.range||this.toError),tabIndex:e.tabIndex,placeholder:this.toPlaceholder,ariaDescribedBy:e.ariaDescribedBy,onFocus:e.focus,onBlur:e.blur}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-date"})],t)}(l.DateTime);t.DateTimeBlock=s},2012:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(3907),u=n(4335),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.DropdownFabric,{id:e.id,styles:e.styles.inputs,options:this.options,value:this.dropdownSlot,required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-dropdown"})],t)}(l.Dropdown);t.DropdownBlock=s},8412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmailBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(2298),u=n(2466),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.EmailFabric,{id:e.id,styles:e.styles.inputs,value:this.emailSlot,required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-email"})],t)}(l.Email);t.EmailBlock=s},9592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBlock=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(9849),u=n(6016),s=n(3440),c=n(404),d=a.styled.div(r||(r=o.__makeTemplateObject(["\n    color: ",";\n\n    > h2 {\n        font-size: 1.6em;\n        line-height: 1.3em;\n    }\n"],["\n    color: ",";\n\n    > h2 {\n        font-size: 1.6em;\n        line-height: 1.3em;\n    }\n"])),(function(e){return e.$color})),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.marginAroundBlock=!0,t}return o.__extends(t,e),t.prototype.render=function(e){return(e.name||e.description)&&(0,i.jsxs)(d,{$color:e.styles.inputs.errorColor,children:[e.name&&(0,i.jsx)(c.BlockTitle,{children:e.name}),e.description]})},t=o.__decorate([(0,l.tripetto)({namespace:u.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-error"})],t)}(s.Error);t.ErrorBlock=f},4188:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileUploadBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(8842),u=n(2076),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.FileFabric,{styles:e.styles.fileUpload,controller:this,service:e.attachments,error:e.isFailed,tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit,labels:function(t,n){switch(t){case"explanation":return e.l10n.pgettext("runner#6|📂 File upload","Choose or drag a file here");case"dragging":return e.l10n.pgettext("runner#6|📂 File upload","Drop your file now");case"limit":return e.l10n.pgettext("runner#6|📂 File upload","Size limit: %1",n);case"extensions":return e.l10n.pgettext("runner#6|📂 File upload","Allowed extensions: %1",n);case"retry":return e.l10n.pgettext("runner#6|📂 File upload","Try again");case"progress":return e.l10n.pgettext("runner#6|📂 File upload","Uploading (%1)",n);case"delete":return e.l10n.pgettext("runner#6|📂 File upload","Delete");case"invalid-file":return e.l10n.pgettext("runner#6|📂 File upload","This file can't be used.");case"invalid-amount":return e.l10n.pgettext("runner#6|📂 File upload","Too many files selected.");case"invalid-extension":return e.l10n.pgettext("runner#6|📂 File upload","Extension is not allowed.");case"invalid-size":return e.l10n.pgettext("runner#6|📂 File upload","File size is too large.");case"error":return e.l10n.pgettext("runner#6|📂 File upload","Something went wrong while uploading%1.",n&&" (".concat(n,")")||"")}}}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-file-upload",alias:"file-upload"})],t)}(l.FileUpload);t.FileUploadBlock=s},7331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(6780),n(582),n(6281),n(1619),n(4984),n(4691),n(5301),n(6388),n(1388),n(7832),n(1878),n(2012),n(8412),n(9592),n(4188),n(8580),n(4734),n(3404),n(767),n(8844),n(4692),n(3074),n(7946),n(6362),n(6240),n(3796),n(6524),n(5728),n(8484),n(4318),n(4164),n(8786),n(9752),n(7276)},8580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(7703),u=n(8899),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.MatrixFabric,{styles:e.styles.matrix,columns:this.columns(e),rows:this.rows(e),ariaDescribedBy:e.ariaDescribedBy,allowUnselect:!0,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-matrix"})],t)}(l.Matrix);t.MatrixBlock=s},4734:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(4948),u=n(4774),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e,t,n){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.MultiSelectFabric,{id:e.id,overlay:e.overlay,styles:e.styles.inputs,options:this.options(e),required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:t,onCancel:n}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-multi-select"})],t)}(l.MultiSelect);t.MultiSelectBlock=s},3404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultipleChoiceBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(7426),u=n(6357),s=n(404),c=n(1656),d=n(7062),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[this.props.imageURL&&this.props.imageAboveText&&(0,o.jsx)(u.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),this.props.caption?(0,o.jsxs)(o.Fragment,{children:[e.name&&(0,o.jsx)(s.BlockTitle,{children:e.name}),(0,o.jsx)(c.BlockCaption,{children:e.markdownifyToJSX(this.props.caption)})]}):e.name,e.description,this.props.imageURL&&!this.props.imageAboveText&&(0,o.jsx)(u.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),(0,o.jsx)(d.MultipleChoiceFabric,{styles:e.styles.multipleChoice,view:e.view,buttons:this.choices(e),alignment:("equal"===this.props.alignment||"full"===this.props.alignment||"columns"===this.props.alignment?this.props.alignment:this.props.alignment&&"horizontal")||"vertical",value:!this.props.multiple&&this.valueOf("choice")||void 0,required:this.required,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-multiple-choice",alias:"multiple-choice",autoRender:!0})],t)}(l.MultipleChoice);t.MultipleChoiceBlock=f},767:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(4171),u=n(3555),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.NumberFabric,{id:e.id,styles:e.styles.inputs,l10n:e.l10n,value:this.numberSlot,required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-number"})],t)}(l.Number);t.NumberBlock=s},8844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParagraphBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(3824),u=n(404),s=n(1656),c=n(6357),d=n(123),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[this.props.imageURL&&this.props.imageAboveText&&(0,o.jsx)(c.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),e.name&&(0,o.jsx)(u.BlockTitle,{children:e.name}),this.props.caption&&(0,o.jsx)(s.BlockCaption,{children:e.markdownifyToJSX(this.props.caption)}),e.description,this.props.imageURL&&!this.props.imageAboveText&&(0,o.jsx)(c.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),this.props.video&&(0,o.jsx)(d.BlockVideo,{src:e.markdownifyToURL(this.props.video),view:e.view}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-paragraph",alias:"paragraph"})],t)}(l.Paragraph);t.ParagraphBlock=f},4692:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(6955),u=n(9227),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.PasswordFabric,{id:e.id,styles:e.styles.inputs,value:this.passwordSlot,required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-password"})],t)}(l.Password);t.PasswordBlock=s},3074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneNumberBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(7558),u=n(3792),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.PhoneNumberFabric,{id:e.id,styles:e.styles.inputs,value:this.phoneNumberSlot,required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-phone-number"})],t)}(l.PhoneNumber);t.PhoneNumberBlock=s},7946:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PictureChoiceBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(1178),u=n(6357),s=n(404),c=n(1656),d=n(2316),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hideButtons=!t.props.multiple,t.autoSubmit=!t.props.multiple,t}return r.__extends(t,e),t.prototype.render=function(e,t,n){return(0,o.jsxs)(o.Fragment,{children:[this.props.imageURL&&this.props.imageAboveText&&(0,o.jsx)(u.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),this.props.caption?(0,o.jsxs)(o.Fragment,{children:[e.name&&(0,o.jsx)(s.BlockTitle,{children:e.name}),(0,o.jsx)(c.BlockCaption,{children:e.markdownifyToJSX(this.props.caption)})]}):e.name,e.description,this.props.imageURL&&!this.props.imageAboveText&&(0,o.jsx)(u.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),(0,o.jsx)(d.PictureChoiceFabric,{styles:e.styles.pictureChoice,view:e.view,options:this.choices(e),size:this.props.size,value:!this.props.multiple&&this.valueOf("choice")||void 0,required:this.required,ariaDescribedBy:e.ariaDescribedBy,autoSubmit:this.autoSubmit,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:t,onCancel:n}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-picture-choice",autoRender:!0})],t)}(l.PictureChoice);t.PictureChoiceBlock=f},6362:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadiobuttonsBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(8376),u=n(8630),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.RadiobuttonsFabric,{styles:e.styles.radiobuttons,view:e.view,buttons:this.buttons(e),value:this.radioSlot,tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,allowUnselect:!1,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-radiobuttons"})],t)}(l.Radiobuttons);t.RadiobuttonsBlock=s},6240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RankingBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(6488),u=n(3156),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e,t,n){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.RankingFabric,{styles:e.styles.multipleChoice,slots:this.slots,options:this.options(e),tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:t,onCancel:n}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,type:"node",identifier:"@tripetto/block-ranking"})],t)}(l.Ranking);t.RankingBlock=s},3796:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RatingBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(4035),u=n(6357),s=n(6175),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[this.props.imageURL&&this.props.imageAboveText&&(0,o.jsx)(u.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),e.name,e.description,this.props.imageURL&&!this.props.imageAboveText&&(0,o.jsx)(u.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),(0,o.jsx)(s.RatingFabric,{styles:e.styles.rating,value:this.ratingSlot,required:this.required,tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,shape:this.shape,steps:this.steps,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-rating",alias:"rating"})],t)}(l.Rating);t.RatingBlock=c},6524:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScaleBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(672),u=n(6312),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.autoSubmit=!0,t}return r.__extends(t,e),t.prototype.render=function(e,t,n){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.ScaleFabric,{styles:e.styles.scale,view:e.view,options:this.options,value:this.scaleSlot,required:this.required,tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,labelLeft:this.props.labelLeft&&e.markdownifyToJSX(this.props.labelLeft,!1),labelCenter:this.props.labelCenter&&e.markdownifyToJSX(this.props.labelCenter,!1),labelRight:this.props.labelRight&&e.markdownifyToJSX(this.props.labelRight,!1),justify:this.props.justify,autoSubmit:this.autoSubmit,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:t,onCancel:n}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-scale"})],t)}(l.Scale);t.ScaleBlock=s},5728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(9108),u=n(9376),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e,t,n){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.SignatureFabric,{styles:e.styles.fileUpload,l10n:e.l10n,controller:this,service:e.attachments,error:e.isFailed,size:this.size,color:this.color,tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:t,onCancel:n,labels:function(t,n){switch(t){case"processing":return e.l10n.pgettext("runner#6|✍️ Signature","Processing signature (%1)",n);case"signed":return e.l10n.pgettext("runner#6|✍️ Signature","Signed on %1",n);case"clear":return e.l10n.pgettext("runner#6|✍️ Signature","Clear")}}}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,type:"node",identifier:"@tripetto/block-signature"})],t)}(l.Signature);t.SignatureBlock=s},8484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatementBlock=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(9849),u=n(6016),s=n(8261),c=n(404),d=n(6357),f=a.styled.div(r||(r=o.__makeTemplateObject(["\n    padding-left: 2.2em;\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: 1.6em 1.6em;\n    background-position: top left;\n\n    > h2 {\n        font-size: 1.6em;\n        line-height: 1.3em;\n    }\n"],["\n    padding-left: 2.2em;\n    background-image: ",";\n    background-repeat: no-repeat;\n    background-size: 1.6em 1.6em;\n    background-position: top left;\n\n    > h2 {\n        font-size: 1.6em;\n        line-height: 1.3em;\n    }\n"])),(function(e){return'url("data:image/svg+xml;base64,'.concat(btoa('<?xml version="1.0" encoding="utf-8"?>\n            <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n            <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 10240 10240">\n            <path d="M6400 8320l1920 0c353,0 640,-287 640,-640l0 -1920c0,-353 -287,-640 -640,-640l-960 0c0,-499 0,-1464 1310,-1587 165,-16 290,-153 290,-319l0 -966c0,-91 -34,-169 -100,-232 -66,-63 -145,-92 -236,-88 -2864,146 -2864,2164 -2864,3192l0 2560c0,353 287,640 640,640z" fill="'.concat(e.$color,'" />\n            <path d="M1920 8320l1920 0c353,0 640,-287 640,-640l0 -1920c0,-353 -287,-640 -640,-640l-960 0c0,-499 0,-1464 1310,-1587 165,-16 290,-153 290,-319l0 -966c0,-91 -34,-169 -100,-232 -66,-63 -145,-92 -236,-88 -2864,146 -2864,2164 -2864,3192l0 2560c0,353 287,640 640,640z" fill="').concat(e.$color,'" />\n        </svg>')),'")')})),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.marginAroundBlock=!0,t}return o.__extends(t,e),t.prototype.render=function(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(f,{$color:e.styles.font.color,children:[this.props.imageURL&&this.props.imageAboveText&&(0,i.jsx)(d.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),e.name&&(0,i.jsx)(c.BlockTitle,{children:e.name}),e.description,this.props.imageURL&&!this.props.imageAboveText&&(0,i.jsx)(d.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage})]}),e.ariaDescription]})},t=o.__decorate([(0,l.tripetto)({namespace:u.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-statement",alias:"statement"})],t)}(s.Statement);t.StatementBlock=p},4318:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StopBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(8028),u=n(404),s=n(6357),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.marginAroundBlock=!0,t}return r.__extends(t,e),t.prototype.render=function(e){return(e.name||e.description||this.props.imageURL)&&(0,o.jsxs)(o.Fragment,{children:[this.props.imageURL&&this.props.imageAboveText&&(0,o.jsx)(s.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),e.name&&(0,o.jsx)(u.BlockTitle,{children:e.name}),e.description,this.props.imageURL&&!this.props.imageAboveText&&(0,o.jsx)(s.BlockImage,{src:e.markdownifyToImage(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage})]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-stop"})],t)}(l.Stop);t.StopBlock=c},4164:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(6421),u=n(7209),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.TextFabric,{id:e.id,styles:e.styles.inputs,value:this.textSlot,required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,maxLength:this.maxLength,autoComplete:this.autoComplete,suggestions:this.suggestions,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-text"})],t)}(l.Text);t.TextBlock=s},8786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextareaBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(6814),u=n(168),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.TextareaFabric,{id:e.id,styles:e.styles.inputs,value:this.textareaSlot,required:this.required,error:e.isFailed,autoSize:!0,tabIndex:e.tabIndex,placeholder:e.placeholder,maxLength:this.maxLength,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-textarea"})],t)}(l.Textarea);t.TextareaBlock=s},9752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URLBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(5733),u=n(223),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[e.name,e.description,(0,o.jsx)(u.URLFabric,{id:e.id,styles:e.styles.inputs,value:this.urlSlot,required:this.required,error:e.isFailed,tabIndex:e.tabIndex,placeholder:e.placeholder,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-url"})],t)}(l.URL);t.URLBlock=s},7276:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YesNoBlock=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(6016),l=n(4183),u=n(9699),s=n(6357),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(e){return(0,o.jsxs)(o.Fragment,{children:[this.props.imageURL&&this.props.imageAboveText&&(0,o.jsx)(s.BlockImage,{src:e.markdownifyToURL(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),e.name,e.description,this.props.imageURL&&!this.props.imageAboveText&&(0,o.jsx)(s.BlockImage,{src:e.markdownifyToURL(this.props.imageURL),width:this.props.imageWidth,isPage:e.isPage}),(0,o.jsx)(u.YesNoFabric,{styles:e.styles.yesNo,value:this.answerSlot,yes:{label:e.markdownifyToString(this.props.altYes||"")||e.l10n.pgettext("runner#6|🔷 Yes/No","Yes"),color:this.props.colorYes},no:{label:e.markdownifyToString(this.props.altNo||"")||e.l10n.pgettext("runner#6|🔷 Yes/No","No"),color:this.props.colorNo},required:this.required,tabIndex:e.tabIndex,ariaDescribedBy:e.ariaDescribedBy,onAutoFocus:e.autoFocus,onFocus:e.focus,onBlur:e.blur,onSubmit:e.onSubmit}),e.ariaDescription]})},t=r.__decorate([(0,i.tripetto)({namespace:a.namespace,legacyBlock:!0,type:"node",identifier:"@tripetto/block-yes-no",alias:"yes-no"})],t)}(l.YesNo);t.YesNoBlock=c},1484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassicUI=void 0;var r=n(1635),o=n(4848),i=n(6540),a=n(9595),l=n(5213),u=n(5498),s=n(6494),c=n(903),d=n(194),f=n(3954),p=n(6074),h=n(9475),v=n(170),b=n(4748),m=n(709),g=n(8542),y=n(6212),w=n(2297),x=n(7341),k=n(3903),_=n(1787),C=n(352),S=n(4975),O=n(1351),j=n(7701),$=n(3148),P=n(1832);n(7331);t.ClassicUI=function(e){var t=(0,a.useClassicRunner)(e),n=t.status,F=t.view,E=t.mode,R=t.frameRef,T=t.title,N=t.l10n,B=t.styles,M=t.prologue,z=t.blocks,I=t.buttons,D=t.pausing,A=t.progressPercentage,V=t.pages,L=t.epilogue,U=t.isEvaluating,q=t.isPage,W=t.tabIndex,H=t.OverlayProvider;return(0,o.jsx)(i.StrictMode,{children:(0,o.jsxs)(l.ClassicRoot,{frameRef:R,view:F,isPage:q,title:T,styles:B,className:e.className,customStyle:e.customStyle,customCSS:e.customCSS,onTouch:e.onTouch,children:[M&&(0,o.jsx)(m.Prologue,r.__assign({},M))||z&&(0,o.jsxs)(o.Fragment,{children:[z,U&&(0,o.jsx)(p.EvaluatingMessage,{l10n:N,styles:B}),"error"===n&&(0,o.jsx)(w.ConnectionError,{l10n:N,styles:B}),"error-outdated"===n&&(0,o.jsx)(x.OutdatedError,{l10n:N,styles:B,allowReload:!!e.onReload}),"error-rejected"===n&&(0,o.jsx)(k.RejectedError,{l10n:N,styles:B}),"error-paused"===n&&(0,o.jsx)(_.PauseError,{l10n:N,styles:B}),I&&(0,o.jsxs)(u.Navigation,{children:[(0,o.jsxs)(c.Buttons,{children:["progressive"===E?(0,o.jsx)(s.ButtonFabric,{styles:B.finishButton,tabIndex:W,disabled:"finishing"===n||"reloading"===n||!I.finishable,icon:"error"===n||"error-outdated"===n&&e.onReload||"reloading"===n?$.RetryIcon:j.FinishIcon,label:"finishing"===n?N.pgettext("runner#3|🩺 Status information","Submitting..."):"error-outdated"===n&&e.onReload||"reloading"===n?N.pgettext("runner#1|🆗 Buttons","Reload"):"error"===n?N.pgettext("runner#1|🆗 Buttons","Retry"):N.pgettext("runner#1|🆗 Buttons","Submit"),onClick:I.reload||I.finish}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.ButtonFabric,{styles:I.finish?B.finishButton:B.buttons,tabIndex:W,disabled:"finishing"===n||"reloading"===n||I.finish&&!I.finishable,icon:"error"===n||"error-outdated"===n&&e.onReload||"reloading"===n?$.RetryIcon:I.finish?j.FinishIcon:O.NextIcon,label:"finishing"===n?N.pgettext("runner#3|🩺 Status information","Submitting..."):I.finish?"error-outdated"===n&&e.onReload||"reloading"===n?N.pgettext("runner#1|🆗 Buttons","Reload"):"error"===n?N.pgettext("runner#1|🆗 Buttons","Retry"):N.pgettext("runner#1|🆗 Buttons","Submit"):N.pgettext("runner#1|🆗 Buttons","Next"),onClick:I.reload||I.next}),I.previous&&(0,o.jsx)(s.ButtonFabric,{styles:r.__assign(r.__assign({},B.buttons),{mode:"outline"}),tabIndex:W,disabled:"finishing"===n,icon:S.PreviousIcon,label:N.pgettext("runner#1|🆗 Buttons","Back"),onClick:I.previous})]}),I.pause&&(0,o.jsx)(s.ButtonFabric,{styles:r.__assign(r.__assign({},B.buttons),{mode:"outline"}),tabIndex:W,disabled:"finishing"===n,icon:P.PauseIcon,onClick:I.pause})]}),"paginated"===E&&B.showProgressbar&&(0,o.jsx)(d.Progressbar,{percentage:A,styles:B}),"paginated"===E&&B.showPageIndicators&&(0,o.jsx)(f.Pages,{pages:V,styles:B,disabled:"finishing"===n})]}),(0,o.jsx)(C.PauseBlock,{controller:D,l10n:N,styles:B,view:F}),("live"===F||"test"===F&&"empty"!==n)&&(0,o.jsx)(y.Banner,{l10n:N,styles:B})]})||L&&(0,o.jsx)(g.Epilogue,r.__assign({},L))||"live"!==F&&("empty"===n||"preview"===n)&&(0,o.jsx)(h.EmptyMessage,{l10n:N,styles:B,view:F})||"paused"===n&&(0,o.jsx)(b.PausedMessage,{l10n:N,styles:B,view:F,isPage:q})||(0,o.jsx)(v.ClosedMessage,{l10n:N,styles:B,view:F,isPage:q}),(0,o.jsx)(H,{})]})})}},8316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onLoad=t.detach=t.attach=void 0;var r=n(9849),o={},i=0;t.attach=function(e){for(;o[i];)i++;return e(),o[i]={resize:e,index:i}};t.detach=function(e){i=e.index,delete o[e.index]};t.onLoad=function(){(0,r.each)(o,(function(e){e&&e.resize()}))}},9873:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyEmail=void 0,t.verifyEmail=function(e){return e&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)||!1}},5397:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCache=void 0;var r=n(6540),o=n(9849);t.useCache=function(){var e=(0,r.useRef)();if(!e.current){var t={};e.current={fetch:function(e,n,r,o){var i=n.key,a=!n.hasChanged()&&t[i];return a&&a.status===r&&a.isPassed===n.isPassed&&a.tabIndex===o?a.buffer:(t[i]={buffer:e(),status:r,isPassed:n.isPassed,tabIndex:o}).buffer},purge:function(){(0,o.each)(t,(function(e,n){delete t[n]}),{keys:!0})}}}return e.current}},1919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClassicController=void 0;var r=n(1635),o=n(6540),i=n(8652),a=n(9849),l=n(6016),u=n(5397),s=n(7001),c=n(8412);t.useClassicController=function(e){var t,n,d,f,p=(0,i.useRunner)(e,{namespace:l.namespace,mode:"paginated"===(null===(t=e.styles)||void 0===t?void 0:t.mode)?"paginated":"continuous"===(null===(n=e.styles)||void 0===n?void 0:n.mode)?"continuous":"progressive",onPreview:function(t,n,r){"start"===t&&e.onScrollIntoView&&"block"===n&&r&&!e.onScrollIntoView(r)?O.current=r:"end"===t&&(O.current=void 0)},onRestart:function(){S.current&&S.current()},onDestroy:function(){var t;(null===(t=e.controller)||void 0===t?void 0:t.current)&&(e.controller.current=void 0)}}),h=(0,u.useCache)(),v=(0,o.useState)((function(){return e.license&&(0,a.verify)("@tripetto/runner-classic",e.license)||!1}))[0],b=(0,s.useStyles)(e.styles,v,e.removeBranding||!1,(function(e){return p.mode=e}),(function(){h.purge(),p.update()})),m=b[0],g=b[1],y=b[2],w=(0,i.useL10n)(e.l10n,e.onL10n,p,(function(){return h.purge()})),x=w[0],k=w[1],_=w[2],C=(0,o.useRef)(),S=(0,o.useRef)(),O=(0,o.useRef)(),j=(0,o.useRef)(),$=(0,o.useRef)(),P=(0,o.useRef)(!1),F=function(){return e.onPause?p.pause(e.onSnapshot("pause"),(function(t,n){var o=function(e,t){$.current=void 0,n(e,t)},i=function(e){var t=e();!t||(0,a.isBoolean)(t)?o((0,a.isBoolean)(t)&&!t?"failed":"succeeded",(function(){return i(e)})):t.then((function(){o("succeeded")})).catch((function(t){o("failed",(function(){return i(e)})),t&&console.log(t)}))};if((0,a.isFunction)(e.onPause)){var u=e.onPause;i((function(){return u(t,(e.l10nNamespace||a.L10n.Namespace.global).current,(e.l10nNamespace||a.L10n.Namespace.global).locale.identifier,l.namespace)}))}else if(e.onPause&&"email"===e.onPause.recipe){var s=e.onPause.onPause;$.current={recipe:"email",isCompleting:!1,complete:function(n){$.current=r.__assign(r.__assign({},$.current),{isCompleting:!0}),t.b?(0,a.set)(t.b,"d",n):(0,a.set)(t,"b",{d:n}),j.current=t,p.update(),i((function(){return s(n,t,(e.l10nNamespace||a.L10n.Namespace.global).current,(e.l10nNamespace||a.L10n.Namespace.global).locale.identifier,l.namespace)}))},cancel:function(){return o("canceled")},get emailAddress(){var t=j.current||e.snapshot,n=p.storyline&&(0,a.findLast)(p.storyline.all,(function(e){return!!(e.isPassed&&e.block instanceof c.EmailBlock)}));return t&&t.b&&t.b.d||n&&n.block instanceof c.EmailBlock&&n.block.emailSlot.isSealed&&n.block.emailSlot.value||""}}}else o("succeeded")})):p.pause(e.onSnapshot("pause"))},E={title:p.definition.name,view:p.view,preview:p.preview,storyline:p.storyline,start:p.start,restart:p.restart,reload:"error-outdated"===p.status&&e.onReload&&function(){return r.__awaiter(void 0,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:return P.current=!0,p.update(),[4,Promise.resolve(e.onReload())];case 1:return t=n.sent(),P.current=!1,p.reload(t),[2]}}))}))},pause:p.allowPause&&e.onPause&&F||void 0,pausing:$.current,status:P.current?"reloading":p.status,prologue:("stopped"===p.status||"prologue"===p.preview)&&p.prologue||void 0,epilogue:"finished"===p.status||"epilogue"===p.preview?p.epilogue||{}:void 0,page:(null===(f=null===(d=p.storyline)||void 0===d?void 0:d.activePage)||void 0===f?void 0:f.number)||0,resetPreview:p.resetPreview};return S.current=e.onRestart,(e.controller||e.onController)&&(C.current={get definition(){return p.definition},set definition(e){p.definition=e,_(p.definition&&p.definition.language)},get instance(){return p.instance},get fingerprint(){return p.fingerprint},get styles(){return m},set styles(e){y(e)},get l10n(){return x},set l10n(e){k(e)},get view(){return p.view},set view(e){p.view=e},get snapshot(){return p.snapshot(e.onSnapshot("snapshot"))},get isRunning(){return p.isRunning},get isFinishing(){return p.isFinishing},get isPausing(){return p.isPausing},get isLicensed(){return v},get allowStart(){return p.allowStart},get allowRestart(){return p.allowRestart},get allowPause(){return p.allowPause},get allowStop(){return p.allowStop},start:p.start,restart:p.restart,pause:F,stop:p.stop,doPreview:p.doPreview},e.controller&&(e.controller.current=C.current),e.onController&&e.onController(C)),(0,o.useEffect)((function(){O.current&&"preview"===p.view&&(0,a.scheduleAction)((function(){!O.current||"preview"===p.view&&e.onScrollIntoView&&!e.onScrollIntoView(O.current)||(O.current=void 0)}))})),[E,h,p.l10n,g,e.attachments,p.doAction]}},7683:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFocus=void 0;var r=n(6540),o=n(9849);t.useFocus=function(e){var t=(0,r.useState)(e.initialFocus||{}),n=t[0],i=t[1],a=(0,r.useRef)(),l=(0,r.useRef)(!0),u=(0,r.useRef)(),s=(0,r.useRef)(),c=(0,r.useRef)({});return u.current!==e.page&&(u.current=e.page,l.current=!0),(0,r.useEffect)((function(){if(l.current&&s.current){var t=c.current[s.current];if(t&&a.current){if(document.hasFocus()){var n=document.activeElement,r=n&&n.isEqualNode(a.current);e.gainFocus&&(r=r||!n||"BODY"===n.tagName),l.current=!1,r&&t.focus({preventScroll:!0})}delete c.current[s.current]}}})),[a,function(){return i({})},function(e){return n[e.key]},function(t,r,a){return function(){var u;r&&(l.current=!1),i((0,o.extendImmutable)(n,((u={})[t.key]=r,u))),r&&e.onFocus&&e.onFocus(),a&&n[t.key]!==r&&a()}},function(e){return function(t){t?(c.current[e.key]=t,s.current||(s.current=e.key)):(s.current===e.key&&(s.current=void 0),delete c.current[e.key])}},n]}},3106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=t.FrameConfig=void 0;var r=n(1635),o=n(4848),i=n(6540),a=n(961),l=n(3215);t.FrameConfig={shouldForwardProp:function(e){switch(e){case"children":case"frameRef":case"title":case"style":case"className":case"font":case"onTouch":return!0}return!1}};t.Frame=function(e){var t=e.frameRef||(0,i.useRef)(),n=(0,i.useState)(),u=n[0],s=n[1],c=(0,l.useFontLoader)(e.font,t,"sans-serif"),d=c[0],f=c[1];return(0,i.useEffect)((function(){var n=t.current,r=function(){var t,r,o;if(!u){var i=n.contentDocument;if(e.onTouch){var a=e.onTouch;null===(t=n.contentWindow)||void 0===t||t.addEventListener("mousedown",(function(){return a()})),null===(r=n.contentWindow)||void 0===r||r.addEventListener("touchstart",(function(){return a()})),null===(o=n.contentWindow)||void 0===o||o.addEventListener("wheel",(function(){return a()}))}i&&s(i)}};if(!u){var o=n.contentDocument;if(o&&"complete"===o.readyState)return r();n.addEventListener("load",r)}return function(){n.removeEventListener("load",r)}}),[]),(0,o.jsx)("iframe",{ref:t,title:e.title,style:r.__assign(r.__assign({},e.style),{opacity:d?"0":void 0,boxShadow:d?"none":void 0}),className:e.className,children:u&&!d&&(0,a.createPortal)("function"==typeof e.children?e.children(u,f):e.children,u.body)})}},9595:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClassicRunner=void 0;var r=n(1635),o=n(4848),i=n(6540),a=n(9849),l=n(8652),u=n(8227),s=n(369),c=n(5584),d=n(9454),f=n(404),p=n(1075),h=n(1004),v=n(9077),b=n(1919),m=n(7663),g=n(7683);t.useClassicRunner=function(e){var t,n,y,w=(0,b.useClassicController)(r.__assign(r.__assign({},e),{onSnapshot:function(){return{b:M,d:e.snapshot&&e.snapshot.b&&e.snapshot.b.d,e:a.DateTime.now}},onRestart:function(){return R()},onScrollIntoView:function(e){var t,n=(0,a.findFirst)(null===(t=x.storyline)||void 0===t?void 0:t.all,(function(t){return t.node.id===e}));if(n){var r=z.current[n.key];if(r)return r.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),!0}return!1}})),x=w[0],k=w[1],_=w[2],C=w[3],S=w[4],O=w[5],j=(0,m.useOverlay)(),$=j[0],P=j[1],F=(0,g.useFocus)({page:x.page,gainFocus:"live"===x.view&&("page"===e.display||C.autoFocus),initialFocus:e.snapshot&&e.snapshot.b&&e.snapshot.b.b}),E=F[0],R=F[1],T=F[2],N=F[3],B=F[4],M=F[5],z=(0,i.useRef)({}),I=(0,i.useRef)([]),D=(0,i.useRef)({}),A=(null===(t=x.storyline)||void 0===t?void 0:t.mode)||"progressive",V=x.status,L=x.view,U="live"!==L||"page"===e.display,q=x.storyline&&"preview"!==L&&x.storyline.isEvaluating||!1,W={},H=0,Y=0,K=x.storyline&&!x.storyline.isFailed&&!x.storyline.isAtFinish&&!x.storyline.isFinishable&&!(0,a.findFirst)(x.storyline.all,(function(e){return e.node.slots.count>0&&H++,H>1}))&&1===H,X="epilogue"!==x.preview&&x.storyline&&!x.storyline.isEmpty&&(0,o.jsx)(d.Blocks,{$styles:C,$view:L,children:x.storyline.map((function(t,n){return(0,o.jsx)(c.Page,{page:n,view:L,l10n:_,styles:C,title:t.section.props.name,children:t.nodes.map((function(t){var n=Y++,r=n>0&&n-1<I.current.length&&I.current[n-1]||void 0,i=n<I.current.length&&I.current[n]||void 0;return(!i||i.node!==t.key||r&&r.last!==i.first)&&(i={node:t.key,first:(null==r?void 0:r.last)||0,last:(null==r?void 0:r.last)||0},I.current.splice(n,I.current.length-n,i)),W[t.key]=t,k.fetch((function(){var n,r,c,b;i.last=i.first;var m=e.onEdit&&"live"!==L&&t.id&&function(){return e.onEdit("block",t.id)}||void 0,g=(null===(n=t.block)||void 0===n?void 0:n.render)&&(null===(r=t.block)||void 0===r?void 0:r.render({l10n:_,styles:C,overlay:P,view:L,attachments:S,get id(){var e;return(null===(e=t.block)||void 0===e?void 0:e.key())||""},get name(){var e,n;return t.props.name&&(0,a.castToBoolean)(t.props.nameVisible,!0)&&(0,o.jsxs)(p.BlockName,{htmlFor:null===(e=t.block)||void 0===e?void 0:e.key(),onClick:m,$hasDescription:!!t.props.description,children:[C.showEnumerators&&t.enumerator&&"".concat(t.enumerator,". "),(0,l.markdownifyToJSX)(t.props.name,t.context),!C.hideRequiredIndicator&&(null===(n=t.block)||void 0===n?void 0:n.required)&&!t.block.hideRequiredIndicatorFromName&&(0,o.jsx)(u.RequiredIndicatorFabric,{$errorColor:C.inputs.errorColor})]})||void 0},get description(){return t.props.description&&(0,o.jsx)(h.BlockDescription,{onClick:m,children:(0,l.markdownifyToJSX)(t.props.description,t.context)})||void 0},get explanation(){return t.props.explanation&&(0,l.markdownifyToJSX)(t.props.explanation,t.context)||void 0},get placeholder(){return(0,a.markdownifyToString)(t.props.placeholder||"",t.context)||""},get label(){return(0,l.markdownifyToJSX)(t.props.placeholder||t.props.name||"...",t.context,!1)},get tabIndex(){return++i.last},get isFailed(){return"preview"!==L&&t.isFailed&&void 0!==T(t)||!1},get ariaDescribedBy(){var e;return t.props.explanation&&(null===(e=t.block)||void 0===e?void 0:e.key("explanation"))||void 0},get ariaDescription(){var e;return t.props.explanation&&(0,o.jsx)(v.BlockExplanation,{id:null===(e=t.block)||void 0===e?void 0:e.key("explanation"),onClick:m,children:(0,l.markdownifyToJSX)(t.props.explanation,t.context)})||void 0},isPage:U,focus:N(t,!0,(function(){return O("focus",t)})),blur:N(t,!1,(function(){return O("blur",t)})),autoFocus:B(t),markdownifyToJSX:function(e,n){return(0,l.markdownifyToJSX)(e,t.context,n)},markdownifyToURL:function(e){return(0,a.markdownifyToURL)(e,t.context)},markdownifyToImage:function(e){return(0,a.markdownifyToURL)(e,t.context,void 0,["image/jpeg","image/png","image/svg","image/gif"])||"data:image/svg+xml;base64,".concat((0,s.warningIcon)(C.color||"#000"))},markdownifyToString:function(e,n){return(0,a.markdownifyToString)(e,t.context,void 0,n)},onSubmit:K&&function(){if(x.storyline){var e=0;(0,a.each)(x.storyline.all,(function(t){t.node.slots.count>0&&e++})),1!==e||x.storyline.isFailed||x.storyline.isAtFinish&&!x.storyline.isFinishable||x.storyline.stepForward()}}||void 0}));return(0,o.jsx)(d.Block,{ref:function(e){z.current[t.key]=e||void 0},"data-block":(null===(c=t.block)||void 0===c?void 0:c.type.identifier)||void 0,$marginAroundBlock:!g||(null===(b=t.block)||void 0===b?void 0:b.marginAroundBlock),$locked:"pausing"===V,children:g||(0,o.jsxs)(o.Fragment,{children:[(0,a.isString)(t.props.name)&&(0,a.castToBoolean)(t.props.nameVisible,!0)&&(0,o.jsx)(f.BlockTitle,{onClick:m,children:(0,l.markdownifyToJSX)(t.props.name,t.context)}),t.props.description&&(0,o.jsx)(h.BlockDescription,{onClick:m,children:(0,l.markdownifyToJSX)(t.props.description,t.context)})]})},t.key)}),t,V,i.first)}))},n)}))});return e.onAction&&((0,a.each)(D.current,(function(e){e&&!W[e.key]&&(D.current[e.key]=void 0,O("unstage",e))})),(0,a.each)(W,(function(e){D.current[e.key]||(D.current[e.key]=e,O("stage",e))}))),{frameRef:E,status:V,view:L,isPage:U,mode:A,title:x.title,l10n:_,styles:C,prologue:x.prologue&&r.__assign(r.__assign({},x.prologue),{l10n:_,styles:C,view:L,isPage:U,start:"prologue"===x.preview?x.resetPreview:x.start,edit:"live"!==L&&e.onEdit&&function(){return e.onEdit("prologue")}||void 0}),blocks:X,buttons:"preview"!==L&&"pausing"!==V&&x.storyline&&{previous:!x.storyline.isAtStart&&function(){return x.storyline.stepBackward()}||void 0,next:!x.storyline.isFailed&&!(x.storyline.isAtFinish&&!x.storyline.isFinishable)&&function(){return x.storyline.stepForward()}||void 0,finish:x.storyline.isFinishable&&function(){return x.storyline.finish()}||void 0,finishable:"live"!==L||e.onSubmit||!(x.storyline&&x.storyline.hasDataCollected),pause:x.pause,reload:x.reload}||void 0,epilogue:x.epilogue&&r.__assign(r.__assign({},x.epilogue),{l10n:_,styles:C,view:L,isPage:U,repeat:x.restart,edit:"live"!==L&&e.onEdit&&function(){var t;return e.onEdit("epilogue",null===(t=x.epilogue)||void 0===t?void 0:t.branch)}||void 0}),pausing:x.pausing,isEvaluating:q,progressPercentage:(null===(n=x.storyline)||void 0===n?void 0:n.percentage)||0,pages:(null===(y=x.storyline)||void 0===y?void 0:y.pages)||[],tabIndex:I.current.length>0?I.current[I.current.length-1].last:0,OverlayProvider:$}}},7001:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useStyles=void 0;var r=n(1635),o=n(6540),i=n(7624),a=n(9849),l=n(904),u=r.__importDefault(n(8937)),s=function(e,t,n){var o,s,c,d,f,p,h,v,b,m,g,y,w=(0,u.default)(e.background&&e.background.color||"transparent"),x=(0,u.default)((0,i.color)(e.color||(0,i.color)(w,(function(e){return e.makeUnclear("#fff").makeBlackOrWhite()})),(function(e){return e.makeUnclear("#000")})));return r.__assign(r.__assign({},e),{background:{color:w,url:e.background&&e.background.url&&(0,u.default)(e.background.url,{quotes:"double"})||void 0,opacity:(null===(o=e.background)||void 0===o?void 0:o.color)&&(null===(s=e.background)||void 0===s?void 0:s.url)?a.Num.range(.01*(0,a.castToNumber)(null===(c=e.background)||void 0===c?void 0:c.opacity,100),0,1):1,positioning:(0,u.default)(e.background&&e.background.positioning||"auto")},font:{family:(0,u.default)(e.font&&e.font.family||"sans-serif"),size:e.font&&e.font.size&&a.Num.range((0,a.castToNumber)(e.font.size,l.SIZE),8,30)||l.SIZE,sizeSmall:e.font&&e.font.sizeSmall&&a.Num.range((0,a.castToNumber)(e.font.sizeSmall,l.SIZE),8,30)||l.SIZE,color:x},inputs:{backgroundColor:(0,u.default)(e.inputs&&e.inputs.backgroundColor||"transparent"),borderColor:(0,u.default)(e.inputs&&e.inputs.borderColor||x),borderSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(d=e.inputs)||void 0===d?void 0:d.roundness,textColor:(0,u.default)(e.inputs&&e.inputs.textColor||x),errorColor:(0,u.default)(e.inputs&&e.inputs.errorColor||"red"),scale:1.62},checkboxes:{backgroundColor:(0,u.default)(e.inputs&&e.inputs.backgroundColor||"transparent"),borderColor:(0,u.default)(e.inputs&&e.inputs.borderColor||x),borderSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(f=e.inputs)||void 0===f?void 0:f.roundness,textColor:x,errorColor:(0,u.default)(e.inputs&&e.inputs.errorColor||"red"),scale:1,hideRequiredIndicator:e.hideRequiredIndicator||!1},radiobuttons:{backgroundColor:(0,u.default)(e.inputs&&e.inputs.backgroundColor||"transparent"),borderColor:(0,u.default)(e.inputs&&e.inputs.borderColor||x),borderSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,textColor:x,scale:1},matrix:{backgroundColor:(0,u.default)(e.inputs&&e.inputs.backgroundColor||"transparent"),borderColor:(0,u.default)(e.inputs&&e.inputs.borderColor||x),borderSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,textColor:x,errorColor:(0,u.default)(e.inputs&&e.inputs.errorColor||"red"),scale:1,hideRequiredIndicator:e.hideRequiredIndicator||!1},yesNo:{yesColor:(0,u.default)(e.inputs&&e.inputs.agreeColor||"green"),noColor:(0,u.default)(e.inputs&&e.inputs.declineColor||"red"),alignment:"horizontal",outlineSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(p=e.inputs)||void 0===p?void 0:p.roundness,scale:1.62,margin:8},rating:{color:(0,u.default)(e.inputs&&e.inputs.selectionColor||x),scale:2},scale:{color:(0,u.default)(e.inputs&&e.inputs.selectionColor||x),outlineSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(h=e.inputs)||void 0===h?void 0:h.roundness,scale:1.62,margin:8,labelColor:x},multipleChoice:{color:(0,u.default)(e.inputs&&e.inputs.selectionColor||x),outlineSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(v=e.inputs)||void 0===v?void 0:v.roundness,scale:1.62,margin:8},pictureChoice:{color:(0,u.default)(e.inputs&&e.inputs.selectionColor||x),outlineSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(b=e.inputs)||void 0===b?void 0:b.roundness,scale:1.62,margin:8},fileUpload:{backgroundColor:(0,u.default)(e.inputs&&e.inputs.backgroundColor||"transparent"),borderColor:(0,u.default)(e.inputs&&e.inputs.borderColor||x),borderSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(m=e.inputs)||void 0===m?void 0:m.roundness,textColor:(0,u.default)(e.inputs&&e.inputs.textColor||x),errorColor:(0,u.default)(e.inputs&&e.inputs.errorColor||"red"),scale:1},buttons:{baseColor:(0,u.default)(e.buttons&&e.buttons.baseColor||x),outlineSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,roundness:null===(g=e.buttons)||void 0===g?void 0:g.roundness,mode:e.buttons&&"outline"===e.buttons.mode?"outline":"fill",textColor:e.buttons&&e.buttons.textColor&&(0,u.default)(e.buttons.textColor)||void 0,scale:1.62},finishButton:{baseColor:(0,u.default)(e.buttons&&(e.buttons.finishColor||e.buttons.baseColor)||"green"),roundness:null===(y=e.buttons)||void 0===y?void 0:y.roundness,outlineSize:e.inputs&&(0,a.castToNumber)(e.inputs.borderSize,1)||1,textColor:e.buttons&&!e.buttons.finishColor&&e.buttons.textColor&&(0,u.default)(e.buttons.textColor)||void 0,mode:"fill",scale:1.62},noBranding:t&&(n||e.noBranding)||!1})};t.useStyles=function(e,t,n,r,i){var a=(0,o.useRef)(e||{}),l=(0,o.useRef)();return l.current||(l.current=s(a.current,t,n)),[a.current,l.current,function(e){a.current=e,l.current=s(e,t,n),r("paginated"===e.mode?"paginated":"continuous"===e.mode?"continuous":"progressive"),i()}]}},1440:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TripettoClassic=void 0;var r=n(1635),o=r.__importStar(n(1750));t.TripettoClassic=o,r.__exportStar(n(1750),t),t.default=o},1750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyframes=t.css=t.styled=t.YesNoFabric=t.URLFabric=t.TextareaFabric=t.TextFabric=t.ScaleFabric=t.RequiredIndicatorFabric=t.RatingFabric=t.RadiobuttonsFabric=t.PictureChoiceFabric=t.PhoneNumberFabric=t.PasswordFabric=t.NumberFabric=t.MultipleChoiceFabric=t.MultiSelectFabric=t.MatrixFabric=t.InputFabric=t.FileThumbnailFabric=t.FileFabric=t.EmailFabric=t.DropdownFabric=t.DateTimeFabric=t.CheckboxesFabric=t.CheckboxFabric=t.ButtonFabric=t.color=t.namespace=t.ClassicRunner=t.run=t.ClassicUI=void 0,n(4732),n(6125);var r=n(1484);Object.defineProperty(t,"ClassicUI",{enumerable:!0,get:function(){return r.ClassicUI}});var o=n(1399);Object.defineProperty(t,"run",{enumerable:!0,get:function(){return o.run}}),Object.defineProperty(t,"ClassicRunner",{enumerable:!0,get:function(){return o.ClassicRunner}});var i=n(6016);Object.defineProperty(t,"namespace",{enumerable:!0,get:function(){return i.namespace}}),n(4776);var a=n(7624);Object.defineProperty(t,"color",{enumerable:!0,get:function(){return a.color}});var l=n(6494);Object.defineProperty(t,"ButtonFabric",{enumerable:!0,get:function(){return l.ButtonFabric}});var u=n(6627);Object.defineProperty(t,"CheckboxFabric",{enumerable:!0,get:function(){return u.CheckboxFabric}});var s=n(7827);Object.defineProperty(t,"CheckboxesFabric",{enumerable:!0,get:function(){return s.CheckboxesFabric}});var c=n(9267);Object.defineProperty(t,"DateTimeFabric",{enumerable:!0,get:function(){return c.DateTimeFabric}});var d=n(4335);Object.defineProperty(t,"DropdownFabric",{enumerable:!0,get:function(){return d.DropdownFabric}});var f=n(2466);Object.defineProperty(t,"EmailFabric",{enumerable:!0,get:function(){return f.EmailFabric}});var p=n(2076);Object.defineProperty(t,"FileFabric",{enumerable:!0,get:function(){return p.FileFabric}}),Object.defineProperty(t,"FileThumbnailFabric",{enumerable:!0,get:function(){return p.FileThumbnailFabric}});var h=n(3162);Object.defineProperty(t,"InputFabric",{enumerable:!0,get:function(){return h.InputFabric}});var v=n(8899);Object.defineProperty(t,"MatrixFabric",{enumerable:!0,get:function(){return v.MatrixFabric}});var b=n(4774);Object.defineProperty(t,"MultiSelectFabric",{enumerable:!0,get:function(){return b.MultiSelectFabric}});var m=n(7062);Object.defineProperty(t,"MultipleChoiceFabric",{enumerable:!0,get:function(){return m.MultipleChoiceFabric}});var g=n(3555);Object.defineProperty(t,"NumberFabric",{enumerable:!0,get:function(){return g.NumberFabric}});var y=n(9227);Object.defineProperty(t,"PasswordFabric",{enumerable:!0,get:function(){return y.PasswordFabric}});var w=n(3792);Object.defineProperty(t,"PhoneNumberFabric",{enumerable:!0,get:function(){return w.PhoneNumberFabric}});var x=n(2316);Object.defineProperty(t,"PictureChoiceFabric",{enumerable:!0,get:function(){return x.PictureChoiceFabric}});var k=n(8630);Object.defineProperty(t,"RadiobuttonsFabric",{enumerable:!0,get:function(){return k.RadiobuttonsFabric}});var _=n(6175);Object.defineProperty(t,"RatingFabric",{enumerable:!0,get:function(){return _.RatingFabric}});var C=n(8227);Object.defineProperty(t,"RequiredIndicatorFabric",{enumerable:!0,get:function(){return C.RequiredIndicatorFabric}});var S=n(6312);Object.defineProperty(t,"ScaleFabric",{enumerable:!0,get:function(){return S.ScaleFabric}});var O=n(7209);Object.defineProperty(t,"TextFabric",{enumerable:!0,get:function(){return O.TextFabric}});var j=n(168);Object.defineProperty(t,"TextareaFabric",{enumerable:!0,get:function(){return j.TextareaFabric}});var $=n(223);Object.defineProperty(t,"URLFabric",{enumerable:!0,get:function(){return $.URLFabric}});var P=n(9699);Object.defineProperty(t,"YesNoFabric",{enumerable:!0,get:function(){return P.YesNoFabric}});var F=n(780);Object.defineProperty(t,"styled",{enumerable:!0,get:function(){return F.styled}});var E=n(780);Object.defineProperty(t,"css",{enumerable:!0,get:function(){return E.css}}),Object.defineProperty(t,"keyframes",{enumerable:!0,get:function(){return E.keyframes}})},6016:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namespace=void 0,t.namespace="".concat("@tripetto/runner-classic","@").concat("7.0.1")},6125:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9849),o=n(6016);(0,r.mountNamespace)(o.namespace)},4776:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,n(9849).unmountNamespace)()},4732:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(761),n(8318)},1399:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.run=t.ClassicRunner=void 0;var r=n(1635),o=n(4848),i=r.__importStar(n(961)),a=n(5338),l=n(6540),u=n(9849),s=n(1484),c=n(6016),d=0;t.ClassicRunner=function(e){var t,n,i,a,f,p=(0,l.useRef)(),h=(0,l.useRef)(),v=(0,l.useRef)(),b=(0,l.useRef)(),m=(0,l.useRef)(),g={sections:[],builder:{name:"",version:""}},y=(0,l.useRef)(),w=(0,l.useRef)(),x=(0,l.useRef)(),k=(0,l.useRef)(),_="test"!==e.view&&"preview"!==e.view,C=(0,l.useRef)(),S=e.controller||C,O=(0,l.useState)({})[1],j=(0,l.useRef)(),$=(0,l.useRef)(),P=function(e){e(),"mounted"===j.current?$.current({}):j.current="dirty"};$.current=O,w.current||(w.current=!0,k.current=!!e.builder,(0,u.isPromise)(e.definition)?(p.current=!1,null===(t=e.definition.then((function(e){return P((function(){return p.current=e||g}))})))||void 0===t||t.catch((function(){return P((function(){return p.current=g}))}))):p.current=e.definition||g,(0,u.isPromise)(e.snapshot)?(h.current=!1,null===(n=e.snapshot.then((function(e){return P((function(){return h.current=e}))})))||void 0===n||n.catch((function(){return P((function(){return h.current=void 0}))}))):h.current=e.snapshot||void 0,(0,u.isPromise)(e.styles)?(v.current=!1,null===(i=e.styles.then((function(e){return P((function(){return v.current=e}))})))||void 0===i||i.catch((function(){return P((function(){return v.current=void 0}))}))):v.current=e.styles||void 0,(0,u.isPromise)(e.l10n)?(b.current=!1,null===(a=e.l10n.then((function(e){return P((function(){return b.current=e}))})))||void 0===a||a.catch((function(){return P((function(){return b.current=void 0}))}))):b.current=e.l10n||void 0,(0,u.isPromise)(e.license)?(m.current=!1,null===(f=e.license.then((function(e){return P((function(){return m.current=e}))})))||void 0===f||f.catch((function(){return P((function(){return m.current=void 0}))}))):m.current=e.license||void 0);var F=(0,l.useRef)(),E=(0,l.useRef)({locales:{},translations:{}}),R=function(t){return r.__awaiter(void 0,void 0,void 0,(function(){var n,o,i,a,l,s,c,d;return r.__generator(this,(function(r){switch(r.label){case 0:return n=(null===(d=S.current)||void 0===d?void 0:d.definition)||p.current,F.current.reset("auto"!==t.language&&t.language||n&&n.language||e.language||navigator.language),e.translations||e.locale?(o=t.locale||"auto",i=E.current.locales[o]?E.current.locales[o].locale:(0,u.isFunction)(e.locale)?e.locale(o):e.locale,a=E.current.translations[F.current.current]?E.current.translations[F.current.current].translation:((0,u.isFunction)(e.translations)?e.translations(F.current.current,"@tripetto/runner-classic","7.0.1"):e.translations)||void 0,[4,Promise.all([Promise.resolve(i),Promise.resolve(a)])]):[3,2];case 1:l=r.sent(),s=l[0],c=l[1],E.current.locales[o]={locale:s},E.current.translations[F.current.current]={translation:c},s&&F.current.locale.load(s),c&&F.current.load(c,!1),r.label=2;case 2:return t.translations&&F.current.load(t.translations,!1,"overwrite"),[2]}}))}))},T=(0,l.useRef)({data:void 0,save:function(){if(S.current&&localStorage){var e="".concat("@tripetto/runner-classic","-").concat(S.current.fingerprint),t=S.current.snapshot;t?localStorage.setItem(e,JSON.stringify(t)):localStorage.removeItem(e)}}});return F.current||!1===p.current||!1===b.current||(F.current=u.L10n.Namespace.create("".concat(c.namespace,":").concat(d++)),R(b.current||{}).then((function(){return P((function(){return y.current=!0}))})).catch((function(){return P((function(){return y.current=!0}))}))),e.persistent&&_&&!1!==p.current&&"undefined"!=typeof window&&localStorage&&(T.current.data=JSON.parse(localStorage.getItem("".concat("@tripetto/runner-classic","-").concat((0,u.fingerprint)(p.current||g)))||"null")||void 0),(0,l.useEffect)((function(){var t="dirty"===j.current,n=e.persistent&&_&&"undefined"!=typeof window&&localStorage,r=0;return j.current="mounted",n&&window.addEventListener("unload",T.current.save),e.builder&&!x.current&&new Promise((function(t){var n=function(){var o,i;r=0,(null===(o=e.builder)||void 0===o?void 0:o.current)?t(null===(i=e.builder)||void 0===i?void 0:i.current):r=requestAnimationFrame(n)};n()})).then((function(e){x.current||(x.current=e,P((function(){p.current=e.definition,k.current=!1})),e.hook("OnChange","synchronous",(function(e){S.current&&(S.current.definition=e.definition)})),e.hook("OnEdit","synchronous",(function(e){var t;null===(t=S.current)||void 0===t||t.doPreview(e.data)})))})),t&&O({}),function(){n&&window.removeEventListener("unload",T.current.save),0!==r&&cancelAnimationFrame(r)}})),S.current&&(e.view&&(S.current.view=e.view),(0,u.isPromise)(e.definition)||!e.definition||(0,u.compare)(e.definition,S.current.definition,!0)||(S.current.definition=p.current=e.definition),(0,u.isPromise)(e.styles)||!e.styles||(0,u.compare)(e.styles,S.current.styles,!0)||(S.current.styles=v.current=e.styles),(0,u.isPromise)(e.l10n)||!e.l10n||(0,u.compare)(e.l10n,S.current.l10n,!0)||(S.current.l10n=b.current=e.l10n)),(0,o.jsx)(o.Fragment,{children:!y.current||!1===p.current||!1===h.current||!1===v.current||!1===m.current||!1===b.current||k.current?e.loader:(0,o.jsx)(s.ClassicUI,r.__assign({},e,{controller:S,definition:p.current||g,snapshot:h.current||T.current.data,styles:v.current,license:m.current,l10nNamespace:F.current,l10n:b.current,onL10n:R,onEdit:e.builder?function(t,n){var r;if(null===(r=e.builder)||void 0===r?void 0:r.current)switch(t){case"prologue":e.builder.current.edit("prologue");break;case"epilogue":e.builder.current.edit("epilogue",n);break;case"block":n&&e.builder.current.edit("node",n)}e.onEdit&&e.onEdit(t,n)}:e.onEdit}))})};t.run=function(e){return new Promise((function(n){var l=e.element||document.body.appendChild(document.createElement("div")),u=("function"==typeof a.createRoot?function(e){var t=(0,a.createRoot)(l);return t.render(e),function(){return t.unmount()}}:function(e){return i.render(e,l),function(){return i.unmountComponentAtNode(l)}})((0,o.jsx)(t.ClassicRunner,r.__assign({},e,{display:e.display||document.body.isEqualNode(l)&&"page"||void 0,builder:e.builder&&{current:e.builder}||void 0,onController:function(e){n({get definition(){return e.current.definition},set definition(t){e.current.definition=t},get instance(){return e.current.instance},get fingerprint(){return e.current.fingerprint},get styles(){return e.current.styles},set styles(t){e.current.styles=t},get l10n(){return e.current.l10n},set l10n(t){e.current.l10n=t},get view(){return e.current.view},set view(t){e.current.view=t},get snapshot(){return e.current.snapshot},get isRunning(){return e.current.isRunning},get isFinishing(){return e.current.isFinishing},get isPausing(){return e.current.isPausing},get isLicensed(){return e.current.isLicensed},get allowStart(){return e.current.allowStart},get allowRestart(){return e.current.allowRestart},get allowPause(){return e.current.allowPause},get allowStop(){return e.current.allowStop},start:function(){return e.current.start()},restart:function(){return e.current.restart()},pause:function(){return e.current.pause()},stop:function(){return e.current.stop()},doPreview:function(t){return e.current.doPreview(t)},destroy:function(){u()}})}})))}))}},8827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockButtons=void 0;var r,o=n(1635),i=n(780),a=n(904);t.BlockButtons=i.styled.nav(r||(r=o.__makeTemplateObject(["\n    margin-top: 0 !important;\n    min-height: ","em;\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: ",";\n\n    > * {\n        margin-top: ","em !important;\n        margin-left: ","em;\n\n        &:first-child {\n            margin-left: 0;\n        }\n    }\n"],["\n    margin-top: 0 !important;\n    min-height: ","em;\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: ",";\n\n    > * {\n        margin-top: ","em !important;\n        margin-left: ","em;\n\n        &:first-child {\n            margin-left: 0;\n        }\n    }\n"])),40/a.SIZE,(function(e){return e.$alignment||"left"}),16/a.SIZE,16/a.SIZE)},1656:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockCaption=void 0;var r,o=n(1635),i=n(780);t.BlockCaption=i.styled.h3(r||(r=o.__makeTemplateObject(["\n    margin: 0;\n    padding: 0;\n    font-size: 1.5em;\n    line-height: 1.1em;\n    text-align: ",";\n"],["\n    margin: 0;\n    padding: 0;\n    font-size: 1.5em;\n    line-height: 1.1em;\n    text-align: ",";\n"])),(function(e){return e.$alignment||"left"}))},1004:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockDescription=void 0;var r,o=n(1635),i=n(780);t.BlockDescription=i.styled.p(r||(r=o.__makeTemplateObject(["\n    margin: 0;\n    padding: 0;\n    font-size: 1em;\n    text-align: ",";\n"],["\n    margin: 0;\n    padding: 0;\n    font-size: 1em;\n    text-align: ",";\n"])),(function(e){return e.$alignment||"left"}))},9077:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockExplanation=void 0;var r,o=n(1635),i=n(780);t.BlockExplanation=i.styled.small(r||(r=o.__makeTemplateObject(["\n    display: block;\n    margin: 0;\n    padding: 0;\n    font-size: 0.8em;\n"],["\n    display: block;\n    margin: 0;\n    padding: 0;\n    font-size: 0.8em;\n"])))},6357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockImage=void 0;var r,o,i=n(1635),a=n(4848),l=n(780),u=n(8316),s=l.styled.div(r||(r=i.__makeTemplateObject(["\n    width: 100%;\n    display: flex;\n    justify-content: ",";\n"],["\n    width: 100%;\n    display: flex;\n    justify-content: ",";\n"])),(function(e){return e.$aligment})),c=l.styled.img(o||(o=i.__makeTemplateObject(["\n    margin: 0;\n    padding: 0;\n    border: none;\n    max-width: 100%;\n    max-height: ",";\n"],["\n    margin: 0;\n    padding: 0;\n    border: none;\n    max-width: 100%;\n    max-height: ",";\n"])),(function(e){return e.$isPage&&"50vh"}));t.BlockImage=function(e){return(0,a.jsx)(s,{onClick:e.onClick,$aligment:e.alignment||"left",children:(0,a.jsx)(c,{src:e.src,width:e.width,onLoad:u.onLoad,$isPage:e.isPage})})}},9454:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.Blocks=void 0;var r,o,i,a=n(1635),l=n(780),u=n(904);t.Blocks=l.styled.div(o||(o=a.__makeTemplateObject(["\n    display: ",";\n    min-height: ",";\n    color: ",";\n    justify-content: ",";\n    align-items: ",";\n    font-size: ",";\n    line-height: ",";\n    flex-direction: column;\n\n    @media (",": ","px) {\n        min-height: ",";\n    }\n\n    ","\n"],["\n    display: ",";\n    min-height: ",";\n    color: ",";\n    justify-content: ",";\n    align-items: ",";\n    font-size: ",";\n    line-height: ",";\n    flex-direction: column;\n\n    @media (",": ","px) {\n        min-height: ",";\n    }\n\n    ","\n"])),(function(e){return e.$center?"flex":"block"}),(function(e){return e.$center&&"calc(100% - ".concat(2*u.MARGIN,"px)")}),(function(e){return e.$styles.font.color}),(function(e){return e.$center&&"center"}),(function(e){return e.$center&&"center"}),(function(e){return e.$size&&"".concat(e.$size,"px")||void 0}),(function(e){return e.$size?"1.5em":void 0}),(function(e){return"live"===e.$view?"max-device-width":"max-width"}),u.SMALL_SCREEN_SIZE,(function(e){return e.$center&&"calc(100% - ".concat(2*u.SMALL_SCREEN_MARGIN,"px)")}),(function(e){return e.$center&&(0,l.css)(r||(r=a.__makeTemplateObject(["\n            > div {\n                display: flex;\n                flex-direction: column;\n                align-items: center;\n                width: 100%;\n            }\n        "],["\n            > div {\n                display: flex;\n                flex-direction: column;\n                align-items: center;\n                width: 100%;\n            }\n        "])))})),t.Block=l.styled.div(i||(i=a.__makeTemplateObject(["\n    position: relative;\n    margin-top: ","em;\n    margin-bottom: ",";\n    opacity: ",";\n    pointer-events: ",";\n    max-width: 100%;\n\n    &:first-child {\n        margin-top: 0;\n    }\n\n    &:last-child {\n        margin-bottom: 0;\n    }\n\n    > * {\n        margin-top: ","em !important;\n\n        &:first-child {\n            margin-top: 0 !important;\n        }\n    }\n"],["\n    position: relative;\n    margin-top: ","em;\n    margin-bottom: ",";\n    opacity: ",";\n    pointer-events: ",";\n    max-width: 100%;\n\n    &:first-child {\n        margin-top: 0;\n    }\n\n    &:last-child {\n        margin-bottom: 0;\n    }\n\n    > * {\n        margin-top: ","em !important;\n\n        &:first-child {\n            margin-top: 0 !important;\n        }\n    }\n"])),(function(e){return(e.$marginAroundBlock?u.MARGIN:u.SPACING)/u.SIZE}),(function(e){return e.$marginAroundBlock&&"".concat(u.MARGIN/u.SIZE,"em")}),(function(e){return e.$locked?.2:void 0}),(function(e){return e.$locked?"none":void 0}),8/u.SIZE)},1075:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockName=void 0;var r,o=n(1635),i=n(780);t.BlockName=i.styled.label(r||(r=o.__makeTemplateObject(["\n    font-weight: ",";\n"],["\n    font-weight: ",";\n"])),(function(e){return e.$hasDescription&&"bold"}))},352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PauseBlock=void 0;var r=n(1635),o=n(4848),i=n(6540),a=n(9873),l=n(9454),u=n(404),s=n(1004),c=n(2466),d=n(6494),f=n(7289),p=n(5074),h=n(903),v=function(e){var t,n=(0,i.useState)((null===(t=e.controller)||void 0===t?void 0:t.emailAddress)||""),v=n[0],b=n[1],m=(0,i.useState)(!1),g=m[0],y=m[1],w=(0,a.verifyEmail)(v);return(0,o.jsx)(l.Blocks,{$styles:e.styles,$view:e.view,children:(0,o.jsxs)(l.Block,{$marginAroundBlock:!0,children:[(0,o.jsx)(u.BlockTitle,{children:e.l10n.pgettext("runner#8|⏸ Pause conversation","Pause this conversation")}),(0,o.jsx)(s.BlockDescription,{children:e.l10n.pgettext("runner#8|⏸ Pause conversation","Receive a link by email to resume later on any device, right where you left off.")}),(0,o.jsx)(c.EmailFabric,{styles:e.styles.inputs,required:!0,value:v,placeholder:e.l10n.pgettext("runner#8|⏸ Pause conversation","Your email address..."),error:g&&!w,disabled:e.controller.isCompleting,onChange:b,onFocus:function(){return y(!0)},onAutoFocus:function(e){e&&e.focus()},onSubmit:function(){return w&&e.controller.complete(v)}}),(0,o.jsxs)(h.Buttons,{children:[(0,o.jsx)(d.ButtonFabric,{styles:e.styles.buttons,icon:f.MailIcon,label:e.controller&&e.controller.isCompleting?e.l10n.pgettext("runner#3|🩺 Status information","Pausing..."):e.l10n.pgettext("runner#8|⏸ Pause conversation","Receive resume link"),disabled:e.controller.isCompleting||!w,onClick:function(){return e.controller.complete(v)}}),(0,o.jsx)(d.ButtonFabric,{styles:r.__assign(r.__assign({},e.styles.buttons),{mode:"outline"}),icon:p.CancelIcon,disabled:e.controller.isCompleting,label:e.l10n.pgettext("runner#8|⏸ Pause conversation","Cancel pausing"),onClick:function(){return e.controller.cancel()}})]})]})})};t.PauseBlock=function(e){return e.controller&&(0,o.jsx)(v,{controller:e.controller,l10n:e.l10n,styles:e.styles,view:e.view})||(0,o.jsx)(o.Fragment,{})}},404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockTitle=void 0;var r,o=n(1635),i=n(780);t.BlockTitle=i.styled.h2(r||(r=o.__makeTemplateObject(["\n    margin: 0;\n    padding: 0;\n    font-size: 2em;\n    line-height: 1.1em;\n    text-align: ",";\n"],["\n    margin: 0;\n    padding: 0;\n    font-size: 2em;\n    line-height: 1.1em;\n    text-align: ",";\n"])),(function(e){return e.$alignment||"left"}))},123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockVideo=t.BlockVideoElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(6540),l=n(9849);t.BlockVideoElement=i.styled.div(u||(u=r.__makeTemplateObject(["\n    position: relative;\n    margin: 0;\n    padding: 0 0 56.25% 0;\n    width: 100%;\n    max-width: 100%;\n    height: 0;\n    border: none;\n\n    > iframe {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        border: none;\n    }\n"],["\n    position: relative;\n    margin: 0;\n    padding: 0 0 56.25% 0;\n    width: 100%;\n    max-width: 100%;\n    height: 0;\n    border: none;\n\n    > iframe {\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        border: none;\n    }\n"])));var u;t.BlockVideo=function(e){var n,r,i=(n=e.src,(r=n.match(/youtu(?:.*\/v\/|.*v=|\.be\/)([A-Za-z0-9_-]{11})/))&&2===r.length&&r[1]||""),u=function(e){var t=e.match(/\/\/(?:www\.)?vimeo\.com\/(?:channels\/staffpicks\/)?([-\w]+)/i);return t&&2===t.length&&t[1]||""}(e.src),s=(0,a.useRef)(null),c=(0,a.useRef)();return(0,a.useEffect)((function(){var t="preview"!==e.view&&e.play,n=0;if((i||u)&&(0,l.isBoolean)(t)&&((0,l.isBoolean)(c.current)?t!==c.current:t)){var r=function(e){var t,r;null===(r=null===(t=s.current)||void 0===t?void 0:t.contentWindow)||void 0===r||r.postMessage(JSON.stringify(u?{method:e?"play":"pause"}:{event:"command",func:e?"playVideo":"pauseVideo"}),i?"https://www.youtube-nocookie.com":"https://player.vimeo.com"),n=0,c.current=e};void 0===c.current?e.play&&(n=(0,l.scheduleUITimeout)((function(){return r(!0)}),1e3)):r(t)}return function(){0!==n&&(0,l.cancelUITimeout)(n)}})),i||u?(0,o.jsx)(t.BlockVideoElement,{children:(0,o.jsx)("iframe",{ref:s,src:i?"https://www.youtube-nocookie.com/embed/".concat(i,"?controls=0&enablejsapi=1"):"https://player.vimeo.com/video/".concat(u,"?api=1&dnt=1"),allow:"autoplay; fullscreen; accelerometer; encrypted-media; gyroscope; picture-in-picture"})}):(0,o.jsx)(o.Fragment,{})}},904:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SMALL_SCREEN_MARGIN=t.SMALL_SCREEN_SIZE=t.SIZE=t.SPACING=t.MARGIN=t.OFFSET=void 0,t.OFFSET=5,t.MARGIN=32,t.SPACING=16,t.SIZE=14,t.SMALL_SCREEN_SIZE=500,t.SMALL_SCREEN_MARGIN=16},2297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionError=t.ConnectionErrorElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(904);t.ConnectionErrorElement=i.styled.div(l||(l=r.__makeTemplateObject(["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"],["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"])),24/a.SIZE,(function(e){return e.$styles.inputs.errorColor}),(function(e){return e.$styles.inputs.errorColor}));var l;t.ConnectionError=function(e){return(0,o.jsxs)(t.ConnectionErrorElement,{$styles:e.styles,children:[(0,o.jsx)("b",{children:e.l10n.pgettext("runner#9|⚠ Errors|Submit error","Something went wrong while submitting your conversation.")}),(0,o.jsx)("br",{}),e.l10n.pgettext("runner#9|⚠ Errors|Connection error","Please check your connection and try again (for the techies: The error console of your browser might contain more technical information about what went wrong).")]})}},7341:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutdatedError=t.OutdatedErrorElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(904);t.OutdatedErrorElement=i.styled.div(l||(l=r.__makeTemplateObject(["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"],["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"])),24/a.SIZE,(function(e){return e.$styles.inputs.errorColor}),(function(e){return e.$styles.inputs.errorColor}));var l;t.OutdatedError=function(e){return(0,o.jsxs)(t.OutdatedErrorElement,{$styles:e.styles,children:[(0,o.jsx)("b",{children:e.l10n.pgettext("runner#9|⚠ Errors|Submit error","The form is outdated.")}),(0,o.jsx)("br",{}),e.allowReload?e.l10n.pgettext("runner#9|⚠ Errors|Outdated error","It seems the form is changed by the owner while you were filling in the form. Your data cannot be processed, but you can try to reload the new version of the form while maintaining the data you've filled in. Click the reload button to try this. Please check your data after reloading and then submit again."):e.l10n.pgettext("runner#9|⚠ Errors|Outdated error","It seems the form is changed by the owner while you were filling in the form. Your data cannot be processed. Try reloading the form.")]})}},1787:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PauseError=t.PauseErrorElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(904);t.PauseErrorElement=i.styled.div(l||(l=r.__makeTemplateObject(["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"],["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"])),24/a.SIZE,(function(e){return e.$styles.inputs.errorColor}),(function(e){return e.$styles.inputs.errorColor}));var l;t.PauseError=function(e){return(0,o.jsxs)(t.PauseErrorElement,{$styles:e.styles,children:[(0,o.jsx)("b",{children:e.l10n.pgettext("runner#9|⚠ Errors|Pausing error","Something went wrong while pausing your conversation.")}),(0,o.jsx)("br",{}),e.l10n.pgettext("runner#9|⚠ Errors|Connection error","Please check your connection and try again (for the techies: The error console of your browser might contain more technical information about what went wrong).")]})}},3903:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RejectedError=t.RejectedErrorElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(904);t.RejectedErrorElement=i.styled.div(l||(l=r.__makeTemplateObject(["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"],["\n    margin-top: ","em;\n    border: 1px solid ",";\n    color: ",";\n    padding: 0.4em;\n    border-radius: 0.5em;\n"])),24/a.SIZE,(function(e){return e.$styles.inputs.errorColor}),(function(e){return e.$styles.inputs.errorColor}));var l;t.RejectedError=function(e){return(0,o.jsxs)(t.RejectedErrorElement,{$styles:e.styles,children:[(0,o.jsx)("b",{children:e.l10n.pgettext("runner#9|⚠ Errors|Submit error","Your data is rejected.")}),(0,o.jsx)("br",{}),e.l10n.pgettext("runner#9|⚠ Errors|Rejected error","Unfortunately, your data is marked as invalid and therefore rejected. If you believe this is a mistake, please contact the form owner. We're sorry for the inconvenience.")]})}},5074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancelIcon=void 0;var r=n(4848);t.CancelIcon=(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M10.707 10.5l8.646-8.646c0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0l-8.646 8.646-8.646-8.646c-0.195-0.195-0.512-0.195-0.707 0s-0.195 0.512 0 0.707l8.646 8.646-8.646 8.646c-0.195 0.195-0.195 0.512 0 0.707 0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146l8.646-8.646 8.646 8.646c0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146c0.195-0.195 0.195-0.512 0-0.707l-8.646-8.646z"})})},1332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditIcon=void 0;var r=n(4848);t.EditIcon=(0,r.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:[(0,r.jsx)("path",{d:"M14.5 20h-13c-0.827 0-1.5-0.673-1.5-1.5v-16c0-0.827 0.673-1.5 1.5-1.5h13c0.827 0 1.5 0.673 1.5 1.5v2c0 0.276-0.224 0.5-0.5 0.5s-0.5-0.224-0.5-0.5v-2c0-0.276-0.224-0.5-0.5-0.5h-13c-0.276 0-0.5 0.224-0.5 0.5v16c0 0.276 0.224 0.5 0.5 0.5h13c0.276 0 0.5-0.224 0.5-0.5v-4c0-0.276 0.224-0.5 0.5-0.5s0.5 0.224 0.5 0.5v4c0 0.827-0.673 1.5-1.5 1.5z"}),(0,r.jsx)("path",{d:"M10.5 5h-7c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h7c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M12.5 7h-9c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h9c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M11.5 9h-8c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h8c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M8.5 11h-5c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h5c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"}),(0,r.jsx)("path",{d:"M8.5 17c-0.134 0-0.265-0.054-0.36-0.153-0.124-0.128-0.17-0.313-0.121-0.484l1-3.5c0.023-0.082 0.067-0.156 0.127-0.216l7.5-7.5c0.195-0.195 0.512-0.195 0.707 0l2.5 2.5c0.194 0.194 0.195 0.508 0.003 0.704l-7.5 7.641c-0.065 0.066-0.147 0.113-0.238 0.135l-3.5 0.859c-0.039 0.010-0.079 0.014-0.119 0.014zM9.945 13.262l-0.728 2.547 2.525-0.62 7.053-7.186-1.796-1.796-7.055 7.055z"}),(0,r.jsx)("path",{d:"M6.5 17h-3c-0.276 0-0.5-0.224-0.5-0.5s0.224-0.5 0.5-0.5h3c0.276 0 0.5 0.224 0.5 0.5s-0.224 0.5-0.5 0.5z"})]})},7701:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FinishIcon=void 0;var r=n(4848);t.FinishIcon=(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M5.5 17.5c-0.128 0-0.256-0.049-0.354-0.146l-5-5c-0.195-0.195-0.195-0.512 0-0.707s0.512-0.195 0.707 0l4.646 4.646 13.646-13.646c0.195-0.195 0.512-0.195 0.707 0s0.195 0.512 0 0.707l-14 14c-0.098 0.098-0.226 0.146-0.354 0.146z"})})},7289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MailIcon=void 0;var r=n(4848);t.MailIcon=(0,r.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:[(0,r.jsx)("path",{d:"M18.5 9.382l-2.606-5.211c-0.328-0.657-1.16-1.171-1.894-1.171h-2.5c-0.276 0-0.5 0.224-0.5 0.5s0.224 0.5 0.5 0.5h2.5c0.362 0 0.838 0.295 1 0.618l2.606 5.211c0.028 0.055 0.055 0.117 0.081 0.183-0.061-0.008-0.123-0.012-0.187-0.012h-5c-0.276 0-0.5 0.224-0.5 0.5 0 1.378-1.122 2.5-2.5 2.5s-2.5-1.122-2.5-2.5c0-0.276-0.224-0.5-0.5-0.5h-5c-0.063 0-0.125 0.004-0.187 0.012 0.026-0.066 0.053-0.128 0.081-0.183l2.606-5.211c0.162-0.323 0.638-0.618 1-0.618h2.5c0.276 0 0.5-0.224 0.5-0.5s-0.224-0.5-0.5-0.5h-2.5c-0.734 0-1.566 0.514-1.894 1.171l-2.606 5.211c-0.28 0.561-0.5 1.491-0.5 2.118v4c0 0.827 0.673 1.5 1.5 1.5h16c0.827 0 1.5-0.673 1.5-1.5v-4c0-0.627-0.22-1.557-0.5-2.118zM18 15.5c0 0.276-0.224 0.5-0.5 0.5h-16c-0.276 0-0.5-0.224-0.5-0.5v-4c0-0.276 0.224-0.5 0.5-0.5h4.536c0.243 1.694 1.704 3 3.464 3s3.221-1.306 3.464-3h4.536c0.276 0 0.5 0.224 0.5 0.5v4z"}),(0,r.jsx)("path",{d:"M11.854 6.646c-0.195-0.195-0.512-0.195-0.707 0l-1.146 1.146v-4.293c0-0.276-0.224-0.5-0.5-0.5s-0.5 0.224-0.5 0.5v4.293l-1.146-1.146c-0.195-0.195-0.512-0.195-0.707 0s-0.195 0.512 0 0.707l2 2c0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146l2-2c0.195-0.195 0.195-0.512-0-0.707z"})]})},1351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NextIcon=void 0;var r=n(4848);t.NextIcon=(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M5 20c-0.128 0-0.256-0.049-0.354-0.146-0.195-0.195-0.195-0.512 0-0.707l8.646-8.646-8.646-8.646c-0.195-0.195-0.195-0.512 0-0.707s0.512-0.195 0.707 0l9 9c0.195 0.195 0.195 0.512 0 0.707l-9 9c-0.098 0.098-0.226 0.146-0.354 0.146z"})})},1832:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PauseIcon=void 0;var r=n(4848);t.PauseIcon=(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 5800 5800",children:(0,r.jsx)("path",{d:"M2300 4700l0 -3600c0,-110 -90,-200 -200,-200l-600 0c-113,0 -200,88 -200,200l0 3600c0,110 90,200 200,200l600 0c110,0 200,-90 200,-200zm200 -3600l0 3600c0,220 -180,400 -400,400l-600 0c-220,0 -400,-180 -400,-400l0 -3600c0,-220 180,-400 400,-400l600 0c220,0 400,180 400,400zm2000 3600l0 -3600c0,-110 -90,-200 -200,-200l-600 0c-110,0 -200,90 -200,200l0 3600c0,110 90,200 200,200l600 0c110,0 200,-90 200,-200zm200 -3600l0 3600c0,220 -180,400 -400,400l-600 0c-220,0 -400,-180 -400,-400l0 -3600c0,-220 180,-400 400,-400l600 0c220,0 400,180 400,400z"})})},4975:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviousIcon=void 0;var r=n(4848);t.PreviousIcon=(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M14 20c0.128 0 0.256-0.049 0.354-0.146 0.195-0.195 0.195-0.512 0-0.707l-8.646-8.646 8.646-8.646c0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0l-9 9c-0.195 0.195-0.195 0.512 0 0.707l9 9c0.098 0.098 0.226 0.146 0.354 0.146z"})})},7163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RestartIcon=void 0;var r=n(4848);t.RestartIcon=(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M17.51 4.49c-1.605-1.605-3.74-2.49-6.010-2.49s-4.405 0.884-6.010 2.49-2.49 3.74-2.49 6.010v1.293l-2.146-2.146c-0.195-0.195-0.512-0.195-0.707 0s-0.195 0.512 0 0.707l3 3c0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146l3-3c0.195-0.195 0.195-0.512 0-0.707s-0.512-0.195-0.707 0l-2.146 2.146v-1.293c0-4.136 3.364-7.5 7.5-7.5s7.5 3.364 7.5 7.5-3.364 7.5-7.5 7.5c-0.276 0-0.5 0.224-0.5 0.5s0.224 0.5 0.5 0.5c2.27 0 4.405-0.884 6.010-2.49s2.49-3.74 2.49-6.010c0-2.27-0.884-4.405-2.49-6.010z"})})},3148:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RetryIcon=void 0;var r=n(4848);t.RetryIcon=(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M19.854 8.646c-0.195-0.195-0.512-0.195-0.707 0l-1.149 1.149c-0.051-2.060-0.878-3.99-2.341-5.452-1.511-1.511-3.52-2.343-5.657-2.343s-4.146 0.832-5.657 2.343-2.343 3.52-2.343 5.657 0.832 4.146 2.343 5.657 3.52 2.343 5.657 2.343c2.974 0 5.686-1.635 7.077-4.266 0.129-0.244 0.036-0.547-0.208-0.676s-0.547-0.036-0.676 0.208c-1.217 2.303-3.59 3.734-6.193 3.734-3.86 0-7-3.14-7-7s3.14-7 7-7c3.789 0 6.885 3.027 6.997 6.789l-1.143-1.143c-0.195-0.195-0.512-0.195-0.707 0s-0.195 0.512 0 0.707l2 2c0.098 0.098 0.226 0.146 0.354 0.146s0.256-0.049 0.354-0.146l2-2c0.195-0.195 0.195-0.512 0-0.707z"})})},6212:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Banner=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(7624),u=n(904),s=a.styled.div(r||(r=o.__makeTemplateObject(["\n    display: block;\n    color: ",";\n    margin-top: ","em;\n    font-size: 0.85em;\n\n    > a {\n        text-decoration: none;\n        transition: color 0.5s;\n\n        &:hover {\n            color: "," !important;\n            text-decoration: none;\n        }\n    }\n"],["\n    display: block;\n    color: ",";\n    margin-top: ","em;\n    font-size: 0.85em;\n\n    > a {\n        text-decoration: none;\n        transition: color 0.5s;\n\n        &:hover {\n            color: "," !important;\n            text-decoration: none;\n        }\n    }\n"])),(function(e){return(0,l.color)(e.$styles.font.color,(function(e){return e.manipulate((function(e){return e.alpha(.4)}))}))}),16/u.SIZE,(function(e){return e.$styles.font.color}));t.Banner=function(e){return e.styles.noBranding?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(s,{$styles:e.styles,children:(0,i.jsx)("a",{href:"https://tripetto.com/your-tripetto-experience/?utm_source=tripetto_runner_classic&utm_medium=tripetto_runners&utm_campaign=tripetto_branding&utm_content=form",target:"_blank",children:e.l10n.pgettext("runner:classic","Powered by Tripetto")})})}},170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClosedMessage=void 0;var r=n(4848),o=n(9454),i=n(404),a=n(1004);t.ClosedMessage=function(e){return(0,r.jsx)(o.Blocks,{$styles:e.styles,$view:e.view,$center:e.isPage,children:(0,r.jsxs)(o.Block,{children:[(0,r.jsx)(i.BlockTitle,{$alignment:e.isPage?"center":"left",children:e.l10n.pgettext("runner#2|💬 Messages|Conversation closed","👋 Hi there!")}),(0,r.jsx)(a.BlockDescription,{$alignment:e.isPage?"center":"left",children:e.l10n.pgettext("runner#2|💬 Messages|Conversation closed","Nothing to talk about. The conversation is closed 🤐")})]})})}},9475:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyMessage=void 0;var r=n(4848),o=n(9454),i=n(404),a=n(1004);t.EmptyMessage=function(e){return(0,r.jsx)(o.Blocks,{$styles:e.styles,$view:e.view,$center:!0,$size:15,children:(0,r.jsxs)(o.Block,{children:[(0,r.jsx)(i.BlockTitle,{$alignment:"center",children:e.l10n.pgettext("runner:classic","👋 Hi there!")}),(0,r.jsx)(a.BlockDescription,{$alignment:"center",children:e.l10n.pgettext("runner:classic","Please add a block first to get the magic going.")})]})})}},8542:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Epilogue=void 0;var r=n(1635),o=n(4848),i=n(9849),a=n(8652),l=n(9454),u=n(6494),s=n(6357),c=n(404),d=n(1656),f=n(1004),p=n(123),h=n(8827),v=n(7163),b=n(1332);t.Epilogue=function(e){return"live"===e.view&&e.getRedirect&&e.getRedirect()?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)(l.Blocks,{$styles:e.styles,$view:e.view,$center:e.isPage,children:[(0,o.jsx)(l.Block,{children:"live"!==e.view&&e.redirectUrl?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.BlockTitle,{onClick:e.edit,$alignment:e.isPage?"center":"left",children:"preview"===e.view?e.l10n.pgettext("runner:classic","🌍 Redirect preview"):e.l10n.pgettext("runner:classic","🎉 Test completed")}),(0,o.jsxs)(f.BlockDescription,{onClick:e.edit,$alignment:e.isPage?"center":"left",children:[e.l10n.pgettext("runner:classic","In a live environment the form will redirect to:"),(0,o.jsx)("br",{}),(0,o.jsx)("a",{href:(0,i.markdownifyToURL)(e.redirectUrl,e.context)||"#",target:"_blank",children:(0,i.markdownifyToURL)(e.redirectUrl,e.context)||e.l10n.pgettext("runner:classic","The supplied URL is invalid!")})]}),"test"===e.view&&(0,o.jsx)(h.BlockButtons,{$alignment:e.isPage?"center":"left",children:(0,o.jsx)(u.ButtonFabric,{styles:r.__assign(r.__assign({},e.styles.buttons),{mode:"outline"}),label:e.l10n.pgettext("runner:classic","Test again"),icon:v.RestartIcon,disabled:!e.repeat,onClick:e.repeat})})]}):(0,o.jsxs)(o.Fragment,{children:[e.image&&(0,o.jsx)(s.BlockImage,{src:(0,i.markdownifyToURL)(e.image,e.context,void 0,["image/jpeg","image/png","image/svg","image/gif"]),alignment:"center",isPage:e.isPage,onClick:e.edit}),(0,o.jsx)(c.BlockTitle,{onClick:e.edit,$alignment:e.isPage?"center":"left",children:(0,a.markdownifyToJSX)(e.title||"test"===e.view&&e.l10n.pgettext("runner:classic","🎉 Test completed")||e.l10n.pgettext("runner#2|💬 Messages|Conversation ended","🎉 It's a wrap!"),e.context)}),e.description?(0,o.jsx)(f.BlockDescription,{onClick:e.edit,$alignment:e.isPage?"center":"left",children:(0,a.markdownifyToJSX)(e.description,e.context)}):!e.title&&"test"===e.view&&(0,o.jsx)(f.BlockDescription,{onClick:e.edit,$alignment:e.isPage?"center":"left",children:e.l10n.pgettext("runner:classic","Did you know you can customize this closing message?")}),e.video&&(0,o.jsx)(p.BlockVideo,{src:(0,i.markdownifyToURL)(e.video,e.context),view:e.view,play:!0}),(e.button||e.repeatable||"test"===e.view)&&(0,o.jsxs)(h.BlockButtons,{$alignment:e.isPage?"center":"left",children:[e.button&&(0,o.jsx)(u.ButtonFabric,{styles:r.__assign(r.__assign({},e.styles.buttons),{mode:"fill"}),label:(0,i.markdownifyToString)(e.button.label,e.context),hyperlink:{url:(0,i.markdownifyToURL)(e.button.url,e.context),target:"preview"===e.view||"test"===e.view?"blank":e.button.target}}),(e.repeatable||"test"===e.view)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.ButtonFabric,{styles:r.__assign(r.__assign({},e.styles.buttons),{mode:"outline"}),label:e.repeatable?e.l10n.pgettext("runner#1|🆗 Buttons","Start again"):e.l10n.pgettext("runner:classic","Test again"),icon:v.RestartIcon,disabled:!e.repeat,onClick:e.repeat}),e.edit&&!e.image&&!e.title&&!e.description&&!e.video&&!e.button&&!(0,i.isBoolean)(e.repeatable)&&(0,o.jsx)(u.ButtonFabric,{styles:r.__assign(r.__assign({},e.styles.buttons),{mode:"outline"}),label:e.l10n.pgettext("runner:classic","Customize"),icon:b.EditIcon,onClick:e.edit})]})]})]})}),"live"===e.view&&!e.styles.noBranding&&(0,o.jsxs)(l.Block,{$marginAroundBlock:!0,children:[(0,o.jsx)(d.BlockCaption,{$alignment:e.isPage?"center":"left",children:e.l10n.pgettext("runner:classic","Want to make a form like this for free?")}),(0,o.jsx)(f.BlockDescription,{$alignment:e.isPage?"center":"left",children:e.l10n.pgettext("runner:classic","Tripetto is for making elegantly personal form and survey experiences with response boosting conversational powers.")}),(0,o.jsx)(h.BlockButtons,{$alignment:e.isPage?"center":"left",children:(0,o.jsx)(u.ButtonFabric,{styles:r.__assign(r.__assign({},e.styles.buttons),{mode:"fill"}),label:e.l10n.pgettext("runner:classic","Create one now!"),hyperlink:{url:"https://tripetto.com/your-tripetto-experience/?utm_source=tripetto_runner_classic&utm_medium=tripetto_runners&utm_campaign=tripetto_branding&utm_content=closing",target:"blank"}})})]})]})}},6074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluatingMessage=t.EvaluatingElement=void 0;var r=n(1635),o=n(4848),i=n(780),a=n(904);t.EvaluatingElement=i.styled.div(l||(l=r.__makeTemplateObject(["\n    margin-top: ","em;\n    color: ",";\n"],["\n    margin-top: ","em;\n    color: ",";\n"])),24/a.SIZE,(function(e){return e.$styles.font.color}));var l;t.EvaluatingMessage=function(e){return(0,o.jsx)(t.EvaluatingElement,{$styles:e.styles,children:e.l10n.pgettext("runner#3|🩺 Status information","⏳ One moment please...")})}},4748:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PausedMessage=void 0;var r=n(4848),o=n(9454),i=n(404),a=n(1004);t.PausedMessage=function(e){return(0,r.jsx)(o.Blocks,{$styles:e.styles,$view:e.view,$center:e.isPage,children:(0,r.jsxs)(o.Block,{children:[(0,r.jsx)(i.BlockTitle,{$alignment:e.isPage?"center":"left",children:e.l10n.pgettext("runner#2|💬 Messages|Conversation paused","⏸ Paused")}),(0,r.jsx)(a.BlockDescription,{$alignment:e.isPage?"center":"left",children:e.l10n.pgettext("runner#2|💬 Messages|Conversation paused","The conversation is now paused.")})]})})}},709:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Prologue=void 0;var r=n(4848),o=n(8652),i=n(6494),a=n(9454),l=n(6357),u=n(404),s=n(1004),c=n(123),d=n(8827),f=n(1351),p=n(6212);t.Prologue=function(e){return(0,r.jsx)(a.Blocks,{$styles:e.styles,$view:e.view,$center:e.isPage,children:(0,r.jsxs)(a.Block,{children:[e.image&&(0,r.jsx)(l.BlockImage,{src:e.image,alignment:e.isPage?"center":"left",isPage:e.isPage,onClick:e.edit}),e.title&&(0,r.jsx)(u.BlockTitle,{onClick:e.edit,$alignment:e.isPage?"center":"left",children:(0,o.markdownifyToJSX)(e.title)}),e.description&&(0,r.jsx)(s.BlockDescription,{onClick:e.edit,$alignment:e.isPage?"center":"left",children:(0,o.markdownifyToJSX)(e.description)}),e.video&&(0,r.jsx)(c.BlockVideo,{src:e.video,view:e.view}),(0,r.jsx)(d.BlockButtons,{children:(0,r.jsx)(i.ButtonFabric,{styles:e.styles.buttons,icon:f.NextIcon,label:e.button||e.l10n.pgettext("runner#1|🆗 Buttons","Start"),onClick:e.start,onAutoFocus:function(t){"live"===e.view&&(e.styles.autoFocus||e.isPage)&&t&&t.focus()}})}),"preview"!==e.view&&(0,r.jsx)(p.Banner,{l10n:e.l10n,styles:e.styles})]})})}},903:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Buttons=void 0;var r,o=n(1635),i=n(780),a=n(904);t.Buttons=i.styled.div(r||(r=o.__makeTemplateObject(["\n    margin-top: ","em !important;\n    margin-right: ","em;\n    display: flex;\n\n    * + * {\n        margin-left: ","em;\n    }\n"],["\n    margin-top: ","em !important;\n    margin-right: ","em;\n    display: flex;\n\n    * + * {\n        margin-left: ","em;\n    }\n"])),24/a.SIZE,16/a.SIZE,16/a.SIZE)},5498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Navigation=void 0;var r,o=n(1635),i=n(780);t.Navigation=i.styled.nav(r||(r=o.__makeTemplateObject(["\n    display: flex;\n    flex-direction: row;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n"],["\n    display: flex;\n    flex-direction: row;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n"])))},3954:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pages=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(6494),u=n(904),s=a.styled.div(r||(r=o.__makeTemplateObject(["\n    margin-top: ","em;\n"],["\n    margin-top: ","em;\n"])),24/u.SIZE);t.Pages=function(e){return e.pages.length>0?(0,i.jsx)(s,{children:e.pages.map((function(t,n){return(0,i.jsx)(l.ButtonFabric,{styles:o.__assign(o.__assign({},e.styles.buttons),{mode:t.active?"fill":"outline",group:e.pages.length>1&&(0===n?"start":n+1===e.pages.length?"end":"middle")||void 0}),label:"".concat(t.number),disabled:e.disabled,onClick:t.activate},n)}))}):(0,i.jsx)(i.Fragment,{})}},194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Progressbar=void 0;var r,o,i=n(1635),a=n(4848),l=n(780),u=n(7624),s=n(904),c=l.styled.div(r||(r=i.__makeTemplateObject(["\n    flex-grow: 2;\n    margin-top: ","em;\n    margin-right: ","em;\n    background-color: ",";\n    border-radius: 0.5em;\n"],["\n    flex-grow: 2;\n    margin-top: ","em;\n    margin-right: ","em;\n    background-color: ",";\n    border-radius: 0.5em;\n"])),24/s.SIZE,16/s.SIZE,(function(e){return(0,u.color)(e.$styles.buttons.baseColor,(function(e){return e.manipulate((function(e){return e.alpha(.2)}))}))})),d=l.styled.div(o||(o=i.__makeTemplateObject(["\n    background-color: ",";\n    color: ",";\n    font-size: 0.8em;\n    padding: ",";\n    text-align: ",";\n    border-radius: 0.5em;\n    white-space: no-wrap;\n    overflow: hidden;\n    transition: width 0.3s ease;\n    width: ",";\n"],["\n    background-color: ",";\n    color: ",";\n    font-size: 0.8em;\n    padding: ",";\n    text-align: ",";\n    border-radius: 0.5em;\n    white-space: no-wrap;\n    overflow: hidden;\n    transition: width 0.3s ease;\n    width: ",";\n"])),(function(e){return e.$percentage>0&&e.$styles.buttons.baseColor||void 0}),(function(e){return(0,u.color)(e.$styles.buttons.textColor||e.$styles.buttons.baseColor,(function(t){return t.makeBlackOrWhite(!e.$styles.buttons.textColor)}))}),(function(e){return"".concat(.1*e.$styles.buttons.scale,"em ").concat(.4*e.$styles.buttons.scale,"em ").concat(.1*e.$styles.buttons.scale,"em ").concat(e.$percentage>0?0:.4*e.$styles.buttons.scale,"em")}),(function(e){return e.$percentage>0?"right":"left"}),(function(e){return e.$percentage>0&&e.$percentage+"%"||void 0}));t.Progressbar=function(e){return(0,a.jsx)(c,{$styles:e.styles,children:(0,a.jsxs)(d,{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":0,"aria-valuemax":100,$styles:e.styles,$percentage:e.percentage,children:[e.percentage,"%"]})})}},5584:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var r,o=n(1635),i=n(4848),a=n(780),l=n(9849),u=n(904),s=a.styled.div(r||(r=o.__makeTemplateObject(["\n    margin: ","em 0;\n    display: flex;\n    align-items: center;\n\n    &:first-child {\n        margin-top: 0;\n    }\n\n    > div {\n        flex-grow: 1;\n\n        &:nth-child(2) {\n            flex-grow: 0;\n            max-width: 80%;\n            text-overflow: ellipsis;\n            overflow: hidden;\n            white-space: nowrap;\n            padding: 0 ","em;\n            font-size: 11px;\n            font-family: Tahoma, Arial;\n            text-transform: uppercase;\n            color: ",";\n            opacity: 0.5;\n            cursor: default;\n        }\n\n        &:first-child,\n        &:last-child {\n            height: 1px;\n            border-bottom: ",";\n            opacity: 0.25;\n        }\n    }\n"],["\n    margin: ","em 0;\n    display: flex;\n    align-items: center;\n\n    &:first-child {\n        margin-top: 0;\n    }\n\n    > div {\n        flex-grow: 1;\n\n        &:nth-child(2) {\n            flex-grow: 0;\n            max-width: 80%;\n            text-overflow: ellipsis;\n            overflow: hidden;\n            white-space: nowrap;\n            padding: 0 ","em;\n            font-size: 11px;\n            font-family: Tahoma, Arial;\n            text-transform: uppercase;\n            color: ",";\n            opacity: 0.5;\n            cursor: default;\n        }\n\n        &:first-child,\n        &:last-child {\n            height: 1px;\n            border-bottom: ",";\n            opacity: 0.25;\n        }\n    }\n"])),16/u.SIZE,8/u.SIZE,(function(e){return e.$color}),(function(e){return"1px dashed ".concat(e.$color)}));t.Page=function(e){return"preview"===e.view?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s,{$color:e.styles.color||"#000",children:[(0,i.jsx)("div",{}),(0,i.jsx)("div",{children:("paginated"===e.styles.mode?e.l10n.pgettext("runner:classic","Page %1",l.L10n.Locales.number(e.page+1)):e.l10n.pgettext("runner:classic","Section %1",l.L10n.Locales.number(e.page+1)))+(e.title&&" - ".concat(e.title)||"")}),(0,i.jsx)("div",{})]}),e.children]}):(0,i.jsx)(i.Fragment,{children:e.children})}},5213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassicRoot=void 0;var r,o,i,a,l=n(1635),u=n(4848),s=n(780),c=n(6540),d=n(7624),f=n(9849),p=n(3106),h=n(8316),v=n(9454),b=n(904),m=(0,s.styled)(p.Frame).withConfig(p.FrameConfig)(r||(r=l.__makeTemplateObject(["\n    background-color: transparent !important;\n    border: none !important;\n    position: ",";\n    left: ",";\n    top: ",";\n    width: ",";\n    height: ",";\n    margin-right: ",";\n    margin-bottom: ",";\n"],["\n    background-color: transparent !important;\n    border: none !important;\n    position: ",";\n    left: ",";\n    top: ",";\n    width: ",";\n    height: ",";\n    margin-right: ",";\n    margin-bottom: ",";\n"])),(function(e){return"live"===e.$view&&e.$isPage?"fixed":"relative"}),(function(e){return"live"===e.$view?e.$isPage?0:"-".concat(b.OFFSET,"px"):void 0}),(function(e){return"live"===e.$view?e.$isPage?0:"-".concat(b.OFFSET,"px"):void 0}),(function(e){return"live"!==e.$view||e.$isPage?"100%":"calc(100% + ".concat(2*b.OFFSET,"px);")}),(function(e){return"live"!==e.$view||e.$isPage?"100%":0}),(function(e){return"live"===e.$view&&!e.$isPage&&"-".concat(2*b.OFFSET,"px")||void 0}),(function(e){return"live"===e.$view&&!e.$isPage&&"-".concat(2*b.OFFSET,"px")||void 0})),g=(0,s.createGlobalStyle)(i||(i=l.__makeTemplateObject(["\n    body {\n        overflow: hidden;\n        background-color: transparent;\n\n        ","\n    }\n"],["\n    body {\n        overflow: hidden;\n        background-color: transparent;\n\n        ","\n    }\n"])),(function(e){return e.$customCSS&&(0,s.css)(o||(o=l.__makeTemplateObject(["\n                ","\n            "],["\n                ","\n            "])),f.Str.replace(e.$customCSS,"tripetto-block-","@tripetto/block-"))})),y=s.styled.div(a||(a=l.__makeTemplateObject(["\n    position: absolute;\n    left: ",";\n    right: ",";\n    top: ",";\n    bottom: ",";\n    font-family: ",";\n    font-size: ","px;\n    font-variant-ligatures: none;\n    background-color: ",";\n    background-image: ",";\n    background-size: ",";\n    background-repeat: ",";\n    background-position: center center;\n    line-height: 1.5em;\n    overflow-x: ",";\n    overflow-y: ",";\n    scroll-behavior: smooth;\n    -webkit-overflow-scrolling: touch;\n    -webkit-tap-highlight-color: transparent;\n\n    > div {\n        max-width: ",";\n        margin-left: ",";\n        margin-right: ",";\n        padding: ",";\n\n        > "," + "," {\n            margin-top: ","em;\n        }\n    }\n\n    * {\n        font-family: ",";\n        font-variant-ligatures: none;\n        box-sizing: border-box;\n        outline: none;\n    }\n\n    a {\n        text-decoration: underline;\n        color: inherit !important;\n    }\n\n    @media (prefers-reduced-motion: reduce) {\n        scroll-behavior: auto;\n    }\n\n    @media (",": ","px) {\n        font-size: ","px;\n\n        > div {\n            padding: ",";\n        }\n    }\n"],["\n    position: absolute;\n    left: ",";\n    right: ",";\n    top: ",";\n    bottom: ",";\n    font-family: ",";\n    font-size: ","px;\n    font-variant-ligatures: none;\n    background-color: ",";\n    background-image: ",";\n    background-size: ",";\n    background-repeat: ",";\n    background-position: center center;\n    line-height: 1.5em;\n    overflow-x: ",";\n    overflow-y: ",";\n    scroll-behavior: smooth;\n    -webkit-overflow-scrolling: touch;\n    -webkit-tap-highlight-color: transparent;\n\n    > div {\n        max-width: ",";\n        margin-left: ",";\n        margin-right: ",";\n        padding: ",";\n\n        > "," + "," {\n            margin-top: ","em;\n        }\n    }\n\n    * {\n        font-family: ",";\n        font-variant-ligatures: none;\n        box-sizing: border-box;\n        outline: none;\n    }\n\n    a {\n        text-decoration: underline;\n        color: inherit !important;\n    }\n\n    @media (prefers-reduced-motion: reduce) {\n        scroll-behavior: auto;\n    }\n\n    @media (",": ","px) {\n        font-size: ","px;\n\n        > div {\n            padding: ",";\n        }\n    }\n"])),(function(e){return"live"!==e.$view||e.$isPage?0:"".concat(b.OFFSET,"px")}),(function(e){return"live"!==e.$view||e.$isPage?0:"".concat(b.OFFSET,"px")}),(function(e){return"live"!==e.$view||e.$isPage?0:"".concat(b.OFFSET,"px")}),(function(e){return"live"!==e.$view||e.$isPage?0:"".concat(b.OFFSET,"px")}),(function(e){return e.$fontFamily}),(function(e){return e.$styles.font.size}),(function(e){return(0,d.color)(e.$styles.background.color)}),(function(e){return e.$styles.background.url&&e.$styles.background.opacity>0&&"".concat(e.$styles.background.opacity<1&&"linear-gradient(".concat((0,d.color)(e.$styles.background.color,(function(t){return t.manipulate((function(t){return t.alpha(1-e.$styles.background.opacity)}))})),",").concat((0,d.color)(e.$styles.background.color,(function(t){return t.manipulate((function(t){return t.alpha(1-e.$styles.background.opacity)}))})),"),")||"",'url("').concat(e.$styles.background.url,'")')||void 0}),(function(e){return e.$styles.background.url&&"repeat"!==e.$styles.background.positioning&&e.$styles.background.positioning||void 0}),(function(e){return e.$styles.background.url&&"repeat"===e.$styles.background.positioning?"repeat":"no-repeat"}),(function(e){return"live"!==e.$view||e.$isPage?"hidden":"visible"}),(function(e){return"live"!==e.$view||e.$isPage?"auto":"visible"}),(function(e){return e.$isPage&&"1140px"}),(function(e){return e.$isPage&&"auto"}),(function(e){return e.$isPage&&"auto"}),(function(e){return e.$isPage||"live"!==e.$view?"".concat(b.MARGIN,"px"):void 0}),v.Blocks,v.Blocks,b.MARGIN/b.SIZE,(function(e){return e.$fontFamily}),(function(e){return"live"===e.$view?"max-device-width":"max-width"}),b.SMALL_SCREEN_SIZE,(function(e){return e.$styles.font.sizeSmall}),(function(e){return e.$isPage||"live"!==e.$view?"".concat(b.SMALL_SCREEN_MARGIN,"px"):void 0})),w=function(e){var t=(0,c.useRef)();return(0,c.useEffect)((function(){var n=(0,h.attach)((function(){t.current&&e.onChange(t.current.getBoundingClientRect().height)}));return function(){return(0,h.detach)(n)}})),(0,u.jsx)("div",{ref:t,children:e.children})};t.ClassicRoot=function(e){var t=(0,c.useState)(0),n=t[0],r=t[1];return(0,c.useEffect)((function(){e.frameRef.current&&"live"===e.view&&(e.isPage||e.styles.autoFocus)&&e.frameRef.current.focus()}),[n]),(0,u.jsx)(m,{frameRef:e.frameRef,title:e.title,style:l.__assign(l.__assign({},e.customStyle),{height:e.customStyle&&e.customStyle.height&&"auto"!==e.customStyle.height?e.customStyle.height:"live"===e.view&&!e.isPage&&n+2*b.OFFSET||void 0}),font:e.styles.font&&e.styles.font.family,className:e.className,onTouch:e.onTouch,$view:e.view,$isPage:e.isPage,$styles:e.styles,children:function(t,o){return(0,u.jsx)(s.StyleSheetManager,{target:t.head,children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(g,{$customCSS:e.customCSS}),(0,u.jsx)(y,{$view:e.view,$isPage:e.isPage,$styles:e.styles,$fontFamily:o,children:(0,u.jsx)(w,{onChange:function(e){(e=f.Num.ceil(e))!==n&&r(e)},children:e.children})})]})})}})}},8318:function(e,t,n){!function(e){"use strict";var t,n=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=n&&"size"in n.prototype,a="__URLSearchParams__",l=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),u=p.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&l&&i)){u.append=function(e,t){g(this[a],e,t)},u.delete=function(e){delete this[a][e]},u.get=function(e){var t=this[a];return this.has(e)?t[e][0]:null},u.getAll=function(e){var t=this[a];return this.has(e)?t[e].slice(0):[]},u.has=function(e){return w(this[a],e)},u.set=function(e,t){this[a][e]=[""+t]},u.toString=function(){var e,t,n,r,o=this[a],i=[];for(t in o)for(n=h(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+h(r[e]));return i.join("&")};var c,d=e.Proxy&&n&&(!o||!l||!r||!i);d?(c=new Proxy(n,{construct:function(e,t){return new e(new p(t[0]).toString())}})).toString=Function.prototype.toString.bind(p):c=p,Object.defineProperty(e,"URLSearchParams",{value:c});var f=e.URLSearchParams.prototype;f.polyfill=!0,!d&&e.Symbol&&(f[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in f||(f.forEach=function(e,t){var n=m(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)}),"sort"in f||(f.sort=function(){var e,t,n,r=m(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}}),"keys"in f||(f.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),b(e)}),"values"in f||(f.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),b(e)}),"entries"in f||(f.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),b(e)}),s&&(f[e.Symbol.iterator]=f[e.Symbol.iterator]||f.entries),"size"in f||Object.defineProperty(f,"size",{get:function(){var e=m(this.toString());if(f===this)throw new TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce((function(t,n){return t+e[n].length}),0)}})}function p(e){((e=e||"")instanceof URLSearchParams||e instanceof p)&&(e=e.toString()),this[a]=m(e)}function h(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function v(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function b(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function m(e){var t={};if("object"==typeof e)if(y(e))for(var n=0;n<e.length;n++){var r=e[n];if(!y(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&g(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var l=i[a],u=l.indexOf("=");-1<u?g(t,v(l.slice(0,u)),v(l.slice(u+1))):l&&g(t,v(l),"")}}return t}function g(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);w(e,t)?e[t].push(r):e[t]=[r]}function y(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==n.g?n.g:"undefined"!=typeof window?window:this)},5371:function(e,t,n){var r;!function(){function o(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:i).apply(null,arguments)}var l=Date.now||function(){return+new Date};function u(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var s=!!window.FontFace;function c(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function d(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function v(e,t,n){function r(){l&&o&&i&&(l(a),l=null)}t=c(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,a=null,l=n||null;s?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),d(e,"head",t)}function b(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=c(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function m(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,w(e)}}function y(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function x(e){this.a=e||"-"}function k(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function _(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function S(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function O(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function j(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new x("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function $(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),p(e.f,n,r)}P(e,"inactive")}function P(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function F(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=c(this.c,"span",{"aria-hidden":"true"},this.f)}function R(e){d(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+_(e.c)+";font-style:"+S(e)+";font-weight:"+e.f+"00;"}function N(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function B(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=T(e=new k(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=T(e=new k(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=T(e=new k("serif",C(this.a))),this.j.a.style.cssText=e,e=T(e=new k("sans-serif",C(this.a))),this.m.a.style.cssText=e,R(this.g),R(this.h),R(this.j),R(this.m)}x.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},N.prototype.start=function(){var e=this.c.o.document,t=this,n=l(),r=new Promise((function(r,o){!function i(){l()-n>=t.f?o():e.fonts.load(function(e){return S(e)+" "+e.f+"00 300px "+_(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(e,n){o=setTimeout(n,t.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var M={D:"serif",C:"sans-serif"},z=null;function I(){if(null===z){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);z=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return z}function D(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[r]])return!0;return!1}function A(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=I()&&D(e,n,r)),t?l()-e.A>=e.w?I()&&D(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?V(e,e.v):V(e,e.B):function(e){setTimeout(a((function(){A(this)}),e),50)}(e):V(e,e.v)}function V(e,t){setTimeout(a((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)}),e),0)}function L(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}B.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=l(),A(this)};var U=null;function q(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),P(e,"active")):$(e.a))}function W(e){this.j=e,this.a=new F,this.h=0,this.f=this.g=!0}function H(e,t,n,r,o){var i=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=o||null,l=r||{};if(0===n.length&&i)$(t.a);else{t.f+=n.length,i&&(t.j=i);var u,s=[];for(u=0;u<n.length;u++){var c=n[u],d=l[c.c],f=t.a,h=c;if(f.g&&p(f.f,[f.a.c("wf",h.c,C(h).toString(),"loading")]),P(f,"fontloading",h),f=null,null===U)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var v=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);U=h?42<parseInt(h[1],10):!v}else U=!1;f=U?new N(a(t.g,t),a(t.h,t),t.c,c,t.s,d):new B(a(t.g,t),a(t.h,t),t.c,c,t.s,e,d),s.push(f)}for(u=0;u<s.length;u++)s[u].start()}}),0)}function Y(e,t){this.c=e,this.a=t}function K(e,t){this.c=e,this.a=t}function X(e,t){this.c=e||G,this.a=[],this.f=[],this.g=t||""}L.prototype.g=function(e){var t=this.a;t.g&&p(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),P(t,"fontactive",e),this.m=!0,q(this)},L.prototype.h=function(e){var t=this.a;if(t.g){var n=h(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),p(t.f,r,o)}P(t,"fontinactive",e),q(this)},W.prototype.load=function(e){this.c=new u(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&p(e.f,[e.a.c("wf","loading")]),P(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new L(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){H(e,i,t,n,r)}))}(this,new j(this.c,e),e)},Y.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var u=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new k(u,n))):a.push(new k(u))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;b(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},K.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new m;for(t=0,n=r.length;t<n;t++)v(this.c,r[t],g(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var u=r[1].split(","),s=0;s<u.length;s+=1)l.push(new k(r[0],u[s]));else l.push(new k(r[0]));y(a,(function(){e(l,i)}))};var G="https://fonts.googleapis.com/css";function Q(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function oe(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new m,n=this.c,r=new X(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Q(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,u=(l=l.split(",")).length,s=0;s<u;s++){var c;if((c=l[s]).match(/^[\w-]+$/))if(null==(d=te.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":ee[c],null==(d=d[1])||""==d)d="4";else var d=J[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new k(o,i[r]))}}(i),v(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),y(t,(function(){e(i.a,i.c,re)}))},oe.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?b(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new k(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new k(a.name,O("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},b(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new W(window);ae.a.c.custom=function(e,t){return new K(t,e)},ae.a.c.fontdeck=function(e,t){return new ie(t,e)},ae.a.c.monotype=function(e,t){return new Y(t,e)},ae.a.c.typekit=function(e,t){return new oe(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var le={load:a(ae.load,ae)};void 0===(r=function(){return le}.call(t,n,t,e))||(e.exports=r)}()},9849:function(t){"use strict";t.exports=e},1635:function(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:function(){return N},__assign:function(){return i},__asyncDelegator:function(){return S},__asyncGenerator:function(){return C},__asyncValues:function(){return O},__await:function(){return _},__awaiter:function(){return h},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return T},__classPrivateFieldSet:function(){return R},__createBinding:function(){return b},__decorate:function(){return l},__disposeResources:function(){return M},__esDecorate:function(){return s},__exportStar:function(){return m},__extends:function(){return o},__generator:function(){return v},__importDefault:function(){return F},__importStar:function(){return P},__makeTemplateObject:function(){return j},__metadata:function(){return p},__param:function(){return u},__propKey:function(){return d},__read:function(){return y},__rest:function(){return a},__runInitializers:function(){return c},__setFunctionName:function(){return f},__spread:function(){return w},__spreadArray:function(){return k},__spreadArrays:function(){return x},__values:function(){return g}});var 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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=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},i.apply(this,arguments)};function a(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 l(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(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 u(e,t){return function(n,r){t(n,r,e)}}function s(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,u=r.kind,s="getter"===u?"get":"setter"===u?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var v in r)h[v]="access"===v?{}:r[v];for(var v in r.access)h.access[v]=r.access[v];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var b=(0,n[p])("accessor"===u?{get:d.get,set:d.set}:d[s],h);if("accessor"===u){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(l=a(b.get))&&(d.get=l),(l=a(b.set))&&(d.set=l),(l=a(b.init))&&o.unshift(l)}else(l=a(b))&&("field"===u?o.unshift(l):d[s]=l)}c&&Object.defineProperty(c,r.name,d),f=!0}function c(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function v(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}var b=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function m(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||b(t,e,n)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r}function k(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function C(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,s):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function u(e){l("next",e)}function s(e){l("throw",e)}function c(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:!1}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var $=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(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)&&b(t,e,n);return $(t,e),t}function F(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function R(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var B="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function M(e){function t(t){e.error=e.hasError?new B(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:o,__assign:i,__rest:a,__decorate:l,__param:u,__metadata:p,__awaiter:h,__generator:v,__createBinding:b,__exportStar:m,__values:g,__read:y,__spread:w,__spreadArrays:x,__spreadArray:k,__await:_,__asyncGenerator:C,__asyncDelegator:S,__asyncValues:O,__makeTemplateObject:j,__importStar:P,__importDefault:F,__classPrivateFieldGet:E,__classPrivateFieldSet:R,__classPrivateFieldIn:T,__addDisposableResource:N,__disposeResources:M}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}return r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,r(1440)}()}));