/*! For license information please see formio.full.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={44964:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseUrl=t||"https://cdn.form.io",this.overrides={},this.libs={ace:"1.4.12",bootstrap:"4.6.2",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}var t,n;return t=e,(n=[{key:"getVersion",value:function(e){return this.libs[e]}},{key:"setVersion",value:function(e,t){this.libs[e]=t,this.updateUrls()}},{key:"setBaseUrl",value:function(e){this.baseUrl=e,this.updateUrls()}},{key:"setOverrideUrl",value:function(e,t){this.overrides[e]=t,this.updateUrls()}},{key:"removeOverride",value:function(e){delete this.overrides[e],this.updateUrls()}},{key:"removeOverrides",value:function(){this.overrides={},this.updateUrls()}},{key:"buildUrl",value:function(e,t,n){return"latest"===n||""===n?"".concat(e,"/").concat(t):"".concat(e,"/").concat(t,"/").concat(n)}},{key:"updateUrls",value:function(){for(var e in this.libs)e in this.overrides?this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]):this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=i},34558:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),n(4129),n(38880),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(92222),n(89554),n(41539),n(54747),n(5212),n(79753),n(83710),n(39714),n(69600),n(21249),n(24603),n(74916),n(82772),n(15306),n(26699),n(32023),n(47042),n(96649),n(96078),n(82526),n(41817),n(9653);var r=f(n(85542)),o=n(19161),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(82531)),a=f(n(96073)),l=f(n(96486)),s=f(n(30381)),u=f(n(47853));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===d(o)?o:String(o)),r)}var o}var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},t||{}),this.id=i.getRandomComponentId(),this.eventHandlers=[],this.i18next=this.options.i18next||a.default,this.events=t&&t.events?t.events:new r.default,this.defaultMask=null,this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}var t,n;return t=e,n=[{key:"on",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.events){var o="".concat(this.options.namespace,".").concat(e);return t.id=this.id,t.key=this.key,t.internal=n,this.events[r?"once":"on"](o,t)}}},{key:"once",value:function(e,t,n){return this.on(e,t,n,!0)}},{key:"onAny",value:function(e){if(this.events)return this.events.onAny(e)}},{key:"offAny",value:function(e){if(this.events)return this.events.offAny(e)}},{key:"off",value:function(e,t){var n=this;if(this.events){var r="".concat(this.options.namespace,".").concat(e);this.events.listeners(r).forEach((function(e){e&&e.id===n.id&&(t&&t!==e||n.events.off(r,e))}))}}},{key:"emit",value:function(e){if(this.events){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.events).emit.apply(t,["".concat(this.options.namespace,".").concat(e)].concat(r))}}},{key:"hasEventHandler",value:function(e){var t=this;if(!this.events)return!1;var n="".concat(this.options.namespace,".").concat(e);return this.events.listeners(n).some((function(e){return!!e&&(e.id===t.id||e.key===t.key)}))}},{key:"addEventListener",value:function(e,t,n,r,o){if(e)return r||this.eventHandlers.push({id:this.id,obj:e,type:t,func:n}),"addEventListener"in e?e.addEventListener(t,n,!!o):"attachEvent"in e&&e.attachEvent("on".concat(t),n),this}},{key:"removeEventListener",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=[];if(e)return this.eventHandlers.forEach((function(i,a){i.id!==n.id||!e.removeEventListener||i.type!==t||r&&i.func!==r||(e.removeEventListener(t,i.func),o.push(a))})),o.length&&l.default.pullAt(this.eventHandlers,o),this}},{key:"removeEventListeners",value:function(){var e=this;this.eventHandlers.forEach((function(t){e.id===t.id&&t.type&&t.obj&&t.obj.removeEventListener&&t.obj.removeEventListener(t.type,t.func)})),this.eventHandlers=[]}},{key:"removeAllEvents",value:function(e){var t=this;l.default.each(this.events._events,(function(n,r){l.default.each(n,(function(n){n&&t.id===n.id&&(e||n.internal)&&t.events.off(r,n)}))}))}},{key:"destroy",value:function(){this.removeEventListeners(),this.removeAllEvents()}},{key:"appendTo",value:function(e,t){return null==t||t.appendChild(e),this}},{key:"prependTo",value:function(e,t){if(t)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e);return this}},{key:"removeChildFrom",value:function(e,t){if(t&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}return this}},{key:"ce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=document.createElement(e);return t&&this.attr(r,t),this.appendChild(r,n),r}},{key:"appendChild",value:function(e,t){var n=this;return Array.isArray(t)?t.forEach((function(t){return n.appendChild(e,t)})):t instanceof HTMLElement||t instanceof Text?e.appendChild(t):t&&e.appendChild(this.text(t.toString())),this}},{key:"maskPlaceholder",value:function(e){var t=this;return e.map((function(e){return e instanceof RegExp?t.placeholderChar:e})).join("")}},{key:"placeholderChar",get:function(){var e;return(null===(e=this.component)||void 0===e?void 0:e.inputMaskPlaceholderChar)||"_"}},{key:"setInputMask",value:function(e,t,n){if(e&&t){var r=i.getInputMask(t,this.placeholderChar);this.defaultMask=r;try{e.mask&&e.mask.destroy(),e.mask=(0,u.default)({inputElement:e,mask:r,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}r.numeric&&e.setAttribute("pattern","\\d*"),n&&e.setAttribute("placeholder",this.maskPlaceholder(r))}}},{key:"t",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.i18next).t.apply(t,[e].concat(r))}},{key:"text",value:function(e){return document.createTextNode(this.t(e))}},{key:"attr",value:function(e,t){var n=this;e&&l.default.each(t,(function(t,r){void 0!==t&&(0===r.indexOf("on")?n.addEventListener(e,r.substr(2).toLowerCase(),t):e.setAttribute(r,t))}))}},{key:"hasClass",value:function(e,t){return!!e&&(t=" ".concat(t," ")," ".concat(e.className," ").replace(/[\n\t\r]/g," ").indexOf(t)>-1)}},{key:"addClass",value:function(e,t){if(!(e&&e instanceof HTMLElement))return this;var n=e.getAttribute("class");return null!=n&&n.includes(t)||e.setAttribute("class","".concat(n," ").concat(t)),this}},{key:"removeClass",value:function(e,t){if(!(e&&t&&e instanceof HTMLElement))return this;var n=e.getAttribute("class");return n&&(n=n.replace(new RegExp(" ".concat(t),"g"),""),e.setAttribute("class",n)),this}},{key:"empty",value:function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"evalContext",value:function(e){var t;return Object.assign({_:l.default,utils:i,util:i,user:o.GlobalFormio.getUser(),moment:s.default,instance:this,self:this,token:o.GlobalFormio.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:null!==(t=this.options)&&void 0!==t&&t.formConfig?this.options.formConfig:{}},e,l.default.get(this.root,"options.evalContext",{}))}},{key:"interpolate",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"function"==typeof e||!this.component.content&&!this.component.html||i.Evaluator.templateSettings.interpolate.test(e)||(e=i.translateHTMLTemplate(String(e),(function(e){return n.t(e)}))),i.interpolate(e,this.evalContext(t),r)}},{key:"evaluate",value:function(e,t,n,r){return i.evaluate(e,this.evalContext(t),n,r)}},{key:"hook",value:function(){var e=arguments[0];if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,Array.prototype.slice.call(arguments,1));var t="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return t?t(null,arguments[1]):arguments[1]}}],n&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=h},85542:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(74819),n(38880),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(4129),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=n(26729),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(82531));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(a,e);var t,n,r,i=(n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(n);if(r){var o=p(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return u(this,e)});function a(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,a);var s=r.loadLimit,u=void 0===s?1e3:s,d=r.eventsSafeInterval,m=void 0===d?300:d;h(c(n=i.call(this)),"onAny",(function(e){n.on("any",e)})),h(c(n),"offAny",(function(e){n.off("any",e)}));var y=function(){console.warn("There were more than ".concat(u," events emitted in ").concat(m," ms. It might be caused by events' infinite loop"),n.id)},v=o.observeOverload(y,{limit:u,delay:m});return n.emit=function(){for(var r,o,i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];(r=f((e=c(n),p(a.prototype)),"emit",e)).call.apply(r,[e].concat(l)),(o=f((t=c(n),p(a.prototype)),"emit",t)).call.apply(o,[t,"any"].concat(l)),v()},n}return t=a,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.EventEmitter);t.default=y},71277:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(66992),n(78783),n(4129),n(33948),n(38880),n(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(83710),n(41539),n(39714),n(92222),n(32564),n(68304),n(24812),n(30489);var o=f(n(34558)),i=n(19161),a=f(n(9411)),l=f(n(75146)),s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82531)),u=f(n(91459));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return d=v()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&m(o,n.prototype),o},d.apply(null,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(d,e);var t,n,r,o,c,f=(t=d,n=v(),function(){var e,r=b(t);if(n){var o=b(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return y(this,e)});function d(){var e;p(this,d);var t=(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];return i.GlobalFormio.options&&i.GlobalFormio.options.form&&(t=Object.assign(t,i.GlobalFormio.options.form)),(e=f.call(this,t)).options.useSessionToken&&i.GlobalFormio.useSessionToken(e.options),e.ready=new u.default((function(t,n){e.readyResolve=t,e.readyReject=n})),e.instance=null,(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?(e.element=arguments.length<=0?void 0:arguments[0],e.options=(arguments.length<=2?void 0:arguments[2])||{},e.options.events=e.events,e.setForm(arguments.length<=1?void 0:arguments[1]).then((function(){return e.readyResolve(e.instance)})).catch(e.readyReject)):(arguments.length<=0?void 0:arguments[0])?(e.element=null,e.options=(arguments.length<=1?void 0:arguments[1])||{},e.options.events=e.events,e.setForm(arguments.length<=0?void 0:arguments[0]).then((function(){return e.readyResolve(e.instance)})).catch(e.readyReject)):(e.element=null,e.options={},e.options.events=e.events),e.display="",e}return r=d,c=[{key:"embed",value:function(e){var t=this;return new u.default((function(n){e&&e.src||n();var r=t.id||"formio-".concat(Math.random().toString(36).substring(7)),o=e.class||"formio-form-wrapper",i=e.styles?'<link rel="stylesheet" href="'.concat(e.styles,'">'):"";i+='<div id="'.concat(r,'" class="').concat(o,'"></div>'),document.write(i);var a=0,l=setInterval((function(){a++;var t=document.getElementById(r);(t||a>10)&&(n(new d(t,e.src).ready),clearInterval(l))}),10)}))}}],(o=[{key:"create",value:function(e){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,a.default.displays[e]?new a.default.displays[e](this.element,this.options):new a.default.displays.webform(this.element,this.options)}},{key:"form",get:function(){return this._form},set:function(e){return this.setForm(e)}},{key:"errorForm",value:function(e){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof e?e:e.message}]}}},{key:"setForm",value:function(e){var t,n=this;if("string"==typeof(e=e||this.form)){var r,o=new i.GlobalFormio(e);t=this.getSubmission(o,this.options).catch((function(e){r=e})).then((function(t){return o.loadForm().catch((function(e){r=e})).then((function(o){if(r&&(o=n.errorForm(r)),n.instance=n.instance||n.create(o.display),n.instance.url=e,n.instance.nosubmit=!1,n._form=n.instance.form=o,t&&(n.instance.submission=t),r)throw r;return n.instance}))}))}else this.instance=this.instance||this.create(e.display),this._form=this.instance.form=e,t=this.instance.ready;return t.then((function(){return n.element=n.instance.element,n.instance}))}},{key:"getSubmission",value:function(e,t){return e.submissionId?e.loadSubmission(null,t):u.default.resolve()}},{key:"setDisplay",value:function(e){return this.display===e&&this.instance?u.default.resolve(this.instance):(this.form.display=e,this.instance.destroy(),this.instance=this.create(e),this.setForm(this.form))}},{key:"empty",value:function(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}},{key:"sanitize",value:function(e,t){return!1!==this.options.sanitize||t?s.sanitize(e,this.options):e}},{key:"setContent",value:function(e,t,n){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n),!0)}},{key:"build",value:function(){var e=this;if(!this.instance)return u.default.reject("Form not ready. Use form.ready promise");if(!this.element)return u.default.reject("No DOM element for form.");var t=this.options&&this.options.template?this.options.template:"bootstrap",n=l.default[t].loader||l.default.bootstrap.loader;return this.setContent(this.element,n.form),this.render().then((function(t){return e.setContent(e.element,t),e.attach(e.element).then((function(){return e.instance}))})).then((function(t){return e.emit("build",t),t}))}},{key:"render",value:function(){var e=this;return this.instance?u.default.resolve(this.instance.render()).then((function(t){return e.emit("render",t),t})):u.default.reject("Form not ready. Use form.ready promise")}},{key:"attach",value:function(e){var t=this;return this.instance?(this.element=e,this.instance.attach(this.element).then((function(e){return t.emit("attach",e),e}))):u.default.reject("Form not ready. Use form.ready promise")}}])&&h(r.prototype,o),c&&h(r,c),Object.defineProperty(r,"prototype",{writable:!1}),d}(o.default);t.default=g,i.GlobalFormio.embedForm=function(e){return g.embed(e)},i.GlobalFormio.createForm=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(g,t).ready},i.GlobalFormio.Form=g},78682:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=n(19161),o=i(n(57104));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return a=f()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o},a.apply(null,arguments)}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var h,m,y,v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,i,a,l=(t=p,n=f(),function(){var e,r=d(t);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return c(this,e)});function p(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),t=t||{},n=n||{},l.call(this,e,t,Object.assign(n,p.options,r.GlobalFormio.options&&r.GlobalFormio.options.builder?r.GlobalFormio.options.builder:{}))}return i=p,(a=[{key:"create",value:function(e){return o.default.builders[e]?new o.default.builders[e](this.element,this.options):new o.default.builders.webform(this.element,this.options)}}])&&s(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),p}(i(n(71277)).default);t.default=v,h=v,y={},(m=p(m="options"))in h?Object.defineProperty(h,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[m]=y,r.GlobalFormio.builder=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(v,t).ready},r.GlobalFormio.FormBuilder=v},19161:function(e,t,n){"use strict";n(96649),n(96078),n(69070),n(47042),n(68309),n(91038),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GlobalFormio=void 0,n(79753),n(74916),n(4723),n(64765),n(82772),n(92222),n(24603),n(39714),n(15306),n(69600),n(26699),n(32023),n(91058),n(19601),n(89554),n(41539),n(54747),n(9653),n(57327),n(2707),n(21249),n(85827),n(83710),n(32564),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948);var r=m(n(91459)),o=m(n(87559)),i=m(n(85542)),a=m(n(4389)),l=m(n(10695)),s=m(n(25325)),u=m(n(27361)),c=m(n(50361)),f=m(n(91747)),d=n(82531),p=m(n(96245));n(5127);var h=m(n(44964));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function k(e){var t=function(e,t){if("object"!==O(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===O(t)?t:String(t)}function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}var _=(0,o.default)({Promise:r.default}),S=_.fetch,P=_.Headers,j=function(e){return null==e},x=function(e){return e&&"object"===O(e)};function E(e){var t=(0,c.default)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}var C,A,T=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,e),!(this instanceof e))return new e(t);if(this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.path=t,this.options=r,r.useSessionToken&&e.useSessionToken(r),r.hasOwnProperty("base")?this.base=r.base:e.baseUrl?this.base=e.baseUrl:"undefined"!=typeof window&&(this.base=window.location.href.match(/http[s]?:\/\/api./)[0]),!t)return this.projectUrl=e.projectUrl||"".concat(this.base,"/project"),this.projectsUrl="".concat(this.base,"/project"),this.projectId=!1,void(this.query="");r.hasOwnProperty("project")&&(this.projectUrl=r.project);var o=this.projectUrl||e.projectUrl,i=/(^|\/)(project)($|\/[^/]+)/,a=-1!==t.search(i);o&&this.base===o&&!a&&(this.noProject=!0,this.projectUrl=this.base),0!==t.indexOf("http")&&0!==t.indexOf("//")&&(t=this.base+t);var l=this.getUrlParts(t),s=[],u=l[1]+l[2],c=(t=l.length>3?l[3]:"").split("?");c.length>1&&(t=c[0],this.query="?".concat(c[1]));var f=function(e,r){n["".concat(e,"sUrl")]="".concat(r,"/").concat(e);var o=new RegExp("/".concat(e,"/([^/]+)"));return-1!==t.search(o)&&(s=t.match(o),n["".concat(e,"Url")]=s?r+s[0]:"",n["".concat(e,"Id")]=s.length>1?s[1]:"",r+=s[0]),r},d=function e(t,n,r){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];if(Array.isArray(i))e(i,n,!0);else{var a=f(i,n);n=r?n:a}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||a||"Subdirectories"!==e.pathType)this.projectUrl=u;else{var p="^".concat(u.replace(/\//g,"\\/"),".[^/]+"),h=o.match(new RegExp(p));this.projectUrl=h?h[0]:u}var m=!1;if(e.pathType&&(m="Subdomains"!==e.pathType),!this.noProject){if(a)d(["project"],u),t=t.replace(i,"");else if(u===this.base){if(l.length>3&&t.split("/").length>1){var y=t.match(/.json/),v=t.split("/");y?this.projectUrl=u:(v.shift(),this.projectId=v.shift(),t="/".concat(v.join("/")),this.projectUrl="".concat(u,"/").concat(this.projectId))}}else l.length>2&&(l[2].split(".").length>2||u.includes("localhost"))&&!m&&(this.projectUrl=u,this.projectId=l[2].split(".")[0]);this.projectsUrl=this.projectsUrl||"".concat(this.base,"/project")}if(d(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(t))d(["form",["submission","action","v"]],this.projectUrl);else{var b=new RegExp("/(submission|action|v)($|/.*)"),w=t.match(b);this.pathType=w&&w.length>1?w[1]:"",t=(t=t.replace(b,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=t?this.projectUrl+t:"",this.formId=t.replace(/^\/+|\/+$/g,"");var k=["submission","action","v"];for(var O in k)if(k.hasOwnProperty(O)){var _=k[O];this["".concat(_,"sUrl")]="".concat(this.projectUrl+t,"/").concat(_),this.pathType===_&&w.length>2&&w[2]&&(this["".concat(_,"Id")]=w[2].replace(/^\/+|\/+$/g,""),this["".concat(_,"Url")]=this.projectUrl+t+w[0])}}e.projectUrlSet||(e.projectUrl=this.projectUrl)}var t,o,i;return t=e,o=[{key:"delete",value:function(t,n){var o="".concat(t,"Id"),i="".concat(t,"Url");return this[o]?(e.cache={},this.makeRequest(t,this[i],"delete",null,n)):r.default.reject("Nothing to delete")}},{key:"index",value:function(t,n,r){var o="".concat(t,"Url");return(n=n||"")&&x(n)&&(n="?".concat(e.serialize(n.params))),this.makeRequest(t,this[o]+n,"get",null,r)}},{key:"save",value:function(t,n,r){var o="".concat(t,"Id"),i="".concat(t,"Url"),a=this[o]||n._id?"put":"post",l=this[o]?this[i]:this["".concat(t,"sUrl")];return this[o]||!n._id||"put"!==a||l.includes(n._id)||(l+="/".concat(n._id)),e.cache={},this.makeRequest(t,l+this.query,a,n,r)}},{key:"load",value:function(t,n,o){var i="".concat(t,"Id"),a="".concat(t,"Url");if(n&&x(n)&&(n=e.serialize(n.params)),n=n?this.query?"".concat(this.query,"&").concat(n):"?".concat(n):this.query,!this[i])return r.default.reject("Missing ".concat(i));var l=this[a]+n;return"form"!==t||isNaN(parseInt(this.vId))||0===parseInt(this.vId)||(l+=l.match(/\?/)?"&":"?",l+="formRevision=".concat(this.vId)),this.makeRequest(t,l,"get",null,o)}},{key:"makeRequest",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.makeRequest.apply(e,[this].concat(n))}},{key:"loadProject",value:function(e,t){return this.load("project",e,t)}},{key:"saveProject",value:function(e,t){return this.save("project",e,t)}},{key:"deleteProject",value:function(e){return this.delete("project",e)}},{key:"loadRole",value:function(e){return this.load("role",null,e)}},{key:"saveRole",value:function(e,t){return this.save("role",e,t)}},{key:"deleteRole",value:function(e){return this.delete("role",e)}},{key:"loadRoles",value:function(e){return this.index("roles",null,e)}},{key:"loadForm",value:function(t,n){var r=this;return this.load("form",t,n).then((function(o){return!o.revisions||isNaN(parseInt(r.vId))||"current"===o.revisions&&r.submissionId||o._vid==r.vId||o.revisionId===r.vId?o:(t&&x(t)&&(t=e.serialize(t.params)),t=t?r.query?"".concat(r.query,"&").concat(t):"?".concat(t):r.query,r.makeRequest("form",r.vUrl+t,"get",null,n).then((function(e){return o._vid=e._vid,o.components=e.components,o.settings=e.settings,o.revisionId=e.revisionId,Object.assign({},o)})).catch((function(){return Object.assign({},o)})))}))}},{key:"saveForm",value:function(e,t){return this.save("form",e,t)}},{key:"deleteForm",value:function(e){return this.delete("form",e)}},{key:"loadForms",value:function(e,t){return this.index("forms",e,t)}},{key:"loadSubmission",value:function(e,t){var n=this;return this.load("submission",e,t).then((function(e){return n.vId=e._frid||e._fvid,n.vUrl="".concat(n.formUrl,"/v/").concat(n.vId),e}))}},{key:"saveSubmission",value:function(e,t){return isNaN(parseInt(this.vId))||(e._fvid=this.vId),this.save("submission",e,t)}},{key:"deleteSubmission",value:function(e){return this.delete("submission",e)}},{key:"loadSubmissions",value:function(e,t){return this.index("submissions",e,t)}},{key:"loadAction",value:function(e,t){return this.load("action",e,t)}},{key:"saveAction",value:function(e,t){return this.save("action",e,t)}},{key:"deleteAction",value:function(e){return this.delete("action",e)}},{key:"loadActions",value:function(e,t){return this.index("actions",e,t)}},{key:"availableActions",value:function(){return this.makeRequest("availableActions","".concat(this.formUrl,"/actions"))}},{key:"actionInfo",value:function(e){return this.makeRequest("actionInfo","".concat(this.formUrl,"/actions/").concat(e))}},{key:"isObjectId",value:function(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}},{key:"getProjectId",value:function(){return this.projectId?this.isObjectId(this.projectId)?r.default.resolve(this.projectId):this.loadProject().then((function(e){return e._id})):r.default.resolve("")}},{key:"getFormId",value:function(){return this.formId?this.isObjectId(this.formId)?r.default.resolve(this.formId):this.loadForm().then((function(e){return e._id})):r.default.resolve("")}},{key:"currentUser",value:function(t){return e.currentUser(this,t)}},{key:"accessInfo",value:function(){return e.accessInfo(this)}},{key:"oauthLogoutURI",value:function(t,n){return e.oauthLogoutURI(t,Object.assign({formio:this},this.options,n))}},{key:"getToken",value:function(t){return e.getToken(Object.assign({formio:this},this.options,t))}},{key:"setToken",value:function(t,n){return e.setToken(t,Object.assign({formio:this},this.options,n))}},{key:"getTempToken",value:function(t,n,o){if(!e.getToken(o))return r.default.reject("You must be authenticated to generate a temporary auth token.");var i=e.authUrl||this.projectUrl;return this.makeRequest("tempToken","".concat(i,"/token"),"GET",null,{ignoreCache:!0,header:new P({"x-expire":t,"x-allow":n})})}},{key:"getDownloadUrl",value:function(e){var t=this;if(!this.submissionId)return r.default.resolve("");if(!e)return this.loadForm().then((function(e){return e?t.getDownloadUrl(e):""}));var n="/project/".concat(e.project);n+="/form/".concat(e._id),n+="/submission/".concat(this.submissionId);var o=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";n+=o;var i=this.base+n;return new r.default((function(e,r){t.getTempToken(3600,"GET:".concat(n)).then((function(t){i+="?token=".concat(t.key),e(i)}),(function(){e(i)})).catch(r)}))}},{key:"uploadFile",value:function(t,n,r,o,i,a,s,u,c,f,d,p,h){var m=this,y={provider:t,method:"upload",file:n,fileName:r,dir:o};u=u||"file";var v=e.pluginWait("preRequest",y).then((function(){return e.pluginGet("fileRequest",y).then((function(e){if(t&&j(e)){var y=l.default.getProvider("storage",t);if(y){var v=new y(m);return d&&d(),v.uploadFile(n,r,o,i,a,s,u,c,f,p,h)}throw"Storage provider not found"}return e||{url:""}}))}));return e.pluginAlter("wrapFileRequestPromise",v,y)}},{key:"downloadFile",value:function(t,n){var r=this,o={method:"download",file:t},i=e.pluginWait("preRequest",o).then((function(){return e.pluginGet("fileRequest",o).then((function(e){if(t.storage&&j(e)){var o=l.default.getProvider("storage",t.storage);if(o)return new o(r).downloadFile(t,n);throw"Storage provider not found"}return e||{url:""}}))}));return e.pluginAlter("wrapFileRequestPromise",i,o)}},{key:"deleteFile",value:function(t,n){var r=this,o={method:"delete",file:t},i=e.pluginWait("preRequest",o).then((function(){return e.pluginGet("fileRequest",o).then((function(e){if(t.storage&&j(e)){var o=l.default.getProvider("storage",t.storage);if(o)return new o(r).deleteFile(t,n);throw"Storage provider not found"}return e||{url:""}}))}));return e.pluginAlter("wrapFileRequestPromise",i,o)}},{key:"userPermissions",value:function(e,t,n){return r.default.all([void 0!==t?r.default.resolve(t):this.loadForm(),void 0!==e?r.default.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():r.default.resolve(n),this.accessInfo()]).then((function(e){var t=e.shift(),n=e.shift()||{_id:!1,roles:[]},r=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},a={user:n,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(var l in o.roles)if(o.roles.hasOwnProperty(l)){var c=o.roles[l];if(c.default&&!1===n._id)n.roles.push(c._id);else if(c.admin&&-1!==n.roles.indexOf(c._id))return a.create=!0,a.read=!0,a.delete=!0,a.edit=!0,a}if(t&&t.submissionAccess)for(var f=0;f<t.submissionAccess.length;f++){var p=t.submissionAccess[f],h=y(p.type.split("_"),2),m=h[0],v=h[1];["create","read","update","delete"].includes(m)&&(0,s.default)(p.roles,n.roles).length&&(a[i[m]]="all"===v||!r||n._id===r.owner)}return r&&(0,d.eachComponent)(t.components,(function(e,t){if(e&&e.defaultPermission){var o=(0,u.default)(r.data,t);(Array.isArray(o)?o:[o]).forEach((function(t){t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(a[i.read]=!0),"create"===e.defaultPermission&&(a[i.create]=!0,a[i.read]=!0),"write"===e.defaultPermission&&(a[i.create]=!0,a[i.read]=!0,a[i.update]=!0),"admin"===e.defaultPermission&&(a[i.create]=!0,a[i.read]=!0,a[i.update]=!0,a[i.delete]=!0))}))}})),a}))}},{key:"canSubmit",value:function(){var t=this;return this.userPermissions().then((function(n){return!n.create&&e.getUser()?t.userPermissions(null).then((function(t){return!!t.create&&(e.setUser(null),!0)})):n.create}))}},{key:"getUrlParts",value:function(t){return e.getUrlParts(t,this)}}],i=[{key:"useSessionToken",value:function(t){var n="".concat(t.namespace||e.namespace||"formio","Token"),r=localStorage.getItem(n);r&&(localStorage.removeItem(n),sessionStorage.setItem(n,r));var o="".concat(t.namespace||e.namespace||"formio","User"),i=localStorage.getItem(o);i&&(localStorage.removeItem(o),sessionStorage.setItem(o,i)),localStorage.setItem("useSessionToken",!0)}},{key:"loadProjects",value:function(t,n){return x(t=t||"")&&(t="?".concat(e.serialize(t.params))),e.makeStaticRequest("".concat(e.baseUrl,"/project").concat(t),"GET",null,n)}},{key:"getUrlParts",value:function(t,n){var r=n&&n.base?n.base:e.baseUrl,o="^(http[s]?:\\/\\/)";return r&&0===t.indexOf(r)?o+="(".concat(r.replace(/^http[s]?:\/\//,""),")"):o+="([^/]+)",o+="($|\\/.*)",t.match(new RegExp(o))}},{key:"serialize",value:function(e,t){var n,r=[];for(var o in e)e.hasOwnProperty(o)&&r.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent((n=e[o],t?t(n):n))));return r.join("&")}},{key:"getRequestArgs",value:function(e,t,n,r,o,i){r=(r||"GET").toUpperCase(),i&&x(i)||(i={});var a={url:n,method:r,data:o||null,opts:i};return t&&(a.type=t),e&&(a.formio=e),a}},{key:"makeStaticRequest",value:function(t,n,r,o){var i=e.getRequestArgs(null,"",t,n,r,o),a=e.pluginWait("preRequest",i).then((function(){return e.pluginGet("staticRequest",i).then((function(t){return j(t)?e.request(i.url,i.method,i.data,i.opts.header,i.opts):t}))}));return e.pluginAlter("wrapStaticRequestPromise",a,i)}},{key:"makeRequest",value:function(t,n,r,o,i,a){if(!t)return e.makeStaticRequest(r,o,i,a);var l=e.getRequestArgs(t,n,r,o,i,a);l.opts=l.opts||{},l.opts.formio=t,l.opts.headers||(l.opts.headers={}),l.opts.headers=(0,f.default)(l.opts.headers,{Accept:"application/json","Content-type":"application/json"});var s=e.pluginWait("preRequest",l).then((function(){return e.pluginGet("request",l).then((function(t){return j(t)?e.request(l.url,l.method,l.data,l.opts.header,l.opts):t}))}));return e.pluginAlter("wrapRequestPromise",s,l)}},{key:"request",value:function(t,n,o,i,a){if(!t)return r.default.reject("No url provided");var l=e;n=(n||"GET").toUpperCase(),O(a)===O(!0)&&(a={ignoreCache:a}),a&&x(a)||(a={});var s=btoa(encodeURI(t));if(!a.ignoreCache&&"GET"===n&&l.cache.hasOwnProperty(s))return r.default.resolve(E(l.cache[s]));var u=i||new P(a.headers||{Accept:"application/json","Content-type":"application/json"}),c=l.getToken(a);c&&!a.noToken&&u.append("x-jwt-token",c);var f={};u.forEach((function(e,t){f[t]=e}));var d={method:n,headers:f,mode:"cors"};o&&(d.body=JSON.stringify(o)),((d=l.pluginAlter("requestOptions",d,t)).namespace||l.namespace)&&(a.namespace=d.namespace||l.namespace);var p=d.headers["x-jwt-token"],h=l.pluginAlter("wrapFetchRequestPromise",l.fetch(t,d),{url:t,method:n,data:o,opts:a}).then((function(e){if(!(e=l.pluginAlter("requestResponse",e,l,o)).ok){if(440===e.status)l.setToken(null,a),l.events.emit("formio.sessionExpired",e.body);else if(401===e.status)l.events.emit("formio.unauthorized",e.body);else if(416===e.status)l.events.emit("formio.rangeIsNotSatisfiable",e.body);else if(504===e.status)return r.default.reject(new Error("Network request failed"));return(e.headers.get("content-type").includes("application/json")?e.json():e.text()).then((function(e){return r.default.reject(e)}))}var i=e.headers.get("x-jwt-token"),s=!1;return"GET"!==n||p||!i||a.external||t.includes("token=")||t.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),e.status>=200&&e.status<300&&i&&""!==i&&!s&&l.setToken(i,a),204===e.status?{}:(e.headers.get("content-type").includes("application/json")?e.json():e.text()).then((function(t){var n=e.headers.get("content-range");if(n&&x(t)){if("*"!==(n=n.split("/"))[0]){var r=n[0].split("-");t.skip=Number(r[0]),t.limit=r[1]-r[0]+1}t.serverCount="*"===n[1]?n[1]:Number(n[1])}if(!a.getHeaders)return t;var o={};return e.headers.forEach((function(e,t){o[t]=e})),{result:t,headers:o}}))})).then((function(e){return a.getHeaders?e:("GET"===n&&(l.cache[s]=e),E(e))})).catch((function(e){return"Bad Token"===e&&(l.setToken(null,a),l.events.emit("formio.badToken",e)),e.message&&((e=new Error("Could not connect to API server (".concat(e.message,"): ").concat(t))).networkError=!0),"GET"===n&&delete l.cache[s],r.default.reject(e)}));return h}},{key:"token",get:function(){return e.tokens||(e.tokens={}),e.tokens.formioToken||""},set:function(t){e.tokens||(e.tokens={}),e.tokens.formioToken=t||""}},{key:"setToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;t=t||"";var o="".concat((n="string"==typeof n?{namespace:n}:n||{}).namespace||e.namespace||"formio","Token");e.tokens||(e.tokens={});var i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!t){n.fromUser||(n.fromToken=!0,e.setUser(null,n));try{i.removeItem(o)}catch(e){a.default.erase(o,{path:"/"})}return e.tokens[o]=t,r.default.resolve(null)}if(e.tokens[o]!==t){e.tokens[o]=t;try{i.setItem(o,t)}catch(e){a.default.set(o,t,{path:"/"})}}return this.currentUserResolved?e.currentUser(n.formio,n):r.default.resolve(null)}},{key:"getToken",value:function(t){var n="".concat((t="string"==typeof t?{namespace:t}:t||{}).namespace||e.namespace||"formio","Token"),r=t.decode?"".concat(n,"Decoded"):n;if(e.tokens||(e.tokens={}),e.tokens[r])return e.tokens[r];try{var o=localStorage.getItem("useSessionToken")?sessionStorage.getItem(n):localStorage.getItem(n);return e.tokens[n]=o||"",t.decode?(e.tokens[r]=e.tokens[n]?(0,p.default)(e.tokens[n]):{},e.tokens[r]):e.tokens[n]}catch(t){return e.tokens[n]=a.default.get(n),e.tokens[n]}}},{key:"oauthLogoutURI",value:function(t,n){var r="".concat((n="string"==typeof n?{namespace:n}:n||{}).namespace||e.namespace||"formio","LogoutAuthUrl");return e.tokens[r],localStorage.setItem(r,t),e.tokens[r]}},{key:"setUser",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(n.namespace||e.namespace||"formio","User"),o=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!t){n.fromToken||(n.fromUser=!0,e.setToken(null,n)),e.events.emit("formio.user",null);try{return o.removeItem(r)}catch(e){return a.default.erase(r,{path:"/"})}}try{o.setItem(r,JSON.stringify(t))}catch(e){a.default.set(r,JSON.stringify(t),{path:"/"})}e.events.emit("formio.user",t)}},{key:"getUser",value:function(t){var n="".concat((t=t||{}).namespace||e.namespace||"formio","User");try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(n)||null)}catch(e){return JSON.parse(a.default.get(n))}}},{key:"setBaseUrl",value:function(t){e.baseUrl=t,e.projectUrlSet||(e.projectUrl=t)}},{key:"getBaseUrl",value:function(){return e.baseUrl}},{key:"setApiUrl",value:function(t){return e.setBaseUrl(t)}},{key:"getApiUrl",value:function(){return e.getBaseUrl()}},{key:"setAppUrl",value:function(t){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),e.projectUrl=t,e.projectUrlSet=!0}},{key:"setProjectUrl",value:function(t){e.projectUrl=t,e.projectUrlSet=!0}},{key:"setAuthUrl",value:function(t){e.authUrl=t}},{key:"getAppUrl",value:function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),e.projectUrl}},{key:"getProjectUrl",value:function(){return e.projectUrl}},{key:"clearCache",value:function(){e.cache={}}},{key:"noop",value:function(){}},{key:"identity",value:function(e){return e}},{key:"deregisterPlugin",value:function(t){var n=e.plugins.length;return e.plugins=e.plugins.filter((function(n){return n!==t&&n.__name!==t||((n.deregister||e.noop).call(t,e),!1)})),n!==e.plugins.length}},{key:"registerPlugin",value:function(t,n){var r=e;r.plugins.push(t),r.plugins.sort((function(e,t){return(t.priority||0)-(e.priority||0)})),t.__name=n,(t.init||r.noop).call(t,r)}},{key:"getPlugin",value:function(t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e.plugins);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.__name===t)return o}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"pluginWait",value:function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.all(e.plugins.map((function(n){var r;return(r=n[t]||e.noop).call.apply(r,[n].concat(o))})))}},{key:"pluginGet",value:function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a=function n(i){var a,l=e.plugins[i];return l?r.default.resolve((a=l[t]||e.noop).call.apply(a,[l].concat(o))).then((function(e){return j(e)?n(i+1):e})):r.default.resolve(null)};return a(0)}},{key:"pluginAlter",value:function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return e.plugins.reduce((function(n,r){return(r[t]||e.identity).apply(void 0,[n].concat(o))}),n)}},{key:"accessInfo",value:function(t){var n=t?t.projectUrl:e.projectUrl;return e.makeRequest(t,"accessInfo","".concat(n,"/access"))}},{key:"projectRoles",value:function(t){var n=t?t.projectUrl:e.projectUrl;return e.makeRequest(t,"projectRoles","".concat(n,"/role"))}},{key:"currentUser",value:function(t,n){var o=this,i=e.authUrl;i||(i=t?t.projectUrl:e.projectUrl||e.baseUrl),i+="/current";var a=e.getUser(n);if(a)return e.pluginAlter("wrapStaticRequestPromise",r.default.resolve(a),{url:i,method:"GET",options:n});var l=e.getToken(n);return n&&n.external||l?(this.currentUserResolved=!1,e.makeRequest(t,"currentUser",i,"GET",null,n).then((function(t){return o.currentUserResolved=!0,e.setUser(t,n),t}))):e.pluginAlter("wrapStaticRequestPromise",r.default.resolve(null),{url:i,method:"GET",options:n})}},{key:"logout",value:function(t,n){(n=n||{}).formio=t;var r=e.authUrl?e.authUrl:t?t.projectUrl:e.baseUrl,o=function(){e.setToken(null,n),e.setUser(null,n),e.clearCache(),localStorage.removeItem("useSessionToken")};return e.makeRequest(t,"logout","".concat(r,"/logout")).then((function(e){return o(),e})).catch((function(e){throw o(),e}))}},{key:"pageQuery",value:function(){var e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&"),n=[];return location.search.substr(1).split("&").forEach((function(t){(n=t.split("=")).length>1&&(e[n[0]]=n[1]&&decodeURIComponent(n[1]))})),t.forEach((function(t){(n=t.split("=")).length>1?e[n[0]]=n[1]&&decodeURIComponent(n[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}},{key:"oAuthCurrentUser",value:function(t,n){return e.currentUser(t,{external:!0,headers:{Authorization:"Bearer ".concat(n)}})}},{key:"samlInit",value:function(t){t=t||{};var n=e.pageQuery();if(n.saml){e.setUser(null);var r=e.setToken(n.saml),o=window.location.toString();return o=o.substring(0,o.indexOf("?")),window.location.hash&&(o+=window.location.hash),window.history.replaceState({},document.title,o),r}t.relay||(t.relay=window.location.href);var i=e.authUrl||e.projectUrl;return window.location.href="".concat(i,"/saml/sso?relay=").concat(encodeURI(t.relay)),!1}},{key:"oktaInit",value:function(t){if(t=t||{},void 0!==("undefined"==typeof OktaAuth?"undefined":O(OktaAuth))&&(t.OktaAuth=OktaAuth),void 0===O(t.OktaAuth)){var n="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(n),r.default.reject(n)}return new r.default((function(n,r){var o=t.OktaAuth;delete t.OktaAuth;var i=new o(t);i.tokenManager.get("accessToken").then((function(o){o?n(e.oAuthCurrentUser(t.formio,o.accessToken)):location.hash?i.token.parseFromUrl().then((function(r){i.tokenManager.add("accessToken",r),n(e.oAuthCurrentUser(t.formio,r.accessToken))})).catch((function(e){console.warn(e),r(e)})):(i.token.getWithRedirect({responseType:"token",scopes:t.scopes}),n(!1))})).catch((function(e){r(e)}))}))}},{key:"ssoInit",value:function(t,n){switch(t){case"saml":return e.samlInit(n);case"okta":return e.oktaInit(n);default:return console.warn("Unknown SSO type"),r.default.reject("Unknown SSO type")}}},{key:"requireLibrary",value:function(t,n,o,i,a){if(!e.libraries.hasOwnProperty(t)){e.libraries[t]={},e.libraries[t].ready=new r.default((function(n,r){e.libraries[t].resolve=n,e.libraries[t].reject=r}));var l="".concat(t,"Callback");i||window[l]||(window[l]=function(){return e.libraries[t].resolve()});var s=(0,u.default)(window,n);if(s)e.libraries[t].resolve(s);else if((o=Array.isArray(o)?o:[o]).forEach((function(n){var r={},o="";switch("string"==typeof n&&(n={type:"script",src:n}),n.type){case"script":o="script",r={src:n.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":o="link",r={href:n.src,rel:"stylesheet"}}var i=document.createElement(o);if(i.setAttribute)for(var l in r)i.setAttribute(l,r[l]);a&&i.addEventListener("load",(function(){e.libraries[t].loaded=!0,a(e.libraries[t].ready)}));var s=document.head;s&&s.appendChild(i)})),i)var c=setInterval((function(){var r=(0,u.default)(window,n);r&&(clearInterval(c),e.libraries[t].resolve(r))}),200)}var f=e.libraries[t];return a&&f.loaded?a(f.ready):f.ready}},{key:"libraryReady",value:function(t){return e.libraries.hasOwnProperty(t)&&e.libraries[t].ready?e.libraries[t].ready:r.default.reject("".concat(t," library was not required."))}},{key:"addToGlobal",value:function(t){"object"!==O(t)||t.Formio||(t.Formio=e)}},{key:"setPathType",value:function(t){"string"==typeof t&&(e.pathType=t)}},{key:"getPathType",value:function(){return e.pathType}},{key:"rulesEntities",get:function(){return{ValueSources:e.ValueSources,Conjunctions:e.Conjunctions,Operators:e.Operators,Transformers:e.Transformers,QuickRules:e.QuickRules,Rules:e.Rules}}},{key:"GlobalFormio",get:function(){return void 0!==n.g&&n.g.Formio?n.g.Formio:"undefined"!=typeof window&&window.Formio?window.Formio:e}}],o&&w(t.prototype,o),i&&w(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();C=T,(A=k(A="currentUserResolved"))in C?Object.defineProperty(C,A,{value:true,enumerable:!0,configurable:!0,writable:!0}):C[A]=true,T.libraries={},T.Promise=r.default,T.fetch=S,T.Headers=P,T.baseUrl="https://api.form.io",T.projectUrl=T.baseUrl,T.authUrl="",T.projectUrlSet=!1,T.plugins=[],T.cache={},T.Providers=l.default,T.version="4.21.2",T.pathType="",T.events=new i.default,T.cdn=new h.default,(T.version||"").includes("rc")&&T.cdn.setBaseUrl("https://cdn.test-form.io"),void 0!==n.g&&T.addToGlobal(n.g),"undefined"!=typeof window&&T.addToGlobal(window);var M=T.GlobalFormio;t.GlobalFormio=M;var R=T;t.default=R},48254:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539),n(88674),n(69826),n(69600),n(68309),n(73210),n(68304),n(24812),n(30489);var o=s(n(91459)),i=n(19161),a=s(n(12215)),l=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=h(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},p.apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(d,e);var t,n,r,a,s=(r=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(r);if(a){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function d(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t.display="pdf",(n=s.call(this,e,t)).components=[],n}return t=d,n=[{key:"init",value:function(){var e=this;p(v(d.prototype),"init",this).call(this),this.on("iframe-submission",(function(t){return e.setValue(t,{fromIframe:!0})}),!0),this.on("iframe-change",(function(t){return e.setValue(t,{fromIframe:!0})}),!0),this.on("iframe-getIframePositions",(function(t){var n=document.getElementById("iframe-".concat(t.formId));if(n){var r=n.getBoundingClientRect();e.postMessage({name:"iframePositions",data:{formId:t.formId,iframe:{top:r.top},scrollY:window.scrollY||window.pageYOffset}})}})),this.on("iframe-ready",(function(){return e.iframeReadyResolve()}),!0)}},{key:"render",value:function(){return this.submitButton=this.addComponent({disabled:this.form.disableWizardSubmit,input:!0,type:"button",action:"submit",internal:!0,label:"Submit",key:"submit",ref:"button",hidden:this.isSubmitButtonHidden()}),this.renderTemplate("pdf",{submitButton:this.submitButton.render(),classes:"formio-form-pdf",children:this.renderComponents()})}},{key:"redraw",value:function(){return this.postMessage({name:"redraw"}),this.builderMode?o.default.resolve():p(v(d.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),o.default.resolve()):(this.postMessage({name:"redraw"}),p(v(d.prototype),"rebuild",this).call(this))}},{key:"attachComponents",value:function(e,t,n){return t=t||this.components,n=n||this.component.components,e=this.hook("attachComponents",e,t,n,this),Promise.resolve()}},{key:"attach",value:function(e){var t=this;return p(v(d.prototype),"attach",this).call(this,e).then((function(){t.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),t.submitButton.refs=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.refs),t.submitButton.attachButton(),t.iframeReady=new o.default((function(e,n){t.iframeReadyResolve=e,t.iframeReadyReject=n})),t.iframeElement=t.ce("iframe",{src:t.getSrc(),id:"iframe-".concat(t.id),seamless:!0,class:"formio-iframe"}),t.iframeElement.formioContainer=t.component.components,t.iframeElement.formioComponent=t,t.empty(t.refs.iframeContainer),t.appendChild(t.refs.iframeContainer,t.iframeElement),t.form.base=i.GlobalFormio.getBaseUrl(),t.form.projectUrl=i.GlobalFormio.getProjectUrl(),t.postMessage({name:"form",data:t.form});var n=t.components.find((function(e){return e.element===t.refs.button}));n&&t.refs.button.classList.toggle("hidden",!n.visible),t.addEventListener(t.refs.zoomIn,"click",(function(e){e.preventDefault(),t.postMessage({name:"zoomIn"})})),t.addEventListener(t.refs.zoomOut,"click",(function(e){e.preventDefault(),t.postMessage({name:"zoomOut"})}));var r=(0,l.fastCloneDeep)(t.form);t.formio&&(r.projectUrl=t.formio.projectUrl,r.url=t.formio.formUrl,r.base=t.formio.base,t.postMessage({name:"token",data:t.formio.getToken()})),t.emit("attach")}))}},{key:"getSubmission",value:function(){var e=this;return new o.default((function(t){e.once("iframe-submission",t),e.postMessage({name:"getSubmission"})}))}},{key:"submitForm",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.postMessage({name:"getErrors"}),this.getSubmission().then((function(){return p(v(d.prototype),"submitForm",e).call(e,t)}))}},{key:"getSrc",value:function(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";var e="".concat(this._form.settings.pdf.src,".html"),t=["id=".concat(this.id)];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&t.push("checkboxbackground=1"),this.options.readOnly&&t.push("readonly=1"),this.options.zoom&&t.push("zoom=".concat(this.options.zoom)),this.builderMode&&t.push("builder=1"),t.length&&(e+="?".concat(t.join("&"))),e}},{key:"setForm",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(v(d.prototype),"setForm",this).call(this,e,n).then((function(){t.formio&&(e.projectUrl=t.formio.projectUrl,e.url=t.formio.formUrl,e.base=t.formio.base,t.postMessage({name:"token",data:t.formio.getToken()})),t.postMessage({name:"form",data:t.form})}))}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=p(v(d.prototype),"setValue",this).call(this,e,n);return n&&n.fromIframe||this.once("iframe-ready",(function(){r&&t.postMessage({name:"submission",data:e})})),r}},{key:"postMessage",value:function(e){var t=this;this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then((function(){!t.iframeElement||!t.iframeElement.contentWindow||"form"===e.name&&t.iframeFormSetUp||(t.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),t.iframeFormSetUp="form"===e.name)})))}},{key:"focusOnComponent",value:function(e){this.postMessage({name:"focusErroredField",data:e})}},{key:"clear",value:function(){}},{key:"showErrors",value:function(e,t){var n,r=document.getElementById("submit-error"),o=this.t("submitError"),i=(null===(n=this.refs.buttonMessage)||void 0===n?void 0:n.textContent.trim())===o;if(!r&&this.errors.length&&!i){var a=this.ce("p",{class:"help-block"});this.setContent(a,o),a.addEventListener("click",(function(){window.scrollTo(0,0)}));var l=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(a,l),this.appendTo(l,this.element)}!this.errors.length&&r&&r.remove(),p(v(d.prototype),"showErrors",this).call(this,e,t)}},{key:"isSubmitButtonHidden",value:function(){var e=!1;return(0,l.eachComponent)(this.component.components,(function(t){"button"!==t.type||"submit"!==t.action&&t.action||(e=t.hidden||!1)})),e}}],n&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(a.default);t.default=b,"undefined"!=typeof window&&window.addEventListener("message",(function(e){var t=null;try{t=JSON.parse(e.data)}catch(e){t=null}t&&t.name&&t.formId&&i.GlobalFormio.forms.hasOwnProperty(t.formId)&&i.GlobalFormio.forms[t.formId].emit("iframe-".concat(t.name),t.data)}))},6487:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(79753),n(32165),n(91038),n(47042),n(68309),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(92222),n(66992),n(41539),n(78783),n(33948),n(60285),n(41637),n(26699),n(32023),n(24812),n(89554),n(54747),n(65743),n(68304),n(30489);var o=d(n(96486)),i=d(n(91459)),a=n(19161),l=d(n(95529)),s=n(82531),u=n(32725),c=d(n(1848)),f=d(n(48254));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},v.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function w(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(h,e);var t,n,r,l,d=(r=h,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(r);if(l){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function h(){var e,t,n;return m(this,h),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!0,n.display="pdf",(e=t?d.call(this,t,n):d.call(this,n)).dragDropEnabled=!1,w(e)}return t=h,(n=[{key:"defaultGroups",get:function(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}},{key:"hasPDF",get:function(){return o.default.has(this.webform.form,"settings.pdf")}},{key:"projectUrl",get:function(){return this.options.projectUrl||a.GlobalFormio.getProjectUrl()}},{key:"init",value:function(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}},{key:"render",value:function(){var e=this;return this.renderTemplate("pdfBuilder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map((function(t){return e.renderTemplate("builderSidebarGroup",{group:e.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[t].subgroups.map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})}))})}))}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}},{key:"attach",value:function(e){var t=this;if(!this.hasPDF){if(this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",hiddenFileInputElement:"single",uploadError:"single",uploadProgress:"single",uploadProgressWrapper:"single",dragDropText:"single"}),this.addEventListener(this.refs["pdf-upload-button"],"click",(function(e){e.preventDefault()})),this.projectUrl?this.setUploadError():this.setUploadError('Form options.projectUrl not set. Please set the "projectUrl" property of the options for this form or use Formio.setProjectUrl(). This setting is necessary to upload a pdf background.'),this.refs.fileDrop){var n=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(e){return this.className="fileSelector",e.preventDefault(),n.upload(e.dataTransfer.files[0]),!1}))}return this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",(function(e){e.preventDefault(),"function"==typeof t.refs.hiddenFileInputElement.trigger?t.refs.hiddenFileInputElement.trigger("click"):t.refs.hiddenFileInputElement.click()})),this.addEventListener(this.refs.hiddenFileInputElement,"change",(function(){t.refs.hiddenFileInputElement.value&&(t.upload(t.refs.hiddenFileInputElement.files[0]),t.refs.hiddenFileInputElement.value="")}))),i.default.resolve()}return v(k(h.prototype),"attach",this).call(this,e).then((function(){return t.loadRefs(t.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),t.afterAttach(),t.element}))}},{key:"afterAttach",value:function(){var e=this;this.on("saveComponent",(function(t){e.webform.postMessage({name:"updateElement",data:t})})),this.on("removeComponent",(function(t){e.webform.postMessage({name:"removeElement",data:t})})),this.initIframeEvents(),this.updateDropzoneDimensions();var t=this.refs.sidebar;t&&(this.addClass(t,"disabled"),this.webform.on("iframe-ready",(function(){e.pdfLoaded=!0,e.updateDragAndDrop(),e.removeClass(t,"disabled")}),!0))}},{key:"upload",value:function(e){var t=this,n=new a.GlobalFormio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),n.uploadFile("url",e,e,"",(function(e){if(t.refs.uploadProgress){var n=Math.floor(e.loaded/e.total*100);t.refs.uploadProgress.style.width="".concat(n,"%"),t.refs.uploadProgress.innerHTML=n>98?t.t("Converting PDF. Please wait."):"".concat(t.t("Uploading")," ").concat(n,"%")}}),"".concat(this.projectUrl,"/upload"),{},"file").then((function(e){var n,r=!1;if(null!==(n=e.data.formfields)&&void 0!==n&&n.components&&e.data.formfields.components.length){var i,a,l,s="submit"===(null===(i=t.webform.form.components[0])||void 0===i?void 0:i.key),u="page1"===(null===(a=t.webform.form.components[0])||void 0===a?void 0:a.key)&&0===(null===(l=t.webform.form.components[0])||void 0===l?void 0:l.components.length),c=0===t.webform.form.components.length;(s||u||c)&&(r=!0,t.webform.form.components=e.data.formfields.components)}t.refs.dragDropText&&(t.refs.dragDropText.style.display="inherit"),t.refs.uploadProgressWrapper&&(t.refs.uploadProgressWrapper.style.display="none"),o.default.set(t.webform.form,"settings.pdf",{id:e.data.file,src:e.data.filesServer?"".concat(e.data.filesServer).concat(e.data.path):"".concat(new URL(t.projectUrl).origin,"/pdf-proxy").concat(e.data.path),nonFillableConversionUsed:r&&e.data.formfields.nonFillableConversionUsed}),t.emit("pdfUploaded",e.data),t.redraw()})).catch((function(e){return t.setUploadError(e)}))}},{key:"setUploadError",value:function(e){this.refs.uploadError&&(this.refs.uploadError.style.display=e?"":"none",this.refs.uploadError.innerHTML=e)}},{key:"createForm",value:function(e){var t=this;return e.skipInit=!1,e.hideLoader=!0,this.webform=new f.default(this.element,e),this.webform.on("attach",(function(){t.refs.iframeDropzone&&!p(t.refs.form.children).includes(t.refs.iframeDropzone)&&t.prependTo(t.refs.iframeDropzone,t.refs.form)})),this.webform}},{key:"destroy",value:function(e){v(k(h.prototype),"destroy",this).call(this,e),this.webform.destroy(e)}},{key:"getParentContainer",value:function(e){var t=[],n=null;return(0,u.eachComponent)(this.webform._form.components,(function(r,o,i){if(r.id===e.component.id)return t=i,n=r,!0}),!0),{formioComponent:e.parent,formioContainer:t,originalComponent:n}}},{key:"initIframeEvents",value:function(){var e=this;this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",(function(t){var n=e.webform.getComponentById(t.id);return n&&n.component&&(n.component.overlay={page:t.page,left:t.left,top:t.top,height:t.height,width:t.width},e.options.noNewEdit||n.component.noNewEdit||e.editComponent(n.component,e.getParentContainer(n),!0),e.emit("updateComponent",n.component)),n})),this.webform.on("iframe-componentUpdate",(function(t){var n=e.webform.getComponentById(t.id);return n&&n.component&&(n.component.overlay={page:t.overlay.page,left:t.overlay.left,top:t.overlay.top,height:t.overlay.height,width:t.overlay.width},e.emit("updateComponent",n.component),e.emit("change",e.form)),n})),this.webform.on("iframe-componentClick",(function(t){var n=e.webform.getComponentById(t.id);n&&e.editComponent(n.component,e.getParentContainer(n))}),!0)}},{key:"initDropzoneEvents",value:function(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",(function(e){return e.preventDefault(),!1})),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}},{key:"updateDragAndDrop",value:function(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}},{key:"prepSidebarComponentsForDrag",value:function(){var e=this;this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach((function(t){p(t.children).forEach((function(t){t.draggable=!0,t.setAttribute("draggable",!0),e.removeEventListener(t,"dragstart"),e.removeEventListener(t,"dragend"),e.addEventListener(t,"dragstart",e.onDragStart.bind(e),!0),e.addEventListener(t,"dragend",e.onDragEnd.bind(e),!0),e.addEventListener(t,"drag",(function(e){e.target.style.cursor="none"}))}))}))}},{key:"updateDropzoneDimensions",value:function(){if(this.refs.iframeDropzone){var e=(0,s.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=e&&e.height?"".concat(e.height,"px"):"1000px",this.refs.iframeDropzone.style.width=e&&e.width?"".concat(e.width,"px"):"100%"}}},{key:"onDragStart",value:function(e){var t=e.offsetX,n=void 0===t?0:t,r=e.offsetY,o=void 0===r?0:r;this.itemOffsetX=n,this.itemOffsetY=o,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled"),this.dropEmitted=!1}},{key:"onDropzoneDrop",value:function(e){return this.dropEmitted=!0,this.dropEvent=e,e.preventDefault(),!1}},{key:"onDragEnd",value:function(e){var t=this.webform.refs.iframeContainer.getBoundingClientRect(),n=this.dropEvent?this.dropEvent.layerX:null,r=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),!this.dropEvent){if(!(!this.dropEmitted&&((0,s.getBrowserInfo)().chrome||(0,s.getBrowserInfo)().edge)&&"macOS"===globalThis.navigator.userAgentData.platform&&t.left<e.clientX&&t.top<e.clientY))return;this.dropEvent=e,this.dropEvent.dataTransfer.effectAllowed="all",this.dropEmitted=!0}var i=e.target,a=i.getAttribute("data-type"),l=i.getAttribute("data-key"),u=i.getAttribute("data-group"),f=(0,s.fastCloneDeep)(this.schemas[a]);if(l&&u){var d=this.getComponentInfo(l,u);o.default.merge(f,d)}c.default.uniquify([this.webform._form],f),this.webform._form.components.push(f),f.overlay={top:r?r-this.itemOffsetY+20:e.clientY-t.top-2*(this.itemOffsetY-20),left:n?n-this.itemOffsetX:e.clientX-t.left-2*this.itemOffsetX,width:100,height:20},this.webform.addComponent(f,{},null,!0),this.webform.postMessage({name:"addElement",data:f}),this.emit("addComponent",f,this.webform,f.key,this.webform.component.components.length,!this.options.noNewEdit&&!f.noNewEdit),this.dropEvent=null,e.target.style.cursor="default"}},{key:"highlightInvalidComponents",value:function(){var e=this,t=this.findRepeatablePaths();o.default.isEqual(this.repeatablePaths,t)||((0,u.eachComponent)(this.webform.getComponents(),(function(t,n){e.repeatablePaths.includes(n)&&e.webform.postMessage({name:"updateElement",data:t.component})})),this.repeatablePaths=t),t.length&&(0,u.eachComponent)(this.webform.getComponents(),(function(t,n){e.repeatablePaths.includes(n)&&e.webform.postMessage({name:"showBuilderErrors",data:{compId:t.component.id,errorMessage:"API Key is not unique: ".concat(t.key)}})}))}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(l.default);t.default=O},12215:function(e,t,n){"use strict";n(69070),n(68304),n(30489),n(12419),n(78011),n(74819),n(38880),n(47941),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(24812),n(82772),n(74916),n(19601),n(32564),n(73210),n(92222),n(79753),n(89554),n(41539),n(54747),n(57327),n(91058),n(26699),n(32023),n(21249),n(68309),n(96649),n(96078),n(82526),n(41817),n(9653);var r=m(n(96486)),o=m(n(30381)),i=m(n(39803)),a=m(n(85542)),l=m(n(96073)),s=m(n(68204)),u=n(19161),c=m(n(91459)),f=m(n(39086)),d=m(n(67329)),p=n(82531),h=n(32725);function m(e){return e&&e.__esModule?e:{default:e}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=O(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},k.apply(this,arguments)}function O(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function S(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function x(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===y(t)?t:String(t)}function C(e){var t;return(e=r.default.defaults(e,{submitOnEnter:!1,iconset:(t=e&&e.icons?e.icons:u.GlobalFormio.icons,"fontawesome"===t?"fa":t||""),i18next:l.default,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form",cdnUrl:u.GlobalFormio.cdn.baseUrl})).events||(e.events=new a.default),e}u.GlobalFormio.forms={},u.GlobalFormio.registerComponent=f.default.setComponent;var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(d,e);var t,n,a,l,f=(a=d,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(a);if(l){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function d(){var e,t,n;g(this,d),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],x(P(e=f.call(this,null,C(n))),"executeShortcuts",(function(t){var n=t.target;if(e.keyboardCatchableElement(n)){var o=t.ctrlKey||t.metaKey,i=t.keyCode,a="";65<=i&&i<=90?a=String.fromCharCode(i):13===i?a="Enter":27===i&&(a="Esc"),r.default.each(e.shortcuts,(function(e){e.ctrl&&!o||e.shortcut===a&&(e.element.click(),t.preventDefault())}))}})),e.element=t,u.GlobalFormio.forms[e.id]=P(e),e.options.baseUrl&&u.GlobalFormio.setBaseUrl(e.options.baseUrl);var o=s.default;return n&&n.i18n&&!n.i18nReady&&(n.i18n.resources?o=n.i18n:r.default.each(n.i18n,(function(e,t){"options"===t?r.default.merge(o,e):o.resources[t]?r.default.assign(o.resources[t].translation,e):o.resources[t]={translation:r.default.assign((0,p.fastCloneDeep)(s.default.resources.en.translation),e)}})),n.i18n=o,n.i18nReady=!0),n&&n.i18n?e.options.i18n=n.i18n:e.options.i18n=o,e.options.language&&(e.options.i18n.lng=e.options.language),e.type="form",e._src="",e._loading=!1,e._form={},e.draftEnabled=!1,e.savingDraft=!0,e.options.saveDraftThrottle?e.triggerSaveDraft=r.default.throttle(e.saveDraft.bind(P(e)),e.options.saveDraftThrottle):e.triggerSaveDraft=e.saveDraft.bind(P(e)),e.customErrors=[],e.nosubmit=!1,e.submitted=!1,e.submitting=!1,e.formio=null,e.loader=null,e.alert=null,e.onSubmission=null,e.submissionSet=!1,e.formReady=new c.default((function(t,n){e.formReadyResolve=t,e.formReadyReject=n})),e.submissionReady=new c.default((function(t,n){e.submissionReadyResolve=t,e.submissionReadyReject=n})),e.shortcuts=[],e.localize().then((function(){e.language=e.options.language})),e.options.saveDraft&&e.formReady.then((function(){if(e.options.skipDraftRestore)e.draftEnabled=!0,e.savingDraft=!1;else{var t=u.GlobalFormio.getUser();t&&!e.submissionSet&&e.restoreDraft(t._id)}})),e.component.clearOnHide=!1,e.root=P(e),e.localRoot=P(e),e}return t=d,n=[{key:"language",get:function(){return this.options.language},set:function(e){var t=this;if(this.options.language=e,this.i18next.language!==e)try{this.i18next.changeLanguage(e,(function(e){e||(t.rebuild(),t.emit("languageChanged"))}))}catch(e){return}}},{key:"emptyValue",get:function(){return null}},{key:"componentContext",value:function(){return this._data}},{key:"componentComponents",get:function(){return this.form.components}},{key:"shadowRoot",get:function(){return this.options.shadowRoot}},{key:"addLanguage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=r.default.assign((0,p.fastCloneDeep)(s.default.resources.en.translation),t);this.i18next.addResourceBundle(e,"translation",o,!0,!0),n&&(this.language=e)}},{key:"localize",value:function(){var e=this;return this.i18next.initialized?c.default.resolve(this.i18next):(this.i18next.initialized=!0,new c.default((function(t,n){try{e.i18next.init(b(b({},e.options.i18n),{compatibilityJSON:"v3"}),(function(r){if(e.options.language=e.i18next.language.split(";")[0],r)return n(r);t(e.i18next)}))}catch(e){return n(e)}})))}},{key:"keyboardCatchableElement",value:function(e){return"TEXTAREA"!==e.nodeName&&("INPUT"!==e.nodeName||-1===["text","email","password"].indexOf(e.type))}},{key:"addShortcut",value:function(e,t){if(t&&/^([A-Z]|Enter|Esc)$/i.test(t))if("Enter"===(t=r.default.capitalize(t))||"Esc"===t){if("BUTTON"!==e.tagName)return;this.shortcuts.push({shortcut:t,element:e})}else this.shortcuts.push({ctrl:!0,shortcut:t,element:e})}},{key:"removeShortcut",value:function(e,t){t&&/^([A-Z]|Enter|Esc)$/i.test(t)&&r.default.remove(this.shortcuts,{shortcut:t,element:e})}},{key:"src",get:function(){return this._src},set:function(e){this.setSrc(e)}},{key:"loadSubmission",value:function(){var e=this;return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then((function(t){return e.setSubmission(t)}),(function(t){return e.submissionReadyReject(t)})).catch((function(t){return e.submissionReadyReject(t)})):this.submissionReadyResolve(),this.submissionReady}},{key:"setSrc",value:function(e,t){var n=this;return this.setUrl(e,t)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then((function(e){var t=n.setForm(e);return n.loadSubmission(),t})).catch((function(e){console.warn(e),n.formReadyReject(e)}))):c.default.resolve()}},{key:"url",get:function(){return this._src},set:function(e){this.setUrl(e)}},{key:"setUrl",value:function(e,t){return!(!e||"string"!=typeof e||e===this._src||(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new u.GlobalFormio(e,t),"form"===this.type&&(this.options.src=e),0))}},{key:"ready",get:function(){var e=this;return this.formReady.then((function(){return k(j(d.prototype),"ready",e).then((function(){return!e.loadingSubmission||e.submissionReady}))}))}},{key:"loading",get:function(){return this._loading},set:function(e){if(this._loading!==e){if(this._loading=e,!this.loader&&e){this.loader=this.ce("div",{class:"loader-wrapper"});var t=this.ce("div",{class:"loader text-center"});this.loader.appendChild(t)}if(this.loader)try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}}},{key:"setForm",value:function(e,t){var n,o=this,a=this._form&&(null===(n=this._form.components)||void 0===n?void 0:n.length);try{var l,s;if(a&&JSON.stringify(this._form)===JSON.stringify(e))return c.default.resolve();if(this._form=null!=t&&t.keepAsReference?e:r.default.cloneDeep(e),this.onSetForm&&this.onSetForm(r.default.cloneDeep(this._form),e),null!==(l=this.parent)&&void 0!==l&&null!==(s=l.component)&&void 0!==s&&s.modalEdit)return c.default.resolve()}catch(e){return console.warn(e),c.default.resolve()}if(e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),e&&e.properties&&(this.options.properties=e.properties),this.options.sanitizeConfig||this.builderMode||(this.options.sanitizeConfig=r.default.get(e,"settings.sanitizeConfig")||r.default.get(e,"globalSettings.sanitizeConfig")),"schema"in e&&(0,i.default)(e.schema,"1.x")>0&&this.ready.then((function(){o.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")})),e&&e.module){var f=null;if("string"==typeof e.module)try{f=this.evaluate("return ".concat(e.module))}catch(e){console.warn(e)}else f=e.module;f&&(u.GlobalFormio.use(f),f.options&&f.options.form&&(this.options=Object.assign(this.options,f.options.form)))}return this.initialized=!1,(this.rebuild()||c.default.resolve()).then((function(){return o.emit("formLoad",e),o.triggerCaptcha(),setTimeout((function(){o.onChange(t),o.formReadyResolve()}),0),o.formReady}))}},{key:"form",get:function(){return this._form||(this._form={components:[]}),this._form},set:function(e){this.setForm(e)}},{key:"submission",get:function(){return this.getValue()},set:function(e){this.setSubmission(e)}},{key:"setSubmission",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=b(b({},n),{},{fromSubmission:!r.default.has(n,"fromSubmission")||n.fromSubmission}),this.onSubmission=this.formReady.then((function(r){return r&&(n=b(b({},n),r)),t.submissionSet=!0,t.triggerChange(n),t.emit("beforeSetSubmission",e),t.setValue(e,n),t.submissionReadyResolve(e)}),(function(e){return t.submissionReadyReject(e)})).catch((function(e){return t.submissionReadyReject(e)}))}},{key:"handleDraftError",value:function(e,t,n){var o=r.default.trim("".concat(this.t(e)," ").concat(t||""));console.warn(o),this.emit(n?"restoreDraftError":"saveDraftError",t||o)}},{key:"saveDraft",value:function(){var e=this;if(this.draftEnabled)if(this.formio)if(u.GlobalFormio.getUser()){var t=(0,p.fastCloneDeep)(this.submission);t.state="draft",this.savingDraft||this.submitting||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(t).then((function(t){e.submission._id=t._id,e.savingDraft=!1,e.emit("saveDraft",t)})).catch((function(t){e.savingDraft=!1,e.handleDraftError("saveDraftError",t)})))}else this.handleDraftError("saveDraftAuthError");else this.handleDraftError("saveDraftInstanceError")}},{key:"restoreDraft",value:function(e){var t=this,n=this.formio||this.options.formio;n?(this.savingDraft=!0,n.loadSubmissions({params:{state:"draft",owner:e}}).then((function(e){if(e.length>0&&!t.options.skipDraftRestore){var n=(0,p.fastCloneDeep)(e[0]);return t.setSubmission(n).then((function(){t.draftEnabled=!0,t.savingDraft=!1,t.emit("restoreDraft",n)}))}t.draftEnabled=!0,t.savingDraft=!1,t.emit("restoreDraft",null)})).catch((function(e){t.draftEnabled=!0,t.savingDraft=!1,t.handleDraftError("restoreDraftError",e,!0)}))):this.handleDraftError("restoreDraftInstanceError",null,!0)}},{key:"schema",get:function(){var e=(0,p.fastCloneDeep)(r.default.omit(this._form,["components"]));return e.components=[],this.eachComponent((function(t){return e.components.push(t.schema)})),e}},{key:"mergeData",value:function(e,t){r.default.mergeWith(e,t,(function(e,t){if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return t}))}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.data||(e={data:{}}),this._submission.metadata=e.metadata||{},this.editing=!!e._id,!this.options.submissionTimezone&&e.metadata&&e.metadata.timezone&&(this.options.submissionTimezone=e.metadata.timezone);var n=k(j(d.prototype),"setValue",this).call(this,e.data,t);return t.sanitize||this.mergeData(this.data,e.data),e.data=this.data,this._submission=e,n}},{key:"getValue",value:function(){return this._submission.data||(this._submission.data={}),this.viewOnly||(this._submission.data=this.data),this._submission}},{key:"init",value:function(){var e=this;return this._submission=this._submission||{data:{}},this.components&&this.components.length&&(this.destroyComponents(),this.components=[]),this.component?this.component.components=this.form?this.form.components:[]:this.component=this.form,this.component.type="form",this.component.input=!1,this.addComponents(),this.on("submitButton",(function(t){e.submit(!1,t).catch((function(e){return!1!==e&&console.log(e)}))}),!0),this.on("checkValidity",(function(t){return e.checkValidity(t,!0,t)}),!0),this.on("requestUrl",(function(t){return e.submitUrl(t.url,t.headers)}),!0),this.on("resetForm",(function(){return e.resetValue()}),!0),this.on("deleteSubmission",(function(){return e.deleteSubmission()}),!0),this.on("refreshData",(function(){return e.updateValue()}),!0),this.executeFormController(),this.formReady}},{key:"executeFormController",value:function(){var e=this;if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then((function(){e.evaluate(e.form.controller,{components:e.components,instance:e})}))}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),e&&(this.emit("formDelete",this.id),delete u.GlobalFormio.forms[this.id]),k(j(d.prototype),"destroy",this).call(this)}},{key:"build",value:function(e){var t=this;return e||this.element?this.ready.then((function(){e=e||t.element,k(j(d.prototype),"build",t).call(t,e)})):this.ready}},{key:"getClassName",value:function(){var e="formio-form";return this.options.readOnly&&(e+=" formio-read-only"),e}},{key:"render",value:function(){return k(j(d.prototype),"render",this).call(this,this.renderTemplate("webform",{classes:this.getClassName(),children:this.renderComponents()}),this.builderMode?"builder":"form",!0)}},{key:"redraw",value:function(){return this.element?(this.clear(),this.setContent(this.element,this.render()),this.attach(this.element)):c.default.resolve()}},{key:"attach",value:function(e){var t=this;this.element=e,this.loadRefs(e,{webform:"single"});var n=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",e,this),n.then((function(){return t.emit("render",t.element),t.setValue(t._submission,{noUpdateEvent:!0})}))}},{key:"hasRequiredFields",value:function(){var e=!1;return(0,h.eachComponent)(this.form.components,(function(t){if(t.validate.required)return e=!0,!0}),!0),e}},{key:"resetValue",value:function(){r.default.each(this.getComponents(),(function(e){return e.resetValue()})),this.setPristine(!0),this.onChange({resetValue:!0})}},{key:"setAlert",value:function(e,t,n){var r=this;if(e||!this.submitted)if(this.options.noAlerts)t||this.emit("error",!1);else{if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((function(e){r.removeEventListener(e,"click"),r.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null}catch(e){}if(t){var o={class:n&&n.classes||"alert alert-".concat(e),id:"error-list-".concat(this.id)},i={message:t instanceof HTMLElement?t.outerHTML:t,attrs:o,type:e};this.alert=(0,p.convertStringToHTMLElement)(this.renderTemplate("alert",i),"#".concat(o.id))}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((function(e){r.addEventListener(e,"click",(function(e){var t=e.currentTarget.dataset.componentKey;r.focusOnComponent(t)})),r.addEventListener(e,"keydown",(function(e){if(13===e.keyCode){e.preventDefault();var t=e.currentTarget.dataset.componentKey;r.focusOnComponent(t)}}))})),this.prepend(this.alert))}else this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((function(e){r.removeEventListener(e,"click"),r.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null)}},{key:"focusOnComponent",value:function(e){if(e){var t=this.getComponent(e);t&&t.focus()}}},{key:"showErrors",value:function(e,t,n){var o=this;this.loading=!1;var i=this.errors;if(e?Array.isArray(e)?i=i.concat(e):i.push(e):i=k(j(d.prototype),"errors",this),(i=i.concat(this.customErrors)).length){i.forEach((function(e){var t=e.components,n=void 0===t?[]:t;e.component&&n.push(e.component),e.path&&n.push(e.path),n.forEach((function(t){var n=o._parentPath+(0,p.getStringFromComponentPath)(t),i=o.getComponent(t,r.default.identity,n);e.fromServer&&(i.serverErrors?i.serverErrors.push(e):i.serverErrors=[e]),r.default.compact(Array.isArray(i)?i:[i]).forEach((function(t){return t.setCustomValidity(e.message,!0)}))}))}));var a=[];i.forEach((function(e){if(e){var t=function(t,n){var i=!r.default.isUndefined(n)&&e.messages&&e.messages[n],a=i&&i.formattedKeyOrPath||i.path||e.component&&e.component.key||e.fromServer&&e.path,l=a?(0,p.getStringFromComponentPath)(a):"";return l=o._parentPath+l,"string"==typeof e||e.formattedKeyOrPath||(e.formattedKeyOrPath=l),{message:(0,p.unescapeHTML)(t),keyOrPath:l}};if(e.messages=r.default.uniqBy(e.messages,(function(e){return e.message})),e.messages&&e.messages.length){var n=e.component;e.messages.forEach((function(e,r){var i=e.message,l=e.context,s=e.fromServer,u=null!=l&&l.hasLabel||s?o.t("alertMessage",{message:o.t(i)}):o.t("alertMessageWithLabel",{label:o.t(n.label),message:o.t(i)});a.push(t(u,r))}))}else if(e){var i=r.default.isObject(e)?o.t("alertMessage",{message:o.t(e.message||"")}):o.t("alertMessage",{message:o.t(e)});a.push(t(i))}}}));var l=this.renderTemplate("errorsList",{errors:a});return this.root.setAlert("danger",l),t&&this.emit("error",i),i}this.setAlert(!1)}},{key:"onSubmit",value:function(e,t){var n;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,p.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success","<p>".concat(this.t("complete"),"</p>")),this.draftEnabled&&null!==(n=this.triggerSaveDraft)&&void 0!==n&&n.cancel&&this.triggerSaveDraft.cancel(),this.emit("submit",e,t),t&&this.emit("submitDone",e),e}},{key:"normalizeError",value:function(e){return e&&("object"===y(e)&&"details"in e&&(e=e.details),"string"==typeof e&&(e={message:e})),e}},{key:"onSubmissionError",value:function(e){if(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e||this.errors),e&&e.silent)return this.emit("change",{isValid:!0},{silent:!0}),!1;var t=this.showErrors(e,!0);return this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),t}},{key:"onChange",value:function(e,t,n,o){e=e||{};var i=!1;t&&t.component&&(this.customErrors=this.customErrors.filter((function(e){return e.component&&e.component!==t.component.key}))),k(j(d.prototype),"onChange",this).call(this,e,!0);var a=r.default.clone(this.submission);if(e.changed=a.changed=t,e.changes=o,n&&this.pristine&&(this.pristine=!1),a.isValid=this.checkData(a.data,e),this.loading=!1,this.submitted){var l=r.default.filter(this.serverErrors||[],(function(e){return!e.component&&!e.path}));this.showErrors(l.length?l:null)}n&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit("change",a,e,n),i=!0),i&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}},{key:"checkData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=k(j(d.prototype),"checkData",this).call(this,e,t);return(r.default.isEmpty(t)||t.noValidate)&&this.submitted&&this.showErrors(),n}},{key:"deleteSubmission",value:function(){var e=this;return this.formio.deleteSubmission().then((function(){e.emit("submissionDeleted",e.submission),e.resetValue()}))}},{key:"cancel",value:function(e){return this.hook("beforeCancel",!0)&&(e||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}},{key:"setMetadata",value:function(e){e.metadata=e.metadata||{},r.default.defaults(e.metadata,{timezone:r.default.get(this,"_submission.metadata.timezone",(0,p.currentTimezone)()),offset:parseInt(r.default.get(this,"_submission.metadata.offset",(0,o.default)().utcOffset()),10),origin:document.location.origin,referrer:document.referrer,browserName:navigator.appName,userAgent:navigator.userAgent,pathName:window.location.pathname,onLine:navigator.onLine})}},{key:"submitForm",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clearServerErrors(),new c.default((function(n,o){if(e.options.readOnly)return n({submission:e.submission,saved:!1});var i=(0,p.fastCloneDeep)(e.submission||{});e.setMetadata(i),i.state=t.state||"submitted";var a="draft"===i.state;e.hook("beforeSubmit",b(b({},i),{},{component:t.component}),(function(l,s){return l?o(l):(i._vnote=s&&s._vnote?s._vnote:"",a||i.data?a||e.checkValidity(i.data,!0)?(e.everyComponent((function(e){i._vnote&&"form"===e.type&&e.component.reference&&(r.default.get(i.data,e.path,{})._vnote=i._vnote),"client-only"===e.component.persistent&&r.default.unset(i.data,e.path)})),void e.hook("customValidation",b(b({},i),{},{component:t.component}),(function(t){if(t)return"string"==typeof t&&(t={message:t}),t=Array.isArray(t)?t:[t],e.customErrors=t,o();if(e.loading=!0,e._form&&e._form.action){var r=i.data._id&&e._form.action.includes(i.data._id)?"PUT":"POST";return u.GlobalFormio.makeStaticRequest(e._form.action,r,i,e.formio?e.formio.options:{}).then((function(e){return n({submission:e,saved:!0})})).catch((function(t){return e.setServerErrors(t),o(t)}))}var a=e.formio;if(e.nosubmit||!a)return n({submission:i,saved:!1});a[a.actionUrl?"saveAction":"saveSubmission"](i).then((function(e){return n({submission:e,saved:!0})})).catch((function(t){return e.setServerErrors(t),o(t)}))}))):o():o("Invalid Submission"))}))}))}},{key:"setServerErrors",value:function(e){e.details?this.serverErrors=e.details.filter((function(e){return e.level?"error"===e.level:e})).map((function(e){return e.fromServer=!0,e})):"string"==typeof e&&(this.serverErrors=[{fromServer:!0,level:"error",message:e}])}},{key:"executeSubmit",value:function(e){var t=this;return this.submitted=!0,this.submitting=!0,this.submitForm(e).then((function(e){var n=e.submission,r=e.saved;return t.onSubmit(n,r)})).then((function(e){return t.submissionInProcess=!1,e})).catch((function(e){return t.submissionInProcess=!1,c.default.reject(t.onSubmissionError(e))}))}},{key:"clearServerErrors",value:function(){var e,t=this;null===(e=this.serverErrors)||void 0===e||e.forEach((function(e){if(e.path){var n=(0,p.getArrayFromComponentPath)(e.path),o=t.getComponent(n,r.default.identity,e.formattedKeyOrPath);o&&(o.serverErrors=[])}})),this.serverErrors=[]}},{key:"submit",value:function(e,t){var n=this;return this.submissionInProcess=!0,e?this.executeSubmit(t):this.beforeSubmit(t).then((function(){return n.executeSubmit(t)}))}},{key:"submitUrl",value:function(e,t){var n=this;if(!e)return console.warn("Missing URL argument");var r=this.submission||{},o=e,i={method:"POST",headers:{}};if(t&&t.length>0&&t.map((function(e){""!==e.header&&""!==e.value&&(i.headers[e.header]=n.interpolate(e.value,r))})),!o||!i)return this.emit("error","You should add a URL to this button."),this.setAlert("warning","You should add a URL to this button."),console.warn("You should add a URL to this button.");u.GlobalFormio.makeStaticRequest(o,i.method,r,{headers:i.headers}).then((function(){n.emit("requestDone"),n.setAlert("success","<p> Success </p>")})).catch((function(e){n.showErrors("".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),n.emit("error","".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),console.error("".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),n.setAlert("danger","<p> ".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e," </p>"))}))}},{key:"triggerCaptcha",value:function(){if(this&&this.components){var e=[];(0,h.eachComponent)(this.components,(function(t){/^(re)?captcha$/.test(t.type)&&"formLoad"===t.component.eventType&&e.push(t)})),e.length>0&&e[0].verify("".concat(this.form.name?this.form.name:"form","Load"))}}},{key:"nosubmit",get:function(){return this._nosubmit||!1},set:function(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}},{key:"conditions",get:function(){var e,t;return null!==(e=null===(t=this.schema.settings)||void 0===t?void 0:t.conditions)&&void 0!==e?e:[]}},{key:"variables",get:function(){var e,t;return null!==(e=null===(t=this.schema.settings)||void 0===t?void 0:t.variables)&&void 0!==e?e:[]}}],n&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(d.default);t.default=A,A.setBaseUrl=u.GlobalFormio.setBaseUrl,A.setApiUrl=u.GlobalFormio.setApiUrl,A.setAppUrl=u.GlobalFormio.setAppUrl},95529:function(e,t,n){"use strict";n(69070),n(68304),n(30489),n(12419),n(78011),n(74819),n(38880),n(49337),n(33321),n(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(2707),n(57327),n(41539),n(74916),n(15306),n(26699),n(32023),n(68309),n(24812),n(47941),n(82772),n(79753),n(92222),n(89554),n(54747),n(47042),n(4723),n(69600),n(91038),n(78783),n(69826),n(34553),n(5212),n(40561),n(66992),n(51532),n(33948),n(23157),n(92087),n(96649),n(96078),n(82526),n(41817),n(9653);var r=h(n(12215)),o=h(n(64430)),i=h(n(31051)),a=h(n(91459)),l=h(n(39086)),s=n(19161),u=n(82531),c=n(32725),f=h(n(1848)),d=h(n(96486)),p=h(n(2201));function h(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},O.apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=x(e)););return e}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function P(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function E(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===m(t)?t:String(t)}n(89395);var A,T=s.GlobalFormio.Templates;T||(T=n(51508).default),"undefined"!=typeof window&&(A=n(91130));var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(v,e);var t,n,o,h,m=(o=v,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=x(o);if(h){var n=x(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return P(this,e)});function v(){var e,t,n;w(this,v),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!1,n.display=n.display||"form",E(j(e=m.call(this,null,n)),"moveHandler",(function(t){38!==t.keyCode&&40!==t.keyCode&&13!==t.keyCode||(t.stopPropagation(),t.preventDefault()),38===t.keyCode&&e.updateComponentPlacement(!0),40===t.keyCode&&e.updateComponentPlacement(!1),13===t.keyCode&&e.stopMoving(e.selectedComponent)})),e.element=t,e.builderHeight=0,e.schemas={},e.repeatablePaths=[],e.sideBarScroll=d.default.get(e.options,"sideBarScroll",!0),e.sideBarScrollOffset=d.default.get(e.options,"sideBarScrollOffset",0),e.dragDropEnabled=!0,e.builder=d.default.defaultsDeep({},e.options.builder,e.defaultGroups),d.default.each(e.defaultGroups,(function(t,n){!1===t&&(e.builder[n]=!1)})),e.groups={},e.groupOrder=[];var r=function(t){e.builder[t]&&(e.builder[t].key=t,e.groups[t]=e.builder[t],e.groups[t].components=e.groups[t].components||{},e.groups[t].componentOrder=e.groups[t].componentOrder||[],e.groups[t].subgroups=Object.keys(e.groups[t].groups||{}).map((function(n){return e.groups[t].groups[n].componentOrder=Object.keys(e.groups[t].groups[n].components).map((function(e){return e})),e.groups[t].groups[n]})),e.groupOrder.push(e.groups[t]))};for(var o in e.builder)r(o);for(var i in e.groupOrder=e.groupOrder.filter((function(e){return e&&!e.ignore})).sort((function(e,t){return e.weight-t.weight})).map((function(e){return e.key})),l.default.components){var a=l.default.components[i];if(a.builderInfo&&a.builderInfo.schema){e.schemas[i]=a.builderInfo.schema,a.type=i;var u=a.builderInfo;u.key=a.type,e.addBuilderComponentInfo(u)}}for(var c in e.groups){var f=e.groups[c];for(var p in f.components){var h="resource"===c?"component-".concat(p):p,y=f.components[h];!0===y&&l.default.components[p]&&l.default.components[p].builderInfo&&(y=l.default.components[p].builderInfo),y&&y.schema?(e.schemas[p]=y.schema,f.components[h]=y,f.components[h].key=p):delete f.components[h]}e.orderComponents(f)}e.options.hooks=e.options.hooks||{},e.options.hooks.renderComponent=function(t,n){var r,o,i=n.component,a=n.self;return"form"!==a.type||a.key?e.options.disabled&&e.options.disabled.includes(a.key)||a.parent.noDragDrop?t:e.renderTemplate("builderComponent",{html:t,disableBuilderActions:null==a||null===(r=a.component)||void 0===r?void 0:r.disableBuilderActions,childComponent:i,design:null==a||null===(o=a.options)||void 0===o?void 0:o.design}):e.hook("renderComponentFormTemplate",t.replace("formio-component-form",""))},e.options.hooks.renderComponents=function(t,n){var r=n.components,o=n.self;return"datagrid"===o.type&&r.length>0||o.noDragDrop?t:((!r||!r.length&&!r.nodrop||"form"===o.type&&r.length<=1&&(0===r.length||"button"===r[0].type))&&(t=e.renderTemplate("builderPlaceholder",{position:0})+t),e.renderTemplate("builderComponents",{key:o.key,type:o.type,html:t}))},e.options.hooks.renderInput=function(e,t){var n=t.self;return"hidden"===n.type?e+n.name:e},e.options.hooks.renderLoading=function(e,t){var n=t.self;return"form"===n.type&&n.key?n.name:e},e.options.hooks.attachComponents=function(t,n,r,o){if(t){if(o.noDragDrop)return t;var i=t.querySelector('[ref="'.concat(o.component.key,'-container"]'))||t;return i.formioContainer=r,i.formioComponent=o,e.dragula&&e.allowDrop(t)&&e.dragula.containers.push(i),("datagrid"===o.type||"datamap"===o.type)&&n.length>0?t:t.children[0]}},e.options.hooks.attachDatagrid=function(e,t){t.loadRefs(e,E({},"".concat(t.key,"-container"),"single"));var n=t.refs["".concat(t.key,"-container")];n&&t.attachComponents(n.parentNode,[],t.component.components)},e.options.hooks.attachComponent=e.attachComponent.bind(j(e));var b={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}};e.options&&e.options.resourceTag?b.params.tags=[e.options.resourceTag]:e.options&&e.options.hasOwnProperty("resourceTag")||(b.params.tags=["builder"]);var g=new s.GlobalFormio(s.GlobalFormio.projectUrl),k=e.options.builder&&!1===e.options.builder.resource;if(g.loadProject().then((function(t){if(t&&(d.default.get(t,"settings.addConfigToForms",!1)||d.default.get(t,"addConfigToForms",!1))){var n=t.config||{};e.options.formConfig=n;var r="webform._form.config",o=d.default.get(j(e),r);e.webform&&!o&&d.default.set(j(e),r,n)}})).catch((function(e){console.warn("Could not load project settings: ".concat(e.message||e))})),!g.noProject&&!k){var O=e.options.builder&&e.options.builder.resource;g.loadForms(b).then((function(t){t.length&&(e.builder.resource={title:O?O.title:"Existing Resource Fields",key:"resource",weight:O?O.weight:50,subgroups:[],components:[],componentOrder:[]},e.groups.resource={title:O?O.title:"Existing Resource Fields",key:"resource",weight:O?O.weight:50,subgroups:[],components:[],componentOrder:[]},e.groupOrder.includes("resource")||e.groupOrder.push("resource"),e.addExistingResourceFields(t))}))}return e.options.attachMode="builder",e.webform=e.webform||e.createForm(e.options),e.pathComponentsMapping={},e.arrayDataComponentPaths=[],e.nestedDataComponents=[],e.arrayDataComponents=[],e}return t=v,n=[{key:"allowDrop",value:function(){return!0}},{key:"addExistingResourceFields",value:function(e){var t=this;d.default.each(e,(function(e,n){var r="resource-".concat(e.name),o={key:r,title:e.title,components:[],componentOrder:[],default:0===n};(0,c.eachComponent)(e.components,(function(n){if("button"!==n.type&&(!t.options||!t.options.resourceFilter||n.tags&&-1!==n.tags.indexOf(t.options.resourceFilter))){var i=n.label;!i&&n.key&&(i=d.default.upperFirst(n.key)),o.componentOrder.push("component-".concat(n.key)),o.components["component-".concat(n.key)]=d.default.merge((0,u.fastCloneDeep)(l.default.components[n.type]?l.default.components[n.type].builderInfo:l.default.components.unknown.builderInfo),{key:n.key,title:i,group:"resource",subgroup:r},{schema:g(g({},n),{},{label:n.label,key:n.key,lockKey:!0,source:t.options.noSource?void 0:e._id,isNew:!0})})}}),!0),t.groups.resource.subgroups.push(o)})),this.triggerRedraw()}},{key:"attachTooltip",value:function(e,t){return(0,i.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:t})}},{key:"attachComponent",value:function(e,t){var n=this;if(!(t instanceof v)){if(e.formioComponent=t,t.loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),t.refs.copyComponent&&(this.attachTooltip(t.refs.copyComponent,this.t("Copy")),t.addEventListener(t.refs.copyComponent,"click",(function(){return n.copyComponent(t)}))),t.refs.pasteComponent){var r=this.attachTooltip(t.refs.pasteComponent,this.t("Paste below"));t.addEventListener(t.refs.pasteComponent,"click",(function(){r.hide(),n.pasteComponent(t)}))}t.refs.moveComponent&&(this.attachTooltip(t.refs.moveComponent,this.t("Move")),this.keyboardActionsEnabled&&t.addEventListener(t.refs.moveComponent,"click",(function(){n.moveComponent(t)})));var o=this.getParentElement(e);return t.refs.editComponent&&(this.attachTooltip(t.refs.editComponent,this.t("Edit")),t.addEventListener(t.refs.editComponent,"click",(function(){return n.editComponent(t.schema,o,!1,!1,t.component,{inDataGrid:t.isInDataGrid})}))),t.refs.editJson&&(this.attachTooltip(t.refs.editJson,this.t("Edit JSON")),t.addEventListener(t.refs.editJson,"click",(function(){return n.editComponent(t.schema,o,!1,!0,t.component)}))),t.refs.removeComponent&&(this.attachTooltip(t.refs.removeComponent,this.t("Remove")),t.addEventListener(t.refs.removeComponent,"click",(function(){return n.removeComponent(t.schema,o,t.component,t)}))),e}}},{key:"createForm",value:function(e){return this.webform=new r.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}},{key:"ready",get:function(){return this.webform.ready}},{key:"defaultGroups",get:function(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}},{key:"redraw",value:function(){return r.default.prototype.redraw.call(this)}},{key:"form",get:function(){return this.webform.form},set:function(e){this.setForm(e)}},{key:"schema",get:function(){return this.webform.schema}},{key:"container",get:function(){return this.webform.form.components}},{key:"findNamespaceRoot",value:function(e){var t=(0,u.getArrayFromComponentPath)(e.path),n=this.webform.getComponent(t);n=Array.isArray(n)?n[0]:n;var r=this.recurseNamespace(n);if(!r||this.form.key===r)return this.form.components;var o=e.component;if(r===e.key)return[].concat(y(o.components),[o]);var i=(0,c.getComponent)(this.form.components,r,!0);return i?i.components:n.components}},{key:"recurseNamespace",value:function(e){return e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree?e.key:this.recurseNamespace(e.parent):null}},{key:"render",value:function(){var e=this;return this.renderTemplate("builder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map((function(t){return e.renderTemplate("builderSidebarGroup",{group:e.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[t].subgroups.map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})})),keyboardActionsEnabled:e.keyboardActionsEnabled})}))}),form:this.webform.render()})}},{key:"attach",value:function(e){var t=this;return this.on("change",(function(e){t.populateCaptchaSettings(e),t.webform.setAlert(!1)})),O(x(v.prototype),"attach",this).call(this,e).then((function(){t.loadRefs(e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple","sidebar-component":"multiple"}),t.sideBarScroll&&T.current.handleBuilderSidebarScroll&&T.current.handleBuilderSidebarScroll.call(t,t),"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&t.addClass(t.refs.form,"builder-paste-mode"),(0,u.bootstrapVersion)(t.options)||(t.refs["sidebar-group"].forEach((function(e){e.style.display="true"===e.getAttribute("data-default")?"inherit":"none"})),t.refs["sidebar-anchor"].forEach((function(e,n){t.addEventListener(e,"click",(function(){var r=e.getAttribute("data-parent").slice("#builder-sidebar-".length),o=e.getAttribute("data-target").slice("#group-".length);t.refs["sidebar-group"].forEach((function(e,t){var i="true"===e.getAttribute("data-default"),a=e.getAttribute("id").slice("group-".length),l=e.getAttribute("data-parent").slice("#builder-sidebar-".length);e.style.display=i&&l===o||a===r||t===n?"inherit":"none"}))}),!0)}))),t.keyboardActionsEnabled&&t.refs["sidebar-component"].forEach((function(e){t.addEventListener(e,"keydown",(function(n){13===n.keyCode&&t.addNewComponent(e)}))})),t.addEventListener(t.refs["sidebar-search"],"input",d.default.debounce((function(e){var n=e.target.value;t.searchFields(n)}),300)),t.dragDropEnabled&&t.initDragula();var n=t.dragula;if(t.refs.form)return(0,p.default)([window],{margin:20,maxSpeed:6,scrollWhenOutside:!0,autoScroll:function(){return this.down&&(null==n?void 0:n.dragging)}}),t.webform.attach(t.refs.form)}))}},{key:"searchFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.toLowerCase(),r=this.refs.sidebar,o=this.refs["sidebar-groups"];if(r&&o){var i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=d.default.toPlainObject(t),o=r.subgroups,i=void 0===o?[]:o,a=r.components,l=[];for(var s in a){var u=a[s].title.toLowerCase().match(n),c=a[s].key.toLowerCase().match(n);(u||c)&&l.push(a[s])}return e.orderComponents(r,l),n&&(r.default=!0),r.componentOrder.length||i.length?r:null},a=function(t,n){return d.default.cloneDeep(t).filter((function(t){return i(e.groups[t],n)}))},l=function(e,t){return d.default.clone(e).map((function(e){return i(e,t)})).filter((function(e){return!d.default.isNull(e)}))},s=function(t){return{group:i(e.groups[t],n),groupKey:t,groupId:r.id||o.id,subgroups:l(e.groups[t].subgroups,n).map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})}))}};o.innerHTML=a(this.groupOrder,n).map((function(t){return e.renderTemplate("builderSidebarGroup",s(t))})).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop(),""===n&&this.triggerRedraw()}}},{key:"orderComponents",value:function(e,t){var n=t||e.components,r=0===e.key.indexOf("resource-");n&&(e.componentOrder=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return e&&!e.ignore&&!e.ignoreForForm})).sort((function(e,t){return e.weight-t.weight})).map((function(e){return r?"component-".concat(e.key):e.key})))}},{key:"updateDragAndDrop",value:function(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}},{key:"initDragula",value:function(){var e=this,t=this.options;this.dragula&&this.dragula.destroy();var n=Array.prototype.slice.call(this.refs["sidebar-container"]).filter((function(e){return"group-container-resource"!==e.id}));A&&(this.dragula=A(n,{moves:function(e){var n=!0;return Array.from(e.classList).filter((function(e){return 0===e.indexOf("formio-component-")})).forEach((function(e){var r=e.slice("formio-component-".length);t.disabled&&t.disabled.includes(r)&&(n=!1)})),e.classList.contains("no-drag")&&(n=!1),n},copy:function(e){return e.classList.contains("drag-copy")},accepts:function(e,t){return!e.contains(t)&&!t.classList.contains("no-drop")}}).on("drop",(function(t,n,r,o){return e.onDrop(t,n,r,o)})))}},{key:"detach",value:function(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&T.current.clearBuilderSidebarScroll&&T.current.clearBuilderSidebarScroll.call(this,this),O(x(v.prototype),"detach",this).call(this)}},{key:"getComponentInfo",value:function(e,t){var n;if(t&&"resource"===t.slice(0,t.indexOf("-"))){var r=this.groups.resource.subgroups,o=d.default.find(r,{key:t});o&&o.components.hasOwnProperty("component-".concat(e))&&(n=(0,u.fastCloneDeep)(o.components["component-".concat(e)].schema))}else if(this.schemas.hasOwnProperty(e))n=(0,u.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(t)){var i=this.groups[t].components;i.hasOwnProperty(e)&&(n=(0,u.fastCloneDeep)(i[e].schema))}else if("searchFields"===t)for(var a=this.groups.resource.subgroups,l=0;l<a.length;l++){var s=a[l];if(s.components.hasOwnProperty("component-".concat(e))){n=(0,u.fastCloneDeep)(s.components["component-".concat(e)].schema);break}}return n&&(n.key=this.generateKey(n)),n}},{key:"getComponentsPath",value:function(e,t){var n="components",r=0,o=0,i=0,a=0;switch(t.type){case"table":o=d.default.findIndex(t.rows,(function(t){return t.some((function(t){return t.components.some((function(t){return t.key===e.key}))}))})),i=d.default.findIndex(t.rows[o],(function(t){return t.components.some((function(t){return t.key===e.key}))})),n="rows[".concat(o,"][").concat(i,"].components");break;case"columns":r=d.default.findIndex(t.columns,(function(t){return t.components.some((function(t){return t.key===e.key}))})),n="columns[".concat(r,"].components");break;case"tabs":a=d.default.findIndex(t.components,(function(t){return t.components.some((function(t){return t.key===e.key}))})),n="components[".concat(a,"].components")}return n}},{key:"onDrop",value:function(e,t,n,r){var o,i=this;if(t&&!e.contains(t)){var l,s,u,p,h=e.getAttribute("data-key"),m=e.getAttribute("data-type"),y=e.getAttribute("data-group");if(h&&y?(!(l=this.getComponentInfo(h,y))&&m&&(l=this.getComponentInfo(m,y)),s=!0):n.formioContainer&&-1!==(p=d.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}))&&(l=(l=n.formioContainer.splice(d.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),1))[0]),l){var v="resource"===y?"component-".concat(h):h,b=(null===(o=this.groups[y])||void 0===o?void 0:o.components[v])||{};if(b.disableSiblings){var g=!1;if((0,c.eachComponent)(this.webform.components,(function(e){e.type!==b.schema.type||(g=!0)}),!0),g)return this.webform.redraw(),void this.webform.setAlert("danger","You cannot add more than one ".concat(b.key," component to one page."))}if(b.uniqueComponent){var w=!1;if((0,c.eachComponent)(this.webform.components,(function(e){e.key!==b.schema.key||(w=!0)}),!0),w)return this.webform.redraw(),void this.webform.setAlert("danger","You cannot add more than one ".concat(b.title," component to one page."))}t!==n&&f.default.uniquify(this.findNamespaceRoot(t.formioComponent),l);var k=t.formioComponent;t.formioContainer&&(r?-1!==(p=r.getAttribute("data-noattach")?r.getAttribute("data-position"):-1===(p=d.default.findIndex(t.formioContainer,{key:d.default.get(r,"formioComponent.component.key")}))?0:p)&&t.formioContainer.splice(p,0,l):t.formioContainer.push(l),u=this.getComponentsPath(l,k.component),-1===(p=d.default.findIndex(d.default.get(k.schema,u),{key:l.key}))&&(p=0)),k&&k.addChildComponent&&k.addChildComponent(l,e,t,n,r);var O,_="datagrid"===k.type;return!s||this.options.noNewEdit||l.noNewEdit||this.options.design&&"reviewpage"===l.type||this.editComponent(l,t,s,null,null,{inDataGrid:_}),t!==n?n.formioContainer&&n.contains(t)?O=n.formioComponent.rebuild():(t.contains(n)||n.formioContainer&&(O=n.formioComponent.rebuild()),O=t.formioComponent.rebuild()):O=t.formioComponent.rebuild(),O||(O=a.default.resolve()),O.then((function(){i.emit("addComponent",l,k,u,p,s&&!i.options.noNewEdit&&!l.noNewEdit),(!s||i.options.noNewEdit||l.noNewEdit)&&i.emit("change",i.form)}))}}}},{key:"setForm",value:function(e){var t,n=this;if(e.components||(e.components=[]),e&&e.properties&&(this.options.properties=e.properties),this.keyboardActionsEnabled=d.default.get(this.options,"keyboardBuilder",!1)||(null===(t=this.options.properties)||void 0===t?void 0:t.keyboardBuilder),!this.options.noDefaultSubmitButton&&!e.components.length&&e.components.push({type:"button",label:"Submit",key:"submit",size:"md",block:!1,action:"submit",disableOnInvalid:!0,theme:"primary"}),this.webform){var r=!this.webform.form.components||e.components.length!==this.webform.form.components.length;return this.webform.setForm(e,{keepAsReference:!0}).then((function(){return n.refs.form&&(n.builderHeight=n.refs.form.offsetHeight),r?n.rebuild().then((function(){return n.form})):n.form}))}return a.default.resolve(e)}},{key:"populateCaptchaSettings",value:function(e){var t=!1;this.form.components&&((0,c.eachComponent)(e.components,(function(e){if(!t)return"captcha"===e.type?(t=!0,!1):void 0})),t?d.default.set(e,"settings.captcha.isEnabled",!0):d.default.get(e,"settings.captcha.isEnabled")&&d.default.set(e,"settings.captcha.isEnabled",!1))}},{key:"removeComponent",value:function(e,t,n,r){var o=this;if(t){var i=!0,l=!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length);if(this.options.alwaysConfirmComponentRemoval||l){var s=l?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?";i=window.confirm(this.t(s))}n||(n=t.formioContainer.find((function(t){return t.id===e.id})));var u=t.formioContainer?t.formioContainer.indexOf(n):0;if(i&&-1!==u){var c=this.getComponentsPath(e,t.formioComponent.component);t.formioContainer?t.formioContainer.splice(u,1):t.formioComponent&&t.formioComponent.removeChildComponent&&t.formioComponent.removeChildComponent(e),e.input&&r&&r.parent&&d.default.unset(r._data,r.key),(t.formioComponent.rebuild()||a.default.resolve()).then((function(){o.emit("removeComponent",e,t.formioComponent.schema,c,u),o.emit("change",o.form)}))}return i}}},{key:"replaceDoubleQuotes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e)return t.forEach((function(t){e[t]&&(e[t]=e[t].replace(/"/g,"'"))})),e}},{key:"updateComponent",value:function(e,t){var n=this,r=d.default.get(this.webform,"form.settings.sanitizeConfig")||d.default.get(this.webform,"form.globalSettings.sanitizeConfig");if(this.preview){this.preview.form={components:[d.default.omit(g({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{},sanitizeConfig:r};var o=["label","tooltip"];this.preview.form.components.forEach((function(e){return n.replaceDoubleQuotes(e,o)}));var i=this.componentEdit.querySelector('[ref="preview"]');i&&(this.setContent(i,this.preview.render(),null,r),this.preview.attach(i))}var a=(0,c.getComponent)(this.editForm.components,"defaultValue",!0);if(a&&"hidden"!==e.type)if(t&&(t.component&&"defaultValue"===t.component.key||t.instance&&a.hasComponent&&a.hasComponent(t.instance))){var l=t.instance._data.key,s=(0,u.getArrayFromComponentPath)(t.instance.path);s.shift(),s.length&&(s.unshift(e.key),l=(0,u.getStringFromComponentPath)(s)),d.default.set(this.preview._data,l,t.value),d.default.set(this.webform._data,l,t.value)}else{d.default.assign(a.component,d.default.omit(g({},e),["key","label","labelPosition","labelMargin","labelWidth","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"]));var f=a.parent,p=-1,h=-1;if(f.tabs.some((function(e,t){e.some((function(e,n){return e.id===a.id&&(p=t,h=n,!0)}))})),-1!==p&&-1!==h&&t&&!d.default.isNil(t.value)){var m=f.tabs[p][h+1];f.removeComponent(a);var y=f.addComponent(a.component,a.data,m);d.default.pull(y.validators,"required"),f.tabs[p].splice(h,1,y),y.checkValidity=function(){return!0},y.build(a.element)}}this.emit("updateComponent",e)}},{key:"findRepeatablePaths",value:function(){var e=[],t=new Map;return(0,c.eachComponent)(this.form.components,(function(n,r){n.key&&(t.has(n.key)?t.get(n.key).includes(r)?e.push(r):t.set(n.key,[].concat(y(t.get(n.key)),[r])):t.set(n.key,[r]))}),!0),e}},{key:"highlightInvalidComponents",value:function(){var e=this.findRepeatablePaths(),t=!1;this.webform.everyComponent((function(n){var r,o,i=n.path;e.includes(i)?(n.setCustomValidity("API Key is not unique: ".concat(n.key)),t=!0):null!==(r=n.error)&&void 0!==r&&null!==(o=r.message)&&void 0!==o&&o.startsWith("API Key is not unique")&&n.setCustomValidity("")})),this.emit("builderFormValidityChange",t)}},{key:"saveComponent",value:function(e,t,n,r){var o=this;this.editForm.detach();var i=t?t.formioContainer:this.container,l=t?t.formioComponent:this;this.dialog.close();var s=i?this.getComponentsPath(e,l.component):"";r||(r=t.formioContainer.find((function(t){return t.id===e.id})));var u=i?i.indexOf(r):0;if(-1!==u){var c=this.editForm.submission.data;c=c.componentJson||c,this.replaceDoubleQuotes(c,["label","tooltip"]),this.hook("beforeSaveComponentSettings",c);var f=null;l.getComponents().forEach((function(e){e.component.key===r.key&&(f=e)}));var d=f.component,p=f.schema,h=this.isParentSaveChildMethod(t.formioComponent);return i&&!h?(i[u]=c,f&&(f.component=c)):h&&t.formioComponent.saveChildComponent(c),(l.rebuild()||a.default.resolve()).then((function(){var e=i?i[u]:f?f.schema:[];if(o.emitSaveComponentEvent(e,d,l.schema,s,u,n,p),o.emit("change",o.form),o.highlightInvalidComponents(),o.isComponentCreated){var r=t.formioComponent.components[0];o.moveComponent(r),o.isComponentCreated=!1}}))}return this.highlightInvalidComponents(),a.default.resolve()}},{key:"emitSaveComponentEvent",value:function(e,t,n,r,o,i,a){this.emit("saveComponent",e,t,n,r,o,i,a)}},{key:"attachEditComponentControls",value:function(e,t,n,r,o){var i=this;this.componentEdit.querySelectorAll('[ref="cancelButton"]').forEach((function(t){i.editForm.addEventListener(t,"click",(function(t){t.preventDefault(),i.editForm.detach(),i.emit("cancelComponent",e),i.dialog.close(),i.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll('[ref="removeButton"]').forEach((function(n){i.editForm.addEventListener(n,"click",(function(n){n.preventDefault(),i.saved=!0,i.editForm.detach(),i.removeComponent(e,t,r),i.dialog.close(),i.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll('[ref="saveButton"]').forEach((function(o){i.editForm.addEventListener(o,"click",(function(o){if(o.preventDefault(),!i.editForm.checkValidity(i.editForm.data,!0,i.editForm.data))return i.editForm.setPristine(!1),i.editForm.showErrors(),!1;i.saved=!0,i.saveComponent(e,t,n,r)}))})),this.componentEdit.querySelectorAll('[ref="previewButton"]').forEach((function(a){i.editForm.addEventListener(a,"click",(function(a){a.preventDefault(),i.showPreview=!i.showPreview,i.editForm.detach(),i.setContent(i.componentEdit,i.renderTemplate("builderEditForm",{componentInfo:o.builderInfo,editForm:i.editForm.render(),preview:!!i.preview&&i.preview.render(),showPreview:i.showPreview,helplinks:i.helplinks})),i.editForm.attach(i.componentEdit.querySelector('[ref="editForm"]')),i.attachEditComponentControls(e,t,n,r,o)}))}))}},{key:"editComponent",value:function(e,t,n,o,i){var a,s=this,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(e.key){this.saved=!1;var p=(0,u.fastCloneDeep)(e),h=l.default.components[p.type],m=void 0===h;o=o||m,h=m?l.default.components.unknown:h,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());var y=d.default.clone(d.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();var v=d.default.get(this.options,"editForm.".concat(p.type),{});y.editForm=this.form,y.editComponent=e,y.flags=c,this.hook("editComponentParentInstance",y,t),this.editForm=new r.default(g(g({},d.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{},{language:this.options.language},y)),this.hook("editFormProperties",t),this.editForm.form=o&&!m?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:h.editForm(d.default.cloneDeep(v));var b={inFormBuilder:!0};this.hook("instanceOptionsPreview",b);var w=new h(p,b),k=this.hook("builderComponentSchema",e,w);this.editForm.submission=o?{data:{componentJson:k,showFullSchema:this.options.showFullJsonSchema}}:{data:w.component},this.preview&&this.preview.destroy(),h.builderInfo.hasOwnProperty("preview")&&!h.builderInfo.preview||(this.preview=new r.default(d.default.omit(g(g({},this.options),{},{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",k,o)),this.showPreview=null===(a=h.builderInfo.showPreview)||void 0===a||a,this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:h.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,d.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(p),this.editForm.on("change",(function(r){if(r.changed){if(r.changed.component&&"showFullSchema"===r.changed.component.key){var i=r.changed.value;return void(s.editForm.submission={data:{componentJson:i?w.component:e,showFullSchema:i}})}(r.changed.component&&"key"===r.changed.component.key||o)&&(p.keyModified=!0);var a=!1;if(r.changed.instance?a=["label","title"].includes(r.changed.instance.path):r.changed.component&&(a=["label","title"].includes(r.changed.component.key)),a&&n&&(r.data.keyModified||s.editForm.everyComponent((function(e){if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(s.updateComponentKey(r.data)),!1})),s.form)){var l=s.findNamespaceRoot(t.formioComponent);l=l.filter((function(e){return y.editComponent.id!==e.id})),f.default.uniquify(l,r.data)}s.updateComponent(r.data.componentJson||r.data,r.changed)}})),this.attachEditComponentControls(e,t,n,i,h);var O=function r(){s.editForm.destroy(!0),s.preview&&(s.preview.destroy(!0),s.preview=null),n&&!s.saved&&(s.removeComponent(e,t,i),s.highlightInvalidComponents()),s.removeEventListener(s.dialog,"close",r),s.dialog=null};this.addEventListener(this.dialog,"close",O),this.emit("editComponent",e)}}},{key:"updateComponentKey",value:function(e){return d.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}},{key:"moveComponent",value:function(e){var t;this.selectedComponent&&(null===(t=this.selectedComponent.element)||void 0===t||t.classList.remove("builder-component-selected"),this.removeEventListener(document,"keydown")),e.element.focus(),e.element.classList.add("builder-component-selected"),this.selectedComponent=e,this.addEventListener(document,"keydown",this.moveHandler.bind(this))}},{key:"updateComponentPlacement",value:function(e){var t,n,r=this.selectedComponent,o=e?-1:1;if(r){var i=r.element,a=e?i.previousElementSibling:i.nextElementSibling,l=i.parentNode,s=l.formioContainer.length;if(s&&s<=1)return;l.formioContainer&&-1!==(t=d.default.findIndex(l.formioContainer,{key:i.formioComponent.component.key}))&&(n=(n=l.formioContainer.splice(d.default.findIndex(l.formioContainer,{key:i.formioComponent.component.key}),1))[0],l.removeChild(i));var u=l.formioComponent.components.length;if(-1===(t=-1===t?0:t+o))l.formioContainer.push(n),l.appendChild(i);else if(t===u){var c=l.formioContainer[0].key;t=d.default.findIndex(l.formioComponent.components,{key:c});var f=l.formioComponent.components[t].element;l.formioContainer.splice(0,0,n),l.insertBefore(i,f)}else-1!==t&&(l.formioContainer.splice(t,0,n),e?l.insertBefore(i,a):l.insertBefore(i,a.nextElementSibling));i.focus()}}},{key:"stopMoving",value:function(e){var t=e.element.parentNode;this.removeEventListener(document,"keydown"),t.formioComponent.rebuild(),this.selectedComponent=null}},{key:"addNewComponent",value:function(e){var t,n,r=this,o=document.querySelector(".formio-builder-form"),i=e.getAttribute("data-key"),a=e.getAttribute("data-group");i&&a&&(n=this.getComponentInfo(i,a)),this.options.noNewEdit||n.noNewEdit||(f.default.uniquify(this.findNamespaceRoot(o.formioComponent),n),this.editComponent(n,o,!0,null,null)),(null===(t=o.formioComponent.components[0])||void 0===t?void 0:t.element)?o.formioContainer.splice(0,0,n):o.formioContainer.push(n),o.formioComponent.rebuild().then((function(){r.isComponentCreated=!0}))}},{key:"copyComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(e.schema))}},{key:"pasteComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");if(this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage){var t=window.sessionStorage.getItem("formio.clipboard");if(t){var n=JSON.parse(t),r=this.getParentElement(e.element);if(r){f.default.uniquify(this.findNamespaceRoot(r.formioComponent),n);var o="",i=0,a=this.isParentSaveChildMethod(r.formioComponent);r.formioContainer&&!a?(i=r.formioContainer.indexOf(e.component),o=this.getComponentsPath(n,r.formioComponent.component),r.formioContainer.splice(i+1,0,n)):a&&r.formioComponent.saveChildComponent(n,!1),r.formioComponent.rebuild(),this.emitSaveComponentEvent(n,n,r.formioComponent.component,o,i+1,!0,n)}this.emit("change",this.form)}}}},{key:"isParentSaveChildMethod",value:function(e){return!(!e||!e.saveChildComponent)}},{key:"getParentElement",value:function(e){var t=e;do{t=t.parentNode}while(t&&!t.formioComponent);return t}},{key:"addBuilderComponentInfo",value:function(e){if(e&&e.group&&this.groups[e.group]){e=d.default.clone(e);var t=this.groups[e.group];return t.components.hasOwnProperty(e.key)||(t.components[e.key]=e),e}}},{key:"init",value:function(){return this.webform&&this.webform.init(),O(x(v.prototype),"init",this).call(this)}},{key:"clear",value:function(){this.webform.initialized&&this.webform.clear()}},{key:"destroy",value:function(e){this.webform.initialized&&this.webform.destroy(e),O(x(v.prototype),"destroy",this).call(this,e)}},{key:"addBuilderGroup",value:function(e,t){this.groups[e]?this.updateBuilderGroup(e,t):(this.groups[e]=t,this.groupOrder.push(e),this.triggerRedraw())}},{key:"updateBuilderGroup",value:function(e,t){this.groups[e]&&(this.groups[e]=t,this.triggerRedraw())}},{key:"generateKey",value:function(e){return e.key||d.default.camelCase(e.title||e.label||e.placeholder||e.type)}}],n&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.default);t.default=M},33456:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(49337),n(33321),n(79753),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(57327),n(41539),n(26699),n(32023),n(89554),n(54747),n(69826),n(68309),n(21249),n(47941),n(92222),n(24812),n(34553),n(91058),n(85827),n(68304),n(30489);var o=u(n(91459)),i=u(n(96486)),a=u(n(12215)),l=n(19161),s=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function b(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=w(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},g.apply(this,arguments)}function w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function O(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(u,e);var t,n,r,a,l=(r=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(r);if(a){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return O(this,e)});function u(){var e,t,n;return y(this,u),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]||{}):n=arguments[0]||{},n.display="wizard",(e=l.call(this,t,n)).pages=[],e.prefixComps=[],e.suffixComps=[],e.components=[],e.originalComponents=[],e.page=0,e.currentPanel=null,e.currentPanels=null,e.currentNextPage=0,e._seenPages=[0],e.subWizards=[],e.allPages=[],e.lastPromise=o.default.resolve(),e.enabledIndex=0,e.editMode=!1,e.originalOptions=i.default.cloneDeep(e.options),e}return t=u,n=[{key:"isLastPage",value:function(){var e=this.getNextPage();return i.default.isNumber(e)?-1===e:i.default.isNull(e)}},{key:"getPages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.all,r=void 0!==n&&n,o=this.hasExtraPages?this.components:this.pages,a=o.filter(r?i.default.identity:function(t,n){return e._seenPages.includes(n)});return a}},{key:"hasExtraPages",get:function(){return!i.default.isEmpty(this.subWizards)}},{key:"data",get:function(){return g(_(u.prototype),"data",this)},set:function(e){var t=this;this._data=e,i.default.each(this.getPages({all:!0}),(function(e){e.data=t.componentContext(e)}))}},{key:"localData",get:function(){var e,t;return(null===(e=this.pages[this.page])||void 0===e||null===(t=e.root)||void 0===t?void 0:t.submission.data)||this.submission.data}},{key:"checkConditions",value:function(e,t,n){var r=g(_(u.prototype),"checkConditions",this).call(this,e,t,n);return this.establishPages(e),r}},{key:"getComponents",value:function(){return this.submitting?this.getPages({all:this.isLastPage()}):g(_(u.prototype),"getComponents",this).call(this)}},{key:"resetValue",value:function(){this.getPages({all:!0}).forEach((function(e){return e.resetValue()})),this.setPristine(!0)}},{key:"init",value:function(){var e,t,n,r=this;this.options.buttonSettings=i.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null===(t=this.options)||void 0===t||null===(n=t.breadcrumbSettings)||void 0===n?void 0:n.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=i.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;var o=g(_(u.prototype),"init",this).call(this);return this.setComponentSchema(),null!==(e=this.pages)&&void 0!==e&&e[this.page]&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",(function(e){var t=r.subWizards.find((function(t){var n;return(null==e?void 0:e.id)&&(null===(n=t.subForm)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)}));r.subWizards.length&&t&&(t.subForm.setValue(e._submission,{},!0),r.establishPages(),r.redraw())})),o}},{key:"wizardKey",get:function(){return"wizard-".concat(this.id)}},{key:"wizard",get:function(){return this.form},set:function(e){this.setForm(e)}},{key:"buttons",get:function(){var e=this,t={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach((function(n){e.hasButton(n.name)&&(t[n.name]=n)})),t}},{key:"buttonOrder",get:function(){var e,t,n;return null!==(e=null===(t=this.options.properties)||void 0===t||null===(n=t.wizardButtonOrder)||void 0===n?void 0:n.toLowerCase().split(", "))&&void 0!==e?e:["cancel","previous","next","submit"]}},{key:"renderContext",get:function(){var e,t;return{disableWizardSubmit:this.form.disableWizardSubmit,wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&"wizard"===!(null!==(e=this.root)&&void 0!==e&&null!==(t=e.component)&&void 0!==t&&t.type),panels:this.allPages.length?this.allPages.map((function(e){return e.component})):this.pages.map((function(e){return e.component})),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}},{key:"prepareNavigationSettings",value:function(e){var t=this.currentPanel;return t&&t.buttonSettings&&Object.keys(t.buttonSettings).forEach((function(){Object.keys(e.buttons).forEach((function(n){(void 0!==t.buttonSettings[n]&&!t.buttonSettings[n]||e.isSubForm)&&(e.buttons[n]=null)}))})),this.renderTemplate("wizardNav",e)}},{key:"prepareHeaderSettings",value:function(e,t){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate(t,e)}},{key:"render",value:function(){var e=this,t=this.renderContext;this.component.key&&t.panels.map((function(n){n.key===e.component.key&&(e.currentPanel=n,t.wizardPageTooltip=e.getFormattedTooltip(n.tooltip))}));var n=this.prepareNavigationSettings(t),r="wizardHeader".concat(i.default.get(this.form,"settings.wizardHeaderType","")),o=i.default.get(this.form,"settings.wizardHeaderLocation","left"),a=this.prepareHeaderSettings(t,r);return this.renderTemplate("wizard",h(h({},t),{},{className:g(_(u.prototype),"getClassName",this).call(this),wizardHeader:a,wizardHeaderType:r,wizardHeaderLocation:o,wizardNav:n,components:this.renderComponents([].concat(c(this.prefixComps),c(this.currentPage.components),c(this.suffixComps)))}),this.builderMode?"builder":"form")}},{key:"redrawNavigation",value:function(){if(this.element){var e,t=this.element.querySelector("#".concat(this.wizardKey,"-nav"));t&&(this.detachNav(),t.outerHTML=this.renderTemplate("wizardNav",this.renderContext),t=this.element.querySelector("#".concat(this.wizardKey,"-nav")),this.loadRefs(t,(m(e={},"".concat(this.wizardKey,"-cancel"),"single"),m(e,"".concat(this.wizardKey,"-previous"),"single"),m(e,"".concat(this.wizardKey,"-next"),"single"),m(e,"".concat(this.wizardKey,"-submit"),"single"),e)),this.attachNav())}}},{key:"redrawHeader",value:function(){if(this.element){var e,t=this.element.querySelector("#".concat(this.wizardKey,"-header"));t&&(this.detachHeader(),t.outerHTML=this.renderTemplate("wizardHeader".concat(i.default.get(this.form,"settings.wizardHeaderType","")),this.renderContext),t=this.element.querySelector("#".concat(this.wizardKey,"-header")),this.loadRefs(t,(m(e={},"".concat(this.wizardKey,"-link"),"multiple"),m(e,"".concat(this.wizardKey,"-tooltip"),"multiple"),e)),this.attachHeader())}}},{key:"attach",value:function(e){var t,n,r=this;this.element=e,this.loadRefs(e,(m(t={},this.wizardKey,"single"),m(t,"".concat(this.wizardKey,"-header"),"single"),m(t,"".concat(this.wizardKey,"-cancel"),"single"),m(t,"".concat(this.wizardKey,"-previous"),"single"),m(t,"".concat(this.wizardKey,"-next"),"single"),m(t,"".concat(this.wizardKey,"-submit"),"single"),m(t,"".concat(this.wizardKey,"-link"),"multiple"),m(t,"".concat(this.wizardKey,"-tooltip"),"multiple"),t)),!this.options.readOnly&&!this.editMode||this.enabledIndex||(this.enabledIndex=(null===(n=this.pages)||void 0===n?void 0:n.length)-1),this.hook("attachWebform",e,this);var o=this.attachComponents(this.refs[this.wizardKey],[].concat(c(this.prefixComps),c(this.currentPage.components),c(this.suffixComps)));return this.attachNav(),this.attachHeader(),o.then((function(){r.emit("render",{component:r.currentPage,page:r.page}),r.component.scrollToTop&&r.scrollPageToTop()}))}},{key:"scrollPageToTop",value:function(){var e,t=null!==(e=this.refs["".concat(this.wizardKey,"-header")])&&void 0!==e?e:this.refs[this.wizardKey];t&&("scrollIntoView"in t?t.scrollIntoView(!0):this.scrollIntoView(t))}},{key:"isBreadcrumbClickable",value:function(){var e=this,t=null;return this.pages.map((function(n){i.default.isEqual(e.currentPage.component,n.component)&&(t=n)})),this.isClickableDefined?this.options.breadcrumbSettings.clickable:i.default.get(t,"component.breadcrumbClickable",!0)}},{key:"isAllowPrevious",value:function(){var e=this,t=null;return this.pages.map((function(n){i.default.isEqual(e.currentPage.component,n.component)&&(t=n)})),i.default.get(t.component,"allowPrevious",this.options.allowPrevious)}},{key:"handleNaviageteOnEnter",value:function(e){if(13===e.keyCode){var t=new CustomEvent("click"),n=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.next.name)];n&&n.dispatchEvent(t)}}},{key:"handleSaveOnEnter",value:function(e){if(13===e.keyCode){var t=new CustomEvent("click"),n=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.submit.name)];n&&n.dispatchEvent(t)}}},{key:"attachNav",value:function(){var e=this;this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),i.default.each(this.buttons,(function(t){var n=e.refs["".concat(e.wizardKey,"-").concat(t.name)];e.addEventListener(n,"click",(function(r){r.preventDefault(),n.setAttribute("disabled","disabled"),e.setLoading(n,!0),e[t.method]().then((function(){n.removeAttribute("disabled"),e.setLoading(n,!1)})).catch((function(){n.removeAttribute("disabled"),e.setLoading(n,!1)}))}))}))}},{key:"emitWizardPageSelected",value:function(e){this.emit("wizardPageSelected",this.pages[e],e)}},{key:"attachHeader",value:function(){var e,t=this,n=this.isAllowPrevious();this.attachTooltips(this.refs["".concat(this.wizardKey,"-tooltip")],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||n)&&(null===(e=this.refs["".concat(this.wizardKey,"-link")])||void 0===e||e.forEach((function(e,r){(!n||r<=t.enabledIndex)&&t.addEventListener(e,"click",(function(e){return t.emit("wizardNavigationClicked",t.pages[r]),e.preventDefault(),t.setPage(r).then((function(){t.emitWizardPageSelected(r)}))}))})))}},{key:"detachNav",value:function(){var e=this;this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),i.default.each(this.buttons,(function(t){e.removeEventListener(e.refs["".concat(e.wizardKey,"-").concat(t.name)],"click")}))}},{key:"detachHeader",value:function(){var e=this;this.refs["".concat(this.wizardKey,"-link")]&&this.refs["".concat(this.wizardKey,"-link")].forEach((function(t){e.removeEventListener(t,"click")}))}},{key:"transformPages",value:function(){var e=this,t=[],n=this.getSortedComponents(this),r=[];this.allPages=[];var o=function t(n,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=[],u=["datagrid","editgrid","dynamicWizard"],f=null!=n&&n.subForm?e.getSortedComponents(n.subForm):(null==n?void 0:n.components)||[],d=f.filter((function(e){return e._visible})),p=d.filter((function(e){return!u.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard)})),h=f.filter((function(e){var t;return"wizard"!==(null===(t=e.subForm)||void 0===t?void 0:t._form.display)})),m=!1;if((0,s.eachComponent)(p,(function(n){if(n&&n.component&&("panel"===n.component.type&&null!=n&&n.parent.wizard&&!t(n,o,!1)&&(a&&(e.setRootPanelId(n),l.push(n)),m=!0),n.isNestedWizard&&n.subForm)){var r=t(n,l,a);m||(m=r)}}),!0),"panel"===n.component.type&&(!m&&a&&(e.setRootPanelId(n),o.push(n)),m&&h.length)){var y=i.default.clone(n);y.components=h,e.setRootPanelId(y),r.push(y)}return a&&(o.push.apply(o,c(r).concat(l)),r=[]),m};n.forEach((function(e){e.visible&&o(e,t)}),[]),this.localRoot&&this.id===this.localRoot.id&&t.forEach((function(e,t){e.eachComponent((function(e){e.page=t}))})),this.allPages=t}},{key:"getSortedComponents",value:function(e){var t=e.components,n=e.originalComponents,r=[],o=[];return t&&t.length&&t.map((function(e){"panel"===e.component.type&&(o[e.component.key||e.component.title]=e)})),null==n||n.forEach((function(e){e.key||(e.key=e.title),o[e.key]&&r.push(o[e.key])})),r}},{key:"findRootPanel",value:function(e){var t;return null!==(t=e.parent)&&void 0!==t&&t.parent?this.findRootPanel(e.parent):e}},{key:"setRootPanelId",value:function(e){var t;if(!e.rootPanelId||e.rootPanelId===e.id){var n=null!==(t=e.parent)&&void 0!==t&&t.parent?this.findRootPanel(e.parent):e;e.rootPanelId=n.id}}},{key:"establishPages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.data;this.pages=[],this.prefixComps=[],this.suffixComps=[];var n=[],r={},o=h(h({},i.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach((function(e){"panel"===e.component.type&&(r[e.component.key||e.component.title]=e)})),this.originalComponents&&this.originalComponents.forEach((function(i){if("panel"===i.type){i.key||(i.key=i.title);var a=r[i.key],l=e.shouldForceShow(i),u=e.shouldForceHide(i),c=a?a.visible:(0,s.checkCondition)(i,t,t,e.component,e)&&!i.hidden;l?c=!0:u&&(c=!1),c&&(n.push(i),a&&e.pages.push(a)),!a&&c&&((a=e.createComponent(i,o)).visible=c,e.pages.push(a),a.eachComponent((function(t){t.page=e.pages.length-1})))}else"button"!==i.type&&(e.pages.length?e.suffixComps.push(e.createComponent(i,o)):e.prefixComps.push(e.createComponent(i,o)))})),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),n}},{key:"updatePages",value:function(){this.pages=this.allPages}},{key:"addComponents",value:function(){this.establishPages()}},{key:"setPage",value:function(e){var t=this;if(e===this.page)return o.default.resolve();if(e>=0&&e<this.pages.length){this.page=e,this.pageFieldLogic(e),this.getNextPage();var n=e;if(this.hasExtraPages){var r=this.pages[e],i=this.components[e];i&&(null==r?void 0:r.id)===i.id||(n=this.components.findIndex((function(e){var r,o;return e.id===(null===(r=t.pages)||void 0===r||null===(o=r[n])||void 0===o?void 0:o.rootPanelId)})))}return this._seenPages.includes(n)||(this._seenPages=this._seenPages.concat(n)),this.redraw().then((function(){t.checkData(t.submission.data)})),o.default.resolve()}return this.pages.length?o.default.reject("Page not found"):(this.redraw(),o.default.resolve())}},{key:"pageFieldLogic",value:function(e){var t;null!==(t=this.pages)&&void 0!==t&&t[e]&&(this.component=this.pages[e].component,this.originalComponent=(0,s.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}},{key:"currentPage",get:function(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}},{key:"getNextPage",value:function(){var e;if(null!==(e=this.pages)&&void 0!==e&&e[this.page]){var t=this.submission.data,n=this.pages[this.page].component;if(n){var r=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(n.nextPage){var o=this.evaluate(n.nextPage,{next:r,data:t,page:r,form:n},"next");if(null===o)return this.currentNextPage=null,null;var i=parseInt(o,10);return!isNaN(parseInt(i,10))&&isFinite(i)?(this.currentNextPage=i,i):(this.currentNextPage=this.getPageIndexByKey(o),this.currentNextPage)}return this.currentNextPage=r,r}this.currentNextPage=null}return null}},{key:"getPreviousPage",value:function(){return this.page-1}},{key:"beforeSubmit",value:function(){var e=this.getPages();return o.default.all(e.map((function(e){return e.options.beforeSubmit=!0,e.beforeSubmit()})))}},{key:"beforePage",value:function(e){var t=this;return new o.default((function(n,r){t.hook(e?"beforeNext":"beforePrev",t.currentPage,t.submission,(function(o){o&&(t.showErrors(o,!0),r(o));var i=t.currentPage;i?i.beforePage(e).then(n).catch(r):n()}))}))}},{key:"emitNextPage",value:function(){this.emit("nextPage",{page:this.page,submission:this.submission})}},{key:"nextPage",value:function(){var e=this;return this.options.readOnly?this.beforePage(!0).then((function(){return e.setPage(e.getNextPage()).then((function(){e.emitNextPage()}))})):this.checkValidity(this.localData,!0,this.localData,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then((function(){return e.setPage(e.getNextPage()).then((function(){!e.options.readOnly&&!e.editMode&&e.enabledIndex<e.page&&(e.enabledIndex=e.page,e.redraw()),e.emitNextPage()}))}))):(this.currentPage.components.forEach((function(e){return e.setPristine(!1)})),this.scrollIntoView(this.element),o.default.reject(this.showErrors([],!0)))}},{key:"emitPrevPage",value:function(){this.emit("prevPage",{page:this.page,submission:this.submission})}},{key:"prevPage",value:function(){var e=this;return this.beforePage().then((function(){return e.setPage(e.getPreviousPage()).then((function(){e.emitPrevPage()}))}))}},{key:"cancel",value:function(e){var t=this;return this.options.readOnly?o.default.resolve():g(_(u.prototype),"cancel",this).call(this,e)?(this.setPristine(!0),this.setPage(0).then((function(){return t.enabledIndex&&(t.enabledIndex=0),t.onChange({resetValue:!0}),t.redraw(),t.page}))):o.default.resolve()}},{key:"getPageIndexByKey",value:function(e){var t=this.page;return this.pages.forEach((function(n,r){if(n.component.key===e)return t=r,!1})),t}},{key:"schema",get:function(){return this.wizard}},{key:"setComponentSchema",value:function(){var e=this,t={};if(this.originalComponents=[],this.component.components.map((function(n){"panel"===n.type&&(n.key=(0,s.uniqueKey)(t,n.key||"panel"),t[n.key]=!0,e.wizard.full?(e.options.show=e.options.show||{},e.options.show[n.key]=!0):e.wizard.hasOwnProperty("full")&&!i.default.isEqual(e.originalOptions.show,e.options.show)&&(e.options.show=h({},e.originalOptions.show||{}))),e.originalComponents.push(i.default.clone(n))})),!Object.keys(t).length){var n={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[n],this.originalComponents.push(i.default.clone(n))}}},{key:"setForm",value:function(e,t){if(e)return g(_(u.prototype),"setForm",this).call(this,e,t)}},{key:"onSetForm",value:function(e,t){this.component.components=(this._parentPath?t.components:e.components)||[],this.setComponentSchema()}},{key:"setEditMode",value:function(e){this.editMode||!e._id||this.options.readOnly||(this.editMode=!0,this.redraw())}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=this.getPages({all:!0}).reduce((function(r,o){return t.setNestedValue(o,e.data,n,r)||r}),!1);return this.mergeData(this.data,e.data),o&&this.pageFieldLogic(this.page),e.data=this.data,this._submission=e,r||this.establishPages(e.data),this.setEditMode(e),o}},{key:"isClickable",value:function(e,t){return this.page!==t&&(0,s.firstNonNil)([i.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}},{key:"hasButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getNextPage(),n=i.default.get(this.currentPage,"component.buttonSettings",{}),r=n.previous,o=void 0===r?this.options.buttonSettings.showPrevious:r,a=n.cancel,l=void 0===a?this.options.buttonSettings.showCancel:a,s=n.submit,u=void 0===s?this.options.buttonSettings.showSubmit:s,c=n.next,f=void 0===c?this.options.buttonSettings.showNext:c;switch(e){case"previous":return o&&this.getPreviousPage()>-1;case"next":return f&&null!==t&&-1!==t;case"cancel":return l&&!this.options.readOnly;case"submit":return u&&!this.options.readOnly&&(null===t||this.page===this.pages.length-1);default:return!0}}},{key:"pageId",value:function(e){return e.key?"".concat(e.key,"-").concat(e.title):e.components&&e.components.length>0?this.pageId(e.components[0]):e.title}},{key:"onChange",value:function(e,t,n,r){var o,a,l=this;g(_(u.prototype),"onChange",this).call(this,e,t,n,r),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0));var s,c,f=this.currentNextPage;this.hasExtraPages?(o=this.pages.map((function(e){return e.component.key})),this.establishPages(),a=this.pages.map((function(e){return e.component.key}))):(o=this.currentPanels||this.pages.map((function(e){return e.component.key})),a=this.establishPages().map((function(e){return e.key})),this.currentPanels=a,null!==(s=this.currentPanel)&&void 0!==s&&s.key&&null!==(c=this.currentPanels)&&void 0!==c&&c.length&&this.setPage(this.currentPanels.findIndex((function(e){return e===l.currentPanel.key})))),(!i.default.isEqual(a,o)||e&&e.fromSubmission)&&this.redrawHeader(),f!==this.getNextPage()&&this.redrawNavigation(),this.options.readOnly&&(this.prefixComps.length||this.suffixComps.length)&&this.redraw()}},{key:"redraw",value:function(){var e,t;return null!==(e=this.parent)&&void 0!==e&&null!==(t=e.component)&&void 0!==t&&t.modalEdit?this.parent.redraw():g(_(u.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){var e=this,t=this.page;return g(_(u.prototype),"rebuild",this).call(this).then((function(){return e.setPage(t)}))}},{key:"checkValidity",value:function(e,t,n,r){return this.checkCondition(n,e)?(!r||this.isLastPage()?this.getComponents():this.currentPage.components).reduce((function(r,o){return o.checkValidity(e,t,n)&&r}),!0):(this.setCustomValidity(""),!0)}},{key:"errors",get:function(){return this.isLastPage()?g(_(u.prototype),"errors",this):this.currentPage.errors}},{key:"focusOnComponent",value:function(e){var t,n,r=this,o=0,i=this.pages.filter((function(t,n){var r=!1;return t.getComponent(e,(function(t){t.path===e&&(o=n,r=!0)})),r})),a=(t=i,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,n)||f(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return a&&a!==this.currentPage?this.setPage(o).then((function(){r.checkValidity(r.submission.data,!0,r.submission.data),r.showErrors(),g(_(u.prototype),"focusOnComponent",r).call(r,e)})):g(_(u.prototype),"focusOnComponent",this).call(this,e)}}],n&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(a.default);t.default=S,S.setBaseUrl=l.GlobalFormio.setBaseUrl,S.setApiUrl=l.GlobalFormio.setApiUrl,S.setAppUrl=l.GlobalFormio.setAppUrl},72940:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(26699),n(32023),n(82772),n(34553),n(2707),n(57327),n(41539),n(47941),n(79753),n(89554),n(54747),n(24812),n(40561),n(69826),n(68304),n(30489);var o,i=c(n(95529)),a=c(n(12215)),l=c(n(1848)),s=c(n(96486)),u=n(82531);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=h(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},p.apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}"undefined"!=typeof window&&(o=n(91130));var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(h,e);var t,n,r,i,c=(r=h,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(r);if(i){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function h(){var e,t,n;f(this,h),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!1,n.display="wizard",(e=c.call(this,t,n))._form={components:[e.getPageConfig(1)]},e.page=0;var r=function(t){e.groups[t]&&e.groups[t].components&&(e.groups[t].componentOrder=Object.keys(e.groups[t].components).map((function(n){return e.groups[t].components[n]})).filter((function(e){return e&&!e.ignore})).sort((function(e,t){return e.weight-t.weight})).map((function(e){return e.key})))};for(var o in e.groups)r(o);var i=e.options.hooks.renderComponents;e.options.hooks.renderComponents=function(e,t){var n=t.components,r=t.self;return"form"!==r.type||r.root?i(e,{components:n,self:r}):e};var a=e.options.hooks.attachComponents;return e.options.hooks.attachComponents=function(e,t,n,r){return"form"!==r.type||r.root?a(e,t,n,r):e},e.on("saveComponent",(function(t,n){var r=e.webform.components.map((function(e){return e.component}));if(e._form.components.includes(n))e._form.components[e._form.components.indexOf(n)]=t,e.rebuild();else if(r.includes(n))e._form.components.push(t),e.rebuild();else{var o=e._form.components.findIndex((function(e){return n.key===e.key}));-1!==o&&(e._form.components[o]=t,e.rebuild())}}),!0),e}return t=h,n=[{key:"removeComponent",value:function(e,t,n){var r=p(v(h.prototype),"removeComponent",this).call(this,e,t,n);if(r&&"panel"===e.type){var o=this.pages.findIndex((function(t){return t.key===e.key})),i=this._form.components.findIndex((function(t){return t.key===e.key}));-1!==o&&this.removePage(o,i)}return r}},{key:"allowDrop",value:function(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}},{key:"pages",get:function(){return s.default.filter(this._form.components,{type:"panel"})}},{key:"currentPage",get:function(){var e=this.pages;return e&&e.length>=this.page?e[this.page]:null}},{key:"form",get:function(){return this._form},set:function(e){if(this._form=e,this._form.components&&Array.isArray(this._form.components)||(this._form.components=[]),0===this.pages.length){var t=this._form.components.filter((function(e){return"button"!==e.type}));this._form.components=[this.getPageConfig(1,t)]}this.rebuild()}},{key:"schema",get:function(){s.default.assign(this.currentPage,this.webform._form.components[0]);var e=new a.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}},{key:"render",value:function(){var e=this;return this.renderTemplate("builderWizard",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map((function(t){return e.renderTemplate("builderSidebarGroup",{group:e.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[t].subgroups.map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})}))})}))}),pages:this.pages,form:this.webform.render()})}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.gotoPage.forEach((function(e,t){e.parentNode.dragInfo={index:t}})),o&&(this.navigationDragula=o([this.element.querySelector(".wizard-pages")],{moves:function(e){return!e.classList.contains("wizard-add-page")},accepts:function(e,t,n,r){return!!r}}).on("drop",this.onReorder.bind(this))),this.refs.addPage.forEach((function(e){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.addPage()}))})),this.refs.gotoPage.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.setPage(n)}))})),p(v(h.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){this.navigationDragula&&this.navigationDragula.destroy(),this.navigationDragula=null,p(v(h.prototype),"detach",this).call(this)}},{key:"rebuild",value:function(){var e,t=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:t?[t]:[],controller:(null===(e=this._form)||void 0===e?void 0:e.controller)||""},{keepAsReference:!0}),this.redraw()}},{key:"addPage",value:function(e){var t=e&&e.schema?(0,u.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return l.default.uniquify(this._form.components,t),this._form.components.push(t),this.emitSaveComponentEvent(t,t,this._form,"components",this._form.components.length-1,!0,t),this.emit("change",this._form),this.rebuild()}},{key:"removePage",value:function(e,t){return this._form.components.splice(t,1),this.emit("change",this._form),e===this.pages.length?0===e?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(e-1):this.rebuild()}},{key:"onReorder",value:function(e,t,n,r){var o=this,i=null==r?void 0:r.classList.contains("wizard-add-page");if(e.dragInfo&&(!r||r.dragInfo||i)){var a=e.dragInfo.index,l=r&&r.dragInfo?r.dragInfo.index:this.pages.length,s=l>a,c=(0,u.fastCloneDeep)(this._form.components),f=this._form.components[a];return c.splice(l,0,f),c.splice(s?a:a+1,1),this._form.components=(0,u.fastCloneDeep)(c),this.rebuild().then((function(){o.emit("change",o._form)}))}console.warn("There is no Drag Info available for either dragged or sibling element")}},{key:"setPage",value:function(e){if(e!==this.page)return this.page=e,this.rebuild()}},{key:"getPageConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{title:"Page ".concat(e),label:"Page ".concat(e),type:"panel",key:"page".concat(e),components:t}}},{key:"pasteComponent",value:function(e){if(!(e instanceof h))return this._form.components.find((function(t){return s.default.isEqual(e.component,t)}))?void this.addPage(e):p(v(h.prototype),"pasteComponent",this).call(this,e)}}],n&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=b},59671:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var o=l(n(34558)),i=l(n(91459)),a=l(n(96486));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,l,d=(o=p,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(l){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(n=d.call(this,e)).namespace="formio.plugin",n.component=t||{},n.settings=a.default.merge({},n.defaultSettings,e||{}),n}return t=p,r=[{key:"info",get:function(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}}],(n=[{key:"defaultSettings",get:function(){return p.info.defaultSettings}},{key:"element",get:function(){return this._element}},{key:"attach",value:function(e){return this._element=e,i.default.resolve()}},{key:"destroy",value:function(){}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},10902:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongs to this level.\nCommon entropy values are:\n<ul>\n  <li>&lt; 28 bits = Very Weak;</li>\n  <li>28 - 35 bits = Weak; should keep out most people;</li>\n  <li>36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;</li>\n  <li>60 - 127 bits = Strong; can be good for guarding financial information;</li>\n  <li>&gt; 128 bits = Very Strong; often overkill;</li>\n</ul>\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the background color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}},input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}},input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},o.default.javaScriptValue("Check","check","",1100,'<p><h4>Example:</h4><pre>valid = !value.includes(data.email) ? true : "Password should not be variation of the email";</pre></p>',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},o.default.javaScriptValue("Is Valid","isValid","",1100,"<p><h4>Example:</h4><pre>valid = entropy > maxEntropy / 2 ;</pre></p>","","<tr><th>entropy</th><td>Current entropy bits of the password.</td></tr><tr><th>level</th><td>Current strength level of the password.</td></tr>",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},o.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"<p><h4>Example:</h4><pre>values = [ data.name, data.dataOfBirth, data.favoriteColor ];</pre></p>","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}];t.default=i},16996:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(79753),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(2707),n(74916),n(68309),n(44914),n(15306),n(24812),n(24603),n(39714),n(89554),n(41539),n(54747),n(92222),n(69600),n(68304),n(30489);var o=l(n(96486)),i=l(n(59671)),a=l(n(10902));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(d,e);var t,n,r,i,l,u=(i=d,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(i);if(l){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function d(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(n=u.call(this,e,t))._entropy=0,n.levels=s(n.settings.levels||n.defaultSettings.levels),n.levels.sort((function(e,t){return e.maxEntropy-t.maxEntropy})),n.level=n.levels[0],n.maxEntropy=n.levels[n.levels.length-1].maxEntropy,n}return t=d,n=[{key:"defaultSettings",get:function(){return d.info.defaultSettings}},{key:"rules",get:function(){var e=this;return{length:{check:function(t,n){var r=n.minLength||e.component.component.validate.minLength||6;return!(t.length<r)||"Value must be longer than ".concat(r," characters")}},upperCase:{check:function(e){return!!/[A-Z]/g.test(e)||"Value must contain uppercased alphabetical characters"},increaseCharactersPoolSize:26},numeric:{check:function(e){return!!/[0-9]/g.test(e)||"Value must contain numeric characters"},increaseCharactersPoolSize:10},lowerCase:{check:function(e){return!!/[a-z]/g.test(e)||"Value must contain lowercased alphabetical characters"},increaseCharactersPoolSize:26},symbols:{check:function(e){return!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(e)||"Value must contain symbols"},increaseCharactersPoolSize:32}}}},{key:"charactersPoolLength",get:function(){return this._charactersPoolLength},set:function(e){this._charactersPoolLength=e}},{key:"level",get:function(){return this._level||this.getLevel()},set:function(e){this._level=e}},{key:"entropy",get:function(){return this._entropy},set:function(e){var t=this.getLevel(),n="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&t.name!==this.level.name||n)&&this.updateView()}},{key:"dictionarySize",get:function(){return this.settings.dictionarySize||171476}},{key:"template",get:function(){return this.settings.template}},{key:"tooltip",get:function(){var e,t;return(null===(e=this.level)||void 0===e?void 0:e.tooltip)||"".concat(null===(t=this.level)||void 0===t?void 0:t.name," strongness")}},{key:"rulesSettings",get:function(){return this.settings.rulesSettings||[]}},{key:"customRules",get:function(){return this.settings.customRules||[]}},{key:"log2",value:function(e){return"function"==typeof Math.log2?Math.log2(e):Math.log(e)*Math.LOG2E}},{key:"calculatePasswordEntropy",value:function(e,t){return e&&t?this.log2(Math.pow(t,e)):0}},{key:"calculatePasswordEntropyWords",value:function(e){return this.dictionarySize?this.log2(this.dictionarySize)*e:0}},{key:"render",value:function(){var e=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(e)}},{key:"checkBlackList",value:function(e){var t=s(this.settings.blackList),n=this.settings.customBlacklistedWords;n&&"string"==typeof n&&(n=this.evaluate(n,this.component.evalContext({value:e}),"values"))&&n.length&&t.push.apply(t,s(n));for(var r=e,o=[],i=0;i<t.length;i++){var a=t[i],l=new RegExp("".concat(a),"gi");if(l.test(e)&&(o.push(a),r=r.replace(l,"")),r.length<3)break}if(o.length){var u=(r.length?this.performChecks(r):0).charactersPoolSize,c=this.calculatePasswordEntropy(r.length,u);return{entropy:this.calculatePasswordEntropyWords(o.length)+c,blacklistedWords:o}}return!0}},{key:"isValid",value:function(){var e=this.settings.isValid;return e&&"string"==typeof e?this.evaluate(e,this.component.evalContext({entropy:this.entropy,level:this.level}),"valid"):this.entropy>=Math.round(this.maxEntropy/2)}},{key:"handleRuleCheckResult",value:function(e,t,n,r){if(!0!==e)r.push({validation:t.name,message:n,level:t.required?"error":"warning"});else if(t.increaseCharactersPoolSize)return t.increaseCharactersPoolSize;return 0}},{key:"performChecks",value:function(e){var t=this,n=[],r=0;return this.rulesSettings.forEach((function(i){if(t.rules[i.name]){var a=o.default.merge({},t.rules[i.name],i),l=a.check(e,i.options||{}),s=i.message||l;r+=t.handleRuleCheckResult(l,a,s,n)}})),this.customRules.forEach((function(o){if(o.check&&"string"==typeof o.check){var i=t.evaluate(o.check,t.component.evalContext({value:e}),"valid"),a="string"==typeof i?i:"Password does not meet ".concat(o.name," validation");r+=t.handleRuleCheckResult(i,o,a,n)}})),{charactersPoolSize:r,errors:n}}},{key:"checkValidity",value:function(e){var t,n=e.length,r=this.performChecks(e),o=r.charactersPoolSize,i=r.errors;this.errors=i;var a=this.calculatePasswordEntropy(n,o),l=null!==(t=this.settings.blackList)&&void 0!==t&&t.length||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return l&&!0!==l?(this.handleBlackListCheckResult(l),this.entropy=Math.min(a,l.entropy)):this.entropy=a,this.isValid()||this.errors.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),!this.errors.length}},{key:"handleBlackListCheckResult",value:function(e){var t=e.blacklistedWords,n=this.settings.disableBlacklistedWords,r="Password ".concat(n?"must":"should"," not include common words: ").concat(t.join(", ")),o={name:"blacklist",required:n};this.handleRuleCheckResult(!1,o,r,this.errors)}},{key:"attach",value:function(e){var t=this;f(m(d.prototype),"attach",this).call(this,e);var n=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(e,n)||this.component.append(n),this._element=n,this.component.on("redraw",(function(){return t.updateView()})),this.component.on("componentError",(function(){return t.updateView()})),this.updateView()}},{key:"insertContainer",value:function(e,t){var n,r;if(!e||!t)return!1;var o,i=null===(n=this.settings.location)||void 0===n?void 0:n.insert,a=null===(r=this.settings.location)||void 0===r?void 0:r.selector;if(a&&(o=e.querySelector(a)),!o)return console.warn("No elements found using selector: ".concat(a)),!1;var l=o.parentNode;switch(i){case"after":return!!l&&(l.insertBefore(t,o.nextSibling||null),!0);case"before":return!!l&&(l.insertBefore(t,o),!0);default:return console.warn("Unknown insert option: ".concat(i)),!1}}},{key:"destroy",value:function(){f(m(d.prototype),"destroy",this).call(this)}},{key:"getLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.entropy,t=this.levels[0],n=t.maxEntropy;if(e<=t.maxEntropy)return t;if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(var r=1;r<this.levels.length;r++){var o=this.levels[r];if(e>n&&e<=o.maxEntropy)return o;n=o.maxEntropy}return t}},{key:"updateView",value:function(){if(this.element){var e=this.render();this.element.innerHTML=e}}}],r=[{key:"info",get:function(){return{supportedComponents:["password"],name:"passwordStrength",components:a.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n          <div class=\"formio-security-indicator\">\n            {% if (!ctx.readOnly && !ctx.pristine) { %}\n              <div\n                title=\"{{ctx.t(ctx.tooltip)}}\"\n                class=\"security-{{ctx.levelName}} {{ ctx.level.style ? 'bg-' + ctx.level.style : ''}}\"\n                style=\"{{ctx.level.color ? 'background-color: ' + ctx.level.color + ';' : ''}}\"\n              ></div>\n            {% } %}\n          </div>\n        ",location:{insert:"after",selector:'[ref="element"]'}}}}}],n&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.default);t.default=y},24951:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.editForms=t.default=void 0,n(21249),n(68309);var r,o=(r=n(16996))&&r.__esModule?r:{default:r},i=[o.default.info].map((function(e){var t=e.components,n=e.name;return{type:"form",key:"settings",display:"form",input:!0,components:t,defaultValue:{data:e.defaultSettings},customConditional:function(e){return e.row.name.value===n}}}));t.editForms=i;var a={passwordStrength:o.default};t.default=a},57514:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=l(n(96486)),o=l(n(6487)),i=l(n(95529)),a=l(n(72940));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var f,d,p,h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addBuilder",value:function(t,n){e.builders[t]=n}},{key:"addBuilders",value:function(t){e.builders=r.default.merge(e.builders,t)}},{key:"getBuilder",value:function(t){return e.builders[t]}},{key:"getBuilders",value:function(){return e.builders}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=h,f=h,d="builders",p={pdf:o.default,webform:i.default,wizard:a.default},(d=c(d))in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p},57104:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(57514))&&r.__esModule?r:{default:r}).default;t.default=o},39086:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=l(n(64430)),o=l(n(61550)),i=l(n(3248)),a=l(n(96486));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"EditFormUtils",get:function(){return e._editFormUtils},set:function(t){e._editFormUtils=t}},{key:"baseEditForm",get:function(){return e._baseEditForm},set:function(t){e._baseEditForm=t}},{key:"recalculateComponents",value:function(){window&&window.Formio&&window.Formio.AllComponents&&e.setComponents(window.Formio.AllComponents)}},{key:"components",get:function(){return e._components||(e._components={}),e._components}},{key:"setComponents",value:function(t){t.base&&(t.base.tableView=function(t,n){return e.create(n.component,n.options||{},n.data||{},!0).getView(t)}),a.default.assign(e.components,t)}},{key:"addComponent",value:function(t,n){return e.setComponent(t,n)}},{key:"setComponent",value:function(t,n){e.components[t]=n}},{key:"create",value:function(t,n,o){return t.type&&e.components.hasOwnProperty(t.type)?new e.components[t.type](t,n,o):t.arrayTree?new e.components.datagrid(t,n,o):t.tree?new e.components.nesteddata(t,n,o):Array.isArray(t.components)?new e.components.nested(t,n,o):n&&n.server?new e.components.hidden(t,n,o):new r.default(t,n,o)}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=d,c(d,"_editFormUtils",o.default),c(d,"_baseEditForm",i.default)},3248:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var d=r.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:l.default},{label:"Data",key:"data",weight:10,components:i.default},{label:"Validation",key:"validation",weight:20,components:u.default},{label:"API",key:"api",weight:30,components:a.default},{label:"Conditional",key:"conditional",weight:40,components:o.default},{label:"Logic",key:"logic",weight:50,components:s.default},{label:"Layout",key:"layout",weight:60,components:c.default}]}]).concat(t.map((function(e){return{type:"tabs",key:"tabs",components:r.default.cloneDeep(e)}})));return{components:r.default.unionWith(d,f.default.unifyComponents).concat({type:"hidden",key:"type"})}},n(92222),n(21249);var r=d(n(96486)),o=d(n(89551)),i=d(n(10024)),a=d(n(30811)),l=d(n(10684)),s=d(n(48911)),u=d(n(51250)),c=d(n(77869)),f=d(n(61550));function d(e){return e&&e.__esModule?e:{default:e}}},64430:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(33948),n(47941),n(49337),n(33321),n(4129),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(68309),n(92087),n(24812),n(89554),n(41539),n(54747),n(82772),n(92222),n(26699),n(32023),n(79753),n(74916),n(15306),n(23157),n(69600),n(83710),n(39714),n(21249),n(40561),n(85827),n(91058),n(27207),n(57327),n(91038),n(78783),n(5212),n(47042),n(68304),n(30489),n(32564);var o=n(47853),i=g(n(91459)),a=g(n(31051)),l=g(n(96486)),s=g(n(90891)),u=n(19161),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82531)),f=g(n(6771)),d=g(n(34558)),p=g(n(72801)),h=g(n(22457)),m=g(n(24951)),y=n(17607),v=g(n(6701));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function g(e){return e&&e.__esModule?e:{default:e}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=P(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function S(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function E(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function C(){return C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=A(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},C.apply(this,arguments)}function A(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=D(e)););return e}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function M(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var I=c.getBrowserInfo().ie,L=u.GlobalFormio.Templates;L||(L=n(51508).default);var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(w,e);var t,n,r,d,b,g=(d=w,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=D(d);if(b){var n=D(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(this,e)});function w(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),r=g.call(this,Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},t||{})),e&&e.id&&(r.id=e.id),r._hasCondition=null,r.refs={},e&&r.options.components&&r.options.components[e.type]&&l.default.merge(e,r.options.components[e.type]),r.validator=f.default,r.path="",r.component=r.mergeSchema(e||{}),r.component.id=r.id,r.afterComponentAssign(),r.originalComponent=(0,c.fastCloneDeep)(r.component),r.attached=!1,r.rendered=!1,r._data=n||{},r.error="",r.tooltip="",r.row=r.options.row,r._disabled=!!(0,c.boolValue)(r.component.disabled)&&r.component.disabled,r.root=r.options.root,r.localRoot=r.options.localRoot,r.pristine=!0,r.parent=r.options.parent,r.options.name=r.options.name||"data",r.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],r._path="",r._parentPath=r.options.parentPath||"",r.resetCaches(),r._parentVisible=!r.options.hasOwnProperty("parentVisible")||r.options.parentVisible,r._visible=r._parentVisible&&r.conditionallyVisible(null,n),r._parentDisabled=!1;var o=[],i=null,a=[],s=l.default.debounce((function(){var e;r.root&&(r.root.changing=!1),a=[];for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];!n[1]&&i&&(n[1]=i),l.default.isEmpty(n[0])&&i&&(n[0]=i.flags),i=null,n[3]=o;var u=(e=r).onChange.apply(e,n);return o=[],u}),100);return r.triggerChange=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1]&&(i=t[1],o.push(i)),r.root&&(r.root.changing=!0),t.length&&(a=t),s.apply(void 0,S(a))},r.triggerRedraw=l.default.debounce(r.redraw.bind(R(r)),100),r.tooltips=[],r.addons=[],r.invalid=!1,r.component&&(r.type=r.component.type,r.allowData&&r.key&&(r.options.name+="[".concat(r.key,"]"),!r.visible&&r.component.clearOnHide||(r.hasValue()?r.dataValue=r.dataValue:r.shouldAddDefaultValue&&(r.dataValue=r.defaultValue))),r.info=r.elementInfo()),r.hook("component"),r.options.skipInit||r.init(),r}return t=w,n=[{key:"data",get:function(){return this._data},set:function(e){this._data=e}},{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l.default.defaultsDeep(e,this.defaultSchema)}},{key:"ready",get:function(){return i.default.resolve(this)}},{key:"isPDFReadOnlyMode",get:function(){return this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly}},{key:"labelInfo",get:function(){var e={};e.hidden=this.labelIsHidden(),e.className="",e.labelPosition=this.component.labelPosition,e.tooltipClass="".concat(this.iconClass("question-sign")," text-muted");var t=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,c.boolValue)(this.component.validate.required)&&!t&&(e.className+=" field-required"),e.hidden&&(e.className+=" control-label--hidden"),this.info.attr.id&&(e.for=this.info.attr.id),e}},{key:"init",value:function(){var e,t=this;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),null!==(e=this.component.addons)&&void 0!==e&&e.length&&this.component.addons.forEach((function(e){return t.createAddon(e)}))}},{key:"afterComponentAssign",value:function(){}},{key:"createAddon",value:function(e){var t,n=e.name;if(n){var r=(null===(t=e.settings)||void 0===t?void 0:t.data)||{},o=m.default[n.value],i=null;if(o){var a=o.info.supportedComponents;null!=a&&a.length&&-1===a.indexOf(this.component.type)?console.warn("Addon ".concat(n.label," does not support component of type ").concat(this.component.type,".")):(i=new o(r,this),this.addons.push(i))}return i}}},{key:"destroy",value:function(){C(D(w.prototype),"destroy",this).call(this),this.detach(),this.addons.forEach((function(e){return e.destroy()}))}},{key:"shouldDisabled",get:function(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}},{key:"isInputComponent",get:function(){return!this.component.hasOwnProperty("input")||this.component.input}},{key:"allowData",get:function(){return this.hasInput}},{key:"hasInput",get:function(){return this.isInputComponent||this.refs.input&&this.refs.input.length}},{key:"defaultSchema",get:function(){return w.schema()}},{key:"key",get:function(){return l.default.get(this.component,"key","")}},{key:"parentVisible",get:function(){return this._parentVisible},set:function(e){this._parentVisible=e}},{key:"parentDisabled",get:function(){return this._parentDisabled},set:function(e){this._parentDisabled=e}},{key:"shouldForceVisibility",value:function(e,t){return!!this.options[t]&&(e||(e=this.component),l.default.isArray(this.options[t])?this.options[t].includes(e.key):this.options[t][e.key])}},{key:"shouldForceHide",value:function(e){return this.shouldForceVisibility(e,"hide")}},{key:"shouldForceShow",value:function(e){return this.shouldForceVisibility(e,"show")}},{key:"visible",get:function(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)},set:function(e){if(this._visible!==e){if(e&&this.shouldForceHide())return;if(!e&&this.shouldForceShow())return;this._visible=e,this.clearOnHide(),this.redraw()}}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){this._currentForm=e}},{key:"fullMode",get:function(){return"full"===this.options.attachMode}},{key:"builderMode",get:function(){return"builder"===this.options.attachMode}},{key:"calculatedPath",get:function(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}},{key:"labelPosition",get:function(){return this.component.labelPosition}},{key:"labelWidth",get:function(){var e=this.component.labelWidth;return e>=0?e:30}},{key:"labelMargin",get:function(){var e=this.component.labelMargin;return e>=0?e:3}},{key:"isAdvancedLabel",get:function(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}},{key:"labelPositions",get:function(){return this.labelPosition.split("-")}},{key:"skipInEmail",get:function(){return!1}},{key:"rightDirection",value:function(e){return!this.options.condensedMode&&"right"===e}},{key:"getLabelInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.rightDirection(this.labelPositions[0]),n="left"===this.labelPositions[0]||e,r=this.rightDirection(this.labelPositions[1]),o="";if(this.component.hideLabel){var i=e?0:this.labelWidth+this.labelMargin;o=t?"margin-right: ".concat(i,"%"):"",o=n?"margin-left: ".concat(i,"%"):""}var a="\n      flex: ".concat(this.labelWidth,";\n      ").concat(t?"margin-left":"margin-right",": ").concat(this.labelMargin,"%;\n    "),l="\n      flex: ".concat(100-this.labelWidth-this.labelMargin,";\n      ").concat(o,";\n      ").concat(this.component.hideLabel?"max-width: ".concat(100-this.labelWidth-this.labelMargin):"",";\n    ");return{isRightPosition:t,isRightAlign:r,labelStyles:a,contentStyles:l}}},{key:"getModifiedSchema",value:function(e,t,n){var r=this,o={};return t?(l.default.each(e,(function(e,i){if(!l.default.isArray(e)&&l.default.isObject(e)&&t.hasOwnProperty(i)){var a=r.getModifiedSchema(e,t[i],!0);l.default.isEmpty(a)||(o[i]=a)}else l.default.isArray(e)?0===e.length||l.default.isEqual(e,t[i])||(o[i]=e):(!n&&"type"===i||!n&&"key"===i||!n&&"label"===i||!n&&"input"===i||!n&&"tableView"===i||""!==e&&!t.hasOwnProperty(i)||""!==e&&e!==t[i]||t[i]&&e!==t[i])&&(o[i]=e)})),o):e}},{key:"schema",get:function(){return(0,c.fastCloneDeep)(this.getModifiedSchema(l.default.omit(this.component,"id"),this.defaultSchema))}},{key:"isInDataGrid",get:function(){return this.inDataGrid}},{key:"t",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(e in v.default&&n._userInput)return e;n.data=this.rootValue,n.row=this.data,n.component=this.component;for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return(t=C(D(w.prototype),"t",this)).call.apply(t,[this,e,n].concat(o))}},{key:"labelIsHidden",value:function(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}},{key:"transform",value:function(e,t){var n=this.options.template?L.templates[this.options.template]:L.current;return n.hasOwnProperty("transform")?n.transform(e,t):function(e,t){return t}}},{key:"getTemplate",value:function(e,t){t=Array.isArray(t)?t:[t],e=Array.isArray(e)?e:[e],t.includes("form")||t.push("form");var n=null;if(this.options.templates&&(n=this.checkTemplate(this.options.templates,e,t)))return n;var r=this.options.template?L.templates[this.options.template]:L.current;if(n=this.checkTemplate(r,e,t))return n;var o=e[e.length-1],i=L.defaultTemplates[o];return i?this.checkTemplateMode(i,t)||i.form:"Unknown template: ".concat(o)}},{key:"checkTemplate",value:function(e,t,n){var r,o=_(t);try{for(o.s();!(r=o.n()).done;){var i=e[r.value];if(i){var a=this.checkTemplateMode(i,n);if(a)return a}}}catch(e){o.e(e)}finally{o.f()}return null}},{key:"checkTemplateMode",value:function(e,t){var n,r=_(t);try{for(r.s();!(n=r.n()).done;){var o=e[n.value];if(o)return o}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"getFormattedAttribute",value:function(e){return e?this.t(e,{_userInput:!0}).replace(/"/g,"&quot;"):""}},{key:"getFormattedTooltip",value:function(e){var t=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"<br />");return this.getFormattedAttribute(t)}},{key:"isHtmlRenderMode",value:function(){return"html"===this.options.renderMode}},{key:"renderTemplate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=r||this.options.renderMode||"form";n.component=this.component,n.self=this,n.options=this.options,n.readOnly=this.options.readOnly,n.iconClass=this.iconClass.bind(this),n.size=this.size.bind(this),n.t=this.t.bind(this),n.transform=this.transform.bind(this),n.id=n.id||this.id,n.key=n.key||this.key,n.value=n.value||this.dataValue,n.disabled=this.disabled,n.builder=this.builderMode,n.render=function(){return console.warn("Form.io 'render' template function is deprecated.\n      If you need to render template (template A) inside of another template (template B),\n      pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),t.renderTemplate.apply(t,arguments)},n.label=n.labelInfo||this.labelInfo,n.tooltip=this.getFormattedTooltip(this.component.tooltip);var i=["".concat(e,"-").concat(this.component.type,"-").concat(this.key),"".concat(e,"-").concat(this.component.type),"".concat(e,"-").concat(this.key),"".concat(e)];return this.hook("render".concat(e.charAt(0).toUpperCase()+e.substring(1,e.length)),this.interpolate(this.getTemplate(i,o),n),n,o)}},{key:"sanitize",value:function(e,t,n){var r;return this.shouldSanitizeValue||t?c.sanitize(e,{sanitizeConfig:l.default.merge((null===(r=this.options)||void 0===r?void 0:r.sanitizeConfig)||{},n||{})}):e}},{key:"renderString",value:function(e,t){return e?this.interpolate(e,t):""}},{key:"performInputMapping",value:function(e){return e}},{key:"widget",get:function(){var e,t=this.component.widget;return t&&null!==(e=this.root)&&void 0!==e&&e.shadowRoot&&(t.shadowRoot=this.root.shadowRoot),t&&h.default[t.type]?new h.default[t.type](t,this.component,this):null}},{key:"getBrowserLanguage",value:function(){var e,t=window.navigator,n=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(t.languages))for(var r=0;r<t.languages.length;r++)if((e=t.languages[r])&&e.length)return e.split(";")[0];for(var o=0;o<n.length;o++)if((e=t[n[o]])&&e.length)return e.split(";")[0];return null}},{key:"beforePage",value:function(){return i.default.resolve(!0)}},{key:"beforeNext",value:function(){return this.beforePage(!0)}},{key:"beforeSubmit",value:function(){return i.default.resolve(!0)}},{key:"submissionTimezone",get:function(){return this.options.submissionTimezone=this.options.submissionTimezone||l.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}},{key:"timezone",get:function(){return this.getTimezone(this.component)}},{key:"getTimezone",value:function(e){if(e.timezone)return e.timezone;if("utc"===e.displayInTimezone)return"UTC";var t=this.submissionTimezone;return t&&("submission"===e.displayInTimezone||(this.options.pdf||this.options.server)&&"viewer"===e.displayInTimezone)?t:(0,c.currentTimezone)()}},{key:"loadRefs",value:function(e,t){for(var n in t){var r=t[n],o="string"==typeof r,i=o&&r.includes("scope")?':scope > [ref="'.concat(n,'"]'):'[ref="'.concat(n,'"]');o&&r.startsWith("single")?this.refs[n]=e.querySelector(i):this.refs[n]=e.querySelectorAll(i)}}},{key:"setOpenModalElement",value:function(e){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){var e,t,n="password"===this.component.type?this.dataValue.replace(/./g,"•"):this.dataValue,r=this.error?{level:"error",message:this.error.message}:"";return this.hasInput&&null!==(e=this.component.validate)&&void 0!==e&&e.required&&!this.isPDFReadOnlyMode&&(t={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(n,{modalPreview:!0})||this.t("Click to set value"),messages:r&&this.renderTemplate("message",r),labelInfo:t})}},{key:"build",value:function(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}},{key:"hasModalSaveButton",get:function(){return!0}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown component: ".concat(this.component.type),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:n,id:this.id,classes:this.className,styles:this.customStyle,children:e},t):p.default.render(this,{visible:n,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},t)}},{key:"attachTooltips",value:function(e){var t=this;null==e||e.forEach((function(e,n){if(e){var r=e.getAttribute("data-tooltip"),o=e.getAttribute("data-title"),i=t.interpolate(o||r).replace(/(?:\r\n|\r|\n)/g,"<br />");t.tooltips[n]=(0,a.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:t.t(t.sanitize(i),{_userInput:!0})})}}))}},{key:"createComponentModal",value:function(e,t,n){return new p.default(this,e,t,n)}},{key:"attach",value:function(e){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){var t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue,r=this.componentModal&&t?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(e,t,n),this.setOpenModalElement(r)}this.attached=!0,this.element=e,e.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(e,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",e,this);var o=this.component.type;return o&&this.hook("attach".concat(o.charAt(0).toUpperCase()+o.substring(1,o.length)),e,this),this.restoreFocus(),this.addons.forEach((function(t){return t.attach(e)})),i.default.resolve()}},{key:"restoreFocus",value:function(){var e,t,n;(null===(e=this.root)||void 0===e||null===(t=e.focusedComponent)||void 0===t?void 0:t.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(n=this.root.currentSelection)||void 0===n?void 0:n.index),this.restoreCaretPosition())}},{key:"addShortcut",value:function(e,t){e&&this.root&&this.root!==this&&(t||(t=this.component.shortcut),this.root.addShortcut(e,t))}},{key:"removeShortcut",value:function(e,t){e&&this.root!==this&&(t||(t=this.component.shortcut),this.root.removeShortcut(e,t))}},{key:"detach",value:function(){this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}},{key:"checkRefresh",value:function(e,t,n){var r=l.default.get(t,"instance.path",!1);r&&this.path===r||("data"===e?this.refresh(this.data,t,n):r&&(0,c.getComponentPath)(t.instance)===e&&t&&t.instance&&this.inContext(t.instance)&&this.refresh(t.value,t,n))}},{key:"checkRefreshOn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=e||[],!n.noRefresh){!e.length&&n.changed&&(e=[n.changed]);var r=n.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;r&&(Array.isArray(r)?r.forEach((function(r){return e.forEach((function(e){return t.checkRefresh(r,e,n)}))})):e.forEach((function(e){return t.checkRefresh(r,e,n)})))}}},{key:"refresh",value:function(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!l.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,c.fastCloneDeep)(e),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}},{key:"inContext",value:function(e){if(e.data===this.data)return!0;for(var t=this.parent;t;){if(t.data===e.data)return!0;t=t.parent}return!1}},{key:"viewOnly",get:function(){return this.options.readOnly&&this.options.viewAsHtml}},{key:"createViewOnlyElement",value:function(){return this.element=this.ce("dl",{id:this.id}),this.element&&(this.element.component=this),this.element}},{key:"defaultViewOnlyValue",get:function(){return"-"}},{key:"getWidgetValueAsString",value:function(e,t){var n=this,r=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!e||r)return this.widget&&e?this.widget.getValueAsString(e):e;if(Array.isArray(e)){var o=[];return e.forEach((function(e,r){var i=n.refs.input[r]&&n.refs.input[r].widget;i&&o.push(i.getValueAsString(e,t))})),o}return this.refs.input[0].widget.getValueAsString(e,t)}},{key:"getValueAsString",value:function(e,t){if(!e)return"";if(e=this.getWidgetValueAsString(e,t),Array.isArray(e))return e.join(", ");if(l.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";var n=e.toString();return this.sanitize(n)}},{key:"getView",value:function(e,t){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(e,t)}},{key:"updateItems",value:function(){this.restoreValue(),this.onChange.apply(this,arguments)}},{key:"itemValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(l.default.isObject(e)&&!l.default.isArray(e)){if(this.valueProperty)return l.default.get(e,this.valueProperty);if(t)return e.value}return e}},{key:"itemValueForHTMLMode",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return Array.isArray(e)?t.itemValueForHTMLMode(e):t.itemValue(e)})).join(", "):this.itemValue(e)}},{key:"createModal",value:function(e,t,n){var r=this,o=this.ce("div",t||{});this.setContent(o,this.renderTemplate("dialog")),o.refs={},this.loadRefs.call(o,o,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),o.refs.dialogContents.appendChild(e),document.body.appendChild(o),document.body.classList.add("modal-open"),o.close=function(){document.body.classList.remove("modal-open"),o.dispatchEvent(new CustomEvent("close"))},this.addEventListener(o,"close",(function(){return r.removeChildFrom(o,document.body)}));var i=function(e){e.preventDefault(),o.close()},a=function(e){n?n().then((function(){return i(e)})).catch((function(){})):i(e)};return this.addEventListener(o.refs.dialogOverlay,"click",a),this.addEventListener(o.refs.dialogClose,"click",a),o}},{key:"optimizeRedraw",get:function(){return!(!this.options.optimizeRedraw||!this.element||this.visible||(this.addClass(this.element,"formio-removed"),0))}},{key:"className",get:function(){var e=this.hasInput?"".concat(this.transform("class","form-group")," has-feedback "):"";return e+="formio-component formio-component-".concat(this.component.type," "),this.key&&"form"!==this.key&&(e+="formio-component-".concat(this.key," ")),this.component.multiple&&(e+="formio-component-multiple "),this.component.customClass&&(e+=this.component.customClass),this.hasInput&&this.component.validate&&(0,c.boolValue)(this.component.validate.required)&&(e+=" required"),this.labelIsHidden()&&(e+=" formio-component-label-hidden"),this.visible||(e+=" formio-hidden"),e}},{key:"customStyle",get:function(){var e="";return l.default.each(this.component.style,(function(t,n){""!==t&&(e+="".concat(n,":").concat(t,";"))})),e}},{key:"isMobile",get:function(){return(0,s.default)()}},{key:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(e){return C(D(w.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},e))}},{key:"setPristine",value:function(e){this.pristine=e}},{key:"isPristine",get:function(){return this.pristine}},{key:"setDirty",value:function(e){this.dirty=e}},{key:"isDirty",get:function(){return this.dirty}},{key:"removeValue",value:function(e){this.splice(e),this.redraw(),this.restoreValue(),this.triggerRootChange()}},{key:"iconClass",value:function(e,t){var n=this.options.iconset||L.current.defaultIconset||"fa";return L.current.hasOwnProperty("iconClass")?L.current.iconClass(n,e,t):"fa"===this.options.iconset?L.defaultTemplates.iconClass(n,e,t):e}},{key:"size",value:function(e){return L.current.hasOwnProperty("size")?L.current.size(e):e}},{key:"name",get:function(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}},{key:"errorLabel",get:function(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}},{key:"errorMessage",value:function(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}},{key:"setContent",value:function(e,t,n,r){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n,r),!0)}},{key:"restoreCaretPosition",value:function(){var e,t;if(null!==(e=this.root)&&void 0!==e&&e.currentSelection&&null!==(t=this.refs.input)&&void 0!==t&&t.length){var n=this.root.currentSelection,r=n.selection,o=n.index,i=this.refs.input[o],a=function(e){return/text|search|password|tel|url/i.test((null==e?void 0:e.type)||"")};if(i){var l;a(i)&&(l=i).setSelectionRange.apply(l,S(r))}else{var s,u=(null===(s=(i=this.refs.input[this.refs.input.length]).value)||void 0===s?void 0:s.length)||0;a(i)&&i.setSelectionRange(u,u)}}}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return i.default.resolve();this.detach(),this.emit("redraw");var e=this.element.parentNode,t=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.element=e.children[t],this.attach(this.element)}},{key:"rebuild",value:function(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}},{key:"removeEventListeners",value:function(){C(D(w.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach((function(e){return e.destroy()})),this.tooltips=[]}},{key:"hasClass",value:function(e,t){if(e)return C(D(w.prototype),"hasClass",this).call(this,e,this.transform("class",t))}},{key:"addClass",value:function(e,t){if(e)return C(D(w.prototype),"addClass",this).call(this,e,this.transform("class",t))}},{key:"removeClass",value:function(e,t){if(e)return C(D(w.prototype),"removeClass",this).call(this,e,this.transform("class",t))}},{key:"hasCondition",value:function(){return null!==this._hasCondition||(this._hasCondition=c.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(e,t){return e=e||this.rootValue,t=t||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(t,e))}},{key:"checkCondition",value:function(e,t){return c.checkCondition(this.component,e||this.data,t||this.rootValue,this.root?this.root._form:{},this)}},{key:"checkComponentConditions",value:function(e,t,n){e=e||this.rootValue,t=t||{},n=n||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,n)&&this.redraw();var r=this.conditionallyVisible(e,n);return this.visible!==r&&(this.visible=r),r}},{key:"checkConditions",value:function(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkComponentConditions(e,t,n)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"fieldLogic",value:function(e,t){var n=this;e=e||this.rootValue,t=t||this.data;var r=this.logic;if(0!==r.length){var o=(0,c.fastCloneDeep)(this.originalComponent),i=r.reduce((function(r,i){var a=c.checkTrigger(o,i.trigger,t,e,n.root?n.root._form:{},n);return!!a&&n.applyActions(o,i.actions,a,t,e)||r}),!1);if(!l.default.isEqual(this.component,o)){this.component=o,i=!0;var a=this.shouldDisabled;this.disabled!==a&&(this.disabled=a)}return i}}},{key:"isIE",value:function(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}},{key:"defineActionValue",value:function(e,t){return this.evaluate(e.value,t,"value")}},{key:"applyActions",value:function(e,t,n,r,o){var i=this;return o=o||this.rootValue,r=r||this.data,t.reduce((function(t,a){switch(a.type){case"property":c.setActionProperty(e,a,n,r,o,i);var s=a.property.value;l.default.isEqual(l.default.get(i.component,s),l.default.get(e,s))||(t=!0);break;case"value":var u=i.getValue(),f=i.defineActionValue(a,{value:l.default.clone(u),data:o,row:r,component:e,result:n});l.default.isEqual(u,f)||i.component.clearOnHide&&!i.visible||(i.setValue(f),i.viewOnly&&(i.dataValue=f),t=!0);break;case"mergeComponentSchema":var d=i.evaluate(a.schemaDefinition,{value:l.default.clone(i.getValue()),data:o,row:r,component:e,result:n},"schema");l.default.assign(e,d),l.default.isEqual(i.component,e)||(t=!0);break;case"customAction":var p=i.getValue(),h=i.evaluate(a.customAction,{value:l.default.clone(p),data:o,row:r,input:p,component:e,result:n},"value");l.default.isEqual(p,h)||i.component.clearOnHide&&!i.visible||(i.setValue(h),i.viewOnly&&(i.dataValue=h),t=!0)}return t}),!1)}},{key:"addInputError",value:function(e,t,n){this.addMessages(e),this.setErrorClasses(n,t,!!e)}},{key:"removeInputError",value:function(e){this.setErrorClasses(e,!0,!1)}},{key:"addMessages",value:function(e){var t=this;e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=l.default.uniqBy(e,(function(e){return e.message})),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map((function(e){return e.message&&"string"==typeof e.message&&(e.message=e.message.replaceAll("<","&lt;").replaceAll(">","&gt;")),t.renderTemplate("message",e)})).join("")))}},{key:"setErrorClasses",value:function(e,t,n,r){var o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.clearErrorClasses(),e.forEach((function(e){o.setElementInvalid(o.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(e,n),this.visible&&(n&&(e.forEach((function(e){o.setElementInvalid(o.performInputMapping(e),!0)})),t&&this.options.highlightErrors?this.addClass(i,this.options.componentErrorClass):this.addClass(i,"has-error")),r&&this.addClass(i,"has-message"))}},{key:"setElementInvalid",value:function(e,t){e&&(t?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",t?"true":"false"))}},{key:"clearOnHide",value:function(){this.rootPristine&&!this.options.server&&!(0,c.isInsideScopingComponent)(this)||!1===this.component.clearOnHide||this.options.readOnly||this.options.showHiddenFields||(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}},{key:"triggerRootChange",value:function(){var e;if(this.options.onChange)(e=this.options).onChange.apply(e,arguments);else if(this.root){var t;(t=this.root).triggerChange.apply(t,arguments)}}},{key:"onChange",value:function(e,t){(e=e||{}).modified&&(e.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn||this.errors.length||(e.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:e});var n={instance:this,component:this.component,value:this.dataValue,flags:e};this.emit("componentChange",n);var r=!1;return e.modified&&(r=!0,delete e.modified),t||this.triggerRootChange(e,n,r),n}},{key:"wysiwygDefault",get:function(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}},{key:"addCKE",value:function(e,t,n){return(t=l.default.isEmpty(t)?{}:t).base64Upload=!this.component.isUploadEnabled,t.mediaEmbed={previewsInData:!0},t=l.default.merge(this.wysiwygDefault.ckeditor,l.default.get(this.options,"editors.ckeditor.settings",{}),t),this.component.isUploadEnabled&&t.extraPlugins.push((0,y.getFormioUploadAdapterPlugin)(this.fileService,this)),u.GlobalFormio.requireLibrary("ckeditor",I?"CKEDITOR":"ClassicEditor",l.default.get(this.options,"editors.ckeditor.src","".concat(u.GlobalFormio.cdn.ckeditor,"/ckeditor.js")),!0).then((function(){if(!e.parentNode)return i.default.reject();if(I){var r=CKEDITOR.replace(e);return r.on("change",(function(){return n(r.getData())})),i.default.resolve(r)}return ClassicEditor.create(e,t).then((function(e){return e.model.document.on("change",(function(){return n(e.data.get())})),e}))}))}},{key:"addQuill",value:function(e,t,n){var r=this;return t=l.default.isEmpty(t)?this.wysiwygDefault.quill:t,t=k(k({},t=l.default.merge(this.wysiwygDefault.quill,l.default.get(this.options,"editors.quill.settings",{}),t)),{},{modules:k({table:!0},t.modules)}),u.GlobalFormio.requireLibrary("quill-css-".concat(t.theme),"Quill",[{type:"styles",src:"".concat(u.GlobalFormio.cdn.quill,"/quill.").concat(t.theme,".css")}],!0),u.GlobalFormio.requireLibrary("quill","Quill",l.default.get(this.options,"editors.quill.src","".concat(u.GlobalFormio.cdn.quill,"/quill.min.js")),!0).then((function(){return u.GlobalFormio.requireLibrary("quill-table","Quill","".concat(u.GlobalFormio.cdn.baseUrl,"/quill/quill-table.js"),!0).then((function(){if(!e.parentNode)return i.default.reject();r.quill=new Quill(e,I?k(k({},t),{},{modules:{}}):t);var o=document.createElement("textarea");o.setAttribute("class","quill-source-code"),r.quill.addContainer("ql-custom").appendChild(o);var a=e.parentNode.querySelector(".ql-source");a&&r.addEventListener(a,"click",(function(e){e.preventDefault(),"inherit"===o.style.display&&r.quill.setContents(r.quill.clipboard.convert({html:o.value})),o.style.display="none"===o.style.display?"inherit":"none"})),r.addEventListener(e,"click",(function(){return r.quill.focus()}));for(var l=document.querySelectorAll(".ql-formats > button"),s=0;s<l.length;s++)l[s].setAttribute("tabindex","-1");return r.quill.on("text-change",(function(){o.value=r.quill.root.innerHTML,n(o)})),r.quill}))}))}},{key:"shouldSanitizeValue",get:function(){var e;return!1!==(null===(e=this.options)||void 0===e?void 0:e.sanitize)}},{key:"addAce",value:function(e,t,n){if(!t||"snow"===t.theme){var r=t?t.mode:"";t={},r&&(t.mode=r)}return t=l.default.merge(this.wysiwygDefault.ace,l.default.get(this.options,"editors.ace.settings",{}),t||{}),u.GlobalFormio.requireLibrary("ace","ace",l.default.get(this.options,"editors.ace.src","".concat(u.GlobalFormio.cdn.ace,"/ace.js")),!0).then((function(r){return(r=r.edit(e)).removeAllListeners("change"),r.setOptions(t),r.getSession().setMode(t.mode),r.on("change",(function(){return n(r.getValue())})),t.isUseWorkerDisabled&&r.session.setUseWorker(!1),r}))}},{key:"tree",get:function(){return this.component.tree||!1}},{key:"emptyValue",get:function(){return null}},{key:"hasValue",value:function(e){return!l.default.isUndefined(l.default.get(e||this.data,this.key))}},{key:"rootValue",get:function(){return this.root?this.root.data:this.data}},{key:"rootPristine",get:function(){return l.default.get(this,"root.pristine",!1)}},{key:"dataValue",get:function(){if(!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine)return this.emptyValue;if(!this.hasValue()&&this.shouldAddDefaultValue){var e=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=e),e}return l.default.get(this._data,this.key)},set:function(e){this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)&&(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null!=e?l.default.set(this._data,this.key,e):this.unset())}},{key:"splice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasValue()){var n=this.dataValue||[];l.default.isArray(n)&&n.hasOwnProperty(e)&&(n.splice(e,1),this.dataValue=n,this.triggerChange(t))}}},{key:"unset",value:function(){l.default.unset(this._data,this.key)}},{key:"deleteValue",value:function(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{key:"getCustomDefaultValue",value:function(e){return this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}},{key:"shouldAddDefaultValue",get:function(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}},{key:"defaultValue",get:function(){var e=this,t=this.emptyValue;this.component.defaultValue&&(t=this.component.defaultValue),t=this.getCustomDefaultValue(t);var n=function(t){if("string"==typeof t){if("textfield"!==e.component.type){var n=e.placeholderChar;t=(0,o.conformToMask)(t,e.defaultMask,{placeholderChar:n}).conformedValue,c.matchInputMask(t,e.defaultMask)||(t="")}}else t="";return t};return this.defaultMask&&(t=Array.isArray(t)?t.map(n):n(t)),l.default.cloneDeep(t)}},{key:"getValue",value:function(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e=[];for(var t in this.refs.input)if(this.refs.input.hasOwnProperty(t)){if(!this.component.multiple)return this.getValueAt(t);e.push(this.getValueAt(t))}return 0!==e.length||this.component.multiple?e:""}},{key:"getValueAt",value:function(e){var t=this.performInputMapping(this.refs.input[e]);return t?t.value:void 0}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.updateValue(e,t);if(e=this.dataValue,!this.hasInput)return n;var r=Array.isArray(e),o=this.refs.fileLink||this.refs.input;if(r&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&o&&o.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&t&&t.fromSubmission&&n)return this.redraw(),n;for(var i in this.refs.input)this.refs.input.hasOwnProperty(i)&&this.setValueAt(i,r?e[i]:e,t);return n}},{key:"setValueAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.noDefault||null!=t||this.component.multiple||(t=this.defaultValue);var r=this.performInputMapping(this.refs.input[e]),o=this.refs.valueMaskInput;null!=o&&o.mask&&o.mask.textMaskInputElement&&o.mask.textMaskInputElement.update(t),r.mask&&r.mask.textMaskInputElement?r.mask.textMaskInputElement.update(t):r.widget&&r.widget.setValue?r.widget.setValue(t):r.value=t}},{key:"hasSetValue",get:function(){return this.hasValue()&&!this.isEmpty(this.dataValue)}},{key:"setDefaultValue",value:function(){if(this.defaultValue&&this.shouldAddDefaultValue){var e=this.component.multiple&&!this.dataValue.length?[]:this.defaultValue;this.setValue(e,{noUpdateEvent:!0})}}},{key:"restoreValue",value:function(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}},{key:"normalizeValue",value:function(e){return this.component.multiple&&!Array.isArray(e)&&(e=e?[e]:[]),e}},{key:"updateComponentValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.resetValue||null!=e?e:this.getValue();n=this.normalizeValue(n,t);var r=this.dataValue,o=void 0!==n&&this.hasChanged(n,r);return o&&(this.dataValue=n,o=this.dataValue!==r,this.updateOnChange(t,o)),this.componentModal&&t&&t.fromSubmission&&this.componentModal.setValue(e),o}},{key:"updateValue",value:function(){return this.updateComponentValue.apply(this,arguments)}},{key:"getIcon",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"icon";return this.renderTemplate("icon",{className:this.iconClass(e),ref:r,styles:n,content:t})}},{key:"resetValue",value:function(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}},{key:"hasChanged",value:function(e,t){return!(null==e&&(null==t||this.isEmpty(t))||(null==e||!this.allowData||this.hasValue())&&l.default.isEqual(e,t))}},{key:"updateOnChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(e.noUpdateEvent||!t||(this.triggerChange(e),0))}},{key:"convertNumberOrBoolToString",value:function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}},{key:"doValueCalculation",value:function(e,t,n){var r;return this.evaluate(this.component.calculateValue,{value:e,data:t,row:n||this.data,submission:(null===(r=this.root)||void 0===r?void 0:r._submission)||{data:this.rootValue}},"value")}},{key:"calculateComponentValue",value:function(e,t,n){if(this.builderMode||l.default.isUndefined(l.default.get(this,"root.data")))return!1;var r=this.component.clearOnHide,o=!this.visible&&r,i=l.default.get(this.component,"allowCalculateOverride",!1);if(o)return this.hasOwnProperty("calculatedValue")&&i&&l.default.unset(this,"calculatedValue"),!1;if(this.options.readOnly&&!this.options.pdf&&!this.component.calculateValue||!this.component.calculateValue&&!this.component.calculateValueVariable||this.options.server&&!this.component.calculateServer||t.dataSourceInitialLoading&&i)return!1;var a=this.dataValue,s=this.doValueCalculation(a,e,n,t);if(this.options.readOnly&&a&&!s)return!1;l.default.isNil(s)&&(s=this.emptyValue);var u=!l.default.isEqual(a,s);if(i){var f=t.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(a))this.calculationLocked=!1;else if(this.calculationLocked||f)return this.calculationLocked=!0,!1;var d=void 0===this.calculatedValue||t.resetValue;d&&(this.calculatedValue=null);var p=this.normalizeValue(this.convertNumberOrBoolToString(s)),h=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),m=this.normalizeValue(this.convertNumberOrBoolToString(a)),y=!l.default.isEqual(h,p),v=!l.default.isEqual(m,h);if(y&&v&&!d)return!1;if(h&&v&&!y)return this.calculatedValue=null,!1;if(t.isReordered||!y)return!1;if(f)return this.calculatedValue=(0,c.fastCloneDeep)(s),!1;if(d&&!this.isEmpty(a)&&u&&y)return!0}return this.calculatedValue=(0,c.fastCloneDeep)(s),!!u&&(t.noPristineChangeOnModified||(this.pristine=!1),t.triggeredComponentId=this.id,this.setValue(s,t))}},{key:"calculateValue",value:function(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.calculateComponentValue(e,t,n)}},{key:"label",get:function(){return this.component.label},set:function(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}},{key:"getRoot",value:function(){return this.root}},{key:"invalidMessage",value:function(e,t,n,r){return n||this.checkCondition(r,e)?this.invalid?this.invalid:!this.hasInput||!t&&this.pristine?"":l.default.map(f.default.checkComponent(this,e),"message").join("\n\n"):""}},{key:"isValid",value:function(e,t){return!this.invalidMessage(e,t)}},{key:"setComponentValidity",value:function(e,t,n){var r=!!e.filter((function(e){return"error"===e.level&&!e.fromServer})).length;return!e.length||n&&!this.error||this.isEmpty(this.defaultValue)&&!t&&this.pristine?n||this.setCustomValidity(""):this.setCustomValidity(e,t),!r}},{key:"checkComponentValidity",value:function(e,t,n){var r,o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,n=n||this.data;var l=a.async,s=void 0!==l&&l,u=a.silentCheck,c=void 0!==u&&u;if(this.shouldSkipValidation(e,t,n))return this.setCustomValidity(""),!s||i.default.resolve(!0);var d=f.default.checkComponent(this,e,n,!0,s),p=d;return null!==(r=this.serverErrors)&&void 0!==r&&r.length&&(p=d.concat(this.serverErrors)),s?p.then((function(e){return o.setComponentValidity(e,t,c)})):this.setComponentValidity(p,t,c)}},{key:"checkValidity",value:function(e,t,n,r){e=e||this.rootValue,n=n||this.data;var o=this.checkComponentValidity(e,t,n,{silentCheck:r});return this.checkModal(),o}},{key:"checkAsyncValidity",value:function(e,t,n,r){return i.default.resolve(this.checkComponentValidity(e,t,n,{async:!0,silentCheck:r}))}},{key:"checkData",value:function(e,t,n){if(e=e||this.rootValue,t=t||{},n=n||this.data,this.resetCaches(),t.fromBlur||this.checkRefreshOn(t.changes,t),t.noCheck)return!0;if(this.checkComponentConditions(e,t,n),this.id!==t.triggeredComponentId&&this.calculateComponentValue(e,t,n),t.noValidate&&!t.validateOnInit&&!t.fromIframe)return t.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&t.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,n,!0),!0;var r=!1;if((this.options.alwaysDirty||t.dirty)&&(r=!0),t.fromSubmission&&this.hasValue(e)&&(r=!0),this.setDirty(r),"blur"===this.component.validateOn&&t.fromSubmission)return!0;var o=this.checkComponentValidity(e,r,n,t);return this.checkModal(),o}},{key:"checkModal",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.component.modalEdit&&this.componentModal&&(t&&!e?this.setErrorClasses([this.refs.openModal],t,!e,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}},{key:"validationValue",get:function(){return this.dataValue}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,t=!(!l.default.isArray(e)||1!==e.length)&&l.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||l.default.isEqual(e,this.emptyValue)||t}},{key:"isEqual",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(t)||l.default.isEqual(e,t)}},{key:"validateMultiple",value:function(){return!0}},{key:"errors",get:function(){return this.error?[this.error]:[]}},{key:"clearErrorClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;this.removeClass(e,this.options.componentErrorClass),this.removeClass(e,"alert alert-danger"),this.removeClass(e,"has-error"),this.removeClass(e,"has-message")}},{key:"setInputWidgetErrorClasses",value:function(e,t){this.isInputComponent&&this.component.widget&&null!=e&&e.length&&e.forEach((function(e){null!=e&&e.widget&&e.widget.setErrorClasses&&e.widget.setErrorClasses(t)}))}},{key:"addFocusBlurEvents",value:function(e){var t=this;this.addEventListener(e,"focus",(function(){t.root.focusedComponent!==t?(t.root.pendingBlur&&t.root.pendingBlur(),t.root.focusedComponent=t,t.emit("focus",t)):t.root.focusedComponent===t&&t.root.pendingBlur&&(t.root.pendingBlur.cancel(),t.root.pendingBlur=null)})),this.addEventListener(e,"blur",(function(){t.root.pendingBlur=c.delay((function(){t.emit("blur",t),"blur"===t.component.validateOn&&t.root.triggerChange({fromBlur:!0},{instance:t,component:t.component,value:t.dataValue,flags:{fromBlur:!0}}),t.root.focusedComponent=null,t.root.pendingBlur=null}))}))}},{key:"setCustomValidity",value:function(e,t,n){var r=this,o=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e}),Array.isArray(e)||(e=e?[e]:[]);var i=!!e.filter((function(e){return"error"===e.level})).length,a=o;if(this.component.multiple){var l=Array.from(o);l.forEach((function(e){r.setElementInvalid(r.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(l,!1),a=l.filter((function(t){var n,r;return null===(n=(r=e).some)||void 0===n?void 0:n.call(r,(function(e){var n;return(null==e||null===(n=e.context)||void 0===n?void 0:n.input)===t}))}))}e.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:e[0].message,messages:e,external:!!n},this.emit("componentError",this.error),this.addMessages(e,t,a),a&&this.setErrorClasses(a,t,i,!!e.length)):(!this.error||this.error&&this.error.external===!!n)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,a&&this.setErrorClasses(a,t,i,!!e.length),this.clearErrorClasses())}},{key:"isValueHidden",value:function(){return(!this.component.protected||!this.root.editing)&&!(!this.root||!this.root.hasOwnProperty("editing"))&&!(!this.root||!this.root.editing)&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)}},{key:"shouldSkipValidation",value:function(e,t,n){var r=this,o=(this.component||{}).validateWhenHidden,i=void 0!==o&&o;return[function(){return r.options.readOnly},function(){return!r.hasInput},function(){return r.isValueHidden()},function(){return!r.visible&&!i},function(){return!r.checkCondition(n,e)&&!i}].some((function(e){return e()}))}},{key:"whenReady",value:function(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}},{key:"dataReady",get:function(){return i.default.resolve()}},{key:"asString",value:function(e){return e=e||this.getValue(),(Array.isArray(e)?e:[e]).map(l.default.toString).join(", ")}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(e){this._disabled=e}},{key:"setDisabled",value:function(e,t){e&&(e.disabled=t,t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}},{key:"setLoading",value:function(e,t){e&&e.loading!==t&&(e.loading=t,!e.loader&&t&&(e.loader=this.ce("i",{class:"".concat(this.iconClass("refresh",!0)," button-icon-right")})),e.loader&&(t?this.appendTo(e.loader,e):this.removeChildFrom(e.loader,e)))}},{key:"selectOptions",value:function(e,t,n,r){var o=this;l.default.each(n,(function(t){var n={value:t.value};void 0!==r&&t.value===r&&(n.selected="selected");var i=o.ce("option",n);i.appendChild(o.text(t.label)),e.appendChild(i)}))}},{key:"setSelectValue",value:function(e,t){var n=e.querySelectorAll("option");l.default.each(n,(function(e){e.value===t?e.setAttribute("selected","selected"):e.removeAttribute("selected")})),e.onchange&&e.onchange(),e.onselect&&e.onselect()}},{key:"getRelativePath",value:function(e){var t=".".concat(this.key),n=this.isInputComponent?this.path:this.path.slice(0).replace(t,"");return e.replace(n,"")}},{key:"clear",value:function(){this.detach(),this.empty(this.getElement())}},{key:"append",value:function(e){this.appendTo(e,this.element)}},{key:"prepend",value:function(e){this.prependTo(e,this.element)}},{key:"removeChild",value:function(e){this.removeChildFrom(e,this.element)}},{key:"detachLogic",value:function(){var e=this;this.logic.forEach((function(t){if("event"===t.trigger.type){var n=e.interpolate(t.trigger.event);e.off(n)}}))}},{key:"attachLogic",value:function(){var e=this;this.builderMode||this.logic.forEach((function(t){if("event"===t.trigger.type){var n=e.interpolate(t.trigger.event);e.on(n,(function(){for(var n=(0,c.fastCloneDeep)(e.originalComponent),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(e.applyActions(n,t.actions,o)&&!l.default.isEqual(e.component,n)){e.component=n;var a=e.conditionallyVisible(null,null),s=e.shouldDisabled;e.visible!==a&&(e.visible=a),e.disabled!==s&&(e.disabled=s),e.redraw()}}),!0)}}))}},{key:"elementInfo",value:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),l.default.defaults(e,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:e}}},{key:"autofocus",value:function(){var e=this;this.component.autofocus&&!this.builderMode&&!this.options.preview&&this.on("render",(function(){return e.focus()}),!0)}},{key:"scrollIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;if(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top;window.scrollTo(n+window.scrollX,r+window.scrollY)}}},{key:"focus",value:function(e){var t;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null!==(t=this.refs.input)&&void 0!==t&&t.length){var n,r="number"==typeof e&&this.refs.input[e]?this.refs.input[e]:this.refs.input[this.refs.input.length-1];if("calendar"===(null===(n=this.component.widget)||void 0===n?void 0:n.type)){var o=r.nextSibling;o&&o.focus()}else r.focus()}this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}},{key:"fileService",get:function(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;var e=new u.GlobalFormio;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl="".concat(e.projectUrl,"/form/").concat(this.root._form._id)),e}},{key:"resetCaches",value:function(){}},{key:"previewMode",get:function(){return!1}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.merge.apply(l.default,[{input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]}].concat(t))}},{key:"Validator",get:function(){return f.default}},{key:"conditionOperatorsSettings",get:function(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty"],valueComponent:function(){return{type:"textfield",widget:{type:"input"}}}}}},{key:"savedValueTypes",value:function(e){return e=e||{},c.getComponentSavedTypes(e)||[c.componentValueTypes.any]}},{key:"tableView",value:function(e,t){}},{key:"serverConditionSettings",get:function(){return w.conditionOperatorsSettings}}],n&&x(t.prototype,n),r&&x(t,r),Object.defineProperty(t,"prototype",{writable:!1}),w}(d.default);t.default=V,V.externalLibraries={},V.requireLibrary=function(e,t,n,r){if(!V.externalLibraries.hasOwnProperty(e)){V.externalLibraries[e]={},V.externalLibraries[e].ready=new i.default((function(t,n){V.externalLibraries[e].resolve=t,V.externalLibraries[e].reject=n}));var o="".concat(e,"Callback");r||window[o]||(window[o]=function(){this.resolve()}.bind(V.externalLibraries[e]));var a=l.default.get(window,t);a?V.externalLibraries[e].resolve(a):((n=Array.isArray(n)?n:[n]).forEach((function(e){var t={},n="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":n="script",t={src:e.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":n="link",t={href:e.src,rel:"stylesheet"}}var r=document.createElement(n);for(var o in t)r.setAttribute(o,t[o]);document.getElementsByTagName("head")[0].appendChild(r)})),r&&setTimeout((function n(){var r=l.default.get(window,t);r?V.externalLibraries[e].resolve(r):setTimeout(n,200)}),200))}return V.externalLibraries[e].ready},V.libraryReady=function(e){return V.externalLibraries.hasOwnProperty(e)&&V.externalLibraries[e].ready?V.externalLibraries[e].ready:i.default.reject("".concat(e," library was not required."))}},30811:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{weight:0,type:"textfield",input:!0,key:"key",label:"Property Name",tooltip:"The name of this field in the API endpoint.",validate:{pattern:"(\\w|\\w[\\w-.]*\\w)",patternMessage:"The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},89551:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=n(82531),a=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",weight:105,components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){return(0,i.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},o.default.javaScriptValue("Advanced Conditions","customConditional","conditional.json",110,"<p>You must assign the <strong>show</strong> variable a boolean result.</p><p><strong>Note: Advanced Conditional logic will override the results of the Simple Conditional logic.</strong></p><h5>Example</h5><pre>show = !!data.showMe;</pre>",'<p><a href="http://formio.github.io/formio.js/app/examples/conditions.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>')];t.default=a},10024:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=[{weight:0,type:"checkbox",label:"Multiple Values",tooltip:"Allows multiple values to be entered for this field.",key:"multiple",input:!0},{type:"textfield",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0},{weight:30,type:"radio",label:"Persistent",tooltip:"A persistent field will be stored in database when the form is submitted.",key:"persistent",input:!0,inline:!0,defaultValue:!0,values:[{label:"None",value:!1},{label:"Server",value:!0},{label:"Client",value:"client-only"}]},{weight:150,type:"checkbox",label:"Protected",tooltip:"A protected field will not be returned when queried via API.",key:"protected",input:!0},{type:"checkbox",input:!0,weight:200,key:"dbIndex",label:"Database Index",tooltip:"Set this field as an index within the database. Increases performance for submission queries."},{weight:400,type:"checkbox",label:"Encrypted",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Only available with Security Module. Contact sales@form.io for more information."}]}]},{type:"select",input:!0,key:"redrawOn",label:"Redraw On",weight:600,tooltip:"Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,r){n.key!==e.data.key&&t.push({label:n.label||n.key,value:r})})),t}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0},o.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",1e3,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),o.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",1100,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>',"<tr><th>token</th><td>The decoded JWT token for the authenticated user.</td></tr>"),{type:"checkbox",input:!0,weight:1100,key:"calculateServer",label:"Calculate Value on server",tooltip:"Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server."},{type:"checkbox",input:!0,weight:1200,key:"allowCalculateOverride",label:"Allow Manual Override of Calculated Value",tooltip:"When checked, this will allow the user to manually override the calculated value."}];t.default=i},10684:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92087),t.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0},autofocus:!0},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex'>MDN documentation</a> on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label inside each row when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional:function(e){var t,n;return null===(t=e.instance.options)||void 0===t||null===(n=t.flags)||void 0===n?void 0:n.inDataGrid}},{weight:1400,type:"checkbox",label:"Disabled",tooltip:"Disable the form input.",key:"disabled",input:!0},{weight:1500,type:"checkbox",label:"Table View",tooltip:"Shows this value within the table view of the submissions.",key:"tableView",input:!0},{weight:1600,type:"checkbox",label:"Modal Edit",tooltip:"Opens up a modal to edit the value of this component.",key:"modalEdit",input:!0}]},77869:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{label:"HTML Attributes",type:"datamap",input:!0,key:"attributes",keyLabel:"Attribute Name",valueComponent:{type:"textfield",key:"value",label:"Attribute Value",input:!0},tooltip:"Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",addAnother:"Add Attribute"},{type:"panel",legend:"PDF Overlay",title:"PDF Overlay",key:"overlay",tooltip:"The settings inside apply only to the PDF forms.",weight:2e3,collapsible:!0,collapsed:!0,components:[{type:"textfield",input:!0,key:"overlay.style",label:"Style",placeholder:"",tooltip:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},48911:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601);var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=n(82531),a=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'<div class="row"> \n  <div class="col-sm-6">\n    <strong>{{ value.length }} {{ ctx.t("Advanced Logic Configured") }}</strong>\n  </div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:function(e){return"simple"===e.row.type},components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:function(){return!0}},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:function(e){return(0,i.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:function(e){return"javascript"===e.row.type}},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:function(e){return"json"===e.row.type}},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:function(e){return"event"===e.row.type}}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'<div class="row"> \n  <div class="col-sm-6"><strong>{{ value.length }} {{ ctx.t("actions") }}</strong></div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:20,type:"select",template:"<span>{{ item.label }}</span>",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:function(e){return"property"===e.row.type}},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select",customConditional:function(e){var t=e.row;return"property"===t.type&&t.hasOwnProperty("property")&&"boolean"===t.property.type}},{weight:30,type:"textfield",key:"text",label:"Text",inputType:"text",input:!0,tableView:!1,description:'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',customConditional:function(e){var t=e.row;return"property"===t.type&&t.hasOwnProperty("property")&&"string"===t.property.type&&!t.property.component}},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:function(e){return"value"===e.row.type}},{weight:20,input:!0,label:"Schema Defenition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:function(e){return"mergeComponentSchema"===e.row.type}},Object.assign(o.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{customConditional:function(e){return"customAction"===e.row.type}}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:function(e){return"customAction"===e.row.type}}]}]}]}];t.default=a},51250:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(61550)),o=i(n(193));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:100,type:"checkbox",label:"Validate When Hidden",tooltip:"Validates the component when it is hidden/conditionally hidden. Vaildation errors are displayed in the error alert on the form submission.",key:"validateWhenHidden",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:function(){return!o.default.noeval||o.default.protectedEval},components:[r.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n          <small>\n            <p>Enter custom validation code.</p>\n            <p>You must assign the <strong>valid</strong> variable as either <strong>true</strong> or an error message if validation fails.</p>\n            <h5>Example:</h5>\n            <pre>valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';</pre>\n          </small>"},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><h5>Example:</h5><pre>'+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"</pre>"},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n          <p>This allows you to set different custom error messages for different errors\n          (in contrast to “Custom Error Message”, which only allows you to set one\n          error message for all errors). E.g.</p>\n\n<pre>{\n  "required": "{<span/>{ field }} is required. Try again.",\n  "maxLength": "{<span/>{ field }} is too long. Try again."\n}</pre>\n\n          <p>You can set the following keys (among others):</p>\n          <ul>\n            <li>r<span/>equired</li>\n            <li>m<span/>in</li>\n            <li>m<span/>ax</li>\n            <li>m<span/>inLength</li>\n            <li>m<span/>axLength</li>\n            <li>m<span/>inWords</li>\n            <li>m<span/>axWords</li>\n            <li>i<span/>nvalid_email</li>\n            <li>i<span/>nvalid_date</li>\n            <li>i<span/>nvalid_day</li>\n            <li>i<span/>nvalid_regex</li>\n            <li>m<span/>ask</li>\n            <li>p<span/>attern</li>\n            <li>c<span/>ustom</li>\n          </ul>\n\n          <p>Depending on the error message some of the following template variables can be used in the script:</p>\n          <ul>\n           <li><code>{<span/>{ f<span/>ield }}</code> is replaced with the label of the field.</li>\n           <li><code>{<span/>{ m<span/>in }}</code></li>\n           <li><code>{<span/>{ m<span/>ax }}</code></li>\n           <li><code>{<span/>{ l<span/>ength }}</code></li>\n           <li><code>{<span/>{ p<span/>attern }}</code></li>\n           <li><code>{<span/>{ m<span/>inDate }}</code></li>\n           <li><code>{<span/>{ m<span/>axDate }}</code></li>\n           <li><code>{<span/>{ m<span/>inYear }}</code></li>\n           <li><code>{<span/>{ m<span/>axYear }}</code></li>\n           <li><code>{<span/>{ r<span/>egex }}</code></li>\n          </ul>\n        '}]}];t.default=a},61550:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(57327),n(41539),n(40561);var r=i(n(96486)),o=i(n(193));function i(e){return e&&e.__esModule?e:{default:e}}var a={sortAndFilterComponents:function(e){return r.default.filter(r.default.sortBy(e,"weight"),(function(e){return!e.ignore}))},unifyComponents:function(e,t){return e.key&&t.key?!e.skipMerge&&!t.skipMerge&&e.key===t.key&&(r.default.each(e,(function(n,r){!e.overrideEditForm&&t.hasOwnProperty(r)||(t[r]=n)})),r.default.each(t,(function(n,r){!t.overrideEditForm&&e.hasOwnProperty(r)||(e[r]=n)})),e.components&&(t.components=a.sortAndFilterComponents(r.default.unionWith(e.components,t.components,a.unifyComponents))),!0):r.default.isEqual(e,t)},logicVariablesTable:function(e){return{type:"htmlelement",tag:"div",content:'<p>The following variables are available in all scripts.</p><table class="table table-bordered table-condensed table-striped">'+(e=e||"")+'<tr><th>form</th><td>The complete form JSON object</td></tr><tr><th>submission</th><td>The complete submission object.</td></tr><tr><th>data</th><td>The complete submission data object.</td></tr><tr><th>row</th><td>Contextual "row" data, used within DataGrid, EditGrid, and Container components</td></tr><tr><th>component</th><td>The current component JSON</td></tr><tr><th>instance</th><td>The current component instance.</td></tr><tr><th>value</th><td>The current value of the component.</td></tr><tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr><th>_</th><td>An instance of <a href="https://lodash.com/docs/" target="_blank" rel="noopener noreferrer">Lodash</a>.</td></tr><tr><th>utils</th><td>An instance of the <a href="http://formio.github.io/formio.js/docs/identifiers.html#utils" target="_blank" rel="noopener noreferrer">FormioUtils</a> object.</td></tr><tr><th>util</th><td>An alias for "utils".</td></tr></table><br/>'}},javaScriptValue:function(e,t,n,r,i,a){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",s=arguments.length>7?arguments[7]:void 0,u=[this.logicVariablesTable(l),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:"".concat(t,"-js"),customConditional:function(){return!o.default.noeval||o.default.protectedEval},components:[{type:"textarea",key:t,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"<p>Enter custom javascript code.</p>".concat(i)}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:"".concat(t,"-json"),components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><p>Full <a href="https://lodash.com/docs" target="_blank" rel="noopener noreferrer">Lodash</a> support is provided using an "_" before each operation, such as <code>{"_sum": {var: "data.a"}}</code></p>'+a},{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return s&&u.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:"".concat(t,"Panel"),weight:r,components:u}}},l=a;t.default=l},72801:function(e,t,n){"use strict";n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(24812),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(82531);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var d=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isOpened=r,this.component=t,this.element=n,this.currentValue=(0,i.fastCloneDeep)(null!=o?o:this.component.getValue()),this.dataLoaded=!1,this.init()}var t,n,r;return t=e,r=[{key:"render",value:function(e,t,n){var r=e.renderTemplate("component",t,n);return e.renderTemplate("componentModal",s(s({},t),{},{children:r}))}}],(n=[{key:"refs",get:function(){return this.component.refs}},{key:"init",value:function(){var e=this;this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=function(t){e.isValueChanged()&&!e.component.disabled?e.showDialog():e.closeModalHandler(t)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}},{key:"setValue",value:function(e){this.dataLoaded&&this.currentValue===e||(this.currentValue=(0,i.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}},{key:"setOpenModalElement",value:function(e){var t;null!==(t=this.component)&&void 0!==t&&t.visible&&(this.openModalTemplate=e,this.component.setContent(this.refs.openModalWrapper,e),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}},{key:"templateRefs",get:function(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}},{key:"loadRefs",value:function(){this.component.loadRefs(this.element,this.templateRefs)}},{key:"removeEventListeners",value:function(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"setEventListeners",value:function(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"isValueChanged",value:function(){var e=this.component.getValue(),t=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,t=this.currentValue.data),!o.default.isEqual((0,i.fastCloneDeep)(e),t)}},{key:"setOpenEventListener",value:function(){var e;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!==(e=this.refs.openModalWrapper)&&void 0!==e?e:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}},{key:"openModalHandler",value:function(e){e.preventDefault(),this.openModal()}},{key:"positionOverElement",value:function(){var e=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10;e=e>0?e:10,this.refs.modalWrapper.style.paddingTop="".concat(e,"px")}},{key:"openModal",value:function(){this.isOpened=!0,this.refs.modalWrapper.classList.remove("component-rendering-hidden"),"signature"===this.component.component.type&&this.positionOverElement()}},{key:"updateView",value:function(){var e=o.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,e),this.setOpenEventListener()}},{key:"closeModal",value:function(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}},{key:"closeModalHandler",value:function(e){e.preventDefault(),this.component.disabled||this.component.setValue(o.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}},{key:"showDialog",value:function(){this.dialogElement=this.component.ce("div");var e='\n      <h3 ref="dialogHeader">'.concat(this.component.t("Do you want to clear changes?"),'</h3>\n      <div style="display:flex; justify-content: flex-end;">\n        <button ref="dialogCancelButton" class="btn btn-secondary">').concat(this.component.t("Cancel"),'</button>\n        <button ref="dialogYesButton" class="btn btn-danger">').concat(this.component.t("Yes, delete it"),"</button>\n      </div>\n    ");this.dialogElement.innerHTML=e,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"closeDialog",value:function(e){e.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"saveDialog",value:function(e){this.closeDialog(e),this.closeModalHandler(e)}},{key:"saveModalValueHandler",value:function(e){var t;e.preventDefault(),this.currentValue=(0,i.fastCloneDeep)(null!==(t=this.component.dataValue)&&void 0!==t?t:this.component.getValue()),this.closeModal()}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=d},68093:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(o){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function l(){return s(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(e){return this.noField?f(m(l.prototype),"render",this).call(this,e):this.isAdvancedLabel||this.options.condensedMode?f(m(l.prototype),"render",this).call(this,this.renderTemplate("field",a(a({},this.getLabelInfo(this.options.condensedMode)),{},{labelMarkup:this.renderTemplate("label"),element:e}),"align")):f(m(l.prototype),"render",this).call(this,this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}},{key:"saveCaretPosition",value:function(e,t){var n,r;if((null===(n=this.root)||void 0===n||null===(r=n.focusedComponent)||void 0===r?void 0:r.path)===this.path)try{this.root.currentSelection={selection:[e.selectionStart,e.selectionEnd],index:t}}catch(e){e instanceof DOMException||console.debug(e)}}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(((o=n(64430))&&o.__esModule?o:{default:o}).default);t.default=y},63820:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(24812),n(68309),n(21249),n(69826),n(41539),n(74916),n(23123),n(73210),n(15306),n(92222),n(68304),n(30489);var o=u(n(99606)),i=n(82531),a=u(n(22457)),l=u(n(91459)),s=u(n(96486));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(b,e);var t,n,r,u,d,v=(u=b,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(u);if(d){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function b(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(r=v.call(this,e,t,n)).triggerUpdateValueAt=s.default.debounce(r.updateValueAt.bind(m(r)),100),r}return t=b,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{widget:{type:"input"}}].concat(t))}}],(n=[{key:"inputInfo",get:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return("builder"===this.options.attachMode||this.options.building||s.default.get(this.root,"form.settings.disableAutocomplete"))&&(e.autocomplete=this.autocompleteDisableAttrName),this.component.inputMode&&(e.inputmode=this.component.inputMode),this.component.placeholder&&(e.placeholder=this.getFormattedAttribute(this.component.placeholder)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),s.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}},{key:"autocompleteDisableAttrName",get:function(){return"off"}},{key:"maskOptions",get:function(){return s.default.map(this.component.inputMasks,(function(e){return{label:e.label,value:e.label}}))}},{key:"isMultipleMasksField",get:function(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}},{key:"getMaskByName",value:function(e){var t=s.default.find(this.component.inputMasks,(function(t){return t.label===e}));return t?t.mask:void 0}},{key:"setInputMask",value:function(e,t){var n=t||this.component.displayMask||this.component.inputMask;return f(y(b.prototype),"setInputMask",this).call(this,e,n,!this.component.placeholder)}},{key:"getMaskOptions",value:function(){return this.component.inputMasks.map((function(e){return{label:e.label,value:e.label}}))}},{key:"getWordCount",value:function(e){return e?e.trim().split(/\s+/).length:0}},{key:"remainingWords",get:function(){return s.default.parseInt(s.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}},{key:"prefix",get:function(){return this.component.prefix}},{key:"suffix",get:function(){if(this.component.widget&&"calendar"===this.component.widget.type){var e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,i.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}},{key:"renderElement",value:function(e,t){e&&"string"==typeof e&&(e=e.replace(/"/g,"&quot;"));var n=this.inputInfo;n.attr=n.attr||{},n.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,"&quot;");var r=this.component.inputMask,o=this.component.displayMask,i=r&&o&&r!==o;return this.isMultipleMasksField&&(n.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input:n,value:e,index:t,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:i,index:t},this.isHtmlRenderMode()?"html":null)}},{key:"setCounter",value:function(e,t,n,r){if(r){var o=r-n;o>0?this.removeClass(t,"text-danger"):this.addClass(t,"text-danger"),this.setContent(t,this.t("{{ remaining }} ".concat(e," remaining."),{remaining:o}))}else this.setContent(t,this.t("{{ count }} ".concat(e),{count:n}))}},{key:"updateValueAt",value:function(e,t,n){if(t=t||{},s.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[n]){var r=s.default.parseInt(s.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[n],this.getWordCount(e),r)}if(s.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[n]){var o=s.default.parseInt(s.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[n],e.length,o)}}},{key:"getValueAt",value:function(e){var t=this.performInputMapping(this.refs.input[e]);return t&&t.widget?t.widget.getValue():t?t.value:void 0}},{key:"updateValue",value:function(e,t,n){t=t||{};var r=f(y(b.prototype),"updateValue",this).call(this,e,t);return this.triggerUpdateValueAt(this.dataValue,t,n),r}},{key:"parseValue",value:function(e){return e}},{key:"formatValue",value:function(e){return e}},{key:"attach",value:function(e){return this.loadRefs(e,{charcount:"multiple",wordcount:"multiple",prefix:"multiple",suffix:"multiple"}),f(y(b.prototype),"attach",this).call(this,e)}},{key:"getWidget",value:function(e){return e=e||0,this.refs.input&&this.refs.input[e]?this.refs.input[e].widget:null}},{key:"attachElement",value:function(e,t){var n=this;f(y(b.prototype),"attachElement",this).call(this,e,t),e.widget&&e.widget.destroy();var r=l.default.resolve();return e.widget=this.createWidget(t),e.widget&&(r=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[t]&&e.widget.addPrefix(this.refs.prefix[t]),this.refs.suffix&&this.refs.suffix[t]&&e.widget.addSuffix(this.refs.suffix[t])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",(function(e){13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),n.emit("submitButton"))})),r}},{key:"createWidget",value:function(e){var t,n=this;if(!this.component.widget)return null;var r,o="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if(null!==(t=this.root)&&void 0!==t&&t.shadowRoot&&(o.shadowRoot=null===(r=this.root)||void 0===r?void 0:r.shadowRoot),!a.default.hasOwnProperty(o.type))return null;var i=new a.default[o.type](o,this.component,this,e);return i.on("update",(function(){return n.updateValue(n.getValue(),{modified:!0},e)}),!0),i.on("redraw",(function(){return n.redraw()}),!0),i}},{key:"detach",value:function(){if(f(y(b.prototype),"detach",this).call(this),this.refs&&this.refs.input)for(var e=0;e<=this.refs.input.length;e++){var t=this.getWidget(e);t&&t.destroy()}this.refs.input=[]}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),b}(o.default);t.default=v},12775:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(97389));function i(e){return e&&e.__esModule?e:{default:e}}},57700:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(78783),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(85827),n(41539),n(26541),n(83710),n(39714),n(74916),n(15306),n(66992),n(33948),n(23157),n(89554),n(54747),n(57327),n(92222),n(68304),n(24812),n(30489);var o=u(n(68093)),i=n(19161),a=u(n(96486)),l=u(n(91459)),s=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(v,e);var t,n,r,u,m,y=(u=v,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(u);if(m){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function v(){return c(this,v),y.apply(this,arguments)}return t=v,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{dataSrc:"values",authenticate:!1,ignoreCache:!1,template:"<span>{{ item.label }}</span>",validate:{onlyAvailableItems:!1}}].concat(t))}}],(n=[{key:"isSelectURL",get:function(){return"url"===this.component.dataSrc}},{key:"selectData",get:function(){var e=a.default.get(this.root,"submission.metadata.selectData",{});return a.default.get(e,this.path)}},{key:"shouldLoad",get:function(){if(this.loadingError)return!1;if(!this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){var e=this.dataValue,t=this.selectData;return this.templateKeys.reduce((function(n,r){var o=a.default.has(e,r)||(a.default.isArray(t)?t.every((function(e){return a.default.has(e,r)})):a.default.has(t,r));return n||!o}),!1)}return!0}},{key:"getTemplateKeys",value:function(){var e=this.component.template;this.templateKeys=this.options.readOnly&&e?(0,s.getItemTemplateKeys)(e):[]}},{key:"requestHeaders",get:function(){var e=this,t=new i.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{a.default.each(this.component.data.headers,(function(n){n.key&&t.set(n.key,e.interpolate(n.value))}))}catch(e){console.warn(e.message)}return t}},{key:"setItems",value:function(){}},{key:"updateCustomItems",value:function(){}},{key:"loadItems",value:function(){}},{key:"getOptionTemplate",value:function(e,t,n){if(!this.component.template)return e.label;var r={noeval:!0,data:{}},o=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:e},r):e.label,this.shouldSanitizeValue),i=this.component.reference&&null!=t&&t._id?t._id.toString():t;return i&&!a.default.isObject(i)&&r.data.item&&(this.templateData[i]=r.data.item),a.default.isNumber(n)&&(this.templateData[n]=r.data.item),o}},{key:"itemTemplate",value:function(e,t,n){if(a.default.isEmpty(e))return"";var r=this.sanitize(this.getOptionTemplate(e,t,n),this.shouldSanitizeValue);if(r){var o,i=r.replace(/<\/?[^>]+(>|$)/g,""),l=null===(o=this.i18next)||void 0===o?void 0:o.translator;if(!i||l&&!this.t(i,{_userInput:!0}))return;return l?r.replace(i,this.t(i,{_userInput:!0})):i}return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue)}},{key:"handleLoadingError",value:function(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"updateItems",value:function(e,t){var n=this;if(!this.component.data)return console.warn("Select component ".concat(this.key," does not have data configuration.")),void this.itemsLoadedResolve();if(this.visible)switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems(t);break;case"resource":if(!this.component.data.resource||!t&&!this.active)return void this.itemsLoadedResolve();var r=this.options.formio?this.options.formio.formsUrl:"".concat(i.GlobalFormio.getProjectUrl(),"/form");if(r+="/".concat(this.component.data.resource,"/submission"),t||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(r,e,this.requestHeaders)}catch(e){console.warn("Unable to load resources for ".concat(this.key))}else this.setItems(this.downloadedResources);break;case"url":if(!t&&!this.active&&!this.calculatedValue&&"select"===this.component.type)return void this.itemsLoadedResolve();var o,s,u=this.component.data.url;if(u.startsWith("/")){var c=u.startsWith("/project")?i.GlobalFormio.getBaseUrl():i.GlobalFormio.getProjectUrl()||i.GlobalFormio.getBaseUrl();u=c+u}this.component.data.method?s="POST"===(o=this.component.data.method).toUpperCase()?this.component.data.body:null:o="GET";var f=this.component.authenticate?{}:{noToken:!0};this.loadItems(u,e,this.requestHeaders,f,o,s);break;case"indexeddb":if("undefined"==typeof window)return;if(window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table){var d=window.indexedDB.open(this.component.indexeddb.database);d.onupgradeneeded=function(e){if(n.component.customOptions){var t=e.target.result;t.createObjectStore(n.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=function(){var e=t.transaction(n.component.indexeddb.table,"readwrite");n.component.customOptions.forEach((function(t){e.objectStore(n.component.indexeddb.table).put(t)}))}}},d.onerror=function(){window.alert(d.errorCode)},d.onsuccess=function(e){var t=e.target.result.transaction(n.component.indexeddb.table,"readwrite").objectStore(n.component.indexeddb.table);new l.default((function(e){var n=[];t.getAll().onsuccess=function(t){t.target.result.forEach((function(e){n.push(e)})),e(n)}})).then((function(e){a.default.isEmpty(n.component.indexeddb.filter)||(e=a.default.filter(e,n.component.indexeddb.filter)),n.setItems(e)}))}}}else this.itemsLoadedResolve()}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.default);t.default=m},97389:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values"},{type:"textfield",input:!0,key:"data.url",weight:10,label:"Data Source URL",placeholder:"Data Source URL",tooltip:"A URL that returns a JSON array to use as the data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:18,tooltip:"The HTML template for the result data items.",allowCalculateOverride:!0,calculateValue:function(e){return!e.data.template&&e.instance&&e.instance._currentForm.options.editComponent?e.instance._currentForm.options.editComponent.template:e.data.template}},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},99606:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(69600),n(21249),n(24812),n(89554),n(41539),n(54747),n(32564),n(69826),n(92222),n(68304),n(30489);var o=l(n(68093)),i=l(n(91459)),a=l(n(96486));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function c(e,t,n,r){return c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=p(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else!function(e,t,n){(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r,t,n);return!0},c(e,t,n,r)}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(f,e);var t,n,r,o,l=(r=f,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(o){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function f(){return s(this,f),l.apply(this,arguments)}return t=f,(n=[{key:"dataValue",get:function(){var e=d(y(f.prototype),"dataValue",this);return!e&&this.component.multiple?[]:e},set:function(e){!function(e,t,n,r,o){if(!c(e,t,n,r||e)&&o)throw new Error("failed to set property")}(y(f.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=d(y(f.prototype),"defaultValue",this);return this.component.multiple&&(e=a.default.isArray(e)?e.length?e:[d(y(f.prototype),"emptyValue",this)]:[e]),e}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"useWrapper",value:function(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}},{key:"render",value:function(){if(!this.useWrapper())return d(y(f.prototype),"render",this).call(this,'<div ref="element">\n          '.concat(this.renderElement("hidden"!==this.component.type?this.dataValue:""),"\n        </div>"));var e=this.dataValue;return Array.isArray(e)||(e=e?[e]:[]),d(y(f.prototype),"render",this).call(this,this.renderTemplate("multiValueTable",{rows:e.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother}))}},{key:"renderElement",value:function(){return""}},{key:"renderRow",value:function(e,t){return this.renderTemplate("multiValueRow",{index:t,disabled:this.disabled,element:"".concat(this.renderElement(e,t))})}},{key:"attach",value:function(e){var t=this,n=d(y(f.prototype),"attach",this).call(this,e);this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});var r=[];return this.refs.input.forEach((function(e,n){r.push(t.attachElement.call(t,e,n))})),this.component.multiple?(this.refs.removeRow.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.removeValue(n)}))})),this.refs.addButton.forEach((function(e){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.addValue()}))})),n.then((function(){return i.default.all(r)}))):i.default.all(r)}},{key:"detach",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach((function(e){e.mask&&(e.mask.destroy?e.mask.destroy():e.mask.remove()),e.widget&&e.widget.destroy()})),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach((function(e){e.mask&&(e.mask.destroy?e.mask.destroy():e.mask.remove())})),d(y(f.prototype),"detach",this).call(this)}},{key:"attachElement",value:function(e,t){var n=this;if(this.addEventListener(e,this.inputInfo.changeEvent,(function(){var r=a.default.get(n.component,"case","mixed");if("mixed"!==r){var o=e.selectionStart,i=e.selectionEnd;"uppercase"===r&&e.value&&(e.value=e.value.toUpperCase()),"lowercase"===r&&e.value&&(e.value=e.value.toLowerCase()),e.selectionStart&&e.selectionEnd&&(e.selectionStart=o,e.selectionEnd=i)}try{n.saveCaretPosition(e,t)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!e.mask)return n.updateValue(null,{modified:"hidden"!==n.component.type},t);setTimeout((function(){return n.updateValue(null,{modified:"hidden"!==n.component.type},t)}),1)})),!this.attachMultiMask(t)){var r=function(){n.setInputMask(e);var t=n.component.inputMask,r=n.component.displayMask;t&&r&&r!==t&&n.refs.valueMaskInput&&n.setInputMask(n.refs.valueMaskInput,t)};"blur"===this.inputInfo.changeEvent?this.addEventListener(e,this.inputInfo.changeEvent,(function(){var e;r(),n.dataValue=n.refs.input[0].value,null===(e=document.querySelector('[name="data[submit]"]'))||void 0===e||e.disabled,n.checkComponentValidity()&&n.updateComponentValue(n.refs.input[0].value)})):r()}}},{key:"onSelectMaskHandler",value:function(e){this.updateMask(e.target.maskInput,this.getMaskPattern(e.target.value))}},{key:"getMaskPattern",value:function(e){if(this.multiMasks||(this.multiMasks={}),this.multiMasks[e])return this.multiMasks[e];var t=this.component.inputMasks.find((function(t){return t.label===e}));return this.multiMasks[e]=t?t.mask:this.component.inputMasks[0].mask,this.multiMasks[e]}},{key:"attachMultiMask",value:function(e){if(!(this.isMultipleMasksField&&this.component.inputMasks.length&&this.refs.input.length))return!1;var t=this.refs.select[e];return t.onchange=this.onSelectMaskHandler.bind(this),t.maskInput=this.refs.mask[e],this.setInputMask(t.maskInput,this.component.inputMasks[0].mask),!0}},{key:"updateMask",value:function(e,t){t&&(this.setInputMask(e,t,!this.component.placeholder),this.updateValue())}},{key:"addNewValue",value:function(e){void 0===e&&(e=this.component.defaultValue?this.component.defaultValue:this.emptyValue,Array.isArray(e)&&0===e.length&&(e=this.emptyValue));var t=this.dataValue||[];Array.isArray(t)||(t=[t]),Array.isArray(e)?t=t.concat(e):t.push(e),this.dataValue=t}},{key:"addValue",value:function(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.default);t.default=v},40970:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.baseEditForm.apply(o.default,[[{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(t))},n(92222);var r,o=(r=n(39086))&&r.__esModule?r:{default:r}},24561:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(83593),n(47941),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(89554),n(41539),n(54747),n(26699),n(32023),n(9494),n(9653),n(92222),n(34553),n(40561),n(47042),n(85827),n(26541),n(57327),n(68304),n(24812),n(30489);var o=u(n(96486)),i=u(n(68093)),a=u(n(39086)),l=u(n(91459)),s=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function p(e,t,n,r){return p="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=b(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else m(r,t,n);return!0},p(e,t,n,r)}function h(e,t,n,r,o){if(!p(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function m(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},v.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function w(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(y,e);var t,n,r,u,c,p=(u=y,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(u);if(c){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function y(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(r=p.call(this,e,t,n)).type="components",r._collapsed=!!r.component.collapsed,r}return t=y,n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"schema",get:function(){var e=v(k(y.prototype),"schema",this),t=o.default.uniqBy(this.getComponents(),"component.key");return e.components=o.default.map(t,"schema"),e}},{key:"collapsed",get:function(){return this._collapsed},set:function(e){this._collapsed=e,this.collapse(e)}},{key:"collapse",value:function(e){var t=this.redraw();return e||this.checkValidity(this.data,!this.pristine,null,this.pristine),t}},{key:"visible",get:function(){return v(k(y.prototype),"visible",this)},set:function(e){var t=this._visible!==e;this._visible=e;var n=this.visible,r=this.shouldForceShow(),o=this.shouldForceHide();this.components.forEach((function(e){e.parentVisible=n;var t=e.conditionallyVisible();r||t?e.visible=!0:!o&&n&&t||(e.visible=!1),e.visible||(e.error="")})),t&&(this.clearOnHide(),this.redraw())}},{key:"parentVisible",get:function(){return v(k(y.prototype),"parentVisible",this)},set:function(e){var t=this;h(k(y.prototype),"parentVisible",e,this,!0),this.components.forEach((function(e){return e.parentVisible=t.visible}))}},{key:"disabled",get:function(){return v(k(y.prototype),"disabled",this)},set:function(e){h(k(y.prototype),"disabled",e,this,!0),this.components.forEach((function(t){return t.parentDisabled=e}))}},{key:"parentDisabled",get:function(){return v(k(y.prototype),"parentDisabled",this)},set:function(e){var t=this;h(k(y.prototype),"parentDisabled",e,this,!0),this.components.forEach((function(e){e.parentDisabled=t.disabled}))}},{key:"ready",get:function(){return l.default.all(this.getComponents().map((function(e){return e.ready})))}},{key:"currentForm",get:function(){return v(k(y.prototype),"currentForm",this)},set:function(e){h(k(y.prototype),"currentForm",e,this,!0),this.getComponents().forEach((function(t){t.currentForm=e}))}},{key:"rowIndex",get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.eachComponent((function(t){t.rowIndex=e}))}},{key:"componentContext",value:function(){return this._data}},{key:"data",get:function(){return this._data},set:function(e){var t=this;this._data=e,this.eachComponent((function(e){e.data=t.componentContext(e)}))}},{key:"getComponents",value:function(){return this.components||[]}},{key:"everyComponent",value:function(e,t){var n=this.getComponents();o.default.each(n,(function(r,o){return!1!==e(r,n,o)&&("function"!=typeof r.everyComponent||!1!==r.everyComponent(e,t))&&void 0}))}},{key:"hasComponent",value:function(e){var t=!1;return this.everyComponent((function(n){if(n===e)return t=!0,!1})),t}},{key:"flattenComponents",value:function(){var e={};return this.everyComponent((function(t){e[t.component.flattenAs||t.key]=t})),e}},{key:"eachComponent",value:function(e){o.default.each(this.getComponents(),(function(t,n){if(!1===e(t,n))return!1}))}},{key:"getComponent",value:function(e,t,n){n=n||(0,s.getStringFromComponentPath)(e),e=(0,s.getArrayFromComponentPath)(e);var r=n,i=o.default.clone(e),a=i.shift(),l=i,u=null,c=null;return o.default.isNumber(a)&&(a=l.shift()),o.default.isString(a)?(this.everyComponent((function(e,o){var i=!e.hasInput||!e.path||r.includes(e.path);if(e.component.key===a&&(c=e,i))return u=e,l.length>0&&"getComponent"in e?u=e.getComponent(l,t,n):t&&t(e,o),!1})),u||(u=c),u):u}},{key:"getComponentById",value:function(e,t){var n=null;return this.everyComponent((function(r,o){if(r.id===e)return n=r,t&&t(r,o),!1})),n}},{key:"calculateComponentPath",value:function(e){var t="";if(e.component.key){for(var n=this;n&&!n.allowData&&n.parent;)n=n.parent;var r=e.row?"[".concat(Number.parseInt(e.row),"]"):"";return t=n.path?"".concat(n.path).concat(r,"."):"",(t+=e._parentPath&&e.component.shouldIncludeSubFormPath?e._parentPath:"")+e.component.key}}},{key:"createComponent",value:function(e,t,n,r,i){var l;if(e){t=t||this.options,n=n||this.data,t.parent=this,t.parentVisible=this.visible,t.root=(null===(l=t)||void 0===l?void 0:l.root)||this.root||this,t.localRoot=this.localRoot,t.skipInit=!0,"pdf"===t.display&&this.builderMode||(e.id=(0,s.getRandomComponentId)()),!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0);var u=a.default.create(e,t,n,!0),c=this.calculateComponentPath(u);if(c&&(u.path=c),u.init(),e.internal)return u;if(r){var f=o.default.findIndex(this.components,{id:r.id});-1!==f?this.components.splice(f,0,u):this.components.push(u)}else if(i){var d=o.default.findIndex(this.components,{id:i.id});-1!==d?this.components[d]=u:this.components.push(u)}else this.components.push(u);return u}}},{key:"getContainer",value:function(){return this.element}},{key:"componentComponents",get:function(){return this.component.components||[]}},{key:"nestedKey",get:function(){return"nested-".concat(this.key)}},{key:"templateName",get:function(){return"container"}},{key:"init",value:function(){return this.components=this.components||[],this.addComponents(),v(k(y.prototype),"init",this).call(this)}},{key:"addComponents",value:function(e,t){var n=this;e=e||this.data,(t=t||this.options).components?this.components=t.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEach((function(t){return n.addComponent(t,e)}))}},{key:"addComponent",value:function(e,t,n,r){return t=t||this.data,this.options.parentPath&&(e.shouldIncludeSubFormPath=!0),e=this.hook("addComponent",e,t,n,r),this.createComponent(e,this.options,t,n||null)}},{key:"beforeFocus",value:function(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}},{key:"render",value:function(e){return v(k(y.prototype),"render",this).call(this,e||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}},{key:"renderComponents",value:function(e){var t=(e=e||this.getComponents()).map((function(e){return e.render()}));return this.renderTemplate("components",{children:t,components:e})}},{key:"attach",value:function(e){var t=this,n=v(k(y.prototype),"attach",this).call(this,e);this.loadRefs(e,m({header:"single",collapsed:this.collapsed},this.nestedKey,"single"));var r=l.default.resolve();return this.refs[this.nestedKey]&&(r=this.attachComponents(this.refs[this.nestedKey])),this.visible||this.attachComponentsLogic(),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",(function(){t.collapsed=!t.collapsed})),this.addEventListener(this.refs.header,"keydown",(function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),t.collapsed=!t.collapsed)}))),l.default.all([n,r])}},{key:"attachComponentsLogic",value:function(e){e=e||this.components,o.default.each(e,(function(e){e.attachLogic(),o.default.isFunction(e.attachComponentsLogic)&&e.attachComponentsLogic()}))}},{key:"attachComponents",value:function(e,t,n){if(t=t||this.components,n=n||this.component.components,!(e=this.hook("attachComponents",e,t,n,this)))return new l.default((function(){}));var r=0,o=[];return Array.prototype.slice.call(e.children).forEach((function(e){!e.getAttribute("data-noattach")&&t[r]&&(o.push(t[r].attach(e)),r++)})),l.default.all(o)}},{key:"removeComponent",value:function(e,t){t=t||this.components,e.destroy(),o.default.remove(t,{id:e.id})}},{key:"removeComponentByKey",value:function(e,t){var n=this;if(!this.getComponent(e,(function(e,r){n.removeComponent(e,r),t&&t(e,r)})))return t&&t(null),null}},{key:"removeComponentById",value:function(e,t){var n=this;if(!this.getComponentById(e,(function(e,r){n.removeComponent(e,r),t&&t(e,r)})))return t&&t(null),null}},{key:"updateValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.components.reduce((function(e,n){return n.updateValue(null,t)||e}),v(k(y.prototype),"updateValue",this).call(this,e,t))}},{key:"shouldSkipValidation",value:function(e,t,n){return!this.component.input||v(k(y.prototype),"shouldSkipValidation",this).call(this,e,t,n)}},{key:"checkData",value:function(e,t,n,r){if(this.builderMode)return!0;e=e||this.rootValue,t=t||{},n=n||this.data;var i=(r=r&&o.default.isArray(r)?r:this.getComponents()).reduce((function(r,o){return o.checkData(e,f({},t),n)&&r}),v(k(y.prototype),"checkData",this).call(this,e,f({},t),n));return this.checkModal(i,this.isDirty),i}},{key:"checkConditions",value:function(e,t,n){var r=v(k(y.prototype),"checkConditions",this).call(this,e,t,n);return this.getComponents().forEach((function(n){return n.checkConditions(e,t,n.data)})),r}},{key:"clearOnHide",value:function(e){v(k(y.prototype),"clearOnHide",this).call(this,e),this.component.clearOnHide&&(!this.allowData||this.hasValue()||this.options.server&&!this.visible||(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach((function(t){return t.clearOnHide(e)}))}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach((function(t){return t.data=e.dataValue}))}},{key:"beforePage",value:function(e){return l.default.all(this.getComponents().map((function(t){return t.beforePage(e)})))}},{key:"beforeSubmit",value:function(){return l.default.all(this.getComponents().map((function(e){return e.beforeSubmit()})))}},{key:"calculateValue",value:function(e,t,n){return!!this.conditionallyVisible()&&this.getComponents().reduce((function(r,o){return o.calculateValue(e,t,n)||r}),v(k(y.prototype),"calculateValue",this).call(this,e,t,n))}},{key:"isLastPage",value:function(){return this.pages.length-1===this.page}},{key:"isValid",value:function(e,t){return this.getComponents().reduce((function(n,r){return r.isValid(e,t)&&n}),v(k(y.prototype),"isValid",this).call(this,e,t))}},{key:"checkChildComponentsValidity",value:function(e,t,n,r,o){return this.getComponents().reduce((function(o,i){return i.checkValidity(e,t,n,r)&&o}),o)}},{key:"checkValidity",value:function(e,t,n,r){if(!this.checkCondition(n,e))return this.setCustomValidity(""),!0;var o=this.checkChildComponentsValidity(e,t,n,r,v(k(y.prototype),"checkValidity",this).call(this,e,t,n,r));return this.checkModal(o,t),o}},{key:"checkAsyncValidity",value:function(e,t,n,r){var o=this;return this.ready.then((function(){var i=[v(k(y.prototype),"checkAsyncValidity",o).call(o,e,t,n,r)];return o.eachComponent((function(o){return i.push(o.checkAsyncValidity(e,t,n,r))})),l.default.all(i).then((function(e){return e.reduce((function(e,t){return e&&t}),!0)}))}))}},{key:"setPristine",value:function(e){v(k(y.prototype),"setPristine",this).call(this,e),this.getComponents().forEach((function(t){return t.setPristine(e)}))}},{key:"isPristine",get:function(){return this.pristine&&this.getComponents().every((function(e){return e.isPristine}))}},{key:"isDirty",get:function(){return this.dirty&&this.getComponents().every((function(e){return e.isDirty}))}},{key:"detach",value:function(){this.components.forEach((function(e){e.detach()})),v(k(y.prototype),"detach",this).call(this)}},{key:"clear",value:function(){this.components.forEach((function(e){e.clear()})),v(k(y.prototype),"clear",this).call(this)}},{key:"destroy",value:function(){this.destroyComponents(),v(k(y.prototype),"destroy",this).call(this)}},{key:"destroyComponents",value:function(){var e=this;this.getComponents().slice().forEach((function(t){return e.removeComponent(t,e.components)})),this.components=[]}},{key:"errors",get:function(){var e=this.error?[this.error]:[];return this.getComponents().reduce((function(e,t){return e.concat(t.errors||[])}),e).filter((function(e){return"hidden"!==e.level}))}},{key:"getValue",value:function(){return this.data}},{key:"resetValue",value:function(){v(k(y.prototype),"resetValue",this).call(this),this.getComponents().forEach((function(e){return e.resetValue()})),this.setPristine(!0)}},{key:"dataReady",get:function(){return l.default.all(this.getComponents().map((function(e){return e.dataReady})))}},{key:"setNestedValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e._data=this.componentContext(e),"button"!==e.type&&("components"===e.type?e.tree&&e.hasValue(t)?e.setValue(o.default.get(t,e.key),n):e.setValue(t,n):t&&e.hasValue(t)?e.setValue(o.default.get(t,e.key),n):this.rootPristine&&!e.visible||!e.shouldAddDefaultValue?void 0:(n.noValidate=!n.dirty,n.resetValue=!0,e.setValue(e.defaultValue,n)))}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&(e.submitAsDraft&&!e.submit&&(n.noValidate=!0),this.getComponents().reduce((function(r,o){return t.setNestedValue(o,e,n,r)||r}),!1))}},{key:"lazyLoad",get:function(){var e;return null!==(e=this.component.lazyLoad)&&void 0!==e&&e}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{tree:!1,lazyLoad:!1}].concat(t))}}],n&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.default);t.default=O},99495:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(85827),n(41539),n(79753),n(92222),n(89554),n(54747),n(68304),n(24812),n(30489);var o=s(n(96486)),i=n(82531),a=s(n(64430)),l=s(n(67329));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(v,e);var t,n,r,s,d,y=(s=v,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(s);if(d){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function v(){return u(this,v),y.apply(this,arguments)}return t=v,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{disableAddingRemovingRows:!1}].concat(t))}},{key:"savedValueTypes",value:function(){return[i.componentValueTypes.array]}}],(n=[{key:"componentContext",value:function(e){return this.iteratableRows[e.rowIndex].data}},{key:"iteratableRows",get:function(){throw new Error("Getter #iteratableRows() is not implemented")}},{key:"rowIndex",get:function(){return f(m(v.prototype),"rowIndex",this)},set:function(e){this._rowIndex=e}},{key:"init",value:function(){f(m(v.prototype),"init",this).call(this),this.prevHasAddButton=this.hasAddButton()}},{key:"checkAddButtonChanged",value:function(){var e=this.hasAddButton();e!==this.prevHasAddButton&&(this.prevHasAddButton=e,this.redraw())}},{key:"checkData",value:function(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkAddButtonChanged(),this.checkRows("checkData",e,t,a.default.prototype.checkData.call(this,e,t,n))}},{key:"checkRows",value:function(e,t,n,r,o){var i=this;return this.iteratableRows.reduce((function(r,a,l){return(null!=n&&n.rowIndex&&(null==n?void 0:n.rowIndex)!==l||i.checkRow(e,t,n,a.data,a.components,o))&&r}),r)}},{key:"checkRow",value:function(e,t,n,r,i,a){null!=n&&n.isolateRow&&(a=!0,n.noRefresh=!0);var l=o.default.reduce(i,(function(o,i){return i[e](t,n,r,a)&&o}),!0);return null!=n&&n.noRefresh&&delete n.noRefresh,l}},{key:"hasAddButton",value:function(){var e=o.default.get(this.component,"validate.maxLength"),t=o.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!e||this.iteratableRows.length<e)&&(!t||this.evaluate(t,{value:this.dataValue},"show"))}},{key:"getComponent",value:function(e,t,n){var r=(e=Array.isArray(e)?e:[e]).shift(),i=e,a=[],l=null,s=null,u=null;return o.default.isNumber(r)&&(u=r,r=i.shift()),o.default.isString(r)?(this.everyComponent((function(e,o){e.component.key===r&&(l=e,i.length>0&&"getComponent"in e?s=e.getComponent(i,t,n):t&&t(e,o),a=null!==u?s:a.concat(s||l))}),u),a&&0!==a.length||!l||(a=null!==u?l:[l]),a):a}},{key:"everyComponent",value:function(e,t,n){var r;if(o.default.isObject(t)&&(n=t,t=null),null===(r=n)||void 0===r||!r.email){var i=this.getComponents(t);o.default.each(i,(function(t,r){return!1!==e(t,i,r)&&("function"!=typeof t.everyComponent||!1!==t.everyComponent(e,n))&&void 0}))}}},{key:"getValueAsString",value:function(e,t){if(null!=t&&t.email){var n,r='\n        <table border="1" style="width:100%">\n          <thead>\n            <tr>\n      ';return null===(n=this.component.components)||void 0===n||n.forEach((function(e){var t=e.label||e.key;r+='<th style="padding: 5px 10px;">'.concat(t,"</th>")})),r+="\n          </tr>\n        </thead>\n        <tbody>\n      ",this.iteratableRows.forEach((function(e){var n=e.components;r+="<tr>",o.default.each(n,(function(e){r+='<td style="padding:5px 10px;">',e.isInputComponent&&e.visible&&!e.skipInEmail&&(r+=e.getView(e.dataValue,t)),r+="</td>"})),r+="</tr>"})),r+="\n          </tbody>\n        </table>\n      "}return e&&e.length?f(m(v.prototype),"getValueAsString",this).call(this,e,t):""}},{key:"getComponents",value:function(e){return void 0!==e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:f(m(v.prototype),"getComponents",this).call(this)}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(l.default);t.default=y},67329:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(24603),n(74916),n(39714),n(89554),n(41539),n(54747),n(15306),n(68304),n(24812),n(30489);var o=s(n(64430)),i=s(n(24561)),a=s(n(96486)),l=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=y(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function b(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(f,e);var t,n,r,i,s,u=(i=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(i);if(s){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function f(){return d(this,f),u.apply(this,arguments)}return t=f,n=[{key:"hasChanged",value:function(e,t){return null!=e&&!this.hasValue()||!a.default.isEqual(e,t)}},{key:"allowData",get:function(){return!0}},{key:"emptyValue",get:function(){return{}}},{key:"componentContext",value:function(){return this.dataValue}},{key:"getValueAsString",value:function(e,t){if(null!=t&&t.email){var n='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return this.everyComponent((function(e){e.isInputComponent&&e.visible&&!e.skipInEmail&&(n+='\n            <tr>\n              <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n              <td style="width:100%;padding:5px 10px;">').concat(e.getView(e.dataValue,t),"</td>\n            </tr>\n          "))}),c(c({},t),{},{fromRoot:!0})),n+="\n          </tbody>\n        </table>\n      "}return a.default.isEmpty(e)?"":null!=t&&t.modalPreview?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"[Complex Data]"}},{key:"getDataValueAsTable",value:function(e,t){var n='\n      <table border="1" style="width:100%">\n        <tbody>\n    ',r=new RegExp("<(.*?)>");return this.components.forEach((function(e){if(e.isInputComponent&&e.visible&&!e.skipInEmail){var o=e.getView(e.dataValue,t);n+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(e.component&&"html"===e.component.inputFormat&&r.test(o)?o:'<input type="text" value="'.concat(o.replace(/"/g,"&quot;"),'" readonly/>'),"</td>\n          </tr>\n        ")}}),c(c({},t),{},{fromRoot:!0})),n+="\n        </tbody>\n      </table>\n    "}},{key:"everyComponent",value:function(e,t){if(null!=t&&t.email){if(!t.fromRoot)return;delete t.fromRoot}return m(g(f.prototype),"everyComponent",this).call(this,e,t)}},{key:"getValue",value:function(){return this.dataValue}},{key:"updateValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.prototype.updateValue.call(this,e,t)}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1,r=this.hasValue();return r&&a.default.isEmpty(this.dataValue)&&(t.noValidate=!0),e&&a.default.isObject(e)&&r||(n=!0,this.dataValue=this.defaultValue),n=m(g(f.prototype),"setValue",this).call(this,e,t)||n,this.updateOnChange(t,n),n}}],r=[{key:"savedValueTypes",value:function(e){return(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.object]}}],n&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.default);t.default=w},7115:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"display",components:i.default},{label:"Provider",key:"provider",weight:15,components:a.default}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(23817)),i=l(n(453)),a=l(n(91003));function l(e){return e&&e.__esModule?e:{default:e}}},78621:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(49337),n(33321),n(79753),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AddressComponentMode=void 0,n(21249),n(68309),n(89554),n(41539),n(54747),n(69600),n(24812),n(92222),n(74916),n(64765),n(57327),n(68304),n(30489);var o=d(n(77338)),i=d(n(96486)),a=n(19161),l=n(7763),s=d(n(68093)),u=d(n(24561)),c=d(n(20787)),f=n(82531);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function k(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},O.apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function P(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var x={Autocomplete:"autocomplete",Manual:"manual"};t.AddressComponentMode=x;var E="address-autocomplete-remove-value-icon--hidden",C="show = _.get(instance, 'parent.manualMode', false);",A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(_,e);var t,n,r,d,y,k=(d=_,y=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(d);if(y){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return P(this,e)});function _(){return g(this,_),k.apply(this,arguments)}return t=_,n=[{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.defaultSchema;return e.components&&(t=i.default.omit(t,"components")),i.default.defaultsDeep(e,t)}},{key:"init",value:function(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&u.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),s.default.prototype.init.call(this),!this.builderMode)if(this.component.provider){var e=this.component,t=e.provider,n=e.providerOptions;this.provider=this.initializeProvider(t,n)}else if(this.component.map){this.component.provider=l.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};var r=this.component,o=r.map,a=r.provider,c=r.providerOptions,f=o.key,d=o.region;f&&i.default.set(c,"params.key",f),d&&i.default.set(c,"params.region",d),this.provider=this.initializeProvider(a,c)}}},{key:"initializeProvider",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.interpolate(t.url),r=a.GlobalFormio.Providers.getProvider("address",e);return new r(v(v({},t),{},{url:n}))}},{key:"emptyValue",get:function(){return this.manualModeEnabled?{mode:x.Autocomplete,address:{}}:{}}},{key:"mode",get:function(){var e,t;return this.manualModeEnabled&&null!==(e=null===(t=this.dataValue)||void 0===t?void 0:t.mode)&&void 0!==e?e:x.Autocomplete},set:function(e){this.manualModeEnabled&&(this.dataValue.mode=e)}},{key:"autocompleteMode",get:function(){return this.mode===x.Autocomplete}},{key:"manualMode",get:function(){return this.mode===x.Manual}},{key:"manualModeEnabled",get:function(){return!this.isMultiple&&Boolean(this.component.enableManualMode)}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach((function(t){t.data=e.address,t.setValue(t.dataValue,{noUpdateEvent:!0})}))}},{key:"isMultiple",get:function(){return Boolean(this.component.multiple)}},{key:"address",get:function(){return this.isMultiple?i.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue},set:function(e){this.manualModeEnabled&&!this.isMultiple?this.dataValue.address=e:this.dataValue=e}},{key:"defaultValue",get:function(){var e=O(j(_.prototype),"defaultValue",this);return this.isMultiple&&(e=i.default.isArray(e)?e:[e]),e}},{key:"defaultSchema",get:function(){return _.schema()}},{key:"isValueInLegacyFormat",value:function(e){return e&&!e.mode}},{key:"normalizeValue",value:function(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:x.Autocomplete,address:e}:e}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s.default.prototype.setValue.call(this,e,t);return this.manualMode&&this.restoreComponentsContext(),(n||!i.default.isEmpty(e)&&t.fromSubmission)&&this.redraw(),n}},{key:"modeSwitcher",get:function(){return this.refs&&this.refs[_.modeSwitcherRef]||null}},{key:"removeValueIcon",get:function(){return this.refs&&this.refs[_.removeValueIconRef]||null}},{key:"searchInput",get:function(){return this.refs&&this.refs[_.searchInputRef]||null}},{key:"addRowButton",get:function(){return this.refs&&this.refs[_.addRowButtonRef]||null}},{key:"removeRowButton",get:function(){return this.refs&&this.refs[_.removeRowButtonRef]||null}},{key:"searchInputAttributes",get:function(){var e={name:this.options.name,type:"text",class:"form-control",lang:this.options.language,tabindex:this.component.tabindex||0};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder)),this.disabled&&(e.disabled="disabled"),i.default.defaults(e,this.component.attributes),e}},{key:"templateName",get:function(){return"address"}},{key:"gridTemplateName",get:function(){return"multiValueTable"}},{key:"rowTemplateName",get:function(){return"multiValueRow"}},{key:"hasChildren",get:function(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"renderElement",value:function(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:_.modeSwitcherRef,removeValueIcon:_.removeValueIconRef,searchInput:_.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}},{key:"renderRow",value:function(e,t){return this.renderTemplate(this.rowTemplateName,{index:t,disabled:this.disabled,element:"".concat(this.renderElement(e,t))})}},{key:"renderGrid",value:function(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}},{key:"render",value:function(){return this.isMultiple?O(j(_.prototype),"render",this).call(this,this.renderGrid()):O(j(_.prototype),"render",this).call(this,this.renderElement())}},{key:"onSelectAddress",value:function(e,t,n){var r;this.isMultiple?(this.address[n]=e,this.address=function(e){if(Array.isArray(e))return m(e)}(r=this.address)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||h(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):this.address=e,this.triggerChange({modified:!0}),t&&(t.value=this.getDisplayValue(this.isMultiple?this.address[n]:this.address)),this.updateRemoveIcon(n)}},{key:"addRow",value:function(){this.address=this.address.concat(this.emptyValue),O(j(_.prototype),"redraw",this).call(this)}},{key:"attach",value:function(e){var t,n=this,r=(this.builderMode||this.manualMode?O(j(_.prototype),"attach",this):s.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){var a=this.component,l=a.provider,u=a.providerOptions;this.provider=this.initializeProvider(l,u)}return this.loadRefs(e,(b(t={},_.addRowButtonRef,"single"),b(t,_.modeSwitcherRef,"single"),b(t,_.removeRowButtonRef,"multiple"),b(t,_.removeValueIconRef,"multiple"),b(t,_.searchInputRef,"multiple"),t)),this.searchInput.forEach((function(e,t){!n.builderMode&&e&&n.provider&&("google"===n.component.provider?n.provider.attachAutocomplete(e,t,n.onSelectAddress.bind(n)):(0,o.default)({input:e,debounceWaitMs:300,fetch:function(e,t){var r=e;n.provider.search(r).then(t)},render:function(e){var t=n.ce("div");return t.textContent=n.getDisplayValue(e),t},onSelect:function(r){n.onSelectAddress(r,e,t)}}),n.addEventListener(e,"blur",(function(){e&&e.value&&(e.value=n.getDisplayValue(n.isMultiple?n.address[t]:n.address))})),n.addEventListener(e,"keyup",(function(){e&&(e.value||n.clearAddress(e,t))})))})),this.addRowButton&&this.addEventListener(this.addRowButton,"click",(function(e){e.preventDefault(),n.addRow()})),this.removeRowButton.forEach((function(e,t){n.addEventListener(e,"click",(function(e){e.preventDefault(),n.removeValue(t)}))})),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",(function(){n.modeSwitcher&&(n.dataValue=n.emptyValue,n.mode=n.modeSwitcher.checked?x.Manual:x.Autocomplete,n.builderMode||(n.manualMode&&n.restoreComponentsContext(),n.triggerChange({modified:!0})),n.redraw())})),this.builderMode||(this.removeValueIcon.forEach((function(e,t){n.updateRemoveIcon(t);var r=function(){var e,r=null===(e=n.searchInput)||void 0===e?void 0:e[t];n.clearAddress(r,t),r&&r.focus()};n.addEventListener(e,"click",r),n.addEventListener(e,"keydown",(function(e){"Enter"===e.key&&r()}))})),i.default.each(this.refs.searchInput||[],(function(e){return n.addFocusBlurEvents(e)}))),r}},{key:"addChildComponent",value:function(e){e.customConditional=C}},{key:"redraw",value:function(){var e=this,t=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return O(j(_.prototype),"redraw",this).call(this).then((function(n){return t&&e.modeSwitcher&&e.modeSwitcher.focus(),n}))}},{key:"clearAddress",value:function(e,t){var n;this.isEmpty()||this.triggerChange(),null!==(n=this.address)&&void 0!==n&&n[t]?this.address[t]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(t)}},{key:"getDisplayValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.address;return this.provider&&!this.manualMode?this.provider.getDisplayValue(e):""}},{key:"validateMultiple",value:function(){return this.isMultiple}},{key:"updateRemoveIcon",value:function(e){var t,n=null===(t=this.removeValueIcon)||void 0===t?void 0:t[e];if(n){var r=this.isMultiple?this.address[e]:this.address;this.isEmpty(r)||this.disabled?this.addClass(n,E):this.removeClass(n,E)}}},{key:"getValueAsString",value:function(e,t){if(!e)return"";var n=this.normalizeValue(e),r=this.manualModeEnabled?n:{address:n,mode:x.Autocomplete},o=r.address,a=r.mode===x.Manual;return this.provider&&!a?this.getDisplayValue(o):a?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:o,data:this.data,component:this.component}):this.getComponents().filter((function(e){return e.hasValue(o)})).map((function(e){return[e,i.default.get(o,e.key)]})).filter((function(e){var t=p(e,2),n=t[0],r=t[1];return!n.isEmpty(r)})).map((function(e){var n=p(e,2),r=n[0],o=n[1];return r.getValueAsString(o,t)})).join(", "):O(j(_.prototype),"getValueAsString",this).call(this,o,t)}},{key:"focus",value:function(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.default.schema.apply(c.default,[{type:"address",label:"Address",key:"address",switchToManualModeLabel:"Can't find address? Switch to manual mode.",provider:"",providerOptions:{},manualModeViewString:"",hideLabel:!1,disableClearIcon:!1,enableManualMode:!1,components:[{label:"Address 1",tableView:!1,key:"address1",type:"textfield",input:!0,customConditional:C},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:C},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:C},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:C},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:C},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:C}]}].concat(t))}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,f.getComponentSavedTypes)(e)||[f.componentValueTypes.object]}},{key:"builderInfo",get:function(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/form-building/advanced-components#address",weight:35,schema:_.schema()}}},{key:"modeSwitcherRef",get:function(){return"modeSwitcher"}},{key:"removeValueIconRef",get:function(){return"removeValueIcon"}},{key:"searchInputRef",get:function(){return"searchInput"}},{key:"addRowButtonRef",get:function(){return"addButton"}},{key:"removeRowButtonRef",get:function(){return"removeRow"}}],n&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),_}(c.default);t.default=A},23817:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",customConditional:function(e){return!e.data.enableManualMode}},{type:"address",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0,customDefaultValue:function(e){return e.instance.manualModeEnabled?{mode:"autocomplete",address:{}}:{}}}]},453:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:function(e){return!e.data.multiple}},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:function(e){var t=e.data;return Boolean(t.enableManualMode)}},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"Clear Icon allows easily clear component's value."},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return e.data.multiple}}];t.default=r},91003:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(2707),n(66992),n(41539),n(33948),n(68309);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(19161),a=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return o.default.values(i.GlobalFormio.Providers.getProviders("address")).sort().map((function(e){return{label:e.displayName,value:e.name}}))}},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params['subscription-key']",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the <a href ='https://developers.google.com/maps/documentation/javascript/places-autocomplete' target='_blank'>link</a> for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}];t.default=a},93808:function(e,t,n){"use strict";n(69070),n(47941),n(57327),n(38880),n(49337),n(33321),n(79753),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(24812),n(89554),n(41539),n(54747),n(92222),n(69720),n(74916),n(15306),n(96649),n(96078),n(82526),n(41817),n(9653);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(82531);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var m=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t,this.alert=null,this.parentComponent=n,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}var t,n;return t=e,n=[{key:"refsNames",get:function(){return{messageRef:"multiple"}}},{key:"alertTypes",get:function(){return{error:"danger",success:"success",info:"info",warning:"warning"}}},{key:"showErrors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=o.default.isArray(e)?e:[e];var r=this.createMessagesList("error",e);return this.showAlert("error",r,n),t&&this.parentComponent.emit("error",e),e}},{key:"showMessage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e;r instanceof HTMLElement?r.setAttribute("ref","messageRef"):r=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(t,r,n)}},{key:"createMessagesList",value:function(e){if("error"===e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.createErrorList.apply(this,n)}}},{key:"createErrorList",value:function(e){var t=this,n=this.parentComponent.ce("p");this.parentComponent.setContent(n,this.parentComponent.t("error"));var r=this.parentComponent.ce("ul"),o=document.createDocumentFragment();return e.forEach((function(e){return t.appendErrorToList(e,r)})),n.appendChild(r),o.appendChild(n),o}},{key:"showAlert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.customClasses,o=n.customEvents;this.setAlert(e,t,{customClasses:r}),this.alert&&(this.attach({customEvents:o}),this.parentComponent.prependTo(this.alert,this.container))}},{key:"setAlert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.alertTypes[e];if(this.alert&&this.clear(),t){var o=n.id,i=void 0===o?"".concat(e,"-list-").concat(this.parentComponent.id):o,a=n.customClasses,l=void 0===a?"alert alert-".concat(r):a;this.alert=this.parentComponent.ce("div",{id:i,class:l}),t instanceof HTMLElement?this.parentComponent.appendTo(t,this.alert):this.parentComponent.setContent(this.alert,t)}}},{key:"attach",value:function(e){var t,n,r,o=this,i=e.customEvents,a=void 0===i?{}:i;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);var u=(null===(t=a.click)||void 0===t?void 0:t.listeners)||[],c=(null===(n=a.keypress)||void 0===n?void 0:n.listeners)||[];a=f(f({},a),{},{click:[].concat(l(u),[function(e){var t=e.currentTarget.dataset.componentKey;o.focusOnComponent(t)}]),keypress:[].concat(l(c),[function(e){var t=e.currentTarget.dataset.componentKey;o.focusOnComponent(t)}])}),null!==(r=this.refs.messageRef)&&void 0!==r&&r.length&&this.refs.messageRef.forEach((function(e){Object.entries(a).forEach((function(t){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||s(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0];i[1].forEach((function(t){return o.parentComponent.addEventListener(e,a,t)})),o.eventListenersKeys.push(a)}))}))}},{key:"clear",value:function(){var e=this;try{var t;null!==(t=this.refs.messageRef)&&void 0!==t&&t.length&&this.refs.messageRef.forEach((function(t){e.eventListenersKeys.forEach((function(n){return e.parentComponent.removeEventListener(t,n)}))})),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}},{key:"focusOnComponent",value:function(e){if(e){var t,n=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,r=null===(t=this.parentComponent.root)||void 0===t?void 0:t.getComponent(n,null,e);r&&o.default.isFunction(r.focus)&&r.focus()}}},{key:"createMessage",value:function(e,t,n,r,o){if("error"===e)return this.createErrorMessage(t,n,r,o)}},{key:"createErrorMessage",value:function(e,t,n,r){var a,l,s={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":"".concat(t,". Click to navigate to the field with following error.")},u=this.parentComponent.ce("li",s);this.parentComponent.setContent(u,t);var c=!o.default.isUndefined(n)&&(null==r||null===(a=r.messages)||void 0===a?void 0:a[n]),f=(null==c?void 0:c.path)||(null==r||null===(l=r.component)||void 0===l?void 0:l.key);if(f){var d=(0,i.getStringFromComponentPath)(f);u.dataset.componentKey=d}this.parentComponent.appendTo(u,e)}},{key:"appendErrorToList",value:function(e,t){var n,r=this;if(null!=e&&null!==(n=e.messages)&&void 0!==n&&n.length)e.messages.forEach((function(n,o){var i=n.message;r.createMessage("error",t,i,o,e)}));else if(e){var i=o.default.isObject(e)?e.message||"":e;this.createMessage("error",t,i)}}}],n&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=m},89395:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=K(n(15178)),o=K(n(7115)),i=K(n(28110)),a=K(n(87533)),l=K(n(98237)),s=K(n(3248)),u=K(n(45187)),c=K(n(67400)),f=K(n(87018)),d=K(n(11988)),p=K(n(21006)),h=K(n(4025)),m=K(n(69403)),y=K(n(68489)),v=K(n(16659)),b=K(n(52710)),g=K(n(59973)),w=K(n(44415)),k=K(n(12775)),O=K(n(45574)),_=K(n(16494)),S=K(n(40970)),P=K(n(1512)),j=K(n(81089)),x=K(n(93268)),E=K(n(54570)),C=K(n(20481)),A=K(n(124)),T=K(n(64328)),M=K(n(99966)),R=K(n(24120)),D=K(n(66369)),I=K(n(68427)),L=K(n(39450)),V=K(n(5657)),N=K(n(28145)),F=K(n(3611)),B=K(n(53983)),U=K(n(65105)),z=K(n(69561)),H=K(n(18995)),q=K(n(81541)),W=K(n(793));function K(e){return e&&e.__esModule?e:{default:e}}r.default.address.editForm=o.default,r.default.button.editForm=i.default,r.default.checkbox.editForm=a.default,r.default.columns.editForm=l.default,r.default.component.editForm=s.default,r.default.container.editForm=u.default,r.default.content.editForm=c.default,r.default.currency.editForm=f.default,r.default.datagrid.editForm=d.default,r.default.datamap.editForm=p.default,r.default.datetime.editForm=h.default,r.default.day.editForm=m.default,r.default.editgrid.editForm=y.default,r.default.email.editForm=v.default,r.default.fieldset.editForm=b.default,r.default.file.editForm=g.default,r.default.form.editForm=w.default,r.default.list.editForm=k.default,r.default.hidden.editForm=O.default,r.default.htmlelement.editForm=_.default,r.default.nested.editForm=S.default,r.default.number.editForm=P.default,r.default.panel.editForm=j.default,r.default.password.editForm=x.default,r.default.phoneNumber.editForm=E.default,r.default.radio.editForm=C.default,r.default.recaptcha.editForm=A.default,r.default.resource.editForm=T.default,r.default.select.editForm=R.default,r.default.selectboxes.editForm=M.default,r.default.signature.editForm=D.default,r.default.survey.editForm=I.default,r.default.table.editForm=L.default,r.default.tabs.editForm=V.default,r.default.tags.editForm=N.default,r.default.textarea.editForm=F.default,r.default.textfield.editForm=B.default,r.default.time.editForm=U.default,r.default.tree.editForm=z.default,r.default.unknown.editForm=H.default,r.default.url.editForm=q.default,r.default.well.editForm=W.default;var Y=r.default;t.default=Y},28110:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(50288));function i(e){return e&&e.__esModule?e:{default:e}}},83696:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(26699),n(82772),n(40561),n(24812),n(74916),n(15306),n(24603),n(39714),n(64765),n(92222),n(69600),n(21249),n(47941),n(32564),n(85827),n(41539),n(68309),n(57327),n(68304),n(30489);var o=u(n(96486)),i=u(n(91459)),a=u(n(68093)),l=u(n(63820)),s=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,n,r,a,u,d=(a=y,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(a);if(u){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(r=d.call(this,e,t,n)).filesUploading=[],r}return t=y,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/form-building/form-components#button",weight:110,schema:y.schema()}}},{key:"savedValueTypes",value:function(e){return(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.boolean]}}],(n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"inputInfo",get:function(){var e=f(m(y.prototype),"elementInfo",this).call(this);return e.type="button",e.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",e.attr.class="btn btn-".concat(this.component.theme),this.component.size&&(e.attr.class+=" btn-".concat(this.component.size)),this.component.block&&(e.attr.class+=" btn-block"),this.component.customClass&&(e.attr.class+=" ".concat(this.component.customClass)),e.content=this.t(this.component.label,{_userInput:!0}),e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"loading",set:function(e){this.setLoading(this.refs.button,e)}},{key:"skipInEmail",get:function(){return!0}},{key:"createLabel",value:function(){}},{key:"createInput",value:function(e){return this.refs.button=f(m(y.prototype),"createInput",this).call(this,e),this.refs.button}},{key:"emptyValue",get:function(){return!1}},{key:"getValue",value:function(){return this.dataValue}},{key:"clicked",get:function(){return this.dataValue}},{key:"defaultValue",get:function(){return!1}},{key:"className",get:function(){return f(m(y.prototype),"className",this)+" ".concat(this.transform("class","form-group"))}},{key:"oauthConfig",get:function(){return o.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}},{key:"render",value:function(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),f(m(y.prototype),"render",this).call(this,this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}},{key:"attachButton",value:function(){var e=this;this.addShortcut(this.refs.button);var t=null,n=null;if("submit"===this.component.action&&(this.on("submitButton",(function(){e.disabled=!0}),!0),this.on("cancelSubmit",(function(){e.disabled=!1}),!0),this.on("submitDone",(function(t){var n=o.default.isString(t)?t:e.t("complete");e.loading=!1,e.disabled=!1,e.addClass(e.refs.button,"btn-success submit-success"),e.removeClass(e.refs.button,"btn-danger submit-fail"),e.addClass(e.refs.buttonMessageContainer,"has-success"),e.removeClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,n)}),!0),this.on("submitError",(function(t){var n=o.default.isString(t)?e.t(t):e.t(e.errorMessage("submitError"));e.loading=!1,e.disabled=!1,e.hasError=!0,e.removeClass(e.refs.button,"btn-success submit-success"),e.addClass(e.refs.button,"btn-danger submit-fail"),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.addClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,n)}),!0),this.on("fileUploadingStart",(function(t){e.filesUploading.push(t),e.disabled=!0,e.setDisabled(e.refs.button,e.disabled)}),!0),this.on("fileUploadingEnd",(function(t){var n=e.filesUploading.indexOf(t);-1!==n&&e.filesUploading.splice(n,1),e.disabled=!!e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled)}),!0),t=function(t,n){e.removeClass(e.refs.button,"btn-success submit-success"),n&&(e.removeClass(e.refs.button,"btn-danger submit-fail"),e.hasError&&(e.hasError=!1,e.setContent(e.refs.buttonMessage,""),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.removeClass(e.refs.buttonMessageContainer,"has-error")))},n=function(){e.hasError=!0,e.removeClass(e.refs.button,"btn-success submit-success"),e.addClass(e.refs.button,"btn-danger submit-fail"),e.removeClass(e.refs.buttonMessageContainer,"has-success"),e.addClass(e.refs.buttonMessageContainer,"has-error"),e.setContent(e.refs.buttonMessage,e.t(e.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",(function(){e.disabled=!0}),!0),this.on("requestDone",(function(){e.loading=!1,e.disabled=!1}),!0)),this.on("change",(function(n,r){var o=n.isValid,i=r&&r.silent;r&&r.noValidate&&(e.component.disableOnInvalid||e.hasError)&&(o=r.rootValidity||!e.root||e.root.checkValidity(e.root.data,null,null,!0),r.rootValidity=o),e.isDisabledOnInvalid=e.component.disableOnInvalid&&(i||!o),e.disabled=e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled),t&&t(n,o)}),!0),this.on("error",(function(){e.loading=!1,e.disabled=!1,n&&n()}),!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",(function(t){13===t.keyCode&&e.onClick.call(e,t)})),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",(function(){e.refs.buttonMessageContainer.classList.contains("has-error")&&e.root&&e.root.alert&&e.scrollIntoView(e.root.alert)})),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){var r=function(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]".concat(e,"=([^&#]*)")).exec(location.search);return t?decodeURIComponent(t[1].replace(/\+/g," ")):t}("iss");r&&0===this.oauthConfig.authURI.indexOf(r)&&this.openOauth(this.oauthConfig)}}},{key:"shouldDisabled",get:function(){var e;return f(m(y.prototype),"shouldDisabled",this)||!(null===(e=this.filesUploading)||void 0===e||!e.length)||this.isDisabledOnInvalid}},{key:"attach",value:function(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});var t=f(m(y.prototype),"attach",this).call(this,e);return this.attachButton(),t}},{key:"detach",value:function(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),f(m(y.prototype),"detach",this).call(this)}},{key:"onClick",value:function(e){if(this.triggerCaptcha(),!this.disabled&&"builder"!==this.options.attachMode)switch(this.dataValue=!0,"submit"!==this.component.action&&this.component.showValidations&&this.emit("checkValidity",this.data),this.component.action){case"saveState":case"submit":e.preventDefault(),e.stopPropagation(),this.loading=!0,this.emit("submitButton",{state:this.component.state||"submitted",component:this.component,instance:this});break;case"event":this.emit(this.interpolate(this.component.event),this.data),this.events.emit(this.interpolate(this.component.event),this.data),this.emit("customEvent",{type:this.interpolate(this.component.event),component:this.component,data:this.data,event:e});break;case"custom":var t=this.getRoot(),n={},r={};(0,s.eachComponent)(t.components,(function(e,t){var o=e.component||e;n[t]=o,r[o.key]=o}),!0),this.evaluate(this.component.custom,{form:t,flattened:n,components:r}),this.triggerChange();break;case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this)return void console.warn("You must add the OAuth button to a form for it to function properly");if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger","The Following Error Has Occured ".concat(this.oauthConfig.error));break}this.openOauth(this.oauthConfig)}}},{key:"openOauth",value:function(e){var t=this;if(this.root.formio){var n={response_type:"code",client_id:e.clientId,redirect_uri:e.redirectURI&&this.interpolate(e.redirectURI)||window.location.origin||"".concat(window.location.protocol,"//").concat(window.location.host),scope:e.scope};e.state?n.state=e.state:e.code_challenge&&(n.code_challenge=e.code_challenge,n.code_challenge_method="S256");var r=n.redirect_uri;e.display&&(n.display=e.display),n=Object.keys(n).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(n[e]))})).join("&");var a=-1!==e.authURI.indexOf("?")?"&":"?",l="".concat(e.authURI).concat(a).concat(n),s=window.open(l,e.provider,"width=1020,height=618"),u=setInterval((function(){try{var n=s.location.host,a=window.location.host;if(s&&!s.closed&&n===a){s.close();var l=s.location.search.substr(1).split("&").reduce((function(e,t){var n=t.split("=");return e[n[0]]=n[1],e}),{});if(l.error)return alert(l.error_description||l.error),void t.root.setAlert("danger",l.error_description||l.error);if(e.state!==l.state)return void t.root.setAlert("danger","OAuth state does not match. Please try logging in again.");var c=i.default.resolve();if(o.default.has(t,"root.form.config.oauth")&&t.root.form.config.oauth[t.component.oauthProvider])l.provider=e.provider,l.redirectURI=r,l.triggeredBy=t.oauthComponentPath,c=t.root.formio.makeRequest("oauth","".concat(t.root.formio.projectUrl,"/oauth2"),"POST",l);else{var f={data:{},oauth:{}};f.oauth[e.provider]=l,f.oauth[e.provider].redirectURI=r,e.logoutURI&&t.root.formio.oauthLogoutURI(e.logoutURI),f.oauth[e.provider].triggeredBy=t.oauthComponentPath,c=t.root.formio.saveSubmission(f)}c.then((function(e){t.root.onSubmit(e,!0)})).catch((function(e){t.root.onSubmissionError(e)}))}}catch(e){"SecurityError"===e.name||"Error"===e.name&&"Permission denied"===e.message||t.root.setAlert("danger",e.message||e)}s&&!s.closed&&void 0!==s.closed||clearInterval(u)}),100)}else console.warn("You must attach a Form API url to your form in order to use OAuth buttons.")}},{key:"oauthComponentPath",get:function(){var e=(0,s.getArrayFromComponentPath)(this.path);return o.default.chain(e).filter((function(e){return!o.default.isNumber(e)})).join(".").value()}},{key:"focus",value:function(){this.refs.button&&this.refs.button.focus()}},{key:"triggerCaptcha",value:function(){var e,t=this;this.root&&(this.root.everyComponent((function(n){/^(re)?captcha$/.test(n.component.type)&&"buttonClick"===n.component.eventType&&n.component.buttonKey===t.component.key&&(e=n)})),e&&e.verify("".concat(this.component.key,"Click")))}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(a.default);t.default=y},50288:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92087);var r=i(n(1848)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",customConditional:function(e){var t,n;return null===(t=e.instance.options)||void 0===t||null===(n=t.flags)||void 0===n?void 0:n.inDataGrid}},{key:"dataGridLabel",ignore:!0},{type:"select",key:"action",label:"Action",input:!0,dataSrc:"values",weight:110,tooltip:"This is the action to be performed by this button.",data:{values:[{label:"Submit",value:"submit"},{label:"Save in state",value:"saveState"},{label:"Event",value:"event"},{label:"Custom",value:"custom"},{label:"Reset",value:"reset"},{label:"OAuth",value:"oauth"},{label:"POST to URL",value:"url"}]}},{type:"select",key:"oauthProvider",label:"OAuth Provider",input:!0,dataSrc:"values",weight:111,tooltip:"The oauth provider to use to log in (8.x server only).",data:{values:[{label:"OpenID",value:"openid"},{label:"Github",value:"github"},{label:"Google",value:"google"}]},conditional:{json:{"===":[{var:"data.action"},"oauth"]}}},{type:"textfield",label:"Save in state",key:"state",weight:112,tooltip:'The state you wish to save the submission under when this button is pressed. Example "draft" would save the submission in Draft Mode.',placeholder:"submitted",input:!0,conditional:{json:{"===":[{var:"data.action"},"saveState"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}];t.default=a},87533:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"display",components:i.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(36602)),i=l(n(51905)),a=l(n(5817));function l(e){return e&&e.__esModule?e:{default:e}}},37784:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309),n(83710),n(41539),n(39714),n(74916),n(15306),n(92222),n(68304),n(24812),n(30489);var o=l(n(96486)),i=n(82531),a=l(n(68093));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=m(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},h.apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function v(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(p,e);var t,n,r,l,s,c=(l=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(l);if(s){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function p(){return f(this,p),c.apply(this,arguments)}return t=p,n=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"defaultValue",get:function(){var e=this.component.name,t=h(b(p.prototype),"defaultValue",this);return e?this.component[e]||this.emptyValue:"true"===(t||this.component.defaultValue||!1).toString()}},{key:"labelClass",get:function(){var e="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(e+=" field-required"),"".concat(e)}},{key:"hasSetValue",get:function(){return this.hasValue()}},{key:"inputInfo",get:function(){var e=h(b(p.prototype),"elementInfo",this).call(this);return e.type="input",e.changeEvent="click",e.attr.type=this.component.inputType||"checkbox",e.attr.class="form-check-input",this.component.name&&(e.attr.name="data[".concat(this.component.name,"]")),e.attr.value=this.component.value?this.component.value:0,e.label=this.t(this.component.label,{_userInput:!0}),e.labelClass=this.labelClass,e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"render",value:function(){return h(b(p.prototype),"render",this).call(this,this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"<br />")}))}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,(function(){return t.updateValue(null,{modified:!0})})),this.addShortcut(this.input)),h(b(p.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){e&&this.input&&this.removeShortcut(this.input),h(b(p.prototype),"detach",this).call(this)}},{key:"emptyValue",get:function(){return"radio"===this.component.inputType&&null}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return h(b(p.prototype),"isEmpty",this).call(this,e)||!1===e}},{key:"key",get:function(){return this.component.name?this.component.name:h(b(p.prototype),"key",this)}},{key:"getValueAt",value:function(e){return this.component.name?this.refs.input[e].checked?this.component.value:"":!!this.refs.input[e].checked}},{key:"getValue",value:function(){var e=h(b(p.prototype),"getValue",this).call(this);return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}},{key:"checked",get:function(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}},{key:"setCheckedState",value:function(e){if(this.input)return this.component.name?(this.input.value=e===this.component.value?this.component.value:0,this.input.checked=e===this.component.value?1:0):"on"===e?(this.input.value=1,this.input.checked=1):"off"===e?(this.input.value=0,this.input.checked=0):e?(this.input.value=1,this.input.checked=1):(this.input.value=0,this.input.checked=0),this.input.checked?this.input.setAttribute("checked",!0):this.input.removeAttribute("checked"),e}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setCheckedState(e),h(b(p.prototype),"setValue",this).call(this,e,t)}},{key:"getValueAsString",value:function(e){var t=this.component,n=t.name,r=t.value,i=n?o.default.isEqual(e,r):e;return this.t(i?"Yes":"No")}},{key:"updateValue",value:function(e,t){this.component.name&&t.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="",this.updateOnChange(t,!0));var n=h(b(p.prototype),"updateValue",this).call(this,e,t);return n&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),n}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/form-building/form-components#check-box",weight:50,schema:p.schema()}}},{key:"serverConditionSettings",get:function(){return p.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return u(u({},h(b(p),"conditionOperatorsSettings",this)),{},{operators:["isEqual"],valueComponent:function(){return{valueType:"boolean",data:{values:[{label:"Checked",value:"true"},{label:"Not Checked",value:"false"}]},type:"select"}}})}},{key:"savedValueTypes",value:function(e){e=e||{};var t=(0,i.getComponentSavedTypes)(e);return o.default.isArray(t)?t:"radio"===e.inputType?[i.componentValueTypes.string]:[i.componentValueTypes.boolean]}}],n&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(a.default);t.default=g},36602:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},51905:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1848)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{type:"select",input:!0,weight:350,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}},{type:"select",input:!0,key:"inputType",label:"Input Type",tooltip:"This is the input type used for this checkbox.",dataSrc:"values",weight:410,data:{values:[{label:"Checkbox",value:"checkbox"},{label:"Radio",value:"radio"}]}},{type:"textfield",input:!0,key:"name",label:"Radio Key",tooltip:"The key used to trigger the radio button toggle.",weight:420,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}},{type:"textfield",input:!0,label:"Radio Value",key:"value",tooltip:"The value used with this radio button.",weight:430,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}];t.default=a},5817:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},98237:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(42780));function i(e){return e&&e.__esModule?e:{default:e}}},67559:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(79753),n(26541),n(41539),n(85827),n(89554),n(54747),n(92222),n(68304),n(24812),n(30489);var o=a(n(96486)),i=a(n(24561));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,n,r,a,s,d=(a=y,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(a);if(s){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(r=d.call(this,e,t,n)).rows=[],r}return t=y,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",showPreview:!1,weight:10,schema:y.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],(n=[{key:"schema",get:function(){var e,t=this,n=o.default.omit(f(m(y.prototype),"schema",this),["components"]);return null===(e=n.columns)||void 0===e||e.map((function(e,r){e.components.map((function(e,i){var a=o.default.clone(e);a.internal=!0;var l=t.createComponent(a);delete l.component.internal,n.columns[r].components[i]=l.schema}))})),n}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"className",get:function(){return"row ".concat(f(m(y.prototype),"className",this))}},{key:"columnKey",get:function(){return"column-".concat(this.id)}},{key:"init",value:function(){var e=this;f(m(y.prototype),"init",this).call(this),this.columns=[],o.default.each(this.component.columns,(function(t,n){e.columns[n]=[],t.size||(t.size="md"),t.currentWidth=e.options.condensedMode?e.gridSize:t.width||0,Array.isArray(t.components)||(t.components=[]),o.default.each(t.components,(function(t){var r=e.createComponent(t);r.column=n,e.columns[n].push(r)}))})),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}},{key:"labelIsHidden",value:function(){return!0}},{key:"render",value:function(){var e=this;return f(m(y.prototype),"render",this).call(this,this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map((function(t){return e.renderComponents(t)}))}))}},{key:"justifyColumn",value:function(e,t){var n=o.default.every(e,(function(e){return!e.visible})),r=this.component.columns[t],i=n&&e.length?0:r.width,a=!o.default.isEqual(i,r.currentWidth);return r.currentWidth=i,a}},{key:"justify",value:function(){var e=this;return this.columns.reduce((function(t,n,r){return e.justifyColumn(n,r)||t}),!1)}},{key:"attach",value:function(e){var t,n,r,o=this;this.loadRefs(e,(t={},r="multiple",(n=c(n=this.columnKey))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));var i=f(m(y.prototype),"attach",this).call(this,e);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach((function(e,t){return o.attachComponents(e,o.columns[t],o.component.columns[t].components)})),i}},{key:"gridSize",get:function(){return 12}},{key:"groupByRow",value:function(){var e=this,t=function(e){return e.component.width},n=o.default.reduce(this.components,(function(n,r){var i=[].concat(l(n.stack),[r]);return o.default.sumBy(i,t)<=e.gridSize?(n.stack=i,n):(n.rows=[].concat(l(n.rows),[n.stack]),n.stack=[r],n)}),{stack:[],rows:[]});return o.default.concat(n.rows,[n.stack])}},{key:"checkData",value:function(e,t,n,r){var o=f(m(y.prototype),"checkData",this).call(this,e,t,n,r);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),o}},{key:"detach",value:function(e){f(m(y.prototype),"detach",this).call(this,e)}},{key:"destroy",value:function(){f(m(y.prototype),"destroy",this).call(this),this.columns=[]}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.default);t.default=y},42780:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{weight:150,type:"datagrid",input:!0,key:"columns",label:"Column Properties",addAnother:"Add Column",tooltip:"The size and width settings for each column. One row is equal to 12. (e.g., a row with two columns spanning the entire page should be 6 and 6)",reorder:!0,components:[{type:"hidden",key:"components",defaultValue:[]},{type:"select",key:"size",defaultValue:"md",label:"Size",data:{values:[{label:"xs",value:"xs"},{label:"sm",value:"sm"},{label:"md",value:"md"},{label:"lg",value:"lg"},{label:"xl",value:"xl"}]}},{type:"number",key:"width",defaultValue:6,label:"Width"}]},{weight:160,type:"checkbox",label:"Auto adjust columns",tooltip:"Will automatically adjust columns based on if nested components are hidden.",key:"autoAdjust",input:!0},{key:"hideLabel",ignore:!0}]},45187:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",components:i.default}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(20841)),i=a(n(53196));function a(e){return e&&e.__esModule?e:{default:e}}},20787:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(85827),n(41539),n(89554),n(54747),n(68304),n(24812),n(30489);var o=u(n(96486)),i=n(82531),a=u(n(64430)),l=u(n(68093)),s=u(n(67329));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(b,e);var t,n,r,u,p,v=(u=b,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(u);if(p){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function b(){var e;c(this,b);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=v.call.apply(v,[this].concat(n))).type="container",e}return t=b,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.schema.apply(s.default,[{label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/form-building/data-components#container",showPreview:!1,weight:10,schema:b.schema()}}},{key:"savedValueTypes",value:function(e){return(0,i.getComponentSavedTypes)(e)||[i.componentValueTypes.object]}}],(n=[{key:"addComponents",value:function(e,t){return d(y(b.prototype),"addComponents",this).call(this,this.dataValue,t)}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"templateName",get:function(){return"container"}},{key:"componentContext",value:function(){return this.dataValue}},{key:"checkData",value:function(e,t,n,r){var i=this;return e=e||this.rootValue,t=t||{},n=n||this.data,(r=r&&o.default.isArray(r)?r:this.getComponents()).reduce((function(n,r){return r.checkData(e,t,i.dataValue)&&n}),a.default.prototype.checkData.call(this,e,t,n))}},{key:"checkChildComponentsValidity",value:function(e,t,n,r,o){return d(y(b.prototype),"checkChildComponentsValidity",this).call(this,e,t,this.dataValue,r,o)}},{key:"focus",value:function(){var e=(0,i.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}},{key:"checkConditions",value:function(e,t,n){var r=this,o=l.default.prototype.checkConditions.call(this,e,t,n);return this.getComponents().forEach((function(n){return n.checkConditions(e,t,r.dataValue)})),o}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),b}(s.default);t.default=v},53196:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},20841:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},67400:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:i.default}]].concat(t));return a.components=[{weight:0,type:"textarea",editor:"ckeditor",label:"Content",hideLabel:!0,input:!0,key:"html",as:"html",rows:3,tooltip:"The HTML template for the result data items."}].concat(a.components),a},n(92222);var r=a(n(39086)),o=a(n(79748)),i=a(n(52582));function a(e){return e&&e.__esModule?e:{default:e}}},37419:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o=l(n(64430)),i=l(n(96486)),a=l(n(91459));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(y,e);var t,n,r,l,f,m=(l=y,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(l);if(f){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function y(){return s(this,y),m.apply(this,arguments)}return t=y,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{label:"Content",type:"content",key:"content",input:!1,html:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/form-building/layout-components#content",weight:5,schema:y.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],(n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.html||"Content";var e=i.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}},{key:"render",value:function(){return c(h(y.prototype),"render",this).call(this,this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}},{key:"dataReady",get:function(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||a.default.resolve()}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{html:"single"}),this.dataReady.then((function(){t.refs.html&&t.setContent(t.refs.html,t.content)})),this.component.refreshOnChange&&this.on("change",(function(){t.refs.html&&t.setContent(t.refs.html,t.content)}),!0),c(h(y.prototype),"attach",this).call(this,e)}},{key:"emptyValue",get:function(){return""}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.default);t.default=m},79748:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{weight:700,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},52582:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"html",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(e){return"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}}]}]}]}]},87018:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]}]].concat(t))},n(92222);var r=a(n(53983)),o=a(n(68985)),i=a(n(58791));function a(e){return e&&e.__esModule?e:{default:e}}},29147:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(32564),n(26699),n(32023),n(74916),n(15306),n(23123),n(92222),n(69600),n(79753),n(21249),n(44048),n(9653),n(68304),n(24812),n(30489);var o=n(43281),i=n(47853),a=u(n(96486)),l=n(82531),s=u(n(40996));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=h(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},p.apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(g,e);var t,n,r,u,h,b=(u=g,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(u);if(h){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function g(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),b.call(this,e,t,n)}return t=g,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.schema.apply(s.default,[{type:"currency",label:"Currency",key:"currency"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/form-building/advanced-components#currency",weight:70,schema:g.schema()}}}],(n=[{key:"createNumberMask",value:function(){var e=a.default.get(this.component,"decimalLimit",2),t=(0,l.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:e,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||t.prefix,this.currencySuffix=this.options.suffix||t.suffix,(0,o.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:a.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:a.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:a.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return a.default.get(this.component,"allowDecimal",!0)}},{key:"setInputMask",value:function(e){var t=(0,l.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}),n="".concat(t.prefix,"[0-9");n+=this.decimalSeparator||"",n+=this.delimiter||"",n+="]*",e.setAttribute("pattern",n),e.mask=(0,i.maskInput)({inputElement:e,mask:this.numberMask||"",pipe:function(t){return"$0._"===t&&setTimeout((function(){var t=e.value.length-1;e.setSelectionRange(t,t)})),t},shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"defaultSchema",get:function(){return g.schema()}},{key:"parseNumber",value:function(e){return p(v(g.prototype),"parseNumber",this).call(this,this.stripPrefixSuffix(e))}},{key:"parseValue",value:function(e){return p(v(g.prototype),"parseValue",this).call(this,this.stripPrefixSuffix(e))}},{key:"addZerosAndFormatValue",value:function(e){if(e||0===e){var t,n=a.default.get(this.component,"decimalLimit",2),r="",o=[],i=!!this.currencyPrefix&&e.includes(this.currencyPrefix),l=!!this.currencySuffix&&e.includes(this.currencySuffix),s=e.includes("-")||!1;if((e=this.stripPrefixSuffix(s?e.replace("-",""):e)).includes(this.decimalSeparator)){var u=(h=e.split(this.decimalSeparator),m=2,function(e){if(Array.isArray(e))return e}(h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(h,m)||c(h,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());t=u[0],o=function(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((r=u[1]).split(""))}else t=e;if(r.length<n)for(;o.length<n;)o.push("0");var d="".concat(s?"-":"").concat(i?this.currencyPrefix:"").concat(t).concat(this.decimalSeparator).concat(o.join("")).concat(l?this.currencySuffix:"");return p(v(g.prototype),"formatValue",this).call(this,d)}var h,m}},{key:"getValueAsString",value:function(e,t){var n=this,r=p(v(g.prototype),"getValueAsString",this).call(this,e,t);return e||"0"==e?Array.isArray(e)?e.map((function(e){return n.addZerosAndFormatValue(p(v(g.prototype),"getValueAsString",n).call(n,e,t))})).join(", "):this.addZerosAndFormatValue(r):r}},{key:"formatValue",value:function(e){return e||"0"===e?this.addZerosAndFormatValue(e):p(v(g.prototype),"formatValue",this).call(this,e)}},{key:"stripPrefixSuffix",value:function(e){if("string"==typeof e)try{var t=!!this.currencyPrefix&&e.includes(this.currencyPrefix),n=!!this.currencySuffix&&e.includes(this.currencySuffix),r=e.includes(this.delimiter),o=e.includes(this.decimalSeparator);this.currencyPrefix&&(e=e.replace(this.currencyPrefix,"")),this.currencySuffix&&(e=e.replace(this.currencySuffix,"")),!t&&!n||r||o||!Number.isNaN(+e)&&e||(e="0")}catch(e){}return e}},{key:"addFocusBlurEvents",value:function(e){var t=this;p(v(g.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"focus",(function(){e.defaultValue===e.value&&e.setSelectionRange(0,e.defaultValue.length)})),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(t.addZerosAndFormatValue(t.parseValue(e.value)))}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(s.default);t.default=b},58791:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"select",input:!0,weight:50,key:"currency",label:"Currency",tooltip:"The currency to use in currency formatting. Possible values are (ISO-4217) currency codes.",defaultValue:"USD",dataSrc:"values",data:{values:[{label:"US Dollar (USD)",value:"USD"},{label:"Euro (EUR)",value:"EUR"},{label:"Pound Sterling (GBP)",value:"GBP"},{label:"Australian Dollar (AUD)",value:"AUD"},{label:"Afghani (AFN)",value:"AFN"},{label:"Lek (ALL)",value:"ALL"},{label:"Algerian Dinar (DZD)",value:"DZD"},{label:"Kwanza (AOA)",value:"AOA"},{label:"East Caribbean Dollar (XCD)",value:"XCD"},{label:"Argentine Peso (ARS)",value:"ARS"},{label:"Armenian Dram (AMD)",value:"AMD"},{label:"Aruban Florin (AWG)",value:"AWG"},{label:"Azerbaijan Manat (AZN)",value:"AZN"},{label:"Bahamian Dollar (BSD)",value:"BSD"},{label:"Bahraini Dinar (BHD)",value:"BHD"},{label:"Taka (BDT)",value:"BDT"},{label:"Barbados Dollar (BBD)",value:"BBD"},{label:"Belarusian Ruble (BYN)",value:"BYN"},{label:"Belize Dollar (BZD)",value:"BZD"},{label:"CFA Franc BCEAO (XOF)",value:"XOF"},{label:"Bermudian Dollar (BMD)",value:"BMD"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Ngultrum (BTN)",value:"BTN"},{label:"Boliviano (BOB)",value:"BOB"},{label:"Mvdol (BOV)",value:"BOV"},{label:"Convertible Mark (BAM)",value:"BAM"},{label:"Pula (BWP)",value:"BWP"},{label:"Norwegian Krone (NOK)",value:"NOK"},{label:"Brazilian Real (BRL)",value:"BRL"},{label:"Brunei Dollar (BND)",value:"BND"},{label:"Bulgarian Lev (BGN)",value:"BGN"},{label:"Burundi Franc (BIF)",value:"BIF"},{label:"Cabo Verde Escudo (CVE)",value:"CVE"},{label:"Riel (KHR)",value:"KHR"},{label:"CFA Franc BEAC (XAF)",value:"XAF"},{label:"Canadian Dollar (CAD)",value:"CAD"},{label:"Cayman Islands Dollar (KYD)",value:"KYD"},{label:"Chilean Peso (CLP)",value:"CLP"},{label:"Unidad de Fomento (CLF)",value:"CLF"},{label:"Yuan Renminbi (CNY)",value:"CNY"},{label:"Colombian Peso (COP)",value:"COP"},{label:"Unidad de Valor Real (COU)",value:"COU"},{label:"Comorian Franc (KMF)",value:"KMF"},{label:"Congolese Franc (CDF)",value:"CDF"},{label:"New Zealand Dollar (NZD)",value:"NZD"},{label:"Costa Rican Colon (CRC)",value:"CRC"},{label:"Kuna (HRK)",value:"HRK"},{label:"Cuban Peso (CUP)",value:"CUP"},{label:"Peso Convertible (CUC)",value:"CUC"},{label:"Netherlands Antillean Guilder (ANG)",value:"ANG"},{label:"Czech Koruna (CZK)",value:"CZK"},{label:"Danish Krone (DKK)",value:"DKK"},{label:"Djibouti Franc (DJF)",value:"DJF"},{label:"Dominican Peso (DOP)",value:"DOP"},{label:"Egyptian Pound (EGP)",value:"EGP"},{label:"El Salvador Colon (SVC)",value:"SVC"},{label:"Nakfa (ERN)",value:"ERN"},{label:"Ethiopian Birr (ETB)",value:"ETB"},{label:"Falkland Islands Pound (FKP)",value:"FKP"},{label:"Fiji Dollar (FJD)",value:"FJD"},{label:"CFP Franc (XPF)",value:"XPF"},{label:"Dalasi (GMD)",value:"GMD"},{label:"Lari (GEL)",value:"GEL"},{label:"Ghana Cedi (GHS)",value:"GHS"},{label:"Gibraltar Pound (GIP)",value:"GIP"},{label:"Quetzal (GTQ)",value:"GTQ"},{label:"Guinean Franc (GNF)",value:"GNF"},{label:"Guyana Dollar (GYD)",value:"GYD"},{label:"Gourde (HTG)",value:"HTG"},{label:"Lempira (HNL)",value:"HNL"},{label:"Hong Kong Dollar (HKD)",value:"HKD"},{label:"Forint (HUF)",value:"HUF"},{label:"Iceland Krona (ISK)",value:"ISK"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Rupiah (IDR)",value:"IDR"},{label:"SDR (Special Drawing Right) (XDR)",value:"XDR"},{label:"Iranian Rial (IRR)",value:"IRR"},{label:"Iraqi Dinar (IQD)",value:"IQD"},{label:"New Israeli Sheqel (ILS)",value:"ILS"},{label:"Jamaican Dollar (JMD)",value:"JMD"},{label:"Yen (JPY)",value:"JPY"},{label:"Jordanian Dinar (JOD)",value:"JOD"},{label:"Tenge (KZT)",value:"KZT"},{label:"Kenyan Shilling (KES)",value:"KES"},{label:"North Korean Won (KPW)",value:"KPW"},{label:"Won (KRW)",value:"KRW"},{label:"Kuwaiti Dinar (KWD)",value:"KWD"},{label:"Som (KGS)",value:"KGS"},{label:"Lao Kip (LAK)",value:"LAK"},{label:"Lebanese Pound (LBP)",value:"LBP"},{label:"Loti (LSL)",value:"LSL"},{label:"Rand (ZAR)",value:"ZAR"},{label:"Liberian Dollar (LRD)",value:"LRD"},{label:"Libyan Dinar (LYD)",value:"LYD"},{label:"Swiss Franc (CHF)",value:"CHF"},{label:"Pataca (MOP)",value:"MOP"},{label:"Denar (MKD)",value:"MKD"},{label:"Malagasy Ariary (MGA)",value:"MGA"},{label:"Malawi Kwacha (MWK)",value:"MWK"},{label:"Malaysian Ringgit (MYR)",value:"MYR"},{label:"Rufiyaa (MVR)",value:"MVR"},{label:"Ouguiya (MRU)",value:"MRU"},{label:"Mauritius Rupee (MUR)",value:"MUR"},{label:"ADB Unit of Account (XUA)",value:"XUA"},{label:"Mexican Peso (MXN)",value:"MXN"},{label:"Mexican Unidad de Inversion (UDI) (MXV)",value:"MXV"},{label:"Moldovan Leu (MDL)",value:"MDL"},{label:"Tugrik (MNT)",value:"MNT"},{label:"Moroccan Dirham (MAD)",value:"MAD"},{label:"Mozambique Metical (MZN)",value:"MZN"},{label:"Kyat (MMK)",value:"MMK"},{label:"Namibia Dollar (NAD)",value:"NAD"},{label:"Nepalese Rupee (NPR)",value:"NPR"},{label:"Cordoba Oro (NIO)",value:"NIO"},{label:"Naira (NGN)",value:"NGN"},{label:"Rial Omani (OMR)",value:"OMR"},{label:"Pakistan Rupee (PKR)",value:"PKR"},{label:"Balboa (PAB)",value:"PAB"},{label:"Kina (PGK)",value:"PGK"},{label:"Guarani (PYG)",value:"PYG"},{label:"Sol (PEN)",value:"PEN"},{label:"Philippine Peso (PHP)",value:"PHP"},{label:"Zloty (PLN)",value:"PLN"},{label:"Qatari Rial (QAR)",value:"QAR"},{label:"Romanian Leu (RON)",value:"RON"},{label:"Russian Ruble (RUB)",value:"RUB"},{label:"Rwanda Franc (RWF)",value:"RWF"},{label:"Saint Helena Pound (SHP)",value:"SHP"},{label:"Tala (WST)",value:"WST"},{label:"Dobra (STN)",value:"STN"},{label:"Saudi Riyal (SAR)",value:"SAR"},{label:"Serbian Dinar (RSD)",value:"RSD"},{label:"Seychelles Rupee (SCR)",value:"SCR"},{label:"Leone (SLL)",value:"SLL"},{label:"Singapore Dollar (SGD)",value:"SGD"},{label:"Sucre (XSU)",value:"XSU"},{label:"Solomon Islands Dollar (SBD)",value:"SBD"},{label:"Somali Shilling (SOS)",value:"SOS"},{label:"South Sudanese Pound (SSP)",value:"SSP"},{label:"Sri Lanka Rupee (LKR)",value:"LKR"},{label:"Sudanese Pound (SDG)",value:"SDG"},{label:"Surinam Dollar (SRD)",value:"SRD"},{label:"Lilangeni (SZL)",value:"SZL"},{label:"Swedish Krona (SEK)",value:"SEK"},{label:"WIR Euro (CHE)",value:"CHE"},{label:"WIR Franc (CHW)",value:"CHW"},{label:"Syrian Pound (SYP)",value:"SYP"},{label:"New Taiwan Dollar (TWD)",value:"TWD"},{label:"Somoni (TJS)",value:"TJS"},{label:"Tanzanian Shilling (TZS)",value:"TZS"},{label:"Baht (THB)",value:"THB"},{label:"Pa’anga (TOP)",value:"TOP"},{label:"Trinidad and Tobago Dollar (TTD)",value:"TTD"},{label:"Tunisian Dinar (TND)",value:"TND"},{label:"Turkish Lira (TRY)",value:"TRY"},{label:"Turkmenistan New Manat (TMT)",value:"TMT"},{label:"Uganda Shilling (UGX)",value:"UGX"},{label:"Hryvnia (UAH)",value:"UAH"},{label:"UAE Dirham (AED)",value:"AED"},{label:"US Dollar (Next day) (USN)",value:"USN"},{label:"Peso Uruguayo (UYU)",value:"UYU"},{label:"Uruguay Peso en Unidades Indexadas (UYI)",value:"UYI"},{label:"Unidad Previsional (UYW)",value:"UYW"},{label:"Uzbekistan Sum (UZS)",value:"UZS"},{label:"Vatu (VUV)",value:"VUV"},{label:"Bolívar Soberano (VES)",value:"VES"},{label:"Dong (VND)",value:"VND"},{label:"Yemeni Rial (YER)",value:"YER"},{label:"Zambian Kwacha (ZMW)",value:"ZMW"},{label:"Zimbabwe Dollar (ZWL),",value:"ZWL"}]}}]},68985:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0},{type:"textfield",input:!0,weight:310,key:"prefix",label:"prefix",tooltip:"Specify the prefix symbol after the component (e.g.: USD, EUR)"},{type:"textfield",input:!0,weight:320,key:"suffix",label:"suffix",tooltip:"Specify the suffix symbol after the component (e.g.: USD, EUR)."}]},11988:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(27748)),i=l(n(83893)),a=l(n(57369));function l(e){return e&&e.__esModule?e:{default:e}}},56742:function(e,t,n){"use strict";n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(32165),n(66992),n(78783),n(33948),n(91038),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(79753),n(21249),n(85827),n(41539),n(47042),n(26699),n(83710),n(39714),n(57327),n(89554),n(54747),n(24812),n(26833),n(40561),n(69826),n(47941),n(68309),n(74916),n(15306),n(91058),n(34553),n(69720),n(68304),n(30489);var r,o=l(n(96486)),i=l(n(99495)),a=n(82531);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){return d(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||m(e,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){if(Array.isArray(e))return e}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||y(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function w(e,t,n,r){return w="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=P(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else O(r,t,n);return!0},w(e,t,n,r)}function k(e,t,n,r,o){if(!w(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function O(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===p(t)?t:String(t)}function S(){return S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=P(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},S.apply(this,arguments)}function P(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function x(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}"undefined"!=typeof window&&(r=n(91130));var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(_,e);var t,n,l,s,v,w=(s=_,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=E(s);if(v){var n=E(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return x(this,e)});function _(){var e;b(this,_);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=w.call.apply(w,[this].concat(n))).type="datagrid",e.tabIndex=0,e}return t=_,n=[{key:"init",value:function(){this.components=this.components||[],this.rows=[],this.columns=h(this.component.components),!this.initRows&&o.default.isEqual(this.dataValue,this.emptyValue)||this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}},{key:"dataValue",get:function(){var e=S(E(_.prototype),"dataValue",this);return e&&Array.isArray(e)?e:this.emptyValue},set:function(e){k(E(_.prototype),"dataValue",e,this,!0)}},{key:"defaultSchema",get:function(){return _.schema()}},{key:"initEmpty",get:function(){return this.component.initEmpty||this.component.noFirstRow}},{key:"initRows",get:function(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}},{key:"emptyValue",get:function(){return this.initEmpty?[]:[{}]}},{key:"addAnotherPosition",get:function(){return o.default.get(this.component,"addAnotherPosition","bottom")}},{key:"minLength",get:function(){return this.hasRowGroups()?o.default.sum(this.getGroupSizes()):o.default.get(this.component,"validate.minLength",0)}},{key:"defaultValue",get:function(){var e=this.builderMode,t=this.initEmpty;if(e||t&&!this.dataValue.length)return t&&!e?[]:[{}];for(var n,r=S(E(_.prototype),"defaultValue",this),o=(n=Array.isArray(r)?r:r&&"object"===p(r)?[r]:this.emptyValue).length;o<this.minLength;o++)n.push({});return n}},{key:"disabled",get:function(){return S(E(_.prototype),"disabled",this)},set:function(e){k(E(_.prototype),"disabled",e,this,!0),o.default.each(this.refs["".concat(this.datagridKey,"-addRow")],(function(t){t.disabled=e})),o.default.each(this.refs["".concat(this.datagridKey,"-removeRow")],(function(t){t.disabled=e}))}},{key:"datagridKey",get:function(){return"datagrid-".concat(this.key)}},{key:"allowReorder",get:function(){return!this.options.readOnly&&o.default.get(this.component,"reorder",!1)}},{key:"iteratableRows",get:function(){var e=this;return this.rows.map((function(t,n){return{components:t,data:e.dataValue[n]}}))}},{key:"isEmpty",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,n=S(E(_.prototype),"isEmpty",this).call(this,t);return null!==(e=this.components)&&void 0!==e&&e.length?this.components.reduce((function(e,t){return e&&t.isEmpty()}),!0):n}},{key:"getRowChunks",value:function(e,t){var n=e.reduce((function(e,t){var n=c(e,2),r=n[0],o=n[1],i=r+t;return[i,[].concat(h(o),[[r,i]])]}),[0,[]]);return c(n,2)[1].map((function(e){return o.default.slice.apply(o.default,[t].concat(h(e)))}))}},{key:"getGroups",value:function(){var e=o.default.get(this.component,"rowGroups",[]),t=o.default.map(e,"numberOfRows").slice(0,-1).reduce((function(e,t){var n=e[e.length-1];return e.concat(n+t)}),[0]);return e.reduce((function(e,n,r){return u(u({},e),{},O({},t[r],n))}),{})}},{key:"getGroupSizes",value:function(){return o.default.map(o.default.get(this.component,"rowGroups",[]),"numberOfRows")}},{key:"hasRowGroups",value:function(){return o.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}},{key:"totalRowsNumber",value:function(e){return o.default.sum(o.default.map(e,"numberOfRows"))}},{key:"setStaticValue",value:function(e){this.dataValue=o.default.range(e).map((function(){return{}}))}},{key:"hasExtraColumn",value:function(){return this.hasRemoveButtons()||this.canAddColumn}},{key:"hasRemoveButtons",value:function(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>o.default.get(this.component,"validate.minLength",0)}},{key:"hasTopSubmit",value:function(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}},{key:"hasBottomSubmit",value:function(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}},{key:"canAddColumn",get:function(){return this.builderMode&&!this.options.design}},{key:"render",value:function(){var e=this.getColumns(),t=0,n=this.hasRemoveButtons();this.component.reorder&&t++,n&&t++,this.canAddColumn&&t++;var r=Math.floor(12/(e.length+t));return S(E(_.prototype),"render",this).call(this,this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:o.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:n,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:e.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:r.toString()}))}},{key:"getRows",value:function(){return this.rows.map((function(e){var t={};return o.default.each(e,(function(e,n){t[n]=e.render()})),t}))}},{key:"getColumns",value:function(){var e=this;return this.columns.filter((function(t){return!e.visibleColumns.hasOwnProperty(t.key)||e.visibleColumns[t.key]}))}},{key:"hasHeader",value:function(){return this.component.components.reduce((function(e,t){return e||(t.label||t.title)&&!t.hideLabel}),!1)}},{key:"loadRefs",value:function(e,t){if(S(E(_.prototype),"loadRefs",this).call(this,e,t),"single"===t.messageContainer){var n=o.default.last(e.querySelectorAll("[ref=messageContainer]"));this.refs.messageContainer=n||this.refs.messageContainer}}},{key:"attach",value:function(e){var t,n=this;this.loadRefs(e,(O(t={},"".concat(this.datagridKey,"-row"),"multiple"),O(t,"".concat(this.datagridKey,"-tbody"),"single"),O(t,"".concat(this.datagridKey,"-addRow"),"multiple"),O(t,"".concat(this.datagridKey,"-removeRow"),"multiple"),O(t,"".concat(this.datagridKey,"-group-header"),"multiple"),O(t,this.datagridKey,"multiple"),O(t,"messageContainer","single"),t)),this.allowReorder&&(this.refs["".concat(this.datagridKey,"-row")].forEach((function(e,t){e.dragInfo={index:t}})),r&&(this.dragula=r([this.refs["".concat(this.datagridKey,"-tbody")]],{moves:function(e,t,n){var r=n.getAttribute("data-key");if(t.getAttribute("data-key")===r)return n.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",(function(e,t){e&&e.children&&t&&t.children&&o.default.each(t.children,(function(t,n){var r=getComputedStyle(t,null);if(""!==r.cssText)e.children[n].style.cssText=r.cssText;else{var o=Object.values(r).reduce((function(e,t){return"".concat(e).concat(t,":").concat(r.getPropertyValue(t),";")}),"");e.children[n].style.cssText=o}}))})))),this.refs["".concat(this.datagridKey,"-addRow")].forEach((function(e){n.addEventListener(e,"click",n.addRow.bind(n))})),this.refs["".concat(this.datagridKey,"-removeRow")].forEach((function(e,t){n.addEventListener(e,"click",n.removeRow.bind(n,t))})),this.hasRowGroups()&&(this.refs.chunks=this.getRowChunks(this.getGroupSizes(),this.refs["".concat(this.datagridKey,"-row")]),this.refs["".concat(this.datagridKey,"-group-header")].forEach((function(e,t){n.addEventListener(e,"click",(function(){return n.toggleGroup(e,t)}))})));var i=this.getColumns(),a=i.length;return this.rows.forEach((function(e,t){var r=0;i.forEach((function(e){n.attachComponents(n.refs[n.datagridKey][t*a+r],[n.rows[t][e.key]],n.getComponentsContainer()),r++}))})),S(E(_.prototype),"attach",this).call(this,e)}},{key:"getComponentsContainer",value:function(){return this.component.components}},{key:"onReorder",value:function(e,t,n,r){if(!e.dragInfo||r&&!r.dragInfo)console.warn("There is no Drag Info available for either dragged or sibling element");else{var o=e.dragInfo.index,i=r?r.dragInfo.index:this.dataValue.length,l=i>o,s=(0,a.fastCloneDeep)(this.dataValue),u=s[o];s.splice(i,0,u),s.splice(l?o:o+1,1),this.setValue(s,{isReordered:!0}),this.rebuild()}}},{key:"focusOnNewRowElement",value:function(e){Object.keys(e).find((function(t){var n=e[t].element;if(n){var r=(0,a.getFocusableElements)(n);if(r&&r[0])return r[0].focus(),!0}return!1}))}},{key:"addRow",value:function(){var e,t=this,n=this.rows.length;this.dataValue.length===n&&this.dataValue.push({});var r=this.dataValue,o=this.defaultValue;this.initEmpty&&o[n]?(e=o[n],r[n]=e):e=r[n],this.rows[n]=this.createRowComponents(e,n),this.emit("dataGridAddRow",{component:this.component,row:e}),this.checkConditions(),this.triggerChange(),this.redraw().then((function(){t.focusOnNewRowElement(t.rows[n])}))}},{key:"updateComponentsRowIndex",value:function(e,t){var n=this;e.forEach((function(e,r){var o;if(null!==(o=e.options)&&void 0!==o&&o.name){var i="[".concat(n.key,"][").concat(t,"]");e.options.name=e.options.name.replace("[".concat(n.key,"][").concat(e.rowIndex,"]"),i)}e.rowIndex=t,e.row="".concat(t,"-").concat(r),e.path=n.calculateComponentPath(e)}))}},{key:"updateRowsComponents",value:function(e){var t=this;this.rows.slice(e).forEach((function(n,r){t.updateComponentsRowIndex(Object.values(n),e+r)}))}},{key:"removeRow",value:function(e){var t=0===e&&1===this.rows.length,n={isReordered:!t,resetValue:t};this.splice(e,n),this.emit("dataGridDeleteRow",{index:e});var r=c(this.rows.splice(e,1),1)[0];this.removeRowComponents(r),this.updateRowsComponents(e),this.setValue(this.dataValue,n),this.redraw()}},{key:"removeRowComponents",value:function(e){var t=this;o.default.each(e,(function(e){return t.removeComponent(e)}))}},{key:"getRowValues",value:function(){return this.dataValue}},{key:"setRowComponentsData",value:function(e,t){o.default.each(this.rows[e],(function(e){e.data=t}))}},{key:"createRows",value:function(e,t){var n=this,r=!1,o=this.getRowValues();o.forEach((function(e,o){!t&&n.rows[o]?n.setRowComponentsData(o,e):(n.rows[o]&&n.removeRowComponents(n.rows[o]),n.rows[o]=n.createRowComponents(e,o),r=!0)}));var i=this.rows.splice(o.length),a=!!i.length;return a&&i.forEach((function(e){return n.removeRowComponents(e)})),e||!r&&!a||this.redraw(),r}},{key:"createRowComponents",value:function(e,t){var n=this,r={};return this.tabIndex=0,this.component.components.map((function(i,a){var l,s=o.default.clone(n.options);s.name+="[".concat(t,"]"),s.row="".concat(t,"-").concat(a),n.builderMode?(i.id=i.id+t,l=i):l=u(u({},i),{},{id:i.id+t});var c=n.createComponent(l,s,e);c.parentDisabled=!!n.disabled,c.rowIndex=t,c.inDataGrid=!0,l.tabindex&&parseInt(l.tabindex)>n.tabIndex&&(n.tabIndex=parseInt(l.tabindex)),r[i.key]=c})),r}},{key:"checkValidity",value:function(e,t,n,r){if(e=e||this.rootValue,n=n||this.data,!this.checkCondition(n,e))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(e,t,n,{silentCheck:r}))return!1;var o=this.checkRows("checkValidity",e,t,!0,r);return this.checkModal(o,t),o}},{key:"checkColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e||this.rootValue;var r=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};var i={},a=!1,l=this.dataValue;this.rows.forEach((function(r,s){o.default.each(r,(function(r,u){if(r&&"function"==typeof r.checkConditions){var c=void 0===i[u];if(i[u]=!!i[u]||r.checkConditions(e,n,l[s])&&"hidden"!==r.type,r.component.logic&&c){var f=o.default.findIndex(t.columns,["key",u]);o.default.isEqual(t.columns[f],r.component)||(a=!0,t.columns[f]=r.component)}}}))}));var s=!o.default.isEqual(i,this.visibleColumns)||a;return o.default.each(i,(function(e){r|=e})),this.visibleColumns=i,{rebuild:s,show:r}}},{key:"checkComponentConditions",value:function(e,t,n){var r=this.visible;if(!S(E(_.prototype),"checkComponentConditions",this).call(this,e,t,n))return!1;var o=this.checkColumns(e,t),i=o.rebuild,a=o.show;return!i&&r||this.createRows(!1,i),a}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(e)||("object"===p(e)?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});var r=n.fromSubmission&&!o.default.isEqual(e,this.emptyValue),i=this.hasChanged(e,this.dataValue);return this.dataValue=e,(this.initRows||r||Array.isArray(this.dataValue)&&this.dataValue.length!==this.rows.length)&&!this.createRows()&&i&&this.redraw(),this.componentModal&&r&&this.componentModal.setValue(e),this.rows.forEach((function(r,i){e.length<=i||o.default.each(r,(function(r){r.rowIndex=i,t.setNestedValue(r,e[i],n)}))})),this.updateOnChange(n,i),i}},{key:"restoreComponentsContext",value:function(){var e=this;this.rows.forEach((function(t,n){return o.default.forIn(t,(function(t){return t.data=e.dataValue[n]}))}))}},{key:"getComponent",value:function(e,t){var n,r=d(n=e=Array.isArray(e)?e:[e])||y(n)||m(n)||f(),i=r[0],a=r.slice(1),l=[];if(o.default.isNumber(i)&&a.length){var s=a.pop();return(l=this.rows[i][s])||Object.entries(this.rows[i]).forEach((function(e){var n=c(e,2)[1];if("getComponent"in n){var r=n.getComponent([s],t);r&&(l=r)}})),l&&o.default.isFunction(t)&&t(l,this.getComponents()),a.length&&"getComponent"in l?l.getComponent(a,t):l}return o.default.isString(i)?(this.everyComponent((function(e,n){if(e.component.key===i){var r=e;a.length>0&&"getComponent"in e?r=e.getComponent(a,t):t&&t(e,n),l=l.concat(r)}})),l.length>0?l:null):l}},{key:"toggleGroup",value:function(e,t){e.classList.toggle("collapsed"),o.default.each(this.refs.chunks[t],(function(e){e.classList.toggle("hidden")}))}}],l=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/form-building/data-components#data-grid",showPreview:!1,weight:30,schema:_.schema()}}}],n&&g(t.prototype,n),l&&g(t,l),Object.defineProperty(t,"prototype",{writable:!1}),_}(i.default);t.default=C},27748:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},83893:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0,clearOnHide:!1,customConditional:function(e){return!e.data.enableRowGroups},calculateValue:function(e){return!!e.data.enableRowGroups||e.data.disableAddingRemovingRows}},{weight:406,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input:!0},{key:"enableRowGroups",type:"checkbox",label:"Enable Row Groups",weight:440,input:!0},{label:"Groups",disableAddingRemovingRows:!1,defaultOpen:!1,addAnother:"",addAnotherPosition:"bottom",mask:!1,tableView:!0,alwaysEnabled:!1,type:"datagrid",input:!0,key:"rowGroups",reorder:!0,components:[{label:"Label",allowMultipleMasks:!1,showWordCount:!1,showCharCount:!1,tableView:!0,alwaysEnabled:!1,type:"textfield",input:!0,key:"label",widget:{type:""},row:"0-0"},{label:"Number of Rows",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"numberOfRows",row:"0-1"}],weight:441,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Hide Group on Header Click",type:"checkbox",input:!0,key:"groupToggle",weight:442,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Initialize Empty",type:"checkbox",input:!0,key:"initEmpty",tooltip:"The DataGrid will have no visible rows when initialized.",weight:450}]},57369:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},21006:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(89316)),i=a(n(45392));function a(e){return e&&e.__esModule?e:{default:e}}},93560:function(e,t,n){"use strict";n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(21249),n(47941),n(69826),n(41539),n(19601),n(85827),n(92222),n(89554),n(54747),n(68309),n(40561),n(68304),n(24812),n(30489);var r=s(n(64430)),o=s(n(56742)),i=s(n(96486)),a=s(n(26729)),l=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function f(e,t,n,r){return f="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=v(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else d(r,t,n);return!0},f(e,t,n,r)}function d(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===u(t)?t:String(t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(g,e);var t,n,o,s,p,v=(s=g,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(s);if(p){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function g(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(r=v.call(this,e,t,n)).type="datamap",r}return t=g,n=[{key:"schema",get:function(){var e=y(b(g.prototype),"schema",this);return this.components&&this.components.length>0&&(e.valueComponent=this.components[this.components.length-1].schema),i.default.omit(e,"components")}},{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=d({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"defaultSchema",get:function(){return g.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),i.default.get(this.data,this.key))},set:function(e){!function(e,t,n,r,o){if(!f(e,t,n,r||e)&&o)throw new Error("failed to set property")}(b(g.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=y(b(g.prototype),"defaultValue",this);return Array.isArray(e)?e[0]:this.emptyValue}},{key:"keySchema",get:function(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}},{key:"valueKey",get:function(){return this.component.valueComponent.key}},{key:"getRowValues",value:function(){var e=this.dataValue;return this.builderMode?[e]:i.default.isEmpty(e)?[]:Object.keys(e).map((function(){return e}))}},{key:"getComponentsContainer",value:function(){return this.builderMode?this.getComponents().map((function(e){return e.component})):y(b(g.prototype),"getComponentsContainer",this).call(this)}},{key:"iteratableRows",get:function(){return this.rows.map((function(e){return Object.keys(e).map((function(t){return{components:e[t],data:e[t].dataValue}}))}))}},{key:"componentContext",value:function(e){return this.iteratableRows[e.row].find((function(t){return t.components.key===e.key})).data}},{key:"hasHeader",value:function(){return!0}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode}},{key:"getColumns",value:function(){var e=Object.assign({},this.keySchema),t=Object.assign({},this.component.valueComponent);return e.hideLabel=!1,t.hideLabel=!1,this.component.keyBeforeValue?[e,t]:[t,e]}},{key:"getRowKey",value:function(e){var t=Object.keys(this.dataValue);return t[e]||(t[e]=(0,l.uniqueKey)(this.dataValue,this.defaultRowKey)),t[e]}},{key:"defaultRowKey",get:function(){return"key"}},{key:"setRowComponentsData",value:function(e,t){i.default.each(this.rows[e],(function(n){"__key"===n.key?n.data={__key:Object.keys(t)[e]}:n.data=t}))}},{key:"getValueAsString",value:function(e,t){var n=this;if(null!=t&&t.email&&this.visible&&!this.skipInEmail&&i.default.isObject(e)){var r='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return(r=Object.keys(e).reduce((function(r,o){return r+'\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(o,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(n.getView(e[o],t),"</td>\n          </tr>\n        ")}),r))+"\n          </tbody>\n        </table>\n      "}return i.default.isEmpty(e)?"":null!=t&&t.modalPreview?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"object"===u(e)?"[Complex Data]":e}},{key:"getDataValueAsTable",value:function(e,t){var n=this,r='\n      <table border="1" style="width:100%">\n        <tbody>\n    ';return this.visible&&i.default.isObject(e)&&Object.keys(e).forEach((function(o){r+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(o,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(n.getView(e[o],t),"</td>\n          </tr>\n        ")})),r+="\n        </tbody>\n      </table>\n    "}},{key:"createRowComponents",value:function(e,t){var n=this,r=this.builderMode?this.valueKey:this.getRowKey(t),o=i.default.clone(this.options);o.events=new a.default,o.name+="[".concat(t,"]"),o.row="".concat(t);var s={};s.__key=this.createComponent(this.keySchema,o,{__key:this.builderMode?this.defaultRowKey:r}),s.__key.on("componentChange",(function(e){var t=n.dataValue,o=(0,l.uniqueKey)(t,e.value);t[o]=t[r],delete t[r];var i=s[n.valueKey];i.component.key=o,i.path=n.calculateComponentPath(i),r=o}));var u=i.default.clone(this.component.valueComponent);u.key=r;var c=this.options;return c.row=o.row,s[this.valueKey]=this.createComponent(u,c,this.dataValue),s}},{key:"canAddColumn",get:function(){return!1}},{key:"addChildComponent",value:function(e){this.component.valueComponent=e}},{key:"saveChildComponent",value:function(e){e.key!==this.keySchema.key&&(this.component.valueComponent=e)}},{key:"removeChildComponent",value:function(){var e=g.schema();this.component.valueComponent=e.valueComponent}},{key:"addRow",value:function(){var e=this.rows.length;this.rows[e]=this.createRowComponents(this.dataValue,e),this.redraw(),this.triggerChange()}},{key:"removeRow",value:function(e){var t=Object.keys(this.dataValue);t[e]&&delete this.dataValue[t[e]],this.rows.splice(e,1),this.redraw(),this.triggerChange()}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.hasChanged(e,this.dataValue);return this.dataValue=e,this.createRows(),this.updateOnChange(t,n),n}},{key:"checkColumns",value:function(){return!this.builderMode&&this.dataValue&&Object.keys(this.dataValue).length&&Object.keys(this.dataValue).length>(this.rows||[]).length?{rebuild:!0,show:!0}:{rebuild:!1,show:!0}}}],o=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.schema.apply(r.default,[{label:"Data Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/form-building/data-components#data-map",showPreview:!1,weight:20,schema:g.schema()}}},{key:"savedValueTypes",value:function(e){return(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.object]}}],n&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.default);t.default=g},89316:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},45392:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0},{key:"tabindex",ignore:!0},{type:"textfield",label:"Label for Key column",key:"keyLabel",tooltip:"Provide a label text for Key column (otherwise 'Key' will be used)",weight:404,input:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0},{type:"checkbox",label:"Show key column before value",key:"keyBeforeValue",tooltip:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}}]},4025:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:a.default},{label:"Date",key:"date",weight:1,components:i.default},{label:"Time",key:"time",weight:2,components:l.default},{key:"data",components:o.default},{key:"validation",components:s.default}]].concat(t))},n(92222);var r=u(n(39086)),o=u(n(45908)),i=u(n(77099)),a=u(n(48893)),l=u(n(97839)),s=u(n(35733));function u(e){return e&&e.__esModule?e:{default:e}}},54263:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(74916),n(15306),n(28733),n(83710),n(41539),n(39714),n(89554),n(54747),n(4723),n(79753),n(69600),n(21249),n(73210),n(92222),n(68304),n(24812),n(30489);var o=u(n(96486)),i=u(n(30381)),a=u(n(55666)),l=n(82531),s=u(n(63820));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},v.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(h,e);var t,n,r,u,c,d=(u=h,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(u);if(c){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function h(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var i=(r=d.call(this,e,t,n)).component.timezone||r.options.timezone,a=!o.default.get(r.component,"timePicker.showMeridian",!0);r.component.enableDate?r.component.enableDate&&!/[yMd]/.test(r.component.format)&&r.builderMode&&(r.component.format="yyyy-MM-dd ".concat(r.component.format)):r.component.format=r.component.format.replace(/yyyy-MM-dd /g,""),r.component.enableTime?r.component.enableTime&&!/[mhH]/.test(r.component.format)&&r.builderMode?r.component.format="".concat(r.component.format," hh:mm a"):r.component.format=a?r.component.format.replace(/hh:mm a$/g,"HH:mm"):r.component.format.replace(/HH:mm$/g,"hh:mm a"):r.component.format=r.component.format.replace(/ hh:mm a$/g,"");var l=r.component.customOptions||{};if("string"==typeof l)try{l=JSON.parse(l)}catch(e){console.warn(e.message),l={}}return r.component.widget=f({type:"calendar",timezone:i,displayInTimezone:o.default.get(r.component,"displayInTimezone","viewer"),locale:r.options.language,useLocaleSettings:o.default.get(r.component,"useLocaleSettings",!1),allowInput:o.default.get(r.component,"allowInput",!0),mode:"single",enableTime:o.default.get(r.component,"enableTime",!0),noCalendar:!o.default.get(r.component,"enableDate",!0),format:r.component.format,hourIncrement:o.default.get(r.component,"timePicker.hourStep",1),minuteIncrement:o.default.get(r.component,"timePicker.minuteStep",5),time_24hr:a,readOnly:r.options.readOnly,minDate:o.default.get(r.component,"datePicker.minDate"),disabledDates:o.default.get(r.component,"datePicker.disable"),disableWeekends:o.default.get(r.component,"datePicker.disableWeekends"),disableWeekdays:o.default.get(r.component,"datePicker.disableWeekdays"),disableFunction:o.default.get(r.component,"datePicker.disableFunction"),maxDate:o.default.get(r.component,"datePicker.maxDate")},l),r.validators.push("date"),r}return t=h,n=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"defaultValue",get:function(){var e=v(g(h.prototype),"defaultValue",this);return!e&&this.component.defaultDate&&(e=(e=a.default.getDateSetting(this.component.defaultDate))?e.toISOString():""),e}},{key:"emptyValue",get:function(){return""}},{key:"momentFormat",get:function(){return a.default.convertFormatToMoment(this.component.format)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return!(!e||"Invalid Date"!==e.toString())||v(g(h.prototype),"isEmpty",this).call(this,e)}},{key:"formatValue",value:function(e){var t=i.default.utc(e).toISOString();return"Invalid date"===t?e:t}},{key:"isEqual",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(t)||i.default.utc(e).format(this.momentFormat)===i.default.utc(t).format(this.momentFormat)}},{key:"createWrapper",value:function(){return!1}},{key:"checkValidity",value:function(e,t,n){return this.refs.input&&this.refs.input.forEach((function(e){e.widget&&e.widget.enteredDate&&(t=!0)})),v(g(h.prototype),"checkValidity",this).call(this,e,t,n)}},{key:"getValueAsString",value:function(e){var t=a.default.convertFormatToMoment(this.component.format);t+=t.match(/z$/)?"":" z";var n=this.timezone;return e&&!this.attached&&n?Array.isArray(e)&&this.component.multiple?e.map((function(e){return o.default.trim(a.default.momentDate(e,t,n).format(t))})).join(", "):o.default.trim(a.default.momentDate(e,t,n).format(t)):Array.isArray(e)&&this.component.multiple?e.map((function(e){return o.default.trim((0,i.default)(e).format(t))})).join(", "):(e?o.default.trim((0,i.default)(e).format(t)):e)||""}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.schema.apply(s.default,[{type:"datetime",label:"Date / Time",key:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#date-and-time",weight:40,schema:h.schema()}}},{key:"serverConditionSettings",get:function(){return h.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return f(f({},v(g(h),"conditionOperatorsSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"],valueComponent:function(e){return f(f({},e),{},{type:"datetime"})}})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.date]}}],n&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(s.default);t.default=w},45908:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"textfield",input:!0,key:"defaultDate",label:"Default Date",placeholder:"moment()",tooltip:"You can use Moment.js functions to set the default value to a specific date. For example: \n \n moment().subtract(10, 'days')",weight:6},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Flatpickr options",tooltip:"A raw JSON object to use as options for the Date / Time component (Flatpickr).",defaultValue:{}}]},77099:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(193));function o(e){return e&&e.__esModule?e:{default:e}}var i=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n  return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n  !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:function(){return!r.default.noeval||r.default.protectedEval},components:[o(n(61550)).default.logicVariablesTable("<tr><th>date</th><td>The date object.</td></tr>"),{type:"textarea",input:!0,editor:"ace",key:"datePicker.disableFunction",label:"Disabling dates by a function",description:'For more information check out the <a href="https://flatpickr.js.org/examples/#disabling-dates" target="_blank" rel="noopener noreferrer">Docs</a>',weight:22},{type:"htmlelement",tag:"div",content:"<h4>Example</h4><pre>// Disable all weekends<br>date.getDay() === 0 || date.getDay() === 6</pre>\n          "}]},{type:"checkbox",input:!0,key:"datePicker.disableWeekends",label:"Disable weekends",tooltip:"Check to disable weekends",weight:23},{type:"checkbox",input:!0,key:"datePicker.disableWeekdays",label:"Disable weekdays",tooltip:"Check to disable weekdays",weight:23}];t.default=i},48893:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"select",input:!0,key:"displayInTimezone",label:"Display in Timezone",tooltip:"This will display the captured date time in the select timezone.",weight:30,defaultValue:"viewer",dataSrc:"values",data:{values:[{label:"of Viewer",value:"viewer"},{label:"of Submission",value:"submission"},{label:"of Location",value:"location"},{label:"UTC",value:"utc"}]}},{type:"select",input:!0,key:"timezone",label:"Select Timezone",tooltip:"Select the timezone you wish to display this Date",weight:31,lazyLoad:!0,defaultValue:"",valueProperty:"name",dataSrc:"url",data:{url:"{{options.cdnUrl}}/timezones.json"},template:"<span>{{ item.label }}</span>",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}},{type:"checkbox",input:!0,key:"useLocaleSettings",label:"Use Locale Settings",tooltip:"Use locale settings to display date and time.",weight:51},{type:"checkbox",input:!0,key:"allowInput",label:"Allow Manual Input",tooltip:"Check this if you would like to allow the user to manually enter in the date.",weight:51},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",description:'Use formats provided by <a href="https://github.com/angular-ui/bootstrap/tree/master/src/dateparser/docs#uibdateparsers-format-codes" target="_blank" rel="noopener noreferrer">DateParser Codes</a>',tooltip:"The date format for displaying the datetime value.",weight:52},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'<div class="row">\n  <div class="col-sm-3">Label</div>\n  <div class="col-sm-6">onClick</div>\n</div>',row:'<div class="row">\n      <div class="col-sm-3">\n        {{ flattenedComponents.label.getView(row.label) }}\n      </div>\n      <div class="col-sm-6">\n        {{ flattenedComponents.onClick.getView(row.onClick) }}\n      </div>\n      {% if (!instance.disabled) { %}\n        <div class="col-sm-3">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass("edit") }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass("trash") }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},97839:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"checkbox",input:!0,key:"enableTime",label:"Enable Time Input",tooltip:"Enables time input for this field.",weight:0},{type:"number",input:!0,key:"timePicker.hourStep",label:"Hour Step Size",tooltip:"The number of hours to increment/decrement in the time picker.",weight:10},{type:"number",input:!0,key:"timePicker.minuteStep",label:"Minute Step Size",tooltip:"The number of minutes to increment/decrement in the time picker.",weight:20},{type:"checkbox",input:!0,key:"timePicker.showMeridian",label:"12 Hour Time (AM/PM)",tooltip:"Display time in 12 hour time with AM/PM.",weight:30}]},35733:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(82772),t.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var t=e.data,n=e.component;return!(n.datePicker&&n.datePicker.minDate&&-1!==n.datePicker.minDate.indexOf("moment")||t.enableMinDateInput)}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:function(e){var t=e.data,n=e.component;return!(!n.datePicker||!n.datePicker.minDate||-1===n.datePicker.minDate.indexOf("moment"))||t.enableMinDateInput}},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var t=e.data,n=e.component;return!(n.datePicker&&n.datePicker.maxDate&&-1!==n.datePicker.maxDate.indexOf("moment")||t.enableMaxDateInput)}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:function(e){var t=e.data,n=e.component;return!(!n.datePicker||!n.datePicker.maxDate||-1===n.datePicker.maxDate.indexOf("moment"))||t.enableMaxDateInput}}]},69403:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"day",label:"Day",weight:3,components:l.default},{key:"month",label:"Month",weight:3,components:s.default},{key:"year",label:"Year",weight:3,components:u.default}]].concat(t))},n(92222);var r=c(n(39086)),o=c(n(51951)),i=c(n(84846)),a=c(n(6474)),l=c(n(86842)),s=c(n(65207)),u=c(n(2420));function c(e){return e&&e.__esModule?e:{default:e}}},34160:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(79753),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),n(47941),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(82772),n(28733),n(92222),n(83710),n(41539),n(39714),n(85827),n(89554),n(54747),n(91058),n(57327),n(74916),n(69600),n(21249),n(83112),n(68304),n(24812),n(30489);var o=s(n(96486)),i=s(n(30381)),a=s(n(68093)),l=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function m(e,t,n,r){return m="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=k(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else y(r,t,n);return!0},m(e,t,n,r)}function y(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(){return w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=k(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},w.apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(v,e);var t,n,r,s,u,y=(s=v,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(s);if(u){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function v(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),e.maxDate&&-1===e.maxDate.indexOf("moment(")&&(e.maxDate=(0,i.default)(e.maxDate,"YYYY-MM-DD").toISOString()),e.minDate&&-1===e.minDate.indexOf("moment(")&&(e.minDate=(0,i.default)(e.minDate,"YYYY-MM-DD").toISOString()),y.call(this,e,t,n)}return t=v,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#day",weight:50,schema:v.schema()}}},{key:"conditionOperatorsSettings",get:function(){return c(c({},w(O(v),"conditionOperatorsSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"]})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.string]}},{key:"serverConditionSettings",get:function(){return v.conditionOperatorsSettings}}],(n=[{key:"emptyValue",get:function(){return"00/00/0000"}},{key:"valueMask",get:function(){return/^\d{2}\/\d{2}\/\d{4}$/}},{key:"dayRequired",get:function(){return this.showDay&&o.default.get(this.component,"fields.day.required",!1)}},{key:"showDay",get:function(){return!o.default.get(this.component,"fields.day.hide",!1)}},{key:"monthRequired",get:function(){return this.showMonth&&o.default.get(this.component,"fields.month.required",!1)}},{key:"showMonth",get:function(){return!o.default.get(this.component,"fields.month.hide",!1)}},{key:"yearRequired",get:function(){return this.showYear&&o.default.get(this.component,"fields.year.required",!1)}},{key:"showYear",get:function(){return!o.default.get(this.component,"fields.year.hide",!1)}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"shouldDisabled",get:function(){return w(O(v.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"inputInfo",get:function(){var e=w(O(v.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}},{key:"inputDefinition",value:function(e){var t,n;return"day"===e&&(t=1,n=31),"month"===e&&(t=1,n=12),"year"===e&&(t=o.default.get(this.component,"fields.year.minYear",1900)||1900,n=o.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:e,attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control ".concat(this.transform("class","formio-day-component-".concat(e))),type:"select"===this.component.fields[e].type?"select":"number",placeholder:this.component.fields[e].placeholder,step:1,min:t,max:n}}}},{key:"selectDefinition",value:function(e){return{multiple:!1,ref:e,widget:"html5",attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control",name:e,lang:this.options.language}}}},{key:"days",get:function(){if(this._days)return this._days;this._days=[{value:"",label:o.default.get(this.component,"fields.day.placeholder","")}];for(var e=1;e<=31;e++)this._days.push({value:e,label:e.toString()});return this._days}},{key:"months",get:function(){return this._months||(this._months=[{value:"",label:o.default.get(this.component,"fields.month.placeholder")||(this.hideInputLabels?this.t("Month"):"")},{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),this._months}},{key:"years",get:function(){if(this._years)return this._years;this._years=[{value:"",label:o.default.get(this.component,"fields.year.placeholder","")}];for(var e=o.default.get(this.component,"fields.year.minYear",1900)||1900,t=o.default.get(this.component,"fields.year.maxYear",2030)||2030,n=e;n<=t;n++)this._years.push({value:n,label:n.toString()});return this._years}},{key:"setErrorClasses",value:function(e,t,n){w(O(v.prototype),"setErrorClasses",this).call(this,e,t,n),w(O(v.prototype),"setErrorClasses",this).call(this,[this.refs.day,this.refs.month,this.refs.year],t,n)}},{key:"removeInputError",value:function(e){w(O(v.prototype),"removeInputError",this).call(this,[this.refs.day,this.refs.month,this.refs.year]),w(O(v.prototype),"removeInputError",this).call(this,e)}},{key:"init",value:function(){w(O(v.prototype),"init",this).call(this),this.validators=this.validators.concat(["day","maxDate","minDate","minYear","maxYear"]);var e=this.component.fields.year.minYear,t=this.component.fields.year.maxYear;this.component.maxYear=t,this.component.minYear=e;var n=(0,l.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?n.dayFirst:this.component.dayFirst}},{key:"render",value:function(){return this.isHtmlRenderMode()?w(O(v.prototype),"render",this).call(this,this.renderTemplate("input")):w(O(v.prototype),"render",this).call(this,this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}},{key:"renderField",value:function(e){var t=this;return"select"===this.component.fields[e].type?this.renderTemplate("select",{input:this.selectDefinition(e),selectOptions:this["".concat(e,"s")].reduce((function(e,n){return e+t.renderTemplate("selectOption",{option:n,selected:!1,attrs:{}})}),"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}},{key:"attach",value:function(e){var t=this;this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"});var n=w(O(v.prototype),"attach",this).call(this,e),r=function(e,n){return function(){try{t.saveCaretPosition(e,n)}catch(e){console.warn("An error occurred while trying to save caret position",e)}t.updateValue(null,{modified:!0})}};return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach((function(e){return t.setDisabled(e,!0)}))):(this.addEventListener(this.refs.day,"input",r(this.refs.day,"day")),this.addEventListener(this.refs.month,"input",(function(){var e=t.refs.year?parseInt(new Date(t.refs.year.value,t.refs.month.value,0).getDate(),10):"",n=t.getFieldValue("day");!t.component.fields.day.hide&&e&&(t.refs.day.max=e),e&&n>e&&(t.refs.day.value=t.refs.day.max),r(t.refs.month,"month")()})),this.addEventListener(this.refs.year,"input",r(this.refs.year,"year")),this.addEventListener(this.refs.input,this.info.changeEvent,(function(){return t.updateValue(null,{modified:!0})})),[this.refs.day,this.refs.month,this.refs.year].filter((function(e){return!!e})).forEach((function(e){w(O(v.prototype),"addFocusBlurEvents",t).call(t,e)}))),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,n}},{key:"validateRequired",value:function(e,t){var n=this.parts,r=n.day,o=n.month,i=n.year;return!(this.dayRequired&&!r||this.monthRequired&&!o||this.yearRequired&&!i||(0,l.boolValue)(e)&&this.isEmpty(t))}},{key:"disabled",set:function(e){(function(e,t,n,r,o){if(!m(e,t,n,r||e)&&o)throw new Error("failed to set property")})(O(v.prototype),"disabled",e,this,!0),this.refs.year&&this.refs.month&&this.refs.day&&(e?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}},{key:"normalizeValue",value:function(e){if(!e||this.valueMask.test(e))return e;var t=[],n=e.split("/"),r=f(this.component.dayFirst?[0,1,2]:[1,0,2],3),o=r[0],i=r[1],a=r[2],l=this.component.defaultValue?this.component.defaultValue.split("/"):"",s=function(e,r){return t.push(e?n.shift():r)};return this.dayFirst&&s(this.showDay,l?l[o]:"00"),s(this.showMonth,l?l[i]:"00"),this.dayFirst||s(this.showDay,l?l[o]:"00"),s(this.showYear,l?l[a]:"0000"),t.join("/")}},{key:"setValueAt",value:function(e,t){if(!t||"Invalid date"===t)return null;var n,r=t.split("/");this.component.dayFirst&&(n=r.shift());var o=r.shift();this.component.dayFirst||(n=r.shift());var i=r.shift();this.refs.day&&this.showDay&&(this.refs.day.value="00"===n?"":parseInt(n,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===o?"":parseInt(o,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===i?"":parseInt(i,10))}},{key:"getFieldValue",value:function(e){var t=this.dataValue?this.dataValue.split("/"):[],n=0;switch(e){case"month":n=t[this.dayFirst?1:0];break;case"day":n=t[this.dayFirst?0:1];break;case"year":n=t[2]}return n=parseInt(n,10),!o.default.isNaN(n)&&o.default.isNumber(n)?n:0}},{key:"parts",get:function(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}},{key:"format",get:function(){var e="";return this.component.dayFirst&&this.showDay&&(e+="D/"),this.showMonth&&(e+="M/"),!this.component.dayFirst&&this.showDay&&(e+="D/"),this.showYear?e+="YYYY":e.length?e.substring(0,e.length-1):e}},{key:"getDate",value:function(e){var t,n,r,i=[],a=f(this.component.dayFirst?[0,1,2]:[1,0,2],3),l=a[0],s=a[1],u=a[2],c=e||this.component.defaultValue;return c&&(i=c.split("/").map((function(e){return parseInt(e,10)}))),this.showDay&&this.refs.day&&(t=parseInt(this.refs.day.value,10)),(void 0===t||o.default.isNaN(t))&&(t=i[l]&&!o.default.isNaN(i[l])?i[l]:0),this.showMonth&&this.refs.month&&(n=parseInt(this.refs.month.value,10)),(void 0===n||o.default.isNaN(n))&&(n=i[s]&&!o.default.isNaN(i[s])?i[s]:0),this.showYear&&this.refs.year&&(r=parseInt(this.refs.year.value)),(void 0===r||o.default.isNaN(r))&&(r=i[u]&&!o.default.isNaN(i[u])?i[u]:0),t||n||r?(t=this.showDay?t.toString().padStart(2,0):"",n=this.showMonth?n.toString().padStart(2,0):"",r=this.showYear?r.toString().padStart(4,0):"",this.component.dayFirst?"".concat(t).concat(this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":"").concat(n).concat(this.showMonth&&this.showYear?"/":"").concat(r):"".concat(n).concat(this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":"").concat(t).concat(this.showDay&&this.showYear?"/":"").concat(r)):null}},{key:"date",get:function(){return this.getDate()}},{key:"validationValue",get:function(){return this.dataValue}},{key:"getValue",value:function(){return w(O(v.prototype),"getValue",this).call(this)||this.dataValue}},{key:"getValueAt",value:function(e){var t=this.date||this.emptyValue;return t?(this.refs.input[e].value=t,this.refs.input[e].value):(this.refs.input[e].value="",null)}},{key:"getValueAsString",value:function(e){return this.getDate(e)||""}},{key:"focus",value:function(e){if(e&&"string"==typeof e&&this.refs[e])this.refs[e].focus();else if(this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay){var t;null===(t=this.refs.day)||void 0===t||t.focus()}else if(this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth){var n;null===(n=this.refs.month)||void 0===n||n.focus()}else if(!this.showDay&&!this.showDay&&this.showYear){var r;null===(r=this.refs.year)||void 0===r||r.focus()}}},{key:"restoreCaretPosition",value:function(){var e,t,n;if(null!==(e=this.root)&&void 0!==e&&e.currentSelection){var r=this.root.currentSelection,o=r.selection,i=r.index;if(this.refs[i]){var a=this.refs[i];/text|search|password|tel|url/i.test((null==(t=a)?void 0:t.type)||"")&&a.setSelectionRange.apply(a,function(e){if(Array.isArray(e))return p(e)}(n=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||d(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}}},{key:"isPartialDay",value:function(e){if(!e)return!1;var t=f(this.component.dayFirst?[0,1,2]:[1,0,2],3),n=t[0],r=t[1],o=t[2],i=e.split("/");return"00"===i[n]||"00"===i[r]||"0000"===i[o]}},{key:"getValidationFormat",value:function(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(a.default);t.default=_},51951:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},86842:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.day.type",label:"Type",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.day.placeholder",label:"Placeholder",placeholder:"Day Placeholder",tooltip:"The placeholder text that will appear when Day field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Day part of the component.",key:"fields.day.hide",input:!0},{weight:214,type:"checkbox",label:"Day First",tooltip:"Display the Day field before the Month field.",key:"dayFirst",input:!0}]},84846:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{weight:15,type:"checkbox",label:"Hide Input Labels",tooltip:"Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.",key:"hideInputLabels",input:!0},{type:"select",input:!0,key:"inputsLabelPosition",label:"Inputs Label Position",tooltip:"Position for the labels for inputs for this field.",weight:40,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{key:"placeholder",ignore:!0},{weight:213,type:"checkbox",label:"Use Locale Settings",tooltip:"Use locale settings to display day.",key:"useLocaleSettings",input:!0}]},65207:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.month.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.month.placeholder",label:"Placeholder",placeholder:"Month Placeholder",tooltip:"The placeholder text that will appear when Month field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Month part of the component.",key:"fields.month.hide",input:!0}]},6474:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validate.required",ignore:!0},{key:"validate.unique",ignore:!0},{weight:0,type:"checkbox",label:"Require Day",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.day.required",input:!0},{weight:10,type:"checkbox",label:"Require Month",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.month.required",input:!0},{weight:20,type:"checkbox",label:"Require Year",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.year.required",input:!0},{weight:40,type:"textfield",label:"Minimum Day",placeholder:"yyyy-MM-dd",tooltip:"A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",key:"minDate",input:!0},{weight:30,type:"textfield",label:"Maximum Day",placeholder:"yyyy-MM-dd",tooltip:"A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",key:"maxDate",input:!0}]},2420:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.year.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:203,type:"number",input:!0,key:"fields.year.minYear",label:"Minimum Year",placeholder:"1900",tooltip:"The minimum year that can be entered."},{weight:204,type:"number",input:!0,key:"fields.year.maxYear",label:"Maximum Year",placeholder:"2030",tooltip:"The maximum year that can be entered."},{weight:210,type:"textfield",input:!0,key:"fields.year.placeholder",label:"Placeholder",placeholder:"Year Placeholder",tooltip:"The placeholder text that will appear when Year field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Year part of the component.",key:"fields.year.hide",input:!0}]},68489:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{label:"Templates",key:"templates",weight:5,components:a.default},{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:l.default}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(30923)),i=s(n(58917)),a=s(n(67930)),l=s(n(83881));function s(e){return e&&e.__esModule?e:{default:e}}},1870:function(e,t,n){"use strict";n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(69070),n(83593),n(12419),n(78011),n(32165),n(66992),n(33948),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(89554),n(41539),n(54747),n(79753),n(21249),n(5212),n(26699),n(32023),n(57327),n(24812),n(91038),n(78783),n(47941),n(19601),n(24603),n(74916),n(39714),n(15306),n(85827),n(47042),n(88674),n(40561),n(68309),n(83710),n(68304),n(30489);var r=c(n(96486)),o=c(n(91459)),i=c(n(99495)),a=c(n(64430)),l=c(n(93808)),s=n(82531),u=c(n(41578));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e,t,n,r){return w="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=S(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else k(r,t,n);return!0},w(e,t,n,r)}function k(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===f(t)?t:String(t)}function _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=S(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_.apply(this,arguments)}function S(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var j={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"},x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(O,e);var t,n,a,c,d,m=(c=O,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(c);if(d){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function O(){var e;y(this,O);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=m.call.apply(m,[this].concat(n))).type="editgrid",e}return t=O,n=[{key:"defaultDialogTemplate",get:function(){return'\n    <h3 ref="dialogHeader">'.concat(this.t("Do you want to clear data?"),'</h3>\n    <div style="display:flex; justify-content: flex-end;">\n      <button ref="dialogCancelButton" class="btn btn-secondary" aria-label="').concat(this.t("Cancel"),'">').concat(this.t("Cancel"),'</button>\n      <button ref="dialogYesButton" class="btn btn-danger" aria-label="').concat(this.t("Yes, delete it"),'">').concat(this.t("Yes, delete it"),"</button>\n    </div>\n  ")}},{key:"defaultRowTemplate",get:function(){return this.displayAsTable?O.defaultTableRowTemplate:O.defaultRowTemplate}},{key:"defaultHeaderTemplate",get:function(){return this.displayAsTable?O.defaultTableHeaderTemplate:O.defaultHeaderTemplate}},{key:"rowTemplate",get:function(){return s.Evaluator.noeval?this.displayAsTable?u.default.tableRow:u.default.row:this.displayAsTable?r.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):r.default.get(this.component,"templates.row",this.defaultRowTemplate)}},{key:"headerTemplate",get:function(){return s.Evaluator.noeval?this.displayAsTable?u.default.tableHeader:u.default.header:this.displayAsTable?r.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):r.default.get(this.component,"templates.header",this.defaultHeaderTemplate)}},{key:"hasScopedChildren",get:function(){return!this.inlineEditMode}},{key:"defaultSchema",get:function(){return O.schema()}},{key:"emptyValue",get:function(){return[]}},{key:"editgridKey",get:function(){return"editgrid-".concat(this.key)}},{key:"rowRef",get:function(){return"".concat(this.editgridKey,"-row")}},{key:"rowElements",get:function(){return this.refs[this.rowRef]}},{key:"rowRefs",get:function(){return this.refs["editgrid-".concat(this.component.key,"-row")]}},{key:"addRowRef",get:function(){return"".concat(this.editgridKey,"-addRow")}},{key:"addRowElements",get:function(){return this.refs[this.addRowRef]}},{key:"saveRowRef",get:function(){return"".concat(this.editgridKey,"-saveRow")}},{key:"saveRowElements",get:function(){return this.refs[this.saveRowRef]}},{key:"cancelRowRef",get:function(){return"".concat(this.editgridKey,"-cancelRow")}},{key:"cancelRowElements",get:function(){return this.refs[this.cancelRowRef]}},{key:"inlineEditMode",get:function(){return this.component.inlineEdit}},{key:"saveEditMode",get:function(){return!this.inlineEditMode}},{key:"minLength",get:function(){return this.builderMode?0:r.default.get(this.component,"validate.minLength",0)}},{key:"data",get:function(){return this._data},set:function(e){this._data=e;var t=this.dataValue;(this.editRows||[]).forEach((function(e,n){t[n]||e.state===j.New||(t[n]={});var r=t[n]||{};e.data=r,e.components.forEach((function(e){e.data=r}))}))}},{key:"dataValue",get:function(){return _(P(O.prototype),"dataValue",this)||[]},set:function(e){!function(e,t,n,r,o){if(!w(e,t,n,r||e)&&o)throw new Error("failed to set property")}(P(O.prototype),"dataValue",e,this,!0)}},{key:"displayAsTable",get:function(){return this.component.displayAsTable}},{key:"iteratableRows",get:function(){return this.editRows}},{key:"defaultValue",get:function(){var e=_(P(O.prototype),"defaultValue",this),t=Array.isArray(e)?e:[];return r.default.times(this.minLength-t.length,(function(){return t.push({})})),t}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}},{key:"init",value:function(){var e=this;if(this.builderMode)return this.editRows=[],_(P(O.prototype),"init",this).call(this);this.components=this.components||[];var t=this.dataValue;!t.length&&this.component.openWhenEmpty?(this.editRows=[],this.createRow({},0)):this.editRows=t.map((function(t,n){return{components:e.lazyLoad?[]:e.createRowComponents(t,n),data:t,state:j.Saved,backup:null,error:null,rowIndex:n}})),this.prevHasAddButton=this.hasAddButton(),this.checkData(),this.setVariableTypeComponents(),this.variableTypeComponentsIndexes.length&&r.default.each(this.editRows||[],(function(t,n){return e.checkRowVariableTypeComponents(t,n)}))}},{key:"checkRowVariableTypeComponents",value:function(e,t){var n=e.components;r.default.some(this.variableTypeComponentsIndexes,(function(e){var t=n[e];return t.type!==t.component.type}))&&(e.components=this.createRowComponents(e.data,t,!0))}},{key:"setVariableTypeComponents",value:function(){var e=this;this.variableTypeComponentsIndexes=[],r.default.each(this.component.components,(function(t,n){t.typeChangeEnabled&&e.variableTypeComponentsIndexes.push(n)}))}},{key:"isOpen",value:function(e){return[j.New,j.Editing,j.Viewing].includes(e.state)}},{key:"isComponentVisibleInSomeRow",value:function(e){var t=this,n=this.editRows,o=[j.Saved,j.Editing,j.Draft],i=n.filter((function(e){return r.default.includes(o,e.state)}));this.visibleInHeader=this.visibleInHeader||[];var a=function(e,n){n||r.default.remove(t.visibleInHeader,(function(t){return t===e.key})),n&&!r.default.includes(t.visibleInHeader,e.key)&&t.visibleInHeader.push(e.key)};if(r.default.isEmpty(n)){var l,u=this.createRowComponents({},0);(0,s.eachComponent)(u,(function(t){t.component.key===e.key&&(l=t),t.checkConditions()}));var c=!l||l.visible;return h(this.components).forEach((function(e){return t.removeComponent(e,t.components)})),a(e,c),c}var f=r.default.get(this.component,"openWhenEmpty")&&1===n.length&&n[0].state===j.New;return r.default.isEmpty(n)||!r.default.isEmpty(i)||f?r.default.some(f?n:i,(function(n,o){var i;if(n.state===j.Editing)i=r.default.includes(t.visibleInHeader,e.key);else{var l=t.flattenComponents(o)[e.key];i=!l||l.visible,a(e,i)}return i})):r.default.includes(this.visibleInHeader,e.key)}},{key:"render",value:function(e){var t=this;if(this.builderMode)return _(P(O.prototype),"render",this).call(this);var n=this.dataValue,o=this.headerTemplate,i=this.t.bind(this),a=this.displayAsTable?"editgridTable":"editgrid";return _(P(O.prototype),"render",this).call(this,e||this.renderTemplate(a,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(o,{displayValue:function(e){return t.displayComponentValue(e,!0)},components:this.component.components,value:n,t:i}),footer:this.renderString(r.default.get(this.component,"templates.footer"),{components:this.component.components,value:n,t:i}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map((function(e){return t.isOpen(e)})),errors:this.editRows.map((function(e){return e.error})),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}},{key:"renderComponents",value:function(e){var t=(e=e||this.getComponents()).map((function(e){return e.render()})),n=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(n,{children:t,components:e})}},{key:"attach",value:function(e){var t,n=this;if(this.builderMode)return _(P(O.prototype),"attach",this).call(this,e);this.loadRefs(e,(k(t={},this.addRowRef,"multiple"),k(t,this.saveRowRef,"multiple"),k(t,this.cancelRowRef,"multiple"),k(t,this.rowRef,"multiple"),t)),this.addRowElements.forEach((function(e){n.addEventListener(e,"click",(function(){return n.addRow()}))}));var o=0;this.rowElements.forEach((function(e,t){var i=n.editRows[t];null!=i&&i.isRowSelected&&e.classList.add("selected"),n.isOpen(i)?(n.attachComponents(e,i.components),n.addEventListener(n.saveRowElements[o],"click",(function(){return n.saveRow(t,!0)})),n.addEventListener(n.cancelRowElements[o],"click",(function(){return n.cancelRow(t)})),o++):[{className:"removeRow",event:"click",action:function(){return n.removeRow(t,!0)}},{className:"editRow",event:"click",action:function(){n.editRow(t).then((function(){if(n.component.rowDrafts){var e;n.validateRow(i,!1);var t=i.errors&&!!i.errors.length;n.component.modal&&t&&(null===(e=n.root)||void 0===e?void 0:e.submitted)&&(n.alert.showErrors(i.errors,!1),i.alerts=!0)}}))}},{className:"row",event:"click",action:function(){e.classList.toggle("selected");var r="editGridSelectRow";Array.from(e.classList).includes("selected")?i.isRowSelected=!0:(delete i.isRowSelected,r="editGridUnSelectRow"),n.emit(r,{component:n.component,data:n.dataValue[t]})}}].forEach((function(t){var o=t.className,i=t.event,a=t.action,l=e.getElementsByClassName(o);Array.prototype.forEach.call(l,(function(e){n.options.pdf&&r.default.intersection(e.classList,["editRow","removeRow"]).length?e.style.display="none":n.addEventListener(e,i,a)}))}))})),o?this.addClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open")):this.removeClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open"));var i=_(P(O.prototype),"attach",this).call(this,e);return this.loadRefs(e,{messageContainer:"single-scope"}),i}},{key:"flattenRowDataValue",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(o){r.default.isObject(e[o])&&!r.default.isNil(e[o])?Object.assign(n,t.flattenRowDataValue(e[o])):n[o]=e[o]})),n}},{key:"isComponentVisibleInRow",value:function(e,t){var n=t[e.key];return!n||n.visible}},{key:"displayComponentValue",value:function(e,t){return!!(e.hasOwnProperty("tableView")&&!e.tableView||!t?r.default.includes(this.visibleInHeader,e.key):this.isComponentVisibleInSomeRow(e))}},{key:"renderRow",value:function(e,t){var n=this,r=this.dataValue;if(this.isOpen(e))return this.renderComponents(e.components);var o=this.flattenComponents(t),i=this.rowTemplate;return this.renderString(i,{row:r[t]||{},data:this.data,rowIndex:t,components:this.component.components,flattenedComponents:o,displayValue:function(e){return n.displayComponentValue(e)},isVisibleInRow:function(e){return n.isComponentVisibleInRow(e,o)},getView:function(e,t){var n,r,i=o[e.key],a=i?i.getView(t||i.dataValue):"",l=new RegExp("<(.*?)>");return"string"!=typeof a||!a.length||null!==(n=i.component)&&void 0!==n&&n.template||!l.test(a)||"html"===(null===(r=i.component)||void 0===r?void 0:r.inputFormat)?a:'<input type="text" value="'.concat(a.replace(/"/g,"&quot;"),'" readonly/>')},state:this.editRows[t].state,t:this.t.bind(this)})}},{key:"eachComponent",value:function(e,t){r.default.each(this.getComponents(t),(function(t,n){if(!1===e(t,n))return!1}))}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach((function(t){var n,r=e.dataValue[t.rowIndex],o=null===(n=e.editRows[t.rowIndex])||void 0===n?void 0:n.data;t.data=r||o}))}},{key:"flattenComponents",value:function(e){var t={};return this.everyComponent((function(e){t[e.component.flattenAs||e.key]=e}),e),t}},{key:"getComponents",value:function(e){var t;return this.editRows=this.editRows||[],this.builderMode?_(P(O.prototype),"getComponents",this).call(this):r.default.isNumber(e)?(null===(t=this.editRows[e])||void 0===t?void 0:t.components)||[]:this.editRows.reduce((function(e,t){return e.concat(t.components||[])}),[])}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.calculatedValue=void 0,_(P(O.prototype),"destroy",this).call(this,e)}},{key:"destroyComponents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.builderMode)return _(P(O.prototype),"destroyComponents",this).call(this);var n=this.getComponents(t).slice();n.forEach((function(t){return e.removeComponent(t,e.components)}))}},{key:"createRow",value:function(e,t){var n={components:this.createRowComponents(e,t),data:e,state:j.New,backup:null,error:null,rowIndex:t};return this.editRows.push(n),this.inlineEditMode&&this.dataValue.push(e),n}},{key:"addRow",value:function(){if(!this.options.readOnly){var e=this.editRows.length,t=this.createRow({},e);return t.state===j.New&&(this.emptyRow=(0,s.fastCloneDeep)(t.data)),this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:t}),this.checkRow("checkData",null,{},t.data,t.components),this.component.modal?this.addRowModal(e):this.redraw(),t}}},{key:"addRowModal",value:function(e){var t=this,n=this.ce("div"),r=this.editRows[e];r.willBeSaved=!1;var o=r.components;n.innerHTML=this.renderComponents(o);var i=this.component.modal?this.createModal(n,{},(function(){return t.showDialog(e)})):void 0;return i.classList.add("editgrid-row-modal-".concat(this.id)),r.dialog=i,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new l.default(i.refs.dialogContents,this),this.addEventListener(i,"close",(function(){r.willBeSaved||(t.editRows[e]&&t.editRows[e].state!==j.New&&t.editRows[e].components.forEach((function(e){e.setPristine(!0)})),t.cancelRow(e)),t.alert&&(t.alert.clear(),t.alert=null),delete r.confirmationDialog,delete r.dialog})),i.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:function(){t.component.rowDrafts||r.components.forEach((function(e){return e.setPristine(!1)})),t.validateRow(r,!0)||t.component.rowDrafts?(r.willBeSaved=!0,i.close(),t.saveRow(e,!0)):(t.alert.showErrors(r.errors,!1),r.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(n,o)}},{key:"showDialog",value:function(e){var t=this.editRows[e];if(t.state===j.New?r.default.isEqual(this.emptyRow,t.data):r.default.isEqual(t.backup,t.data))return Promise.resolve();var n=this.ce("div",{ref:"confirmationDialog"}),i=this.component.dialogTemplate||this.defaultDialogTemplate;n.innerHTML=i,n.refs={},this.loadRefs.call(n,n,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});var a=this.createModal(n);a.classList.add("editgrid-row-modal-confirmation-".concat(this.id));var l,s=function(e){e.preventDefault(),a.close()},u=new o.default((function(e,t){l={resolve:e,reject:t}}));return this.addEventListener(n.refs.dialogYesButton,"click",(function(e){s(e),l.resolve()})),this.addEventListener(n.refs.dialogCancelButton,"click",(function(e){s(e),l.reject()})),t.confirmationDialog=a,u}},{key:"editRow",value:function(e){var t=this.editRows[e],n=t.state===j.Editing||t.state===j.New;if(!t||n)return o.default.resolve();t.prevState=t.state,t.state=this.options.readOnly?j.Viewing:j.Editing,this.lazyLoad&&0===t.components.length&&(t.components=this.createRowComponents(t.data,e));var r=(0,s.fastCloneDeep)(t.data);return this.inlineEditMode?t.backup=r:(t.backup=(0,s.fastCloneDeep)(t.data),t.data=r,this.restoreRowContext(t)),this.component.modal?this.addRowModal(e):this.redraw()}},{key:"clearErrors",value:function(e){var t=this.editRows[e];t&&Array.isArray(t.components)&&t.components.forEach((function(e){e.setPristine(!0),e.setCustomValidity("")}))}},{key:"cancelRow",value:function(e){if(!this.options.readOnly){var t=this.editRows[e];switch(t.state){case j.New:t.state=j.Removed,this.clearErrors(e),this.destroyComponents(e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case j.Editing:t.state=t.prevState,this.inlineEditMode&&(this.dataValue[e]=t.backup),t.data=t.backup,t.backup=null,this.restoreRowContext(t),this.clearErrors(e)}this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:t}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}}},{key:"saveRow",value:function(e,t){var n=this,r=this.editRows[e];if(!this.options.readOnly){this.component.rowDrafts||r.components.forEach((function(e){return e.setPristine(!1)}));var o=this.validateRow(r,!0);if(!this.component.rowDrafts&&!o)return!1;if(this.saveEditMode){var i,a,l=this.dataValue;switch(null!==(i=this.root)&&void 0!==i&&null!==(a=i.focusedComponent)&&void 0!==a&&a.component.typeChangeEnabled&&(this.root.focusedComponent=null),r.state){case j.New:var s=l.length;l.push(r.data),r.components.forEach((function(e){return e.rowIndex=s})),e!==s&&(this.editRows.splice(e,1),this.editRows.splice(s,0,r));break;case j.Editing:l[e]=r.data}}return r.state=this.component.rowDrafts&&!o?j.Draft:j.Saved,r.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:r.data,instance:this}),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&r.components.forEach((function(e){return e.setPristine(n.pristine)})),this.checkValidity(null,!0),this.redraw(),r.alerts&&(r.alerts=!1),!0}}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var t=this.getRelativePath(e.path),n=(0,s.getArrayFromComponentPath)(t),o=n[0],i=n[0];this.editRows.forEach((function(e,t){e.rowIndex===o&&(i=t)})),r.default.isNumber(i)&&this.editRow(i)}},{key:"updateComponentsRowIndex",value:function(e,t){e.forEach((function(e,n){e.rowIndex=t,e.row="".concat(t,"-").concat(n)}))}},{key:"updateRowsComponents",value:function(e){var t=this;this.editRows.slice(e).forEach((function(n,r){t.updateComponentsRowIndex(n.components,e+r)}))}},{key:"baseRemoveRow",value:function(e){var t=this.editRows[e];return t.state=j.Removed,this.destroyComponents(e),t}},{key:"removeRow",value:function(e,t){this.options.readOnly||(this.clearErrors(e),this.baseRemoveRow(e),this.splice(e),this.emit("editGridDeleteRow",{index:e}),this.editRows.splice(e,1),this.openWhenEmpty(),this.updateRowsComponents(e),this.updateValue(),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}},{key:"createRowComponents",value:function(e,t,n){var o=this;if(this.components)for(var i=0;i<this.components.length;i++)this.components[i].rowIndex===t&&(this.components[i].destroy(),this.components.splice(i,1));var a=r.default.get(this.editRows,"[".concat(t,"].components"),null);return this.component.components.map((function(i,l){if(n&&a&&o.variableTypeComponentsIndexes.length){var s,u=a[l];if(!r.default.includes(o.variableTypeComponentsIndexes,l)||(null==u?void 0:u.type)===(null==u||null===(s=u.component)||void 0===s?void 0:s.type))return u;i=u.component}var c=r.default.clone(i),f=r.default.clone(o.options);f.name+="[".concat(t,"]"),f.row="".concat(t,"-").concat(l),f.onChange=function(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;if(null!==(e=i.instance.root)&&void 0!==e&&e.id&&(null===(n=o.root)||void 0===n?void 0:n.id)!==i.instance.root.id?i.instance.root.triggerChange(r,i,a):o.component.modal||o.triggerRootChange(r,i,a),!o.inlineEditMode){var l=o.editRows[t];if(null!=l&&l.alerts)o.checkData(null,p(p({},r),{},{changed:i,rowIndex:t}),o.data);else if(l){var s=o.component.rowDrafts&&!o.shouldValidateDraft(l);o.checkRow("checkData",null,p(p({},r),{},{changed:i,silentCheck:s}),l.data,l.components,s)}o.variableTypeComponentsIndexes.length&&(o.checkRowVariableTypeComponents(l,t),o.redraw())}};var d=o.createComponent(r.default.assign({},c,{row:f.row}),f,e,null,n&&a?a[l]:null);return d.rowIndex=t,d.inEditGrid=!0,d}))}},{key:"hasOpenRows",value:function(){var e=this;return this.editRows.some((function(t){return e.isOpen(t)}))}},{key:"shouldValidateDraft",value:function(e){var t,n;return e.state===j.Draft&&!this.pristine&&!(null!==(t=this.root)&&void 0!==t&&t.pristine)&&!this.hasOpenRows()||(null===(n=this.root)||void 0===n?void 0:n.submitted)}},{key:"shouldValidateRow",value:function(e,t){return this.shouldValidateDraft(e)||e.state===j.Editing||e.alerts||t}},{key:"validateRow",value:function(e,t,n){var r,o=this,i=!0,a=h(this.errors);return this.shouldValidateRow(e,t)&&e.components.forEach((function(r){var a=o.component.rowDrafts&&!o.shouldValidateDraft(e)||n;i&=r.checkValidity(null,t,null,a)})),this.component.validate&&this.component.validate.row&&("true"!==(i=this.evaluate(this.component.validate.row,{valid:i,row:e.data},"valid",!0)).toString()?(e.error=i,i=!1):e.error=null,null===i&&(i="Invalid row validation for ".concat(this.key))),e.errors=i?null:this.errors.filter((function(e){return!a.includes(e)})),(!this.component.rowDrafts||null!==(r=this.root)&&void 0!==r&&r.submitted)&&this.showRowErrorAlerts(e,!!i),!!i}},{key:"showRowErrorAlerts",value:function(e,t){var n;e.alerts&&this.alert&&(null!==(n=e.errors)&&void 0!==n&&n.length&&!t?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear())}},{key:"checkValidity",value:function(e,t,n,r){return e=e||this.rootValue,n=n||this.data,this.checkCondition(n,e)?this.checkComponentValidity(e,t,n,{silentCheck:r}):(this.setCustomValidity(""),!0)}},{key:"checkComponentValidity",value:function(e,t,n){var r,o,i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=a.silentCheck,s=this.errors.length,u=_(P(O.prototype),"checkComponentValidity",this).call(this,e,t,n,a);if(!u&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(e,t,n))return!0;var c,f=!0,d=!1;if(this.editRows.forEach((function(e,n){var r=i.validateRow(e,t,l);if(f&=r,i.rowRefs){var o=i.rowRefs[n];if(o){var a=o.querySelector(".editgrid-row-error");r||!a||i.component.rowDrafts&&!i.shouldValidateDraft(e)?a&&(a.textContent=""):(i.addClass(a,"help-block"),a.textContent=i.t(i.errorMessage("invalidRowError")))}}d|=t&&i.isOpen(e)})),!f)return l||this.component.rowDrafts&&(null===(c=this.root)||void 0===c||!c.submitted)||(this.setCustomValidity(this.t(this.errorMessage("invalidRowsError")),t),this.removeClass(this.element,"has-error")),!1;if(d&&this.saveEditMode&&!this.component.openWhenEmpty)return this.setCustomValidity(this.t(this.errorMessage("unsavedRowsError")),t),!1;var p=this.invalid||this.invalidMessage(e,t);return(null===(r=this.errors)||void 0===r?void 0:r.length)!==s&&null!==(o=this.root)&&void 0!==o&&o.submitted&&!p?(this.setCustomValidity(p,t),this.root.showErrors()):this.setCustomValidity(p,t),u}},{key:"changeState",value:function(e,t){this.visible&&(e||t.resetValue&&this.component.modalEdit)?this.rebuild():this.redraw()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e||(e=this.defaultValue),!Array.isArray(e)){if("object"!==f(e))return!1;e=[e]}var r=this.hasChanged(e,this.dataValue);n.noValidate=!r,!this.parent||this.options.server&&!this.parent.parentVisible||this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach((function(e,r){var o=t.editRows[r];o?(o.data=e,t.restoreRowContext(o,n),o.state=j.Saved,o.backup=null,o.error=null):t.editRows[r]={components:t.lazyLoad?[]:t.createRowComponents(e,r),data:e,state:j.Saved,backup:null,error:null}}));var o=this.dataValue.length;return this.editRows[o]&&this.editRows[o].state===j.New&&(o+=1),this.editRows.slice(o).forEach((function(e,n){return t.baseRemoveRow(o+n)})),this.editRows=this.editRows.slice(0,o),this.openWhenEmpty(),this.updateOnChange(n,r),this.options.server||this.checkData(),this.changeState(r,n),r}},{key:"openWhenEmpty",value:function(){var e=!this.dataValue.length&&this.component.openWhenEmpty;this.editRows.length||!e||this.builderMode||this.createRow({},0)}},{key:"restoreRowContext",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.components.forEach((function(r){r.data=e.data,t.setNestedValue(r,e.data,n)}))}},{key:"emptyRows",value:function(){var e=this;this.editRows.forEach((function(t,n){return e.destroyComponents(n)})),this.editRows=[]}},{key:"resetValue",value:function(){_(P(O.prototype),"resetValue",this).call(this),this.emptyRows()}}],a=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"editgrid",label:"Edit Grid",key:"editGrid",clearOnHide:!0,input:!0,tree:!0,removeRow:"Cancel",defaultOpen:!1,openWhenEmpty:!1,modal:!1,components:[],inlineEdit:!1,templates:{header:O.defaultHeaderTemplate,row:O.defaultRowTemplate,tableHeader:O.defaultTableHeaderTemplate,tableRow:O.defaultTableRowTemplate,footer:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/form-building/data-components#edit-grid",showPreview:!1,weight:30,schema:O.schema()}}},{key:"defaultHeaderTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">{{ t(component.label) }}</div>\n        {% } %}\n      {% }) %}\n    </div>'}},{key:"defaultTableHeaderTemplate",get:function(){return'\n      <tr>\n        {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">{{ component.label }}</td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">Actions</td>\n        {% } %}\n      </tr>\n    '}},{key:"defaultRowTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">\n            {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n          </div>\n        {% } %}\n      {% }) %}\n      {% if (!instance.options.readOnly && !instance.disabled) { %}\n        <div class="col-sm-2">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass(\'edit\') }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass(\'trash\') }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'}},{key:"defaultTableRowTemplate",get:function(){return'\n      {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">\n              {{ getView(component, row[component.key]) }}\n            </td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">\n            <div class="btn-group">\n              <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t(\'Edit row\') }}"><i class="{{ iconClass(\'edit\') }}"></i></button>\n              {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t(\'Remove row\') }}"><i class="{{ iconClass(\'trash\') }}"></i></button>\n              {% } %}\n            </div>\n          </td>\n        {% } %}\n    '}}],n&&v(t.prototype,n),a&&v(t,a),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.default);t.default=x,x.prototype.hasChanged=a.default.prototype.hasChanged},30923:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"checkbox",input:!0,weight:105,key:"inlineEdit",label:"Inline Editing",tooltip:"Check this if you would like your changes within 'edit' mode to be committed directly to the submission object as that row is being changed"},{key:"defaultValue",ignore:!0},{key:"multiple",ignore:!0}]},58917:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(193))&&r.__esModule?r:{default:r},i=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:function(){return!o.default.noeval}},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}];t.default=i},67930:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(193))&&r.__esModule?r:{default:r},i=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){var t=e.data;return(!o.default.noeval||o.default.protectedEval)&&!t.displayAsTable}},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){var t=e.data;return(!o.default.noeval||o.default.protectedEval)&&t.displayAsTable}},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){var t=e.data;return(!o.default.noeval||o.default.protectedEval)&&!t.displayAsTable}},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){var t=e.data;return(!o.default.noeval||o.default.protectedEval)&&t.displayAsTable}},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the footer of the Edit grid.",customConditional:function(){return!o.default.noeval||o.default.protectedEval}},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}];t.default=i},83881:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{type:"checkbox",input:!0,weight:105,key:"rowDrafts",label:"Enable Row Drafts",tooltip:"Allow save rows even if their data is invalid. Errors will occur when try to submit with invalid rows."}]},85201:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n  ',e.util.eachComponent(e.components,(function(r){n+="\n    ",r.hasOwnProperty("tableView")&&!r.tableView||(n+='\n      <div class="col-sm-2">'+(null==(t=e.t(r.label))?"":t)+"</div>\n    "),n+="\n  "})),n+="\n</div>\n"}},41578:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(23370)),o=i(n(85201));function i(e){return e&&e.__esModule?e:{default:e}}var a={row:r.default,header:o.default};t.default=a},23370:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n  ',e.util.eachComponent(e.components,(function(r){n+="\n    ",r.hasOwnProperty("tableView")&&!r.tableView||(n+='\n      <div class="col-sm-2">\n        '+(null==(t=e.getView(r,e.row[r.key]))?"":t)+"\n      </div>\n    "),n+="\n  "})),n+="\n  ",e.self.options.readOnly||(n+='\n    <div class="col-sm-2">\n      <div class="btn-group pull-right">\n        <button class="btn btn-default btn-light btn-sm editRow"><i class="'+(null==(t=e.iconClass("edit"))?"":t)+'"></i></button>\n        <button class="btn btn-danger btn-sm removeRow"><i class="'+(null==(t=e.iconClass("trash"))?"":t)+'"></i></button>\n      </div>\n    </div>\n  '),n+="\n</div>\n"}},16659:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"validation",components:i.default}]].concat(t))},n(92222);var r=a(n(53983)),o=a(n(65799)),i=a(n(92727));function a(e){return e&&e.__esModule?e:{default:e}}},15734:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(21249),n(92222),n(68304),n(24812),n(30489);var o,i=(o=n(8745))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},s.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,r,o,u,p=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(u){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(){return a(this,h),p.apply(this,arguments)}return t=h,n=[{key:"init",value:function(){s(d(h.prototype),"init",this).call(this),this.validators.push("email")}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=s(d(h.prototype),"inputInfo",this);return e.attr.type=this.component.mask?"password":"email",e}},{key:"normalizeValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=s(d(h.prototype),"normalizeValue",this).call(this,e,t),this.options.server&&e&&(e=Array.isArray(e)?e.map((function(e){return e.toLowerCase()})):e.toLowerCase()),e}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/form-building/advanced-components#email",weight:10,schema:h.schema()}}}],n&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=p},65799:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},92727:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{type:"panel",label:"Kickbox",title:"Kickbox",weight:102,key:"kickbox",components:[{type:"checkbox",label:"Enable",tooltip:"Enable Kickbox validation for this email field.",description:"Validate this email using the Kickbox email validation service.",key:"kickbox.enabled"}]}]},52710:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(55768));function i(e){return e&&e.__esModule?e:{default:e}}},99184:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o,i=(o=n(24561))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(h,e);var t,n,r,o,f,p=(o=h,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(f){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function h(){var e;a(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=p.call.apply(p,[this].concat(n))).noField=!0,e}return t=h,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/form-building/layout-components#field-set",showPreview:!1,weight:20,schema:h.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],(n=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"className",get:function(){return"".concat(this.transform("class","form-group")," ").concat(c(d(h.prototype),"className",this))}},{key:"templateName",get:function(){return"fieldset"}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=p},55768:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(e){return e.data.legend}},{weight:1,type:"textfield",input:!0,key:"legend",label:"Legend",placeholder:"Legend",tooltip:"The legend for this Fieldset."}]},59973:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{label:"File",key:"file",weight:5,components:a.default},{key:"validation",components:l.default}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(82422)),i=s(n(31106)),a=s(n(56209)),l=s(n(13415));function s(e){return e&&e.__esModule?e:{default:e}}},58192:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(68304),n(24812),n(30489),n(12419),n(78011),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(49337),n(33321),n(32165),n(78783),n(33948),n(72443),n(39341),n(73706),n(10408),n(65069),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(69070),n(32564),n(66992),n(39575),n(41539),n(82472),n(92990),n(18927),n(33105),n(35035),n(74345),n(7174),n(32846),n(44731),n(77209),n(96319),n(58867),n(37789),n(33739),n(29368),n(14483),n(12056),n(3462),n(30678),n(27462),n(33824),n(55021),n(12974),n(15016),n(69600),n(21249),n(79753),n(89554),n(54747),n(91058),n(68309),n(3843),n(83710),n(73210),n(26699),n(32023),n(40561),n(69826),n(92222),n(56977),n(74916),n(15306),n(23157),n(24603),n(39714),n(64765),n(54678),n(85827),n(47042),n(27207),n(88674),n(5212),n(34553),n(82772);var o,i=d(n(68093)),a=n(82531),l=d(n(33729)),s=d(n(96486)),u=d(n(91459)),c=d(n(82302)),f=d(n(354));function d(e){return e&&e.__esModule?e:{default:e}}function p(){p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new x(r||[]);return o(a,"_invoke",{value:_(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function h(){}function m(){}function y(){}var v={};u(v,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(E([])));g&&g!==t&&n.call(g,a)&&(v=g);var w=y.prototype=h.prototype=Object.create(v);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(o,a,l,s){var u=f(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(O.prototype),u(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function h(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function w(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=O(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},k.apply(this,arguments)}function O(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function S(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var j,x=navigator.camera||o;"undefined"!=typeof window?j=window.HTMLCanvasElement:void 0!==n.g&&(j=n.g.HTMLCanvasElement),j&&!j.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var r=this;setTimeout((function(){for(var o=atob(r.toDataURL(t,n).split(",")[1]),i=o.length,a=new Uint8Array(i),l=0;l<i;l++)a[l]=o.charCodeAt(l);e(new Blob([a],{type:t||"image/png"}))}))}});var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(w,e);var t,n,r,d,m,v=(d=w,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(d);if(m){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function w(){return b(this,w),v.apply(this,arguments)}return t=w,n=[{key:"init",value:function(){k(P(w.prototype),"init",this).call(this),x=navigator.camera||o;var e="undefined"!=typeof FileReader,t="undefined"!=typeof window&&Boolean(window.FormData),n=!("undefined"==typeof window||!window.XMLHttpRequest)&&"upload"in new XMLHttpRequest;this.support={filereader:e,formdata:t,hasWarning:!e||!t||!n,progress:n},this.cameraMode=!1,this.statuses=[],this.fileDropHidden=!1}},{key:"dataReady",get:function(){return this.filesReady||u.default.resolve()}},{key:"defaultSchema",get:function(){return w.schema()}},{key:"loadImage",value:function(e){return this.component.privateDownload&&(e.private=!0),this.fileService.downloadFile(e).then((function(e){return e.url}))}},{key:"emptyValue",get:function(){return[]}},{key:"getValueAsString",value:function(e){return s.default.isArray(e)?s.default.map(e,"originalName").join(", "):s.default.get(e,"originalName","")}},{key:"getValue",value:function(){return this.dataValue}},{key:"defaultValue",get:function(){var e=k(P(w.prototype),"defaultValue",this);return Array.isArray(e)?e:[]}},{key:"hasTypes",get:function(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}},{key:"fileDropHidden",get:function(){return this._fileBrowseHidden},set:function(e){"boolean"!=typeof e||this.component.multiple||(this._fileBrowseHidden=e)}},{key:"render",value:function(){return k(P(w.prototype),"render",this).call(this,this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden}))}},{key:"getVideoStream",value:function(e){return navigator.mediaDevices.getUserMedia({video:y({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},e),audio:!1})}},{key:"stopVideoStream",value:function(e){e.getVideoTracks().forEach((function(e){return e.stop()}))}},{key:"getFrame",value:function(e){return new u.default((function(t){var n=document.createElement("canvas");n.height=e.videoHeight,n.width=e.videoWidth,n.getContext("2d").drawImage(e,0,0),n.toBlob(t)}))}},{key:"startVideo",value:function(){var e=this;this.getVideoStream().then((function(t){e.videoStream=t;var n=e.refs.videoPlayer;if(!n)return console.warn("Video player not found in template."),e.cameraMode=!1,void e.redraw();n.srcObject=t;var r=parseInt(e.component.webcamSize)||320;n.setAttribute("width",r),n.play()})).catch((function(t){console.error(t),e.cameraMode=!1,e.redraw()}))}},{key:"stopVideo",value:function(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}},{key:"takePicture",value:function(){var e=this,t=this.refs.videoPlayer;if(!t)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();this.getFrame(t).then((function(t){t.name="photo-".concat(Date.now(),".png"),e.upload([t]),e.cameraMode=!1,e.redraw()}))}},{key:"browseFiles",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new u.default((function(n){var r=e.ce("input",y({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},t));document.body.appendChild(r),r.addEventListener("change",(function(){n(r.files),document.body.removeChild(r)}),!0),"function"==typeof r.trigger?r.trigger("click"):r.click()}))}},{key:"cameraMode",get:function(){return this._cameraMode},set:function(e){this._cameraMode=e,e?this.startVideo():this.stopVideo()}},{key:"useWebViewCamera",get:function(){return this.imageUpload&&x}},{key:"imageUpload",get:function(){return Boolean(this.component.image)}},{key:"browseOptions",get:function(){var e={};if(this.component.multiple&&(e.multiple=!0),!this.isMobile.any){var t=this.component.filePattern.trim()||"",n="image/*";!this.imageUpload||t&&"*"!==t?this.imageUpload&&!t.includes(n)?e.accept="".concat(n,",").concat(t):e.accept=t:e.accept=n}return e}},{key:"deleteFile",value:function(e){var t=this.component.options,n=void 0===t?{}:t;if(e&&["url","indexeddb"].includes(this.component.storage)){var r=this.fileService;if(r&&"function"==typeof r.deleteFile)r.deleteFile(e,n);else{var o=this.options.formio||this.root&&this.root.formio;o&&o.makeRequest("",e.url,"delete")}}}},{key:"attach",value:function(e){var t=this;this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileStatusRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single"}),this.refs.input=[];var n=k(P(w.prototype),"attach",this).call(this,e);if(this.refs.fileDrop){this.statuses.length||this.refs.fileDrop.removeAttribute("hidden");var r=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(e){this.className="fileSelector",e.preventDefault(),r.upload(e.dataTransfer.files)}))}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",(function(e){e.preventDefault(),t.browseFiles(t.browseOptions).then((function(e){t.upload(e)}))})),this.refs.fileLink.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.getFile(t.dataValue[n])}))})),this.refs.removeLink.forEach((function(e,n){t.addEventListener(e,"click",(function(e){var r=t.dataValue[n];t.deleteFile(r),e.preventDefault(),t.splice(n),t.redraw()}))})),this.refs.fileStatusRemove.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault();var r=t.statuses[n];s.default.pull(t.filesUploading,r.originalName),r.abort&&r.abort(),t.statuses.splice(n,1),t.redraw()}))})),this.refs.galleryButton&&x&&this.addEventListener(this.refs.galleryButton,"click",(function(e){e.preventDefault(),x.getPicture((function(e){window.resolveLocalFileSystemURL(e,(function(e){e.file((function(e){var n=new FileReader;n.onloadend=function(n){var r=new Blob([new Uint8Array(n.target.result)],{type:e.type});r.name=e.name,t.upload([r])},n.readAsArrayBuffer(e)}))}))}),(function(e){console.error(e)}),{sourceType:x.PictureSourceType.PHOTOLIBRARY})})),this.refs.cameraButton&&x&&this.addEventListener(this.refs.cameraButton,"click",(function(e){e.preventDefault(),x.getPicture((function(e){window.resolveLocalFileSystemURL(e,(function(e){e.file((function(e){var n=new FileReader;n.onloadend=function(n){var r=new Blob([new Uint8Array(n.target.result)],{type:e.type});r.name=e.name,t.upload([r])},n.readAsArrayBuffer(e)}))}))}),(function(e){console.error(e)}),{sourceType:x.PictureSourceType.CAMERA,encodingType:x.EncodingType.PNG,mediaType:x.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})})),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",(function(e){e.preventDefault(),t.takePicture()})),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",(function(e){e.preventDefault(),t.cameraMode=!t.cameraMode,t.redraw()})),this.refs.fileType.forEach((function(e,n){t.dataValue[n].fileType=t.dataValue[n].fileType||t.component.fileTypes[0].label,t.addEventListener(e,"change",(function(e){e.preventDefault();var r=t.component.fileTypes.find((function(t){return t.value===e.target.value}));t.dataValue[n].fileType=r.label}))})),this.fileService){var o=[];this.filesReady=new u.default((function(e,n){t.filesReadyResolve=e,t.filesReadyReject=n})),this.refs.fileImage.forEach((function(e,n){o.push(t.loadImage(t.dataValue[n]).then((function(t){return e.src=t})))})),o.length?u.default.all(o).then((function(){t.filesReadyResolve()})).catch((function(){return t.filesReadyReject()})):this.filesReadyResolve()}return n}},{key:"fileSize",value:function(e,t,n,r,o){return"".concat((t=Math,n=t.log,o=n(e)/n(1024)|0,e/t.pow(1024,o)).toFixed(2)," ").concat(o?"".concat("kMGTPEZY"[--o],"B"):"Bytes")}},{key:"globStringToRegex",value:function(e){var t="",n=[];if((e=e.replace(/\s/g,"")).length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{var r=e.split(",");if(r.length>1)for(var o=0;o<r.length;o++){var i=this.globStringToRegex(r[o]);i.regexp?(t+="(".concat(i.regexp,")"),o<r.length-1&&(t+="|")):n=n.concat(i.excludes)}else e.startsWith("!")?n.push("^((?!".concat(this.globStringToRegex(e.substring(1)).regexp,").)*$")):(e.startsWith(".")&&(e="*".concat(e)),t=(t="^".concat(e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&"),"$")).replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}},{key:"translateScalars",value:function(e){if("string"==typeof e){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024);if(e.search(/gb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024*1024);if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e}},{key:"validatePattern",value:function(e,t){if(!t)return!0;var n=this.globStringToRegex(t),r=!0;if(n.regexp&&n.regexp.length){var o=new RegExp(n.regexp,"i");r=!s.default.isNil(e.type)&&o.test(e.type)||!s.default.isNil(e.name)&&o.test(e.name)}return n.excludes.reduce((function(t,n){var r=new RegExp(n,"i");return t&&(s.default.isNil(e.type)||!r.test(e.type))&&(s.default.isNil(e.name)||!r.test(e.name))}),r)}},{key:"validateMinSize",value:function(e,t){return e.size+.1>=this.translateScalars(t)}},{key:"validateMaxSize",value:function(e,t){return e.size-.1<=this.translateScalars(t)}},{key:"upload",value:function(e){var t=this;this.component.multiple||(this.statuses.length&&(this.statuses=[]),e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(e,function(){var e,n=(e=p().mark((function e(n){var r,o,i,l,u,d,h,m,v,b,g,w,k,O,_,S,P,j,x,E,C,A,T,M;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(0,a.uniqueName)(n.name,t.component.fileNameTemplate,t.evalContext()),o=n.name?n.name.replaceAll("<","&lt;").replaceAll(">","&gt;"):n.name,i={abort:function(){return null},originalName:o,name:r,size:n.size,status:"info",message:t.t("Processing file. Please wait..."),hash:""},"true"!==t.root.form.submissionRevisions){e.next=12;break}return t.statuses.push(i),t.redraw(),l=new f.default,e.next=9,new Promise((function(e,r){t.emit("fileUploadingStart"),l.md5(n,(function(t,n){return t?r(t):e(n)}))}));case 9:u=e.sent,t.emit("fileUploadingEnd"),i.hash=u;case 12:if(t.filesUploading||(t.filesUploading=[]),d=t.filesUploading.some((function(e){return e===n.name})),t.filesUploading.push(n.name),h=t.dataValue.some((function(e){return e.originalName===n.name})),m=t.statuses.findIndex((function(e){return e.originalName===n.name&&"error"===e.status})),(h||d)&&(i.status="error",i.message=t.t("File with the same name is already ".concat(d?"being ":"","uploaded"))),-1!==m&&(t.statuses.splice(m,1),t.redraw()),t.component.filePattern&&!t.validatePattern(n,t.component.filePattern)&&(i.status="error",i.message=t.t("File is the wrong type; it must be {{ pattern }}",{pattern:t.component.filePattern})),t.component.fileMinSize&&!t.validateMinSize(n,t.component.fileMinSize)&&(i.status="error",i.message=t.t("File is too small; it must be at least {{ size }}",{size:t.component.fileMinSize})),t.component.fileMaxSize&&!t.validateMaxSize(n,t.component.fileMaxSize)&&(i.status="error",i.message=t.t("File is too big; it must be at most {{ size }}",{size:t.component.fileMaxSize})),v=t.interpolate(t.component.dir||""),(b=t.fileService)||(i.status="error",i.message=t.t("File Service not provided.")),"true"!==t.root.form.submissionRevisions&&(t.statuses.push(i),t.redraw()),"error"===i.status){e.next=62;break}if(t.component.privateDownload&&(n.private=!0),g=t.component,w=g.storage,k=g.options,O=void 0===k?{}:k,_=t.interpolate(t.component.url,{file:i}),S=null,P=null,t.root.everyComponent((function(e){var t,n;(null!==(t=e.component)&&void 0!==t&&t.submissionAccess||null!==(n=e.component)&&void 0!==n&&n.defaultPermission)&&(P=e.component.submissionAccess?e.component.submissionAccess:[{type:e.component.defaultPermission,roles:[]}]).forEach((function(t){S=["admin","write","create"].includes(t.type)?e.component.key:null}))})),j=t.component.fileKey||"file",x=S?t.currentForm.submission.data[S]._id:null,E=null,!t.root.options.fileProcessor){e.next=55;break}return e.prev=37,t.refs.fileProcessingLoader&&(t.refs.fileProcessingLoader.style.display="block"),C=(0,c.default)(t.fileService,t.root.options.fileProcessor),e.next=42,C(n,t.component.properties);case 42:E=e.sent,e.next=52;break;case 45:return e.prev=45,e.t0=e.catch(37),i.status="error",i.message=t.t("File processing has been failed."),t.fileDropHidden=!1,t.redraw(),e.abrupt("return");case 52:return e.prev=52,t.refs.fileProcessingLoader&&(t.refs.fileProcessingLoader.style.display="none"),e.finish(52);case 55:A=0,T=!(!t.component.useMultipartUpload||!t.component.multipart)&&y(y({},t.component.multipart),{},{progressCallback:function(e){A++,i.status="progress",i.progress=parseInt(100*A/e),delete i.message,t.redraw()},changeMessage:function(e){i.message=e,t.redraw()}}),i.message=t.t("Starting upload..."),t.redraw(),M=b.uploadFile(w,E||n,r,v,(function(e){i.status="progress",i.progress=parseInt(100*e.loaded/e.total),delete i.message,t.redraw()}),_,O,j,P,x,(function(){t.emit("fileUploadingStart",M)}),(function(e){return i.abort=e}),T).then((function(e){var n=t.statuses.indexOf(i);-1!==n&&t.statuses.splice(n,1),e.originalName=o,e.hash=i.hash,t.hasValue()||(t.dataValue=[]),t.dataValue.push(e),s.default.pull(t.filesUploading,e.originalName),t.fileDropHidden=!1,t.redraw(),t.triggerChange(),t.emit("fileUploadingEnd",M)})).catch((function(e){i.status="error",i.message="string"==typeof e?e:e.toString(),delete i.progress,t.fileDropHidden=!1,s.default.pull(t.filesUploading,n.name),t.redraw(),t.emit("fileUploadingEnd",M)})),e.next=63;break;case 62:t.filesUploading.splice(t.filesUploading.indexOf(n.name),1);case 63:case"end":return e.stop()}}),e,null,[[37,45,52,55]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,l,"next",e)}function l(e){h(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}()))}},{key:"getFile",value:function(e){var t=this.component.options,n=void 0===t?{}:t,r=this.fileService;if(!r)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),r.downloadFile(e,n).then((function(e){e&&(["base64","indexeddb"].includes(e.storage)?(0,l.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))})).catch((function(e){alert(e)}))}},{key:"focus",value:function(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}},{key:"destroy",value:function(){this.stopVideo(),k(P(w.prototype),"destroy",this).call(this)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"file",label:"Upload",key:"file",image:!1,privateDownload:!1,imageSize:"200",filePattern:"*",fileMinSize:"0KB",fileMaxSize:"1GB",uploadOnly:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"File",group:"premium",icon:"file",documentation:"/userguide/form-building/premium-components#file",weight:100,schema:w.schema()}}},{key:"serverConditionSettings",get:function(){return w.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return y(y({},k(P(w),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.object]}}],n&&g(t.prototype,n),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),w}(i.default);t.default=E},82422:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"defaultValue",ignore:!0}]},31106:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0}]},56209:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249);var r,o=n(19161),i=(r=n(96486))&&r.__esModule?r:{default:r},a=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return i.default.map(o.GlobalFormio.Providers.getProviders("storage"),(function(e,t){return{label:e.title,value:t}}))}}},{type:"checkbox",input:!0,key:"useMultipartUpload",label:"Use the S3 Multipart Upload API",tooltip:"The <a href='https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html'>S3 Multipart Upload API</a> is designed to improve the upload experience for larger objects (> 5GB).",conditional:{json:{"===":[{var:"data.storage"},"s3"]}}},{label:"Multipart Upload",tableView:!1,key:"multipart",type:"container",input:!0,components:[{label:"Part Size (MB)",applyMaskOn:"change",mask:!1,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",truncateMultipleSpaces:!1,validate:{min:5,max:5e3},key:"partSize",type:"number",input:!0,defaultValue:500}],conditional:{json:{"===":[{var:"data.useMultipartUpload"},!0]}}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n      "withCredentials": true,\n      "headers": {\n        "Authorization": "Basic <key>"\n      }\n    }',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:"(optional) { {name} }-{ {guid} }",tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:70}];t.default=a},13415:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},44415:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{label:"Form",key:"form",weight:10,components:i.default},{label:"Data",key:"data",weight:10,components:a.default}]].concat(t))},n(92222);var r=l(n(40970)),o=l(n(70838)),i=l(n(5318)),a=l(n(13498));function l(e){return e&&e.__esModule?e:{default:e}}},11621:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(57327),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(74916),n(15306),n(9494),n(9653),n(47941),n(89554),n(41539),n(54747),n(79753),n(34553),n(68304),n(24812),n(30489);var o=d(n(96486)),i=d(n(64430)),a=d(n(72801)),l=d(n(26729)),s=d(n(91459)),u=n(82531),c=n(19161),f=d(n(71277));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function b(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=w(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},g.apply(this,arguments)}function w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function O(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(b,e);var t,n,r,d,p,m=(d=b,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(d);if(p){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return O(this,e)});function b(){return y(this,b),m.apply(this,arguments)}return t=b,n=[{key:"init",value:function(){if(g(_(b.prototype),"init",this).call(this),this.formObj={display:this.component.display,settings:this.component.settings,components:this.component.components},this.valueChanged=!1,this.subForm=null,this.formSrc="",this.component.src&&(this.formSrc=this.component.src),this.component.src||this.options.formio||!this.component.form&&!this.component.path||(this.component.project?(this.formSrc=c.GlobalFormio.getBaseUrl(),(0,u.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+="/".concat(this.component.project),this.options.project=this.formSrc):(this.formSrc=c.GlobalFormio.getProjectUrl(),this.options.project=this.formSrc),this.component.form?(0,u.isMongoId)(this.component.form)?this.formSrc+="/form/".concat(this.component.form):this.formSrc+="/".concat(this.component.form):this.component.path&&(this.formSrc+="/".concat(this.component.path))),!this.formSrc&&this.options.formio){var e=this.options.formio.formsUrl;if(this.component.form&&(0,u.isMongoId)(this.component.form))this.formSrc="".concat(e,"/").concat(this.component.form);else{var t=this.component.path||this.component.form;this.formSrc="".concat(e.replace(/\/form$/,""),"/").concat(t)}}return this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}},{key:"dataReady",get:function(){return this.subFormReady||s.default.resolve()}},{key:"defaultValue",get:function(){return this.subForm?g(_(b.prototype),"defaultValue",this):null}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"emptyValue",get:function(){return{data:{}}}},{key:"ready",get:function(){return this.subFormReady||s.default.resolve()}},{key:"useOriginalRevision",get:function(){var e,t;return(null===(e=this.component)||void 0===e?void 0:e.useOriginalRevision)&&!(null===(t=this.formObj)||void 0===t||!t.revisions)}},{key:"setFormRevision",value:function(e){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,"");var t=Number.parseInt(e);isNaN(t)?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+="/v/".concat(e))}},{key:"getComponent",value:function(e,t){"data"===(e=(0,u.getArrayFromComponentPath)(e))[0]&&e.shift();var n="".concat(this.path,".data.").concat((0,u.getStringFromComponentPath)(e));if(this.subForm)return this.subForm.getComponent(e,t,n)}},{key:"getSubOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.parentPath="".concat(this.path,".data."),e.events=this.createEmitter(),o.default.set(e,"buttonSettings.showSubmit",!1),this.options?(this.options.base&&(e.base=this.options.base),this.options.project&&(e.project=this.options.project),(this.options.readOnly||this.component.disabled)&&(e.readOnly=this.options.readOnly||this.component.disabled),this.options.breadcrumbSettings&&(e.breadcrumbSettings=this.options.breadcrumbSettings),this.options.buttonSettings&&(e.buttonSettings=o.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(e.viewAsHtml=this.options.viewAsHtml),this.options.language&&(e.language=this.options.language),this.options.template&&(e.template=this.options.template),this.options.templates&&(e.templates=this.options.templates),this.options.renderMode&&(e.renderMode=this.options.renderMode),this.options.attachMode&&(e.attachMode=this.options.attachMode),this.options.iconset&&(e.iconset=this.options.iconset),this.options.fileService&&(e.fileService=this.options.fileService),this.options.onChange&&(e.onChange=this.options.onChange),this.options.preview&&(e.preview=this.options.preview),this.options.saveDraft&&(e.saveDraft=this.options.saveDraft,e.formio=new c.GlobalFormio(this.formSrc)),this.options.saveDraftThrottle&&(e.saveDraftThrottle=this.options.saveDraftThrottle),this.options.skipDraftRestore&&(e.skipDraftRestore=this.options.skipDraftRestore),e):e}},{key:"render",value:function(){if(this.builderMode)return g(_(b.prototype),"render",this).call(this,this.component.label||"Nested form");var e=this.subForm?this.subForm.render():this.renderTemplate("loading");return g(_(b.prototype),"render",this).call(this,e)}},{key:"asString",value:function(e){return this.getValueAsString(e)}},{key:"getValueAsString",value:function(e,t){if(!e)return"No data provided";if(!e.data&&e._id)return e._id;if(!e.data||!Object.keys(e.data).length)return"No data provided";if(null!=t&&t.email){var n='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return this.everyComponent((function(e){e.isInputComponent&&e.visible&&!e.skipInEmail&&(n+='\n            <tr>\n              <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n              <td style="width:100%;padding:5px 10px;">').concat(e.getView(e.dataValue,t),"</td>\n            </tr>\n          "))}),h(h({},t),{},{fromRoot:!0})),n+="\n          </tbody>\n        </table>\n      "}return o.default.isEmpty(e)?"":"[Complex Data]"}},{key:"attach",value:function(e){var t=this;return this.builderMode?g(_(b.prototype),"attach",this).call(this,e):g(_(b.prototype),"attach",this).call(this,e).then((function(){return!t.isSubFormLazyLoad()||t.hasLoadedForm||t.subFormLoading||t.createSubForm(!0),t.subFormReady.then((function(){if(t.empty(e),t.options.builder)t.setContent(e,t.ce("div",{class:"text-muted text-center p-2"},t.text(t.formObj.title)));else{if(t.setContent(e,t.render()),t.subForm&&(t.isNestedWizard&&(e=t.root.element),t.subForm.attach(e),t.valueChanged=t.hasSetValue,t.valueChanged||"submitted"===t.dataValue.state?t.restoreValue():t.setDefaultValue()),!t.builderMode&&t.component.modalEdit){var n=!!t.componentModal&&t.componentModal.isOpened,r=n?t.componentModal.currentValue:t.dataValue;t.componentModal=new a.default(t,e,n,r),t.setOpenModalElement()}t.calculateValue()}}))}))}},{key:"detach",value:function(){this.subForm&&this.subForm.detach(),g(_(b.prototype),"detach",this).call(this)}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){var t=this;this._currentForm=e,this.subForm&&this.subForm.getComponents().forEach((function(e){e.currentForm=t}))}},{key:"hasLoadedForm",get:function(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}},{key:"isRevisionChanged",get:function(){return o.default.isNumber(this.subFormRevision)&&o.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}},{key:"destroy",value:function(){this.subForm&&(this.subForm.destroy(),this.subForm=null,this.subFormReady=null),g(_(b.prototype),"destroy",this).call(this)}},{key:"redraw",value:function(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),g(_(b.prototype),"redraw",this).call(this)}},{key:"everyComponent",value:function(){var e;this.subForm&&(e=this.subForm).everyComponent.apply(e,arguments)}},{key:"setSubFormDisabled",value:function(e){e.disabled=this.disabled}},{key:"updateSubWizards",value:function(e){var t,n,r=this;if(this.isNestedWizard&&null!==(t=this.root)&&void 0!==t&&t.subWizards&&"wizard"===(null==e||null===(n=e._form)||void 0===n?void 0:n.display)){var o=this.root.subWizards.findIndex((function(e){return e.component.form===r.component.form}));-1!==o?this.root.subWizards[o]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e)}}},{key:"createSubForm",value:function(e){var t=this;return this.subFormReady=this.loadSubForm(e).then((function(e){if(e)return(0,u.eachComponent)(e.components,(function(e){t.hideSubmitButton(e)})),t.subForm&&t.subForm.destroy(),new f.default(e,t.getSubOptions()).ready.then((function(e){return t.subForm=e,t.subForm.currentForm=t,t.subForm.parent=t,t.subForm.parentVisible=t.visible,t.subForm.on("change",(function(){t.subForm&&(t.dataValue=t.subForm.getValue(),t.triggerChange({noEmit:!0}))})),t.subForm.url=t.formSrc,t.subForm.nosubmit=!0,t.subForm.root=t.root,t.subForm.localRoot=t.isNestedWizard?t.localRoot:t.subForm,t.restoreValue(),t.valueChanged=t.hasSetValue,t.onChange(),t.subForm}))})).then((function(e){return t.updateSubWizards(e),e})),this.subFormReady}},{key:"hideSubmitButton",value:function(e){"button"===e.type&&("submit"===e.action||!e.action)&&(e.hidden=!0)}},{key:"loadSubForm",value:function(e){var t,n=this;return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e?s.default.resolve():!this.hasLoadedForm||this.isRevisionChanged||this.options.pdf&&null!==(t=this.component)&&void 0!==t&&t.useOriginalRevision&&o.default.isNull(this.subForm)&&!this.subFormLoading?this.formSrc?(this.subFormLoading=!0,new c.GlobalFormio(this.formSrc).loadForm({params:{live:1}}).then((function(e){return n.formObj=e,n.options.pdf&&n.component.useOriginalRevision&&(n.formObj.display="form"),n.subFormLoading=!1,e})).catch((function(e){return console.log(e),null}))):s.default.resolve():(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),s.default.resolve(this.formObj))}},{key:"subFormData",get:function(){var e;return(null===(e=this.dataValue)||void 0===e?void 0:e.data)||{}}},{key:"checkComponentValidity",value:function(e,t,n,r){var o=(r=r||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,t,null,o):g(_(b.prototype),"checkComponentValidity",this).call(this,e,t,n,r)}},{key:"checkComponentConditions",value:function(e,t,n){var r=this,o=g(_(b.prototype),"checkComponentConditions",this).call(this,e,t,n);return o?this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then((function(){if(r.subForm)return r.subForm.checkConditions(r.subFormData)})),o):o}},{key:"calculateValue",value:function(e,t,n){return this.subForm?this.subForm.calculateValue(this.subFormData,t):g(_(b.prototype),"calculateValue",this).call(this,e,t,n)}},{key:"setPristine",value:function(e){g(_(b.prototype),"setPristine",this).call(this,e),this.subForm&&this.subForm.setPristine(e)}},{key:"shouldSubmit",get:function(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}},{key:"getSubFormData",value:function(){return"pdf"===o.default.get(this.subForm,"form.display")?this.subForm.getSubmission():s.default.resolve(this.dataValue)}},{key:"submitSubForm",value:function(e){var t=this;return this.shouldSubmit?this.subFormReady.then((function(){return t.subForm?(t.subForm.nosubmit=!1,t.subForm.submitForm().then((function(e){return t.subForm.loading=!1,t.subForm.showAllErrors=!1,t.dataValue=e.submission,t.dataValue})).catch((function(n){return t.subForm.showAllErrors=!0,e?(t.subForm.onSubmissionError(n),s.default.reject(n)):{}}))):t.dataValue})):this.getSubFormData()}},{key:"beforePage",value:function(e){var t=this;return e?this.submitSubForm(!0).then((function(){return g(_(b.prototype),"beforePage",t).call(t,e)})):g(_(b.prototype),"beforePage",this).call(this,e)}},{key:"beforeSubmit",value:function(){var e,t,n,r=this,o=this.dataValue;null!==(e=this.subForm)&&void 0!==e&&e.draftEnabled&&null!==(t=this.subForm.triggerSaveDraft)&&void 0!==t&&t.cancel&&this.subForm.triggerSaveDraft.cancel();var i=o&&o._id&&o.form,a=this.options.saveDraft&&"draft"===o.state;return!i||null!==(n=this.subForm)&&void 0!==n&&n.wizard||a?this.submitSubForm(!1).then((function(){return r.dataValue})).then((function(){return g(_(b.prototype),"beforeSubmit",r).call(r)})):(this.dataValue=o,s.default.resolve(this.dataValue))}},{key:"isSubFormLazyLoad",value:function(){var e,t;return"wizard"===(null===(e=this.root)||void 0===e||null===(t=e._form)||void 0===t?void 0:t.display)&&this.component.lazyLoad}},{key:"isHidden",value:function(){return!this.visible||!g(_(b.prototype),"checkConditions",this).call(this,this.rootValue)}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=g(_(b.prototype),"setValue",this).call(this,e,n);if(this.valueChanged=!0,this.subForm){var i,a=e._frid?"_frid":"_vid",l=this.useOriginalRevision&&(o.default.isNumber(e[a])||o.default.isNumber(e._fvid))&&o.default.isNumber(null===(i=this.subForm.form)||void 0===i?void 0:i[a])&&e._fvid!==this.subForm.form[a];l?(this.setFormRevision(e._frid||e._fvid),this.createSubForm().then((function(){t.attach(t.element)}))):this.setSubFormValue(e,n)}return r}},{key:"setSubFormValue",value:function(e,t){if(e&&e._id&&this.subForm.formio&&o.default.isEmpty(e.data)){var n=e.form||this.formObj.form||this.component.form,r="".concat(this.subForm.formio.formsUrl,"/").concat(n,"/submission/").concat(e._id);this.subForm.setUrl(r,this.options),this.subForm.loadSubmission().catch((function(t){console.error("Unable to load subform submission ".concat(e._id,":"),t)}))}else this.subForm.setValue(e,t)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return null===e||o.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(null==e?void 0:e.data)&&!(null!=e&&e._id)}},{key:"areAllComponentsEmpty",value:function(e){var t=!0;return this.subForm?this.subForm.everyComponent((function(n){var r=o.default.get(e,n.key);t&=n.isEmpty(r)})):t=!1,t}},{key:"getValue",value:function(){return this.subForm?this.subForm.getValue():this.dataValue}},{key:"errors",get:function(){var e=g(_(b.prototype),"errors",this);return this.subForm&&(e=e.concat(this.subForm.errors)),e}},{key:"updateSubFormVisibility",value:function(){this.subForm&&(this.subForm.parentVisible=this.visible)}},{key:"isNestedWizard",get:function(){var e,t,n,r,o;return"wizard"===(null===(e=this.subForm)||void 0===e||null===(t=e._form)||void 0===t?void 0:t.display)&&"wizard"===(null===(n=this.parent)||void 0===n||null===(r=n.parent)||void 0===r||null===(o=r._form)||void 0===o?void 0:o.display)}},{key:"visible",get:function(){return g(_(b.prototype),"visible",this)},set:function(e){var t=this,n=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((function(){t.updateSubFormVisibility(),t.clearOnHide()})),void this.redraw();this.updateSubFormVisibility(),this.clearOnHide(),n?this.rebuild():this.redraw()}!e&&n&&this.root.redraw()}},{key:"parentVisible",get:function(){return g(_(b.prototype),"parentVisible",this)},set:function(e){var t=this;if(this._parentVisible!==e){if(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((function(){t.updateSubFormVisibility()})),void this.redraw();this.updateSubFormVisibility(),this.redraw()}}},{key:"isInternalEvent",value:function(e){switch(e){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}},{key:"createEmitter",value:function(){var e=new l.default,t=e.emit,n=this;return e.emit=function(e){for(var r=e.replace("".concat(n.options.namespace,"."),""),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];t.call.apply(t,[this,e].concat(i)),n.isInternalEvent(r)||n.emit.apply(n,[r].concat(i))},e}},{key:"deleteValue",value:function(){g(_(b.prototype),"setValue",this).call(this,null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/form-building/premium-components#nested-form",weight:110,schema:b.schema()}}},{key:"savedValueTypes",value:function(){return[u.componentValueTypes.object]}}],n&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),b}(i.default);t.default=S},13498:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=[o.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",120,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),o.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0}];t.default=i},70838:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},5318:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(69826),n(41539),t.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"<span>{{ item.title }}</span>",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional:function(e){var t,n,r,o,i=e.instance,a=e.data,l=null===(t=i.root)||void 0===t||null===(n=t.getComponent("form"))||void 0===n?void 0:n.defaultDownloadedResources.find((function(e){return e._id===a.form})),s="wizard";return(null===(r=i.options)||void 0===r||null===(o=r.editForm)||void 0===o?void 0:o.display)===s&&l&&l.display!==s}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"<span>{{ item._vid }}</span>",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},45574:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(40365)),i=a(n(42111));function a(e){return e&&e.__esModule?e:{default:e}}},13089:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o,i=(o=n(63820))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},s.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,r,o,u,p=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(u){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(){return a(this,h),p.apply(this,arguments)}return t=h,n=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=s(d(h.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}},{key:"skipInEmail",get:function(){return!0}},{key:"validateMultiple",value:function(){return!1}},{key:"labelIsHidden",value:function(){return!0}},{key:"emptyValue",get:function(){return""}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.updateValue(e,t)}},{key:"getValue",value:function(){return this.dataValue}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"hidden",tableView:!1,inputType:"hidden"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/form-building/data-components#hidden",showPreview:!1,schema:h.schema()}}}],n&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=p},42111:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},40365:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"hidden",ignore:!0},{key:"tableView",ignore:!0},{key:"disabled",ignore:!0}]},16494:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:i.default}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(97234)),i=a(n(75367));function a(e){return e&&e.__esModule?e:{default:e}}},50919:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(73210),n(74916),n(15306),n(21249),n(41539),n(88674),n(92222),n(68304),n(24812),n(30489);var o=a(n(64430)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(m,e);var t,n,r,a,c,h=(a=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(c){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){return l(this,m),h.apply(this,arguments)}return t=m,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{label:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/form-building/layout-components#html-element",showPreview:!1,schema:m.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],(n=[{key:"defaultSchema",get:function(){return m.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return" ".concat(this.component.content," ");var e=i.default.get(this.root,"submission",{}),t=this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):"";return this.sanitize(t,this.shouldSanitizeValue)}},{key:"singleTags",get:function(){return["br","img","hr"]}},{key:"checkRefreshOn",value:function(e){u(p(m.prototype),"checkRefreshOn",this).call(this,e),!this.builderMode&&this.component.refreshOnChange&&this.element&&!i.default.isUndefined(e)&&(i.default.isBoolean(e)&&e||!i.default.isEmpty(e))&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}},{key:"renderContent",value:function(){var e=this,t=i.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map((function(n){return{attr:n.attr,value:e.interpolate(n.value,{metadata:t.metadata||{},submission:t,data:e.rootValue,row:e.data})}})),content:this.content,singleTags:this.singleTags})}},{key:"render",value:function(){return u(p(m.prototype),"render",this).call(this,this.renderContent())}},{key:"dataReady",get:function(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||Promise.resolve()}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{html:"single"}),this.dataReady.then((function(){t.refs.html&&t.setContent(t.refs.html,t.content)})),u(p(m.prototype),"attach",this).call(this,e)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.default);t.default=h},97234:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{type:"textfield",input:!0,key:"tag",weight:50,label:"HTML Tag",placeholder:"HTML Element Tag",tooltip:"The tag of this HTML element."},{type:"textfield",input:!0,key:"className",weight:60,label:"CSS Class",placeholder:"CSS Class",tooltip:"The CSS class for this HTML element."},{type:"datagrid",input:!0,label:"Attributes",key:"attrs",tooltip:"The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.",weight:70,components:[{label:"Attribute",key:"attr",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textarea",input:!0,editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:80},{weight:85,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},75367:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"content",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(e){return"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}}]}]}]}]},15178:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=X(n(78621)),o=X(n(83696)),i=X(n(37784)),a=X(n(67559)),l=X(n(64430)),s=X(n(72801)),u=X(n(20787)),c=X(n(37419)),f=X(n(29147)),d=X(n(56742)),p=X(n(93560)),h=X(n(54263)),m=X(n(34160)),y=X(n(1870)),v=X(n(15734)),b=X(n(99184)),g=X(n(58192)),w=X(n(11621)),k=X(n(13089)),O=X(n(63820)),_=X(n(99606)),S=X(n(68093)),P=X(n(57700)),j=X(n(50919)),x=X(n(24561)),E=X(n(67329)),C=X(n(99495)),A=X(n(40996)),T=X(n(95548)),M=X(n(40736)),R=X(n(55089)),D=X(n(44311)),I=X(n(30210)),L=X(n(66572)),V=X(n(14224)),N=X(n(59024)),F=X(n(14051)),B=X(n(55655)),U=X(n(26135)),z=X(n(53700)),H=X(n(16186)),q=X(n(6610)),W=X(n(8745)),K=X(n(8948)),Y=X(n(5570)),G=X(n(37978)),$=X(n(12151)),J=X(n(86267));function X(e){return e&&e.__esModule?e:{default:e}}var Z={address:r.default,base:l.default,component:l.default,componentmodal:s.default,button:o.default,checkbox:i.default,columns:a.default,container:u.default,content:c.default,currency:f.default,datagrid:d.default,datamap:p.default,datetime:h.default,day:m.default,editgrid:y.default,email:v.default,input:O.default,field:S.default,multivalue:_.default,list:P.default,fieldset:b.default,file:g.default,form:w.default,hidden:k.default,htmlelement:j.default,nested:x.default,nesteddata:E.default,nestedarray:C.default,number:A.default,panel:T.default,password:M.default,phoneNumber:R.default,radio:D.default,recaptcha:I.default,resource:L.default,select:N.default,selectboxes:V.default,signature:F.default,survey:B.default,table:U.default,tabs:z.default,tags:H.default,textarea:q.default,textfield:W.default,time:K.default,tree:Y.default,unknown:G.default,url:$.default,well:J.default};t.default=Z},1512:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(53983)),o=l(n(38519)),i=l(n(30973)),a=l(n(52372));function l(e){return e&&e.__esModule?e:{default:e}}},40996:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(74916),n(15306),n(69600),n(23123),n(91058),n(54678),n(26699),n(32023),n(82481),n(83710),n(41539),n(39714),n(79753),n(21249),n(68304),n(24812),n(30489);var o=n(43281),i=n(47853),a=u(n(96486)),l=u(n(63820)),s=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function b(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=w(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},g.apply(this,arguments)}function w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(y,e);var t,n,r,u,f,p=(u=y,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(u);if(f){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function y(){var e,t;h(this,y);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];(t=p.call.apply(p,[this].concat(r))).validators=t.validators.concat(["min","max"]);var i,l,u=(0,s.getNumberSeparators)(t.options.language||navigator.language);t.decimalSeparator=t.options.decimalSeparator=t.component.decimalSymbol||t.options.decimalSeparator||(null===(e=t.options.properties)||void 0===e?void 0:e.decimalSeparator)||u.decimalSeparator,t.component.delimiter?t.delimiter=t.component.thousandsSeparator||(null===(i=t.options.properties)||void 0===i?void 0:i.thousandsSeparator)||t.options.thousandsSeparator||u.delimiter:((t.component.thousandsSeparator||null!==(l=t.options.properties)&&void 0!==l&&l.thousandsSeparator||t.options.thousandsSeparator)&&console.warn("In order for thousands separator to work properly, you must set the delimiter to true in the component json"),t.delimiter="");var c=a.default.get(t.component,"requireDecimal",!1);if(t.decimalLimit=(0,s.getNumberDecimalLimit)(t.component,c?2:20),a.default.has(t.options,"languageOverride.".concat(t.options.language))){var f=a.default.get(t.options,"languageOverride.".concat(t.options.language));t.decimalSeparator=f.decimalSeparator,t.delimiter=f.delimiter}return t.numberMask=t.createNumberMask(),t}return t=y,n=[{key:"createNumberMask",value:function(){return(0,o.createNumberMask)({prefix:"",suffix:"",requireDecimal:a.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:this.delimiter||"",decimalSymbol:a.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:a.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:a.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"defaultValue",get:function(){var e=g(k(y.prototype),"defaultValue",this);return e||0!==this.component.defaultValue||(e=this.component.defaultValue),!this.component.multiple&&a.default.isArray(e)&&(e=e[0]||0===e[0]?e[0]:null),e}},{key:"isDecimalAllowed",value:function(){return a.default.get(this.component,"allowDecimal",!(this.component.validate&&this.component.validate.integer))}},{key:"parseNumber",value:function(e){return e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."),this.component.validate&&this.component.validate.integer?parseInt(e,10):parseFloat(e)}},{key:"setInputMask",value:function(e){var t="[0-9";t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,i.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"inputInfo",get:function(){var e=g(k(y.prototype),"inputInfo",this);return this.component.mask?e.attr.type="password":e.attr.type="text",e.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",e.changeEvent="input",e}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return null;var t=this.refs.input[e].value;return t&&"-_"!==t?this.parseNumber(t):null}},{key:"setValueAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g(k(y.prototype),"setValueAt",this).call(this,e,this.formatValue(this.parseValue(t)),n)}},{key:"parseValue",value:function(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));var t=parseFloat(e);return a.default.isNaN(t)?null:String(t).replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?"".concat(e).concat(this.decimalSeparator).concat(a.default.repeat("0",this.decimalLimit)):this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?"".concat(e).concat(a.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)):e}},{key:"focus",value:function(){var e=this.refs.input[0];e&&(g(k(y.prototype),"focus",this).call(this),e.setSelectionRange(0,e.value.length))}},{key:"getMaskedValue",value:function(e){return(e=null===e?"0":e.toString()).includes(".")&&"."!==this.decimalSeparator&&(e=e.replace(".",this.decimalSeparator)),(0,i.conformToMask)(this.formatValue(e),this.numberMask).conformedValue}},{key:"getValueAsString",value:function(e,t){var n=this;return e||0===e?(e=this.getWidgetValueAsString(e,t),Array.isArray(e)?e.map((function(e){return n.getMaskedValue(e)})).join(", "):this.getMaskedValue(e)):""}},{key:"addFocusBlurEvents",value:function(e){var t=this;g(k(y.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(t.formatValue(t.parseValue(e.value)))}))}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/form-building/form-components#number",weight:30,schema:y.schema()}}},{key:"serverConditionSettings",get:function(){return y.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return d(d({},g(k(y),"conditionOperatorsSettings",this)),{},{operators:[].concat((e=g(k(y),"conditionOperatorsSettings",this).operators,function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual"]),valueComponent:function(e){return d(d({},e),{},{type:"number"})}});var e}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.number]}}],n&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(l.default);t.default=O},30973:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"checkbox",input:!0,weight:70,key:"delimiter",label:"Use Thousands Separator",tooltip:"Separate thousands by local delimiter."},{type:"number",input:!0,weight:80,key:"decimalLimit",label:"Decimal Places",tooltip:"The maximum number of decimal places."},{type:"checkbox",input:!0,weight:90,key:"requireDecimal",label:"Require Decimal",tooltip:"Always show decimals, even if trailing zeros."},{key:"case",ignore:!0}]},38519:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},52372:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"unique",ignore:!0},{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0},{type:"number",label:"Minimum Value",key:"validate.min",input:!0,placeholder:"Minimum Value",tooltip:"The minimum value this field must have before the form can be submitted.",weight:150},{type:"number",label:"Maximum Value",key:"validate.max",input:!0,placeholder:"Maximum Value",tooltip:"The maximum value this field can have before the form can be submitted.",weight:160}]},81089:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"conditional",components:i.default}]].concat(t))},n(92222);var r=a(n(40970)),o=a(n(74893)),i=a(n(41649));function a(e){return e&&e.__esModule?e:{default:e}}},95548:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(74916),n(15306),n(68304),n(24812),n(30489);var o=l(n(24561)),i=n(82531),a=l(n(11621));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(v,e);var t,n,r,l,f,y=(l=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(l);if(f){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function v(){var e;s(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=y.call.apply(y,[this].concat(n))).noField=!0,e.on("componentError",(function(){(0,i.hasInvalidComponent)(h(e))&&e.collapsed&&(e.collapsed=!1)})),e}return t=v,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{label:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/form-building/layout-components#panel",weight:30,schema:v.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],(n=[{key:"defaultSchema",get:function(){return v.schema()}},{key:"templateName",get:function(){return"panel"}},{key:"getComponent",value:function(e,t,n){var r;return(null===(r=this.root)||void 0===r?void 0:r.parent)instanceof a.default&&(e=e.replace(this._parentPath,"")),c(m(v.prototype),"getComponent",this).call(this,e,t,n)}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.default);t.default=y},41649:function(e,t,n){"use strict";n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(5212),n(41539),n(96649),n(96078),n(82526),n(41817),n(9653);var r=s(n(61550)),o=s(n(18446)),i=s(n(57557)),a=s(n(91966)),l=s(n(3674));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=[f(f({},r.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n  <p>You must assign the <strong>next</strong> variable with the API key of the next page.</p>\n  <p>The global variable <strong>data</strong> is provided, and allows you to access the data of any form component, by using its API key.</p>\n  <p>Also <strong>moment</strong> library is available, and allows you to manipulate dates in a convenient way.</p>\n  <h5>Example</h5><pre>next = data.addComment ? 'page3' : 'page4';</pre>\n","\n  <p>Submission data is available as JsonLogic variables, with the same api key as your components.</p>\n")),{},{customConditional:function(e){var t=!1;if("wizard"===e.instance.options.editForm.display){var n=e.instance.options.editForm.components,r=e.instance.options.editComponent;n&&r&&(t=n.some((function(e){var t=(0,a.default)((0,l.default)(e),(0,l.default)(r))||[];return t.push("components"),(0,o.default)((0,i.default)(e,t),(0,i.default)(r,t))})))}return t}})];t.default=p},74893:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(5212),n(41539);var r=l(n(18446)),o=l(n(57557)),i=l(n(91966)),a=l(n(3674));function l(e){return e&&e.__esModule?e:{default:e}}var s=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(e){return e.data.title}},{key:"tabindex",hidden:!0},{weight:1,type:"textfield",input:!0,placeholder:"Panel Title",label:"Title",key:"title",tooltip:"The title text that appears in the header of this panel."},{weight:20,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field."},{weight:30,type:"select",input:!0,label:"Theme",key:"theme",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{weight:40,type:"fieldset",input:!1,components:[{type:"select",input:!0,label:"Breadcrumb Type",key:"breadcrumb",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Condensed",value:"condensed"},{label:"Hidden",value:"none"}]}},{input:!0,type:"checkbox",label:"Allow click on Breadcrumb",key:"breadcrumbClickable",defaultValue:!0,conditional:{json:{"!==":[{var:"data.breadcrumb"},"none"]}}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional:function(e){var t=!1;if("wizard"===e.instance.options.editForm.display){var n=e.instance.options.editForm.components,l=e.instance.options.editComponent;n&&l&&(t=n.some((function(e){var t=(0,i.default)((0,a.default)(e),(0,a.default)(l))||[];return t.push("components"),(0,r.default)((0,o.default)(e,t),(0,o.default)(l,t))})))}return t}},{weight:650,type:"checkbox",label:"Collapsible",tooltip:"If checked, this will turn this Panel into a collapsible panel.",key:"collapsible",input:!0},{weight:651,type:"checkbox",label:"Initially Collapsed",tooltip:"Determines the initial collapsed state of this Panel.",key:"collapsed",input:!0,conditional:{json:{"===":[{var:"data.collapsible"},!0]}}}];t.default=s},93268:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:i.default},{key:"display",components:o.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(53983)),o=l(n(25175)),i=l(n(16170)),a=l(n(13462));function l(e){return e&&e.__esModule?e:{default:e}}},40736:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o=a(n(8745)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(m,e);var t,n,r,a,c,h=(a=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(c){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){return l(this,m),h.apply(this,arguments)}return t=m,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"password",label:"Password",key:"password",protected:!0,tableView:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/form-building/form-components#password",weight:40,schema:m.schema()}}}],(n=[{key:"defaultSchema",get:function(){return i.default.omit(m.schema(),["protected","tableView"])}},{key:"inputInfo",get:function(){var e=u(p(m.prototype),"inputInfo",this);return e.attr.type="password",e}},{key:"autocompleteDisableAttrName",get:function(){return"new-password"}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.default);t.default=h},16170:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"inputFormat",ignore:!0},{key:"persistent",ignore:!0},{key:"protected",ignore:!0},{key:"dbIndex",ignore:!0},{key:"encrypted",ignore:!0},{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"customDefaultValuePanel",ignore:!0},{key:"calculateValuePanel",ignore:!0},{key:"passwordInfo",weight:0,type:"htmlelement",tag:"div",className:"alert alert-info",content:"Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API."}]},25175:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},13462:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},54570:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"validation",components:o.default}]].concat(t))},n(92222);var r=i(n(53983)),o=i(n(24482));function i(e){return e&&e.__esModule?e:{default:e}}},55089:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o=a(n(8745)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(m,e);var t,n,r,a,c,h=(a=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(c){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){return l(this,m),h.apply(this,arguments)}return t=m,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/form-building/advanced-components#phone-number",schema:m.schema()}}}],(n=[{key:"defaultSchema",get:function(){return m.schema()}},{key:"getValueAsString",value:function(e,t){return null!=t&&t.email&&this.visible&&!this.skipInEmail&&i.default.isObject(e)?'\n        <table border="1" style="width:100%">\n          <tbody>\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e.maskName,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(e.value,"</td>\n          </tr>\n          </tbody>\n        </table>\n      "):u(p(m.prototype),"getValueAsString",this).call(this,e,t)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.default);t.default=h},24482:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},20481:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(12775)),o=l(n(15720)),i=l(n(4473)),a=l(n(17325));function l(e){return e&&e.__esModule?e:{default:e}}},44311:function(e,t,n){"use strict";n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(79753),n(32165),n(78783),n(91038),n(47042),n(74916),n(47941),n(57327),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309),n(92222),n(66992),n(41539),n(33948),n(89554),n(54747),n(83710),n(39714),n(5212),n(34553),n(69826),n(54678),n(9653),n(68304),n(24812),n(30489);var r=s(n(96486)),o=s(n(57700)),i=s(n(91459)),a=n(19161),l=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===d(t)?t:String(t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function b(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=w(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},g.apply(this,arguments)}function w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(y,e);var t,n,s,u,f,h=(u=y,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(u);if(f){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function y(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(r=h.call(this,e,t,n)).previousValue=r.dataValue||null,r}return t=y,n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"defaultValue",get:function(){var e=g(k(y.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"inputInfo",get:function(){var e,t=g(k(y.prototype),"elementInfo",this).call(this);return t.type="input",t.changeEvent="click",t.attr.class="form-check-input",t.attr.name=t.attr.name+="[".concat(null===(e=this.root)||void 0===e?void 0:e.id,"-").concat(this.id,"]"),t}},{key:"emptyValue",get:function(){return""}},{key:"isRadio",get:function(){return"radio"===this.component.inputType}},{key:"optionSelectedClass",get:function(){return"radio-selected"}},{key:"listData",get:function(){var e=r.default.get(this.root,"submission.metadata.listData",{});return r.default.get(e,this.path)}},{key:"init",value:function(){var e=this;g(k(y.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems","availableValueProperty"]);var t=[],n=r.default.debounce((function(){t=[];for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.updateItems.apply(e,r)}),100);this.triggerUpdate=function(){"function"==typeof e.itemsLoadedResolve&&e.itemsLoadedResolve(),e.itemsLoaded=new i.default((function(t){e.itemsLoadedResolve=t}));for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return o.length&&(t=o),n.apply(void 0,p(t))},this.itemsLoaded=new i.default((function(t){e.itemsLoadedResolve=t})),this.optionsLoaded=!1,this.loadedOptions=[],this.getTemplateKeys()}},{key:"render",value:function(){return g(k(y.prototype),"render",this).call(this,this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:"values"===this.component.dataSrc?this.component.values:this.loadedOptions,value:this.dataValue,row:this.row}))}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach((function(e,n){if(t.addEventListener(e,t.inputInfo.changeEvent,(function(){t.updateValue(null,{modified:!0})})),t.component.values[n]&&t.addShortcut(e,t.component.values[n].shortcut),t.isRadio){var o=t.dataValue;if(r.default.isString(t.dataValue)||(o=r.default.toString(t.dataValue)),t.isSelectURL&&r.default.isObject(t.loadedOptions[n].value)){var i="string"===t.component.dataType?JSON.stringify(t.loadedOptions[n].value):t.loadedOptions[n].value;e.checked=r.default.isEqual(i,t.dataValue)}else e.checked=o===e.value&&(e.value||"url"!==t.component.dataSrc);t.addEventListener(e,"keyup",(function(n){" "===n.key&&o===e.value&&(n.preventDefault(),t.updateValue(null,{modified:!0}))}))}})),this.triggerUpdate(),this.setSelectedClasses(),g(k(y.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){var t=this;e&&this.refs.input&&this.refs.input.forEach((function(e,n){t.component.values[n]&&t.removeShortcut(e,t.component.values[n].shortcut)})),g(k(y.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var t=this.dataValue;return this.refs.input.forEach((function(n,o){n.checked&&(t=e.isSelectURL&&r.default.isObject(e.loadedOptions[o].value)?e.loadedOptions[o].value:n.value)})),t}},{key:"validateValueProperty",value:function(){var e=this;return"values"===this.component.dataSrc||!r.default.some(this.refs.wrapper,(function(t,n){return e.refs.input[n].checked&&e.loadedOptions[n].invalid}))}},{key:"validateValueAvailability",value:function(e,t){var n=this;if(!(0,l.boolValue)(e)||!t)return!0;var r=this.component.values;return!!r&&-1!==r.findIndex((function(e){var r=e.value;return n.normalizeValue(r)===t}))}},{key:"getValueAsString",value:function(e){if(r.default.isObject(e)?e=JSON.stringify(e):r.default.isString(e)||(e=r.default.toString(e)),"values"!==this.component.dataSrc)return e;var t=r.default.find(this.component.values,(function(t){return t.value===e}));return r.default.get(t,"label","")}},{key:"setValueAt",value:function(e,t){if(this.refs.input&&this.refs.input[e]&&null!=t){var n=this.refs.input[e].value;this.refs.input[e].checked=n===t.toString()}}},{key:"loadItems",value:function(e,t,n,r,o,i){var l=this;this.optionsLoaded||(this.shouldLoad||!this.listData?("GET"===(o=o||"GET").toUpperCase()&&(i=null),r.ignoreCache=this.component.ignoreCache,r.header=n,this.loading=!0,a.GlobalFormio.makeRequest(this.options.formio,"select",e,o,i,r).then((function(e){l.loading=!1,l.error=null,l.setItems(e),l.optionsLoaded=!0,l.redraw()})).catch((function(e){l.handleLoadingError(e)}))):this.loadItemsFromMetadata())}},{key:"loadItemsFromMetadata",value:function(){var e=this;this.listData.forEach((function(t,n){e.loadedOptions[n]={label:e.itemTemplate(t)},r.default.isEqual(t,e.selectData||r.default.pick(e.dataValue,r.default.keys(t)))&&(e.loadedOptions[n].value=e.dataValue)})),this.optionsLoaded=!0,this.redraw()}},{key:"setItems",value:function(e){var t=this,n=[];if(null==e||e.forEach((function(e,o){t.loadedOptions[o]={value:t.component.valueProperty?e[t.component.valueProperty]:e,label:t.component.valueProperty?t.itemTemplate(e,e[t.component.valueProperty]):t.itemTemplate(e,e,o)},n.push(t.templateData[t.component.valueProperty?e[t.component.valueProperty]:o]),!t.component.valueProperty&&t.isRadio||!(r.default.isUndefined(e[t.component.valueProperty])||!t.isRadio&&r.default.isObject(e[t.component.valueProperty])||!t.isRadio&&r.default.isBoolean(e[t.component.valueProperty]))||(t.loadedOptions[o].invalid=!0)})),this.isSelectURL){var o=this.root.submission;o.metadata||(o.metadata={}),o.metadata.listData||(o.metadata.listData={}),r.default.set(o.metadata.listData,this.path,n)}}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var t=this.dataValue;this.refs.wrapper.forEach((function(n,r){var o=e.refs.input[r];("checkbox"===o.type?t[o.value]:o.value.toString()===t.toString())?(e.addClass(n,e.optionSelectedClass),o.setAttribute("checked","true")):(e.removeClass(n,e.optionSelectedClass),o.removeAttribute("checked"))}))}}},{key:"updateValue",value:function(e,t){var n=g(k(y.prototype),"updateValue",this).call(this,e,t);return n&&this.setSelectedClasses(),t&&t.modified&&this.isRadio?(this.currentValue=this.dataValue,t&&t.modified&&!t.noUpdateEvent&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(t),this.setSelectedClasses()),this.previousValue=this.dataValue,n):(n&&(this.previousValue=this.dataValue),n)}},{key:"normalizeValue",value:function(e){var t=this.component.dataType||"auto";if(e===this.emptyValue)return e;switch(t){case"auto":!isNaN(parseFloat(e))&&isFinite(e)&&r.default.toString(e)===Number(e).toString()&&(e=+e),"true"===e&&(e=!0),"false"===e&&(e=!1);break;case"number":e=+e;break;case"string":e="object"===d(e)?JSON.stringify(e):String(e);break;case"boolean":e=!(!e||"false"===e.toString())}if(this.isSelectURL&&this.templateData&&this.templateData[e]){var n=this.root.submission;n.metadata.selectData||(n.metadata.selectData={}),r.default.set(n.metadata.selectData,this.path,this.templateData[e])}return g(k(y.prototype),"normalizeValue",this).call(this,e)}}],s=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],data:{url:""},fieldSet:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/form-building/form-components#radio",schema:y.schema()}}},{key:"conditionOperatorsSettings",get:function(){return c(c({},g(k(y),"conditionOperatorsSettings",this)),{},{valueComponent:function(e){return{type:"select",dataSrc:"custom",valueProperty:"value",dataType:e.dataType||"",data:{custom:function(){return e.values}}}}})}},{key:"serverConditionSettings",get:function(){return c(c({},g(k(y),"serverConditionSettings",this)),{},{valueComponent:function(e){return{type:"select",dataSrc:"custom",valueProperty:"value",dataType:e.dataType||"",data:{custom:"values = ".concat(e&&e.values?JSON.stringify(e.values):[])}}}})}},{key:"savedValueTypes",value:function(e){var t=l.componentValueTypes.boolean,n=l.componentValueTypes.string,r=l.componentValueTypes.number,o=l.componentValueTypes.object,i=l.componentValueTypes.array,a=e.dataType;return(0,l.getComponentSavedTypes)(e)||("object"===a?[o,i]:l.componentValueTypes[a]?[l.componentValueTypes[a]]:[t,n,r,o,i])}}],n&&m(t.prototype,n),s&&m(t,s),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.default);t.default=O},15720:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92087),n(66992),n(41539),n(33948);var r=i(n(1848)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{key:"multiple",ignore:!0},{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"}]},validate:{required:!0},onChange:function(e){e&&e.flags&&e.flags&&e.flags.modified&&(e.data.values=[{label:"",value:""}])}},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{key:"template",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}}];t.default=a},4473:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0},{type:"select",input:!0,label:"Options Label Position",key:"optionsLabelPosition",tooltip:"Position for the label for options for this field.",dataSrc:"values",weight:32,defaultValue:"right",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{type:"checkbox",input:!0,key:"inline",label:"Inline Layout",tooltip:"Displays the checkboxes/radios horizontally.",weight:650}]},17325:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},124:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(89193));function i(e){return e&&e.__esModule?e:{default:e}}},30210:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309),n(92222),n(68304),n(24812),n(30489);var o=u(n(64430)),i=n(19161),a=u(n(27361)),l=u(n(23279)),s=u(n(91459));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(m,e);var t,n,r,u,c,d=(u=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(u);if(c){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function m(){return p(this,m),d.apply(this,arguments)}return t=m,n=[{key:"render",value:function(){return this.recaptchaResult=null,this.builderMode?y(w(m.prototype),"render",this).call(this,"reCAPTCHA"):y(w(m.prototype),"render",this).call(this,"",!0)}},{key:"createInput",value:function(){if(this.builderMode)this.append(this.text(this.name));else{var e=(0,a.default)(this.root.form,"settings.recaptcha.siteKey");if(e){var t="https://www.google.com/recaptcha/api.js?render=".concat(e);this.recaptchaApiReady=i.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",t,!0)}else console.warn("There is no Site Key specified in settings in form JSON")}}},{key:"createLabel",value:function(){}},{key:"skipInEmail",get:function(){return!0}},{key:"verify",value:function(e){var t=this,n=(0,a.default)(this.root.form,"settings.recaptcha.siteKey");if(n){if(!this.recaptchaApiReady){var r="https://www.google.com/recaptcha/api.js?render=".concat((0,a.default)(this.root.form,"settings.recaptcha.siteKey"));this.recaptchaApiReady=i.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",r,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new s.default((function(r,o){t.recaptchaApiReady.then((function(){t.isLoading||(t.isLoading=!0,grecaptcha.ready((0,l.default)((function(){grecaptcha.execute(n,{action:e}).then((function(e){return t.sendVerificationRequest(e).then((function(e){var n=e.verificationResult,o=e.token;return t.recaptchaResult=f(f({},n),{},{token:o}),t.updateValue(t.recaptchaResult),r(n)}))})).catch((function(){t.isLoading=!1}))}),1e3)))})).catch((function(){return o()}))})).then((function(){t.isLoading=!1})))}else console.warn("There is no Site Key specified in settings in form JSON")}},{key:"beforeSubmit",value:function(){var e=this;return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then((function(){return y(w(m.prototype),"beforeSubmit",e).call(e)})):y(w(m.prototype),"beforeSubmit",this).call(this)}},{key:"sendVerificationRequest",value:function(e){return i.GlobalFormio.makeStaticRequest("".concat(i.GlobalFormio.projectUrl,"/recaptcha?recaptchaToken=").concat(e)).then((function(t){return{verificationResult:t,token:e}}))}},{key:"checkComponentValidity",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,n=n||this.data;var i=o.async,a=void 0!==i&&i;if(!a)return y(w(m.prototype),"checkComponentValidity",this).call(this,e,t,n,o);var l=n[this.component.key];return l&&l.token?l.success?this.hook("validateReCaptcha",l.token,(function(){return s.default.resolve(!0)})).then((function(e){return e})).catch((function(e){return r.setCustomValidity(r.t(e.message||e)),!1})):(this.setCustomValidity(this.t("reCaptchaTokenValidationError")),s.default.resolve(!1)):(this.setCustomValidity(this.t("reCaptchaTokenNotSpecifiedError")),s.default.resolve(!1))}},{key:"normalizeValue",value:function(e){return this.recaptchaResult?this.recaptchaResult:e}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"}].concat(t))}},{key:"builderInfo",get:function(){return{}}},{key:"savedValueTypes",value:function(){return[]}}],n&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.default);t.default=k},89193:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(82531),o=[{key:"recaptchaInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed. Use the CAPTCHA component instead."},{key:"eventType",label:"Type of event",tooltip:"Specify type of event that this CAPTCHA would react to. If Button Click is selected, then the CAPTCHA widget will be displayed and verification will occur after clicking on the button.",type:"radio",values:[{label:"Form Load",value:"formLoad"},{label:"Button Click",value:"buttonClick"}],weight:650},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this CAPTCHA should react to",weight:660,customConditional:function(e){return"buttonClick"===e.data.eventType},data:{custom:function(e){return(0,r.getContextButtons)(e)}}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}];t.default=o},64328:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(18577));function i(e){return e&&e.__esModule?e:{default:e}}},66572:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o,i=(o=n(59024))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},s.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,n,r,o,u,p=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(u){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(){return a(this,h),p.apply(this,arguments)}return t=h,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"<span>{{ item.data }}</span>"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Resource",icon:"files-o",weight:90,documentation:"/userguide/form-building/form-components#resource",schema:h.schema()}}}],(n=[{key:"init",value:function(){s(d(h.prototype),"init",this).call(this),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}},{key:"defaultSchema",get:function(){return h.schema()}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=p},18577:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"resourceInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",label:"Resource",key:"resource",weight:50,tooltip:"The resource to be used with this field."},{type:"tags",input:!0,key:"selectFields",label:"Select Fields",tooltip:"The properties on the resource to return as part of the options. If left blank, all properties will be returned.",placeholder:"Enter the fields to select.",weight:51},{type:"tags",input:!0,key:"searchFields",label:"Search Fields",tooltip:"A list of search filters based on the fields of the resource. See the <a target='_blank' href='https://github.com/travist/resourcejs#filtering-the-results'>Resource.js documentation</a> for the format of these filters.",placeholder:"The fields to query on the server",weight:52},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:53,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters."},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:53,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters"},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:53,tooltip:"The HTML template for the result data items."},{type:"checkbox",input:!0,weight:54,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:55,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}}]},24120:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(12775)),o=l(n(12832)),i=l(n(47158)),a=l(n(47446));function l(e){return e&&e.__esModule?e:{default:e}}},59024:function(e,t,n){"use strict";n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(83593),n(32165),n(78783),n(91038),n(47042),n(68309),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(69826),n(41539),n(83710),n(39714),n(79753),n(21249),n(74916),n(96644),n(73210),n(69600),n(91058),n(27852),n(2707),n(26699),n(32023),n(57327),n(19601),n(85827),n(47941),n(9653),n(44048),n(35192),n(89554),n(54747),n(34553),n(15306),n(66992),n(33948),n(5212),n(68304),n(24812),n(30489);var r,o=c(n(96486)),i=n(19161),a=c(n(57700)),l=c(n(71277)),s=c(n(91459)),u=n(82531);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function b(e,t,n,r){return b="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=_(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else w(r,t,n);return!0},b(e,t,n,r)}function g(e,t,n,r,o){if(!b(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function w(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===f(t)?t:String(t)}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},O.apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function P(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}"undefined"!=typeof window&&(r=n(62604).ZP);var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(k,e);var t,n,c,d,m,b=(d=k,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(d);if(m){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return P(this,e)});function k(){return y(this,k),b.apply(this,arguments)}return t=k,n=[{key:"init",value:function(){var e=this;O(j(k.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]);var t=[],n=o.default.debounce((function(){t=[];for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.updateItems.apply(e,r)}),100);this.triggerUpdate=function(){"function"==typeof e.itemsLoadedResolve&&e.itemsLoadedResolve(),e.itemsLoaded=new s.default((function(t){e.itemsLoadedResolve=t}));for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length&&(t=o),n.apply(void 0,h(t))},this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new s.default((function(t){e.itemsLoadedResolve=t})),this.shouldPositionDropdown=this.hasDataGridAncestor(),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}},{key:"dataReady",get:function(){return this.root&&this.root.submissionSet&&!this.attached?s.default.resolve():this.itemsLoaded}},{key:"defaultSchema",get:function(){return k.schema()}},{key:"emptyValue",get:function(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){var e,t=this.component.data.json[0];return(e=this.valueProperty?o.default.get(t,this.valueProperty):t)&&"string"==typeof e?"":{}}return this.valueProperty?"":{}}},{key:"valueProperty",get:function(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}},{key:"inputInfo",get:function(){var e=O(j(k.prototype),"elementInfo",this).call(this);return e.type="select",e.changeEvent="change",e}},{key:"isSelectResource",get:function(){return"resource"===this.component.dataSrc}},{key:"itemsFromUrl",get:function(){return this.isSelectResource||this.isSelectURL}},{key:"isInfiniteScrollProvided",get:function(){return this.itemsFromUrl}},{key:"shouldDisabled",get:function(){return O(j(k.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"shouldInitialLoad",get:function(){return!("html5"===this.component.widget&&this.isEntireObjectDisplay()&&this.component.searchField&&this.dataValue)&&O(j(k.prototype),"shouldLoad",this)}},{key:"selectMetadata",get:function(){return O(j(k.prototype),"selectData",this)}},{key:"selectData",get:function(){return this.selectMetadata||this.component.selectData}},{key:"isEntireObjectDisplay",value:function(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}},{key:"selectValueAndLabel",value:function(e){var t=this.getOptionValue(this.isEntireObjectDisplay()&&!this.itemValue(e)?e:this.itemValue(e));return{value:t,label:this.itemTemplate(this.isEntireObjectDisplay()&&!o.default.isObject(e.data)?{data:e}:e,t)}}},{key:"itemTemplate",value:function(e,t){var n=this;if(!o.default.isNumber(e)&&o.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){var r=e.label||e,i="string"==typeof r?this.t(r,{_userInput:!0}):r;return this.sanitize(i,this.shouldSanitizeValue)}if(this.component.multiple&&o.default.isArray(this.dataValue)?this.dataValue.find((function(e){return t===e})):this.dataValue===t){var a=this.selectData;if(a){var l=this.component.reference&&null!=t&&t._id?t._id.toString():t;this.templateData&&this.templateData[l]||this.getOptionTemplate(e,t),this.component.multiple?a[l]&&(e=a[l]):e=a}}if("string"==typeof e||"number"==typeof e)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);if(Array.isArray(e))return e.map((function(e){return"string"==typeof e||"number"==typeof e?n.sanitize(n.t(e,{_userInput:!0}),n.shouldSanitizeValue):e}));if(e.data){var s=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&o.default.isObject(e.data)&&!s?JSON.stringify(e.data):e.data}return O(j(k.prototype),"itemTemplate",this).call(this,e,t)}},{key:"addOption",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,u.getRandomComponentId)();if(!o.default.isNil(t)){var i=this.component.idPath?this.component.idPath.split(".").reduceRight((function(e,t){return w({},t,e)}),r):{},a=p({value:this.getOptionValue(e),label:t},i),l=!!this.component.uniqueOptions&&!!this.selectOptions.find((function(e){return o.default.isEqual(e.value,a.value)}));if(!l&&(e&&this.selectOptions.push(a),this.refs.selectContainer&&"html5"===this.component.widget)){a.value&&o.default.isObject(a.value)&&o.default.isEmpty(a.value)&&(a.value="");var s=document.createElement("div");s.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:o.default.isEqual(this.getOptionValue(this.dataValue),a.value),option:a,attrs:n,id:r,useId:(""===this.valueProperty||this.isEntireObjectDisplay())&&o.default.isObject(e)&&r}),this.shouldSanitizeValue).trim(),a.element=s.firstChild,this.refs.selectContainer.appendChild(a.element)}}}},{key:"addValueOptions",value:function(e){var t=this;e=e||[];var n=!1,r=this.dataValue;if(this.options.pdf&&!e.length&&"url"===this.component.dataSrc&&this.valueProperty&&(r=Array.isArray(r)?r.map((function(e){return o.default.set({},t.valueProperty,e)})):o.default.set({},this.valueProperty,r)),!this.selectOptions.length){var i=Array.isArray(r)&&this.component.multiple?r:[r];(n=this.addCurrentChoices(i,e))||this.component.multiple||this.addPlaceholder()}return n}},{key:"disableInfiniteScroll",value:function(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}},{key:"setItems",value:function(e,t){var n,r,i,a=this;if(this.selectItems=e,"string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(this.component.onSetItems){var l="function"==typeof this.component.onSetItems?this.component.onSetItems(this,e):this.evaluate(this.component.onSetItems,{items:e},"items");l&&(e=l)}if(!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(e=o.default.get(e,this.component.selectValues,e)||[]),this.itemsFromUrl){i=!!this.isSelectURL&&o.default.isEqual(e,this.downloadedResources);var s=this.component.limit>e.length,u=i&&this.downloadedResources&&this.downloadedResources.length===e.length;s?this.disableInfiniteScroll():u?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)i||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(e):e),this.downloadedResources.serverCount=e.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=e||[],this.selectOptions=[],!o.default.isEmpty(this.dataValue)&&this.component.idPath){var c=o.default.get(this.dataValue,this.component.idPath,null),f=!o.default.isNil(c)&&e.find((function(e){return o.default.get(e,a.component.idPath)===c}));f&&this.setValue(f)}if(t||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),o.default.each(e,(function(e,t){if(!(a.root&&a.root.options.editForm&&a.root.options.editForm._id&&a.root.options.editForm._id===e._id)){var n=a.selectValueAndLabel(e);a.addOption(n.value,n.label,{},o.default.get(e,a.component.idPath,String(t)))}})),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,!t||!(null===(n=this.choices)||void 0===n||null===(r=n.input)||void 0===r?void 0:r.isFocussed))if(!this.isEmpty()||this.isRemoveButtonPressed)this.setValue(this.dataValue,{noUpdateEvent:!0});else if(this.shouldAddDefaultValue&&!this.options.readOnly){var d=this.defaultValue;this.isEmpty(d)||this.setValue(d)}this.itemsLoadedResolve()}},{key:"getSingleItemValueForHTMLMode",value:function(e){var t,n=null===(t=this.selectOptions)||void 0===t?void 0:t.find((function(t){var n=t.value;return o.default.isEqual(n,e)}));return n&&n.label||e}},{key:"itemValueForHTMLMode",value:function(e){var t=this;return this.isHtmlRenderMode()?Array.isArray(e)?e.map((function(e){return Array.isArray(e)?t.itemValueForHTMLMode(e):t.getSingleItemValueForHTMLMode(e)})).join(", "):this.getSingleItemValueForHTMLMode(e):O(j(k.prototype),"itemValueForHTMLMode",this).call(this,e)}},{key:"defaultValue",get:function(){var e=O(j(k.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue&&0!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"loadingError",get:function(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}},{key:"loadItems",value:function(e,t,n,r,a,l){var s=this;if(r=r||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly)return this.isScrollLoading=!1,this.loading=!1,void this.itemsLoadedResolve();var u=parseInt(this.component.minSearch,10);if(this.component.searchField&&u>0&&(!t||t.length<u))return this.setItems([]);"GET"===(a=a||"GET").toUpperCase()&&(l=null);var c=this.component.limit||100,d=this.isScrollLoading?this.selectOptions.length:0,p=this.component.disableLimit?{}:{limit:c,skip:d};if(e=this.interpolate(e,{formioBase:i.GlobalFormio.getBaseUrl(),search:t,limit:c,skip:d,page:Math.abs(Math.floor(d/c))}),this.component.searchField&&t){var h=Array.isArray(t)?t.join(","):"object"===f(t)?JSON.stringify(t):t;p[this.component.searchField]=this.component.searchField.endsWith("__regex")?o.default.escapeRegExp(h):h}this.component.selectFields&&(p.select=this.component.selectFields),this.component.sort&&(p.sort=this.component.sort),o.default.isEmpty(p)||(e+=(e.includes("?")?"&":"?")+i.GlobalFormio.serialize(p,(function(e){return s.interpolate(e)}))),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),r.ignoreCache=this.component.ignoreCache,r.header=n,this.loading=!0,i.GlobalFormio.makeRequest(this.options.formio,"select",e,a,l,r).then((function(e){s.loading=!1,s.error=null,s.setItems(e,!!t)})).catch((function(e){s.itemsFromUrl&&(s.setItems([]),s.disableInfiniteScroll()),s.isScrollLoading=!1,s.handleLoadingError(e)}))}},{key:"handleLoadingError",value:function(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"requestHeaders",get:function(){var e=this,t=new i.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{o.default.each(this.component.data.headers,(function(n){n.key&&t.set(n.key,e.interpolate(n.value))}))}catch(e){console.warn(e.message)}return t}},{key:"getCustomItems",value:function(){var e=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,u.isPromise)(e),e}},{key:"asyncCustomValues",value:function(){return o.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}},{key:"updateCustomItems",value:function(e){var t=this;if(this.asyncCustomValues()){if(!e&&!this.active)return void this.itemsLoadedResolve();this.loading=!0,this.getCustomItems().then((function(e){t.loading=!1,t.setItems(e||[])})).catch((function(e){t.handleLoadingError(e)}))}else this.setItems(this.getCustomItems()||[])}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return O(j(k.prototype),"isEmpty",this).call(this,e)||void 0===e}},{key:"refresh",value:function(e,t){var n=t.instance;this.component.clearOnRefresh&&n&&!n.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}},{key:"additionalResourcesAvailable",get:function(){return o.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}},{key:"serverCount",get:function(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount},set:function(e){this.isFromSearch?this.searchServerCount=e:this.defaultServerCount=e}},{key:"downloadedResources",get:function(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources},set:function(e){this.isFromSearch?this.searchDownloadedResources=e:this.defaultDownloadedResources=e}},{key:"addPlaceholder",value:function(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}},{key:"activate",value:function(){!this.loading&&this.active||this.setLoadingItem(),this.active||(this.activated=!0,this.triggerUpdate())}},{key:"setLoadingItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.choices?e?this.choices.setChoices([{value:"".concat(this.id,"-loading"),label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:'<i class="'.concat(this.iconClass("refresh"),'" style="font-size:1.3em;"></i>'),disabled:!0}],"value","label",!0):"url"!==this.component.dataSrc&&"resource"!==this.component.dataSrc||this.addOption("",this.t("loading..."))}},{key:"active",get:function(){return!this.component.lazyLoad||this.activated}},{key:"render",value:function(){var e=this.inputInfo;return e.attr=e.attr||{},e.multiple=this.component.multiple,O(j(k.prototype),"render",this).call(this,this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",index:null})))}},{key:"wrapElement",value:function(e){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:e}):e}},{key:"choicesOptions",value:function(){var e=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,t=this.t(this.component.placeholder,{_userInput:!0}),n=this.component.customOptions||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n={}}var r={maxPatternLength:1e3,distance:1e3};return p({removeItemButton:!this.component.disabled&&o.default.get(this.component,"removeItemButton",!0),itemSelectText:"",classNames:{containerOuter:"choices form-group formio-choices",containerInner:this.transform("class","form-control ui fluid selection dropdown")},addItemText:!1,allowHTML:!0,placeholder:!!this.component.placeholder,placeholderValue:t,noResultsText:this.t("No results found"),noChoicesText:this.t("No choices to choose from"),searchPlaceholderValue:this.t("Type to search"),shouldSort:!1,position:this.component.dropdown||"auto",searchEnabled:e,searchChoices:!this.component.searchField,searchFields:o.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?p({tokenize:!0,matchAllTokens:!0},r):Object.assign({},o.default.get(this,"component.fuseOptions",{}),p({include:"score",threshold:o.default.get(this,"component.selectThreshold",.3)},r)),valueComparer:o.default.isEqual,resetScrollPosition:!1},n)}},{key:"attach",value:function(e){var t,n,a,s=this,u=O(j(k.prototype),"attach",this).call(this,e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});var c=this.refs.autocompleteInput;c&&this.addEventListener(c,"change",(function(e){s.setValue(e.target.value)}));var f=this.refs.selectContainer;if(f){if(this.addEventListener(f,this.inputInfo.changeEvent,(function(){return s.updateValue(null,{modified:!0})})),this.attachRefreshOnBlur(),"html5"===this.component.widget)return this.addFocusBlurEvents(f),this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectItems||[]),this.focusableElement=f,this.addEventListener(f,"focus",(function(){return s.update()})),void this.addEventListener(f,"keydown",(function(e){var t=e.key;["Backspace","Delete"].includes(t)&&s.setValue(s.emptyValue)}));var d=f.tabIndex;this.addPlaceholder(),f.setAttribute("dir",this.i18next.dir()),null!==(t=this.choices)&&void 0!==t&&null!==(n=t.containerOuter)&&void 0!==n&&null!==(a=n.element)&&void 0!==a&&a.parentNode&&this.choices.destroy();var p=this.choicesOptions();if(r&&(this.choices=new r(f,p),this.selectOptions&&this.selectOptions.length&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.component.multiple?this.focusableElement=this.choices.input.element:(this.focusableElement=this.choices.containerInner.element,this.choices.containerOuter.element.setAttribute("tabIndex","-1"),this.addEventListener(this.choices.containerOuter.element,"focus",(function(){return s.focusableElement.focus()}))),this.addFocusBlurEvents(this.focusableElement),this.itemsFromUrl&&!this.component.noRefreshOnScroll&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",(function(){return s.onScroll()}))),p.removeItemButton&&this.addEventListener(f,"removeItem",(function(){s.isRemoveButtonPressed=!0}))),window&&this.choices&&this.shouldPositionDropdown&&this.addEventListener(window.document,"scroll",(function(){s.positionDropdown(!0)}),!1,!0),this.focusableElement.setAttribute("tabIndex",d),this.component.searchField){this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",(function(e){s.isFromSearch=!!e.target.value,e.target.value?(s.serverCount=null,s.downloadedResources=[]):s.triggerUpdate()})),this.addEventListener(f,"choice",(function(){s.component.multiple&&"resource"===s.component.dataSrc&&s.isFromSearch&&s.triggerUpdate(),s.isFromSearch=!1}));var m=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?1e3*(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce):0;this.addEventListener(f,"search",o.default.debounce((function(e){var t;t=e,s.triggerUpdate(t.detail.value),s.positionDropdown()}),m)),this.addEventListener(f,"stopSearch",(function(){return s.triggerUpdate()})),this.addEventListener(f,"hideDropdown",(function(){s.choices&&s.choices.input&&s.choices.input.element&&(s.choices.input.element.value=""),s.updateItems(null,!0)}))}return this.addEventListener(f,"showDropdown",(function(){s.update(),s.positionDropdown()})),this.shouldPositionDropdown&&this.addEventListener(f,"highlightChoice",(function(){s.positionDropdown()})),this.choices&&p.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(p.placeholderValue),this.addEventListener(f,"removeItem",(function(){s.addPlaceholderItem(p.placeholderValue)}))),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",(function(e){e.preventDefault();var t=s.ce("div"),n=s.createModal(t),r=o.default.get(s.root,"formio.projectUrl",i.GlobalFormio.getProjectUrl()),a="".concat(r,"/form/").concat(s.component.data.resource);new l.default(t,a,{}).ready.then((function(e){e.on("submit",(function(e){var t=s.valueProperty?o.default.get(e,s.valueProperty):e;s.component.multiple&&(t=[].concat(h(s.dataValue),[t])),s.setValue(t),s.triggerUpdate(),n.close()}))}))})),this.disabled=this.shouldDisabled,this.triggerUpdate(),u}}},{key:"setDropdownPosition",value:function(){var e,t,n,r,i=null===(e=this.choices)||void 0===e||null===(t=e.dropdown)||void 0===t?void 0:t.element,a=null===(n=this.choices)||void 0===n||null===(r=n.containerOuter)||void 0===r?void 0:r.element;if(i&&a){var l=a.getBoundingClientRect(),s=a.classList.contains("is-flipped");o.default.assign(i.style,{top:"".concat(s?l.top-i.offsetHeight:l.top+l.height,"px"),left:"".concat(l.left,"px"),width:"".concat(l.width,"px"),position:"fixed",bottom:"unset",right:"unset"})}}},{key:"hasDataGridAncestor",value:function(e){return!(!(e=e||this).inDataGrid&&"datagrid"!==e.type)||!!e.parent&&this.hasDataGridAncestor(e.parent)}},{key:"positionDropdown",value:function(e){var t,n=this;this.shouldPositionDropdown&&this.choices&&(null!==(t=this.choices.dropdown)&&void 0!==t&&t.isActive||!e)&&(this.setDropdownPosition(),this.itemsLoaded.then((function(){n.setDropdownPosition()})))}},{key:"isLoadingAvailable",get:function(){return!this.isScrollLoading&&this.additionalResourcesAvailable}},{key:"onScroll",value:function(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}},{key:"attachRefreshOnBlur",value:function(){var e=this;this.component.refreshOnBlur&&this.on("blur",(function(t){e.checkRefreshOn([{instance:t,value:t.dataValue}],{fromBlur:!0})}))}},{key:"addPlaceholderItem",value:function(e){this.choices._store.activeItems.length||this.choices._addItem({value:e,label:e,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}},{key:"update",value:function(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}},{key:"disabled",get:function(){return O(j(k.prototype),"disabled",this)},set:function(e){g(j(k.prototype),"disabled",e,this,!0),this.choices&&(e?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}},{key:"visible",get:function(){return O(j(k.prototype),"visible",this)},set:function(e){e&&!this._visible!=!e&&this.triggerUpdate(),g(j(k.prototype),"visible",e,this,!0)}},{key:"addCurrentChoices",value:function(e,t,n){var r=this;if(!e)return!1;var i=[],a=e.reduce((function(e,a){if(!a||o.default.isEmpty(a))return e;var l=!1,s=t===r.selectOptions;return t&&t.length&&o.default.each(t,(function(e){if(e._id&&a._id&&e._id===a._id)return l=!0,!1;var t=n?e.value:r.itemValue(e,s);return!(l|=o.default.isEqual(t,a))})),l?l||e:(i.push(r.selectValueAndLabel(a)),!0)}),!1);return i.length&&(this.choices&&this.choices.setChoices(i,"value","label"),i.map((function(e){r.addOption(e.value,e.label)}))),a}},{key:"getValueAsString",value:function(e,t){var n=this;return this.component.multiple&&Array.isArray(e)?e.map((function(e){return n.asString(e,t)})).join(", "):this.asString(e,t)}},{key:"getValue",value:function(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;var e=this.emptyValue;if(this.choices)e=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&e===this.t(this.component.placeholder,{_userInput:!0})&&(e=this.emptyValue);else if(this.refs.selectContainer){if(e=this.refs.selectContainer.value,""===this.valueProperty||this.isEntireObjectDisplay()){if(""===e)return{};var t=this.selectOptions[e]||this.selectOptions.find((function(t){return t.id===e}));t&&o.default.isObject(t.value)&&(e=t.value)}}else e=this.dataValue;return null==e&&(e=""),e}},{key:"redraw",value:function(){var e=O(j(k.prototype),"redraw",this).call(this);return this.triggerUpdate(),e}},{key:"normalizeSingleValue",value:function(e){if(!o.default.isNil(e)){if(o.default.isObject(e)&&0===Object.keys(e).length)return e;var t=this.component.dataType||"auto",n={value:e,number:function(){var t=Number(this.value),n=e.toString()===t.toString();return!Number.isNaN(t)&&Number.isFinite(t)&&""!==e&&n&&(this.value=t),this},boolean:function(){return!o.default.isString(this.value)||"true"!==this.value.toLowerCase()&&"false"!==this.value.toLowerCase()||(this.value="true"===this.value.toLowerCase()),this},string:function(){return this.value=String(this.value),this},object:function(){return this},auto:function(){return o.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return n[t]().value}catch(t){return console.warn("Failed to normalize value",t),e}}}},{key:"normalizeValue",value:function(e){var t=this;return this.component.multiple&&Array.isArray(e)?e.map((function(e){return t.normalizeSingleValue(e)})):O(j(k.prototype),"normalizeValue",this).call(this,this.normalizeSingleValue(e))}},{key:"setMetadata",value:function(e){var t,n=this;if(!o.default.isNil(e)){var r=o.default.isObject(e);if(r&&0===Object.keys(e).length)return e;var i=this.component.reference&&null!=e&&e._id?e._id.toString():e,a=!r||this.component.reference;if(i&&a&&this.templateData&&this.templateData[i]&&null!==(t=this.root)&&void 0!==t&&t.submission){var l=this.root.submission;l.metadata||(l.metadata={}),l.metadata.selectData||(l.metadata.selectData={});var s=this.templateData[i];if(this.component.multiple){s={};var u=this.dataValue;u&&o.default.isArray(u)&&u.length&&u.forEach((function(e){var t=n.component.reference?e._id.toString():e;s[t]=n.templateData[t]})),s[e]=this.templateData[e]}o.default.set(l.metadata.selectData,this.path,s)}}}},{key:"updateValue",value:function(e,t){var n=this,r=O(j(k.prototype),"updateValue",this).call(this,e,t);return!r&&this.selectMetadata||(this.component.multiple&&Array.isArray(this.dataValue)?this.dataValue.forEach((function(e){return n.setMetadata(e)})):this.setMetadata(this.dataValue)),r}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.dataValue,i=this.updateValue(e,n);if("html5"===this.component.widget&&(o.default.isEqual(e,r)||o.default.isEqual(r,{})&&o.default.isEqual(n,{}))&&!n.fromSubmission)return!1;e=this.dataValue;var a=!this.isEmpty(r),l=!this.isEmpty(e);if(this.component.multiple&&Array.isArray(e)?e=e.map((function(e){return"boolean"==typeof e||"number"==typeof e?e.toString():e})):"boolean"!=typeof e&&"number"!=typeof e||(e=e.toString()),this.isHtmlRenderMode()&&n&&n.fromSubmission&&i)return this.itemsLoaded.then((function(){t.redraw()})),i;if(this.loading)return i;if(this.isInitApiCallNeeded(l)){this.loading=!0,this.lazyLoadInit=!0;var s=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(o.default.get(e.data||e,s,e),!0),i}return this.itemsLoaded.then((function(){t.addValueOptions(),t.setChoicesValue(e,a,n)})),i}},{key:"isInitApiCallNeeded",value:function(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldInitialLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}},{key:"setChoicesValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!this.isEmpty(e)||n.fromSubmission;if(t=void 0===t||t,this.choices)if(r){this.choices.removeActiveItems();var i=Array.isArray(e)&&this.component.multiple?e:[e];this.addCurrentChoices(i,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(i)}else(t||n.resetValue)&&this.choices.removeActiveItems();else if(r){var a=Array.isArray(e)?e:[e];if(!o.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2||this.selectData&&n.fromSubmission){var l=this.selectValueAndLabel(this.dataValue),s=l.value,u=l.label;this.addOption(s,u)}o.default.each(this.selectOptions,(function(e){o.default.each(a,(function(t){if(""===e.value&&(e.value={}),o.default.isEqual(t,e.value)&&e.element)return e.element.selected=!0,e.element.setAttribute("selected","selected"),!1}))}))}else o.default.each(this.selectOptions,(function(e){e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))}))}},{key:"itemsLoaded",get:function(){return this._itemsLoaded||s.default.resolve()},set:function(e){this._itemsLoaded=e}},{key:"validateValueAvailability",value:function(e,t){var n=this;if(!(0,u.boolValue)(e)||!t)return!0;var r=this.getOptionsValues();return!!r&&(o.default.isObject(t)?-1!==r.findIndex((function(e){return function(e){var r=n.normalizeSingleValue(e);if(!o.default.isObject(r))return!1;try{return JSON.stringify(r)===JSON.stringify(t)}catch(e){return console.warn.error("Error while comparing items",e),!1}}(e)})):-1!==r.findIndex((function(e){return n.normalizeSingleValue(e)===t})))}},{key:"getOptionValue",value:function(e){return o.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):o.default.isObject(e)&&(this.valueProperty||"resource"!==this.component.key)?e:o.default.isObject(e)&&!this.valueProperty?this.interpolate(this.component.template,{item:e}).replace(/<\/?[^>]+(>|$)/g,""):o.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e))}},{key:"getOptionsValues",value:function(){var e=this,t=[];switch(this.component.dataSrc){case"values":t=this.component.data.values;break;case"json":t=this.component.data.json;break;case"custom":t=this.getCustomItems()}if("string"==typeof t)try{t=JSON.parse(t)}catch(e){console.warn(e.message),t=[]}if(Array.isArray(t))return t.map((function(t){return e.getOptionValue(e.itemValue(t))}))}},{key:"deleteValue",value:function(){this.setValue("",{noUpdateEvent:!0}),this.unset()}},{key:"validateMultiple",value:function(){return!1}},{key:"isBooleanOrNumber",value:function(e){return"number"==typeof e||"boolean"==typeof e}},{key:"getNormalizedValues",value:function(){var e=this;if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map((function(t){return{label:t.label,value:String(e.normalizeSingleValue(t.value))}}))}},{key:"asString",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(e,t){return t?(Array.isArray(e)?e.forEach((function(e){return e[t]=e[t].toString()})):e[t]=e[t].toString(),e):(n.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some((function(e){return n.isBooleanOrNumber(e)}))&&(e=e.map((function(e){n.isBooleanOrNumber(e)&&(e=e.toString())}))),e)};if(e=i(e=null!==(t=e)&&void 0!==t?t:this.getValue()),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){var a,l="values"===this.component.dataSrc?{items:i(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:i(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},s=l.items,c=l.valueProperty,f=function(){var t=o.default.find(s,[c,e]),r=n.defaultSchema.data.values||[];return o.default.isEqual(t,r[0])?"-":t};e=this.component.multiple&&Array.isArray(e)?o.default.filter(s,(function(t){return e.includes(t.value)})):c?null!==(a=f())&&void 0!==a?a:{value:e,label:e}:e}if(o.default.isString(e))return e;var d=function(e){var t=n.itemTemplate(e);return r.csv&&t?(0,u.unescapeHTML)(t):t};if(Array.isArray(e)){var p=[];return e.forEach((function(e){return p.push(d(e))})),"resource"===this.component.dataSrc&&p.length>0?p.join(", "):p.length>0?p.join("<br />"):"-"}return this.isEntireObjectDisplay()&&o.default.isObject(e)?JSON.stringify(e):o.default.isNil(e)?"-":d(e)}},{key:"detach",value:function(){var e,t;this.off("blur"),this.choices&&(null!==(e=this.choices.containerOuter)&&void 0!==e&&null!==(t=e.element)&&void 0!==t&&t.parentNode&&this.choices.destroy(),this.choices=null),O(j(k.prototype),"detach",this).call(this)}},{key:"focus",value:function(){this.focusableElement&&(O(j(k.prototype),"focus",this).call(this),this.focusableElement.focus())}},{key:"setErrorClasses",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;O(j(k.prototype),"setErrorClasses",this).call(this,e,t,n,r,o),this.choices?O(j(k.prototype),"setErrorClasses",this).call(this,[this.choices.containerInner.element],t,n,r,o):O(j(k.prototype),"setErrorClasses",this).call(this,[this.refs.selectContainer],t,n,r,o)}}],c=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{type:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/form-building/form-components#select",schema:k.schema()}}},{key:"serverConditionSettings",get:function(){return k.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return p(p({},O(j(k),"conditionOperatorsSettings",this)),{},{valueComponent:function(e){var t=p(p({},e),{},{type:"select"});return(0,u.isSelectResourceWithObjectValue)(e)&&(t.reference=!1,t.onSetItems="\n            var templateKeys = utils.getItemTemplateKeys(component.template) || [];\n            items = _.map(items || [], i => {\n              var item = {};\n              _.each(templateKeys, k =>  _.set(item, k, _.get(i, k)));\n              return item;\n            })\n          "),t}})}},{key:"savedValueTypes",value:function(e){var t=u.componentValueTypes.boolean,n=u.componentValueTypes.string,r=u.componentValueTypes.number,o=u.componentValueTypes.object,i=u.componentValueTypes.array,a=e.dataType,l=e.reference;return(0,u.getComponentSavedTypes)(e)||(l?[o]:"object"===a?[o,i]:u.componentValueTypes[a]?[u.componentValueTypes[a]]:[t,n,r,o,i])}}],n&&v(t.prototype,n),c&&v(t,c),Object.defineProperty(t,"prototype",{writable:!1}),k}(a.default);t.default=x},12832:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(69826),n(41539),n(32564),n(92087);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(82531),a=function(e){setTimeout((function(){var t,n=e.instance,r=e.data,i=null==n?void 0:n.root.getComponent("selectData");if(i&&n.getValue()&&null!==(t=n.downloadedResources)&&void 0!==t&&t.length){var a="url"===r.dataSrc&&r.data.url&&r.valueProperty,l="resource"===r.dataSrc&&r.data.resource&&r.valueProperty,s=a||l?function(e){var t=e.instance,n=e.data,r=t.downloadedResources.find((function(e){return o.default.get(e,n.valueProperty)===t.getValue()})),i={data:{},noeval:!0};return t.interpolate(n.template,{item:r},i),i.data.item}(e):void 0;i.setValue(s)}}),0)},l=[{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'<div>Example: <pre>["apple", "banana", "orange"].</pre></div> <div>Example 2: <pre>[{"name": "John", "email": "john.doe@test.com"}, {"name": "Jane", "email": "jane.doe@test.com"}].</pre></div>',conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{type:"checkbox",input:!0,label:"Lazy Load Data",key:"lazyLoad",tooltip:"When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API's will only fire when the control is activated.",weight:11,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"<span>{{ item.label }}</span>",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems:function(e,t){var n="resource"===t.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,i.eachComponent)(t.components,(function(e,t){e.input&&n.push({label:e.label||e.key,key:"data.".concat(t)})})),n},onChange:function(e){if(e&&e.flags&&e.flags.modified){var t=e.instance.data.valueProperty,n="<span>{{ item.".concat(t||"data"," }}</span>"),r=t?"".concat(t,"__regex"):"";e.instance.root.getComponent("template").setValue(n),e.instance.root.getComponent("searchField").setValue(r)}},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"select",input:!0,key:"refreshOn",label:"Refresh Options On",weight:19,tooltip:"Refresh data when another field changes.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,r){n.key!==e.data.key&&t.push({label:n.label||n.key,value:r})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,r){n.key!==e.data.key&&t.push({label:n.label||n.key,value:r})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{type:"checkbox",input:!0,weight:21,key:"noRefreshOnScroll",label:"Disable Options Refresh When Scrolling",defaultValue:!1,tooltip:"When checked, the select with search input won't perform new api requests when scrolling through the list of options.",conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"===":[{var:"data.searchEnabled"},!0]}]}}},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:27,key:"readOnlyValue",label:"Read Only Value",tooltip:"Check this if you would like to show just the value when in Read Only mode."},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Choices.js options",tooltip:"A raw JSON object to use as options for the Select component (Choices JS).",defaultValue:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."},{key:"defaultValue",onSetItems:function(e){a(e.evalContext())},onChange:function(e){e&&e.flags&&e.flags.modified&&a(e)}},{key:"selectData",conditional:{json:{and:[{"!==":[{var:"data.valueProperty"},null]},{"!==":[{var:"data.valueProperty"},""]}]}}},{key:"template",onChange:function(e){if(e&&e.flags&&e.flags.modified){var t=e.instance.root.getComponent("defaultValue");if(!t)return;a(t.evalContext())}}}];t.default=l},47158:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"select",input:!0,weight:20,tooltip:"Select the type of widget you'd like to use.",key:"widget",defaultValue:"choicesjs",label:"Widget Type",dataSrc:"values",data:{values:[{label:"ChoicesJS",value:"choicesjs"},{label:"HTML 5",value:"html5"}]}},{weight:1230,type:"checkbox",label:"Unique Options",tooltip:"Display only unique dropdown options.",key:"uniqueOptions",input:!0}]},47446:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{weight:50,type:"checkbox",label:"Perform server validation of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom"]]}}}]},99966:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:o.default}]].concat(t))},n(92222);var r=i(n(20481)),o=i(n(69541));function i(e){return e&&e.__esModule?e:{default:e}}},14224:function(e,t,n){"use strict";n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(78783),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68309),n(85827),n(41539),n(66992),n(33948),n(79753),n(26541),n(89554),n(54747),n(69600),n(21249),n(57327),n(47941),n(83710),n(39714),n(69826),n(34553),n(26699),n(32023),n(68304),n(24812),n(30489);var r=a(n(96486)),o=n(82531),i=a(n(44311));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===c(t)?t:String(t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(g,e);var t,n,a,l,p,v=(l=g,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(l);if(p){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function g(){var e;f(this,g);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=v.call.apply(v,[this].concat(n))).validators=e.validators.concat("minSelectedCount","maxSelectedCount","availableValueProperty"),e}return t=g,n=[{key:"init",value:function(){y(b(g.prototype),"init",this).call(this),this.component.inputType="checkbox"}},{key:"defaultSchema",get:function(){return g.schema()}},{key:"inputInfo",get:function(){var e=y(b(g.prototype),"elementInfo",this).call(this);return e.attr.name+="[]",e.attr.type="checkbox",e.attr.class="form-check-input",e}},{key:"emptyValue",get:function(){return this.component.values.reduce((function(e,t){return t.value&&(e[t.value]=!1),e}),{})}},{key:"defaultValue",get:function(){var e=this.emptyValue;return r.default.isEmpty(this.component.defaultValue)||(e=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,t=!0;for(var n in e)if(e.hasOwnProperty(n)&&e[n]){t=!1;break}return t}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e={};return r.default.each(this.refs.input,(function(t){e[t.value]=!!t.checked})),e}},{key:"normalizeValue",value:function(e){var t=this;"object"!==c(e=e||{})&&(e="string"==typeof e?u({},e,!0):{}),Array.isArray(e)&&r.default.each(e,(function(t){e[t]=!0}));var n=r.default.keys(r.default.pickBy(e,(function(e){return e})));if(this.isSelectURL&&this.templateData&&r.default.every(n,(function(e){return t.templateData[e]}))){var o=this.root.submission;o.metadata.selectData||(o.metadata.selectData={});var i=[];n.forEach((function(e){return i.push(t.templateData[e])})),r.default.set(o.metadata.selectData,this.path,i)}return e}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.updateValue(e,t);return e=this.dataValue,this.isHtmlRenderMode()?n&&this.redraw():r.default.each(this.refs.input,(function(t){r.default.isUndefined(e[t.value])&&(e[t.value]=!1),t.checked=!!e[t.value]})),n}},{key:"getValueAsString",value:function(e){return e?this.isSelectURL?(0,r.default)(e).pickBy((function(e){return e})).keys().join(", "):(0,r.default)(this.component.values||[]).filter((function(t){return e[t.value]})).map("label").join(", "):""}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var t=this.dataValue,n=Object.keys(t);this.refs.wrapper.forEach((function(o,i){var a=n[i],l=e.refs.input[i];(null==l?void 0:l.value.toString())!==a&&(a=n.find((function(e){return(null==l?void 0:l.value.toString())===e})));var s=t[a];s&&a||e.isSelectURL&&!e.shouldLoad&&e.listData&&-1!==r.default.findIndex(e.selectData,e.listData[i])?(e.addClass(o,e.optionSelectedClass),l.setAttribute("checked","true")):!s&&a&&(e.removeClass(o,e.optionSelectedClass),l.removeAttribute("checked"))}))}}},{key:"setInputsDisabled",value:function(e,t){this.refs.input&&this.refs.input.forEach((function(n){(t&&!n.checked||!t)&&(n.disabled=e)}))}},{key:"checkComponentValidity",value:function(e,t,n,r){var o=this,i=this.component.validate.minSelectedCount,a=this.component.validate.maxSelectedCount,l=this.isValid(e,t);if((a||i)&&!this.shouldSkipValidation(e,t,n)){var s=Object.keys(this.validationValue).reduce((function(e,t){return o.validationValue[t]&&e++,e}),0);if(a&&s>=a?this.setInputsDisabled(!0,!0):a&&!this.shouldDisabled&&this.setInputsDisabled(!1),!l&&a&&s>a){var u=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:a});return this.setCustomValidity(u,t),!1}if(!l&&i&&s<i){this.setInputsDisabled(!1);var c=this.t(this.component.minSelectedCountMessage||"You must select at least {{minCount}} items.",{minCount:i});return this.setCustomValidity(c,t),!1}}return y(b(g.prototype),"checkComponentValidity",this).call(this,e,t,n,r)}},{key:"validateValueAvailability",value:function(e,t){if(!(0,o.boolValue)(e)||!t)return!0;var n=(this.component.values||[]).map((function(e){return e.value}));return Object.keys(t).every((function(e){return n.includes(e)}))}}],a=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/form-building/form-components#select-box",schema:g.schema()}}},{key:"serverConditionSettings",get:function(){return g.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return s(s({},y(b(g),"conditionOperatorsSettings",this)),{},{valueComponent:function(e){return{type:"select",dataSrc:"custom",valueProperty:"value",valueType:"string",data:{custom:"values = ".concat(e&&e.values?JSON.stringify(e.values):[])}}}})}},{key:"savedValueTypes",value:function(e){return(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.object]}}],n&&d(t.prototype,n),a&&d(t,a),Object.defineProperty(t,"prototype",{writable:!1}),g}(i.default);t.default=g},69541:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"number",input:!0,key:"validate.minSelectedCount",label:"Minimum checked number",tooltip:"Minimum checkboxes required before form can be submitted.",weight:250},{type:"number",input:!0,key:"validate.maxSelectedCount",label:"Maximum checked number",tooltip:"Maximum checkboxes possible before form can be submitted.",weight:250},{type:"textfield",input:!0,key:"minSelectedCountMessage",label:"Minimum checked error message",tooltip:"Error message displayed if minimum number of items not checked.",weight:250},{type:"textfield",input:!0,key:"maxSelectedCountMessage",label:"Maximum checked error message",tooltip:"Error message displayed if maximum number of items checked.",weight:250}]},66369:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(59897)),i=l(n(82257)),a=l(n(20994));function l(e){return e&&e.__esModule?e:{default:e}}},14051:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(32564),n(24812),n(92222),n(68304),n(30489);var o=u(n(17672)),i=u(n(91033)),a=u(n(63820)),l=u(n(96486)),s=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(m,e);var t,n,r,u,c,d=(u=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(u);if(c){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function m(){return p(this,m),d.apply(this,arguments)}return t=m,n=[{key:"init",value:function(){var e,t,n,r,o;y(w(m.prototype),"init",this).call(this),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&"pdf"===(null===(e=this.options)||void 0===e?void 0:e.display)&&null!==(t=this.component.overlay)&&void 0!==t&&t.width&&null!==(n=this.component.overlay)&&void 0!==n&&n.height&&(this.ratio=(null===(r=this.component.overlay)||void 0===r?void 0:r.width)/(null===(o=this.component.overlay)||void 0===o?void 0:o.height),this.component.width="100%",this.component.height="auto")}},{key:"emptyValue",get:function(){return""}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"inputInfo",get:function(){var e=y(w(m.prototype),"inputInfo",this);return e.type="input",e.attr.type="hidden",e}},{key:"className",get:function(){return"".concat(y(w(m.prototype),"className",this)," signature-pad")}},{key:"labelIsHidden",value:function(){return this.component.hideLabel}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=y(w(m.prototype),"setValue",this).call(this,e,t);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?n&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),n}},{key:"showCanvas",value:function(e){e?(this.refs.canvas&&(this.refs.canvas.style.display="inherit"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="none")):(this.refs.canvas&&(this.refs.canvas.style.display="none"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="inherit",this.refs.signatureImage.style.maxHeight="100%"))}},{key:"onDisabled",value:function(){this.showCanvas(!y(w(m.prototype),"disabled",this)),this.signaturePad&&(y(w(m.prototype),"disabled",this)?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}},{key:"checkSize",value:function(e,t){if(this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=e?t:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;var n=this.currentWidth*this.scale,r=this.ratio?n/this.ratio:this.refs.padBody.offsetHeight*this.scale,o=this.ratio?r:this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.width=n,this.refs.canvas.height=r>o?o:r,this.refs.canvas.style.maxWidth="".concat(this.currentWidth*this.scale,"px"),this.refs.canvas.style.maxHeight="".concat(o,"px");var i=this.refs.canvas.getContext("2d");i.setTransform(1,0,0,1,0,0),i.scale(1/this.scale,1/this.scale),i.fillStyle=this.signaturePad.backgroundColor,i.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad(),this.showCanvas(!0)}}},{key:"renderElement",value:function(e,t){return this.renderTemplate("signature",{element:y(w(m.prototype),"renderElement",this).call(this,e,t),required:l.default.get(this.component,"validate.required",!1)})}},{key:"hasModalSaveButton",get:function(){return!1}},{key:"getModalPreviewTemplate",value:function(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?"<img src=".concat(this.dataValue," ref='openModal' style=\"width: 100%;height: 100%;\" />"):this.t("Click to Sign")})}},{key:"attach",value:function(e){var t=this;this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});var n=y(w(m.prototype),"attach",this).call(this,e);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new o.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",(function(){return t.setValue(t.signaturePad.toDataURL())})),this.refs.signatureImage.setAttribute("src",this.signaturePad.toDataURL()),this.onDisabled(),this.refs.padBody&&(this.refs.padBody.style.maxWidth||(this.refs.padBody.style.maxWidth="100%"),this.builderMode||this.options.preview||(this.observer=new i.default((function(){t.checkSize()})),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",l.default.debounce((function(){return t.checkSize()}),10)),setTimeout(function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),20)}.bind(this),20))),this.addEventListener(this.refs.refresh,"click",(function(e){e.preventDefault(),t.showCanvas(!0),t.signaturePad.clear(),t.setValue(t.defaultValue)})),this.setValue(this.dataValue),n}},{key:"detach",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,y(w(m.prototype),"detach",this).call(this)}},{key:"getValueAsString",value:function(e){return l.default.isUndefined(e)&&this.inDataTable?"":e?"Yes":"No"}},{key:"focus",value:function(){this.refs.padBody.focus()}},{key:"setDataToSigaturePad",value:function(){this.signaturePad.fromDataURL(this.dataValue,{ratio:1,width:this.refs.canvas.width,height:this.refs.canvas.height})}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{type:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/developers/integrations/esign/esign-integrations#signature-component",schema:m.schema()}}},{key:"serverConditionSettings",get:function(){return m.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return f(f({},y(w(m),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.string]}}],n&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(a.default);t.default=k},59897:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},82257:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"textfield",input:!0,key:"footer",label:"Footer Label",tooltip:"The footer text that appears below the signature area.",placeholder:"Footer Label",weight:10},{type:"textfield",input:!0,key:"width",label:"Width",tooltip:"The width of the signature area.",placeholder:"Width",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:function(e){var t,n=e.options;return"pdf"===(null==n||null===(t=n.editForm)||void 0===t?void 0:t.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},20994:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},68427:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(78499)),i=l(n(80327)),a=l(n(60895));function l(e){return e&&e.__esModule?e:{default:e}}},55655:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(47941),n(57327),n(49337),n(33321),n(32165),n(78783),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(89554),n(41539),n(54747),n(68309),n(5212),n(66992),n(33948),n(85827),n(92222),n(69826),n(69600),n(21249),n(68304),n(24812),n(30489);var o=l(n(96486)),i=l(n(68093)),a=n(82531);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function d(e,t,n,r){return d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=y(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else p(r,t,n);return!0},d(e,t,n,r)}function p(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=y(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function b(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(h,e);var t,n,r,l,s,p=(l=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(l);if(s){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function h(){return c(this,h),p.apply(this,arguments)}return t=h,n=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"render",value:function(){return m(g(h.prototype),"render",this).call(this,this.renderTemplate("survey"))}},{key:"attach",value:function(e){var t=this;this.loadRefs(e,{input:"multiple"});var n=m(g(h.prototype),"attach",this).call(this,e);return this.refs.input.forEach((function(e){t.disabled?e.setAttribute("disabled","disabled"):t.addEventListener(e,"change",(function(){return t.updateValue(null,{modified:!0})}))})),this.setValue(this.dataValue),n}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;o.default.each(this.component.questions,(function(n){o.default.each(t.refs.input,(function(r){r.name===t.getInputName(n)&&(r.checked=r.value===e[n.value])}))}));var r=this.updateValue(e,n);return r&&this.isHtmlRenderMode()&&this.redraw(),r}},{key:"emptyValue",get:function(){return{}}},{key:"defaultValue",get:function(){var e=m(g(h.prototype),"defaultValue",this);if(e&&!o.default.isObject(e)&&this.component.values.some((function(t){return t.value===e}))){var t={};return this.component.questions.forEach((function(n){t[n.value]=e})),t}return e}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var t={};return o.default.each(this.component.questions,(function(n){o.default.each(e.refs.input,(function(r){if(r.checked&&r.name===e.getInputName(n))return t[n.value]=r.value,!1}))})),t}},{key:"disabled",get:function(){return m(g(h.prototype),"disabled",this)},set:function(e){(function(e,t,n,r,o){if(!d(e,t,n,r||e)&&o)throw new Error("failed to set property")})(g(h.prototype),"disabled",e,this,!0),o.default.each(this.refs.input,(function(e){e.disabled=!0}))}},{key:"validateRequired",value:function(e,t){return!(0,a.boolValue)(e)||this.component.questions.reduce((function(e,n){return e&&Boolean(t[n.value])}),!0)}},{key:"getInputName",value:function(e){return"".concat(this.options.name,"[").concat(e.value,"]")}},{key:"getValueAsString",value:function(e,t){var n=this;if(null!=t&&t.email){var r='\n        <table border="1" style="width:100%">\n          <thead>\n            <tr>\n              <th>Question</th>\n              <th>Value</th>\n            </tr>\n          </thead>\n          <tbody>\n      ';return o.default.forIn(e,(function(e,t){var i=o.default.find(n.component.questions,["value",t]),a=o.default.find(n.component.values,["value",e]);i&&a&&(r+='\n            <tr>\n              <td style="text-align:center;padding: 5px 10px;">'.concat(i.label,'</td>\n              <td style="text-align:center;padding: 5px 10px;">').concat(a.label,"</td>\n            </tr>\n          "))})),r+="</tbody></table>"}if(o.default.isPlainObject(e)){var i=this.component,a=i.values,l=void 0===a?[]:a,s=i.questions,u=void 0===s?[]:s;return o.default.isEmpty(e)?"":o.default.map(e,(function(e,t){var n=o.default.get(o.default.find(l,(function(t){return o.default.isEqual(t.value,e)})),"label",e),r=o.default.get(o.default.find(u,(function(e){return o.default.isEqual(e.value,t)})),"label",t);return"".concat(r,": ").concat(n)})).join("; ")}return m(g(h.prototype),"getValueAsString",this).call(this,e,t)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"survey",label:"Survey",key:"survey",questions:[],values:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/form-building/advanced-components#survey",schema:h.schema()}}},{key:"serverConditionSettings",get:function(){return h.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return u(u({},m(g(h),"conditionOperatorsSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}},{key:"savedValueTypes",value:function(e){return(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.object]}}],n&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=w},78499:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Questions",key:"questions",tooltip:"The questions you would like to ask in this survey question.",weight:0,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},80327:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0}]},60895:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validateOn",ignore:!0}]},39450:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(69671));function i(e){return e&&e.__esModule?e:{default:e}}},26135:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(83710),n(41539),n(39714),n(47042),n(21249),n(85827),n(89554),n(54747),n(68304),n(24812),n(30489);var o=l(n(96486)),i=l(n(1848)),a=l(n(24561));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(p,e);var t,n,r,l,s,c=(l=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(l);if(s){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function p(){var e;f(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=c.call.apply(c,[this].concat(n))).noField=!0,e}return t=p,r=[{key:"emptyTable",value:function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++)o.push({components:[]});n.push(o)}return n}},{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:p.emptyTable(3,3),header:[],caption:"",cloneRows:!1,striped:!1,bordered:!1,hover:!1,condensed:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Table",group:"layout",icon:"table",weight:40,documentation:"/userguide/form-building/layout-components#table",showPreview:!1,schema:p.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],(n=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"schema",get:function(){var e=this,t=o.default.omit(y(b(p.prototype),"schema",this),"components");return t.rows=[],this.eachComponent((function(n){t.rows&&t.rows.length||(t.rows=p.emptyTable(e.component.numRows,e.component.numCols)),t.rows[n.tableRow]||(t.rows[n.tableRow]=[]),t.rows[n.tableRow][n.tableColumn]||(t.rows[n.tableRow][n.column]={components:[]}),t.rows[n.tableRow][n.tableColumn].components.push(n.schema)})),t.rows.length||(t.rows=p.emptyTable(this.component.numRows,this.component.numCols)),t}},{key:"className",get:function(){var e="table-responsive ".concat(y(b(p.prototype),"className",this));return this.component.bordered||(e+=" no-top-border-table"),e}},{key:"cellClassName",get:function(){var e="";return this.component.cellAlignment&&(e="cell-align-".concat(this.component.cellAlignment)),e}},{key:"tableKey",get:function(){return"table-".concat(this.key)}},{key:"colWidth",get:function(){var e=this.component.numCols;return e&&"number"==typeof e?Math.floor(12/e).toString():""}},{key:"init",value:function(){var e=this;y(b(p.prototype),"init",this).call(this);for(var t=0;t<this.component.numRows;t++){this.component.rows[t]=this.component.rows[t]||[];for(var n=0;n<this.component.numCols;n++)this.component.rows[t][n]=this.component.rows[t][n]||{components:[]};this.component.rows[t]=this.component.rows[t].slice(0,this.component.numCols)}this.component.rows=this.component.rows.slice(0,this.component.numRows);var r=[];this.table=[],o.default.each(this.component.rows,(function(t,n){e.table[n]=[],o.default.each(t,(function(t,a){e.table[n][a]=[],e.component.cloneRows&&(t.components.length?r[a]=t:r[a]&&(t.components=o.default.cloneDeep(r[a].components),i.default.uniquify(e.root._form.components,t))),o.default.each(t.components,(function(t){var r;e.builderMode?(t.id=t.id+n,r=t):r=u(u({},t),{},{id:t.id+n});var o=e.createComponent(r);o.tableRow=n,o.tableColumn=a,e.table[n][a].push(o)}))}))}))}},{key:"render",value:function(){var e=this;return y(b(p.prototype),"render",this).call(this,this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map((function(t){return t.map((function(t){return e.renderComponents(t)}))}))}))}},{key:"attach",value:function(e){var t=this,n=this.table.reduce((function(e,n,r){return e["".concat(t.tableKey,"-").concat(r)]="multiple",e}),{});this.loadRefs(e,n);var r=y(b(p.prototype),"attach",this).call(this,e);return this.table.forEach((function(e,n){e.forEach((function(e,r){t.attachComponents(t.refs["".concat(t.tableKey,"-").concat(n)][r],t.table[n][r],t.component.rows[n][r].components)}))})),r}},{key:"destroy",value:function(e){y(b(p.prototype),"destroy",this).call(this,e),delete this.table}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(a.default);t.default=g},69671:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{type:"number",label:"Number of Rows",key:"numRows",input:!0,weight:1,placeholder:"Number of Rows",tooltip:"Enter the number or rows that should be displayed by this table."},{type:"number",label:"Number of Columns",key:"numCols",input:!0,weight:2,placeholder:"Number of Columns",tooltip:"Enter the number or columns that should be displayed by this table."},{type:"checkbox",label:"Clone Row Components",key:"cloneRows",input:!0,weight:3,tooltip:"Check this if you would like to 'clone' the first row of components to all additional empty rows of the table."},{type:"select",label:"Cell Alignment",key:"cellAlignment",input:!0,tooltip:"Horizontal alignment for cells of the table.",dataSrc:"values",data:{values:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]},defaultValue:"left",weight:3},{type:"checkbox",label:"Striped",key:"striped",tooltip:"This will stripe the table if checked.",input:!0,weight:701},{type:"checkbox",label:"Bordered",key:"bordered",input:!0,tooltip:"This will border the table if checked.",weight:702},{type:"checkbox",label:"Hover",key:"hover",input:!0,tooltip:"Highlight a row on hover.",weight:703},{type:"checkbox",label:"Condensed",key:"condensed",input:!0,tooltip:"Condense the size of the table.",weight:704},{key:"hideLabel",ignore:!0}]},5657:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(26156));function i(e){return e&&e.__esModule?e:{default:e}}},53700:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(21249),n(89554),n(41539),n(24812),n(54747),n(34553),n(5212),n(79753),n(85827),n(57327),n(26699),n(32023),n(68304),n(30489);var o=a(n(96486)),i=a(n(24561));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=y(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,n,r,a,s,d=(a=y,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(a);if(s){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(){var e;c(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=d.call.apply(d,[this].concat(n))).currentTab=0,e.noField=!0,e}return t=y,n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"schema",get:function(){var e=this,t=m(v(y.prototype),"schema",this),n=o.default.cloneDeep(this.component.components);return t.components=n.map((function(t,n){return t.components=e.tabs[n].map((function(e){return e.schema})),t})),t}},{key:"tabKey",get:function(){return"tab-".concat(this.key)}},{key:"tabLikey",get:function(){return"tabLi-".concat(this.key)}},{key:"tabLinkKey",get:function(){return"tabLink-".concat(this.key)}},{key:"init",value:function(){var e=this;this.components=[],this.tabs=[],o.default.each(this.component.components,(function(t,n){e.tabs[n]=[],t.components=t.components||[],o.default.each(t.components,(function(t){var r=e.createComponent(t);r.tab=n,e.tabs[n].push(r)}))}))}},{key:"render",value:function(){var e=this;return m(v(y.prototype),"render",this).call(this,this.renderTemplate("tab",{tabKey:this.tabKey,tabLikey:this.tabLikey,tabLinkKey:this.tabLinkKey,currentTab:this.currentTab,tabComponents:this.tabs.map((function(t){return e.renderComponents(t)}))},this.options.flatten||this.options.pdf?"flat":null))}},{key:"attach",value:function(e){var t,n=this;this.loadRefs(e,(u(t={},this.tabLinkKey,"multiple"),u(t,this.tabKey,"multiple"),u(t,this.tabLikey,"multiple"),t)),["change","error"].forEach((function(e){return n.on(e,n.handleTabsValidation.bind(n))}));var r=m(v(y.prototype),"attach",this).call(this,e);return this.refs[this.tabLinkKey].forEach((function(e,t){n.addEventListener(e,"click",(function(e){e.preventDefault(),n.setTab(t)}))})),this.refs[this.tabKey].forEach((function(e,t){n.attachComponents(e,n.tabs[t],n.component.components[t].components)})),r}},{key:"detach",value:function(e){m(v(y.prototype),"detach",this).call(this,e)}},{key:"setTab",value:function(e){var t=this;this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,o.default.each(this.refs[this.tabKey],(function(e){t.removeClass(e,"formio-tab-panel-active"),e.style.display="none"})),this.addClass(this.refs[this.tabKey][e],"formio-tab-panel-active"),this.refs[this.tabKey][e].style.display="block",o.default.each(this.refs[this.tabLinkKey],(function(e,n){t.refs[t.tabLinkKey][n]&&t.removeClass(e,"formio-tab-link-active"),t.refs[t.tabLikey][n]&&t.removeClass(t.refs[t.tabLikey][n],"formio-tab-link-container-active")})),this.refs[this.tabLikey][e]&&this.addClass(this.refs[this.tabLikey][e],"formio-tab-link-container-active"),this.refs[this.tabLinkKey][e]&&this.addClass(this.refs[this.tabLinkKey][e],"formio-tab-link-active"),this.triggerChange())}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var t=this.tabs.findIndex((function(t){return t.some((function(t){return t===e}))}));-1!==t&&this.currentTab!==t&&this.setTab(t)}},{key:"setErrorClasses",value:function(e,t,n,r){var o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.component.modalEdit&&m(v(y.prototype),"setErrorClasses",this).call(this,e,t,n,r,i),e.forEach((function(e){o.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(o.options.highlightErrors?o.addClass(e,"tab-error"):o.addClass(e,"has-error"))}))}},{key:"clearErrorClasses",value:function(e){var t=this;if(!this.options.server&&this.rendered){if(this.component.modalEdit){var n=Array.isArray(e)||e instanceof NodeList?this.element:e;m(v(y.prototype),"clearErrorClasses",this).call(this,n)}(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach((function(e){t.removeClass(e,"is-invalid"),t.removeClass(e,"tab-error"),t.removeClass(e,"has-error")}))}}},{key:"handleTabsValidation",value:function(){if(this.refs[this.tabLinkKey]&&this.refs[this.tabLinkKey].length&&this.tabs.length){this.clearErrorClasses(this.refs[this.tabLinkKey]);var e=this.tabs.reduce((function(e,t,n){return t.some((function(e){return!!e.error}))?[].concat(l(e),[n]):e}),[]);if(e.length){var t=l(this.refs[this.tabLinkKey]).filter((function(t,n){return e.includes(n)}));this.setErrorClasses(t)}}}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/form-building/layout-components#tabs",showPreview:!1,schema:y.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],n&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.default);t.default=b},26156:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0},{key:"hideLabel",ignore:!0}]},28145:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(41770));function i(e){return e&&e.__esModule?e:{default:e}}},16186:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(47941),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(5212),n(41539),n(73210),n(79753),n(69600),n(57327),n(74916),n(23123),n(21249),n(83710),n(39714),n(92222),n(68304),n(24812),n(30489);var o,i,a=n(82531),l=(o=n(63820))&&o.__esModule?o:{default:o};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function p(e,t,n,r){return p="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=v(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else h(r,t,n);return!0},p(e,t,n,r)}function h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}"undefined"!=typeof window&&(i=n(57062));var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(m,e);var t,n,r,o,u,h=(o=m,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(o);if(u){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function m(){return f(this,m),h.apply(this,arguments)}return t=m,n=[{key:"init",value:function(){y(w(m.prototype),"init",this).call(this)}},{key:"emptyValue",get:function(){return"string"===this.component.storeas?"":[]}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"inputInfo",get:function(){var e=y(w(m.prototype),"inputInfo",this);return e.type="input",e.attr.type="text",e.changeEvent="change",e}},{key:"delimiter",get:function(){return this.component.delimeter||","}},{key:"attachElement",value:function(e,t){var n=this;if(y(w(m.prototype),"attachElement",this).call(this,e,t),e&&(e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),i)){var r=!!this.component.placeholder;this.choices=new i(e,{delimiter:this.delimiter,editItems:!0,allowHTML:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:r,placeholderValue:r?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=e.tabIndex,this.addEventListener(this.choices.input.element,"blur",(function(){var e=n.choices.input.value,t=n.component.maxTags,r=n.choices.getValue(!0).length,o=n.choices.getValue(!0).some((function(t){return t.trim()===e.trim()}));e&&(t&&r===t?(n.choices.addItems=!1,n.choices.clearInput()):o?n.choices.clearInput():(n.choices.setValue([e]),n.choices.clearInput(),n.choices.hideDropdown(!0),n.updateValue(null,{modified:!0})))}))}}},{key:"detach",value:function(){y(w(m.prototype),"detach",this).call(this),this.choices&&(this.choices.destroy(),this.choices=null)}},{key:"normalizeValue",value:function(e){return"string"===this.component.storeas&&Array.isArray(e)?e.join(this.delimiter):"array"===this.component.storeas&&"string"==typeof e?e.split(this.delimiter).filter((function(e){return e})):e}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=y(w(m.prototype),"setValue",this).call(this,e,n);if(this.choices){var o=this.dataValue;if(this.choices.removeActiveItems(),o){"string"==typeof o&&(o=o.split(this.delimiter).filter((function(e){return e})));var i=Array.isArray(o)?o:[o];this.choices.setValue(i.map((function(e){return t.sanitize(e,t.shouldSanitizeValue)})))}}return r}},{key:"disabled",get:function(){return y(w(m.prototype),"disabled",this)},set:function(e){(function(e,t,n,r,o){if(!p(e,t,n,r||e)&&o)throw new Error("failed to set property")})(w(m.prototype),"disabled",e,this,!0),this.choices&&(e?this.choices.disable():this.choices.enable())}},{key:"focus",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}},{key:"getValueAsString",value:function(e){if(!e)return"";if(Array.isArray(e))return e.join("".concat(this.delimiter||","," "));var t=e.toString();return this.sanitize(t,this.shouldSanitizeValue)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/form-building/advanced-components#tags",weight:30,schema:m.schema()}}},{key:"serverConditionSettings",get:function(){return m.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return c(c({},y(w(m),"conditionOperatorsSettings",this)),{},{operators:[].concat((e=y(w(m),"conditionOperatorsSettings",this).operators,function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["includes","notIncludes"])});var e}},{key:"savedValueTypes",value:function(e){return e=e||{},(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes[e.storeas]||a.componentValueTypes.string]}}],n&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(l.default);t.default=k},41770:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{weight:20,type:"textfield",input:!0,key:"delimeter",label:"Delimiter",tooltip:"What is used to separate the tags.</a>"},{weight:22,type:"number",input:!0,key:"maxTags",label:"Max Tags",defaultValue:0,tooltip:"The maximum amount of tags that can be added. 0 for infinity."},{weight:24,type:"select",input:!0,key:"storeas",label:"Store As",dataSrc:"values",data:{values:[{label:"String (CSV)",value:"string"},{label:"Array of Tags",value:"array"}]}}]},3611:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"validation",components:i.default}]].concat(t))},n(92222);var r=a(n(53983)),o=a(n(64699)),i=a(n(94799));function a(e){return e&&e.__esModule?e:{default:e}}},6610:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(92222),n(91058),n(68309),n(21249),n(89554),n(41539),n(54678),n(24603),n(74916),n(39714),n(15306),n(54747),n(68304),n(24812),n(30489);var o=s(n(8745)),i=s(n(96486)),a=s(n(91459)),l=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(v,e);var t,n,r,s,d,y=(s=v,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(s);if(d){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function v(){return u(this,v),y.apply(this,arguments)}return t=v,n=[{key:"init",value:function(){f(m(v.prototype),"init",this).call(this),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"inputInfo",get:function(){var e=f(m(v.prototype),"inputInfo",this);return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}},{key:"validateMultiple",value:function(){return!this.isJsonValue}},{key:"renderElement",value:function(e,t){var n=this.inputInfo;if(n.attr=n.attr||{},n.content=e,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){var r=this.info.attr.style||"",o='<div ref="input" class="formio-editor-read-only-content" '.concat(r?"style='".concat(r,"'"):"","></div>");return this.renderTemplate("well",{children:o,nestedKey:this.key,value:e})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:e,index:t})}},{key:"autoExpand",get:function(){return this.component.autoExpand}},{key:"updateEditorValue",value:function(e,t){t=this.getConvertedValue(this.trimBlanks(t));var n=this.dataValue;if(this.component.multiple&&Array.isArray(n)){var r=i.default.clone(n);r[e]=t,t=r}i.default.isEqual(t,n)||i.default.isEmpty(t)&&i.default.isEmpty(n)||this.updateValue(t,{modified:!this.autoModified},e),this.autoModified=!1}},{key:"attachElement",value:function(e,t){var n=this;if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,t),this.options.readOnly)return e;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor");var r=i.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[t]=new a.default((function(o){switch(n.component.editor){case"ace":r||(r={}),r.mode=n.component.as?"ace/mode/".concat(n.component.as):"ace/mode/javascript",n.addAce(e,r,(function(e){return n.updateEditorValue(t,e)})).then((function(e){n.editors[t]=e;var r=n.dataValue;return r=n.component.multiple&&Array.isArray(r)?r[t]:r,e.setValue(n.setConvertedValue(r,t)),o(e),e})).catch((function(e){return console.warn(e)}));break;case"quill":(r.hasOwnProperty("toolbarGroups")||r.hasOwnProperty("toolbar"))&&(console.warn("The WYSIWYG settings are configured for CKEditor. For this renderer, you will need to use configurations for the Quill Editor. See https://quilljs.com/docs/configuration for more information."),r=n.wysiwygDefault.quill),n.addQuill(e,r,(function(){return n.updateEditorValue(t,n.editors[t].root.innerHTML)})).then((function(e){if(n.editors[t]=e,n.component.isUploadEnabled){var r=n;e.getModule("uploader").options.handler=function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=r.imageHandler).call.apply(e,[r,this].concat(n))}}e.root.spellcheck=n.component.spellcheck,(n.options.readOnly||n.disabled)&&e.disable();var i=n.dataValue;return i=n.component.multiple&&Array.isArray(i)?i[t]:i,e.setContents(e.clipboard.convert({html:n.setConvertedValue(i,t)})),o(e),e})).catch((function(e){return console.warn(e)}));break;case"ckeditor":(r=r||{}).rows=n.component.rows,n.addCKE(e,r,(function(e){return n.updateEditorValue(t,e)})).then((function(e){n.editors[t]=e;var r=n.dataValue;r=n.component.multiple&&Array.isArray(r)?r[t]:r;var a=n.setConvertedValue(r,t),s=n.options.readOnly||n.disabled;if((0,l.getBrowserInfo)().ie)e.on("instanceReady",(function(){e.setReadOnly(s),e.setData(a)}));else{var u=parseInt(n.component.rows,10);if(i.default.isFinite(u)&&i.default.has(e,"ui.view.editable.editableElement")){var c=31*u+14;e.ui.view.editable.editableElement.style.height="".concat(c,"px")}e.isReadOnly=s,e.data.set(a)}return o(e),e}));break;default:f(m(v.prototype),"attachElement",n).call(n,e,t)}})),e}},{key:"attach",value:function(e){var t=f(m(v.prototype),"attach",this).call(this,e);return this.restoreValue(),t}},{key:"imageHandler",value:function(e,t,n){var r=this,o=e.quill;if(n&&n.length){o.enable(!1);var i,a=this.component,s=a.uploadStorage,u=a.uploadUrl,c=a.uploadOptions,f=a.uploadDir,d=a.fileKey;this.fileService.uploadFile(s,n[0],(0,l.uniqueName)(n[0].name),f||"",null,u,c,d).then((function(e){return i=e,r.fileService.downloadFile(e)})).then((function(e){o.enable(!0);var n=Quill.import("delta");o.updateContents((new n).retain(t.index).delete(t.length).insert({image:e.url},{alt:JSON.stringify(i)}),Quill.sources.USER)})).catch((function(e){console.warn("Quill image upload failed"),console.warn(e),o.enable(!0)}))}else console.warn("No files selected")}},{key:"isPlain",get:function(){return!this.component.wysiwyg&&!this.component.editor}},{key:"htmlView",get:function(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}},{key:"setValueAt",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(f(m(v.prototype),"setValueAt",this).call(this,e,t,r),this.editorsReady[e]){var o=function(r){return function(o){if(!r.skipWysiwyg)switch(n.autoModified=!0,n.component.editor){case"ace":o.setValue(n.setConvertedValue(t,e));break;case"quill":if(n.component.isUploadEnabled)n.setAsyncConvertedValue(t).then((function(e){var t=o.clipboard.convert({html:e});o.setContents(t)}));else{var i=n.setConvertedValue(t,e),a=o.clipboard.convert({html:i});o.setContents(a)}break;case"ckeditor":o.data.set(n.setConvertedValue(t,e))}}};this.editorsReady[e].then(o(i.default.clone(r)))}}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isPlain||this.options.readOnly||this.disabled?(e=this.component.multiple&&Array.isArray(e)?e.map((function(e,n){return t.setConvertedValue(e,n)})):this.setConvertedValue(e),f(m(v.prototype),"setValue",this).call(this,e,n)):(n.skipWysiwyg=(""!==e||!n.resetValue)&&i.default.isEqual(e,this.getValue()),f(m(v.prototype),"setValue",this).call(this,e,n))}},{key:"setContent",value:function(e,t,n){f(m(v.prototype),"setContent",this).call(this,e,t,n,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}},{key:"setReadOnlyValue",value:function(e,t){t=t||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[t]&&("plain"===this.component.inputFormat?this.refs.input[t].innerText=this.isPlain?e:this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[t],this.isPlain?e:this.interpolate(e,{},{noeval:!0}),this.shouldSanitizeValue))}},{key:"isJsonValue",get:function(){return this.component.as&&"json"===this.component.as}},{key:"setConvertedValue",value:function(e,t){if(this.isJsonValue&&!i.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return i.default.isString(e)||(e=""),this.setReadOnlyValue(e,t),e}},{key:"setAsyncConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}i.default.isString(e)||(e="");var t=(new DOMParser).parseFromString(e,"text/html"),n=t.getElementsByTagName("img");return n.length?this.setImagesUrl(n).then((function(){return e=t.getElementsByTagName("body")[0].innerHTML})):a.default.resolve(e)}},{key:"setImagesUrl",value:function(e){var t=this;return a.default.all(i.default.map(e,(function(e){var n;try{n=JSON.parse(e.getAttribute("alt"))}catch(e){console.warn(e)}return t.fileService.downloadFile(n).then((function(t){e.setAttribute("src",t.url)}))})))}},{key:"addAutoExpanding",value:function(e,t){var n=null,r=null,o=function(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t},a=function(){0!==e.scrollHeight&&function(t,r){for(var o=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&o.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;e.style.height="",e.style.height="".concat(e.scrollHeight+n,"px"),o.forEach((function(e){e.node.scrollTop=e.scrollTop}))}(e)},l=i.default.debounce((function(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i=e.offsetHeight;i<t&&"hidden"===n.overflowY?o("scroll"):"hidden"!==n.overflowY&&o("hidden"),a(),i=e.offsetHeight,r!==i&&(r=i,l())}),200),s=window.getComputedStyle(e,null);e.style.resize="none",n=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth)||0,window&&this.addEventListener(window,"resize",l),this.addEventListener(e,"input",l),this.on("initialized",l),this.updateSizes[t]=l,l()}},{key:"trimBlanks",value:function(e){if(!e||this.isPlain)return e;var t=function(e){var t="<p>&nbsp;</p>",n="<p><br></p>",r="<p><br>&nbsp;</p>",o=new RegExp("^".concat(t,"|").concat(t,"$|^").concat(n,"|").concat(n,"$|^").concat(r,"|").concat(r,"$"),"g");return"string"==typeof e?e.replace(o,""):e};return Array.isArray(e)?e.forEach((function(n,r){e[r]=t(n)})):e=t(e),e}},{key:"onChange",value:function(e,t){var n=f(m(v.prototype),"onChange",this).call(this,e,t);return this.updateSizes.forEach((function(e){return e()})),n}},{key:"hasChanged",value:function(e,t){return f(m(v.prototype),"hasChanged",this).call(this,this.trimBlanks(e),this.trimBlanks(t))}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return f(m(v.prototype),"isEmpty",this).call(this,this.trimBlanks(e))}},{key:"defaultValue",get:function(){var e=f(m(v.prototype),"defaultValue",this);return"quill"!==this.component.editor||e||(e="<p><br></p>"),e}},{key:"getConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.parse(e)}catch(e){}return e}},{key:"detach",value:function(){var e=this;this.editors.forEach((function(e){e.destroy&&e.destroy()})),this.editors=[],this.editorsReady=[],this.updateSizes.forEach((function(t){return e.removeEventListener(window,"resize",t)})),this.updateSizes=[],f(m(v.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){return this.isPlain?this.getConvertedValue(f(m(v.prototype),"getValue",this).call(this)):this.dataValue}},{key:"focus",value:function(){var e=this;switch(f(m(v.prototype),"focus",this).call(this),this.component.editor){case"ckeditor":var t;null===(t=this.editorsReady[0])||void 0===t||t.then((function(){var t,n;null!==(t=e.editors[0].editing)&&void 0!==t&&null!==(n=t.view)&&void 0!==n&&n.focus&&e.editors[0].editing.view.focus(),e.element.scrollIntoView()})).catch((function(e){console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"ace":var n;null===(n=this.editorsReady[0])||void 0===n||n.then((function(){e.editors[0].focus(),e.element.scrollIntoView()})).catch((function(e){console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"quill":var r;null===(r=this.editorsReady[0])||void 0===r||r.then((function(){e.editors[0].focus()})).catch((function(e){console.warn("An editor did not initialize properly when trying to focus:",e)}))}}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/form-building/form-components#text-area",weight:20,schema:v.schema()}}}],n&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.default);t.default=y},64699:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(19161),a=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return o.default.map(i.GlobalFormio.Providers.getProviders("storage"),(function(e,t){return{label:e.title,value:t}}))}},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n      "withCredentials": true\n    }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"String",value:"string"},{label:"JSON",value:"json"},{label:"HTML",value:"html"}]},conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ace"]}]}},weight:416},{type:"textarea",input:!0,editor:"ace",rows:10,as:"json",label:"Editor Settings",tooltip:"Enter the WYSIWYG editor JSON configuration.",key:"wysiwyg",customDefaultValue:function(e,t,n,r,o){return o?o.wysiwygDefault:""},conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}];t.default=a},94799:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0}]},53983:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(86297)),i=l(n(58054)),a=l(n(64082));function l(e){return e&&e.__esModule?e:{default:e}}},8745:function(e,t,n){"use strict";n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),n(32165),n(78783),n(91038),n(47042),n(68309),n(4129),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(21249),n(66992),n(41539),n(33948),n(85827),n(73210),n(83710),n(39714),n(74916),n(15306),n(92222),n(27207),n(68304),n(24812),n(30489);var r=c(n(63820)),o=n(47853),i=c(n(25382)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(82531)),l=c(n(91459)),s=c(n(96486));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function v(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===d(t)?t:String(t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(){return w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=k(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},w.apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(v,e);var t,n,u,c,p,m=(c=v,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(c);if(p){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function v(e,t,n){var r,o,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v);var l=(null===(r=(a=m.call(this,e,t,n)).component.widget)||void 0===r?void 0:r.timezone)||a.options.timezone,s=(null===(o=a.component.widget)||void 0===o?void 0:o.displayInTimezone)||"viewer";return"calendar"===(null===(i=a.component.widget)||void 0===i?void 0:i.type)&&(a.component.widget=h(h({},a.component.widget),{},{readOnly:a.options.readOnly,timezone:l,displayInTimezone:s,locale:a.component.widget.locale||a.options.language,saveAs:"text"})),a}return t=v,n=[{key:"defaultSchema",get:function(){return v.schema()}},{key:"inputInfo",get:function(){var e=w(O(v.prototype),"inputInfo",this);return e.type="input",this.component.hasOwnProperty("spellcheck")&&(e.attr.spellcheck=this.component.spellcheck),this.component.mask?e.attr.type="password":e.attr.type="password"===this.component.inputType?"password":"text",e.changeEvent="blur"===this.component.applyMaskOn?"blur":"input",e}},{key:"emptyValue",get:function(){return""}},{key:"attach",value:function(e){return this.loadRefs(e,{valueMaskInput:"single"}),w(O(v.prototype),"attach",this).call(this,e)}},{key:"maskValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"object"===d(e)||(e={value:e,maskName:this.component.inputMasks[0].label}),!e.value){var n=t.noDefault?this.emptyValue:this.defaultValue;e.value=Array.isArray(n)?n[0]:n}return e}},{key:"normalizeValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isMultipleMasksField?Array.isArray(e)?w(O(v.prototype),"normalizeValue",this).call(this,e.map((function(e){return t.maskValue(e,n)}))):w(O(v.prototype),"normalizeValue",this).call(this,this.maskValue(e,n)):w(O(v.prototype),"normalizeValue",this).call(this,e)}},{key:"setValueAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isMultipleMasksField)return w(O(v.prototype),"setValueAt",this).call(this,e,t,n);var r=(t=this.maskValue(t,n)).value||"",i=this.refs.mask?this.refs.mask[e]:null,l=this.refs.select?this.refs.select[e]:null,s=this.getMaskPattern(t.maskName);if(!(i&&l&&s))return w(O(v.prototype),"setValueAt",this).call(this,e,r,n);if(i.inputmask)this.setInputMask(i,s),i.inputmask.setValue(r);else{var u=this.placeholderChar;i.value=(0,o.conformToMask)(r,a.getInputMask(s),{placeholderChar:u}).conformedValue}l.value=t.maskName}},{key:"unmaskValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.component.displayMask,n=a.getInputMask(t,this.placeholderChar);return a.unmaskValue(e,n,this.placeholderChar)}},{key:"getValueAt",value:function(e){if(!this.isMultipleMasksField){var t,n,r=w(O(v.prototype),"getValueAt",this).call(this,e),o=this.component.inputMask,a=this.component.displayMask;return o&&!a||a===o?r:a&&!o?this.unmaskValue(r,a):a&&a!==o?i.default.format(i.default.unmask(r,a),o):null!==(t=this.refs.valueMaskInput)&&void 0!==t&&t.mask&&this.refs.valueMaskInput.mask.textMaskInputElement?(this.refs.valueMaskInput.mask.textMaskInputElement.update(r),null===(n=this.refs.valueMaskInput)||void 0===n?void 0:n.value):r}var l=this.refs.mask?this.refs.mask[e]:null,s=this.refs.select?this.refs.select[e]:null;return{value:l?l.value:void 0,maskName:s?s.value:void 0}}},{key:"checkInputMaskValue",value:function(e){var t=!0,n=s.default.values(e.split("").reduce((function(e,n,r,o){var i;return"{"!==n&&"}"!==n||("{"!==o[r+1]&&"}"!==o[r+1]||(t=!1),e[n]=(null!==(i=e[n])&&void 0!==i?i:0)+1),e}),{}));return n[0]!==n[1]&&(t=!1),t}},{key:"setInputMask",value:function(e,t,n){if("textfield"===this.type){t=t||this.component.displayMask||this.component.inputMask;var r=a.getInputMask(t,this.placeholderChar);if(this.defaultMask=r,e&&t){try{e.mask&&e.mask.remove(),this.checkInputMaskValue(t)&&(e.mask=new i.default(t,{clearMaskOnLostFocus:!!this.component.placeholder,showMaskOnHover:!this.component.placeholder,placeholder:this.placeholderChar||""}).mask(e))}catch(e){console.warn(e)}r.numeric&&e.setAttribute("pattern","\\d*"),this.component.placeholder&&e.setAttribute("placeholder",this.component.placeholder)}}else w(O(v.prototype),"setInputMask",this).call(this,e,t,n)}},{key:"isHtmlRenderMode",value:function(){return w(O(v.prototype),"isHtmlRenderMode",this).call(this)||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return this.isMultipleMasksField?w(O(v.prototype),"isEmpty",this).call(this,e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):w(O(v.prototype),"isEmpty",this).call(this,(e||"").toString().trim())}},{key:"truncateMultipleSpaces",value:function(e){return e?e.trim().replace(/\s{2,}/g," "):e}},{key:"validationValue",get:function(){var e=w(O(v.prototype),"validationValue",this);return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}},{key:"beforeSubmit",value:function(){var e=this,t=this.dataValue;return this.component.truncateMultipleSpaces&&t?(t=this.truncateMultipleSpaces(t),this.dataValue=t,l.default.resolve(t).then((function(){return w(O(v.prototype),"beforeSubmit",e).call(e)}))):l.default.resolve(t)}},{key:"getValueAsString",value:function(e,t){return null!=t&&t.email&&this.visible&&!this.skipInEmail&&s.default.isObject(e)?'\n        <table border="1" style="width:100%">\n          <tbody>\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e.maskName,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(e.value,"</td>\n          </tr>\n          </tbody>\n        </table>\n      "):(e&&"plain"===this.component.inputFormat&&/<[^<>]+>/g.test(e)&&(e=e.replaceAll("<","&lt;").replaceAll(">","&gt;")),w(O(v.prototype),"getValueAsString",this).call(this,e,t))}}],u=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.schema.apply(r.default,[{label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/form-building/form-components#text-field",weight:0,schema:v.schema()}}},{key:"serverConditionSettings",get:function(){return v.conditionOperatorsSettings}},{key:"conditionOperatorsSettings",get:function(){return h(h({},w(O(v),"conditionOperatorsSettings",this)),{},{operators:[].concat((e=w(O(v),"conditionOperatorsSettings",this).operators,function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["includes","notIncludes","endsWith","startsWith"]),valueComponent:function(e){return h(h({},e),{},{type:"textfield"})}});var e}},{key:"savedValueTypes",value:function(e){return a.getComponentSavedTypes(e)||[a.componentValueTypes.string]}}],n&&y(t.prototype,n),u&&y(t,u),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.default);t.default=_},86297:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"select",label:"Input Format",key:"inputFormat",weight:105,placeholder:"Input Format",tooltip:"Force the output of this field to be sanitized in a specific format.",template:"<span>{{ item.label }}</span>",data:{values:[{value:"plain",label:"Plain"},{value:"html",label:"HTML"},{value:"raw",label:"Raw (Insecure)"}]},defaultValue:"plain",input:!0},{weight:200,type:"radio",label:"Text Case",key:"case",tooltip:"When data is entered, you can change the case of the value.",input:!0,values:[{value:"mixed",label:"Mixed (Allow upper and lower case)"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpaces",label:"Truncate Multiple Spaces"}]},58054:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(22457)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{weight:400,type:"select",input:!0,key:"widget.type",label:"Widget",placeholder:"Select a widget",tooltip:"The widget is the display UI used to input the value of the field.",defaultValue:"input",onChange:function(e){e.data.widget=o.default.pick(e.data.widget,"type")},dataSrc:"values",data:{values:[{label:"Input Field",value:"input"},{label:"Calendar Picker",value:"calendar"}]},conditional:{json:{"===":[{var:"data.type"},"textfield"]}}},{weight:405,type:"textarea",key:"widget",label:"Widget Settings",refreshOn:"wiget.type",clearOnHide:!1,calculateValue:function(e){var t=e.instance.calculatedValue,n=e.data.widget.type;if(o.default.isEmpty(o.default.omit(e.data.widget,"type"))||o.default.isEmpty(o.default.omit(t,"type"))){if(t&&!t.type)return e.data.widget;var i=e.instance._currentForm.options.editComponent.widget;if(i&&!o.default.isEmpty(o.default.omit(i,"type"))&&n===i.type)return o.default.omit(i,"language");if(n)return o.default.omit(r.default[n].defaultSettings,"language")}return e.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the  value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:410,type:"select",input:!0,key:"applyMaskOn",label:"Apply Mask On",tooltip:"Select the type of applying mask.",defaultValue:"change",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]},customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field. <br>E.g., ˍ<br>Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:function(e){return e.data.inputMask||e.data.displayMask}},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:function(e){return!0===e.data.allowMultipleMasks},reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete'>MDN documentation</a> on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",key:"mask",input:!0},{weight:1200,type:"checkbox",label:"Show Word Counter",tooltip:"Show a live count of the number of words.",key:"showWordCount",input:!0},{weight:1201,type:"checkbox",label:"Show Character Counter",tooltip:"Show a live count of the number of characters.",key:"showCharCount",input:!0}];t.default=a},64082:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0},{weight:130,key:"validate.pattern",label:"Regular Expression Pattern",placeholder:"Regular Expression Pattern",type:"textfield",tooltip:"The regular expression pattern test that the field value must pass before the form can be submitted.",input:!0}]},65105:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:o.default},{key:"display",components:i.default}]].concat(t))},n(92222);var r=a(n(3248)),o=a(n(60480)),i=a(n(21992));function a(e){return e&&e.__esModule?e:{default:e}}},8948:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(74819),n(38880),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),n(91038),n(68309),n(47941),n(57327),n(89554),n(54747),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(21249),n(26699),n(32023),n(92222),n(47042),n(69600),n(74916),n(15306),n(68304),n(24812),n(30489);var o=l(n(30381)),i=l(n(8745)),a=n(82531);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},v.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w="HH:mm:ss",k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(d,e);var t,n,r,l,s,c=(l=d,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(l);if(s){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function d(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),r=c.call(this,e,t,n);var o=(0,a.getBrowserInfo)(),i=o.edge,l=o.version;return r.component.inputMask=r.getInputMaskFromFormat(r.component.format),r.component.inputType=i&&l<=18?"text":r.component.inputType||"time",r.rawData=r.component.multiple?[]:r.emptyValue,r}return t=d,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:w}].concat(t))}},{key:"serverConditionSettings",get:function(){return u(u({},v(g(d),"serverConditionSettings",this)),{},{valueComponent:function(e){return u(u({},e),{},{type:"time"})}})}},{key:"builderInfo",get:function(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/form-building/advanced-components#time-1",weight:55,schema:d.schema()}}}],(n=[{key:"init",value:function(){v(g(d.prototype),"init",this).call(this),"text"===this.component.inputType&&this.validators.push("time")}},{key:"dataFormat",get:function(){return this.component.dataFormat||w}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"defaultValue",get:function(){var e=this,t=v(g(d.prototype),"defaultValue",this);return this.component.multiple&&Array.isArray(t)?t=t.map((function(t){return t?e.getStringAsValue(t):t})):t&&(t=this.getStringAsValue(t)),t}},{key:"validationValue",get:function(){return Array.isArray(this.rawData)&&!this.rawData.length||!this.rawData?this.dataValue:this.rawData}},{key:"inputInfo",get:function(){var e=v(g(d.prototype),"inputInfo",this);return e.attr.type=this.component.inputType,e}},{key:"skipMaskValidation",get:function(){return!0}},{key:"isNotCompleteInput",value:function(e){return e.includes("_")}},{key:"removeValue",value:function(e){this.rawData=Array.isArray(this.rawData)?[].concat(f(this.rawData.slice(0,e)),f(this.rawData.slice(e+1))):this.emptyValue,v(g(d.prototype),"removeValue",this).call(this,e)}},{key:"resetRawData",value:function(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}},{key:"setRawValue",value:function(e,t){Array.isArray(this.rawData)?this.rawData[t]=e:this.rawData=e}},{key:"getRawValue",value:function(e){return e&&Array.isArray(this.rawData)?this.rawData[e]||this.emptyValue:this.rawData}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return this.emptyValue;var t=this.refs.input[e].value;return t?(this.setRawValue(t,e),this.getStringAsValue(t)):(this.resetRawData(e),this.emptyValue)}},{key:"setValueAt",value:function(e,t){this.setRawValue(t?this.getValueAsString(t):t,e),this.refs.input[e].value=this.getRawValue(e)}},{key:"getStringAsValue",value:function(e){return e?(0,o.default)(e,this.component.format).format(this.component.dataFormat):e}},{key:"getValueAsString",value:function(e){var t=this;return Array.isArray(e)&&this.component.multiple?e.map((function(e){return(0,o.default)(e,t.component.dataFormat).format(t.component.format)})).join(", "):(e?(0,o.default)(e,this.component.dataFormat).format(this.component.format):e)||""}},{key:"getInputMaskFromFormat",value:function(e){return"LT"===e?"99:99 AA":"LTS"===e?"99:99:99 AA":e.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}},{key:"addFocusBlurEvents",value:function(e){var t=this;v(g(d.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(e.value)}))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.default);t.default=k},60480:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"textfield",input:!0,key:"dataFormat",label:"Data Format",placeholder:"HH:mm:ss",tooltip:"The moment.js format for saving the value of this field.",weight:25}]},21992:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{type:"select",input:!0,weight:40,tooltip:"Select the type of widget you'd like to use.",key:"inputType",defaultValue:"time",label:"Input Type",dataSrc:"values",data:{values:[{label:"HTML5 Time Input",value:"time"},{label:"Text Input with Mask",value:"text"}]}},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",tooltip:"The moment.js format for showing the value of this field.",weight:50,defaultValue:"HH:mm",conditional:{json:{"===":[{var:"data.inputType"},"text"]}}},{key:"placeholder",ignore:!0}]},59612:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(57327),n(41539),n(5212),n(79753),n(92222),n(89554),n(54747),n(85827),n(96649),n(96078),n(82526),n(41817),n(9653);var r,o=(r=n(96486))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===i(o)?o:String(o)),r)}var o}var s=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.data,l=void 0===i?{}:i,s=r.children,u=void 0===s?[]:s,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=c.checkNode,d=c.createComponents,p=c.isNew,h=void 0===p||p,m=c.removeComponents,y=c.parentPath,v=void 0===y?"":y;a(this,e),this.parent=t,this.previousData={},this.persistentData=o.default.cloneDeep(l),this.new=h,this.createComponents=d,this.checkNode=f,this.removeComponents=m,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=v,this.resetData(),this.children=u.map((function(t,r){return new e(n,t,{checkNode:f,createComponents:d,isNew:!1,removeComponents:m,parentPath:n.getChildrenPath(r)})}))}var t,n;return t=e,(n=[{key:"value",get:function(){return this.new?null:{data:o.default.cloneDeep(this.persistentData),children:this.children.filter((function(e){return!e.new})).map((function(e){return e.value}))}}},{key:"isRoot",get:function(){return null===this.parent}},{key:"changing",get:function(){return this.new||this.editing}},{key:"hasChangingChildren",get:function(){return this.changin||this.children.some((function(e){return e.hasChangingChildren}))}},{key:"hasData",get:function(){return!o.default.isEmpty(this.persistentData)}},{key:"hasChildren",get:function(){return Array.isArray(this.children)&&this.children.length>0}},{key:"getChildrenPath",value:function(e){return this.parentPath?"".concat(this.parentPath,".children[").concat(e,"]"):""}},{key:"eachChild",value:function(e){return e(this),this.children.forEach((function(t){return t.eachChild(e)})),this}},{key:"getComponents",value:function(){return this.children.reduce((function(e,t){return e.concat(t.getComponents())}),this.components)}},{key:"validateNode",value:function(){var e=this,t=!0;return this.getComponents().forEach((function(n){n.setPristine(!1),t&=n.checkValidity(null,!1,e.persistentData)})),t}},{key:"addChild",value:function(){if(this.new)return null;var t=new e(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(t),t}},{key:"removeChild",value:function(e){return this.new||(this.children=this.children.filter((function(t){return t!==e}))),this}},{key:"edit",value:function(){return this.new?this:(this.editing=!0,this.resetData())}},{key:"save",value:function(){var e=this.validateNode();return this.changing&&e&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),e}},{key:"cancel",value:function(){return this.new?this.remove():this.editing&&(this.editing=!1,this.resetData()),this}},{key:"remove",value:function(){return this.parent.removeChild(this),this.parent=null,this.clearComponents(),this}},{key:"revert",value:function(){return this.revertAvailable?(this.data=this.previousData,this.commitData()):this}},{key:"commitData",value:function(){return this.previousData=this.persistentData,this.persistentData=o.default.cloneDeep(this.data),this.clearComponents(),this}},{key:"resetData",value:function(){return this.data=o.default.cloneDeep(this.persistentData),this.updateComponentsContext(),this}},{key:"updateComponentsContext",value:function(){return this.changing?this.instantiateComponents():this.clearComponents(),this}},{key:"instantiateComponents",value:function(){var e=this;this.components=this.createComponents(this.data,this),this.components.forEach((function(t){if(e.parentPath){var n=e.calculateComponentPath(t);t.path=n}})),this.checkNode(this)}},{key:"clearComponents",value:function(){this.removeComponents(this.components),this.components=[]}},{key:"calculateComponentPath",value:function(e){var t="";return e.component.key&&(t="".concat(this.parentPath,".data.").concat(e.component.key)),t}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},69561:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:i.default},{key:"data",components:o.default}]].concat(t))},n(92222);var r=a(n(3248)),o=a(n(39742)),i=a(n(26832));function a(e){return e&&e.__esModule?e:{default:e}}},5570:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(57327),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(89554),n(41539),n(54747),n(21249),n(85827),n(24812),n(47941),n(68304),n(30489);var o=c(n(96486)),i=c(n(64430)),a=c(n(39086)),l=c(n(67329)),s=c(n(59612)),u=c(n(91459));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function m(e,t,n,r){return m="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=g(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else y(r,t,n);return!0},m(e,t,n,r)}function y(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=g(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},b.apply(this,arguments)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function k(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(v,e);var t,n,r,i,c,f=(i=v,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(i);if(c){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function v(){var e;p(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=f.call.apply(f,[this].concat(n))).type="tree",e}return t=v,n=[{key:"emptyValue",get:function(){return{}}},{key:"viewComponents",get:function(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}},{key:"init",value:function(){if(this.builderMode)return b(O(v.prototype),"init",this).call(this);this.components=[],this.componentOptions=d(d({},this.options),{},{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}},{key:"disabled",get:function(){return b(O(v.prototype),"disabled",this)},set:function(e){(function(e,t,n,r,o){if(!m(e,t,n,r||e)&&o)throw new Error("failed to set property")})(O(v.prototype),"disabled",e,this,!0),this.viewComponents.forEach((function(t){return t.parentDisabled=e}))}},{key:"isDefaultValueComponent",get:function(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}},{key:"destroy",value:function(){b(O(v.prototype),"destroy",this).call(this),this.builderMode||this.removeComponents(this._viewComponents)}},{key:"createComponents",value:function(e,t){var n=this,r=this.componentComponents.map((function(t){var r=a.default.create(t,n.componentOptions,e);return r.init(),r.parentDisabled=n.disabled,r}));return t&&this.checkNode(this.data,t),r}},{key:"removeComponents",value:function(e){return e.map((function(e){return e.destroy()}))}},{key:"render",value:function(){return this.builderMode?b(O(v.prototype),"render",this).call(this):b(O(v.prototype),"render",this).call(this,this.renderTree(this.treeRoot))}},{key:"renderTree",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.hasChildren&&!e.collapsed?this.renderChildNodes(e.children,!t):[],r=e.changing?this.renderEdit(e):this.renderView(e);return this.renderTemplate("tree",{odd:t,childNodes:n,content:r,node:e})}},{key:"renderChildNodes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return t.map((function(t){return e.renderTree(t,n)}))}},{key:"renderEdit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeEdit",{children:this.renderComponents(e.components),node:e})}},{key:"renderView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeView",{values:this.viewComponents.map((function(t){return t.data=e.data,t.checkComponentConditions(e.data),t.getView(t.dataValue)})),nodeData:e.data,node:e})}},{key:"attach",value:function(e){return this.builderMode?b(O(v.prototype),"attach",this).call(this,e):(this.loadRefs(e,{root:"single"}),u.default.all([b(O(v.prototype),"attach",this).call(this,e),this.attachNode(this.refs.root,this.treeRoot)]))}},{key:"attachNode",value:function(e,t){if(!e)return u.default.resolve();var n=u.default.resolve(),r=u.default.resolve();return t.refs=o.default.reduce(e.children,(function(e,t){return t.hasAttribute("ref")?d(d({},e),{},y({},t.getAttribute("ref"),t)):e}),{}),t.refs.content&&(this.attachActions(t),n=this.attachComponents(t)),t.refs.childNodes&&(r=this.attachChildren(t)),u.default.all([n,r])}},{key:"attachActions",value:function(e){var t,n=this;e.editing||this.loadRefs.call(e,e.refs.content,{addChild:"single",editNode:"single",removeNode:"single",revertNode:"single",toggleNode:"single"}),this.loadRefs.call(e,(null===(t=e.refs.content.children[0])||void 0===t?void 0:t.children[1])||e.refs.content,{cancelNode:"single",saveNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",(function(){n.addChild(e)})),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",(function(){n.cancelNode(e)})),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",(function(){n.editNode(e)})),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",(function(){n.removeNode(e)})),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",(function(){n.revertNode(e)})),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",(function(){n.saveNode(e)})),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",(function(){n.toggleNode(e)}))}},{key:"attachComponents",value:function(e){if(this.builderMode){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=b(O(v.prototype),"attachComponents",this)).call.apply(t,[this,e].concat(r))}return this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?b(O(v.prototype),"attachComponents",this).call(this,e.refs.nodeEdit,e.components):u.default.resolve()}},{key:"attachChildren",value:function(e){var t=this,n=e.refs.childNodes.children;return u.default.all(o.default.map(n,(function(n,r){return t.attachNode(n,e.children[r])})))}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.updateValue(e,t);return this.setRoot(),n}},{key:"addChild",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.addChild",{parent:e,component:this},(function(){var n=e.addChild();return t.redraw(),n}))}},{key:"cancelNode",value:function(e){var t=this;this.options.readOnly||this.hook("tree.cancelNode",{node:e,component:this},(function(){return e.isRoot?e.persistentData&&!o.default.isEmpty(e.persistentData)?(e.cancel(),t.redraw()):t.removeRoot():(e.cancel(),t.redraw()),e}))}},{key:"editNode",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.editNode",{node:e,component:this},(function(){return e.edit(),t.redraw(),e}))}},{key:"removeNode",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.removeNode",{node:e,component:this},(function(){return e.isRoot?t.removeRoot():(e.remove(),t.updateTree()),e}))}},{key:"revertNode",value:function(e){var t=this;!this.options.readOnly&&e.revertAvailable&&this.hook("tree.revertNode",{node:e,component:this},(function(){return e.revert(),t.updateTree(),e}))}},{key:"saveNode",value:function(e){var t=this;this.options.readOnly||this.hook("tree.saveNode",{node:e,component:this},(function(){return e.save()&&t.updateTree(),e}))}},{key:"toggleNode",value:function(e){var t=this;this.hook("tree.toggleNode",{node:e,component:this},(function(){return e.collapsed=!e.collapsed,t.redraw(),e}))}},{key:"removeRoot",value:function(){this.options.readOnly||(this.dataValue=this.defaultValue,this.setRoot(),this.redraw())}},{key:"setRoot",value:function(){var e=this.getValue();this.treeRoot=new s.default(null,e,{isNew:!!this.builderMode||!e.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents,parentPath:this.isDefaultValueComponent?this.path||this.component.key:null}),this.hook("tree.setRoot",{root:this.treeRoot,component:this}),this.redraw()}},{key:"getValue",value:function(){return this.dataValue||{}}},{key:"updateTree",value:function(){this.updateValue(this.treeRoot.value),this.redraw()}},{key:"checkData",value:function(e,t,n){return this.checkNode(e,this.treeRoot,t,n)}},{key:"checkNode",value:function(e,t,n,r){var o=this;return t.children.reduce((function(t,i){return o.checkNode(e,i,n,r)&&t}),b(O(v.prototype),"checkData",this).call(this,e,n,t.data,t.components)&&!t.editing&&!t.new)}},{key:"getComponents",value:function(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():b(O(v.prototype),"getComponents",this).call(this)}},{key:"getValueAsString",value:function(e,t){if(null!=t&&t.email){var n="";return n+=function e(t){var n,r,o='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return o+="\n            <tr>\n      ",o+=Object.keys(t.data).map((function(e){return'\n              <th style="padding: 5px 10px;">'.concat(e,'</th>\n              <td style="width:100%;padding:5px 10px;">\n                ').concat(t.data[e],"\n                <br>\n      ")})),0!==(null===(n=t.children)||void 0===n?void 0:n.length)&&(null===(r=t.children)||void 0===r||r.forEach((function(t){o+=e(t)}))),o+="\n              </td>\n            </tr>\n      ",o+="\n          </tbody>\n        </table>\n      "}(e),n}return b(O(v.prototype),"getValueAsString",this).call(this,e,t)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tree",icon:"indent",weight:40,documentation:"/userguide/form-building/data-components#tree",showPreview:!1,schema:v.schema()}}}],n&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),v}(l.default);t.default=_,_.prototype.hasChanged=i.default.prototype.hasChanged},39742:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},26832:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"treeInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."}]},18995:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:o.default}]}]}};var r,o=(r=n(55066))&&r.__esModule?r:{default:r}},37978:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(d,e);var t,n,r,o,c,f=(o=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(o);if(c){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function d(){return i(this,d),f.apply(this,arguments)}return t=d,r=[{key:"schema",value:function(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}},{key:"builderInfo",get:function(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-building/premium-components#custom",weight:120,schema:d.schema()}}}],(n=[{key:"defaultSchema",get:function(){return d.schema()}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(((o=n(64430))&&o.__esModule?o:{default:o}).default);t.default=c},55066:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"customComponentDescription",label:"Custom component description",input:!1,tag:"p",content:'Custom components can be used to render special fields or widgets inside your app. For information on how to display in an app, see <a href="http://help.form.io/userguide/#custom" target="_blank" rel="noopener noreferrer">custom component documentation</a>.',type:"htmlelement",weight:5},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Custom Element JSON",tooltip:"Enter the JSON for this custom element."}]},81541:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:a.default}]].concat(t))},n(92222);var r=l(n(53983)),o=l(n(58087)),i=l(n(36566)),a=l(n(6595));function l(e){return e&&e.__esModule?e:{default:e}}},12151:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o,i=(o=n(8745))&&o.__esModule?o:{default:o};function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(r=d.call(this,e,t,n)).validators.push("url"),r}return t=p,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"url",label:"Url",key:"url",inputType:"url"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/form-building/advanced-components#url",weight:20,schema:p.schema()}}}],(n=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"elementInfo",value:function(){var e=l(f(p.prototype),"elementInfo",this).call(this);return e.attr.type=this.component.mask?"password":"url",e}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.default);t.default=d},36566:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"case",ignore:!0}]},58087:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},6595:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},793:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(15110));function i(e){return e&&e.__esModule?e:{default:e}}},86267:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68304),n(24812),n(30489);var o,i=(o=n(24561))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(p,e);var t,n,r,o,f,d=(o=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(o);if(f){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){var e;a(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=d.call.apply(d,[this].concat(n))).noField=!0,e}return t=p,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"well",key:"well",input:!1,persistent:!1,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/form-building/layout-components#well",showPreview:!1,weight:60,schema:p.schema()}}},{key:"savedValueTypes",value:function(){return[]}}],(n=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"className",get:function(){return"".concat(this.component.customClass)}},{key:"templateName",get:function(){return"well"}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.default);t.default=f},15110:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0}]},98890:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=l(n(96486)),o=l(n(48254)),i=l(n(12215)),a=l(n(33456));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var f,d,p,h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addDisplay",value:function(t,n){e.displays[t]=n}},{key:"addDisplays",value:function(t){e.displays=r.default.merge(e.displays,t)}},{key:"getDisplay",value:function(t){return e.displays[t]}},{key:"getDisplays",value:function(){return e.displays}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=h,f=h,d="displays",p={pdf:o.default,webform:i.default,wizard:a.default},(d=c(d))in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p},9411:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(98890))&&r.__esModule?r:{default:r}).default;t.default=o},14145:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Builders",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Conjunctions",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Displays",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Licenses",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"Operators",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Providers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"QuickRules",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Rules",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Templates",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Transformers",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Utils",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"ValueSources",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"Widgets",{enumerable:!0,get:function(){return v.default}}),n(47941),n(89554),n(41539),n(54747),n(79753),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948);var r=O(n(96486)),o=O(n(19161)),i=O(n(15178)),a=O(n(57514)),l=O(n(39086)),s=O(n(98890)),u=O(n(51508)),c=O(n(10695)),f=O(n(24897)),d=O(n(4338)),p=O(n(3764)),h=O(n(50136)),m=O(n(87892)),y=O(n(20168)),v=O(n(22457)),b=O(n(71277)),g=O(n(55666)),w=O(n(193)),k=O(n(2869));function O(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}o.default.loadModules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(o.default.getApiUrl(),"/externalModules.js"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"externalModules";o.default.requireLibrary(t,t,e,!0).then((function(e){o.default.use(e)}))},o.default.Components=l.default,o.default.Templates=u.default,o.default.Builders=a.default,o.default.Utils=g.default,o.default.Form=b.default,o.default.Displays=s.default,o.default.Providers=c.default,o.default.Rules=f.default,o.default.Widgets=v.default,o.default.Evaluator=w.default,o.default.Conjunctions=d.default,o.default.Operators=p.default,o.default.QuickRules=h.default,o.default.Transformers=m.default,o.default.ValueSources=y.default,o.default.AllComponents=i.default,o.default.Licenses=k.default,o.default.Formio=o.default,o.default.Components.setComponents(i.default);var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===_(e))for(var n=0,i=Object.keys(e);n<i.length;n++){var a=i[n],l=e.framework||o.default.Templates.framework||"bootstrap";switch(a){case"options":o.default.options=r.default.merge(o.default.options,e.options);break;case"templates":for(var s=0,u=Object.keys(e.templates);s<u.length;s++){var c=u[s];o.default.Templates.extendTemplate(c,e.templates[c])}e.templates[l]&&(o.default.Templates.current=e.templates[l]);break;case"components":o.default.Components.setComponents(e.components);break;case"framework":o.default.Templates.framework=e.framework;break;case"fetch":for(var f=0,d=Object.keys(e.fetch);f<d.length;f++){var p=d[f];o.default.registerPlugin(e.fetch[p],p)}break;case"providers":for(var h=0,m=Object.keys(e.providers);h<m.length;h++){var y=m[h];o.default.Providers.addProviders(y,e.providers[y])}break;case"displays":o.default.Displays.addDisplays(e.displays);break;case"builders":o.default.Builders.addBuilders(e.builders);break;case"rules":o.default.Rules.addRules(e.rules);break;case"evaluator":o.default.Evaluator.registerEvaluator(e.evaluator);break;case"conjunctions":o.default.Conjunctions.addConjunctions(e.conjunctions);break;case"operators":o.default.Operators.addOperators(e.operators);break;case"quickRules":o.default.QuickRules.addQuickRules(e.quickRules);break;case"transformers":o.default.Transformers.addTransformers(e.transformers);break;case"valueSources":o.default.ValueSources.addValueSources(e.valueSources);break;case"library":t.license?o.default.Licenses.addLicense(e.library,t.license):o.default.Licenses.removeLicense(e.library);break;default:console.log("Unknown plugin option",a)}}};o.default.use=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(e=r.default.isArray(e)?e:[e]).forEach((function(e){Array.isArray(e)?e.forEach((function(e){return S(e,t)})):S(e,t)}))}},68204:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(6701))&&r.__esModule?r:{default:r},i={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,n(82531).fastCloneDeep)(o.default)}}};t.default=i},69078:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r,o=(r=n(96486))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addLicense",value:function(t,n){e.licenses[t]=n}},{key:"getLicense",value:function(t){return e.licenses[t]}},{key:"removeLicense",value:function(t){o.default.unset(e.licenses,t)}},{key:"getLicenses",value:function(){return e.licenses}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s,function(e,t,n){(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(s,"licenses",{})},2869:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(69078))&&r.__esModule?r:{default:r}).default;t.default=o},29141:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(69070),n(59595),n(35500),n(74916),n(68309),n(23123),n(15306),n(83710),n(41539),n(39714),n(69600),"undefined"!=typeof window&&void 0!==window.document&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})),function(e,t){if("undefined"!=typeof document){var n,o,i,a;"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(e){return!1}}()||(n=Object.defineProperty,o=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),i="Getters & setters cannot be defined on this javascript engine",a="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(e,t,l){if(n&&(e===window||e===document||e===Element.prototype||e instanceof Element))return n(e,t,l);if(null===e||!(e instanceof Object||"object"===r(e)))throw new TypeError("Object.defineProperty called on non-object");if(!(l instanceof Object))throw new TypeError("Property description must be an object");var s=String(t),u="value"in l||"writable"in l,c="get"in l&&r(l.get),f="set"in l&&r(l.set);if(c){if("function"!==c)throw new TypeError("Getter must be a function");if(!o)throw new TypeError(i);if(u)throw new TypeError(a);Object.__defineGetter__.call(e,s,l.get)}else e[s]=l.value;if(f){if("function"!==f)throw new TypeError("Setter must be a function");if(!o)throw new TypeError(i);if(u)throw new TypeError(a);Object.__defineSetter__.call(e,s,l.set)}return"value"in l&&(e[s]=l.value),e});var l,s,u=function(){var e=!0,n=function(t,n,r,o){Object.defineProperty?Object.defineProperty(t,n,{configurable:!1===e||!!o,get:r}):t.__defineGetter__(n,r)};try{n({},"support")}catch(t){e=!1}return function(e,o){var i=this,a=[],l={},s=0,u=0,c=function(e){n(i,e,(function(){return d(),a[e]}),!1)},f=function(){if(s>=u)for(;u<s;++u)c(u)},d=function(){var t,n,i=arguments,u=/\s+/;if(i.length)for(n=0;n<i.length;++n)if(u.test(i[n]))throw(t=new SyntaxError('String "'+i[n]+'" contains an invalid character')).code=5,t.name="InvalidCharacterError",t;for(""===(a="object"===r(e[o])?(""+e[o].baseVal).replace(/^\s+|\s+$/g,"").split(u):(""+e[o]).replace(/^\s+|\s+$/g,"").split(u))[0]&&(a=[]),l={},n=0;n<a.length;++n)l[a[n]]=!0;s=a.length,f()};return d(),n(i,"length",(function(){return d(),s})),i.toLocaleString=i.toString=function(){return d(),a.join(" ")},i.item=function(e){return d(),a[e]},i.contains=function(e){return d(),!!l[e]},i.add=function(){d.apply(i,t=arguments);for(var t,n,u=0,c=t.length;u<c;++u)n=t[u],l[n]||(a.push(n),l[n]=!0);s!==a.length&&(s=a.length>>>0,"object"===r(e[o])?e[o].baseVal=a.join(" "):e[o]=a.join(" "),f())},i.remove=function(){d.apply(i,t=arguments);for(var t,n={},u=0,c=[];u<t.length;++u)n[t[u]]=!0,delete l[t[u]];for(u=0;u<a.length;++u)n[a[u]]||c.push(a[u]);a=c,s=c.length>>>0,"object"===r(e[o])?e[o].baseVal=a.join(" "):e[o]=a.join(" "),f()},i.toggle=function(e,n){return d.apply(i,[e]),t!==n?n?(i.add(e),!0):(i.remove(e),!1):l[e]?(i.remove(e),!1):(i.add(e),!0)},i}}();"DOMTokenList"in e&&(!("classList"in(s=document.createElement("x")))||!s.classList.toggle("x",!1)&&!s.className)||("DOMTokenList"in(l=e)&&l.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(l.DOMTokenList=u),function(){var e=document.createElement("span");"classList"in e&&(e.classList.toggle("x",!1),e.classList.contains("x")&&(e.classList.constructor.prototype.toggle=function(e){var n=arguments[1];if(n===t){var r=!this.contains(e);return this[r?"add":"remove"](e),r}return this[(n=!!n)?"add":"remove"](e),n}))}(),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a","b"),!e.classList.contains("b"))){var t=e.classList.constructor.prototype.add;e.classList.constructor.prototype.add=function(){for(var e=arguments,n=arguments.length,r=0;r<n;r++)t.call(this,e[r])}}}(),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a"),e.classList.add("b"),e.classList.remove("a","b"),e.classList.contains("b"))){var t=e.classList.constructor.prototype.remove;e.classList.constructor.prototype.remove=function(){for(var e=arguments,n=arguments.length,r=0;r<n;r++)t.call(this,e[r])}}}())}}("object"===("undefined"==typeof window?"undefined":r(window))&&window||"object"===("undefined"==typeof self?"undefined":r(self))&&self||"object"===(void 0===n.g?"undefined":r(n.g))&&n.g||{})},5127:function(e,t,n){"use strict";n(67810),n(29141)},89738:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=l(n(96486)),o=l(n(56499)),i=l(n(49452)),a=l(n(34198));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var f,d,p,h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addProvider",value:function(t,n,r){e.providers[t]=e.providers[t]||{},e.providers[t][n]=r}},{key:"addProviders",value:function(t,n){e.providers[t]=r.default.merge(e.providers[t],n)}},{key:"getProvider",value:function(t,n){if(e.providers[t]&&e.providers[t][n])return e.providers[t][n]}},{key:"getProviders",value:function(t){if(e.providers[t])return e.providers[t]}}],null&&u(t.prototype,null),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=h,f=h,d="providers",p={address:o.default,auth:i.default,storage:a.default},(d=c(d))in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p},6542:function(e,t,n){"use strict";n(69070),n(79753),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0,n(69600),n(21249),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(19161);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===a(o)?o:String(o)),r)}var o}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.beforeMergeOptions(t),this.options=o.default.merge({},this.defaultOptions,t)}var t,n,r;return t=e,n=[{key:"beforeMergeOptions",value:function(){}},{key:"defaultOptions",get:function(){return{}}},{key:"queryProperty",get:function(){return"query"}},{key:"responseProperty",get:function(){return null}},{key:"displayValueProperty",get:function(){return null}},{key:"serialize",value:function(e){return o.default.toPairs(e).map((function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i))})).join("&")}},{key:"getRequestOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.default.merge({},this.options,e)}},{key:"getRequestUrl",value:function(){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}},{key:"makeRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.GlobalFormio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}},{key:"search",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRequestOptions(n),i=r.params=r.params||{};return i[this.queryProperty]=e,this.makeRequest(r).then((function(e){return t.responseProperty?o.default.get(e,t.responseProperty,[]):e}))}},{key:"getDisplayValue",value:function(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}],r=[{key:"name",get:function(){return"address"}},{key:"displayName",get:function(){return"Address"}}],n&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.AddressProvider=c},25823:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0,n(68304),n(24812),n(30489);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(d,e);var t,n,r,u,c,f=(u=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(u);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function d(){return o(this,d),f.apply(this,arguments)}return t=d,n=[{key:"defaultOptions",get:function(){return{params:{"api-version":"1.0",typeahead:"true"}}}},{key:"responseProperty",get:function(){return"results"}},{key:"displayValueProperty",get:function(){return"address.freeformAddress"}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params;return"https://atlas.microsoft.com/search/address/json?".concat(this.serialize(t))}}],r=[{key:"name",get:function(){return"azure"}},{key:"displayName",get:function(){return"Azure Maps"}}],n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(n(6542).AddressProvider);t.AzureAddressProvider=u},45555:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},a.apply(this,arguments)}function l(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0,n(92222),n(68304),n(24812),n(30489);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(p,e);var t,n,r,l,f,d=(l=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(l);if(f){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){return o(this,p),d.apply(this,arguments)}return t=p,n=[{key:"queryProperty",get:function(){return this.options.queryProperty||a(c(p.prototype),"queryProperty",this)}},{key:"responseProperty",get:function(){return this.options.responseProperty||a(c(p.prototype),"responseProperty",this)}},{key:"displayValueProperty",get:function(){return this.options.displayValueProperty||a(c(p.prototype),"displayValueProperty",this)}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params,n=e.url;return"".concat(n,"?").concat(this.serialize(t))}}],r=[{key:"name",get:function(){return"custom"}},{key:"displayName",get:function(){return"Custom"}}],n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(n(6542).AddressProvider);t.CustomAddressProvider=f},7763:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0,n(73210),n(89554),n(41539),n(54747),n(5212),n(68304),n(24812),n(30489);var o=n(19161),i=s(n(96486)),a=n(6542),l=s(n(91459));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(m,e);var t,n,r,a,s,h=(a=m,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,m),(t=h.call(this,n)).setAutocompleteOptions();var r="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";return null!==(e=n.params)&&void 0!==e&&e.key&&(r+="&key=".concat(n.params.key)),o.GlobalFormio.requireLibrary(t.getLibraryName(),"google.maps.places",r),t}return t=m,r=[{key:"name",get:function(){return"google"}},{key:"displayName",get:function(){return"Google Maps"}}],(n=[{key:"displayValueProperty",get:function(){return"formattedPlace"}},{key:"alternativeDisplayValueProperty",get:function(){return"formatted_address"}},{key:"autocompleteOptions",get:function(){return this._autocompleteOptions},set:function(e){this._autocompleteOptions=e}},{key:"setAutocompleteOptions",value:function(){var e=i.default.get(this.options,"params.autocompleteOptions",{});i.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}},{key:"beforeMergeOptions",value:function(e){this.convertRegionToAutocompleteOption(e)}},{key:"getLibraryName",value:function(){return"googleMaps"}},{key:"convertRegionToAutocompleteOption",value:function(e){var t=e,n=i.default.get(t,"params.region","");if(n&&!i.default.has(e,"params.autocompleteOptions")){var r={UK:"GB"};r[n=n.toUpperCase().trim()]&&(n=r[n]),i.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[n])}}},{key:"getRequiredAddressProperties",value:function(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}},{key:"addRequiredProviderOptions",value:function(e){var t=this.getRequiredAddressProperties();i.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((function(e){t.some((function(t){return e===t}))||t.push(e)})),e.fields=t}},{key:"filterPlace",value:function(e){e=e||{};var t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((function(n){e[n]&&(t[n]=e[n])})),t}},{key:"attachAutocomplete",value:function(e,t,n){var r=this;o.GlobalFormio.libraryReady(this.getLibraryName()).then((function(){var o=new google.maps.places.Autocomplete(e,r.autocompleteOptions);o.addListener("place_changed",(function(){var a=r.filterPlace(o.getPlace());a.formattedPlace=i.default.get(o,"gm_accessors_.place.se.formattedPrediction",a[r.alternativeDisplayValueProperty]),n(a,e,t)}))}))}},{key:"search",value:function(){return l.default.resolve()}},{key:"makeRequest",value:function(){return l.default.resolve()}},{key:"getDisplayValue",value:function(e){var t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(a.AddressProvider);t.GoogleAddressProvider=h},21680:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0,n(68304),n(24812),n(30489);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(d,e);var t,n,r,u,c,f=(u=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(u);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function d(){return o(this,d),f.apply(this,arguments)}return t=d,n=[{key:"defaultOptions",get:function(){return{params:{addressdetails:"1",format:"json"}}}},{key:"queryProperty",get:function(){return"q"}},{key:"displayValueProperty",get:function(){return"display_name"}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params;return"https://nominatim.openstreetmap.org/search?".concat(this.serialize(t))}}],r=[{key:"name",get:function(){return"nominatim"}},{key:"displayName",get:function(){return"OpenStreetMap Nominatim"}}],n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(n(6542).AddressProvider);t.NominatimAddressProvider=u},56499:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(96649),n(96078),n(82526),n(41817),n(41539),n(9653),n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309);var o,i=n(25823),a=n(45555),l=n(7763),s=n(21680);function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=(u(o={},i.AzureAddressProvider.name,i.AzureAddressProvider),u(o,a.CustomAddressProvider.name,a.CustomAddressProvider),u(o,l.GoogleAddressProvider.name,l.GoogleAddressProvider),u(o,s.NominatimAddressProvider.name,s.NominatimAddressProvider),o);t.default=c},49452:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={}},10695:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(89738))&&r.__esModule?r:{default:r}).default;t.default=o},82302:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309);var r,o=(r=n(91459))&&r.__esModule?r:{default:r};t.default=function(e,t){return function(n,r){return new o.default((function(o,i){var a=new XMLHttpRequest;a.onerror=function(e){e.networkError=!0,i(e)},a.onabort=function(e){e.networkError=!0,i(e)},a.onload=function(){if(a.status>=200&&a.status<300){var e=a.getResponseHeader("Content-Type")||n.type;o(new File([a.response],n.name,{type:e}))}else i(a.response||"Unable to process file")},a.onabort=i,a.open("POST",t.url);var l=e.getToken();l&&a.setRequestHeader("x-jwt-token",l),a.responseType="arraybuffer";var s=new FormData;s.append("file",n),s.append("processorOptions",JSON.stringify(t.options||{})),s.append("options",JSON.stringify(r||{})),a.send(s)}))}}},64666:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(73210),n(68309);var r,o=(r=n(3975))&&r.__esModule?r:{default:r},i=function(e){return{uploadFile:function(t,n,r,i,a,l,s,u,c,f){return o.default.upload(e,"azure",(function(e,n){return e.openAndSetHeaders("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t}),t,n,r,i,u,c,f).then((function(){return{storage:"azure",name:o.default.path([r,n]),size:t.size,type:t.type,groupPermissions:u,groupId:c}}))},downloadFile:function(t){return e.makeRequest("file","".concat(e.formUrl,"/storage/azure?name=").concat(o.default.trim(t.name)),"GET")}}};i.title="Azure File Services";var a=i;t.default=a},52174:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(91459))&&r.__esModule?r:{default:r},i=function(){return{title:"Base64",name:"base64",uploadFile:function(e,t){var n=this,r=new FileReader;return new o.default((function(o,i){r.onload=function(n){var r=n.target.result;o({storage:"base64",name:t,url:r,size:e.size,type:e.type})},r.onerror=function(){return i(n)},r.readAsDataURL(e)}))},downloadFile:function(e){return o.default.resolve(e)}}};i.title="Base64";var a=i;t.default=a},37771:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222);var r,o=(r=n(91459))&&r.__esModule?r:{default:r},i=n(3975),a=function(e){return{uploadFile:function(t,n,r,a,l,s,u,c,f,d){return new o.default((function(o,l){var s=new XMLHttpRequest;"function"==typeof a&&(s.upload.onprogress=a),"function"==typeof d&&d((function(){return s.abort()}));var u=new FormData;u.append("name",n),u.append("dir",r),u.append("file",t),s.onerror=function(e){e.networkError=!0,l(e)},s.onload=function(){if(s.status>=200&&s.status<300){var e=JSON.parse(s.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=f,e.groupPermissions=c,o(e)}else l(s.response||"Unable to upload file")},s.onabort=l,s.open("POST","".concat(e.formUrl,"/storage/gdrive")),(0,i.setXhrHeaders)(e,s);var p=e.getToken();p&&s.setRequestHeader("x-jwt-token",p),s.send(u)}))},downloadFile:function(t){var n=e.getToken();return t.url="".concat(e.formUrl,"/storage/gdrive?fileId=").concat(t.id,"&fileName=").concat(t.originalName).concat(n?"&x-jwt-token=".concat(n):""),o.default.resolve(t)}}};a.title="Google Drive";var l=a;t.default=l},34198:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(52174)),o=u(n(87527)),i=u(n(64666)),a=u(n(7433)),l=u(n(3769)),s=u(n(37771));function u(e){return e&&e.__esModule?e:{default:e}}var c={base64:r.default,s3:o.default,url:a.default,azure:i.default,indexeddb:l.default,googledrive:s.default};t.default=c},3769:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309);var r,o=n(67429),i=(r=n(91459))&&r.__esModule?r:{default:r},a=function(){return{title:"indexedDB",name:"indexeddb",uploadFile:function(e,t,n,r,a,l){var s=this;if("indexedDB"in window)return new i.default((function(e){var t=indexedDB.open(l.indexeddb,3);t.onsuccess=function(t){var n=t.target.result;e(n)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(l.indexeddbTable)}})).then((function(t){var n=new FileReader;return new i.default((function(r,i){n.onload=function(){var n=new Blob([e],{type:e.type}),i=(0,o.v4)(n),s={id:i,data:n,name:e.name,size:e.size,type:e.type,url:a},u=t.transaction([l.indexeddbTable],"readwrite");u.objectStore(l.indexeddbTable).put(s,i).onerror=function(e){console.log("error storing data"),console.error(e)},u.oncomplete=function(){r({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:a,id:i})}},n.onerror=function(){return i(s)},n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile:function(e,t){var n=this;return new i.default((function(e){indexedDB.open(t.indexeddb,3).onsuccess=function(t){var n=t.target.result;e(n)}})).then((function(r){return new i.default((function(o,i){var a=r.transaction([t.indexeddbTable],"readonly"),l=a.objectStore(t.indexeddbTable).get(e.id);l.onsuccess=function(){a.oncomplete=function(){var t=l.result,r=new File([l.result.data],e.name,{type:l.result.type}),a=new FileReader;a.onload=function(n){t.url=n.target.result,t.storage=e.storage,o(t)},a.onerror=function(){return i(n)},a.readAsDataURL(r)}},l.onerror=function(){return i(n)}}))}))},deleteFile:function(e,t){var n=this;return new i.default((function(e){indexedDB.open(t.indexeddb,3).onsuccess=function(t){var n=t.target.result;e(n)}})).then((function(r){return new i.default((function(o,i){var a=r.transaction([t.indexeddbTable],"readwrite"),l=a.objectStore(t.indexeddbTable).delete(e.id);l.onsuccess=function(){a.oncomplete=function(){var e=l.result;o(e)}},l.onerror=function(){return i(n)}}))}))}}};a.title="IndexedDB";var l=a;t.default=l},87527:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(69070),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(72443),n(39341),n(73706),n(10408),n(78011),n(30489),n(68309),n(68304),n(65069),n(96649),n(96078),n(9653),n(57327),n(38880),n(49337),n(33321),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(79753),n(89554),n(41539),n(54747),n(47941),n(88674),n(74916),n(4723),n(47042),n(92222),n(73210);var o=l(n(91459)),i=l(n(3975)),a=n(99887);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){f=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new x(r||[]);return o(a,"_invoke",{value:_(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function h(){}function m(){}function y(){}var v={};u(v,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(E([])));g&&g!==t&&n.call(g,a)&&(v=g);var w=y.prototype=h.prototype=Object.create(v);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:m,configurable:!0}),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(O.prototype),u(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function d(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,l,"next",e)}function l(e){d(i,r,o,a,l,"throw",e)}a(void 0)}))}}var h=window.AbortController||n(65988);function m(e){return{uploadFile:function(t,n,r,o,l,s,u,c,d,m,y){var v=this;return p(f().mark((function l(){var s,u;return f().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return s=function(){var e=p(f().mark((function e(o,l,s){var u,c,d,p,m;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.data.fileName=n,l.data.key=i.default.path([l.data.key,r,n]),!l.signed){e.next=29;break}if(!y||!Array.isArray(l.signed)){e.next=23;break}return u=new h,c=u.signal,"function"==typeof s&&s((function(){return u.abort()})),e.prev=7,e.next=10,v.uploadParts(t,l.signed,l.data.headers,l.partSizeActual,y,c);case 10:return d=e.sent,e.next=13,(0,a.withRetries)(v.completeMultipartUpload,[l,d,y],3);case 13:return e.abrupt("return");case 16:throw e.prev=16,e.t0=e.catch(7),u.abort(),v.abortMultipartUpload(l),e.t0;case 21:e.next=27;break;case 23:return o.openAndSetHeaders("PUT",l.signed),o.setRequestHeader("Content-Type",t.type),l.data.headers&&Object.keys(l.data.headers).forEach((function(e){o.setRequestHeader(e,l.data.headers[e])})),e.abrupt("return",t);case 27:e.next=34;break;case 29:for(m in p=new FormData,l.data)p.append(m,l.data[m]);return p.append("file",t),o.openAndSetHeaders("POST",l.url),e.abrupt("return",p);case 34:case"end":return e.stop()}}),e,null,[[7,16]])})));return function(t,n,r){return e.apply(this,arguments)}}(),l.next=3,i.default.upload(e,"s3",s,t,n,r,o,c,d,m,y);case 3:return u=l.sent,l.abrupt("return",{storage:"s3",name:n,bucket:u.bucket,key:u.data.key,url:i.default.path([u.url,u.data.key]),acl:u.data.acl,size:t.size,type:t.type});case 5:case"end":return l.stop()}}),l)})))()},completeMultipartUpload:function(t,n,r){return p(f().mark((function o(){var i,a,l,s;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=r.changeMessage,a=e.getToken(),i("Completing AWS S3 multipart upload..."),o.next=5,fetch("".concat(e.formUrl,"/storage/s3/multipart/complete"),{method:"POST",headers:u({"Content-Type":"application/json"},a?{"x-jwt-token":a}:{}),body:JSON.stringify({parts:n,uploadId:t.uploadId,key:t.key})});case 5:return l=o.sent,o.next=8,l.text();case 8:if(s=o.sent,l.ok){o.next=11;break}throw new Error(s||l.statusText);case 11:if(null==s||!s.match(/Error/)){o.next=13;break}throw new Error(s);case 13:case"end":return o.stop()}}),o)})))()},abortMultipartUpload:function(t){var n=t.uploadId,r=t.key,o=e.getToken();fetch("".concat(e.formUrl,"/storage/s3/multipart/abort"),{method:"POST",headers:u({"Content-Type":"application/json"},o?{"x-jwt-token":o}:{}),body:JSON.stringify({uploadId:n,key:r})}).catch((function(e){return console.error("Error while aborting multipart upload:",e)}))},uploadParts:function(e,t,n,r,i,a){var l=i.changeMessage,s=i.progressCallback;l("Chunking and uploading parts to AWS S3...");for(var u=[],c=function(o){var i=o*r,l=(o+1)*r,c=o<t.length?e.slice(i,l):e.slice(i),f=fetch(t[o],{method:"PUT",headers:n,body:c,signal:a}).then((function(e){if(e.ok){s(t.length);var n=e.headers.get("etag");if(!n)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:n,PartNumber:o+1}}throw new Error("Part no ".concat(o," failed with status ").concat(e.status))}));u.push(f)},f=0;f<t.length;f++)c(f);return o.default.all(u)},downloadFile:function(t){return"public-read"!==t.acl?e.makeRequest("file","".concat(e.formUrl,"/storage/s3?bucket=").concat(i.default.trim(t.bucket),"&key=").concat(i.default.trim(t.key)),"GET"):o.default.resolve(t)}}}m.title="S3";var y=m;t.default=y},17607:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.getFormioUploadAdapterPlugin=void 0,n(68309),n(41539),n(88674),n(17727),n(92222),n(96649),n(96078),n(82526),n(41817),n(9653);var r,o=n(82531),i=(r=n(91459))&&r.__esModule?r:{default:r};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===a(o)?o:String(o)),r)}var o}var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loader=t,this.fileService=n,this.component=r}var t,n;return t=e,(n=[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new i.default((function(n,r){var i,a=e.component.component,l=a.uploadStorage,s=a.uploadUrl,u=a.uploadOptions,c=a.uploadDir,f=a.fileKey,d=[l,t,(0,o.uniqueName)(t.name),c||"",function(t){return e.onUploadProgress(t)},s,u,f,null,null],p=(i=e.fileService).uploadFile.apply(i,d.concat([function(){return e.component.emit("fileUploadingStart",p)}])).then((function(t){return e.fileService.downloadFile(t)})).then((function(e){return n({default:e.url})})).catch((function(e){console.warn("An Error occured while uploading file",e),r(e)})).finally((function(){e.component.emit("fileUploadingEnd",p)}))}))}))}},{key:"abort",value:function(){}},{key:"onUploadProgress",value:function(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.getFormioUploadAdapterPlugin=function(e,t){return function(n){n.plugins.get("FileRepository").createUploadAdapter=function(n){return new s(n,e,t)}}}},7433:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(96649),n(96078),n(82526),n(41817),n(41539),n(9653),n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(82772),n(68309);var o,i=(o=n(91459))&&o.__esModule?o:{default:o};function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e){var t=function(t,n,r,o,a,l,s){return new i.default((function(i,u){var c=new XMLHttpRequest,f="string"==typeof o,d=new FormData;if("function"==typeof l&&(c.upload.onprogress=l),"function"==typeof s&&s((function(){return c.abort()})),!f)for(var p in o)d.append(p,o[p]);c.onload=function(){if(c.status>=200&&c.status<300){var e={};try{e=(e="string"==typeof c.response?JSON.parse(c.response):{})&&e.data?e.data:e}catch(t){e={}}var r=e.hasOwnProperty("url")?e.url:"".concat(c.responseURL,"/").concat(n);r&&"/"===r[0]&&(r="".concat(t).concat(r)),i({url:r,data:e})}else u(c.response||"Unable to upload file")},c.onerror=function(){return u(c)},c.onabort=function(){return u(c)};var h=t+(t.indexOf("?")>-1?"&":"?");for(var m in r)h+="".concat(m,"=").concat(r[m],"&");"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),c.open("POST",h),f&&c.setRequestHeader("Content-Type","application/json");var y=e.getToken();if(y&&c.setRequestHeader("x-jwt-token",y),a){var v="string"==typeof a?JSON.parse(a):a;for(var b in v)if("headers"===b){var g=v.headers;for(var w in g)c.setRequestHeader(w,g[w])}else c[b]=v[b]}c.send(f?o:d)}))};return{title:"Url",name:"url",uploadFile:function(n,r,o,i,l,s,u,c,f,d){var p=function(c){var f;return t(l,r,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},(f={},a(f,u,n),a(f,"name",r),a(f,"dir",o),f),s,i,d).then((function(t){return t.data=t.data||{},t.data.baseUrl=e.projectUrl,t.data.project=c?c.project:"",t.data.form=c?c._id:"",{storage:"url",name:r,url:t.url,size:n.size,type:n.type,data:t.data}}))};return n.private&&e.formId?e.loadForm().then((function(e){return p(e)})):p()},deleteFile:function(e){return new i.default((function(t,n){var r=new XMLHttpRequest;r.open("DELETE",e.url,!0),r.onload=function(){r.status>=200&&r.status<300?t("File deleted"):n(r.response||"Unable to delete file")},r.send(null)}))},downloadFile:function(n){return n.private?(e.submissionId&&n.data&&(n.data.submission=e.submissionId),t(n.url,n.name,{},JSON.stringify(n)).then((function(e){return e.data}))):i.default.resolve(n)}}};l.title="Url";var s=l;t.default=s},99887:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new x(r||[]);return i(a,"_invoke",{value:_(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function y(){}var v={};c(v,l,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(E([])));g&&g!==t&&n.call(g,l)&&(v=g);var w=y.prototype=h.prototype=Object.create(v);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(i,a,l,s){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,s)}),(function(e){o("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function E(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:m,configurable:!0}),m.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(O.prototype),c(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),c(w,u,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}function u(e,t){return c.apply(this,arguments)}function c(){return c=s(o().mark((function e(t,n){var r,a,l=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=l.length>2&&void 0!==l[2]?l[2]:3,a=l.length>3&&void 0!==l[3]?l[3]:null,r){e.next=4;break}throw new Error(a);case 4:return e.abrupt("return",t.apply(void 0,i(n)).catch((function(){return u(t,n,r-1,a)})));case 5:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}n(79753),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),n(74916),n(69070),n(72443),n(39341),n(73706),n(10408),n(78011),n(30489),n(89554),n(54747),n(68304),n(65069),Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=u,n(41539),n(88674)},3975:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(96649),n(96078),n(82526),n(41817),n(9653),n(69070),n(47941),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),n(72443),n(39341),n(73706),n(10408),n(78011),n(30489),n(68309),n(68304),n(65069),n(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=t.default=void 0,n(69600),n(21249),n(57327),n(41539),n(73210),n(88674),n(92222);var o=a(n(91459)),i=a(n(92742));function a(e){return e&&e.__esModule?e:{default:e}}function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new x(r||[]);return o(a,"_invoke",{value:_(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function y(){}var v={};c(v,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(E([])));g&&g!==t&&n.call(g,a)&&(v=g);var w=y.prototype=h.prototype=Object.create(v);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:m,configurable:!0}),m.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(O.prototype),c(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var d=function(e,t){var n=e.options.headers;if(n){var r={"Content-Disposition":!0,Authorization:!0};for(var o in n)r[o]&&t.setRequestHeader(o,n[o])}};t.setXhrHeaders=d;var p={trim:function(e){return(0,i.default)(e,"/")},path:function(e){return e.filter((function(e){return!!e})).map(p.trim).join("/")},upload:function(e,t,n,r,o,i,a,s,c,d,h){return(m=l().mark((function f(){var m,y,v,b,g;return l().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return m=e.getToken(),l.prev=1,l.next=4,fetch("".concat(e.formUrl,"/storage/").concat(t),{method:"POST",headers:u({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},m?{"x-jwt-token":m}:{}),body:JSON.stringify({name:p.path([i,o]),size:r.size,type:r.type,groupPermissions:s,groupId:c,multipart:h})});case 4:y=l.sent,l.next=11;break;case 7:throw l.prev=7,l.t0=l.catch(1),l.t0.networkError=!0,l.t0;case 11:if(y.ok){l.next=20;break}if(504!==y.status){l.next=16;break}throw(v=new Error("Network request failed")).networkError=!0,v;case 16:return l.next=18,y.text();case 18:throw b=l.sent,new Error(b||"Unable to sign file.");case 20:return l.next=22,y.json();case 22:return g=l.sent,l.next=25,p.makeXhrRequest(e,n,g,a,d);case 25:return l.abrupt("return",l.sent);case 26:case"end":return l.stop()}}),f,null,[[1,7]])})),function(){var e=this,t=arguments;return new Promise((function(n,r){var o=m.apply(e,t);function i(e){f(o,n,r,i,a,"next",e)}function a(e){f(o,n,r,i,a,"throw",e)}i(void 0)}))})();var m},makeXhrRequest:function(e,t,n,r,i){return new o.default((function(a,l){var s=new XMLHttpRequest;s.openAndSetHeaders=function(){var t;(t=s).open.apply(t,arguments),d(e,s)},o.default.resolve(t(s,n,i)).then((function(e){if(!e)return s=null,a(n);s.onerror=function(e){e.networkError=!0,l(e)},s.onabort=function(e){e.networkError=!0,l(e)},s.onabort=l,"function"==typeof r&&(s.upload.onprogress=r),"function"==typeof i&&i((function(){return s.abort()})),s.onload=function(){if(s.status>=200&&s.status<300)a(n);else if(504===s.status){var e=new Error("Network request failed");e.networkError=!0,l(e)}else l(s.response||"Unable to upload file")},s.send(e)})).catch(l)}))}},h=p;t.default=h},51508:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=i(n(75146)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===a(o)?o:String(o)),r)}var o}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"templates",get:function(){return e._templates||(e._templates=r.default),e._templates}},{key:"addTemplate",value:function(t,n){e.templates[t]=n}},{key:"extendTemplate",value:function(t,n){e.templates[t]=o.default.merge({},e.templates[t],n)}},{key:"setTemplate",value:function(t,n){e.addTemplate(t,n)}},{key:"current",get:function(){return e._current?e._current:e.defaultTemplates},set:function(t){var n=e.current;e._current=o.default.merge({},n,t)}},{key:"defaultTemplates",get:function(){return e.templates.bootstrap}},{key:"framework",get:function(){return e._framework},set:function(t){e.templates.hasOwnProperty(t)&&(e._framework=t,e._current=e.templates[t])}}],null&&l(t.prototype,null),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=s},4295:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,e.mode.autocomplete){for(var r in n+='\n  <div class="address-autocomplete-container">\n    <input\n      ref="'+(null==(t=e.ref.searchInput)?"":t)+'"\n      ',e.inputAttributes)n+="\n        "+(null==(t=r)?"":t)+'="'+(null==(t=e.inputAttributes[r])?"":t)+'"\n      ';n+='\n      value="'+(null==(t=e.displayValue)?"":t)+'"\n      autocomplete="off"\n      aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n    >\n    ',e.component.disableClearIcon||(n+='\n      <i\n        class="address-autocomplete-remove-value-icon fa fa-times"\n        tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n        ref="'+(null==(t=e.ref.removeValueIcon)?"":t)+'"\n      ></i>\n    '),n+="\n  </div>\n"}return n+="\n",e.self.manualModeEnabled&&(n+='\n  <div class="form-check checkbox">\n    <label class="form-check-label">\n      <input\n        ref="'+(null==(t=e.ref.modeSwitcher)?"":t)+'"\n        type="checkbox"\n        class="form-check-input"\n        tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n        ',e.mode.manual&&(n+="checked=true"),n+="\n        ",e.disabled&&(n+="disabled=true"),n+="\n      >\n      <span>"+(null==(t=e.component.switchToManualModeLabel)?"":t)+"</span>\n    </label>\n  </div>\n"),n+="\n",e.self.manualMode&&(n+='\n  <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n"),n+"\n"}},87302:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.displayValue?n+=null==(t=e.displayValue)?"":t:n+="-",n+"</div>\n"}},45284:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4295)),o=i(n(87302));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},34801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<div\n  ",e.attrs)n+="\n    "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n  ';return n+="\n>\n  "+(null==(t=e.message)?"":t)+"\n  ",e.options.vpat&&(n+='\n    <span class="sr-only" id="hotkey-i-'+(null==(t=e.form._id)?"":t)+'">'+(null==(t=e.t("errorListHotkey"))?"":t)+"</span>\n  "),n+"\n</div>\n"}},75284:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(34801))&&r.__esModule?r:{default:r}).default};t.default=o},3824:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(t=e.sidebar)?"":t)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n    '+(null==(t=e.form)?"":t)+"\n  </div>\n</div>\n"}},15590:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(3824))&&r.__esModule?r:{default:r}).default};t.default=o},6e4:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="builder-component" ref="dragComponent" tabindex="-1">\n  ',e.disableBuilderActions||(n+='\n    <div class="component-btn-group" data-noattach="true">\n      <div\n        role="button"\n        aria-label="Remove button. Click to remove component from the form"\n        tabindex="-1"\n        class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n        ref="removeComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Copy button. Click to copy component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n        ref="copyComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("copy"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Paste below button. Click to paste component below the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n        ref="pasteComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("save"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit json button. Click to edit json of the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" \n        ref="editJson"\n      >\n        <i class="'+(null==(t=e.iconClass("wrench"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Move button"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n        ref="moveComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit button. Click to open component settings modal window"\n        tabindex="-1"\n        class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit"\n        ref="editComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("cog"))?"":t)+'"></i>\n      </div>\n    </div>\n  '),n+"\n  "+(null==(t=e.html)?"":t)+"\n</div>\n"}},14943:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(6e4))&&r.__esModule?r:{default:r}).default};t.default=o},15858:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-components drag-container formio-builder-'+(null==(t=e.type)?"":t)+'" ref="'+(null==(t=e.key)?"":t)+'-container">\n  '+(null==(t=e.html)?"":t)+"\n</div>\n"}},89298:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(15858))&&r.__esModule?r:{default:r}).default};t.default=o},47995:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n  <div class="col col-sm-6">\n    <p class="lead">'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"</p>\n  </div>\n  ",e.helplinks&&(n+='\n  <div class="col col-sm-6">\n    <div class="float-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(t=e.t(e.helplinks+e.componentInfo.documentation))?"":t)+'" target="_blank" rel="noopener noreferrer">\n        <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"></i> '+(null==(t=e.t("Help"))?"":t)+"\n      </a>\n    </div>\n  </div>\n  "),n+='\n</div>\n<div class="row">\n  <div class="col component-edit-tabs ',e.preview?n+="col-sm-6":n+="col-sm-12",n+='">\n    <div ref="editForm">\n        '+(null==(t=e.editForm)?"":t)+"\n    </div>\n    ",e.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\n    "),n+="\n  </div>\n  ",e.preview&&(n+='\n  <div class="col col-sm-6">\n    <div class="card panel preview-panel">\n      <div class="card-header">\n        <h4 class="card-title mb-0">'+(null==(t=e.t("Preview"))?"":t)+'</h4>\n      </div>\n      <div class="card-body">\n        <div class="component-preview" ref="preview">\n          '+(null==(t=e.preview)?"":t)+"\n        </div>\n      </div>\n    </div>\n    ",e.componentInfo.help&&(n+='\n    <div class="card card-body bg-light formio-settings-help">\n      '+(null==(t=e.t(e.componentInfo.help))?"":t)+"\n    </div>\n    "),n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\n  </div>\n  "),n+"\n</div>\n"}},74798:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47995))&&r.__esModule?r:{default:r}).default};t.default=o},72807:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div\n  class="drag-and-drop-alert alert alert-info no-drag"\n  style="text-align:center;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(t=e.position)?"":t)+'"\n>\n  '+(null==(t=e.t("Drag and Drop a form component"))?"":t)+"\n</div>\n"}},65181:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(72807))&&r.__esModule?r:{default:r}).default};t.default=o},42904:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.groupId)?"":t)+'" class="accordion builder-sidebar'+(null==(t=e.scrollEnabled?" builder-sidebar_scroll":"")?"":t)+'" ref="sidebar">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="'+(null==(t=e.t("Search field(s)"))?"":t)+'" />\n  <div ref="sidebar-groups">\n    ',e.groups.forEach((function(e){n+="\n      "+(null==(t=e)?"":t)+"\n    "})),n+="\n  </div>\n</div>\n"}},98953:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(42904))&&r.__esModule?r:{default:r}).default};t.default=o},96746:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="card form-builder-panel" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\n  <div class="card-header form-builder-group-header" id="heading-'+(null==(t=e.groupKey)?"":t)+'">\n    <h5 class="mb-0 mt-0">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(t=e.groupKey)?"":t)+'"\n        data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n        aria-expanded="'+(null==(t=e.group.default)?"":t)+'"\n        aria-controls="group-'+(null==(t=e.groupKey)?"":t)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(t=e.groupKey)?"":t)+'"\n    class="collapse '+(null==(t=e.group.default?" show":"")?"":t)+'"\n    data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n    data-default="'+(null==(t=e.group.default)?"":t)+'"\n    aria-labelledby="heading-'+(null==(t=e.groupKey)?"":t)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="card-body no-drop p-2" ref="sidebar-container">\n      ',e.group.componentOrder.length||e.subgroups.length?(n+="\n        ",!e.group.componentOrder||e.group.componentOrder.forEach((function(r){n+='\n          <span\n            ref="sidebar-component"\n            data-group="'+(null==(t=e.groupKey)?"":t)+'"\n            data-key="'+(null==(t=e.group.components[r].key)?"":t)+'"\n            data-type="'+(null==(t=e.group.components[r].schema.type)?"":t)+'"\n            class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n            tabindex="'+(null==(t=e.keyboardActionsEnabled?0:-1)?"":t)+'"\n          >\n            ',e.group.components[r].icon&&(n+='\n              <i class="'+(null==(t=e.iconClass(e.group.components[r].icon))?"":t)+'" style="margin-right: 5px;"></i>\n            '),n+="\n            "+(null==(t=e.t(e.group.components[r].title,{_userInput:!0}))?"":t)+"\n          </span>\n        "})),n+="\n        "+(null==(t=e.subgroups.join(""))?"":t)+"\n      "):n+="\n        <div>"+(null==(t=e.t("No Matches Found"))?"":t)+"</div>\n      ",n+="\n    </div>\n  </div>\n</div>\n"}},31440:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(96746))&&r.__esModule?r:{default:r}).default};t.default=o},41737:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(t=e.sidebar)?"":t)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n    <ol class="breadcrumb wizard-pages">\n        ',e.pages.forEach((function(r,o){n+='\n          <li id="'+(null==(t=r.key)?"":t)+'">\n            <span title="'+(null==(t=r.title)?"":t)+'" class="mr-2 badge ',o===e.self.page?n+="badge-primary":n+="badge-info",n+=' wizard-page-label" ref="gotoPage">'+(null==(t=r.title)?"":t)+"</span>\n          </li>\n        "})),n+='\n          <li class="wizard-add-page">\n            <span title="'+(null==(t=e.t("Create Page"))?"":t)+'" class="mr-2 badge badge-success wizard-page-label" ref="addPage">\n              <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t("Page"))?"":t)+'\n            </span>\n          </li>\n      </ol>\n    <div ref="form">\n      '+(null==(t=e.form)?"":t)+"\n    </div>\n  </div>\n</div>\n"}},19838:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(41737))&&r.__esModule?r:{default:r}).default};t.default=o},26982:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<"+(null==(t=e.input.type)?"":t)+'\n  ref="button"\n  ',e.input.attr)n+="\n  "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n  ';return n+="\n  ",e.component.description&&(n+='\n    aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+="\n>\n",e.component.leftIcon&&(n+='<span class="'+(null==(t=e.component.leftIcon)?"":t)+'"></span>&nbsp;'),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(n+='\n  <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n'),n+="\n",e.component.rightIcon&&(n+='&nbsp;<span class="'+(null==(t=e.component.rightIcon)?"":t)+'"></span>'),n+"\n</"+(null==(t=e.input.type)?"":t)+'>\n<div ref="buttonMessageContainer">\n  <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},35858:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n"}},40707:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(26982)),o=i(n(35858));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},18952:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<div class="form-check checkbox">\n  <label class="'+(null==(t=e.input.labelClass)?"":t)+' form-check-label">\n    <'+(null==(t=e.input.type)?"":t)+'\n      ref="input"\n      ',e.input.attr)n+="\n      "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n      ';return n+="\n      ",e.checked&&(n+="checked=true"),n+='\n      aria-required="'+(null==(t=e.component.validate.required)?"":t)+'"\n      ',e.component.description&&(n+='\n      aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n      '),n+="\n      >\n    ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+="\n    "+(null==(t=e.input.content)?"":t)+"\n    </"+(null==(t=e.input.type)?"":t)+">\n  </label>\n  ",e.component.tooltip&&(n+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n  '),n+"\n</div>\n"}},24609:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label class="'+(null==(t=e.input.labelClass)?"":t)+'">\n    '+(null==(t=e.input.content)?"":t)+"\n    ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+='\n</label>\n<div ref="value">',e.checked?n+="True":n+="False",n+"</div>\n"}},28569:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18952)),o=i(n(24609));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},89199:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.columns.forEach((function(r,o){n+='\n<div class="\n    col-'+(null==(t=r.size)?"":t)+"-"+(null==(t=r.currentWidth)?"":t)+"\n    col-"+(null==(t=r.size)?"":t)+"-offset-"+(null==(t=r.offset)?"":t)+"\n    col-"+(null==(t=r.size)?"":t)+"-push-"+(null==(t=r.push)?"":t)+"\n    col-"+(null==(t=r.size)?"":t)+"-pull-"+(null==(t=r.pull)?"":t)+'\n  " ref="'+(null==(t=e.columnKey)?"":t)+'">\n  '+(null==(t=e.columnComponents[o])?"":t)+"\n</div>\n"})),n+="\n"}},36567:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(89199))&&r.__esModule?r:{default:r}).default};t.default=o},8404:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.id)?"":t)+'" class="'+(null==(t=e.classes)?"":t)+'"',e.styles&&(n+=' styles="'+(null==(t=e.styles)?"":t)+'"'),n+=' ref="component">\n  ',e.visible&&(n+="\n  "+(null==(t=e.children)?"":t)+'\n  <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n  '),n+"\n</div>\n"}},28857:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(8404))&&r.__esModule?r:{default:r}).default};t.default=o},64229:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(t=e.component.type)?"":t)+'" ref="componentModalWrapper">\n  <div ref="openModalWrapper"></div>\n  <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n    <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n    <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" ',e.self.isIE()||(n+=' role="dialog" '),n+=' ref="modalContents">\n      <label class="sr-only" id="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">'+(null==(t=e.t(e.component.label))?"":t)+(null==(t=e.self.isIE()?", dialog":"")?"":t)+"</label>\n      ",e.options.vpat?n+='\n      <button class="formio-dialog-close float-right" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n      ':n+='\n      <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n      ',n+='\n      <div ref="modalContents">\n        ',e.visible&&(n+="\n        "+(null==(t=e.children)?"":t)+"\n        "),n+='\n        <div class="formio-dialog-buttons">\n          ',e.options.vpat&&(n+='\n          <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(t=e.t("Cancel"))?"":t)+"</button>\n          "),n+'\n          <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(t=e.t("Save"))?"":t)+'</button>\n        </div>\n      </div>\n    </div>\n    <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n  </div>\n</div>\n'}},6311:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(64229))&&r.__esModule?r:{default:r}).default};t.default=o},16499:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+((null==(t=e.children.join(""))?"":t)+"\n")}},16056:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(16499))&&r.__esModule?r:{default:r}).default};t.default=o},46441:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n  '+(null==(t=e.children)?"":t)+"\n</div>\n"}},64401:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(46441))&&r.__esModule?r:{default:r}).default};t.default=o},25486:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={"border-default":"","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button"}},79025:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",e.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(n+="<th></th>"),n+="\n      ",e.columns.forEach((function(r){n+='\n        <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n          '+(null==(t=r.hideLabel?"":e.t(r.label||r.title,{_userInput:!0}))?"":t)+"\n          ",r.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n        </th>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+='\n      <th>\n        <span class="sr-only">'+(null==(t=e.t("Add/Remove"))?"":t)+"</span>\n        ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>'+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody" data-key="'+(null==(t=e.datagridKey)?"":t)+'">\n    ',e.rows.forEach((function(r,o){n+="\n    ",e.hasGroups&&e.groups[o]&&(n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n      <td\n        ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n        colspan="'+(null==(t=e.numColumns)?"":t)+'"\n        class="datagrid-group-label">'+(null==(t=e.groups[o].label)?"":t)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n      ',e.component.reorder&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(t=e.datagridKey)?"":t)+'"></button>\n        </td>\n      '),n+="\n      ",e.columns.forEach((function(o){n+='\n        <td ref="'+(null==(t=e.datagridKey)?"":t)+'" ',o.key&&o.overlay&&o.overlay.width&&(n+=' style="width: '+(null==(t=o.overlay.width+"px")?"":t)+'"'),n+=" >\n          "+(null==(t=r[o.key])?"":t)+"\n        </td>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+="\n        ",e.hasRemoveButtons&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'" aria-label="'+(null==(t=e.t("remove"))?"":t)+'">\n            <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",e.canAddColumn&&(n+='\n        <td ref="'+(null==(t=e.key)?"":t)+'-container" class="col-md-3">\n          '+(null==(t=e.placeholder)?"":t)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n  ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(t=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":t)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},79822:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    ">\n  ',e.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",e.columns.forEach((function(r){n+='\n        <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n          '+(null==(t=r.hideLabel?"":e.t(r.label||r.title,{_userInput:!0}))?"":t)+"\n          ",r.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n        </th>\n      "})),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",e.rows.forEach((function(r){n+="\n    <tr>\n      ",e.columns.forEach((function(o){n+='\n        <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n          '+(null==(t=r[o.key])?"":t)+"\n        </td>\n      "})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},27915:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(79025)),o=i(n(79822));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},62796:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row" role="group"\n  ',e.component.hideLabel?n+='\n  aria-label="'+(null==(t=e.component.label)?"":t)+'"\n  ':n+='\n  aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  ',n+="\n  ",e.component.description&&(n+='\n  aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+="\n  >\n  ",e.dayFirst&&e.showDay&&(n+='\n  <div class="col col-xs-3">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.day)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",e.showMonth&&(n+='\n  <div class="col col-xs-4">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="',e.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Month"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.month)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",!e.dayFirst&&e.showDay&&(n+='\n  <div class="col col-xs-3">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.day)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",e.showYear&&(n+='\n  <div class="col col-xs-5">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="',e.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Year"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.year)?"":t)+"</div>\n  </div>\n  "),n+'\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},11594:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(62796))&&r.__esModule?r:{default:r}).default};t.default=o},63645:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close float-right btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n  </div>\n</div>\n'}},10158:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(63645))&&r.__esModule?r:{default:r}).default};t.default=o},9665:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    ">\n  ',e.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(t=e.header)?"":t)+"\n  </li>\n  "),n+="\n  ",e.rows.forEach((function(r,o){n+='\n  <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n    '+(null==(t=r)?"":t)+"\n    ",e.openRows[o]&&!e.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n      ",e.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error">\n        '+(null==(t=e.errors[o])?"":t)+"\n      </div>\n    </div>\n  </li>\n  "})),n+="\n  ",e.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(t=e.footer)?"":t)+"\n  </li>\n  "),n+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n  <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}},46248:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    ">\n  ',e.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(t=e.header)?"":t)+"\n  </li>\n  "),n+="\n  ",e.rows.forEach((function(r,o){n+='\n  <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n    '+(null==(t=r)?"":t)+"\n    ",e.openRows[o]&&!e.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n      ",e.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(t=e.errors[o])?"":t)+"\n      </div>\n    </div>\n  </li>\n  "})),n+="\n  ",e.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(t=e.footer)?"":t)+"\n  </li>\n  "),n+="\n</ul>\n"}},21838:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(9665)),o=i(n(46248));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},82064:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n      "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n      "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n      "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    ">\n      ',e.header&&(n+='\n      <thead class="editgrid-table-head">\n        '+(null==(t=e.header)?"":t)+"\n      </thead>\n      "),n+='\n      <tbody class="editgrid-table-body">\n        ',e.rows.forEach((function(r,o){n+='\n        <tr ref="'+(null==(t=e.ref.row)?"":t)+'">\n          '+(null==(t=r)?"":t)+"\n          ",e.openRows[o]&&!e.readOnly&&(n+='\n            <td class="editgrid-table-column">\n              <div class="editgrid-actions">\n                <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n                ",e.component.removeRow&&(n+='\n                <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n                "),n+="\n              </div>\n            </td>\n          "),n+="\n          ",e.errors[o]&&(n+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(t=e.errors[o])?"":t)+"\n              </div>\n            </div>\n          </td>\n          "),n+="\n        </tr>\n        "})),n+="\n      </tbody>\n      ",e.footer&&(n+="\n      <tfoot>\n        <tr>\n          "+(null==(t=e.footer)?"":t)+"\n        </tr>\n      <tfoot>\n      "),n+="\n    </table>\n  </div>\n</div>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n  <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n  '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}},84940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n      "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n      "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n      "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    ">\n      ',e.header&&(n+='\n      <thead class="editgrid-table-head">\n        '+(null==(t=e.header)?"":t)+"\n      </thead>\n      "),n+='\n      <tbody class="editgrid-table-body">\n        ',e.rows.forEach((function(r,o){n+='\n        <tr ref="'+(null==(t=e.ref.row)?"":t)+'">\n          '+(null==(t=r)?"":t)+"\n          ",e.openRows[o]&&!e.readOnly&&(n+='\n          <td class="editgrid-table-column">\n            <div class="editgrid-actions">\n              <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n              ",e.component.removeRow&&(n+='\n              <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n              "),n+="\n            </div>\n          </td>\n          "),n+="\n          ",e.errors[o]&&(n+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(t=e.errors[o])?"":t)+"\n              </div>\n            </div>\n          </td>\n          "),n+="\n        </tr>\n        "})),n+="\n      </tbody>\n      ",e.footer&&(n+="\n      <tfoot>\n        <tr>\n          "+(null==(t=e.footer)?"":t)+"\n         </tr>\n      <tfoot>\n      "),n+="\n    </table>\n  </div>\n</div>\n"}},5342:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(82064)),o=i(n(84940));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},92161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<p>"+(null==(t=e.t("error"))?"":t)+"\n  ",e.options.vpat&&(n+='\n  <span ref="errorTooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'" tabindex="0"></span>\n  '),n+="\n</p>\n<ul>\n  ",e.errors.forEach((function(e){n+='\n  <li>\n    <span\n      data-component-key = "'+(null==(t=e.keyOrPath)?"":t)+'"\n      ref = "errorRef"\n      tabIndex = "0"\n      role="link"\n    >\n      '+(null==(t=e.message)?"":t)+"\n    </span>\n  </li>\n  "})),n+="\n</ul>\n"}},21337:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(92161))&&r.__esModule?r:{default:r}).default};t.default=o},21193:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="field-wrapper flex-fill\n  '+(null==(t=e.isRightPosition?"field-wrapper--reverse":"")?"":t)+'">\n  ',e.label.hidden||(n+='\n    <div class="field-label\n      '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n      style="'+(null==(t=e.labelStyles)?"":t)+'">\n    '+(null==(t=e.labelMarkup)?"":t)+"\n    </div>\n  "),n+="\n\n  ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n    <div class="field-label\n      '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n      style="'+(null==(t=e.labelStyles)?"":t)+'">\n      <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n    </div>\n  '),n+='\n\n  <div class="field-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n    '+(null==(t=e.element)?"":t)+"\n  </div>\n</div>\n\n",e.component.description&&(n+='\n  <div class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},81336:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n  "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n  <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n  "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n  <div id="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},77703:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(81336)),o=i(n(21193));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,align:o.default};t.default=a},3677:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<fieldset>\n  ",e.component.legend&&(n+='\n  <legend ref="header" class="'+(null==(t=e.component.collapsible?"formio-clickable":"")?"":t)+'">\n    '+(null==(t=e.t(e.component.legend,{_userInput:!0}))?"":t)+"\n    ",e.component.tooltip&&(n+='\n      <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),n+="\n  </legend>\n  "),n+="\n  ",e.collapsed||(n+='\n  <div class="fieldset-body" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n  "),n+"\n</fieldset>\n"}},2619:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(3677))&&r.__esModule?r:{default:r}).default};t.default=o},99748:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.options.vpat&&(n+='\n  <span tabindex="-1" class="sr-only" id="invisible-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"></span>\n'),n+="\n",e.self.imageUpload?(n+="\n  <div>\n    ",e.files.forEach((function(r){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(t=r.originalName||r.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n          ',e.disabled||(n+='\n            <i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "})),n+="\n  </div>\n"):(n+="\n  ",e.options.vpat&&(n+="\n    <div>"+(null==(t=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":t)+"</div>\n  "),n+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',e.disabled||(n+='\n          <div class="col-md-1"></div>\n        '),n+='\n        <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n        ",e.self.hasTypes&&(n+='\n          <div class="col-md-2"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n        "),n+="\n      </div>\n    </li>\n    ",e.files.forEach((function(r){n+='\n      <li class="list-group-item">\n        <div class="row">\n          ',e.disabled||(n+='\n            <div class="col-md-1"><i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='">\n            ',e.component.uploadOnly?n+="\n              "+(null==(t=r.originalName||r.name)?"":t)+"\n            ":n+='\n              <a href="'+(null==(t=r.url||"#")?"":t)+'" target="_blank" ref="fileLink">\n                <span class="sr-only">'+(null==(t=e.t("Press to open "))?"":t)+"</span>"+(null==(t=r.originalName||r.name)?"":t)+"\n              </a>\n            ",n+='\n          </div>\n          <div class="col-md-2">'+(null==(t=e.fileSize(r.size))?"":t)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(n+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType">\n                ',e.component.fileTypes.map((function(o){n+='\n                  <option class="test" value="'+(null==(t=o.value)?"":t)+'" ',o.label===r.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.t(o.label))?"":t)+"</option>\n                "})),n+="\n              </select>\n            </div>\n          "),n+="\n          ",e.self.hasTypes&&e.disabled&&(n+='\n          <div class="col-md-2">'+(null==(t=r.fileType)?"":t)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "})),n+="\n  </ul>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n  ",e.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n    </div>\n  ":e.self.cameraMode?n+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Take Picture"))?"":t)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+'>\n      <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n        ",e.self.imageUpload&&e.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(t=e.t("use camera"))?"":t)+"</a>\n        "),n+="\n        "+(null==(t=e.t("or"))?"":t)+'\n        <a href="#" ref="fileBrowse" class="browse">\n          '+(null==(t=e.t("browse"))?"":t)+'\n          <span class="sr-only">\n            '+(null==(t=e.t("Browse to attach file for "+e.component.label+". "+(e.component.description?e.component.description+". ":"")+(e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")))?"":t)+'\n          </span>\n        </a>\n      <div ref="fileProcessingLoader" class="loader-wrapper">\n        <div class="loader text-center"></div>\n      </div>\n    </div>\n  '),n+="\n"),n+="\n",e.statuses.forEach((function(r){n+='\n  <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(t=r.originalName)?"":t)+'\n        <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove">\n          <span class="sr-only">'+(null==(t=e.t("Remove button. Press to remove "+r.originalName||0))?"":t)+'</span>\n          <span class="sr-only">'+(null==(t=r.message?r.message.replace(";","."):"")?"":t)+'</span>\n        </i>\n      </div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(t=e.fileSize(r.size))?"":t)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===r.status?n+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=r.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=r.progress)?"":t)+'%">\n              <span class="sr-only">'+(null==(t=r.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n            </div>\n          </div>\n        ":"error"===r.status?n+='\n          <div class="alert alert-danger bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n        ":n+='\n          <div class="bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(n+="\n      <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n    "),n+="\n    ",e.support.filereader||(n+="\n      <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.formdata||(n+="\n      <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.progress||(n+="\n      <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>\n    "),n+="\n  </div>\n"),n+="\n"}},10910:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(99748))&&r.__esModule?r:{default:r}).default};t.default=o},80692:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<"+(null==(t=e.tag)?"":t)+' class="formio-component-htmlelement '+(null==(t=e.component.className)?"":t)+'" ref="html"\n  ',e.attrs.forEach((function(e){n+="\n    "+(null==(t=e.attr)?"":t)+'="'+(null==(t=e.value)?"":t)+'"\n  '})),n+="\n>"+(null==(t=e.t(e.content))?"":t),e.singleTags&&-1!==e.singleTags.indexOf(e.tag)||(n+="</"+(null==(t=e.tag)?"":t)+">"),n+="\n"}},28209:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(80692))&&r.__esModule?r:{default:r}).default};t.default=o},72663:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<i ref="'+(null==(t=e.ref)?"":t)+'" class="'+(null==(t=e.className)?"":t)+'" style="'+(null==(t=e.styles)?"":t)+'">'+(null==(t=e.content)?"":t)+"</i>\n"}},34885:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(72663))&&r.__esModule?r:{default:r}).default};t.default=o},64968:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),t.default=function(e,t,n){if("fa"===e)switch(t){case"save":t="download";break;case"zoom-in":t="search-plus";break;case"zoom-out":t="search-minus";break;case"question-sign":t="question-circle";break;case"remove-circle":t="times-circle-o";break;case"new-window":t="window-restore";break;case"move":t="arrows";break;case"time":t="clock-o"}return n?"".concat(e," ").concat(e,"-").concat(t," ").concat(e,"-spin"):"".concat(e," ").concat(e,"-").concat(t)}},5508:function(e,t,n){"use strict";n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(83710),n(41539),n(39714),n(96649),n(96078),n(82526),n(41817),n(9653);var r=pe(n(45284)),o=pe(n(15590)),i=pe(n(14943)),a=pe(n(89298)),l=pe(n(74798)),s=pe(n(65181)),u=pe(n(98953)),c=pe(n(31440)),f=pe(n(19838)),d=pe(n(40707)),p=pe(n(28569)),h=pe(n(36567)),m=pe(n(28857)),y=pe(n(6311)),v=pe(n(16056)),b=pe(n(42142)),g=pe(n(64401)),w=pe(n(27915)),k=pe(n(11594)),O=pe(n(10158)),_=pe(n(21838)),S=pe(n(5342)),P=pe(n(77703)),j=pe(n(2619)),x=pe(n(10910)),E=pe(n(28209)),C=pe(n(34885)),A=pe(n(64968)),T=pe(n(98781)),M=pe(n(59811)),R=pe(n(38304)),D=pe(n(97028)),I=pe(n(56105)),L=pe(n(40822)),V=pe(n(75441)),N=pe(n(20073)),F=pe(n(44857)),B=pe(n(87505)),U=pe(n(5392)),z=pe(n(32878)),H=pe(n(2265)),q=pe(n(40486)),W=pe(n(24628)),K=pe(n(80247)),Y=pe(n(80411)),G=pe(n(36236)),$=pe(n(58830)),J=pe(n(3246)),X=pe(n(4287)),Z=pe(n(40708)),Q=pe(n(67741)),ee=pe(n(75401)),te=pe(n(1)),ne=pe(n(29304)),re=pe(n(56429)),oe=pe(n(13380)),ie=pe(n(41345)),ae=pe(n(187)),le=pe(n(88057)),se=pe(n(75273)),ue=pe(n(24376)),ce=pe(n(25486)),fe=pe(n(21337)),de=pe(n(75284));function pe(e){return e&&e.__esModule?e:{default:e}}function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==he(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===he(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=ye(ye({transform:function(e,t){return t&&"class"===e&&this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t},defaultIconset:"fa",iconClass:A.default,cssClasses:ce.default,address:r.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:l.default,builderPlaceholder:s.default,builderSidebar:u.default,builderSidebarGroup:c.default,builderWizard:f.default,button:d.default,checkbox:p.default,columns:h.default,component:m.default,componentModal:y.default,components:v.default,tableComponents:b.default,container:g.default,datagrid:w.default,day:k.default,dialog:O.default,editgrid:_.default,editgridTable:S.default,field:P.default,fieldset:j.default,file:x.default,html:E.default,icon:C.default,input:T.default,label:M.default,loader:R.default,loading:D.default,map:I.default,message:L.default,modaledit:N.default,modaldialog:V.default,modalPreview:F.default,multipleMasksInput:B.default,multiValueRow:U.default,multiValueTable:z.default,panel:H.default,pdf:q.default,pdfBuilder:W.default,pdfBuilderUpload:K.default,radio:Y.default,resourceAdd:G.default,select:$.default,selectOption:J.default,signature:X.default,survey:Z.default,tab:Q.default,table:ee.default,tree:te.default},ne.default),{},{webform:re.default,well:oe.default,wizard:ie.default,wizardHeader:ae.default,wizardHeaderClassic:le.default,wizardHeaderVertical:se.default,wizardNav:ue.default,errorsList:fe.default,alert:de.default});t.default=be},62247:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n<div class="input-group">\n  '),n+="\n  ",e.prefix&&(n+='\n    <div class="input-group-prepend" ref="prefix">\n      <span class="input-group-text">\n        ',e.prefix instanceof HTMLElement?n+="\n          "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n        ":n+="\n          "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n        ",n+="\n      </span>\n    </div>\n  "),n+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n    <"+(null==(t=e.input.type)?"":t)+'\n      ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n      ',e.input.attr)n+="\n        "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n      ';n+='\n      id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n      aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+" ",e.component.description&&(n+="d-"+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)),n+='"\n      aria-required="'+(null==(t="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":t)+'"\n    >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n    ",e.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n","datetime"===e.component.type&&(n+='\n<span aria-live="assertive" id="'+(null==(t=e.instance.id)?"":t)+'-liveRegion" class="sr-only" ref="liveRegion"></span>\n'),n+="\n",e.suffix&&(n+='\n  <div class="input-group-append" ref="suffix">\n    <span class="input-group-text">\n      ',e.suffix instanceof HTMLElement?n+="\n        "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n      ":n+="\n        "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n      ",n+="\n    </span>\n  </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n  </div>\n"),n+="\n",(e.component.showCharCount||e.component.showWordCount)&&(n+='\n<div class="form-text '+(null==(t=e.component.description?"pull-right":"text-right")?"":t)+'">\n  ',e.component.showCharCount&&(n+='\n  <span class="text-muted" ref="charcount" aria-live="polite"></span>\n  '),n+="\n  ",e.component.showWordCount&&(n+='\n  <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n  '),n+="\n</div>\n"),n+"\n"}},19423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},98781:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(62247)),o=i(n(19423));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},2025:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n  ref="label"\n  class="col-form-label '+(null==(t=e.label.className)?"":t)+'"\n  for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  id="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n  '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n  ","number"!==e.component.type&&"phoneNumber"!==e.component.type&&"currency"!==e.component.type||(n+='\n    <span class="sr-only">, '+(null==(t=e.t("numeric only"))?"":t)+",</span>\n  "),n+="\n  ",e.component.tooltip&&(n+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n  '),n+"\n</label>\n"}},59811:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(2025))&&r.__esModule?r:{default:r}).default};t.default=o},76904:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-loader">\n  <div class="loader-wrapper">\n    <div class="loader text-center"></div>\n  </div> \n</div>\n'}},38304:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(76904))&&r.__esModule?r:{default:r}).default};t.default=o},71956:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},97028:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(71956))&&r.__esModule?r:{default:r}).default};t.default=o},31597:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div id="'+(null==(t=e.mapId)?"":t)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},56105:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(31597))&&r.__esModule?r:{default:r}).default};t.default=o},46742:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div id="e-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.key)?"":t)+'" class="form-text '+(null==(t=e.level||"error")?"":t)+'">'+(null==(t=e.message)?"":t)+"</div>\n"}},40822:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(46742))&&r.__esModule?r:{default:r}).default};t.default=o},47190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<label id="l-'+(null==(t=e.component.key)?"":t)+'" class="control-label '+(null==(t=e.label.className)?"":t)+'">\n  '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+'<span ref="modalLabelValue" class="sr-only">. '+(null==(t="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":t)+'</span>\n</label><br>\n<span class="sr-only" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n  lang="en"\n  class="btn btn-light btn-md open-modal-button form-control '+(null==(t=e.openModalBtnClasses||"")?"":t)+'"\n  ref="openModal"\n  aria-labelledby="l-'+(null==(t=e.component.key)?"":t)+'"\n>\n  '+(null==(t=e.previewText)?"":t)+'\n</button>\n<div class="formio-errors invalid-feedback">\n  '+(null==(t=e.messages)?"":t)+"\n</div>\n"}},44857:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47190))&&r.__esModule?r:{default:r}).default};t.default=o},34585:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n  <div ref="overlay" class="formio-dialog-overlay"></div>\n  <div ref="content" class="formio-modaledit-content">\n    <button\n      ref="close"\n      type="button"\n      role="button"\n      class="btn btn-primary btn-xs formio-modaledit-close">\n      '+(null==(t=e.t("Close"))?"":t)+'\n    </button>\n    <div ref="inner" class="reset-margins"></div>\n  </div>\n</div>\n'}},75441:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(34585))&&r.__esModule?r:{default:r}).default};t.default=o},16160:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div ref="container" class="formio-modaledit-view-container">\n  <button\n    ref="edit"\n    type="button"\n    role="button"\n    class="btn btn-xxs btn-warning formio-modaledit-edit">\n    <i class="'+(null==(t=e.iconClass("edit"))?"":t)+'"></i>\n  </button>\n  <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(t=e.content)?"":t)+"</div>\n</div>\n"}},20073:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(16160))&&r.__esModule?r:{default:r}).default};t.default=o},31737:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<tr ref="row">\n  <td>\n    '+(null==(t=e.element)?"":t)+"\n  </td>\n  ",e.disabled||(n+='\n  <td>\n    <button type="button" class="btn btn-secondary" ref="removeRow">\n      <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n    </button>\n  </td>\n  '),n+"\n</tr>\n"}},5392:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(31737))&&r.__esModule?r:{default:r}).default};t.default=o},47935:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-bordered">\n  <tbody>\n  '+(null==(t=e.rows)?"":t)+"\n  ",e.disabled||(n+='\n  <tr>\n    <td colspan="2">\n      <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother,{_userInput:!0}))?"":t)+"</button>\n    </td>\n  </tr>\n  "),n+"\n  </tbody>\n</table>\n"}},32878:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47935))&&r.__esModule?r:{default:r}).default};t.default=o},33793:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<div\n  class="input-group formio-multiple-mask-container"\n  ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n>\n  <select\n    class="form-control formio-multiple-mask-select"\n    id="'+(null==(t=e.key)?"":t)+'-mask"\n    ref="select"\n    ',e.input.attr.disabled&&(n+="disabled"),n+=">\n    ",e.selectOptions.forEach((function(e){n+='\n    <option value="'+(null==(t=e.value)?"":t)+'">'+(null==(t=e.label)?"":t)+"</option>\n    "})),n+='\n  </select>\n  <input\n    ref="mask"\n    ',e.input.attr)n+="\n    "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n    ';return n+="\n  >\n</div>\n"}},87505:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(33793))&&r.__esModule?r:{default:r}).default};t.default=o},47760:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="mb-2 card border">\n  ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n  <div class="card-header '+(null==(t=e.transform("class","bg-"+e.component.theme))?"":t)+'"\n    ',e.component.collapsible&&(n+='\n    tabindex="0"\n    '),n+='\n    role="button"\n    aria-expanded="'+(null==(t=!e.component.collapsible||!e.collapsed)?"":t)+'"\n    aria-controls="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n    ref="header"\n  >\n    <span class="mb-0 card-title ',e.component.theme&&"default"!==e.component.theme&&(n+="text-light"),n+='">\n      ',e.component.collapsible&&(n+='\n        <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n      '),n+="\n      ",e.component.hideLabel&&!e.builder||(n+="\n      "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n      "),n+="\n      ",e.component.tooltip&&(n+='\n        <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n      '),n+="\n    </span>\n  </div>\n  "),n+="\n  ",e.collapsed&&!e.builder||(n+='\n  <div class="card-body" ref="'+(null==(t=e.nestedKey)?"":t)+'" id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n  "),n+"\n</div>\n"}},2265:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47760))&&r.__esModule?r:{default:r}).default};t.default=o},52342:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+'" ref="webform">\n\t<span data-noattach="true" ref="zoomIn" style="position:absolute;right:10px;top:10px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(t=e.iconClass("zoom-in"))?"":t)+'"></i>\n\t</span>\n\t<span data-noattach="true" ref="zoomOut" style="position:absolute;right:10px;top:60px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(t=e.iconClass("zoom-out"))?"":t)+'"></i>\n\t</span>\n  <div data-noattach="true" ref="iframeContainer"></div>\n  '+(null==(t=e.submitButton)?"":t)+"\n</div>\n"}},40486:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(52342))&&r.__esModule?r:{default:r}).default};t.default=o},67384:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(t=e.sidebar)?"":t)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n\t  <div class="formio-drop-zone" ref="iframeDropzone"></div>\n    '+(null==(t=e.form)?"":t)+"\n  </div>\n</div>\n"}},24628:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(67384))&&r.__esModule?r:{default:r}).default};t.default=o},47733:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="pdf-upload formio-component-file">\n  <h3 class="label">'+(null==(t=e.t("Upload a PDF File"))?"":t)+'</h3>\n  <input type="file" style="opacity: 0; position: absolute;" tabindex="-1" accept=".pdf" ref="hiddenFileInputElement">\n  <div class="fileSelector" ref="fileDrop">\n    <span ref="dragDropText">\n      <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i>'+(null==(t=e.t("Drop pdf to start, or"))?"":t)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(t=e.t("browse"))?"":t)+'</a>\n    </span>\n    <div class="progress pdf-progress" ref="uploadProgressWrapper" style="display:none;">\n      <div class="progress-bar" ref="uploadProgress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>\n    </div>\n  </div>\n  <div class="alert alert-danger" ref="uploadError">\n\n  </div>\n</div>\n\n'}},80247:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47733))&&r.__esModule?r:{default:r}).default};t.default=o},36564:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div\n  class="form-radio radio"\n  ref="radioGroup"\n  role="'+(null==(t="selectboxes"===e.component.type?"group":"radiogroup")?"":t)+'"\n  aria-required="'+(null==(t=e.input.component.validate.required)?"":t)+'"\n  aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  ',e.component.description&&(n+='\n    aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+="\n>\n  ",e.values.forEach((function(r,o){for(var i in n+='\n  <div class="'+(null==(t=e.input.attr.type)?"":t)+" "+(null==(t=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?"pl-0":"")?"":t)+" form-check"+(null==(t=e.inline?"-inline":"")?"":t)+'" ref="wrapper">\n    <label class="form-check-label label-position-'+(null==(t=e.component.optionsLabelPosition)?"":t)+'" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t="object"==typeof r.value?r.value+"-"+o:r.value)?"":t)+'">\n      ',"left"!==e.component.optionsLabelPosition&&"top"!==e.component.optionsLabelPosition||(n+="\n      <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n      "),n+="\n      <"+(null==(t=e.input.type)?"":t)+'\n        ref="input"\n        ',e.input.attr)n+="\n        "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n        ';n+='\n        value="'+(null==(t=r.value)?"":t)+'"\n        ',e.value&&(e.value===r.value||"object"==typeof e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value])&&(n+="\n          checked=true\n        "),n+="\n        ",r.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t="object"==typeof r.value?r.value+"-"+o:r.value)?"":t)+'"\n        role="'+(null==(t="selectboxes"===e.component.type?"checkbox":"radio")?"":t)+'"\n      >\n      ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(n+="\n      <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n      "),n+="\n    </label>\n  </div>\n  "})),n+="\n</div>\n"}},92635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='<div ref="value">\n  ')+"\n  "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label,{_userInput:!0})})).join(", "))?"":t)+"\n  </div>\n"}},80411:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(36564)),o=i(n(92635));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},59464:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<table class="table table-bordered">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(t=e.element)?"":t)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n          '+(null==(t=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":t)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},36236:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(59464))&&r.__esModule?r:{default:r}).default};t.default=o},99291:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<select\n  ref="'+(null==(t=e.input.ref?e.input.ref:"selectContainer")?"":t)+'"\n  '+(null==(t=e.input.multiple?"multiple":"")?"":t)+"\n  ",e.input.attr)n+="\n  "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n  ';return n+="\n  ",e.input.attr.id||(n+='\n  id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+="\n  ",e.component.description&&(n+='\n  aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+='\n  aria-required="'+(null==(t="selectContainer"!==e.input.ref&&e.input.ref?e.component.fields[e.input.ref].required:e.input.component.validate.required)?"":t)+'"\n>'+(null==(t=e.selectOptions)?"":t)+'</select>\n<input type="text"\n       class="formio-select-autocomplete-input"\n       ref="autocompleteInput"\n       ',e.input.attr.autocomplete&&(n+='\n       autocomplete="'+(null==(t=e.input.attr.autocomplete)?"":t)+'"\n       '),n+'\n       tabindex="-1"\n       aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n/>\n'}},29645:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+"</div>\n"}},58830:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(99291)),o=i(n(29645));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},37040:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<option "+(null==(t=e.selected?'selected="selected"':"")?"":t)+"\n  value='"+(null==(t=e.useId?e.id:e.option.value)?"":t)+"'\n  ",e.attrs)n+="\n  "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n  ';return n+"\n  >\n  "+(null==(t=e.t(e.option.label,{_userInput:!0}))?"":t)+"\n</option>\n"}},89741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.selected&&(n+=null==(t=e.t(e.option.label,{_userInput:!0}))?"":t),n+"\n"}},3246:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(37040)),o=i(n(89741));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},66272:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(t=e.component.width)?"":t)+";height: "+(null==(t=e.component.height)?"":t)+';padding:0;margin:0;"\n  tabindex="'+(null==(t=e.component.tabindex||0)?"":t)+'"\n  ref="padBody"\n>\n  <a class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(t=e.iconClass("refresh"))?"":t)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n  ',e.required&&(n+='\n  <span class="form-control-feedback text-danger">\n    <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(t=e.t(e.component.footer,{_userInput:!0}))?"":t)+"\n  </div>\n"),n+"\n"}},47044:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},4287:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(66272)),o=i(n(47044));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},79419:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered" aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n  <thead>\n    <tr>\n      <th></th>\n      ',e.component.values.forEach((function(r){n+='\n      <th style="text-align: center;">\n        '+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"\n        ",r.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </th>\n      "})),n+="\n    </tr>\n  </thead>\n  <tbody>\n    ",e.component.questions.forEach((function(r){n+="\n    <tr>\n      <td>\n        "+(null==(t=e.t(r.label))?"":t)+"\n        ",r.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </td>\n      ",e.component.values.forEach((function(o){n+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(t=e.self.getInputName(r))?"":t)+'" value="'+(null==(t=o.value)?"":t)+'" id="'+(null==(t=e.key)?"":t)+"-"+(null==(t=r.value)?"":t)+"-"+(null==(t=o.value)?"":t)+'" ref="input">\n      </td>\n      '})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},80188:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',e.component.questions.forEach((function(r){n+="\n    <tr>\n      <th>"+(null==(t=e.t(r.label))?"":t)+"</th>\n      <td>\n      ",e.component.values.forEach((function(o){n+="\n        ",e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value]===o.value&&(n+="\n          "+(null==(t=e.t(o.label))?"":t)+"\n        "),n+="\n      "})),n+="\n      </td>\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},40708:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(79419)),o=i(n(80188));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},61915:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(r,o){n+='\n  <div class="mb-2 card border">\n    <div class="card-header bg-default">\n      <h4 class="mb-0 card-title">'+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+'</h4>\n    </div>\n    <div\n      class="card-body"\n      ref="'+(null==(t=e.tabKey)?"":t)+'"\n    >\n      '+(null==(t=e.tabComponents[o])?"":t)+"\n    </div>\n  </div>\n"})),n+="\n"}},78395:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="card'+(null==(t=e.component.verticalLayout?" card-vertical":"")?"":t)+'">\n  <div class="card-header">\n    <ul class="nav nav-tabs card-header-tabs'+(null==(t=e.component.verticalLayout?" nav-tabs-vertical":"")?"":t)+'" role="tablist">\n      ',e.component.components.forEach((function(r,o){n+='\n      <li class="nav-item'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" role="tab" ref="'+(null==(t=e.tabLikey)?"":t)+'">\n        <a\n                class="nav-link'+(null==(t=e.currentTab===o?" active":"")?"":t)+(null==(t=e.component.verticalLayout?" nav-link-vertical":"")?"":t)+'"\n                href="#'+(null==(t=r.key)?"":t)+'"\n                ref="'+(null==(t=e.tabLinkKey)?"":t)+'"\n        >\n          '+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"\n        </a>\n      </li>\n      "})),n+="\n    </ul>\n  </div>\n  ",e.component.components.forEach((function(r,o){n+='\n  <div\n    role="tabpanel"\n    class="card-body tab-pane'+(null==(t=e.currentTab===o?" active":"")?"":t)+'"\n    style="display: '+(null==(t=e.currentTab===o?"block":"none")?"":t)+'"\n    ref="'+(null==(t=e.tabKey)?"":t)+'"\n  >\n    '+(null==(t=e.tabComponents[o])?"":t)+"\n  </div>\n  "})),n+="\n</div>\n"}},67741:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(61915)),o=i(n(78395));function i(e){return e&&e.__esModule?e:{default:e}}var a={flat:r.default,form:o.default};t.default=a},13381:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n  ">\n  <caption class="sr-only">'+(null==(t=e.t(e.component.label))?"":t)+"</caption>\n  ",e.component.header&&e.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach((function(r){n+="\n      <th>"+(null==(t=e.t(r))?"":t)+"</th>\n      "})),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",e.tableComponents.forEach((function(r,o){n+='\n    <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n      ',r.forEach((function(r,i){n+='\n      <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=o)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=r)?"":t)+"</td>\n      "})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},75401:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(13381))&&r.__esModule?r:{default:r}).default};t.default=o},81863:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.children.forEach((function(e){n+='\n  <td class="editgrid-table-column">\n    '+(null==(t=e)?"":t)+"\n  </td>\n"})),n+="\n"}},42142:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(81863))&&r.__esModule?r:{default:r}).default};t.default=o},45568:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.node.isRoot?n+='\n  <div ref="root" class="list-group-item">\n':n+='\n  <li ref="node" class="list-group-item col-sm-12 tree__level tree__level_'+(null==(t=e.odd?"odd":"even")?"":t)+'">\n',n+="\n  ",e.content&&(n+='\n    <div ref="content" class="tree__node-content">\n      '+(null==(t=e.content)?"":t)+"\n    </div>\n  "),n+="\n  ",e.childNodes&&e.childNodes.length&&(n+='\n    <ul ref="childNodes" class="tree__node-children list-group row">\n      '+(null==(t=e.childNodes.join(""))?"":t)+"\n    </ul>\n  "),n+="\n",e.node.isRoot?n+="\n  </div>\n":n+="\n  </li>\n",n+"\n"}},1:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(45568))&&r.__esModule?r:{default:r}).default};t.default=o},62720:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="node-edit">\n  <div ref="nodeEdit">'+(null==(t=e.children)?"":t)+"</div>\n  ",e.readOnly||(n+='\n    <div class="node-actions">\n      <button ref="saveNode" class="btn btn-primary saveNode">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button ref="cancelNode" class="btn btn-danger cancelNode">'+(null==(t=e.t("Cancel"))?"":t)+"</button>\n    </div>\n  "),n+"\n</div>\n"}},29304:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(62720));function o(e){return e&&e.__esModule?e:{default:e}}var i={treeView:{form:o(n(26062)).default},treeEdit:{form:r.default}};t.default=i},26062:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n  ',e.values.forEach((function(e){n+='\n    <div class="col-sm-2">\n      '+(null==(t=e)?"":t)+"\n    </div>\n  "})),n+='\n  <div class="col-sm-3">\n    <div class="btn-group pull-right">\n      ',e.node.hasChildren&&(n+='\n        <button ref="toggleNode" class="btn btn-default btn-sm toggleNode">'+(null==(t=e.t(e.node.collapsed?"Expand":"Collapse"))?"":t)+"</button>\n      "),n+="\n      ",e.readOnly||(n+='\n        <button ref="addChild" class="btn btn-default btn-sm addChild">'+(null==(t=e.t("Add"))?"":t)+'</button>\n        <button ref="editNode" class="btn btn-default btn-sm editNode">'+(null==(t=e.t("Edit"))?"":t)+'</button>\n        <button ref="removeNode" class="btn btn-danger btn-sm removeNode">'+(null==(t=e.t("Delete"))?"":t)+"</button>\n        ",e.node.revertAvailable&&(n+='\n          <button ref="revertNode" class="btn btn-danger btn-sm revertNode">'+(null==(t=e.t("Revert"))?"":t)+"</button>\n        "),n+="\n      "),n+="\n    </div>\n  </div>\n</div>\n"}},50332:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},83946:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+'" ref="webform" novalidate>'+(null==(t=e.children)?"":t)+"</div>\n"}},56429:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(83946)),o=i(n(50332));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,builder:o.default};t.default=a},80643:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="card card-body bg-light mb-3">\n  <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n</div>\n"}},13380:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(80643))&&r.__esModule?r:{default:r}).default};t.default=o},7349:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},77090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="'+(null==(t=e.className)?"":t)+'">\n    <div style="position: relative;">\n        ',"wizardHeaderVertical"===e.wizardHeaderType?(n+='\n        <div class="row">\n            ',"right"!==e.wizardHeaderLocation&&(n+='\n            <div class="col-sm-2">\n                '+(null==(t=e.wizardHeader)?"":t)+"\n            </div>\n            "),n+='\n            <div class="wizard-page col-sm-10" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n                '+(null==(t=e.components)?"":t)+"\n            </div>\n            ","right"===e.wizardHeaderLocation&&(n+='\n            <div class="col-sm-2">\n                '+(null==(t=e.wizardHeader)?"":t)+"\n            </div>\n            "),n+='\n        </div>\n        <div class="col-sm-offset-2 col-sm-10 '+(null==(t="right"===e.wizardHeaderLocation?"col-sm-offset-0 col-md-offset-0":"")?"":t)+'">\n            '+(null==(t=e.wizardNav)?"":t)+"\n        </div>\n        "):n+="\n        "+(null==(t=e.wizardHeader)?"":t)+'\n        <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n            '+(null==(t=e.components)?"":t)+"\n        </div>\n        "+(null==(t=e.wizardNav)?"":t)+"\n        ",n+"\n    </div>\n</div>\n"}},41345:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(77090)),o=i(n(7349));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,builder:o.default};t.default=a},29864:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="Wizard navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header" ref="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <ul class="pagination" role="tablist">\n    ',e.panels.forEach((function(r,o){n+='\n    <li class="page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">\n      <button tabindex="0" data-index="'+(null==(t=o)?"":t)+'" role="tab" class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">\n        '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n        ",r.tooltip&&e.currentPage===o&&(n+='\n        <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </button>\n    </li>\n    "})),n+="\n  </ul>\n</nav>\n"}},187:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(29864))&&r.__esModule?r:{default:r}).default};t.default=o},47626:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n    ',e.panels.forEach((function(r,o){n+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(null==(t=e.currentPage<o?" disabled":"")?"":t)+"\n          "+(null==(t=e.currentPage===o?" active":"")?"":t)+"\n          "+(null==(t=e.currentPage>o?" complete":"")?"":t)+'">\n        <div class="text-center classic-pagination-title">'+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"</div>\n        ",e.panels.length>1&&(n+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),n+=' \n        <span ref="'+(null==(t=e.wizardKey)?"":t)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '})),n+="\n  </div>\n</nav>\n"}},88057:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47626))&&r.__esModule?r:{default:r}).default};t.default=o},9289:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <ul class="pagination flex-column">\n    ',e.panels.forEach((function(r,o){n+='\n    <li class="col-xs-12 page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link" style="margin-left: 0px;">\n        '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n        ",r.tooltip&&e.currentPage===o&&(n+='\n        <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "})),n+="\n  </ul>\n</nav>\n"}},75273:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(9289))&&r.__esModule?r:{default:r}).default};t.default=o},38054:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="formio-wizard-nav-container list-inline" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n  ',e.buttonOrder.forEach((function(r){n+="\n    ","cancel"===r&&e.buttons.cancel&&(n+='\n    <li>\n      <button class="btn btn-secondary btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel" aria-label="'+(null==(t=e.t("cancelButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n    </li>\n    "),n+="\n    ","previous"===r&&e.buttons.previous&&(n+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous" aria-label="'+(null==(t=e.t("previousButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("previous"))?"":t)+"</button>\n    </li>\n    "),n+="\n    ","next"===r&&e.buttons.next&&(n+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next" aria-label="'+(null==(t=e.t("nextButtonAriaLabel"))?"":t)+'">'+(null==(t=e.t("next"))?"":t)+"</button>\n    </li>\n    "),n+="\n    ","submit"===r&&e.buttons.submit&&(n+="\n    <li>\n      ",e.disableWizardSubmit?n+='\n      <button disabled class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit" aria-label="'+(null==(t=e.t("submit"))?"":t)+' button. Click to submit the form">'+(null==(t=e.t("submit"))?"":t)+"</button>\n      ":n+='\n      <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit" aria-label="'+(null==(t=e.t("submit"))?"":t)+' button. Click to submit the form">'+(null==(t=e.t("submit"))?"":t)+"</button>\n      ",n+="\n    </li>\n    "),n+="\n  "})),n+="\n</ul>\n"}},24376:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(38054))&&r.__esModule?r:{default:r}).default};t.default=o},14086:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.groupId)?"":t)+'" class="accordion builder-sidebar'+(null==(t=e.scrollEnabled?" builder-sidebar_scroll":"")?"":t)+'" ref="sidebar" role="tablist">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n    ',e.groups.forEach((function(e){n+="\n      "+(null==(t=e)?"":t)+"\n    "})),n+="\n</div>\n"}},4778:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(14086))&&r.__esModule?r:{default:r}).default};t.default=o},52601:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="card form-builder-panel" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\n  <div class="card-header form-builder-group-header" id="heading-'+(null==(t=e.groupKey)?"":t)+'">\n    <h5 class="mb-0 mt-0 d-grid">\n      <button\n        class="btn builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(t=e.groupKey)?"":t)+'"\n        data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n        aria-expanded="'+(null==(t=e.group.default)?"":t)+'"\n        aria-controls="group-'+(null==(t=e.groupKey)?"":t)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(t=e.groupKey)?"":t)+'"\n    class="collapse '+(null==(t=e.group.default?" show":"")?"":t)+'"\n    data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n    data-default="'+(null==(t=e.group.default)?"":t)+'"\n    aria-labelledby="heading-'+(null==(t=e.groupKey)?"":t)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="d-grid gap-1 no-drop p-2 w-100" ref="sidebar-container">\n      ',e.group.componentOrder.length||e.subgroups.length?(n+="\n        ",!e.group.componentOrder||e.group.componentOrder.forEach((function(r){n+='\n          <span\n            data-group="'+(null==(t=e.groupKey)?"":t)+'"\n            data-key="'+(null==(t=e.group.components[r].key)?"":t)+'"\n            data-type="'+(null==(t=e.group.components[r].schema.type)?"":t)+'"\n            class="btn btn-primary btn-sm formcomponent drag-copy m-0"\n          >\n            ',e.group.components[r].icon&&(n+='\n              <i class="'+(null==(t=e.iconClass(e.group.components[r].icon))?"":t)+'" style="margin-right: 5px;"></i>\n            '),n+="\n            "+(null==(t=e.t(e.group.components[r].title,{_userInput:!0}))?"":t)+"\n          </span>\n        "})),n+="\n        "+(null==(t=e.subgroups.join(""))?"":t)+"\n      "):n+="\n        <div>"+(null==(t=e.t("No Matches Found"))?"":t)+"</div>\n      ",n+="\n    </div>\n  </div>\n</div>\n"}},53195:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(52601))&&r.__esModule?r:{default:r}).default};t.default=o},95514:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(t=e.sidebar)?"":t)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n    <ol class="breadcrumb wizard-pages">\n      ',e.pages.forEach((function(r,o){n+='\n      <li>\n        <span title="'+(null==(t=r.title)?"":t)+'" class="me-2 badge ',o===e.self.page?n+="bg-primary":n+="bg-info",n+=' wizard-page-label" ref="gotoPage">'+(null==(t=r.title)?"":t)+"</span>\n      </li>\n      "})),n+='\n      <li class="wizard-add-page">\n        <span title="'+(null==(t=e.t("Create Page"))?"":t)+'" class="me-2 badge bg-success wizard-page-label" ref="addPage">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t("Page"))?"":t)+'\n        </span>\n      </li>\n    </ol>\n    <div ref="form">\n      '+(null==(t=e.form)?"":t)+"\n    </div>\n  </div>\n</div>\n"}},85646:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(95514))&&r.__esModule?r:{default:r}).default};t.default=o},26216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(t=e.component.type)?"":t)+'" ref="componentModalWrapper">\n  <div ref="openModalWrapper"></div>\n  <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n    <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n    <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" ',e.self.isIE()||(n+=' role="dialog" '),n+=' ref="modalContents">\n      <label class="visually-hidden" id="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">'+(null==(t=e.t(e.component.label))?"":t)+(null==(t=e.self.isIE()?", dialog":"")?"":t)+"</label>\n      ",e.options.vpat?n+='\n      <button class="formio-dialog-close float-end" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n      ':n+='\n      <button class="formio-dialog-close float-end btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n      ',n+='\n      <div ref="modalContents">\n        ',e.visible&&(n+="\n        "+(null==(t=e.children)?"":t)+"\n        "),n+='\n        <div class="formio-dialog-buttons">\n          ',e.options.vpat&&(n+='\n          <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(t=e.t("Cancel"))?"":t)+"</button>\n          "),n+'\n          <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(t=e.t("Save"))?"":t)+'</button>\n        </div>\n      </div>\n    </div>\n    <span class="visually-hidden" ref="modalLiveRegion" aria-live="assertive"></span>\n  </div>\n</div>\n'}},42126:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(26216))&&r.__esModule?r:{default:r}).default};t.default=o},94909:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={"form-group":"formio-form-group"}},82849:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",e.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(n+="<th></th>"),n+="\n      ",e.columns.forEach((function(r){n+='\n        <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n          '+(null==(t=r.hideLabel?"":e.t(r.label||r.title,{_userInput:!0}))?"":t)+"\n          ",r.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n        </th>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+='\n      <th>\n        <span class="visually-hidden">'+(null==(t=e.t("Add/Remove"))?"":t)+"</span>\n        ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>'+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody" data-key="'+(null==(t=e.datagridKey)?"":t)+'">\n    ',e.rows.forEach((function(r,o){n+="\n    ",e.hasGroups&&e.groups[o]&&(n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n      <td\n        ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n        colspan="'+(null==(t=e.numColumns)?"":t)+'"\n        class="datagrid-group-label">'+(null==(t=e.groups[o].label)?"":t)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n      ',e.component.reorder&&(n+='\n        <td>\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(t=e.datagridKey)?"":t)+'"></button>\n        </td>\n      '),n+="\n      ",e.columns.forEach((function(o){n+='\n        <td ref="'+(null==(t=e.datagridKey)?"":t)+'" ',o.key&&o.overlay&&o.overlay.width&&(n+=' style="width: '+(null==(t=o.overlay.width+"px")?"":t)+'"'),n+=" >\n          "+(null==(t=r[o.key])?"":t)+"\n        </td>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+="\n        ",e.hasRemoveButtons&&(n+='\n        <td>\n          <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'" aria-label="'+(null==(t=e.t("remove"))?"":t)+'">\n            <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",e.canAddColumn&&(n+='\n        <td ref="'+(null==(t=e.key)?"":t)+'-container">\n          '+(null==(t=e.placeholder)?"":t)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n  ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(t=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":t)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},99622:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(82849))&&r.__esModule?r:{default:r}).default};t.default=o},44749:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close float-end btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n  </div>\n</div>\n'}},43705:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(44749))&&r.__esModule?r:{default:r}).default};t.default=o},2034:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.options.vpat&&(n+='\n  <span tabindex="-1" class="visually-hidden" id="invisible-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"></span>\n'),n+="\n",e.self.imageUpload?(n+="\n  <div>\n    ",e.files.forEach((function(r){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(t=r.originalName||r.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n          ',e.disabled||(n+='\n            <i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "})),n+="\n  </div>\n"):(n+="\n  ",e.options.vpat&&(n+="\n    <div>"+(null==(t=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":t)+"</div>\n  "),n+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',e.disabled||(n+='\n          <div class="col-md-1"></div>\n        '),n+='\n        <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n        ",e.self.hasTypes&&(n+='\n          <div class="col-md-2"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n        "),n+="\n      </div>\n    </li>\n    ",e.files.forEach((function(r){n+='\n      <li class="list-group-item">\n        <div class="row">\n          ',e.disabled||(n+='\n            <div class="col-md-1"><i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='">\n            ',e.component.uploadOnly?n+="\n              "+(null==(t=r.originalName||r.name)?"":t)+"\n            ":n+='\n              <a href="'+(null==(t=r.url||"#")?"":t)+'" target="_blank" ref="fileLink">\n                <span class="visually-hidden">'+(null==(t=e.t("Press to open "))?"":t)+"</span>"+(null==(t=r.originalName||r.name)?"":t)+"\n              </a>\n            ",n+='\n          </div>\n          <div class="col-md-2">'+(null==(t=e.fileSize(r.size))?"":t)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(n+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType">\n                ',e.component.fileTypes.map((function(o){n+='\n                  <option class="test" value="'+(null==(t=o.value)?"":t)+'" ',o.label===r.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.t(o.label))?"":t)+"</option>\n                "})),n+="\n              </select>\n            </div>\n          "),n+="\n          ",e.self.hasTypes&&e.disabled&&(n+='\n          <div class="col-md-2">'+(null==(t=r.fileType)?"":t)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "})),n+="\n  </ul>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n  ",e.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n    </div>\n  ":e.self.cameraMode?n+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Take Picture"))?"":t)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+'>\n      <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n        ",e.self.imageUpload&&e.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(t=e.t("use camera"))?"":t)+"</a>\n        "),n+="\n        "+(null==(t=e.t("or"))?"":t)+'\n        <a href="#" ref="fileBrowse" class="browse">\n          '+(null==(t=e.t("browse"))?"":t)+'\n          <span class="visually-hidden">\n            '+(null==(t=e.t("Browse to attach file for "+e.component.label+". "+(e.component.description?e.component.description+". ":"")+(e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")))?"":t)+'\n          </span>\n        </a>\n      <div ref="fileProcessingLoader" class="loader-wrapper">\n        <div class="loader text-center"></div>\n      </div>\n    </div>\n  '),n+="\n"),n+="\n",e.statuses.forEach((function(r){n+='\n  <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(t=r.originalName)?"":t)+'\n        <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove">\n          <span class="visually-hidden">'+(null==(t=e.t("Remove button. Press to remove "+r.originalName||0))?"":t)+'</span>\n          <span class="visually-hidden">'+(null==(t=r.message?r.message.replace(";","."):"")?"":t)+'</span>\n        </i>\n      </div>\n      <div class="fileSize col-form-label col-sm-2 text-end">'+(null==(t=e.fileSize(r.size))?"":t)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===r.status?n+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=r.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=r.progress)?"":t)+'%">\n              <span class="visually-hidden">'+(null==(t=r.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n            </div>\n          </div>\n        ":"error"===r.status?n+='\n          <div class="alert alert-danger bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n        ":n+='\n          <div class="bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(n+="\n      <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n    "),n+="\n    ",e.support.filereader||(n+="\n      <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.formdata||(n+="\n      <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.progress||(n+="\n      <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>\n    "),n+="\n  </div>\n"),n+="\n"}},79719:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(2034))&&r.__esModule?r:{default:r}).default};t.default=o},66248:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(83710),n(41539),n(39714);var r=y(n(4778)),o=y(n(53195)),i=y(n(85646)),a=y(n(42126)),l=y(n(99622)),s=y(n(43705)),u=y(n(79719)),c=y(n(38158)),f=y(n(94785)),d=y(n(11293)),p=y(n(19594)),h=y(n(28705)),m=y(n(94909));function y(e){return e&&e.__esModule?e:{default:e}}var v={transform:function(e,t){return t&&"class"===e&&this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t},builderSidebar:r.default,builderSidebarGroup:o.default,builderWizard:i.default,componentModal:a.default,datagrid:l.default,dialog:s.default,file:u.default,input:c.default,label:f.default,modalPreview:d.default,radio:p.default,table:h.default,cssClasses:m.default};t.default=v},44274:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n<div class="input-group">\n  '),n+="\n  ",e.prefix&&(n+='\n    <div class="input-group-text" ref="prefix">\n      ',e.prefix instanceof HTMLElement?n+="\n        "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n      ":n+="\n        "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n      ",n+="\n    </div>\n  "),n+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n    <"+(null==(t=e.input.type)?"":t)+'\n      ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n      ',e.input.attr)n+="\n        "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n      ';n+='\n      id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n      aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+" ",e.component.description&&(n+="d-"+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)),n+='"\n      aria-required="'+(null==(t="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":t)+'"\n    >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n    ",e.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n","datetime"===e.component.type&&(n+='\n<span aria-live="assertive" id="'+(null==(t=e.instance.id)?"":t)+'-liveRegion" class="visually-hidden" ref="liveRegion"></span>\n'),n+="\n",e.suffix&&(n+='\n  <div class="input-group-text" ref="suffix">\n    ',e.suffix instanceof HTMLElement?n+="\n      "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n    ":n+="\n      "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n    ",n+="\n  </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n  </div>\n"),n+="\n",(e.component.showCharCount||e.component.showWordCount)&&(n+='\n<div class="form-text {{ctx.component.description ? float-end : text-end">\n  ',e.component.showCharCount&&(n+='\n  <span class="text-muted" ref="charcount" aria-live="polite"></span>\n  '),n+="\n  ",e.component.showWordCount&&(n+='\n  <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n  '),n+="\n</div>\n"),n+"\n"}},39221:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},38158:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(44274)),o=i(n(39221));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},92293:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n  ref="label"\n  class="col-form-label '+(null==(t=e.label.className)?"":t)+'"\n  for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  id="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n  '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n  ","number"!==e.component.type&&"phoneNumber"!==e.component.type&&"currency"!==e.component.type||(n+='\n    <span class="visually-hidden">, '+(null==(t=e.t("numeric only"))?"":t)+",</span>\n  "),n+="\n  ",e.component.tooltip&&(n+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n  '),n+"\n</label>\n"}},94785:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(92293))&&r.__esModule?r:{default:r}).default};t.default=o},25770:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<label id="l-'+(null==(t=e.component.key)?"":t)+'" class="control-label '+(null==(t=e.label.className)?"":t)+'">\n  '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+'<span ref="modalLabelValue" class="visually-hidden">. '+(null==(t="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":t)+'</span>\n</label><br>\n<span class="visually-hidden" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n  lang="en"\n  class="btn btn-light btn-md open-modal-button form-control '+(null==(t=e.openModalBtnClasses||"")?"":t)+'"\n  ref="openModal"\n  aria-labelledby="l-'+(null==(t=e.component.key)?"":t)+'"\n>\n  '+(null==(t=e.previewText)?"":t)+'\n</button>\n<div class="formio-errors invalid-feedback">\n  '+(null==(t=e.messages)?"":t)+"\n</div>\n"}},11293:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(25770))&&r.__esModule?r:{default:r}).default};t.default=o},12892:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div\n  class="form-radio radio"\n  ref="radioGroup"\n  role="'+(null==(t="selectboxes"===e.component.type?"group":"radiogroup")?"":t)+'"\n  aria-required="'+(null==(t=e.input.component.validate.required)?"":t)+'"\n  aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  ',e.component.description&&(n+='\n    aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+="\n>\n  ",e.values.forEach((function(r){for(var o in n+='\n  <div class="'+(null==(t=e.input.attr.type)?"":t)+" "+(null==(t=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?ps-0:"")?"":t)+" form-check"+(null==(t=e.inline?"-inline":"")?"":t)+'" ref="wrapper">\n    <label class="form-check-label label-position-'+(null==(t=e.component.optionsLabelPosition)?"":t)+'" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'">\n      ',"left"!==e.component.optionsLabelPosition&&"top"!==e.component.optionsLabelPosition||(n+="\n      <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n      "),n+="\n      <"+(null==(t=e.input.type)?"":t)+'\n        ref="input"\n        ',e.input.attr)n+="\n        "+(null==(t=o)?"":t)+'="'+(null==(t=e.input.attr[o])?"":t)+'"\n        ';n+='\n        value="'+(null==(t=r.value)?"":t)+'"\n        ',e.value&&(e.value===r.value||"object"==typeof e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value])&&(n+="\n          checked=true\n        "),n+="\n        ",r.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'"\n        role="'+(null==(t="selectboxes"===e.component.type?"checkbox":"radio")?"":t)+'"\n      >\n      ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(n+="\n      <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n      "),n+="\n    </label>\n  </div>\n  "})),n+="\n</div>\n"}},19594:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(12892))&&r.__esModule?r:{default:r}).default};t.default=o},81809:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n  ">\n  <caption class="visually-hidden">'+(null==(t=e.t(e.component.label))?"":t)+"</caption>\n  ",e.component.header&&e.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach((function(r){n+="\n      <th>"+(null==(t=e.t(r))?"":t)+"</th>\n      "})),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",e.tableComponents.forEach((function(r,o){n+='\n    <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n      ',r.forEach((function(r,i){n+='\n      <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=o)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=r)?"":t)+"</td>\n      "})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},28705:function(e,t,n){"use strict";var r;n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(81809))&&r.__esModule?r:{default:r}).default};t.default=o},75146:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(5508)),o=l(n(66248)),i=l(n(81575)),a=l(n(95295));function l(e){return e&&e.__esModule?e:{default:e}}var s={bootstrap:r.default,bootstrap3:i.default.templates.bootstrap3,bootstrap5:o.default,semantic:a.default.templates.semantic};t.default=s},6701:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",saveDraftError:"Unable to save draft.",restoreDraftError:"Unable to restore draft.",time:"Invalid time",cancelButtonAriaLabel:"Cancel button. Click to reset the form",previousButtonAriaLabel:"Previous button. Click to go back to the previous tab",nextButtonAriaLabel:"Next button. Click to go to the next tab",submitButtonAriaLabel:"Submit Form button. Click to submit the form",reCaptchaTokenValidationError:"ReCAPTCHA: Token validation error",reCaptchaTokenNotSpecifiedError:"ReCAPTCHA: Token is not specified in submission"}},62604:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),t.ZP=void 0,n(92222),n(24812),n(32564),n(74916),n(68304),n(30489);var o,i=(o=n(57062))&&o.__esModule?o:{default:o};function a(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}i.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return!!e&&e.text}var t=this.config,n=t.placeholder,r=t.placeholderValue,o=this.passedElement.element.dataset;if(n){if(r)return r;if(o.placeholder)return o.placeholder}return!1};var y=46,v=8,b=9,g=13,w=65,k=27,O=38,_=40,S=33,P=34,j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,o,i=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(o){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function u(){var e;l(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n)))._onTabKey=e._onTabKey.bind(h(e)),e.isDirectionUsing=!1,e.shouldOpenDropDown=!0,e}return t=u,n=[{key:"_onTouchEnd",value:function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&(this.input.focus(),this.showDropdown())),e.stopPropagation()),this._wasTap=!0}},{key:"_handleButtonAction",value:function(e,t){if(!this._isSelectOneElement)return c(m(u.prototype),"_handleButtonAction",this).call(this,e,t);e&&t&&this.config.removeItems&&this.config.removeItemButton&&c(m(u.prototype),"_handleButtonAction",this).call(this,e,t)}},{key:"_onEnterKey",value:function(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),c(m(u.prototype),"_onEnterKey",this).call(this,e)}},{key:"_onDirectionKey",value:function(){for(var e,t,n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(!this._isSelectOneElement)return(t=c(m(u.prototype),"_onDirectionKey",this)).call.apply(t,[this].concat(o));this.isDirectionUsing=!0,(e=c(m(u.prototype),"_onDirectionKey",this)).call.apply(e,[this].concat(o)),this.onSelectValue.apply(this,o),clearTimeout(this.timeout),this.timeout=setTimeout((function(){n.isDirectionUsing=!1}),250)}},{key:"_onTabKey",value:function(e){var t=e.activeItems;e.hasActiveDropdown&&this._selectHighlightedChoice(t)}},{key:"_selectHighlightedChoice",value:function(e){var t=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));t&&this._handleChoiceAction(e,t),event.preventDefault()}},{key:"_onKeyDown",value:function(e){var t;if(!this._isSelectOneElement)return c(m(u.prototype),"_onKeyDown",this).call(this,e);var n=e.target,r=e.keyCode,o=e.ctrlKey,i=e.metaKey;if(n===this.input.element||this.containerOuter.element.contains(n)){var l=this._store.activeItems,s=this.input.isFocussed,f=this.dropdown.isActive,d=this.itemList.hasChildren,p=String.fromCharCode(r),h=y,j=v,x=b,E=g,C=w,A=k,T=O,M=_,R=S,D=P,I=o||i;if(!f&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(p)){var L=this.input.element.value;this.input.element.value=L?"".concat(L).concat(p):p,this.showDropdown()}var V=(a(t={},C,this._onAKey),a(t,x,this._onTabKey),a(t,E,this._onEnterKey),a(t,A,this._onEscapeKey),a(t,T,this._onDirectionKey),a(t,R,this._onDirectionKey),a(t,M,this._onDirectionKey),a(t,D,this._onDirectionKey),a(t,j,this._onDeleteKey),a(t,h,this._onDeleteKey),t);V[r]&&V[r]({event:e,target:n,keyCode:r,metaKey:i,activeItems:l,hasFocusedInput:s,hasActiveDropdown:f,hasItems:d,hasCtrlDownKeyPressed:I})}}},{key:"onSelectValue",value:function(e){var t=e.event,n=e.activeItems;e.hasActiveDropdown?this._selectHighlightedChoice(n):this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())}},{key:"showDropdown",value:function(){var e;if(this.shouldOpenDropDown){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=c(m(u.prototype),"showDropdown",this)).call.apply(e,[this].concat(n))}else this.shouldOpenDropDown=!0}},{key:"hideDropdown",value:function(){var e;if(!this.isDirectionUsing){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=c(m(u.prototype),"hideDropdown",this)).call.apply(e,[this].concat(n))}}},{key:"_onBlur",value:function(){var e;if(!this._isScrollingOnIe){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=c(m(u.prototype),"_onBlur",this)).call.apply(e,[this].concat(n))}}}],n&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.default),x=j;t.ZP=x},193:function(e,t,n){"use strict";n(91038),n(47042),n(68309),n(68304),n(24812),n(12419),n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(66992),n(41539),n(33948),n(92222),n(74916),n(15306),n(21249),n(73210),n(57327),n(79753),n(89554),n(54747),n(47941),n(82526),n(41817),n(32165),n(78783);var r=i(n(96486)),o=i(n(69887));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return a=l()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o},a.apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var d={noeval:!1,protectedEval:!1,cache:{},templateSettings:{evaluate:/\{%([\s\S]+?)%\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},evaluator:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return d.noeval?(console.warn("No evaluations allowed for this renderer."),r.default.noop):("object"===f(n[0])&&(n=r.default.keys(n[0])),a(Function,u(n).concat([e])))},template:function(e,t){if(t=t||(0,o.default)(e),d.cache[t])return d.cache[t];try{return e=e.replace(/ctx\./g,""),d.cache[t]=r.default.template(e,d.templateSettings)}catch(t){console.warn("Error while processing template",t,e)}},interpolate:function(e,t,n){var o,i=r.default.isObject(n)?n:{noeval:n};if("function"==typeof e)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}if(e=String(e),d.noeval||i.noeval)return e.replace(/({{\s*(.*?)\s*}})/g,(function(e,n,o){for(var a=o.split("||").map((function(e){return e.trim()})),l="",s="",u=0;u<a.length&&(s=a[u],!(l=r.default.get(t,s)));u++);return i.data&&r.default.set(i.data,s,l),l}));if("function"==typeof(o=d.template(e)))try{return t.component&&t.component.filter===e&&!t.options.building&&(t.data=r.default.mapValues(t.data,(function(e){return r.default.isString(e)?encodeURIComponent(e):e}))),o(t)}catch(n){return console.warn("Error interpolating template",n,e,t),n.message}return o},evaluate:function(e,t){return Array.isArray(t)?e.apply(void 0,u(t)):e(t)},registerEvaluator:function(e){Object.keys(e).forEach((function(t){d[t]=e[t]}))}},p=d;t.default=p},1848:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(26699),n(21249),n(66992),n(41539),n(33948),n(89554),n(54747),n(92222);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(82531),a={uniquify:function(e,t){var n=!1,r={};return(0,i.eachComponent)(e,(function(e){if(r[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0}),!0),(0,i.eachComponent)([t],(function(e){if(e.key){var t=(0,i.uniqueKey)(r,e.key);return t!==e.key&&(e.key=t,n=!0),r[t]=!0,!!(["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)||void 0}}),!0),n},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:function(){return o.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map((function(e){return String.fromCharCode(e)}))},getAdditionalShortcuts:function(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts:function(e,t){var n=[];return(0,i.eachComponent)(e,(function(e){e!==t&&(e.shortcut&&n.push(e.shortcut),e.values&&e.values.forEach((function(e){e.shortcut&&n.push(e.shortcut)})))}),!0),n},getAvailableShortcuts:function(e,t){return t?[""].concat(o.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(t.type)),this.getBindedShortcuts(e.components,t))).map((function(e){return{label:e,value:e}})):[]}};t.default=a},48946:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.CALENDAR_ERROR_MESSAGES=void 0,t.checkInvalidDate=function(e,t,n,i){var u=(0,r.default)(e,t,!0),c=u.isValid();if(!c){var f=e.match(/[^a-z0-9_]/gi),d=new RegExp(f.join("|"),"gi"),p=e.replace(/_*/gi,"").split(d),h=t[1]?t[1].split(d):t[0].split(d),m=o.default.findIndex(h,(function(e,t){return 1===e.length&&t===h.length-1}));if(p[o.default.findIndex(h,(function(e){return e.match(/yyyy/gi)}))]/1e3<1)return l(a.INVALID,!1);if(p[0].length===h[0].length){var y=p.map((function(e,t){var n=e;return e||t!==m?e||(n="01"):n="AM",f[t]&&(n="".concat(n).concat(f[t])),n})),v=(0,r.default)(y.join(""),t,!0);if(v.isValid()){var b=s(v,t[0],i,n);return b.result?l(a.INCOMPLETE,!1):l(b.message,b.result)}return l(a.INVALID,!1)}return l(a.INVALID,!1)}if(c&&-1===e.indexOf("_")){var g=s(u,t[0],i,n);if(!g.result)return l(g.message,g.result)}return l("",!0)},t.lessOrGreater=s,n(74916),n(4723),n(24603),n(39714),n(69600),n(23123),n(15306),n(34553),n(21249),n(92222),n(82772);var r=i(n(30381)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a={INVALID:"You entered the Invalid Date",INCOMPLETE:"You entered an incomplete date.",greater:function(e,t){return"The entered date is greater than ".concat(e.format(t))},less:function(e,t){return"The entered date is less than ".concat(e.format(t))}};function l(e,t){return{message:e,result:t}}function s(e,t,n,o){var i="",l=!0;if(n&&e.isValid()){var s=(0,r.default)(n,t);e>s&&(i=a.greater(s,t),l=!1)}if(o&&e.isValid()){var u=(0,r.default)(o,t);e<u&&(i=a.less(u,t),l=!1)}return{message:i,result:l}}t.CALENDAR_ERROR_MESSAGES=a},70943:function(e,t,n){"use strict";n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(5212),n(41539),n(96649),n(96078),n(82526),n(41817),n(9653);var r,o=(r=n(96486))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,n=[{key:"execute",value:function(e){return!0}},{key:"getResult",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.value;return o.default.isArray(n)?o.default.some(n,(function(n){return e.execute(l(l({},t),{},{value:n}))})):this.execute(t)}}],r=[{key:"operatorKey",get:function(){return""}},{key:"displayedName",get:function(){return""}},{key:"requireValue",get:function(){return!0}}],n&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=f},93928:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(30381));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(u,e);var t,n,r,o,a,l=(o=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(o);if(a){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function u(){return c(this,u),l.apply(this,arguments)}return t=u,n=[{key:"getFormattedDates",value:function(e){var t=e.value,n=e.comparedValue,r=e.conditionTriggerComponent,o=r?r.getValidationFormat:null;return{date:o?(0,i.default)(t,r.getValidationFormat()):(0,i.default)(t),comparedDate:o?(0,i.default)(n,r.getValidationFormat()):(0,i.default)(n)}}},{key:"execute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"isAfter",n=e.value,r=e.instance,o=e.conditionComponentPath;if(!n)return!1;var i=null;if(r&&r.root&&(i=r.root.getComponent(o)),i&&i.isPartialDay&&i.isPartialDay(n))return!1;var a=this.getFormattedDates(s(s({},e),{},{conditionTriggerComponent:i})),l=a.date,u=a.comparedDate;return l[t](u)}}],r=[{key:"operatorKey",get:function(){return"dateGreaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}],n&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.default);t.default=y},39094:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"dateGreaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}],(n=[{key:"execute",value:function(e){return l(f(p.prototype),"execute",this).call(this,e,"isSameOrAfter")}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(93928))&&o.__esModule?o:{default:o}).default);t.default=d},39186:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"dateLessThan"}},{key:"displayedName",get:function(){return"Less Than"}}],(n=[{key:"execute",value:function(e){return l(f(p.prototype),"execute",this).call(this,e,"isBefore")}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(93928))&&o.__esModule?o:{default:o}).default);t.default=d},68667:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"dateLessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}],(n=[{key:"execute",value:function(e){return l(f(p.prototype),"execute",this).call(this,e,"isSameOrBefore")}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(93928))&&o.__esModule?o:{default:o}).default);t.default=d},62380:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(27852),n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"endsWith"}},{key:"displayedName",get:function(){return"Ends With"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue;return i.default.endsWith(t,n)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},70818:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"greaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue;return i.default.isNumber(t)&&t>n}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},77085:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"greaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue;return i.default.isNumber(t)&&(t>n||i.default.isEqual(t,n))}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},23723:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(26699),n(32023),n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"includes"}},{key:"displayedName",get:function(){return"Includes"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue;return i.default.includes(t,n)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},33435:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"isDateEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}],(n=[{key:"execute",value:function(e){return l(f(p.prototype),"execute",this).call(this,e,"isSame")}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(93928))&&o.__esModule?o:{default:o}).default);t.default=d},97807:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"isEmpty"}},{key:"displayedName",get:function(){return"Is Empty"}},{key:"requireValue",get:function(){return!1}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.instance,r=e.conditionComponentPath,o=i.default.isEmpty(t);if(n&&n.root){var a=n.root.getComponent(r);return a?a.isEmpty():o}return o}},{key:"getResult",value:function(e){return this.execute(e)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},66352:function(e,t,n){"use strict";n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(26541),n(41539),n(68304),n(24812),n(30489);var r=a(n(70943)),o=a(n(96486)),i=n(82531);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===l(o)?o:String(o)),r)}var o}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(m,e);var t,n,r,a,p,h=(a=m,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(a);if(p){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function m(){return s(this,m),h.apply(this,arguments)}return t=m,r=[{key:"operatorKey",get:function(){return"isEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue,r=e.instance,a=e.conditionComponentPath;if((t||!1===t)&&n&&l(t)!==l(n)&&o.default.isString(n))try{n=JSON.parse(n)}catch(e){}if(r&&r.root){var s,u=r.root.getComponent(a);if(u&&(0,i.isSelectResourceWithObjectValue)(u.component)&&null!==(s=u.component)&&void 0!==s&&s.template){if(!t||!o.default.isPlainObject(t))return!1;var c=u.component,f=c.template;return"data"===c.valueProperty&&(t={data:t},n={data:n}),o.default.every((0,i.getItemTemplateKeys)(f)||[],(function(e){return o.default.isEqual(o.default.get(t,e),o.default.get(n,e))}))}}return o.default.isObject(t)&&n&&o.default.isString(n)?t[n]:o.default.isEqual(t,n)}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.default);t.default=p},22311:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"isNotDateEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}],(n=[{key:"execute",value:function(e){return!l(f(p.prototype),"execute",this).call(this,e,"isSame")}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(93928))&&o.__esModule?o:{default:o}).default);t.default=d},81128:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"isNotEmpty"}},{key:"displayedName",get:function(){return"Is Not Empty"}}],(n=[{key:"getResult",value:function(e){return!l(f(p.prototype),"getResult",this).call(this,e)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(97807))&&o.__esModule?o:{default:o}).default);t.default=d},53097:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"isNotEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}],(n=[{key:"execute",value:function(e){return!l(f(p.prototype),"execute",this).call(this,e)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(66352))&&o.__esModule?o:{default:o}).default);t.default=d},59800:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"lessThan"}},{key:"displayedName",get:function(){return"Less Than"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue;return i.default.isNumber(t)&&t<n}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},10659:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"lessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue;return i.default.isNumber(t)&&(t<n||i.default.isEqual(t,n))}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},28836:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68304),n(24812),n(30489);var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return i(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"notIncludes"}},{key:"displayedName",get:function(){return"Not Includes"}}],(n=[{key:"execute",value:function(e){return!l(f(p.prototype),"execute",this).call(this,e)}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(((o=n(23723))&&o.__esModule?o:{default:o}).default);t.default=d},9751:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(23157),n(68304),n(24812),n(30489);var o=a(n(70943)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,o,a,d=(o=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return l(this,p),d.apply(this,arguments)}return t=p,r=[{key:"operatorKey",get:function(){return"startsWith"}},{key:"displayedName",get:function(){return"Starts With"}}],(n=[{key:"execute",value:function(e){var t=e.value,n=e.comparedValue;return i.default.startsWith(t,n)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default);t.default=d},61521:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r,o=O(n(53097)),i=O(n(97807)),a=O(n(81128)),l=O(n(59800)),s=O(n(70818)),u=O(n(66352)),c=O(n(93928)),f=O(n(39186)),d=O(n(23723)),p=O(n(9751)),h=O(n(28836)),m=O(n(62380)),y=O(n(39094)),v=O(n(68667)),b=O(n(10659)),g=O(n(77085)),w=O(n(33435)),k=O(n(22311));function O(e){return e&&e.__esModule?e:{default:e}}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=(S(r={},"".concat(o.default.operatorKey),o.default),S(r,"".concat(u.default.operatorKey),u.default),S(r,"".concat(i.default.operatorKey),i.default),S(r,"".concat(a.default.operatorKey),a.default),S(r,"".concat(l.default.operatorKey),l.default),S(r,"".concat(s.default.operatorKey),s.default),S(r,"".concat(c.default.operatorKey),c.default),S(r,"".concat(f.default.operatorKey),f.default),S(r,"".concat(d.default.operatorKey),d.default),S(r,"".concat(p.default.operatorKey),p.default),S(r,"".concat(m.default.operatorKey),m.default),S(r,"".concat(h.default.operatorKey),h.default),S(r,"".concat(y.default.operatorKey),y.default),S(r,"".concat(v.default.operatorKey),v.default),S(r,"".concat(b.default.operatorKey),b.default),S(r,"".concat(g.default.operatorKey),g.default),S(r,"".concat(w.default.operatorKey),w.default),S(r,"".concat(k.default.operatorKey),k.default),r);t.default=P},32725:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.applyFormChanges=function(e,t){var n=[];return t.forEach((function(t){var i=!1;switch(t.op){case"add":var a=t.component;k(e.components,t.container,null,(function(n){t.container||(n=e),k(e.components,t.key,null,(function(t,n){a=t,O(e.components,n)})),i=!0,(0,r.default)(n,t.path).splice(t.index,0,a)}));break;case"remove":k(e.components,t.key,null,(function(t,n){i=!0,(0,r.default)(e.components,n).key!==t.key&&n.pop(),O(e.components,n)}));break;case"edit":k(e.components,t.key,null,(function(a,l){i=!0;try{var s=(0,r.default)(e.components,l),u=(0,m.applyPatch)(a,t.patches).newDocument;s.key!==u.key&&l.pop(),(0,o.default)(e.components,l,u)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.eachComponent=b,t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.findComponent=k,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),w(e,t)},t.flattenComponents=function(e,t){var n={};return b(e,(function(e,t){n[t]=e}),t),n},t.formatAsCurrency=function(e){var t=_(e);if((0,u.default)(t))return"";var n=(0,d.default)(t,2).toString().split(".");return n[0]=(0,p.default)(Array.from(n[0]).reverse(),3).reverse().map((function(e){return e.reverse().join("")})).join(","),n[1]=(0,h.default)(n[1],2,"0"),n.join(".")},t.generateFormChange=function(e,t){var n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":(n={op:"edit",key:t.originalComponent.key,patches:(0,m.compare)(t.originalComponent,t.component)}).patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.getComponent=function(e,t,n){var r;return b(e,(function(e,n){if(n===t||e.path===t)return r=e,!0}),n),r},t.getStrings=function(e){var t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],n=[];return b(e.components,(function(e){if(t.forEach((function(t){e.hasOwnProperty(t)&&e[t]&&n.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach((function(t,r){n.push({key:e.key,property:"value[".concat(r,"].label"),string:e.values[r].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((function(t){n.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&n.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&n.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&n.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){var r=e.addAnother||"Add Another";e.addAnother&&n.push({key:e.key,property:"addAnother",string:r})}"select"===e.type&&["loading...","Type to search"].forEach((function(t){n.push({key:e.key,property:"select",string:t})}))}),!0),n},t.getValue=function(e,t){return function e(n){if((0,f.default)(n)){if((0,i.default)(n,t))return y.default.get(n,t);var r=null;return(0,l.default)(n,(function(t){var n=e(t);if(!(0,c.default)(n))return r=n,!1})),r}return null}(e.data)},t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||y.default.some(e.conditional.conditions||[],(function(e){return e.component&&e.operator}))||e.conditional.json||e.conditional.condition))},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=g,t.parseFloatExt=_,t.removeComponent=O,t.searchComponents=w,n(79753),n(89554),n(41539),n(54747),n(92222),n(82772),n(26699),n(47042),n(40561),n(5212),n(54678),n(74916),n(15306),n(83710),n(39714),n(69600),n(21249),n(65069),n(91038),n(78783),n(66992),n(33948);var r=v(n(27361)),o=v(n(36968)),i=v(n(18721)),a=v(n(66678)),l=v(n(2525)),s=v(n(47037)),u=v(n(7654)),c=v(n(14293)),f=v(n(68630)),d=v(n(59854)),p=v(n(8400)),h=v(n(45245)),m=n(34901),y=v(n(96486));function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n,r,o,i){if(e){if(r=r||"",i){if(e.noRecurse)return void delete e.noRecurse;e.noRecurse=!0}e.forEach((function(i){if(i){var l=i.columns&&Array.isArray(i.columns),s=i.rows&&Array.isArray(i.rows),u=i.components&&Array.isArray(i.components),c=!1,f=i.key?r?"".concat(r,".").concat(i.key):i.key:"";o&&(i.parent=(0,a.default)(o),delete i.parent.components,delete i.parent.componentMap,delete i.parent.columns,delete i.parent.rows);var d=l||s||u&&!i.input||["htmlelement","content"].indexOf(i.type)>-1;(n||i.tree||!d)&&(c=t(i,f,e));var p=function(){return i.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(i.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable","tagpad"].includes(i.type)||i.tree)?f:i.key&&"form"===i.type?"".concat(f,".data"):r};c||(l?i.columns.forEach((function(e){return b(e.components,t,n,p(),o?i:null)}),!0):s?i.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return b(e.components,t,n,p(),o?i:null)}),!0)})):u&&b(i.components,t,n,p(),o?i:null,!0))}})),e.noRecurse&&delete e.noRecurse}}function g(e,t){if((0,s.default)(t))return e.key===t||e.path===t;var n=!1;return(0,l.default)(t,(function(t,o){if(!(n=(0,r.default)(e,o)===t))return!1})),n}function w(e,t){var n=[];return b(e,(function(e){g(e,t)&&n.push(e)}),!0),n}function k(e,t,n,r){if(e){if(n=n||[],!t)return r(e);e.forEach((function(o,i){var a=n.slice();a.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(a.push("columns"),o.columns.forEach((function(e,n){var o=a.slice();o.push(n),o.push("components"),k(e.components,t,o,r)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(a.push("rows"),o.rows.forEach((function(e,n){var o=a.slice();o.push(n),e.forEach((function(e,n){var i=o.slice();i.push(n),i.push("components"),k(e.components,t,i,r)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(a.push("components"),k(o.components,t,a,r)),o.key===t&&r(o,a,e))}))}}function O(e,t){var n=t.pop();0!==t.length&&(e=(0,r.default)(e,t)),e.splice(n,1)}function _(e){return parseFloat((0,s.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}},55666:function(e,t,n){"use strict";n(4129),n(69070),n(38880),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(82526),n(41817),n(41539),n(32165),n(66992),n(78783),n(33948);var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}(n(82531));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}"object"===(void 0===n.g?"undefined":i(n.g))&&(n.g.FormioUtils=r);var a=r;t.default=a},52013:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.lodashOperators=void 0,t.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},82531:function(e,t,n){"use strict";n(82526),n(41817),n(32165),n(78783),n(91038),n(69070),Object.defineProperty(t,"__esModule",{value:!0});var r={evaluate:!0,getRandomComponentId:!0,getPropertyValue:!0,getElementRect:!0,boolValue:!0,isMongoId:!0,checkCalculated:!0,checkSimpleConditional:!0,getComponentActualValue:!0,checkCustomConditional:!0,checkJsonConditional:!0,checkCondition:!0,checkTrigger:!0,setActionProperty:!0,unescapeHTML:!0,convertStringToHTMLElement:!0,uniqueName:!0,guid:!0,getDateSetting:!0,isValidDate:!0,currentTimezone:!0,offsetDate:!0,zonesLoaded:!0,shouldLoadZones:!0,loadZones:!0,momentDate:!0,formatDate:!0,formatOffset:!0,getLocaleDateFormatInfo:!0,convertFormatToFlatpickr:!0,convertFormatToMoment:!0,convertFormatToMask:!0,getInputMask:!0,unmaskValue:!0,matchInputMask:!0,getNumberSeparators:!0,getNumberDecimalLimit:!0,getCurrencyAffixes:!0,fieldData:!0,delay:!0,iterateKey:!0,uniqueKey:!0,bootstrapVersion:!0,unfold:!0,firstNonNil:!0,withSwitch:!0,observeOverload:!0,getContextComponents:!0,getContextButtons:!0,translateHTMLTemplate:!0,sanitize:!0,fastCloneDeep:!0,interpolate:!0,isInputComponent:!0,getArrayFromComponentPath:!0,hasInvalidComponent:!0,getStringFromComponentPath:!0,round:!0,getIEBrowserVersion:!0,getBrowserInfo:!0,getComponentPathWithoutIndicies:!0,getComponentPath:!0,getDataParentComponent:!0,isPromise:!0,isInsideScopingComponent:!0,getFocusableElements:!0,componentValueTypes:!0,getComponentSavedTypes:!0,getItemTemplateKeys:!0,isSelectResourceWithObjectValue:!0,_:!0,jsonLogic:!0,moment:!0,Evaluator:!0,ConditionOperators:!0};Object.defineProperty(t,"ConditionOperators",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o.default}}),t.boolValue=function(e){return o.default.isBoolean(e)?e:o.default.isString(e)?"true"===e.toLowerCase():!!e},t.bootstrapVersion=function(e){return e.bootstrap?e.bootstrap:"function"==typeof $&&"function"==typeof $().collapse?parseInt($.fn.collapse.Constructor.VERSION.split(".")[0],10):0},t.checkCalculated=function(e,t,n){e.calculateValue&&o.default.set(n,e.key,w(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},t.checkCondition=function(e,t,n,r,i){var a=e.customConditional,l=e.conditional;return a?S(0,a,t,n,r,"show",!0,i):l&&(l.when||o.default.some(l.conditions||[],(function(e){return e.component&&e.operator})))?O(e,l,t=j(e,t,i),n,i):!l||!l.json||P(e,l.json,t,n,r,!0)},t.checkCustomConditional=S,t.checkJsonConditional=P,t.checkSimpleConditional=O,t.checkTrigger=function(e,t,n,r,o,i){if(!t[t.type])return!1;switch(t.type){case"simple":return n=j(e,n,i,t.simple),O(e,t.simple,n,r,i);case"javascript":return S(0,t.javascript,n,r,o,"result",!1,i);case"json":return P(e,t.json,n,r,o,!1)}return!1},t.componentValueTypes=void 0,t.convertFormatToFlatpickr=function(e){return e.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},t.convertFormatToMask=function(e){return e.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/[ydhmsHMG]/g,"9").replace(/a/g,"AA")},t.convertFormatToMoment=M,t.convertStringToHTMLElement=function(e,t){return(new window.DOMParser).parseFromString(e,"text/html").body.querySelector(t)},t.currentTimezone=E,t.delay=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=setTimeout.apply(void 0,[e,t].concat(r));function a(){clearTimeout(i)}function l(){return a(),e.apply(void 0,r)}return l.timer=i,l.cancel=a,l},t.evaluate=w,t.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},t.fieldData=function(e,t){if(!e)return"";if(!t||!t.key)return e;if(t.key.includes(".")){for(var n=e,r=t.key.split("."),o="",i=0;i<r.length;i++){if(o=r[i],n.hasOwnProperty("_id")&&(n=n.data),!n.hasOwnProperty(o))return;o===r[r.length-1]&&t.multiple&&!Array.isArray(n[o])&&(n[o]=[n[o]]),n=n[o]}return n}return t.multiple&&!Array.isArray(e[t.key])&&(e[t.key]=[e[t.key]]),"checkbox"===t.type&&"radio"===t.inputType?e[t.name]===t.value:e[t.key]},t.firstNonNil=void 0,t.formatDate=function(e,t,n,r,o){var i=(0,l.default)(t,o||void 0);if(r===E())return n.match(/\s(z$|z\s)/)?(T(e),l.default.zonesLoaded?i.tz(r).format(M(n)):i.format(M(n.replace(/\s(z$|z\s)/,"")))):i.format(M(n));if("UTC"===r){var a=C(i.toDate(),"UTC");return"".concat((0,l.default)(a.date).format(M(n))," UTC")}return T(e),l.default.zonesLoaded&&r?i.tz(r).format("".concat(M(n)," z")):i.format(M(n))},t.formatOffset=function(e,t,n,r,o){if(o===E())return t(n,r);if("UTC"===o)return"".concat(t(C(n,"UTC").date,r)," UTC");if(T(e),l.default.zonesLoaded){var i=C(n,o);return"".concat(t(i.date,r)," ").concat(i.abbr)}return t(n,r)},t.getArrayFromComponentPath=function(e){return e&&o.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map((function(e){return o.default.defaultTo(o.default.toNumber(e),e)})):o.default.isArray(e)?e:[e]},t.getBrowserInfo=F,t.getComponentActualValue=_,t.getComponentPath=B,t.getComponentPathWithoutIndicies=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\[\d+\]/,"")},t.getComponentSavedTypes=function(e){var t=e||{};return!0!==t.persistent?[]:t.multiple?[z.array]:null},t.getContextButtons=function(e){var t=[];return e.utils.eachComponent(e.instance.options.editForm.components,(function(e){"button"===e.type&&t.push({label:"".concat(e.key," (").concat(e.label,")"),value:e.key})})),t},t.getContextComponents=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=[];return e.utils.eachComponent(e.instance.options.editForm.components,(function(i,a){var l=!t||!i.tree;i.key!==e.data.key&&l&&!o.default.includes(n,i.type)&&r.push({label:"".concat(i.label||i.key," (").concat(a,")"),value:a})})),r},t.getCurrencyAffixes=function(e){var t=e.currency,n=void 0===t?"USD":t,r=e.decimalLimit,o=e.decimalSeparator,i=e.lang,a="(.*)?".concat(100..toLocaleString(i));r&&(a+="".concat("."===o?"\\.":o).concat((0).toLocaleString(i),"{").concat(r,"}")),a+="(.*)?";var l=100..toLocaleString(i,{style:"currency",currency:n,useGrouping:!0,maximumFractionDigits:r||0,minimumFractionDigits:r||0}).replace(".",o).match(new RegExp(a));return{prefix:(null==l?void 0:l[1])||"",suffix:(null==l?void 0:l[2])||""}},t.getDataParentComponent=U,t.getDateSetting=function(e){if(o.default.isNil(e)||o.default.isNaN(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;var t="string"!=typeof e||-1===e.indexOf("moment(")?(0,l.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{var n=p.default.evaluator("return ".concat(e,";"),"moment")(l.default);"string"==typeof n?t=(0,l.default)(n):"function"==typeof n.toDate?t=(0,l.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,l.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.getElementRect=function(e){var t=window.getComputedStyle(e,null);return{x:k(t,"left"),y:k(t,"top"),width:k(t,"width"),height:k(t,"height")}},t.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n    textarea:not([disabled]), button:not([disabled]), [href]")},t.getIEBrowserVersion=function(){var e=F(),t=e.ie,n=e.version;return t?n:null},t.getInputMask=function(e,t){if(e instanceof Array)return e;var n=[];n.numeric=!0;for(var r=0;r<e.length;r++)switch(e[r]){case"9":n.push(/\d/);break;case"A":n.numeric=!1,n.push(/[a-zA-Z]/);break;case"a":n.numeric=!1,n.push(/[a-z]/);break;case"*":n.numeric=!1,n.push(/[a-zA-Z0-9]/);break;case t:n.numeric=!1,n.push(" ");break;default:n.numeric=!1,n.push(e[r])}return n},t.getItemTemplateKeys=function(e){var t=[];if(!e)return t;var n=e.match(/({{\s*(.*?)\s*}})/g);return n&&n.forEach((function(e){var n=e.match(/{{\s*item\.(.*?)\s*}}/);n&&n.length>1&&t.push(n[1])})),t},t.getLocaleDateFormatInfo=function(e){var t={},n=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=n.slice(0,2)===21..toString(),t},t.getNumberDecimalLimit=function(e,t){if(o.default.has(e,"decimalLimit"))return o.default.get(e,"decimalLimit");var n=t||20,r=o.default.get(e,"validate.step","any");if("any"!==r){var i=r.toString().split(".");i.length>1&&(n=i[1].length)}return n},t.getNumberSeparators=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=12345.6789.toLocaleString(e),n=t.match(/..(.)...(.)../);return n?{delimiter:n.length>1?n[1]:",",decimalSeparator:n.length>2?n[2]:"."}:{delimiter:",",decimalSeparator:"."}},t.getPropertyValue=k,t.getRandomComponentId=function(){return"e".concat(Math.random().toString(36).substring(7))},t.getStringFromComponentPath=function(e){if(!o.default.isArray(e))return e;var t="";return e.forEach((function(e,n){o.default.isNumber(e)?t+="[".concat(e,"]"):t+=0===n?e:".".concat(e)})),t},t.guid=x,t.hasInvalidComponent=function e(t){return t.getComponents().some((function(t){return o.default.isArray(t.components)?e(t):t.error}))},t.interpolate=void 0,t.isInputComponent=function(e){if(!1===e.input||!0===e.input)return e.input;switch(e.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},t.isInsideScopingComponent=function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!n&&null!=t&&t.hasScopedChildren)return!0;var r=U(t);return!(null==r||!r.hasScopedChildren)||!(null==r||!r.parent)&&e(r.parent,!1)},t.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},t.isSelectResourceWithObjectValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reference,n=e.dataSrc,r=e.valueProperty;return t||"resource"===n&&(!r||"data"===r)},t.isValidDate=function(e){return o.default.isDate(e)&&!o.default.isNaN(e.getDate())},t.iterateKey=R,Object.defineProperty(t,"jsonLogic",{enumerable:!0,get:function(){return a.default}}),t.loadZones=T,t.matchInputMask=function(e,t){if(!t)return!0;if(e.length>t.length)return!1;for(var n=0;n<t.length;n++){var r=e[n]||"",i=t[n];if(!(o.default.isRegExp(i)&&i.test(r)||i===r))return!1}return!0},Object.defineProperty(t,"moment",{enumerable:!0,get:function(){return l.default}}),t.momentDate=function(e,t,n){var r=(0,l.default)(e);return n?("UTC"===n&&(n="Etc/UTC"),(n!==E()||t&&t.match(/\s(z$|z\s)/))&&l.default.zonesLoaded?r.tz(n):r):r},t.observeOverload=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?50:n,o=t.delay,i=void 0===o?500:o,a=0,l=0,s=function(){return a=0};return function(){if(0!==l&&(clearTimeout(l),l=0),l=setTimeout(s,i),(a+=1)>=r)return clearTimeout(l),s(),e()}},t.offsetDate=C,t.round=function(e,t){return o.default.isNumber(e)?e.toFixed(t):e},t.sanitize=function(e,t){if("function"!=typeof f.default.sanitize)return e;var n={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};if(t.sanitizeConfig&&t.sanitizeConfig.useProfiles&&Object.keys(t.sanitizeConfig.useProfiles).forEach((function(e){n.USE_PROFILES[e]=t.sanitizeConfig.useProfiles[e]})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((function(e){n.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(n.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(n.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(n.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex){var r=t.sanitizeConfig.allowedUriRegex;n.ALLOWED_URI_REGEXP=o.default.isString(r)?new RegExp(r):r}return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(n.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),f.default.sanitize(e,n)},t.setActionProperty=function(e,t,n,r,i,a){var l=t.property.value;switch(t.property.type){case"boolean":var s=o.default.get(e,l,!1).toString(),u=t.state.toString();s!==u&&o.default.set(e,l,"true"===u);break;case"string":var c={data:i,row:r,component:e,result:n},f=t.property.component?t[t.property.component]:t.text,d=o.default.get(e,l,""),h=a&&a.interpolate?a.interpolate(f,c):p.default.interpolate(f,c);h!==d&&o.default.set(e,l,h)}return e},t.shouldLoadZones=A,t.translateHTMLTemplate=function(e,t){if(!/<[^>]*>/.test(e))return t(e);var n=document.createElement("div");return n.innerHTML=e,n.innerText&&n.children.length?(N(n,t),n.innerHTML):e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.unfold=D,t.uniqueKey=function(e,t){for(var n=t;e.hasOwnProperty(n);)n=R(n);return n},t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t="".concat(t,"-{{guid}}"));var r=e.split("."),i=r.slice(0,r.length-1).join("."),a=r.length>1?".".concat(o.default.last(r)):"";return i=i.substr(0,100),n=Object.assign(n||{},{fileName:i,guid:x()}),"".concat(p.default.interpolate(t,n)).concat(a).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.unmaskValue=function(e,t,n){if(!t||!e||e.length>t.length)return e;for(var r=e.split(""),i=0;i<t.length;i++){var a=e[i]||"",l=t[i];o.default.isRegExp(l)||a!==l||(r[i]="")}return r.join("").replace(n,"")},t.withSwitch=function(e,t){var n=e,r=t;return[function(){return n},function(){var e=n;n=r,r=e}]},t.zonesLoaded=function(){return l.default.zonesLoaded},n(89554),n(41539),n(54747),n(28733),n(74916),n(15306),n(82772),n(66992),n(33948),n(83710),n(39714),n(54678),n(4723),n(79753),n(26699),n(32023),n(21249),n(5212),n(26541),n(92222),n(23157),n(69600),n(47042),n(19601),n(68309),n(24603),n(32564),n(9653),n(91058),n(69826),n(73210),n(47941),n(56977);var o=m(n(96486)),i=m(n(87559)),a=m(n(40962)),l=m(n(85177)),s=m(n(55586)),u=n(52013),c=m(n(91459)),f=m(n(27856)),d=n(32725);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=m(n(193)),h=m(n(61521));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}var b=p.default.interpolate;t.interpolate=b;var g=(0,i.default)({Promise:c.default}).fetch;function w(e,t,n,r){var i=null,l=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=o.default.get(t.instance,"root._form",{}));var s=l.key;if("string"==typeof e){n&&(e+=";return ".concat(n)),r&&(e=e.replace(/({{\s+(.*)\s+}})/,(function(e,n,r){return 0===r.indexOf("data.")?o.default.get(t.data,r.replace("data.","")):0===r.indexOf("row.")?o.default.get(t.row,r.replace("row.","")):o.default.get(t.data,r)})));try{e=p.default.evaluator(e,t),t=o.default.values(t)}catch(t){console.warn("An error occured within the custom function for ".concat(s),t),i=null,e=!1}}if("function"==typeof e)try{i=p.default.evaluate(e,t)}catch(e){i=null,console.warn("An error occured within custom function for ".concat(s),e)}else if("object"===v(e))try{i=a.default.apply(e,t)}catch(e){i=null,console.warn("An error occured within custom function for ".concat(s),e)}else e&&console.warn("Unknown function type for ".concat(s));return i}function k(e,t){var n=e.getPropertyValue(t);return n=n?n.replace(/[^0-9.]/g,""):"0",parseFloat(n)}function O(e,t,n,r,i){if(t.when){var a=_(t.when,r,n),l=String(t.eq),s=String(t.show);return o.default.isObject(a)&&o.default.has(a,t.eq)?String(a[t.eq])===s:Array.isArray(a)&&a.map(String).includes(l)?"true"===s:String(a)===l==("true"===s)}var u=t.conditions,c=void 0===u?[]:u,f=t.conjunction,d=void 0===f?"all":f,p=t.show,m=void 0===p||p;if(!c.length)return!0;var y=o.default.map(c,(function(t){var o=t.value,a=t.operator,l=t.component;if(!l)return!0;var s=_(l,r,n),u=h.default[a];return!u||(new u).getResult({value:s,comparedValue:o,instance:i,component:e,conditionComponentPath:l})})),v=!1;return v="any"===d?o.default.some(y,(function(e){return!!e})):o.default.every(y,(function(e){return!!e})),m?v:!v}function _(e,t,n){var r=null;return n&&(r=(0,d.getValue)({data:n},e)),t&&o.default.isNil(r)&&(r=(0,d.getValue)({data:t},e)),(o.default.isNil(r)||o.default.isObject(r)&&o.default.isEmpty(r))&&(r=""),r}function S(e,t,n,r,o,i,a,l){"string"==typeof t&&(t="var ".concat(i," = true; ").concat(t,"; return ").concat(i,";"));var s=l&&l.evaluate?l.evaluate(t,{row:n,data:r,form:o}):w(t,{row:n,data:r,form:o});return null===s?a:s}function P(e,t,n,r,i,l){try{return a.default.apply(t,{data:r,row:n,form:i,_:o.default})}catch(t){return console.warn("An error occurred in jsonLogic advanced condition for ".concat(e.key),t),l}}function j(e,t,n,r){var i,a=r||e.conditional;n||function(e){e.path=B(e);var t=U(e);t&&"object"===v(t)&&(t.path=B(t))}(n=o.default.cloneDeep(e));var l=U(n),s=l?B(l):null,u=a.when||!a.conditions?null===(i=a.when)||void 0===i?void 0:i.startsWith(s):o.default.some(a.conditions,(function(e){return e.component.startsWith(s)}));if(l&&u){var c={};o.default.set(c,s,t),t=c}return t}function x(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function E(){return l.default.currentTimezone||(l.default.currentTimezone=s.default.determine().name()),l.default.currentTimezone}function C(e,t){if("UTC"===t)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};var n=(0,l.default)(e).tz(t);return{date:new Date(e.getTime()+6e4*(n.utcOffset()+e.getTimezoneOffset())),abbr:n.format("z")}}function A(e){return e!==E()&&"UTC"!==e}function T(e,t){return t&&!A(t)?new c.default(o.default.noop):l.default.zonesPromise?l.default.zonesPromise:l.default.zonesPromise=g(e).then((function(e){return e.json().then((function(e){if(l.default.tz.load(e),l.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var t=document.createEvent("Event");t.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(t)}}))}))}function M(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function R(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,(function(e){return Number(e)+1})):"".concat(e,"1")}function D(e){return"function"==typeof e?e():e}u.lodashOperators.forEach((function(e){return a.default.add_operation("_".concat(e),o.default[e])})),a.default.add_operation("getDate",(function(e){return(0,l.default)(e).toISOString()})),a.default.add_operation("relativeMinDate",(function(e){return(0,l.default)().subtract(e,"days").toISOString()})),a.default.add_operation("relativeMaxDate",(function(e){return(0,l.default)().add(e,"days").toISOString()}));var I=o.default.flow([o.default.partialRight(o.default.map,D),o.default.partialRight(o.default.find,(function(e){return!o.default.isUndefined(e)}))]);t.firstNonNil=I;var L=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function V(e,t){if(!e.innerText)return e.innerHTML;var n=e.innerText.replace(p.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),r=t(n);if(n!==r){var o=e.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);if(o&&o.length){if(1===o.length&&o[0].length===e.innerHTML.length)return e.innerHTML.replace(n,r);var i=o.map((function(e){var n=document.createElement("a");return n.innerHTML=e,V(n,t)}));return"".concat(r," (").concat(i.join(", "),")")}return e.innerText.replace(n,r)}return e.innerHTML}function N(e,t){var n,r=e.children.length&&(function(e){if(Array.isArray(e))return y(e)}(n=e.children)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r&&r.every((function(e){return 0===e.children.length&&L.some((function(t){return e.nodeName===t}))}));!r||o?e.innerHTML=V(e,t):r.forEach((function(e){return N(e,t)}))}function F(){var e={};if("undefined"==typeof window)return e;var t=window.navigator.userAgent.toLowerCase(),n=/(edge|edg)\/([\w.]+)/.exec(t)||/(opr)[/]([\w.]+)/.exec(t)||/(yabrowser)[ /]([\w.]+)/.exec(t)||/(chrome)[ /]([\w.]+)/.exec(t)||/(iemobile)[/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],r={browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0"};return r.browser&&(e[r.browser]=!0,e.version=parseInt(r.version,10)),(e.chrome||e.opr||e.safari||e.edg||e.yabrowser)&&(e.isWebkit=!0),(e.rv||e.iemobile)&&(e.ie=!0),e.edg&&(e.edge=!0),e.opr&&(e.opera=!0),e}function B(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&e.key&&"wizard"!==(null==e||null===(t=e._form)||void 0===t?void 0:t.display)?(n=e.isInputComponent||!0===e.input?"".concat(e.key).concat(n?".":"").concat(n):n,B(e.parent,n)):n}function U(e){if(e){var t=e.parent;return t&&(t.isInputComponent||t.input)?t:U(t)}}var z={number:"number",string:"string",boolean:"boolean",array:"array",object:"object",date:"date",any:"any"};t.componentValueTypes=z},24897:function(e,t,n){"use strict";n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r,o=(r=n(64753))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addRule",value:function(t,n){e.rules[t]=n}},{key:"addRules",value:function(t){e.rules=l(l({},e.rules),t)}},{key:"getRule",value:function(t){return e.rules[t]}},{key:"getRules",value:function(){return e.rules}}],null&&s(t.prototype,null),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=f,u(f,"rules",o.default)},6771:function(e,t,n){"use strict";n(69070),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ValidationChecker=void 0,n(5212),n(41539),n(74916),n(23123),n(85827),n(92222),n(24603),n(39714),n(83710),n(79753),n(57327),n(26699),n(32023),n(69600),n(21249),n(54678),n(44048),n(9653),n(47941),n(91058),n(73210),n(4723),n(15306),n(89554),n(54747),n(26833),n(96649),n(96078),n(82526),n(41817);var r=f(n(96486)),o=n(82531),i=f(n(30381)),a=f(n(91459)),l=f(n(25382)),s=f(n(87559)),u=n(48946),c=f(n(24897));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===d(o)?o:String(o)),r)}var o}var g=(0,s.default)({Promise:a.default}),w=g.fetch,k=g.Headers,O=g.Request,_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this,e),this.config=r.default.defaults(t,e.config),this.validators={required:{key:"validate.required",method:"validateRequired",hasLabel:!0,message:function(e){return e.t(e.errorMessage("required"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!(0,o.boolValue)(t)||e.isValueHidden())return!0;var r=e.validators.some((function(e){return"calendar"===e}));return!n&&r&&e.widget.enteredDate?!this.validators.calendar.check.call(this,e,t,n):!e.isEmpty(n)}},onlyAvailableItems:{key:"validate.onlyAvailableItems",method:"validateValueAvailability",hasLabel:!0,message:function(e){return e.t(e.errorMessage("valueIsNotAvailable"),{field:e.errorLabel,data:e.data})},check:function(e,t){return!(0,o.boolValue)(t)}},unique:{key:"validate.unique",hasLabel:!0,message:function(e){return e.t(e.errorMessage("unique"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){var i=this;return!(0,o.boolValue)(t)||!!(!n||r.default.isObjectLike(n)&&r.default.isEmpty(n))||!this.config.db||new a.default((function(t){var a,l=i.config.form,s=i.config.submission,u="data.".concat(e.path),c=function(e,t,n){var o=n.split(/\[\d+\]?./),i=n;if(o.length>1){i=o.shift();var a={};r.default.reduce(o,(function(t,n,i){var l=i===o.length-1,s=r.default.get(a,t,a),u="$elemMatch['".concat(n,"']");return r.default.set(s,u,l?e:{}),t?"".concat(t,".").concat(u):u}),""),t[i]=a}else t[i]=e},f={form:l._id},d={};r.default.isString(n)?e.component.dbIndex?c(n,f,u):"email"===e.component.type||"textfield"===e.component.type&&"[A-Za-z0-9]+"===(null===(a=e.component.validate)||void 0===a?void 0:a.pattern)?(c(n,f,u),d={collation:{locale:"en",strength:2}}):c({$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(n),"$")),$options:"i"},f,u):r.default.isPlainObject(n)&&n.address&&n.address.address_components&&n.address.place_id?c({$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(n.address.place_id),"$")),$options:"i"},f,"".concat(u,".address.place_id")):r.default.isArray(n)?c({$all:n},f,u):(r.default.isObject(n)||r.default.isNumber(n))&&c({$eq:n},f,u),f.deleted={$eq:null},f.state="submitted";var p=function(n,r){return n?t(!1):r?s._id&&r._id.toString()===s._id?void t(!0):(e.conflictId=r._id.toString(),t(!1)):t(!0)};i.config.db.findOne(f,null,d,(function(e,t){if(!e||!d.collation)return p(e,t);delete f[u],c({$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(n),"$")),$options:"i"},f,u),i.config.db.findOne(f,p)}))})).catch((function(){return!1}))}},multiple:{key:"validate.multiple",hasLabel:!0,message:function(e){var t=(0,o.boolValue)(e.component.multiple)||Array.isArray(e.emptyValue),n=e.component.validate.required,r=t?n?"array_nonempty":"array":"nonarray";return e.t(e.errorMessage(r),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!e.validateMultiple())return!0;var i=(0,o.boolValue)(t),a=Array.isArray(e.emptyValue),l=Array.isArray(n),s=e.component.validate.required;return i?l?!s||!!n.length:!!r.default.isNil(n)&&!s:a||!l}},select:{key:"validate.select",hasLabel:!0,message:function(e){return e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data})},check:function(e,t,n,i,a,l,s){if(!(0,o.boolValue)(t))return!0;if(!n||r.default.isEmpty(n))return!0;if(!s)return!0;var u=e.component,c={url:t,method:"GET",qs:{},json:!0,headers:{}};if(r.default.isBoolean(c.url)){if(c.url=!!c.url,!c.url||"url"!==u.dataSrc||!u.data.url||!u.searchField)return!0;c.url=u.data.url,c.qs[u.searchField]=n,u.filter&&(c.url+=(c.url.includes("?")?"&":"?")+u.filter),u.selectFields&&(c.qs.select=u.selectFields)}return!c.url||(c.url=(0,o.interpolate)(c.url,{data:e.data}),c.url+=(c.url.includes("?")?"&":"?")+r.default.chain(c.qs).map((function(e,t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&").value(),u.data&&u.data.headers&&r.default.each(u.data.headers,(function(e){e.key&&(c.headers[e.key]=e.value)})),u.authenticate&&this.config.token&&(c.headers["x-jwt-token"]=this.config.token),w(new O(c.url,{headers:new k(c.headers)})).then((function(e){return!!e.ok&&e.json()})).then((function(e){return e&&e.length})).catch((function(){return!1})))}},min:{key:"validate.min",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("min"),{field:e.errorLabel,min:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t),o=parseFloat(n);return!(!Number.isNaN(r)&&!Number.isNaN(o))||o>=r}},max:{key:"validate.max",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("max"),{field:e.errorLabel,max:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t),o=parseFloat(n);return!(!Number.isNaN(r)&&!Number.isNaN(o))||o<=r}},minSelectedCount:{key:"validate.minSelectedCount",message:function(e,t){return e.component.minSelectedCountMessage?e.component.minSelectedCountMessage:e.t(e.errorMessage("minSelectedCount"),{minCount:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t);if(!r)return!0;var o=Object.keys(n).reduce((function(e,t){return n[t]&&e++,e}),0);return!o||o>=r}},maxSelectedCount:{key:"validate.maxSelectedCount",message:function(e,t){return e.component.maxSelectedCountMessage?e.component.maxSelectedCountMessage:e.t(e.errorMessage("maxSelectedCount"),{minCount:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t);return!r||Object.keys(n).reduce((function(e,t){return n[t]&&e++,e}),0)<=r}},minLength:{key:"validate.minLength",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minLength"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!(n&&r&&"string"==typeof n&&!e.isEmpty(n))||n.length>=r}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxLength"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!r||"string"!=typeof n||n.length<=r}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxWords"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!r||"string"!=typeof n||n.trim().split(/\s+/).length<=r}},minWords:{key:"validate.minWords",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minWords"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!r||!n||"string"!=typeof n||n.trim().split(/\s+/).length>=r}},email:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_email"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}},url:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||/^(?:(?:(?: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.test(n)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}},date:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_date"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||"Invalid date"!==n&&"Invalid Date"!==n&&("string"==typeof n&&(n=new Date(n)),n instanceof Date==1&&"Invalid Date"!==n.toString())}},day:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_day"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!n)return!0;var r=h(e.dayFirst?[0,1,2]:[1,0,2],3),o=r[0],i=r[1],a=r[2],l=n.split("/").map((function(e){return parseInt(e,10)})),s=l[o],u=l[i],c=l[a],f=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(u,c);return!(s<0||s>f||u<0||u>12||c<0||c>9999)}},pattern:{key:"validate.pattern",hasLabel:!0,message:function(e,t){return e.t(r.default.get(e,"component.validate.patternMessage",e.errorMessage("pattern")),{field:e.errorLabel,pattern:t,data:e.data})},check:function(e,t,n){return!!e.isEmpty(n)||(!t||new RegExp("^".concat(t,"$")).test(n))}},json:{key:"validate.json",check:function(e,t,n,r,o,i){if(!t)return!0;var a=e.evaluate(t,{data:r,row:i,rowIndex:o,input:n});return null===a||a}},mask:{key:"inputMask",hasLabel:!0,message:function(e){return e.t(e.errorMessage("mask"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){var r;if(e.isMultipleMasksField){var i=n?n.maskName:void 0,a=e.getMaskByName(i);a&&(r=a),n=n?n.value:n}else r=t;return n&&r&&"string"==typeof n&&"textfield"===e.type?l.default.isValid(n,r):(r=r?(0,o.getInputMask)(r):null,!(n&&r&&!e.skipMaskValidation)||(r=r.map((function(t){return t===e.placeholderChar?" ":t})),(0,o.matchInputMask)(n,r)))}},custom:{key:"validate.custom",message:function(e){return e.t(e.errorMessage("custom"),{field:e.errorLabel,data:e.data})},check:function(e,t,n,r,o,i){if(!t)return!0;var a=e.evaluate(t,{valid:!0,data:r,rowIndex:o,row:i,input:n},"valid",!0);return null===a||a}},maxDate:{key:"maxDate",hasLabel:!0,message:function(e,t){var n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("maxDate"),{field:e.errorLabel,maxDate:(0,i.default)(n).format(e.format)})},check:function(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;var a=e.getValidationFormat?(0,i.default)(n,e.getValidationFormat()):(0,i.default)(n),l=(0,o.getDateSetting)(t);return!!r.default.isNull(l)||(l.setHours(0,0,0,0),a.isBefore(l)||a.isSame(l))}},minDate:{key:"minDate",hasLabel:!0,message:function(e,t){var n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("minDate"),{field:e.errorLabel,minDate:(0,i.default)(n).format(e.format)})},check:function(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;var a=e.getValidationFormat?(0,i.default)(n,e.getValidationFormat()):(0,i.default)(n),l=(0,o.getDateSetting)(t);return!!r.default.isNull(l)||(l.setHours(0,0,0,0),a.isAfter(l)||a.isSame(l))}},minYear:{key:"minYear",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minYear"),{field:e.errorLabel,minYear:t})},check:function(e,t,n){var r=t,o=/\d{4}$/.exec(n);return o=o?o[0]:null,!+r||!+o||+o>=+r}},maxYear:{key:"maxYear",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxYear"),{field:e.errorLabel,maxYear:t})},check:function(e,t,n){var r=t,o=/\d{4}$/.exec(n);return o=o?o[0]:null,!+r||!+o||+o<=+r}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.calendar.messageText),{field:e.errorLabel,maxDate:(0,i.default)(e.dataValue).format(e.format)})},check:function(e,t,n,r,a){this.validators.calendar.messageText="";var l=e.getWidget(a);if(!l)return!0;var s=l.settings,c=l.enteredDate,f=s.minDate,d=s.maxDate,p=s.format,h=[(0,o.convertFormatToMoment)(p)];if(h[0].match(/M{3,}/g)&&h.push(h[0].replace(/M{3,}/g,"MM")),!n&&c){var m=(0,u.checkInvalidDate)(c,h,f,d),y=m.message,v=m.result;if(!v)return this.validators.calendar.messageText=y,v}return n&&c?(0,i.default)(n).format()!==(0,i.default)(c,h,!0).format()&&c.match(/_/gi)?(this.validators.calendar.messageText=u.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(l.enteredDate="",!0):void 0}},time:{key:"validate.time",messageText:"Invalid time",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.time.messageText),{field:e.errorLabel})},check:function(e,t,n){return!!e.isEmpty(n)||(0,i.default)(n,e.component.format).isValid()}},availableValueProperty:{key:"validate.availableValueProperty",method:"validateValueProperty",messageText:"Invalid Value Property",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.availableValueProperty.messageText),{field:e.errorLabel})},check:function(e,t,n){return"url"!==e.component.dataSrc||!r.default.isUndefined(n)&&!r.default.isObject(n)}}}}var t,n;return t=e,n=[{key:"checkValidator",value:function(e,t,n,r,o,i,l,s){var u,c=this;u=t.method&&"function"==typeof e[t.method]?e[t.method](n,r,o,i,l,s):t.check.call(this,e,n,r,o,i,l,s);var f=function(r){return"string"==typeof r?r:!r&&t.message?t.message.call(c,e,n,i,l):""};return s?a.default.resolve(u).then(f):f(u)}},{key:"validate",value:function(e,t,n,i,l,s,u,c,f){if(!c&&!r.default.get(e.component,"validateWhenHidden",!1))return!1;var d=this.validators[t],p=r.default.get(f||e.component,d.key,null),h=this.checkValidator(e,d,p,n,i,l,s,u),m=function(i){if(i){var a,s={message:(0,o.unescapeHTML)(r.default.get(i,"message",i)),level:"warning"===r.default.get(i,"level")?"warning":"error",path:(0,o.getArrayFromComponentPath)(e.path||""),context:{validator:t,hasLabel:d.hasLabel,setting:p,key:e.key,label:e.label,value:n,index:l,input:null===(a=e.refs.input)||void 0===a?void 0:a[l]}};return"unique"===t&&e.conflictId&&(s.conflictId=e.conflictId),s}return!1};return u?a.default.resolve(h).then(m):m(h)}},{key:"checkComponent",value:function(e,t,n){var o,i=this,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u="undefined"!=typeof process&&"node"===r.default.get(process,"release.name")&&!r.default.defaultTo(e.component.persistent,!0);if(u||!1===e.component.validate)return s?a.default.resolve([]):[];t=t||e.rootValue,n=n||e.data;var c=e.component.multiple&&Array.isArray(e.validationValue)?e.validationValue:[e.validationValue],f=e.conditionallyVisible(),d=[];null!=e&&null!==(o=e.addons)&&void 0!==o&&o.length&&c.forEach((function(t){e.addons.forEach((function(e){e.checkValidity(t)||d.push.apply(d,p(e.errors||[]))}))}));var h=r.default.get(e,"component.validations"),m=[];if(h&&Array.isArray(h)&&h.length){var y=r.default.chain(h).groupBy((function(e){return e.mode})).value();if(e.calculateCondition){l=!0;var v=r.default.chain(y.ui).filter("active").groupBy((function(e){return e.group||null})).value(),b=v.null||[];delete v.null,b.forEach((function(t){var n=t.condition,r=t.message,o=t.severity;e.calculateCondition(n)||m.push({level:o||"error",message:e.t(r),componentInstance:e})})),r.default.forEach(v,(function(t){r.default.forEach(t,(function(t){var n=t.condition,r=t.message,o=t.severity;if(!e.calculateCondition(n))return m.push({level:o||"error",message:e.t(r),componentInstance:e}),!1}))}))}else m=this.checkValidations(e,h,t,n,c,s);e.validators.includes("custom")&&y.js&&r.default.each(y.js,(function(o){m.push(r.default.map(c,(function(r,a){return i.validate(e,"custom",r,t,a,n,s,f,o)})))})),e.validators.includes("json")&&y.json&&r.default.each(y.json,(function(o){m.push(r.default.map(c,(function(r,a){return i.validate(e,"json",r,t,a,n,s,f,o)})))}))}var g=r.default.get(e,"component.validate.custom"),w=r.default.get(e,"component.validate.customMessage"),k=(0,r.default)(e.validators).chain().map((function(o){return i.validators.hasOwnProperty(o)?"required"!==o||c.length?r.default.map(c,(function(r,a){return i.validate(e,o,r,t,a,n,s,f)})):[i.validate(e,o,null,t,0,n,s,f)]:{message:'Validator for "'.concat(o,'" is not defined'),level:"warning",context:{validator:o,key:e.key,label:e.label}}})).flatten().value();e.component.validate=e.component.validate||{},e.component.validate.unique=e.component.unique,k.push(this.validate(e,"unique",e.validationValue,t,0,t,s,f)),e.component.validate.multiple=e.component.multiple,k.push(this.validate(e,"multiple",e.validationValue,t,0,t,s,f)),k.push.apply(k,d),k.push.apply(k,p(m));var O=function(o){return o=(0,r.default)(o).chain().flatten().compact().value(),(w||g)&&r.default.each(o,(function(r){r.message=e.t(w||r.message,{field:e.errorLabel,data:t,row:n,error:r}),r.context.hasLabel=!1})),l?o:r.default.reject(o,(function(e){return"warning"===e.level}))};return s?a.default.all(k).then(O):O(k)}},{key:"checkValidations",value:function(e,t,n,r,o,i){var a=this,l=t.map((function(t){return a.checkRule(e,t,n,r,o,i)})).reduce((function(e,t){return t?[].concat(p(e),p(t)):e}),[]).filter((function(e){return e})).reduce((function(e,t){return e[t.context.validator]=t,e}),{});return Object.values(l)}},{key:"checkRule",value:function(e,t,n,r,o,i){var a=c.default.getRule(t.rule),l=[];if(a){var s=new a(e,t.settings,this.config);o.map((function(o,a){var u=s.check(o,n,r,i);!0!==u&&l.push({level:t.level||"error",message:e.t(t.message||s.defaultMessage,{settings:t.settings,field:e.errorLabel,data:n,row:r,error:u}),context:{key:e.key,index:a,label:e.label,validator:t.rule}})}))}return 0!==l.length&&l}},{key:"check",get:function(){return this.checkComponent}},{key:"get",value:function(){r.default.get.call(this,arguments)}},{key:"each",value:function(){r.default.each.call(this,arguments)}},{key:"has",value:function(){r.default.has.call(this,arguments)}}],n&&b(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.ValidationChecker=_,_.config={db:null,token:null,form:null,submission:null};var S=new _;t.default=S},4338:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function l(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addConjunction",value:function(t,n){e.conjunctions[t]=n}},{key:"addConjunctions",value:function(t){e.conjunctions=i(i({},e.conjunctions),t)}},{key:"getConjunction",value:function(t){return e.conjunctions[t]}},{key:"getConjunctions",value:function(){return e.conjunctions}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u,l(u,"conjunctions",{})},3764:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function l(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addOperator",value:function(t,n){e.operators[t]=n}},{key:"addOperators",value:function(t){e.operators=i(i({},e.operators),t)}},{key:"getOperator",value:function(t){return e.operators[t]}},{key:"getOperators",value:function(){return e.operators}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u,l(u,"operators",{})},50136:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function l(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addQuickRule",value:function(t,n){e.quickRules[t]=n}},{key:"addQuickRules",value:function(t){e.quickRules=i(i({},e.quickRules),t)}},{key:"getQuickRule",value:function(t){return e.quickRules[t]}},{key:"getQuickRules",value:function(){return e.quickRules}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u,l(u,"quickRules",{})},480:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{error}}"),e}return t=p,(n=[{key:"check",value:function(e,t,n,r){var o=this.settings.custom;if(!o)return!0;var i=this.component.evaluate(o,{valid:!0,data:t,row:n,rowIndex:r,input:e},"valid",!0);return null===i||i}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},31266:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(83710),n(41539),n(39714),n(96649),n(96078),n(82526),n(41817),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} is not a valid date."),e}return t=p,(n=[{key:"check",value:function(e){return!e||"Invalid date"!==e&&"Invalid Date"!==e&&("string"==typeof e&&(e=new Date(e)),e instanceof Date==1&&"Invalid Date"!==e.toString())}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},22762:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function f(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(79753),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),n(74916),n(92222),n(21249),n(91058),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var p=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(h,e);var t,n,r,d,p=(r=h,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(d){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function h(){var e;i(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(u(e=p.call.apply(p,[this].concat(n))),"defaultMessage","{{field}} is not a valid day."),e}return t=h,(n=[{key:"check",value:function(e){if(!e)return!0;if("string"!=typeof e)return!1;var t,n,r=(t=this.component.dayFirst?[0,1,2]:[1,0,2],n=3,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],a=r[1],l=r[2],s=e.split("/").map((function(e){return parseInt(e,10)})),u=s[i],c=s[a],f=s[l],d=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(c,f);return!(isNaN(u)||u<0||u>d||isNaN(c)||c<0||c>12||isNaN(f)||f<0||f>9999)}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(p)},81365:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must be a valid email."),e}return t=p,(n=[{key:"check",value:function(e){return!e||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},58788:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{error}}"),e}return t=p,(n=[{key:"check",value:function(e,t,n,r){var o=this.settings.json;if(!o)return!0;var i=this.component.evaluate(o,{data:t,row:n,rowIndex:r,input:e});return null===i||i}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},35239:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=n(82531);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function f(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===o(t)?t:String(t)}var p=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(h,e);var t,n,o,d,p=(o=h,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(o);if(d){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function h(){var e;i(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(u(e=p.call.apply(p,[this].concat(n))),"defaultMessage","{{field}} does not match the mask."),e}return t=h,(n=[{key:"check",value:function(e){var t;if(this.component.isMultipleMasksField){var n=e?e.maskName:void 0,o=this.component.getMaskByName(n);o&&(t=(0,r.getInputMask)(o)),e=e?e.value:e}else t=(0,r.getInputMask)(this.settings.mask);return!e||!t||(0,r.matchInputMask)(e,t)}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(p)},54266:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(54678),n(44048),n(9653),n(96649),n(96078),n(82526),n(41817),n(41539);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} cannot be greater than {{settings.limit}}."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n<=t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},89017:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=n(82531),o=a(n(30381)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var y=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(y,e);var t,n,a,l,m=(a=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function y(){var e;s(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=m.call.apply(m,[this].concat(n))),"defaultMessage","{{field}} should not contain date after {{settings.dateLimit}}"),e}return t=y,(n=[{key:"check",value:function(e){if(!e)return!0;if(e===this.settings.dateLimit)return!0;var t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!i.default.isNull(n)||(n.setHours(0,0,0,0),t.isBefore(n)||t.isSame(n))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(y)},93942:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(91058),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!(e&&t&&e.hasOwnProperty("length"))||e.length<=t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},40177:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(91058),n(74916),n(23123),n(73210),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} words."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!t||"string"!=typeof e||e.trim().split(/\s+/).length<=t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},18722:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} should not contain year greater than {{maxYear}}"),e}return t=p,(n=[{key:"check",value:function(e){var t=this.settings,n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n<=+t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},43117:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(54678),n(44048),n(9653),n(96649),n(96078),n(82526),n(41817),n(41539);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} cannot be less than {{settings.limit}}."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n>=t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},36056:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r=n(82531),o=a(n(30381)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var y=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(y,e);var t,n,a,l,m=(a=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function y(){var e;s(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=m.call.apply(m,[this].concat(n))),"defaultMessage","{{field}} should not contain date before {{settings.dateLimit}}"),e}return t=y,(n=[{key:"check",value:function(e){if(!e)return!0;var t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!i.default.isNull(n)||(n.setHours(0,0,0,0),t.isAfter(n)||t.isSame(n))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(y)},24391:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(91058),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!(t&&e&&e.hasOwnProperty("length")&&!this.component.isEmpty(e))||e.length>=t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},17579:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(91058),n(74916),n(23123),n(73210),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have at least {{- settings.length}} words."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!t||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},40535:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} should not contain year less than {{minYear}}"),e}return t=p,(n=[{key:"check",value:function(e){var t=this.settings,n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n>=+t}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},49561:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(24603),n(39714),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} does not match the pattern {{settings.pattern}}"),e}return t=p,(n=[{key:"check",value:function(e){var t=this.settings.pattern;return!t||new RegExp("^".concat(t,"$")).test(e)}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},86947:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} is required"),e}return t=p,(n=[{key:"check",value:function(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},14142:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}n(69070),n(32165),n(66992),n(78783),n(33948),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653),e.exports=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.component=t,this.settings=n,this.config=r}var t,n;return t=e,(n=[{key:"check",value:function(){}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},71912:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(57327),n(41539),n(26699),n(32023),n(69600),n(21249),n(96649),n(96078),n(82526),n(41817),n(9653);var r=n(82531),o=l(n(91459)),i=l(n(87559)),a=l(n(96486));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var v=(0,i.default)({Promise:o.default}),b=v.fetch,g=v.Headers,w=v.Request,k=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(s,e);var t,n,o,i,l=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(o);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function s(){var e;u(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=l.call.apply(l,[this].concat(n))),"defaultMessage","{{field}} contains an invalid selection"),e}return t=s,(n=[{key:"check",value:function(e,t,n,o){if(!e||a.default.isEmpty(e))return!0;if(!o)return!0;var i=this.component.component,l={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(a.default.isBoolean(l.url)){if(l.url=!!l.url,!l.url||"url"!==i.dataSrc||!i.data.url||!i.searchField)return!0;l.url=i.data.url,l.qs[i.searchField]=e,i.filter&&(l.url+=(l.url.includes("?")?"&":"?")+i.filter),i.selectFields&&(l.qs.select=i.selectFields)}return!l.url||(l.url=(0,r.interpolate)(l.url,{data:this.component.data}),l.url+=(l.url.includes("?")?"&":"?")+a.default.chain(l.qs).map((function(e,t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&").value(),i.data&&i.data.headers&&a.default.each(i.data.headers,(function(e){e.key&&(l.headers[e.key]=e.value)})),i.authenticate&&this.config.token&&(l.headers["x-jwt-token"]=this.config.token),b(new w(l.url,{headers:new g(l.headers)})).then((function(e){return!!e.ok&&e.json()})).then((function(e){return e&&e.length})).catch((function(){return!1})))}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(k)},30173:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var r,o=(r=n(30381))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var h=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(h,e);var t,n,r,i,p=(r=h,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function h(){var e;a(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(c(e=p.call.apply(p,[this].concat(n))),"defaultMessage","{{field}} must contain valid time"),e}return t=h,(n=[{key:"check",value:function(e){return!!this.component.isEmpty(e)||(0,o.default)(e,this.component.component.format).isValid()}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(h)},18754:function(e,t,n){"use strict";n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(24603),n(74916),n(39714),n(83710),n(41539),n(96649),n(96078),n(82526),n(41817),n(9653);var r=n(82531),o=a(n(96486)),i=a(n(91459));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var y=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(y,e);var t,n,a,l,m=(a=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function y(){var e;s(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=m.call.apply(m,[this].concat(n))),"defaultMessage","{{field}} must be unique"),e}return t=y,(n=[{key:"check",value:function(e){var t=this;return!!(!e||o.default.isObjectLike(e)&&o.default.isEmpty(e))||!this.config.db||new i.default((function(n){var i=t.config.form,a=t.config.submission,l="data.".concat(t.component.path),s={form:i._id};o.default.isString(e)?s[l]={$regex:new RegExp("^".concat((0,r.escapeRegExCharacters)(e),"$")),$options:"i"}:o.default.isPlainObject(e)&&e.address&&e.address.address_components&&e.address.place_id?s["".concat(l,".address.place_id")]={$regex:new RegExp("^".concat((0,r.escapeRegExCharacters)(e.address.place_id),"$")),$options:"i"}:o.default.isArray(e)?s[l]={$all:e}:(o.default.isObject(e)||o.default.isNumber(e))&&(s[l]={$eq:e}),s.deleted={$eq:null},t.config.db.findOne(s,(function(e,t){return n(!e&&(!t||a._id&&t._id.toString()===a._id))}))})).catch((function(){return!1}))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(y)},68135:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(68304),n(24812),n(30489),n(12419),n(78011),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(s(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must be a valid url."),e}return t=p,(n=[{key:"check",value:function(e){return!e||/^(?:(?:(?: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.test(e)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(d)},64753:function(e,t,n){"use strict";var r=n(480),o=n(31266),i=n(22762),a=n(81365),l=n(58788),s=n(35239),u=n(54266),c=n(89017),f=n(93942),d=n(40177),p=n(43117),h=n(36056),m=n(24391),y=n(17579),v=n(49561),b=n(86947),g=n(71912),w=n(18754),k=n(68135),O=n(40535),_=n(18722),S=n(30173);e.exports={custom:r,date:o,day:i,email:a,json:l,mask:s,max:u,maxDate:c,maxLength:f,maxWords:d,min:p,minDate:h,minLength:m,minWords:y,pattern:v,required:b,select:g,unique:w,url:k,minYear:O,maxYear:_,time:S}},87892:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function l(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addTransformer",value:function(t,n){e.transformers[t]=n}},{key:"addTransformers",value:function(t){e.transformers=i(i({},e.transformers),t)}},{key:"getTransformer",value:function(t){return e.transformers[t]}},{key:"getTransformers",value:function(){return e.transformers}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u,l(u,"transformers",{})},20168:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function l(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}n(69070),n(47941),n(57327),n(38880),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(96649),n(96078),n(82526),n(41817),n(41539),n(9653);var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addValueSource",value:function(t,n){e.valueSources[t]=n}},{key:"addValueSources",value:function(t){e.valueSources=i(i({},e.valueSources),t)}},{key:"getValueSource",value:function(t){return e.valueSources[t]}},{key:"getValueSources",value:function(){return e.valueSources}}],null&&a(t.prototype,null),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=u,l(u,"valueSources",{})},27660:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(83593),n(47941),n(89554),n(54747),n(49337),n(33321),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(74916),n(15306),n(3843),n(83710),n(57327),n(41539),n(92222),n(32564),n(21249),n(4723),n(5212),n(26699),n(32023),n(69826),n(79753),n(39714),n(24812),n(68304),n(30489);var o=n(19161),i=u(n(581)),a=n(82531),l=u(n(30381)),s=u(n(96486));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function p(e,t,n,r){return p="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=v(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else h(r,t,n);return!0},p(e,t,n,r)}function h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k="yyyy-MM-dd hh:mm a",O="yyyy-MM-ddTHH:mm:ssZ",_=(0,a.getBrowserInfo)().ie,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(h,e);var t,n,r,i,u,c=(i=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(i);if(u){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function h(e,t,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(i=c.call(this,e,t,n,r)).settings.noCalendar&&(i.settings.format=i.settings.format.replace(/yyyy-MM-dd /g,"")),i.settings.enableTime?i.settings.time_24hr&&(i.settings.format=i.settings.format.replace(/hh:mm a$/g,"HH:mm")):i.settings.format=i.settings.format.replace(/ hh:mm a$/g,""),i.zoneLoading=!1,i.timezonesUrl="".concat(o.GlobalFormio.cdn["moment-timezone"],"/data/packed/latest.json"),i}return t=h,r=[{key:"defaultSettings",get:function(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:k,dateFormat:O,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}}],(n=[{key:"loadZones",value:function(){var e=this,t=this.timezone;return!!this.zoneLoading||!((0,a.zonesLoaded)()||!(0,a.shouldLoadZones)(t))&&(this.zoneLoading=!0,(0,a.loadZones)(this.timezonesUrl,t).then((function(){e.zoneLoading=!1,e.emit("redraw")})),!0)}},{key:"attach",value:function(e){var t,n=this,r=y(w(h.prototype),"attach",this).call(this,e),i=(0,a.getLocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:i.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?O:this.settings.dateFormat||O,this.valueMomentFormat=(0,a.convertFormatToMoment)(this.valueFormat);var l=this.settings.readOnly;return this.settings.minDate=l?null:(0,a.getDateSetting)(this.settings.minDate),this.settings.maxDate=l?null:(0,a.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,a.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,a.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=function(){n.settings.allowInput&&(n.settings.isManuallyOverriddenValue&&n.settings.enableTime?n.calendar._input.value=n.settings.manualInputValue:n.settings.manualInputValue="",n.settings.isManuallyOverriddenValue=!1),n.emit("update")},this.settings.onOpen=function(){return n.hook("onCalendarOpen")},this.settings.onClose=function(){n.hook("onCalendarClose"),n.closedOn=Date.now(),n.settings.allowInput&&n.settings.enableTime&&(n.calendar._input.value=n.settings.manualInputValue||n.calendar._input.value,n.settings.isManuallyOverriddenValue=!1,n.emit("update")),n.settings.wasDefaultValueChanged&&(n.calendar._input.value=n.settings.defaultValue,n.settings.wasDefaultValueChanged=!1),n.calendar&&n.emit("blur")},o.GlobalFormio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:"".concat(o.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.css")}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter((function(e){return e.label&&e.onClick}))),null!==(t=this.component.shortcutButtons)&&void 0!==t&&t.length&&o.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:"".concat(o.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/themes/light.min.css")}],!0),r.then((function(){var e;if(null!==(e=n.component.shortcutButtons)&&void 0!==e&&e.length)return o.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin","".concat(o.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/shortcut-buttons-flatpickr.min.js"),!0)})).then((function(e){return o.GlobalFormio.requireLibrary("flatpickr","flatpickr","".concat(o.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.js"),!0).then((function(t){var r;if(null!==(r=n.component.shortcutButtons)&&void 0!==r&&r.length&&e&&n.initShortcutButtonsPlugin(e),n.settings.formatDate=n.getFlatpickrFormatDate(t),n._input){var i=n.settings.locale;if(i&&i.length>=2&&"en"!==i)return o.GlobalFormio.requireLibrary("flatpickr-".concat(i),"flatpickr-".concat(i),"".concat(o.GlobalFormio.cdn["flatpickr-formio"],"/l10n/flatpickr-").concat(i,".js"),!0).then((function(){return n.initFlatpickr(t)}));n.initFlatpickr(t)}}))})).catch((function(e){console.warn(e)}))}},{key:"disableWeekends",get:function(){return function(e){return 0===e.getDay()||6===e.getDay()}}},{key:"disableWeekdays",get:function(){var e=this;return function(t){return!e.disableWeekends(t)}}},{key:"disableFunction",get:function(){var e=this;return function(t){return e.evaluate("return ".concat(e.settings.disableFunction),{date:t})}}},{key:"timezone",get:function(){return this.componentInstance.getTimezone(this.settings)}},{key:"defaultSettings",get:function(){return h.defaultSettings}},{key:"addSuffix",value:function(e){var t=this;return this.addEventListener(e,"click",(function(){setTimeout((function(){t.calendar&&(!t.calendar.isOpen&&Date.now()-t.closedOn>200?t.calendar.open():t.calendar.isOpen&&t.calendar.close())}),0)})),e}},{key:"disabled",set:function(e){(function(e,t,n,r,o){if(!p(e,t,n,r||e)&&o)throw new Error("failed to set property")})(w(h.prototype),"disabled",e,this,!0),this.calendar&&(e?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}},{key:"input",get:function(){return this.calendar?this.calendar.altInput:null}},{key:"disabledDates",get:function(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map((function(e){var t=/\d{4}-\d{2}-\d{2}/g,n=e.match(t);if(n&&n.length)return 1===n.length?e.match(t)[0]:{from:e.match(t)[0],to:e.match(t)[1]}})):[]}},{key:"localeFormat",get:function(){var e="";return this.settings.enableDate&&(e+=this.defaultFormat.date),this.settings.enableTime&&(e+=this.defaultFormat.time),e}},{key:"dateTimeFormat",get:function(){return this.settings.useLocaleSettings?this.localeFormat:(0,a.convertFormatToFlatpickr)(this.dateFormat)}},{key:"dateFormat",get:function(){return s.default.get(this.settings,"format",k)}},{key:"getDateValue",value:function(e,t,n){return n?(0,a.momentDate)(e,this.valueFormat,this.timezone).format((0,a.convertFormatToMoment)(t)):(0,l.default)(e).format((0,a.convertFormatToMoment)(t))}},{key:"getValue",value:function(){if(!this.calendar)return y(w(h.prototype),"getValue",this).call(this);var e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":y(w(h.prototype),"getValue",this).call(this)}},{key:"isValueISO8601",value:function(e){return e&&"string"==typeof e&&e.match(/-[0-9]{2}T[0-9]{2}:/)}},{key:"setValue",value:function(e){var t="text"===this.settings.saveAs;if(!this.calendar)return e=e?(0,a.formatDate)(this.timezonesUrl,e,(0,a.convertFormatToMoment)(this.settings.format),this.timezone,(0,a.convertFormatToMoment)(this.valueMomentFormat)):e,y(w(h.prototype),"setValue",this).call(this,e);var n=this.loadZones();e?t||!this.settings.readOnly||n?this.isValueISO8601(e)?this.calendar.setDate(e,!1):this.calendar.setDate((0,l.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,a.momentDate)(e,this.valueFormat,this.timezone).format(),!1):this.calendar.clear(!1)}},{key:"getValueAsString",value:function(e,t){var n=t||this.dateFormat,r=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,l.default)(e,(0,a.convertFormatToMoment)(r)).format((0,a.convertFormatToMoment)(r)):(0,a.formatDate)(this.timezonesUrl,e,n,this.timezone,(0,a.convertFormatToMoment)(r))}},{key:"setErrorClasses",value:function(e){this.input&&(e?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}},{key:"validationValue",value:function(e){return"string"==typeof e?new Date(e):e.map((function(e){return new Date(e)}))}},{key:"isCalendarElement",value:function(e){var t,n,r,o,i;return!e||!(null===(t=this.calendar)||void 0===t||null===(n=t.config)||void 0===n||null===(r=n.appendTo)||void 0===r||!r.contains(e))||(null===(o=this.calendar)||void 0===o||null===(i=o.calendarContainer)||void 0===i?void 0:i.contains(e))}},{key:"initFlatpickr",value:function(e){var t=this;if(this.calendar=new e(this._input,f(f({},this.settings),{},{disableMobile:!0})),this.calendar.altInput.addEventListener("input",(function(e){t.settings.allowInput&&t.settings.currentValue!==e.target.value&&(t.settings.manualInputValue=e.target.value,t.settings.isManuallyOverriddenValue=!0,t.settings.currentValue=e.target.value),""===e.target.value&&t.calendar.selectedDates.length>0?(t.settings.wasDefaultValueChanged=!0,t.settings.defaultValue=e.target.value,t.calendar.clear()):t.settings.wasDefaultValueChanged=!1})),this.settings.readOnly||s.default.some(["MMMM"],(function(e){return s.default.includes(t.settings.format,e)}))||this.setInputMask(this.calendar._input,(0,a.convertFormatToMask)(this.settings.format)),_){var n=this.calendar._handlers.find((function(e){var n=e.event,r=e.element;return"blur"===n&&r===t.calendar._input}));this.calendar._input.removeEventListener("blur",n.handler),this.addEventListener(this.calendar._input,"blur",(function(e){var n=t.settings.shadowRoot?t.settings.shadowRoot.activeElement:document.activeElement,r=e.relatedTarget?e.relatedTarget:n;e.target===t.calendar._input&&!t.isCalendarElement(r)&&t.calendar.setDate(t.calendar._input.value,!0,e.target===t.calendar.altInput?t.calendar.config.altFormat:t.calendar.config.dateFormat)}))}this.addEventListener(this.calendar._input,"blur",(function(e){var n=t.settings.shadowRoot?t.settings.shadowRoot.activeElement:document.activeElement,r=e.relatedTarget?e.relatedTarget:n;if(_&&!r||t.isCalendarElement(r)){if(!t.calendar.input.value&&t.calendar.config.noCalendar){var o,i,s,u,c=(0,l.default)({hour:null===(o=t.calendar)||void 0===o||null===(i=o.config)||void 0===i?void 0:i.defaultHour,minute:null===(s=t.calendar)||void 0===s||null===(u=s.config)||void 0===u?void 0:u.defaultMinute}).toDate();t.calendar.setDate(c,!0,t.settings.format)}}else{var f=t.calendar.input.value,d=f?(0,l.default)(t.calendar.input.value,(0,a.convertFormatToMoment)(t.valueFormat)).toDate():f;t.calendar.setDate(d,!0,t.settings.altFormat)}})),this.addEventListener(this.calendar.altInput,"keydown",(function(e){13===e.keyCode&&t.calendar.isOpen&&(t.calendar.close(),e.stopPropagation())})),this.setValue(this.componentValue)}},{key:"initShortcutButtonsPlugin",value:function(e){var t=this;this.settings.plugins=[e({button:this.component.shortcutButtons.map((function(e){return{label:e.label,attributes:e.attribute}})),onClick:function(e){var n=t.component.shortcutButtons[e].onClick,r=t.evaluate(n,{date:new Date},"date");t.calendar.setDate(r,!0)}})]}},{key:"componentValue",get:function(){var e=this.componentInstance.dataValue;return Array.isArray(e)&&(e=e[this.valueIndex]),e}},{key:"getFlatpickrFormatDate",value:function(e){var t=this;return function(n,r){return t.settings.readOnly&&r===t.settings.altFormat?!t.settings.enableTime||t.loadZones()?e.formatDate(n,r):new Date(t.getValue()).toString()===n.toString()?(0,a.formatOffset)(t.timezonesUrl,e.formatDate.bind(e),new Date(t.componentValue),r,t.timezone):(0,a.formatOffset)(t.timezonesUrl,e.formatDate.bind(e),n,r,t.timezone):e.formatDate(n,r)}}},{key:"destroy",value:function(){y(w(h.prototype),"destroy",this).call(this),this.calendar&&this.calendar.destroy()}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=S},581:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n(41539),n(12419),n(78011),n(69070),n(74819),n(38880),n(96649),n(96078),n(82526),n(41817),n(9653),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(24812),n(68304),n(30489);var o=l(n(96486)),i=l(n(34558)),a=l(n(91459));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key,"string"),"symbol"===r(i)?i:String(i)),o)}var i}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(h,e);var t,n,r,i,l,c=(i=h,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(i);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function h(e,t,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(i=c.call(this,e)).valueIndex=r||0,i.componentInstance=n,i.namespace="formio.widget",i.component=t||{},i.settings=o.default.merge({},i.defaultSettings,e||{}),i}return t=h,r=[{key:"defaultSettings",get:function(){return{type:"input"}}}],(n=[{key:"attach",value:function(e){return this._input=e,a.default.resolve()}},{key:"defaultSettings",get:function(){return{}}},{key:"disabled",set:function(e){e?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}},{key:"input",get:function(){return this._input}},{key:"getValue",value:function(){return this._input.value}},{key:"getValueAsString",value:function(e){return e}},{key:"validationValue",value:function(e){return e}},{key:"addPrefix",value:function(){return null}},{key:"addSuffix",value:function(){return null}},{key:"setValue",value:function(e){this._input.value=e}},{key:"evalContext",value:function(e){return u(p(h.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.componentInstance.data,rowIndex:this.componentInstance.rowIndex,data:this.componentInstance.rootValue,value:this.componentInstance.dataValue,t:this.t.bind(this),submission:this.componentInstance.root?this.componentInstance.root._submission:{data:this.componentInstance.rootValue},form:this.componentInstance.root?this.componentInstance.root._form:{},options:this.options},e))}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.default);t.default=h},22457:function(e,t,n){"use strict";n(69070),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(581)),o=i(n(27660));function i(e){return e&&e.__esModule?e:{default:e}}var a={input:r.default,calendar:o.default};t.default=a},81575:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68531);t.default={framework:"bootstrap3",templates:r.default}},68286:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<div\n  ",e.attrs)n+="\n    "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n  ';return n+"\n>"+(null==(t=e.message)?"":t)+"</div>\n"}},2101:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68286);t.default={form:r.default}},83787:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(t=e.sidebar)?"":t)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n    '+(null==(t=e.form)?"":t)+"\n  </div>\n</div>\n"}},48433:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83787);t.default={form:r.default}},85539:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="builder-component" ref="dragComponent">\n  ',e.disableBuilderActions||(n+='\n    <div class="component-btn-group" data-noattach="true">\n      <div class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove" ref="removeComponent">\n        <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-copy" ref="copyComponent">\n        <i class="'+(null==(t=e.iconClass("copy"))?"":t)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-paste" ref="pasteComponent">\n        <i class="'+(null==(t=e.iconClass("save"))?"":t)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" ref="editJson">\n        <i class="'+(null==(t=e.iconClass("wrench"))?"":t)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-move" ref="moveComponent">\n        <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit", ref="editComponent">\n        <i class="'+(null==(t=e.iconClass("cog"))?"":t)+'"></i>\n      </div>\n    </div>\n  '),n+"\n  "+(null==(t=e.html)?"":t)+"\n</div>\n"}},7581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(85539);t.default={form:r.default}},82097:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-components drag-container formio-builder-'+(null==(t=e.type)?"":t)+'" ref="'+(null==(t=e.key)?"":t)+'-container">\n  '+(null==(t=e.html)?"":t)+"\n</div>\n"}},2434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(82097);t.default={form:r.default}},17894:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n  <div class="col col-sm-6">\n    <p class="lead">'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"</p>\n  </div>\n  ",e.helplinks&&(n+='\n  <div class="col col-sm-6">\n    <div class="pull-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(t=e.t(e.helplinks+e.componentInfo.documentation))?"":t)+'" target="_blank">\n        <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"> '+(null==(t=e.t("Help"))?"":t)+"</i>\n      </a>\n    </div>\n  </div>\n"),n+='\n</div>\n<div class="row component-edit-content">\n  <div class="col component-edit-tabs ',e.preview?n+="col-sm-6":n+="col-sm-12",n+='">\n    <div class="editForm" ref="editForm">\n      '+(null==(t=e.editForm)?"":t)+"\n    </div>\n    ",e.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\n    "),n+="\n  </div>\n  ",e.preview&&(n+='\n  <div class="col col-sm-6">\n    <div class="panel panel-default preview-panel">\n      <div class="panel-heading">\n        <h3 class="panel-title">'+(null==(t=e.t("Preview"))?"":t)+'</h3>\n      </div>\n      <div class="panel-body">\n        <div class="component-preview" ref="preview">\n          '+(null==(t=e.preview)?"":t)+"\n        </div>\n      </div>\n    </div>\n    ",e.componentInfo.help&&(n+='\n    <div class="well formio-settings-help">\n      '+(null==(t=e.componentInfo.help)?"":t)+"\n    </div>\n    "),n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\n  </div>\n  "),n+"\n</div>\n"}},58809:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17894);t.default={form:r.default}},41852:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div\n  class="alert alert-info no-drag"\n  style="text-align:center; margin-bottom: 5px;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(t=e.position)?"":t)+'"\n>\n  '+(null==(t=e.t("Drag and Drop a form component"))?"":t)+"\n</div>\n"}},59624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41852);t.default={form:r.default}},70307:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="builder-sidebar'+(null==(t=e.scrollEnabled?" builder-sidebar_scroll":"")?"":t)+'" ref="sidebar">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n  <div id="'+(null==(t=e.groupId)?"":t)+'" class="panel-group" ref="sidebar-groups">\n    ',e.groups.forEach((function(e){n+="\n      "+(null==(t=e)?"":t)+"\n    "})),n+="\n  </div>\n</div>\n"}},92470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70307);t.default={form:r.default}},74913:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="panel panel-default form-builder-panel" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\n  <div class="panel-heading form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(t=e.groupKey)?"":t)+'"\n        data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n        href="#group-'+(null==(t=e.groupKey)?"":t)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(t=e.groupKey)?"":t)+'"\n    class="panel-collapse collapse'+(null==(t=e.group.default?" in":"")?"":t)+'"\n    data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n    data-default="'+(null==(t=e.group.default)?"":t)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="panel-body no-drop" ref="sidebar-container">\n      ',e.group.componentOrder.length||e.subgroups.length?(n+="\n        ",e.group.componentOrder.forEach((function(r){n+='\n          <span\n            data-group="'+(null==(t=e.groupKey)?"":t)+'"\n            data-key="'+(null==(t=e.group.components[r].key)?"":t)+'"\n            data-type="'+(null==(t=e.group.components[r].schema.type)?"":t)+'"\n            class="btn btn-primary btn-xs btn-block formcomponent drag-copy"\n          >\n            ',e.group.components[r].icon&&(n+='\n              <i class="'+(null==(t=e.iconClass(e.group.components[r].icon))?"":t)+'" style="margin-right: 5px;"></i>\n            '),n+="\n            "+(null==(t=e.t(e.group.components[r].title,{_userInput:!0}))?"":t)+"\n          </span>\n        "})),n+="\n        "+(null==(t=e.subgroups.join(""))?"":t)+"\n      "):n+="\n        <div>"+(null==(t=e.t("No Matches Found"))?"":t)+"</div>\n      ",n+="\n    </div>\n  </div>\n</div>\n\n"}},64959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74913);t.default={form:r.default}},86227:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.columns.forEach((function(r,o){n+='\n<div class="col\n    col-'+(null==(t=r.size)?"":t)+"-"+(null==(t=r.width)?"":t)+"\n    col-"+(null==(t=r.size)?"":t)+"-offset-"+(null==(t=r.offset)?"":t)+"\n    col-"+(null==(t=r.size)?"":t)+"-push-"+(null==(t=r.push)?"":t)+"\n    col-"+(null==(t=r.size)?"":t)+"-pull-"+(null==(t=r.pull)?"":t)+'\n  " ref="'+(null==(t=e.columnKey)?"":t)+'">\n  '+(null==(t=e.columnComponents[o])?"":t)+"\n</div>\n"})),n+="\n"}},7569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86227);t.default={form:r.default}},51382:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},70897:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-condensed":"")?"":t)+'\n    " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",e.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(n+="<th></th>"),n+="\n      ",e.columns.forEach((function(r){n+='\n        <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n          '+(null==(t=r.hideLabel?"":e.t(r.label||r.title,{_userInput:!0}))?"":t)+"\n          ",r.tooltip&&(n+=' <i ref="tooltip" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n        </th>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+="\n      <th>\n        ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody" data-key="'+(null==(t=e.datagridKey)?"":t)+'">\n    ',e.rows.forEach((function(r,o){n+="\n    ",e.hasGroups&&e.groups[o]&&(n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n      <td\n        ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n        colspan="'+(null==(t=e.numColumns)?"":t)+'"\n        class="datagrid-group-label">'+(null==(t=e.groups[o].label)?"":t)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n      ',e.component.reorder&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(t=e.datagridKey)?"":t)+'"></button>\n        </td>\n      '),n+="\n      ",e.columns.forEach((function(o){n+='\n        <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n          '+(null==(t=r[o.key])?"":t)+"\n        </td>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+="\n        ",e.hasRemoveButtons&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="btn btn-default formio-button-remove-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow">\n            <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",e.canAddColumn&&(n+='\n        <td ref="'+(null==(t=e.key)?"":t)+'-container" class="col-md-3">\n          '+(null==(t=e.placeholder)?"":t)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n  ",e.hasAddButton&&e.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(t=e.component.layoutFixed?e.numColumns:e.numColumns+1)?"":t)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},5118:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";return Array.prototype.join,r+='<table class="table datagrid-table table-bordered\n    '+(null==(n=component.striped?"table-striped":"")?"":n)+"\n    "+(null==(n=component.hover?"table-hover":"")?"":n)+"\n    "+(null==(n=component.condensed?"table-condensed":"")?"":n)+'\n    ">\n  ',hasHeader&&(r+="\n  <thead>\n    <tr>\n      ",columns.forEach((function(e){r+='\n        <th class="'+(null==(n=e.validate&&e.validate.required?"field-required":"")?"":n)+'">\n          '+(null==(n=e.hideLabel?"":t(e.label||e.title))?"":n)+"\n          ",e.tooltip&&(r+=' <i ref="tooltip" data-title="'+(null==(n=e.tooltip)?"":n)+'" class="'+(null==(n=iconClass("question-sign"))?"":n)+' text-muted" data-tooltip="'+(null==(n=e.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "})),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>\n    ",rows.forEach((function(e){r+="\n    <tr>\n      ",columns.forEach((function(t){r+='\n        <td ref="'+(null==(n=datagridKey)?"":n)+'">\n          '+(null==(n=e[t.key])?"":n)+"\n        </td>\n      "})),r+="\n    </tr>\n    "})),r+="\n  </tbody>\n</table>\n"}},14714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70897),o=n(5118);t.default={form:r.default,html:o.default}},97842:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n  ',e.dayFirst&&e.showDay&&(n+='\n  <div class="form-group col col-xs-3">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.day)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",e.showMonth&&(n+='\n  <div class="form-group col col-xs-4">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="',e.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Month"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.month)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",!e.dayFirst&&e.showDay&&(n+='\n  <div class="form-group col col-xs-3">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.day)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",e.showYear&&(n+='\n  <div class="form-group col col-xs-5">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="',e.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Year"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.year)?"":t)+"</div>\n  </div>\n  "),n+'\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},11024:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(97842);t.default={form:r.default}},44033:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close pull-right btn btn-default btn-xs" aria-label="close" ref="dialogClose"></button>\n  </div>\n</div>\n'}},95371:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44033);t.default={form:r.default}},61424:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-condensed":"")?"":t)+'\n    ">\n  ',e.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(t=e.header)?"":t)+"\n  </li>\n  "),n+="\n  ",e.rows.forEach((function(r,o){n+='\n  <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n    '+(null==(t=r)?"":t)+"\n    ",e.openRows[o]&&!e.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n      ",e.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(t=e.errors[o])?"":t)+"\n      </div>\n    </div>\n  </li>\n  "})),n+="\n  ",e.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(t=e.footer)?"":t)+"\n  </li>\n  "),n+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary formio-button-add-another" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n  <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}},47456:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n    ">\n  ',e.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(t=e.header)?"":t)+"\n  </li>\n  "),n+="\n  ",e.rows.forEach((function(r,o){n+='\n  <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n    '+(null==(t=r)?"":t)+"\n    ",e.openRows[o]&&!e.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n      ",e.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(t=e.errors[o])?"":t)+"\n      </div>\n    </div>\n  </li>\n  "})),n+="\n  ",e.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(t=e.footer)?"":t)+"\n  </li>\n  "),n+="\n</ul>\n"}},43614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61424),o=n(47456);t.default={form:r.default,html:o.default}},44787:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<p>"+(null==(t=e.t("error"))?"":t)+"</p>\n<ul>\n  ",e.errors.forEach((function(r){n+='\n    <li\n      data-component-key = "'+(null==(t=r.keyOrPath)?"":t)+'"\n      aria-label = "'+(null==(t=r.message)?"":t)+". "+(null==(t=e.t("errorsListNavigationMessage"))?"":t)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(t=r.message)?"":t)+"</span></li>\n  "})),n+="\n</ul>\n"}},40079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44787);t.default={form:r.default}},96735:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="field-wrapper\n  '+(null==(t=e.isRightPosition?"field-wrapper--reverse":"")?"":t)+'">\n  ',e.label.hidden||(n+='\n    <div class="field-label\n      '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n      style="'+(null==(t=e.labelStyles)?"":t)+'">\n    '+(null==(t=e.labelMarkup)?"":t)+"\n    </div>\n  "),n+="\n\n  ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n    <div class="field-label\n      '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n      style="'+(null==(t=e.labelStyles)?"":t)+'">\n      <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n    </div>\n  '),n+='\n\n  <div class="filed-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n    '+(null==(t=e.element)?"":t)+"\n  </div>\n</div>\n\n",e.component.description&&(n+='\n  <div class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},63646:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n  "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n  <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n  "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n  <div class="help-block">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},20798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(96735),o=n(63646);t.default={align:r.default,form:o.default}},65526:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.self.imageUpload?(n+="\n  <div>\n    ",e.files.forEach((function(r){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(t=r.originalName||r.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n          ',e.disabled||(n+='\n            <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "})),n+="\n  </div>\n"):(n+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',e.disabled||(n+='\n          <div class="col-md-1"></div>\n        '),n+='\n        <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n        ",e.self.hasTypes&&(n+='\n          <div class="col-md-2"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n        "),n+="\n      </div>\n    </li>\n    ",e.files.forEach((function(r){n+='\n      <li class="list-group-item">\n        <div class="row">\n          ',e.disabled||(n+='\n            <div class="col-md-1"><i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='">\n            ',e.component.uploadOnly?n+="\n              "+(null==(t=r.originalName||r.name)?"":t)+"\n            ":n+='\n              <a href="'+(null==(t=r.url||"#")?"":t)+'" target="_blank" ref="fileLink">'+(null==(t=r.originalName||r.name)?"":t)+"</a>\n            ",n+='\n          </div>\n          <div class="col-md-2">'+(null==(t=e.fileSize(r.size))?"":t)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(n+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType" >\n                ',e.component.fileTypes.map((function(e){n+='\n                  <option class="test" value="'+(null==(t=e.value)?"":t)+'" ',e.label===r.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.label)?"":t)+"</option>\n                "})),n+="\n              </select>\n            </div>\n          "),n+="\n          ",e.self.hasTypes&&e.disabled&&(n+='\n          <div class="col-md-2">'+(null==(t=r.fileType)?"":t)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "})),n+="\n  </ul>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n  ",e.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n    </div>\n  ":e.self.cameraMode?n+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Take Picture"))?"":t)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+'>\n      <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n        ",e.self.imageUpload&&e.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(t=e.t("Use Camera,"))?"":t)+"</a>\n        "),n+="\n        "+(null==(t=e.t("or"))?"":t)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(t=e.t("browse"))?"":t)+"</a>\n    </div>\n  "),n+="\n"),n+="\n",e.statuses.forEach((function(r){n+='\n  <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(t=r.originalName)?"":t)+' <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(t=e.fileSize(r.size))?"":t)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===r.status?n+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=r.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=r.progress)?"":t)+'%">\n              <span class="sr-only">'+(null==(t=r.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n            </div>\n          </div>\n        ":"error"===r.status?n+='\n          <div class="alert alert-danger bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n        ":n+='\n          <div class="bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(n+="\n      <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n    "),n+="\n    ",e.support.filereader||(n+="\n      <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.formdata||(n+="\n      <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.progress||(n+="\n      <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>\n    "),n+="\n  </div>\n"),n}},66565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65526);t.default={form:r.default}},18320:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<i ref="'+(null==(t=e.ref)?"":t)+'" class="'+(null==(t=e.className)?"":t)+'" style="'+(null==(t=e.styles)?"":t)+'">'+(null==(t=e.content)?"":t)+"</i>\n"}},3429:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18320);t.default={form:r.default}},42260:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("fa"===e)switch(t){case"save":t="download";break;case"zoom-in":t="search-plus";break;case"zoom-out":t="search-minus";break;case"question-sign":t="question-circle";break;case"remove-circle":t="times-circle-o";break;case"new-window":t="window-restore";break;case"move":t="arrows"}return n?e+" "+e+"-"+t+" "+e+"-spin":e+" "+e+"-"+t}},65441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(91033),o=n(48433),i=n(7581),a=n(2434),l=n(58809),s=n(59624),u=n(92470),c=n(64959),f=n(7569),d=n(51382),p=n(14714),h=n(11024),m=n(95371),y=n(43614),v=n(20798),b=n(66565),g=n(3429),w=n(42260),k=n(55691),O=n(17875),_=n(35284),S=n(49074),P=n(36786),j=n(8609),x=n(3499),E=n(12477),C=n(96950),A=n(61659),T=n(92882),M=n(80710),R=n(634),D=n(83980),I=n(95722),L=n(45546),V=n(68497),N=n(72065),F=n(48866),B=n(16299),U=n(2101),z=n(40079);t.default={transform:function(e,t){return t&&"class"===e&&this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t},handleBuilderSidebarScroll:function(e){e.scrollResizeObserver&&e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=new r.default((function(){setTimeout((function(){var t=e.refs,n=t.form,r=t.sidebar,o=n&&n.parentNode&&n.parentNode.clientHeight,i=r&&r.clientHeight,a=r&&r.parentNode&&r.parentNode.style;a&&o&&i&&(a.height=Math.max(i+20,o)+"px")}))})),e.scrollResizeObserver.observe(e.refs.form),e.scrollResizeObserver.observe(e.refs.sidebar)},clearBuilderSidebarScroll:function(e){e.scrollResizeObserver&&(e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=null)},defaultIconset:"glyphicon",iconClass:w.default,cssClasses:d.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:l.default,builderPlaceholder:s.default,builderSidebar:u.default,builderSidebarGroup:c.default,columns:f.default,datagrid:p.default,day:h.default,dialog:m.default,editgrid:y.default,field:v.default,file:b.default,icon:g.default,input:k.default,label:O.default,message:_.default,modaldialog:S.default,modaledit:P.default,multiValueRow:j.default,multiValueTable:x.default,panel:E.default,radio:C.default,resourceAdd:A.default,signature:T.default,survey:M.default,tab:R.default,table:D.default,well:I.default,wizard:L.default,wizardHeader:V.default,wizardHeaderClassic:N.default,wizardHeaderVertical:F.default,wizardNav:B.default,errorsList:z.default,alert:U.default}},25169:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n<div class="input-group">\n  '),n+="\n  ",e.prefix&&(n+='\n    <div class="input-group-addon" ref="prefix">\n      ',e.prefix instanceof HTMLElement?n+="\n        "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n      ":n+="\n        "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n      ",n+="\n    </div>\n  "),n+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n    <"+(null==(t=e.input.type)?"":t)+'\n      ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n      ',e.input.attr)n+="\n        "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n      ';n+='\n      id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n    >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n    ",e.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n",e.suffix&&(n+='\n  <div class="input-group-addon" ref="suffix">\n    ',e.suffix instanceof HTMLElement?n+="\n      "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n    ":n+="\n      "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n    ",n+="\n  </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n  </div>\n"),n+="\n",e.component.showCharCount&&(n+='\n<span class="text-muted pull-right" ref="charcount"></span>\n'),n+="\n",e.component.showWordCount&&(n+='\n<span class="text-muted pull-right" ref="wordcount"></span>\n'),n+"\n"}},81944:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},55691:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25169),o=n(81944);t.default={form:r.default,html:o.default}},83340:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n  class="control-label '+(null==(t=e.label.className)?"":t)+'"\n  for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n  ',e.label.hidden||(n+="\n    "+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n    ",e.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),n+="\n  "),n+"\n</label>\n"}},17875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83340);t.default={form:r.default}},68059:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<p class="help-block '+(null==(t=e.level)?"":t)+'">'+(null==(t=e.message)?"":t)+"</p>\n"}},35284:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68059);t.default={form:r.default}},64375:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n  <div ref="overlay" class="formio-dialog-overlay"></div>\n  <div ref="content" class="formio-modaledit-content">\n    <button\n      ref="close"\n      type="button"\n      role="button"\n      class="btn btn-primary btn-xs formio-modaledit-close">\n      '+(null==(t=e.t("Close"))?"":t)+'\n    </button>\n    <div ref="inner" class="reset-margins"></div>\n  </div>\n</div>\n'}},49074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64375);t.default={form:r.default}},90685:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div ref="container" class="formio-modaledit-view-container">\n  <button\n    ref="edit"\n    type="button"\n    role="button"\n    class="btn btn-xxs btn-warning formio-modaledit-edit">\n    <i class="'+(null==(t=e.iconClass("edit"))?"":t)+'"></i>\n  </button>\n  <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(t=e.content)?"":t)+"</div>\n</div>\n"}},36786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(90685);t.default={form:r.default}},1948:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<tr ref="row">\n  <td>\n    '+(null==(t=e.element)?"":t)+"\n  </td>\n  ",e.disabled||(n+='\n  <td>\n    <button type="button" class="btn btn-default" ref="removeRow">\n      <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n    </button>\n  </td>\n  '),n+"\n</tr>\n"}},8609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1948);t.default={form:r.default}},48021:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-bordered">\n  <tbody>\n  '+(null==(t=e.rows)?"":t)+"\n  ",e.disabled||(n+='\n  <tr>\n    <td colspan="2">\n      <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother,{_userInput:!0}))?"":t)+"</button>\n    </td>\n  </tr>\n  "),n+"\n  </tbody>\n</table>\n"}},3499:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(48021);t.default={form:r.default}},16094:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="panel panel-'+(null==(t=e.component.theme)?"":t)+'">\n  ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n  <div class="panel-heading"\n    ',e.component.collapsible&&(n+='\n    tabindex="0"\n    '),n+='\n    role="button"\n    aria-expanded="'+(null==(t=!e.component.collapsible||!e.collapsed)?"":t)+'"\n    aria-controls="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n    ref="header"\n  >\n    <h4 class="mb-0 panel-title">\n      ',e.component.collapsible&&(n+='\n        <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus":"minus"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n      '),n+="\n      ",e.component.hideLabel&&!e.builder||(n+="\n      "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n      "),n+="\n      ",e.component.tooltip&&(n+='\n        <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n      '),n+="\n    </h4>\n  </div>\n  "),n+="\n  ",e.collapsed&&!e.builder||(n+='\n  <div class="panel-body" ref="'+(null==(t=e.nestedKey)?"":t)+'" id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n  "),n+"\n</div>\n"}},12477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16094);t.default={form:r.default}},22159:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="input-group">\n  ',e.values.forEach((function(r){for(var o in n+='\n  <div class="'+(null==(t=e.input.attr.type)?"":t)+(null==(t=e.inline?"-inline":"")?"":t)+'" ref="wrapper">\n    <label class="control-label form-check-label label-position-'+(null==(t=e.component.optionsLabelPosition)?"":t)+'" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'">\n      ',"left"!==e.component.optionsLabelPosition&&"top"!==e.component.optionsLabelPosition||(n+="\n      <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n      "),n+="\n      <"+(null==(t=e.input.type)?"":t)+'\n        ref="input"\n        ',e.input.attr)n+="\n        "+(null==(t=o)?"":t)+'="'+(null==(t=e.input.attr[o])?"":t)+'"\n        ';n+='\n        value="'+(null==(t=r.value)?"":t)+'"\n        ',(e.value===r.value||"object"==typeof e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value])&&(n+="\n          checked=true\n        "),n+="\n        ",r.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'"\n      >\n      ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(n+="\n      <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n      "),n+="\n    </label>\n  </div>\n  "})),n+="\n</div>\n"}},31152:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='<div ref="value">\n  ')+"\n  "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label,{_userInput:!0})})).join(", "))?"":t)+"\n  </div>\n"}},96950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22159),o=n(31152);t.default={form:r.default,html:o.default}},72264:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<table class="table table-bordered">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(t=e.element)?"":t)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n          '+(null==(t=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":t)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},61659:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(72264);t.default={form:r.default}},16866:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(t=e.component.width)?"":t)+";height: "+(null==(t=e.component.height)?"":t)+';padding:0;margin:0;"\n  tabindex="'+(null==(t=e.component.tabindex||0)?"":t)+'"\n  ref="padBody"\n>\n\n  <a class="btn btn-sm btn-default signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(t=e.iconClass("refresh"))?"":t)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n  ',e.required&&(n+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(t=e.t(e.component.footer,{_userInput:!0}))?"":t)+"\n  </div>\n"),n+"\n"}},96141:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},92882:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16866),o=n(96141);t.default={form:r.default,html:o.default}},40207:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered">\n  <thead>\n    <tr>\n      <th></th>\n      ',e.component.values.forEach((function(r){n+='\n      <th style="text-align: center;">\n        '+(null==(t=e.t(r.label))?"":t)+"\n        ",r.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </th>\n      "})),n+="\n    </tr>\n  </thead>\n  <tbody>\n    ",e.component.questions.forEach((function(r){n+="\n    <tr>\n      <td>\n        "+(null==(t=e.t(r.label))?"":t)+"\n        ",r.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </td>\n      ",e.component.values.forEach((function(o){n+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(t=e.self.getInputName(r))?"":t)+'" value="'+(null==(t=o.value)?"":t)+'" id="'+(null==(t=e.key)?"":t)+"-"+(null==(t=r.value)?"":t)+"-"+(null==(t=o.value)?"":t)+'" ref="input">\n      </td>\n      '})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},55754:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',e.component.questions.forEach((function(r){n+="\n    <tr>\n      <th>"+(null==(t=e.t(r.label))?"":t)+"</th>\n      <td>\n      ",e.component.values.forEach((function(o){n+="\n        ",e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value]===o.value&&(n+="\n          "+(null==(t=e.t(o.label))?"":t)+"\n        "),n+="\n      "})),n+="\n      </td>\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},80710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40207),o=n(55754);t.default={form:r.default,html:o.default}},87603:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(r,o){n+='\n  <div class="panel panel-default">\n    <div class="panel-heading">\n      <h4 class="panel-title">'+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+'</h4>\n    </div>\n    <div class="panel-body" ref="'+(null==(t=e.tabKey)?"":t)+'">\n      '+(null==(t=e.tabComponents[o])?"":t)+"\n    </div>\n  </div>\n"})),n+="\n"}},17469:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="tab-container'+(null==(t=e.component.verticalLayout?" card-vertical":"")?"":t)+'">\n  <ul class="nav nav-tabs'+(null==(t=e.component.verticalLayout?" nav-tabs-vertical":"")?"":t)+'">\n    ',e.component.components.forEach((function(r,o){n+='\n    <li class="nav-item'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" role="presentation" ref="'+(null==(t=e.tabLikey)?"":t)+'">\n      <a class="nav-link'+(null==(t=e.currentTab===o?" active":"")?"":t)+(null==(t=e.component.verticalLayout?" nav-link-vertical":"")?"":t)+'" href="#'+(null==(t=r.key)?"":t)+'" ref="'+(null==(t=e.tabLinkKey)?"":t)+'">'+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</a>\n    </li>\n    "})),n+='\n  </ul>\n  <div class="tab-content">\n    ',e.component.components.forEach((function(r,o){n+='\n    <div role="tabpanel" class="tab-pane'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" ref="'+(null==(t=e.tabKey)?"":t)+'">'+(null==(t=e.tabComponents[o])?"":t)+"</div>\n    "})),n+="\n  </div>\n</div>\n"}},634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87603),o=n(17469);t.default={flat:r.default,form:o.default}},94957:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table\n    '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n    "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"table-condensed":"")?"":t)+'\n  ">\n  ',e.component.header&&e.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach((function(r){n+="\n      <th>"+(null==(t=e.t(r,{_userInput:!0}))?"":t)+"</th>\n      "})),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",e.tableComponents.forEach((function(r,o){n+='\n    <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n      ',r.forEach((function(r,i){n+='\n      <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=o)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=r)?"":t)+"</td>\n      "})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},83980:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94957);t.default={form:r.default}},25378:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="well">\n  <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n</div>\n"}},95722:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25378);t.default={form:r.default}},55040:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},24088:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="'+(null==(t=e.className)?"":t)+'">\n  <div style="position: relative;">\n    ',"wizardHeaderVertical"===e.wizardHeaderType?n+='\n      <div class="row">\n        <div class="col-sm-12 col-md-2">\n          '+(null==(t=e.wizardHeader)?"":t)+'\n        </div>\n        <div class="wizard-page col-sm-offset-1 col-md-offset-0 col-sm-10" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n          '+(null==(t=e.components)?"":t)+'\n        </div>\n      </div>\n      <div class="col-sm-offset-4 col-sm-7 col-md-offset-2 col-md-10" style="margin-top: 10px;">\n        '+(null==(t=e.wizardNav)?"":t)+"\n      </div>\n    ":n+=" \n      "+(null==(t=e.wizardHeader)?"":t)+'\n      <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n        '+(null==(t=e.components)?"":t)+"\n      </div>\n      "+(null==(t=e.wizardNav)?"":t)+"\n    ",n+" \n  </div>\n</div>"}},45546:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(55040),o=n(24088);t.default={form:o.default,builder:r.default}},38917:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header" ref="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <ul class="pagination">\n    ',e.panels.forEach((function(r,o){n+='\n    <li class="page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="">\n      <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">\n        '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n        ",r.tooltip&&e.currentPage===o&&(n+='\n        <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "})),n+="\n  </ul>\n</nav>\n"}},68497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38917);t.default={form:r.default}},18760:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <div class="classic-pagination row" style="border-bottom:0;">\n    ',e.panels.forEach((function(r,o){n+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(null==(t=e.currentPage<o?" disabled":"")?"":t)+"\n          "+(null==(t=e.currentPage===o?" active":"")?"":t)+"\n          "+(null==(t=e.currentPage>o?" complete":"")?"":t)+'">\n        <div class="text-center classic-pagination-title">'+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"</div>\n        ",e.panels.length>1&&(n+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),n+=' \n        <span ref="'+(null==(t=e.wizardKey)?"":t)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '})),n+="\n  </div>\n</nav>\n"}},72065:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18760);t.default={form:r.default}},34611:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <ul class="pagination">\n    ',e.panels.forEach((function(r,o){n+='\n    <li class="col-sm-offset-3 col-sm-6 col-md-offset-0 col-md-12 page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link" style="margin: 0px 0px 5px;">\n        '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n        ",r.tooltip&&e.currentPage===o&&(n+='\n        <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "})),n+="\n  </ul>\n</nav>\n"}},48866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34611);t.default={form:r.default}},81201:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="list-inline" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n  ',e.buttons.cancel&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-default btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n  </li>\n  "),n+="\n  ",e.buttons.previous&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous">'+(null==(t=e.t("previous"))?"":t)+"</button>\n  </li>\n  "),n+="\n  ",e.buttons.next&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next">'+(null==(t=e.t("next"))?"":t)+"</button>\n  </li>\n  "),n+="\n  ",e.buttons.submit&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit">'+(null==(t=e.t("submit"))?"":t)+"</button>\n  </li>\n  "),n+"\n</ul>\n"}},16299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81201);t.default={form:r.default}},68531:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65441);t.default={bootstrap3:r.default}},57062:function(e){var t;window,t=()=>(()=>{"use strict";var e={282:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var r=n(883);t.addChoice=function(e){var t=e.value,n=e.label,o=e.id,i=e.groupId,a=e.disabled,l=e.elementId,s=e.customProperties,u=e.placeholder,c=e.keyCode;return{type:r.ACTION_TYPES.ADD_CHOICE,value:t,label:n,id:o,groupId:i,disabled:a,elementId:l,customProperties:s,placeholder:u,keyCode:c}},t.filterChoices=function(e){return{type:r.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:r.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:r.ACTION_TYPES.CLEAR_CHOICES}}},783:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var r=n(883);t.addGroup=function(e){var t=e.value,n=e.id,o=e.active,i=e.disabled;return{type:r.ACTION_TYPES.ADD_GROUP,value:t,id:n,active:o,disabled:i}}},464:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var r=n(883);t.addItem=function(e){var t=e.value,n=e.label,o=e.id,i=e.choiceId,a=e.groupId,l=e.customProperties,s=e.placeholder,u=e.keyCode;return{type:r.ACTION_TYPES.ADD_ITEM,value:t,label:n,id:o,choiceId:i,groupId:a,customProperties:l,placeholder:s,keyCode:u}},t.removeItem=function(e,t){return{type:r.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:r.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var r=n(883);t.clearAll=function(){return{type:r.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:r.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:r.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,n){var r=this&&this.__spreadArray||function(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))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(996)),a=o(n(221)),l=n(282),s=n(783),u=n(464),c=n(137),f=n(520),d=n(883),p=n(789),h=n(799),m=n(655),y=o(n(744)),v=o(n(686)),b="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,g={},w=function(){function e(t,n){void 0===t&&(t="[data-choice]"),void 0===n&&(n={});var o=this;void 0===n.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=i.default.all([p.DEFAULT_CONFIG,e.defaults.options,n],{arrayMerge:function(e,t){return r([],t,!0)}}),n.shadowRoot&&(this.config.shadowRoot=n.shadowRoot);var a=(0,h.diff)(this.config,p.DEFAULT_CONFIG);a.length&&console.warn("Unknown config option(s) passed",a.join(", "));var l="string"==typeof t?document.querySelector(t):t;if(!(l instanceof HTMLInputElement||l instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=l.type===d.TEXT_TYPE,this._isSelectOneElement=l.type===d.SELECT_ONE_TYPE,this._isSelectMultipleElement=l.type===d.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),n.addItemFilter&&"function"!=typeof n.addItemFilter){var s=n.addItemFilter instanceof RegExp?n.addItemFilter:new RegExp(n.addItemFilter);this.config.addItemFilter=s.test.bind(s)}if(this._isTextElement?this.passedElement=new f.WrappedInput({element:l,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new f.WrappedSelect({element:l,classNames:this.config.classNames,template:function(e){return o._templates.option(e)}}),this.initialised=!1,this._store=new y.default,this._initialState=m.defaultState,this._currentState=m.defaultState,this._prevState=m.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,h.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var u=window.getComputedStyle(this.passedElement.element).direction;u!==window.getComputedStyle(document.documentElement).direction&&(this._direction=u)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var c=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(c)}if(this.passedElement.options&&this.passedElement.options.forEach((function(e){o._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:(0,h.parseCustomProperties)(e.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:t}),void(this.initialised=!0);this.init()}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return g},get templates(){return v.default}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var n=e.id,r=e.groupId,o=void 0===r?-1:r,i=e.value,a=void 0===i?"":i,l=e.label,s=void 0===l?"":l,c=o>=0?this._store.getGroupById(o):null;return this._store.dispatch((0,u.highlightItem)(n,!0)),t&&this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:n,value:a,label:s,groupValue:c&&c.value?c.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,n=e.groupId,r=void 0===n?-1:n,o=e.value,i=void 0===o?"":o,a=e.label,l=void 0===a?"":a,s=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,u.highlightItem)(t,!1)),this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:t,value:i,label:l,groupValue:s&&s.value?s.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(n){t._removeItem(n),e&&t._triggerChange(n.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow,t.dropdown.height),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(d.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,n){var r=e?n.value:n;return t.push(r),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,n,r){var o=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===n&&(n="label"),void 0===r&&(r=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(r&&this.clearChoices(),"function"==typeof e){var i=e(this);if("function"==typeof Promise&&i instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return o._handleLoadingState(!0)})).then((function(){return i})).then((function(e){return o.setChoices(e,t,n,r)})).catch((function(e){o.config.silent||console.error(e)})).then((function(){return o._handleLoadingState(!1)})).then((function(){return o}));if(!Array.isArray(i))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof i));return this.setChoices(i,t,n,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)o._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:n});else{var r=e;o._addChoice({value:r[t],label:r[n],isSelected:!!r.selected,isDisabled:!!r.disabled,placeholder:!!r.placeholder,customProperties:r.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,l.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,c.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,l.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,n=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,n=t.activeGroups,r=t.activeChoices,o=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var i=r.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));i.length>=1&&(o=this._createChoicesFragment(i,o)),o=this._createGroupsFragment(n,r,o)}else r.length>=1&&(o=this._createChoicesFragment(r,o));if(o.childNodes&&o.childNodes.length>0){var a=this._store.activeItems,l=this._canAddItem(a,this.input.value);if(l.response)this.choiceList.append(o),this._highlightChoice();else{var s=this._getTemplate("notice",l.notice);this.choiceList.append(s)}}else{var u=void 0;s=void 0,this._isSearching?(s="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,u=this._getTemplate("notice",s,"no-results")):(s="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,u=this._getTemplate("notice",s,"no-choices")),this.choiceList.append(u)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,n){var r=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var o=function(e){return t.filter((function(t){return r._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===r.config.renderSelectedChoices||!t.selected)}))}(e);if(o.length>=1){var i=r._getTemplate("choiceGroup",e);n.appendChild(i),r._createChoicesFragment(o,n,!0)}})),n},e.prototype._createChoicesFragment=function(e,t,n){var o=this;void 0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1);var i=this.config,a=i.renderSelectedChoices,l=i.searchResultLimit,s=i.renderChoiceLimit,u=this._isSearching?h.sortByScore:this.config.sorter,c=function(e){if("auto"!==a||o._isSelectOneElement||!e.selected){var n=o._getTemplate("choice",e,o.config.itemSelectText);t.appendChild(n)}},f=e;"auto"!==a||this._isSelectOneElement||(f=e.filter((function(e){return!e.selected})));var d=f.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),p=d.placeholderChoices,m=d.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(u);var y=f.length,v=this._isSelectOneElement?r(r([],p,!0),m,!0):m;this._isSearching?y=l:s&&s>0&&!n&&(y=s);for(var b=0;b<y;b+=1)v[b]&&c(v[b]);return t},e.prototype._createItemsFragment=function(e,t){var n=this;void 0===t&&(t=document.createDocumentFragment());var r=this.config,o=r.shouldSortItems,i=r.sorter,a=r.removeItemButton;return o&&!this._isSelectOneElement&&e.sort(i),this._isTextElement?this.passedElement.value=e.map((function(e){return e.value})).join(this.config.delimiter):this.passedElement.options=e,e.forEach((function(e){var r=n._getTemplate("item",e,a);t.appendChild(r)})),t},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(d.EVENTS.change,{value:e})},e.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},e.prototype._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var n=t.parentNode&&t.parentNode.dataset.id,r=n&&e.find((function(e){return e.id===parseInt(n,10)}));r&&(this._removeItem(r),this._triggerChange(r.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},e.prototype._handleItemAction=function(e,t,n){var r=this;if(void 0===n&&(n=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var o=t.dataset.id;e.forEach((function(e){e.id!==parseInt("".concat(o),10)||e.highlighted?!n&&e.highlighted&&r.unhighlightItem(e):r.highlightItem(e)})),this.input.focus()}},e.prototype._handleChoiceAction=function(e,t){if(e&&t){var n=t.dataset.id,r=n&&this._store.getChoiceById(n);if(r){var o=e[0]&&e[0].keyCode?e[0].keyCode:void 0,i=this.dropdown.isActive;r.keyCode=o,this.passedElement.triggerEvent(d.EVENTS.choice,{choice:r}),r.selected||r.disabled||this._canAddItem(e,r.value).response&&(this._addItem({value:r.value,label:r.label,choiceId:r.id,groupId:r.groupId,customProperties:r.customProperties,placeholder:r.placeholder,keyCode:r.keyCode}),this._triggerChange(r.value)),this.clearInput(),i&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},e.prototype._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],n=e.some((function(e){return e.highlighted}));this.config.editItems&&!n&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(n||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},e.prototype._startLoading=function(){this._store.dispatch((0,c.setIsLoading)(!0))},e.prototype._stopLoading=function(){this._store.dispatch((0,c.setIsLoading)(!1))},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(e){if(this.input.isFocussed){var t=this._store.choices,n=this.config,r=n.searchFloor,o=n.searchChoices,i=t.some((function(e){return!e.active}));if(null!=e&&e.length>=r){var a=o?this._searchChoices(e):0;this.passedElement.triggerEvent(d.EVENTS.search,{value:e,resultCount:a})}else i&&(this._isSearching=!1,this._store.dispatch((0,l.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var n=!0,r="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var o=(0,h.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(n=!1,r="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&o&&n&&(n=!1,r="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,r="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:n,notice:r}},e.prototype._searchChoices=function(e){var t="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(n," "))return 0;var o=this._store.searchableChoices,i=t,s=Object.assign(this.config.fuseOptions,{keys:r([],this.config.searchFields,!0),includeMatches:!0}),u=new a.default(o,s).search(i);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,l.filterChoices)(u)),u.length},e.prototype._addEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,n=this._store.activeItems,r=this.input.isFocussed,o=this.dropdown.isActive,i=this.itemList.hasChildren(),a=String.fromCharCode(t),l=/[^\x00-\x1F]/.test(a),s=d.KEY_CODES.BACK_KEY,u=d.KEY_CODES.DELETE_KEY,c=d.KEY_CODES.ENTER_KEY,f=d.KEY_CODES.A_KEY,p=d.KEY_CODES.ESC_KEY,h=d.KEY_CODES.UP_KEY,m=d.KEY_CODES.DOWN_KEY,y=d.KEY_CODES.PAGE_UP_KEY,v=d.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||o||!l||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),t){case f:return this._onSelectKey(e,i);case c:return this._onEnterKey({event:e,activeItems:n,hasActiveDropdown:o});case p:return this._onEscapeKey(o);case h:case y:case m:case v:return this._onDirectionKey({event:e,hasActiveDropdown:o});case u:case s:return this._onDeleteKey(e,n,r)}},e.prototype._onKeyUp=function(e){var t=e.target,n=e.keyCode,r=this.input.value,o=this._store.activeItems,i=this._canAddItem(o,r),a=d.KEY_CODES.BACK_KEY,s=d.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(i.notice&&r){var u=this._getTemplate("notice",i.notice);this.dropdown.element.innerHTML=u.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var c=(n===a||n===s)&&t&&!t.value,f=!this._isTextElement&&this._isSearching,p=this._canSearch&&i.response;c&&f?(this._isSearching=!1,this._store.dispatch((0,l.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var n=e.ctrlKey,r=e.metaKey;(n||r)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e){var t=e.event,n=e.activeItems,r=e.hasActiveDropdown,o=t.target,i=d.KEY_CODES.ENTER_KEY,a=o&&o.hasAttribute("data-button");if(this._isTextElement&&o&&o.value){var l=this.input.value;this._canAddItem(n,l).response&&(this.hideDropdown(!0),this._addItem({value:l}),this._triggerChange(l),this.clearInput())}if(a&&(this._handleButtonAction(n,o),t.preventDefault()),r){var s=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));s&&(n[0]&&(n[0].keyCode=i),this._handleChoiceAction(n,s)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e){var t=e.event,n=e.hasActiveDropdown,r=t.keyCode,o=t.metaKey,i=d.KEY_CODES.DOWN_KEY,a=d.KEY_CODES.PAGE_UP_KEY,l=d.KEY_CODES.PAGE_DOWN_KEY;if(n||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var s=r===i||r===l?1:-1,u="[data-choice-selectable]",c=void 0;if(o||r===l||r===a)c=s>0?this.dropdown.element.querySelector("".concat(u,":last-of-type")):this.dropdown.element.querySelector(u);else{var f=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=f?(0,h.getAdjacentEl)(f,u,s):this.dropdown.element.querySelector(u)}c&&((0,h.isScrolledIntoView)(c,this.choiceList.element,s)||this.choiceList.scrollToChildElement(c,s),this._highlightChoice(c)),t.preventDefault()}},e.prototype._onDeleteKey=function(e,t,n){var r=e.target;this._isSelectOneElement||r.value||!n||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(b&&this.choiceList.element.contains(t)){var n=this.choiceList.element.firstElementChild,r="ltr"===this._direction?e.offsetX>=n.offsetWidth:e.offsetX<n.offsetLeft;this._isScrollingOnIe=r}if(t!==this.input.element){var o=t.closest("[data-button],[data-item],[data-choice]");if(o instanceof HTMLElement){var i=e.shiftKey,a=this._store.activeItems,l=o.dataset;"button"in l?this._handleButtonAction(a,o):"item"in l?this._handleItemAction(a,o,i):"choice"in l&&this._handleChoiceAction(a,o)}e.preventDefault()}}},e.prototype._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},e.prototype._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,n=this,r=e.target;r&&this.containerOuter.element.contains(r)&&((t={})[d.TEXT_TYPE]=function(){r===n.input.element&&n.containerOuter.addFocusState()},t[d.SELECT_ONE_TYPE]=function(){n.containerOuter.addFocusState(),r===n.input.element&&n.showDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){r===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,n=this,r=e.target;if(r&&this.containerOuter.element.contains(r)&&!this._isScrollingOnIe){var o=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[d.TEXT_TYPE]=function(){r===n.input.element&&(n.containerOuter.removeFocusState(),o&&n.unhighlightAll(),n.hideDropdown(!0))},t[d.SELECT_ONE_TYPE]=function(){n.containerOuter.removeFocusState(),(r===n.input.element||r===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){r===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),o&&n.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,c.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var r=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),r?this._highlightPosition=n.indexOf(r):(r=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(r=n[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(d.EVENTS.highlightChoice,{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},e.prototype._addItem=function(e){var t=e.value,n=e.label,r=void 0===n?null:n,o=e.choiceId,i=void 0===o?-1:o,a=e.groupId,l=void 0===a?-1:a,s=e.customProperties,c=void 0===s?{}:s,f=e.placeholder,p=void 0!==f&&f,h=e.keyCode,m=void 0===h?-1:h,y="string"==typeof t?t.trim():t,v=this._store.items,b=r||y,g=i||-1,w=l>=0?this._store.getGroupById(l):null,k=v?v.length+1:1;this.config.prependValue&&(y=this.config.prependValue+y.toString()),this.config.appendValue&&(y+=this.config.appendValue.toString()),this._store.dispatch((0,u.addItem)({value:y,label:b,id:k,choiceId:g,groupId:l,customProperties:c,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(k),this.passedElement.triggerEvent(d.EVENTS.addItem,{id:k,value:y,label:b,customProperties:c,groupValue:w&&w.value?w.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,n=e.value,r=e.label,o=e.customProperties,i=e.choiceId,a=e.groupId,l=a&&a>=0?this._store.getGroupById(a):null;t&&i&&(this._store.dispatch((0,u.removeItem)(t,i)),this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:t,value:n,label:r,customProperties:o,groupValue:l&&l.value?l.value:null}))},e.prototype._addChoice=function(e){var t=e.value,n=e.label,r=void 0===n?null:n,o=e.isSelected,i=void 0!==o&&o,a=e.isDisabled,s=void 0!==a&&a,u=e.groupId,c=void 0===u?-1:u,f=e.customProperties,d=void 0===f?{}:f,p=e.placeholder,h=void 0!==p&&p,m=e.keyCode,y=void 0===m?-1:m;if(null!=t){var v=this._store.choices,b=r||t,g=v?v.length+1:1,w="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(g);this._store.dispatch((0,l.addChoice)({id:g,groupId:c,elementId:w,value:t,label:b,disabled:s,customProperties:d,placeholder:h,keyCode:y})),i&&this._addItem({value:t,label:b,choiceId:g,customProperties:d,placeholder:h,keyCode:y})}},e.prototype._addGroup=function(e){var t=this,n=e.group,r=e.id,o=e.valueKey,i=void 0===o?"value":o,a=e.labelKey,l=void 0===a?"label":a,u=(0,h.isType)("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),c=r||Math.floor((new Date).valueOf()*Math.random()),f=!!n.disabled&&n.disabled;u?(this._store.dispatch((0,s.addGroup)({value:n.label,id:c,active:!0,disabled:f})),u.forEach((function(e){var n=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[i],label:(0,h.isType)("Object",e)?e[l]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:c,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,s.addGroup)({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},e.prototype._getTemplate=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return(t=this._templates[e]).call.apply(t,r([this,this.config],n,!1))},e.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,h.strToEl)),this._templates=(0,i.default)(v.default,t)},e.prototype._createElements=function(){this.containerOuter=new f.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new f.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new f.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new f.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new f.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new f.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},e.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},e.prototype._addPredefinedGroups=function(e){var t=this,n=this.passedElement.placeholderOption;n&&n.parentNode&&"SELECT"===n.parentNode.tagName&&this._addChoice({value:n.value,label:n.innerHTML,isSelected:n.selected,isDisabled:n.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},e.prototype._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var n=e.some((function(e){return e.selected})),r=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,o){var i=e.value,a=void 0===i?"":i,l=e.label,s=e.customProperties,u=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var c=!(!t._isSelectOneElement||n||o!==r)||e.selected,f=e.disabled;t._addChoice({value:a,label:l,isSelected:!!c,isDisabled:!!f,placeholder:!!u,customProperties:s})}else t._addChoice({value:a,label:l,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:s})}))},e.prototype._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},e.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,h.getType)(e).toLowerCase()]()},e.prototype._findAndSelectChoiceByValue=function(e){var t=this,n=this._store.choices.find((function(n){return t.config.valueComparer(n.value,e)}));n&&!n.selected&&this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})},e.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return e?e.text:null}var t=this.config,n=t.placeholder,r=t.placeholderValue,o=this.passedElement.element.dataset;if(n){if(r)return r;if(o.placeholder)return o.placeholder}return null},e}();t.default=w},613:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(799),o=n(883),i=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,o=e.position;this.element=t,this.classNames=r,this.type=n,this.position=o,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.shouldFlip=function(e,t,n){if("number"!=typeof e)return!1;var r=!1;return"auto"===this.position?(r=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches)&&n.getBoundingClientRect().top-t<0&&(r=!1):"top"===this.position&&(r=!0),r},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e,t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e,t,this.element)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===o.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===o.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,r.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=i},217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){var t=e.element,n=e.type,r=e.classNames;this.element=t,this.classNames=r,this.type=n,this.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.element.getBoundingClientRect().height},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}();t.default=n},520:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var o=r(n(217));t.Dropdown=o.default;var i=r(n(613));t.Container=i.default;var a=r(n(11));t.Input=a.default;var l=r(n(624));t.List=l.default;var s=r(n(541));t.WrappedInput=s.default;var u=r(n(982));t.WrappedSelect=u.default},11:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(799),o=n(883),i=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,o=e.preventPaste;this.element=t,this.type=n,this.classNames=r,this.preventPaste=o,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,r.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,t=e.style,n=e.value,r=e.placeholder;t.minWidth="".concat(r.length+1,"ch"),t.width="".concat(n.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==o.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=i},624:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(883),o=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=""},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var n=this;if(e){var r=this.element.offsetHeight,o=this.element.scrollTop+r,i=e.offsetHeight,a=e.offsetTop+i,l=t>0?this.element.scrollTop+a-o:e.offsetTop;requestAnimationFrame((function(){n._animateScroll(l,t)}))}},e.prototype._scrollDown=function(e,t,n){var r=(n-e)/t,o=r>1?r:1;this.element.scrollTop=e+o},e.prototype._scrollUp=function(e,t,n){var r=(e-n)/t,o=r>1?r:1;this.element.scrollTop=e-o},e.prototype._animateScroll=function(e,t){var n=this,o=r.SCROLLING_SPEED,i=this.element.scrollTop,a=!1;t>0?(this._scrollDown(i,o,e),i<e&&(a=!0)):(this._scrollUp(i,o,e),i>e&&(a=!0)),a&&requestAnimationFrame((function(){n._animateScroll(e,t)}))},e}();t.default=o},730:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(799),o=function(){function e(e){var t=e.element,n=e.classNames;if(this.element=t,this.classNames=n,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,r.dispatchEvent)(this.element,e,t)},e}();t.default=o},541: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.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=t.element,r=t.classNames,o=t.delimiter,i=e.call(this,{element:n,classNames:r})||this;return i.delimiter=o,i}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(i(n(730)).default);t.default=a},982: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.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=t.element,r=t.classNames,o=t.template,i=e.call(this,{element:n,classNames:r})||this;return i.template=o,i}return o(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,n=document.createDocumentFragment();e.forEach((function(e){return r=e,o=t.template(r),void n.appendChild(o);var r,o})),this.appendDocFragment(n)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},t}(i(n(730)).default);t.default=a},883:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var r=n(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:r.sortByAlpha,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat((0,r.sanitise)(e),'"</b>')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},359:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},285:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},533:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},187: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}),o(n(18),t),o(n(978),t),o(n(948),t),o(n(359),t),o(n(285),t),o(n(533),t),o(n(287),t),o(n(132),t),o(n(837),t),o(n(598),t),o(n(369),t),o(n(37),t),o(n(47),t),o(n(923),t),o(n(876),t)},287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},132:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},837:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},598:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},37:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},47:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},923:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},876:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},799:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join("")},t.generateId=function(e,n){var r=e.id||e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return r=r.replace(/(:|\.|\[|\]|,)/g,""),"".concat(n,"-").concat(r)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,n){return null!=n&&(0,t.getType)(n)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,n){void 0===n&&(n=1);for(var r="".concat(n>0?"next":"previous","ElementSibling"),o=e[r];o;){if(o.matches(t))return o;o=o[r]}return o},t.isScrolledIntoView=function(e,t,n){return void 0===n&&(n=1),!!e&&(n>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},t.strToEl=(n=document.createElement("div"),function(e){var t=e.trim();n.innerHTML=t;for(var r=n.children[0];n.firstChild;)n.removeChild(n.firstChild);return r}),t.sortByAlpha=function(e,t){var n=e.value,r=e.label,o=void 0===r?n:r,i=t.value,a=t.label,l=void 0===a?i:a;return o.localeCompare(l,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},t.sortByScore=function(e,t){var n=e.score,r=void 0===n?0:n,o=t.score;return r-(void 0===o?0:o)},t.dispatchEvent=function(e,t,n){void 0===n&&(n=null);var r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});return e.dispatchEvent(r)},t.existsInArray=function(e,t,n){return void 0===n&&(n="value"),e.some((function(e){return"string"==typeof t?e[n]===t.trim():e[n]===t}))},t.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},t.diff=function(e,t){var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.filter((function(e){return r.indexOf(e)<0}))},t.parseCustomProperties=function(e){if(void 0!==e)try{return JSON.parse(e)}catch(t){return e}return{}}},273:function(e,t){var n=this&&this.__spreadArray||function(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))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_CHOICE":var o=r,i={id:o.id,elementId:o.elementId,groupId:o.groupId,value:o.value,label:o.label||o.value,disabled:o.disabled||!1,selected:!1,active:!0,score:9999,customProperties:o.customProperties,placeholder:o.placeholder||!1};return n(n([],e,!0),[i],!1);case"ADD_ITEM":var a=r;return a.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(a.choiceId),10)&&(t.selected=!0),t})):e;case"REMOVE_ITEM":var l=r;return l.choiceId&&l.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(l.choiceId),10)&&(t.selected=!1),t})):e;case"FILTER_CHOICES":var s=r;return e.map((function(e){var t=e;return t.active=s.results.some((function(e){var n=e.item,r=e.score;return n.id===t.id&&(t.score=r,!0)})),t}));case"ACTIVATE_CHOICES":var u=r;return e.map((function(e){var t=e;return t.active=u.active,t}));case"CLEAR_CHOICES":return t.defaultState;default:return e}}},871:function(e,t){var n=this&&this.__spreadArray||function(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))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_GROUP":var o=r;return n(n([],e,!0),[{id:o.id,value:o.value,active:o.active,disabled:o.disabled}],!1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0;var o=n(791),i=r(n(52)),a=r(n(871)),l=r(n(273)),s=r(n(502)),u=n(799);t.defaultState={groups:[],items:[],choices:[],loading:!1};var c=(0,o.combineReducers)({items:i.default,groups:a.default,choices:l.default,loading:s.default});t.default=function(e,n){var r=e;if("CLEAR_ALL"===n.type)r=t.defaultState;else if("RESET_TO"===n.type)return(0,u.cloneObject)(n.state);return c(r,n)}},52:function(e,t){var n=this&&this.__spreadArray||function(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))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_ITEM":var o=r;return n(n([],e,!0),[{id:o.id,choiceId:o.choiceId,groupId:o.groupId,value:o.value,label:o.label,active:!0,highlighted:!1,customProperties:o.customProperties,placeholder:o.placeholder||!1,keyCode:null}],!1).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var t=e;return t.id===r.id&&(t.active=!1),t}));case"HIGHLIGHT_ITEM":var i=r;return e.map((function(e){var t=e;return t.id===i.id&&(t.highlighted=i.highlighted),t}));default:return e}}},502:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,n){return void 0===e&&(e=t.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?n.isLoading:e}},744:function(e,t,n){var r=this&&this.__spreadArray||function(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))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(791),a=o(n(655)),l=function(){function e(){this._store=(0,i.createStore)(a.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return e.prototype.subscribe=function(e){this._store.subscribe(e)},e.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(e.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItems",{get:function(){return this.items.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholderChoice",{get:function(){return r([],this.choices,!0).reverse().find((function(e){return!0===e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var n=!0===e.active&&!1===e.disabled,r=t.some((function(e){return!0===e.active&&!1===e.disabled}));return n&&r}),[])},enumerable:!1,configurable:!0}),e.prototype.isLoading=function(){return this.state.loading},e.prototype.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},e.prototype.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},e}();t.default=l},686:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={containerOuter:function(e,t,n,r,o,i,a){var l=e.classNames.containerOuter,s=Object.assign(document.createElement("div"),{className:l});return s.dataset.type=i,t&&(s.dir=t),r&&(s.tabIndex=0),n&&(s.setAttribute("role",o?"combobox":"listbox"),o&&s.setAttribute("aria-autocomplete","list")),s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-expanded","false"),a&&s.setAttribute("aria-labelledby",a),s},containerInner:function(e){var t=e.classNames.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var n=e.classNames,r=n.list,o=n.listSingle,i=n.listItems;return Object.assign(document.createElement("div"),{className:"".concat(r," ").concat(t?o:i)})},placeholder:function(e,t){var n,r=e.allowHTML,o=e.classNames.placeholder;return Object.assign(document.createElement("div"),((n={className:o})[r?"innerHTML":"innerText"]=t,n))},item:function(e,t,n){var r,o,i=e.allowHTML,a=e.classNames,l=a.item,s=a.button,u=a.highlightedState,c=a.itemSelectable,f=a.placeholder,d=t.id,p=t.value,h=t.label,m=t.customProperties,y=t.active,v=t.disabled,b=t.highlighted,g=t.placeholder,w=Object.assign(document.createElement("div"),((r={className:l})[i?"innerHTML":"innerText"]=h,r));if(Object.assign(w.dataset,{item:"",id:d,value:p,customProperties:m}),y&&w.setAttribute("aria-selected","true"),v&&w.setAttribute("aria-disabled","true"),g&&w.classList.add(f),w.classList.add(b?u:c),n){v&&w.classList.remove(c),w.dataset.deletable="";var k="Remove item",O=Object.assign(document.createElement("button"),((o={type:"button",className:s})[i?"innerHTML":"innerText"]=k,o));O.setAttribute("aria-label","".concat(k,": '").concat(p,"'")),O.dataset.button="",w.appendChild(O)}return w},choiceList:function(e,t){var n=e.classNames.list,r=Object.assign(document.createElement("div"),{className:n});return t||r.setAttribute("aria-multiselectable","true"),r.setAttribute("role","listbox"),r},choiceGroup:function(e,t){var n,r=e.allowHTML,o=e.classNames,i=o.group,a=o.groupHeading,l=o.itemDisabled,s=t.id,u=t.value,c=t.disabled,f=Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(c?l:"")});return f.setAttribute("role","group"),Object.assign(f.dataset,{group:"",id:s,value:u}),c&&f.setAttribute("aria-disabled","true"),f.appendChild(Object.assign(document.createElement("div"),((n={className:a})[r?"innerHTML":"innerText"]=u,n))),f},choice:function(e,t,n){var r,o=e.allowHTML,i=e.classNames,a=i.item,l=i.itemChoice,s=i.itemSelectable,u=i.selectedState,c=i.itemDisabled,f=i.placeholder,d=t.id,p=t.value,h=t.label,m=t.groupId,y=t.elementId,v=t.disabled,b=t.selected,g=t.placeholder,w=Object.assign(document.createElement("div"),((r={id:y})[o?"innerHTML":"innerText"]=h,r.className="".concat(a," ").concat(l),r));return b&&w.classList.add(u),g&&w.classList.add(f),w.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(w.dataset,{choice:"",id:d,value:p,selectText:n}),v?(w.classList.add(c),w.dataset.choiceDisabled="",w.setAttribute("aria-disabled","true")):(w.classList.add(s),w.dataset.choiceSelectable=""),w},input:function(e,t){var n=e.classNames,r=n.input,o=n.inputCloned,i=Object.assign(document.createElement("input"),{type:"text",name:"search_terms",className:"".concat(r," ").concat(o),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return i.setAttribute("role","textbox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-label",t),i},dropdown:function(e){var t=e.classNames,n=t.list,r=t.listDropdown,o=document.createElement("div");return o.classList.add(n,r),o.setAttribute("aria-expanded","false"),o},notice:function(e,t,n){var r,o=e.allowHTML,i=e.classNames,a=i.item,l=i.itemChoice,s=i.noResults,u=i.noChoices;void 0===n&&(n="");var c=[a,l];return"no-choices"===n?c.push(u):"no-results"===n&&c.push(s),Object.assign(document.createElement("div"),((r={})[o?"innerHTML":"innerText"]=t,r.className=c.join(" "),r))},option:function(e){var t=e.label,n=e.value,r=e.customProperties,o=e.active,i=e.disabled,a=new Option(t,n,!1,o);return r&&(a.dataset.customProperties="".concat(r)),a.disabled=!!i,a}};t.default=n},996:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function l(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?s.arrayMerge(e,n,s):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,s):r(n,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var s=l;e.exports=s},221:(e,t,n)=>{function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===u(e)}function o(e){return"string"==typeof e}function i(e){return"number"==typeof e}function a(e){return"object"==typeof e}function l(e){return null!=e}function s(e){return!e.trim().length}function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n.r(t),n.d(t,{default:()=>F});const c=Object.prototype.hasOwnProperty;class f{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=d(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function d(e){let t=null,n=null,i=null,a=1,l=null;if(o(e)||r(e))i=e,t=p(e),n=h(e);else{if(!c.call(e,"name"))throw new Error("Missing name property in key");const r=e.name;if(i=r,c.call(e,"weight")&&(a=e.weight,a<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(r));t=p(r),n=h(r),l=e.getFn}return{path:t,id:n,weight:a,src:i,getFn:l}}function p(e){return r(e)?e:e.split(".")}function h(e){return r(e)?e.join("."):e}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let n=[],s=!1;const c=(e,t,f)=>{if(l(e))if(t[f]){const d=e[t[f]];if(!l(d))return;if(f===t.length-1&&(o(d)||i(d)||function(e){return!0===e||!1===e||function(e){return a(e)&&null!==e}(e)&&"[object Boolean]"==u(e)}(d)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(d));else if(r(d)){s=!0;for(let e=0,n=d.length;e<n;e+=1)c(d[e],t,f+1)}else t.length&&c(d,t,f+1)}else n.push(e)};return c(e,o(t)?t.split("."):t,0),s?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const y=/[^ ]+/g;class v{constructor({getFn:e=m.getFn,fieldNormWeight:t=m.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){const o=t.match(y).length;if(n.has(o))return n.get(o);const i=1/Math.pow(o,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(o,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!l(e)||s(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,i)=>{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(a))if(r(a)){let e=[];const t=[{nestedArrIndex:-1,value:a}];for(;t.length;){const{nestedArrIndex:n,value:i}=t.pop();if(l(i))if(o(i)&&!s(i)){let t={v:i,i:n,n:this.norm.get(i)};e.push(t)}else r(i)&&i.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[i]=e}else if(o(a)&&!s(a)){let e={v:a,n:this.norm.get(a)};n.$[i]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function b(e,t,{getFn:n=m.getFn,fieldNormWeight:r=m.fieldNormWeight}={}){const o=new v({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(d)),o.setSources(t),o.create(),o}function g(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=m.distance,ignoreLocation:i=m.ignoreLocation}={}){const a=t/e.length;if(i)return a;const l=Math.abs(r-n);return o?a+l/o:l?1:a}const w=32;function k(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class O{constructor(e,{location:t=m.location,threshold:n=m.threshold,distance:r=m.distance,includeMatches:o=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:s=m.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:s},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:k(e),startIndex:t})},c=this.pattern.length;if(c>w){let e=0;const t=c%w,n=c-t;for(;e<n;)u(this.pattern.substr(e,w),e),e+=w;if(t){const e=c-w;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:l,ignoreLocation:s}=this.options;let u=[],c=0,f=!1;this.chunks.forEach((({pattern:t,alphabet:d,startIndex:p})=>{const{isMatch:h,score:y,indices:v}=function(e,t,n,{location:r=m.location,distance:o=m.distance,threshold:i=m.threshold,findAllMatches:a=m.findAllMatches,minMatchCharLength:l=m.minMatchCharLength,includeMatches:s=m.includeMatches,ignoreLocation:u=m.ignoreLocation}={}){if(t.length>w)throw new Error("Pattern length exceeds max of 32.");const c=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let p=i,h=d;const y=l>1||s,v=y?Array(f):[];let b;for(;(b=e.indexOf(t,h))>-1;){let e=g(t,{currentLocation:b,expectedLocation:d,distance:o,ignoreLocation:u});if(p=Math.min(e,p),h=b+c,y){let e=0;for(;e<c;)v[b+e]=1,e+=1}}h=-1;let k=[],O=1,_=c+f;const S=1<<c-1;for(let r=0;r<c;r+=1){let i=0,l=_;for(;i<l;)g(t,{errors:r,currentLocation:d+l,expectedLocation:d,distance:o,ignoreLocation:u})<=p?i=l:_=l,l=Math.floor((_-i)/2+i);_=l;let s=Math.max(1,d-l+1),m=a?f:Math.min(d+l,f)+c,b=Array(m+2);b[m+1]=(1<<r)-1;for(let i=m;i>=s;i-=1){let a=i-1,l=n[e.charAt(a)];if(y&&(v[a]=+!!l),b[i]=(b[i+1]<<1|1)&l,r&&(b[i]|=(k[i+1]|k[i])<<1|1|k[i+1]),b[i]&S&&(O=g(t,{errors:r,currentLocation:a,expectedLocation:d,distance:o,ignoreLocation:u}),O<=p)){if(p=O,h=a,h<=d)break;s=Math.max(1,2*d-h)}}if(g(t,{errors:r+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>p)break;k=b}const P={isMatch:h>=0,score:Math.max(.001,O)};if(y){const e=function(e=[],t=m.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let a=e[i];a&&-1===r?r=i:a||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(v,l);e.length?s&&(P.indices=e):P.isMatch=!1}return P}(e,t,d,{location:r+p,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:s});h&&(f=!0),c+=y,h&&v&&(u=[...u,...v])}));let d={isMatch:f,score:f?c/this.chunks.length:1};return f&&n&&(d.indices=u),d}}class _{constructor(e){this.pattern=e}static isMultiMatch(e){return S(e,this.multiRegex)}static isSingleMatch(e){return S(e,this.singleRegex)}search(){}}function S(e,t){const n=e.match(t);return n?n[1]:null}class P extends _{constructor(e,{location:t=m.location,threshold:n=m.threshold,distance:r=m.distance,includeMatches:o=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:s=m.ignoreLocation}={}){super(e),this._bitapSearch=new O(e,{location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:s})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class j extends _{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],o=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}}const x=[class extends _{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},j,class extends _{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends _{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends _{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends _{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends _{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},P],E=x.length,C=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,A=new Set([P.type,j.type]);const T=[];function M(e,t){for(let n=0,r=T.length;n<r;n+=1){let r=T[n];if(r.condition(e,t))return new r(e,t)}return new O(e,t)}const R="$and",D=e=>!(!e.$and&&!e.$or),I=e=>({[R]:Object.keys(e).map((t=>({[t]:e[t]})))});function L(e,t,{auto:n=!0}={}){const i=e=>{let l=Object.keys(e);const s=(e=>!!e.$path)(e);if(!s&&l.length>1&&!D(e))return i(I(e));if((e=>!r(e)&&a(e)&&!D(e))(e)){const r=s?e.$path:l[0],i=s?e.$val:e[r];if(!o(i))throw new Error((e=>`Invalid value for key ${e}`)(r));const a={keyId:h(r),pattern:i};return n&&(a.searcher=M(i,t)),a}let u={children:[],operator:l[0]};return l.forEach((t=>{const n=e[t];r(n)&&n.forEach((e=>{u.children.push(i(e))}))})),u};return D(e)||(e=I(e)),i(e)}function V(e,t){const n=e.matches;t.matches=[],l(n)&&n.forEach((e=>{if(!l(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={indices:n,value:r};e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}function N(e,t){t.score=e.score}class F{constructor(e,t={},n){this.options={...m,...t},this.options.useExtendedSearch,this._keyStore=new f(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=t||b(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n];e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:a,sortFn:l,ignoreFieldNorm:s}=this.options;let u=o(e)?o(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=m.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(u,{ignoreFieldNorm:s}),a&&u.sort(l),i(t)&&t>-1&&(u=u.slice(0,t)),function(e,t,{includeMatches:n=m.includeMatches,includeScore:r=m.includeScore}={}){const o=[];return n&&o.push(V),r&&o.push(N),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))}(u,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=M(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:o})=>{if(!l(e))return;const{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&r.push({item:e,idx:n,matches:[{score:a,value:e,norm:o,indices:s}]})})),r}_searchLogical(e){const t=L(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o});return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[];for(let i=0,a=e.children.length;i<a;i+=1){const a=e.children[i],l=n(a,t,r);if(l.length)o.push(...l);else if(e.operator===R)return[]}return o},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(l(e)){let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}_searchObjectList(e){const t=M(e,this.options),{keys:n,records:r}=this._myIndex,o=[];return r.forEach((({$:e,i:r})=>{if(!l(e))return;let i=[];n.forEach(((n,r)=>{i.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),i.length&&o.push({idx:r,item:e,matches:i})})),o}_findMatches({key:e,value:t,searcher:n}){if(!l(t))return[];let o=[];if(r(t))t.forEach((({v:t,i:r,n:i})=>{if(!l(t))return;const{isMatch:a,score:s,indices:u}=n.searchIn(t);a&&o.push({score:s,key:e,value:t,idx:r,norm:i,indices:u})}));else{const{v:r,n:i}=t,{isMatch:a,score:l,indices:s}=n.searchIn(r);a&&o.push({score:l,key:e,value:r,norm:i,indices:s})}return o}}F.version="6.6.2",F.createIndex=b,F.parseIndex=function(e,{getFn:t=m.getFn,fieldNormWeight:n=m.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new v({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},F.config=m,F.parseQuery=L,function(...e){T.push(...e)}(class{constructor(e,{isCaseSensitive:t=m.isCaseSensitive,includeMatches:n=m.includeMatches,minMatchCharLength:r=m.minMatchCharLength,ignoreLocation:o=m.ignoreLocation,findAllMatches:i=m.findAllMatches,location:a=m.location,threshold:l=m.threshold,distance:s=m.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:l,distance:s},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(C).filter((e=>e&&!!e.trim())),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,a=-1;for(;!i&&++a<E;){const e=x[a];let n=e.isMultiMatch(o);n&&(r.push(new e(n,t)),i=!0)}if(!i)for(a=-1;++a<E;){const e=x[a];let n=e.isSingleMatch(o);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,i=[],a=0;for(let r=0,l=t.length;r<l;r+=1){const l=t[r];i.length=0,o=0;for(let t=0,r=l.length;t<r;t+=1){const r=l[t],{isMatch:s,indices:u,score:c}=r.search(e);if(!s){a=0,o=0,i.length=0;break}if(o+=1,a+=c,n){const e=r.constructor.type;A.has(e)?i=[...i,...u]:i.push(u)}}if(o){let e={isMatch:!0,score:a/o};return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}})},791:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:()=>c,applyMiddleware:()=>b,bindActionCreators:()=>y,combineReducers:()=>h,compose:()=>v,createStore:()=>d,legacy_createStore:()=>p});var s="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function f(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(l(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(l(2));var o=e,i=t,a=[],u=a,p=!1;function h(){u===a&&(u=a.slice())}function m(){if(p)throw new Error(l(3));return i}function y(e){if("function"!=typeof e)throw new Error(l(4));if(p)throw new Error(l(5));var t=!0;return h(),u.push(e),function(){if(t){if(p)throw new Error(l(6));t=!1,h();var n=u.indexOf(e);u.splice(n,1),a=null}}}function v(e){if(!f(e))throw new Error(l(7));if(void 0===e.type)throw new Error(l(8));if(p)throw new Error(l(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=a=u,n=0;n<t.length;n++)(0,t[n])();return e}function b(e){if("function"!=typeof e)throw new Error(l(10));o=e,v({type:c.REPLACE})}function g(){var e,t=y;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(l(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return v({type:c.INIT}),(r={dispatch:v,subscribe:y,getState:m,replaceReducer:b})[s]=g,r}var p=d;function h(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw new Error(l(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(l(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var u=a[s],c=n[u],f=e[u],d=c(f,t);if(void 0===d)throw t&&t.type,new Error(l(14));o[u]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(e).length)?o:e}}function m(e,t){return function(){return t(e.apply(this,arguments))}}function y(e,t){if("function"==typeof e)return m(e,t);if("object"!=typeof e||null===e)throw new Error(l(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=m(o,t))}return n}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(l(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=v.apply(void 0,i)(n.dispatch),a(a({},n),{},{dispatch:r})}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.d(r,{default:()=>o});var e=n(373),t=n.n(e);n(187),n(883),n(789),n(686);const o=t()})(),r.default})(),e.exports=t()},95295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38571);t.default={framework:"semantic",templates:r.default}},38571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5487);t.default={semantic:r.default}},89345:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<div\n  ",e.attrs)n+="\n    ",n+="class"===r?"\n      "+(null==(t=r)?"":t)+'="ui message '+(null==(t=e.attrs[r])?"":t)+'"\n    ':"\n      "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n    ',n+="\n  ";return n+"\n>"+(null==(t=e.message)?"":t)+"</div>\n"}},35692:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(89345);t.default={form:r.default}},23138:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder ui grid formbuilder">\n  <div class="four wide column formcomponents">\n    '+(null==(t=e.sidebar)?"":t)+'\n  </div>\n  <div class="twelve wide column formarea" ref="form">\n    '+(null==(t=e.form)?"":t)+"\n  </div>\n</div>\n"}},84594:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23138);t.default={form:r.default}},16751:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-component" ref="dragComponent">\n  <div class="component-btn-group" data-noattach="true">\n    <div class="ui button mini icon primary component-settings-button-edit", ref="editComponent">\n      <i class="'+(null==(t=e.iconClass("cog"))?"":t)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-copy" ref="copyComponent">\n      <i class="'+(null==(t=e.iconClass("copy"))?"":t)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-paste" ref="pasteComponent">\n      <i class="'+(null==(t=e.iconClass("save"))?"":t)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-edit-json" ref="editJson">\n      <i class="'+(null==(t=e.iconClass("wrench"))?"":t)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-move" ref="moveComponent">\n      <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></i>\n    </div>\n    <div class="ui button mini icon secondary component-settings-button-remove" ref="removeComponent">\n      <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n    </div>\n  </div>\n  '+(null==(t=e.html)?"":t)+"\n</div>\n"}},61967:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16751);t.default={form:r.default}},84558:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-components drag-container '+(null==(t=e.type)?"":t)+'" ref="'+(null==(t=e.key)?"":t)+'-container">\n  '+(null==(t=e.html)?"":t)+"\n</div>\n"}},13332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84558);t.default={form:r.default}},26680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid">\n  <div class="eight wide column">\n    <h3 class="lead">'+(null==(t=e.t(e.componentInfo.title))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+'</h3>\n  </div>\n  <div class="eight wide column">\n    <div class="right floated" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(t=e.componentInfo.documentation)?"":t)+'" target="_blank">\n        <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"> '+(null==(t=e.t("Help"))?"":t)+'</i>\n      </a>\n    </div>\n  </div>\n</div>\n<div class="ui grid">\n  <div class="',e.preview?n+="eight":n+="sixteen",n+=' wide column">\n    <div ref="editForm">\n        '+(null==(t=e.editForm)?"":t)+"\n    </div>\n    ",e.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="ui button negative" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\n    "),n+="\n  </div>\n  ",e.preview&&(n+='\n  <div class="eight wide column">\n    <div class="ui top attached block header">\n      '+(null==(t=e.t("Preview"))?"":t)+'\n    </div>\n    <div class="ui bottom attached segment" ref="preview">\n      '+(null==(t=e.preview)?"":t)+"\n    </div>\n    ",e.componentInfo.help&&(n+='\n    <div class="ui secondary segment formio-settings-help">\n      '+(null==(t=e.componentInfo.help)?"":t)+"\n    </div>\n    "),n+='\n    <div style="margin-top: 10px;">\n      <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="ui button negative" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\n  </div>\n  "),n+"\n</div>\n"}},85097:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26680);t.default={form:r.default}},36634:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div\n  class="ui info message no-drag"\n  style="text-align:center; margin-bottom: 5px;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(t=e.position)?"":t)+'"\n>\n  Drag and Drop a form component\n</div>\n'}},59144:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(36634);t.default={form:r.default}},21102:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="builder-sidebar-'+(null==(t=e.id)?"":t)+'" class="ui segments" ref="sidebar">\n  ',e.groups.forEach((function(e){n+="\n    "+(null==(t=e)?"":t)+"\n  "})),n+="\n</div>\n"}},67767:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21102);t.default={form:r.default}},3414:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui segment secondary form-builder-panel" style="padding: 0" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\n  <div class="form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="ui button basic fluid builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(t=e.groupKey)?"":t)+'"\n        data-parent="'+(null==(t=e.groupId)?"":t)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(t=e.t(e.group.title))?"":t)+'\n      </button>\n    </h5>\n  </div>\n</div>\n<div class="ui segment" style="padding: 0">\n  <div\n    class="panel-collapse collapse '+(null==(t=e.group.default?" in":"")?"":t)+'"\n    data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n    data-default="'+(null==(t=e.group.default)?"":t)+'"\n    id="group-'+(null==(t=e.groupKey)?"":t)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="card-body panel-body no-drop" ref="sidebar-container">\n      ',e.group.componentOrder.forEach((function(r){n+='\n      <span\n        data-group="'+(null==(t=e.groupKey)?"":t)+'"\n        data-key="'+(null==(t=e.group.components[r].key)?"":t)+'"\n        data-type="'+(null==(t=e.group.components[r].schema.type)?"":t)+'"\n        class="ui button mini primary fluid formcomponent drag-copy"\n      >\n        ',e.group.components[r].icon&&(n+='\n          <i class="'+(null==(t=e.iconClass(e.group.components[r].icon))?"":t)+'" style="margin-right: 5px;"></i>\n        '),n+="\n        "+(null==(t=e.t(e.group.components[r].title))?"":t)+"\n        </span>\n      "})),n+="\n      "+(null==(t=e.subgroups.join(""))?"":t)+"\n    </div>\n  </div>\n</div>\n"}},18840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3414);t.default={form:r.default}},17517:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio builder ui grid formbuilder">\n  <div class="four wide column formcomponents">\n    '+(null==(t=e.sidebar)?"":t)+'\n  </div>\n  <div class="twelve wide column formarea">\n    <div class="ui breadcrumb" style="margin-bottom: 0.5em">\n      ',e.pages.forEach((function(r,o){n+='\n        <div title="'+(null==(t=r.title)?"":t)+'" class="',o===e.self.page?n+=" active section ":n+=" section ",n+=' wizard-page-label" ref="gotoPage">'+(null==(t=r.title)?"":t)+'</div>\n        <div class="divider">/</div>\n      '})),n+='\n      <div title="'+(null==(t=e.t("Create Page"))?"":t)+'" class="section wizard-page-label" ref="addPage"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t("Page"))?"":t)+'</div>\n    </div>\n    <div ref="form">\n      '+(null==(t=e.form)?"":t)+"\n    </div>\n  </div>\n</div>\n"}},29733:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17517);t.default={form:r.default}},50052:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<"+(null==(t=e.input.type)?"":t)+'\n  ref="button"\n  class="ui button '+(null==(t=e.transform("theme",e.component.theme))?"":t)+" "+(null==(t=e.component.customClass)?"":t)+'"\n  ',e.input.attr)n+="\n  "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n  ';return n+="\n>\n",e.component.leftIcon&&(n+='<i class="'+(null==(t=e.component.leftIcon)?"":t)+'"></i>&nbsp;'),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(n+='\n  <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n'),n+="\n",e.component.rightIcon&&(n+='&nbsp;<i class="'+(null==(t=e.component.rightIcon)?"":t)+'"></i>'),n+"\n</"+(null==(t=e.input.type)?"":t)+'>\n<div ref="buttonMessageContainer">\n  <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},12749:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n"}},21614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(50052),o=n(12749);t.default={form:r.default,html:o.default}},1237:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<div class="ui checkbox">\n  <'+(null==(t=e.input.type)?"":t)+'\n    ref="input"\n    id="'+(null==(t=e.id)?"":t)+'"\n    ',e.input.attr)n+="\n    "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n    ';return n+="\n    ",e.checked&&(n+="checked=true"),n+="\n    >\n  </"+(null==(t=e.input.type)?"":t)+'>\n  <label class="'+(null==(t=e.input.labelClass)?"":t)+'" for="'+(null==(t=e.id)?"":t)+'">\n    '+(null==(t=e.input.content)?"":t)+"\n    ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+="\n  </label>\n  ",e.component.tooltip&&(n+='\n    <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n  '),n+"\n</div>\n"}},51266:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label class="'+(null==(t=e.input.labelClass)?"":t)+'">\n    '+(null==(t=e.input.content)?"":t)+"\n    ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+='\n</label>\n<div ref="value">',e.checked?n+="True":n+="False",n+"</div>\n"}},48424:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1237),o=n(51266);t.default={form:r.default,html:o.default}},46530:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid" style="width: 100%">\n    ',e.component.columns.forEach((function(r,o){n+='\n    <div class="'+(null==(t=e.transform("columns",r.width))?"":t)+' wide column" ref="'+(null==(t=e.columnKey)?"":t)+'">\n      '+(null==(t=e.columnComponents[o])?"":t)+"\n    </div>\n    "})),n+="\n</div>\n"}},43960:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46530);t.default={form:r.default}},23475:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.id)?"":t)+'" class="field '+(null==(t=e.classes)?"":t)+'"',e.styles&&(n+=' style="'+(null==(t=e.styles)?"":t)+'"'),n+=' ref="component">\n  ',e.visible&&(n+="\n  "+(null==(t=e.children)?"":t)+'\n  <div ref="messageContainer"></div>\n  '),n+"\n</div>\n"}},71427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23475);t.default={form:r.default}},51284:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"has-error":"error","is-invalid":"error","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},15894:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table datagrid-table\n    '+(null==(t=e.component.striped?"striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"celled":"")?"":t)+"\n    "+(null==(t=e.component.hover?"selectable":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"compact":"padded")?"":t)+'\n    " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",e.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",e.component.reorder&&(n+="<th></th>"),n+="\n      ",e.columns.forEach((function(r){n+='\n        <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n          '+(null==(t=r.hideLabel?"":e.t(r.label||r.title))?"":t)+"\n          ",r.tooltip&&(n+=' <i ref="tooltip" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n        </th>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+="\n      <th>\n        ",e.hasAddButton&&e.hasTopSubmit&&(n+='\n        <button class="ui button primary" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another"))?"":t)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody">\n    ',e.rows.forEach((function(r,o){n+="\n    ",e.hasGroups&&e.groups[o]&&(n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n      <td\n        ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n        colspan="'+(null==(t=e.numColumns)?"":t)+'"\n        class="datagrid-group-label">'+(null==(t=e.groups[o].label)?"":t)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n      ',e.component.reorder&&(n+='\n        <td>\n          <button type="button" class="formio-drag-button ui icon button"><i aria-hidden="true" class="bars icon"></i></button>\n        </td>\n      '),n+="\n      ",e.columns.forEach((function(o){n+='\n        <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n          '+(null==(t=r[o.key])?"":t)+"\n        </td>\n      "})),n+="\n      ",e.hasExtraColumn&&(n+="\n        ",e.hasRemoveButtons&&(n+='\n        <td>\n          <button type="button" class="btn-xss ui icon button secondary formio-'+(null==(t=e.component.type)?"":t)+'-remove" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow">\n            <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",e.canAddColumn&&(n+='\n        <td ref="'+(null==(t=e.key)?"":t)+'-container">\n          '+(null==(t=e.placeholder)?"":t)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n  ",e.hasAddButton&&e.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(t=e.numColumns+1)?"":t)+'">\n        <button class="ui button primary" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another"))?"":t)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},46719:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table datagrid-table\n    '+(null==(t=e.component.striped?"striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"celled":"")?"":t)+"\n    "+(null==(t=e.component.hover?"selectable":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"compact":"padded")?"":t)+'\n    ">\n  ',e.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",e.columns.forEach((function(r){n+='\n        <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n          '+(null==(t=r.hideLabel?"":e.t(r.label||r.title))?"":t)+"\n          ",r.tooltip&&(n+=' <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n        </th>\n      "})),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",e.rows.forEach((function(r){n+="\n    <tr>\n      ",e.columns.forEach((function(o){n+='\n        <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n          '+(null==(t=r[o.key])?"":t)+"\n        </td>\n      "})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},99126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15894),o=n(46719);t.default={form:r.default,html:o.default}},20173:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid">\n  ',e.dayFirst&&e.showDay&&(n+='\n  <div class="four wide column">\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "+(null==(t=e.day)?"":t)+"\n  </div>\n  "),n+="\n  ",e.showMonth&&(n+='\n  <div class="five wide column">\n    <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="">'+(null==(t=e.t("Month"))?"":t)+"</label>\n    "+(null==(t=e.month)?"":t)+"\n  </div>\n  "),n+="\n  ",!e.dayFirst&&e.showDay&&(n+='\n  <div class="four wide column">\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "+(null==(t=e.day)?"":t)+"\n  </div>\n  "),n+="\n  ",e.showYear&&(n+='\n  <div class="seven wide column">\n    <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="">'+(null==(t=e.t("Year"))?"":t)+"</label>\n    "+(null==(t=e.year)?"":t)+"\n  </div>\n  "),n+'\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},20446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20173);t.default={form:r.default}},97483:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-listgroup ui celled list">\n  ',e.header&&(n+='\n  <div class="item list-group-header">\n    '+(null==(t=e.header)?"":t)+"\n  </div>\n  "),n+="\n  ",e.rows.forEach((function(r,o){n+='\n  <div class="item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n    '+(null==(t=r)?"":t)+"\n    ",e.openRows[o]&&!e.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save"))?"":t)+"</button>\n      ",e.component.removeRow&&(n+='\n      <button class="ui button secondary" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel"))?"":t)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(t=e.errors[o])?"":t)+"\n      </div>\n    </div>\n  </div>\n  "})),n+="\n  ",e.footer&&(n+='\n  <div class="item list-group-footer">\n    '+(null==(t=e.footer)?"":t)+"\n  </div>\n  "),n+="\n</div>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="ui button primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n  <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another"))?"":t)+"\n</button>\n"),n+="\n"}},5264:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-listgroup ui celled list">\n  ',e.header&&(n+='\n  <div class="item list-group-header">\n    '+(null==(t=e.header)?"":t)+"\n  </div>\n  "),n+="\n  ",e.rows.forEach((function(r,o){n+='\n  <div class="item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n    '+(null==(t=r)?"":t)+"\n    ",e.openRows[o]&&!e.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save"))?"":t)+"</button>\n      ",e.component.removeRow&&(n+='\n      <button class="ui button secondary" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel"))?"":t)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(t=e.errors[o])?"":t)+"\n      </div>\n    </div>\n  </div>\n  "})),n+="\n  ",e.footer&&(n+='\n  <div class="item list-group-footer">\n    '+(null==(t=e.footer)?"":t)+"\n  </div>\n  "),n+="\n</div>\n"}},96943:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(97483),o=n(5264);t.default={form:r.default,html:o.default}},95463:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<p>"+(null==(t=e.t("error"))?"":t)+"</p>\n<ul>\n  ",e.errors.forEach((function(r){n+='\n    <li\n      data-component-key = "'+(null==(t=r.keyOrPath)?"":t)+'"\n      aria-label = "'+(null==(t=r.message)?"":t)+". "+(null==(t=e.t("errorsListNavigationMessage"))?"":t)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(t=r.message)?"":t)+"</span></li>\n  "})),n+="\n</ul>\n\n"}},69240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(95463);t.default={form:r.default}},64129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="field-wrapper\n  '+(null==(t=e.isRightPosition?"field-wrapper--reverse":"")?"":t)+'">\n  ',e.label.hidden||(n+='\n    <div class="field-label\n      '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n      style="'+(null==(t=e.labelStyles)?"":t)+'">\n    '+(null==(t=e.labelMarkup)?"":t)+"\n    </div>\n  "),n+="\n\n  ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n    <div class="field-label\n      '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n      style="'+(null==(t=e.labelStyles)?"":t)+'">\n      <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n    </div>\n  '),n+='\n\n  <div class="filed-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n    '+(null==(t=e.element)?"":t)+"\n  </div>\n</div>\n\n",e.component.description&&(n+='\n  <div class="form-text text-muted">'+(null==(t=e.t(e.component.description))?"":t)+"</div>\n"),n+"\n"}},99809:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n  "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n    <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n  "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n  <div class="help-block">'+(null==(t=e.t(e.component.description))?"":t)+"</div>\n"),n+"\n"}},4061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99809),o=n(64129);t.default={form:r.default,align:o.default}},54427:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<fieldset>\n  <legend ref="header" class="'+(null==(t=e.component.collapsible?"formio-clickable":"")?"":t)+'">\n    '+(null==(t=e.t(e.component.legend))?"":t)+"\n    ",e.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),n+="\n  </legend>  ",e.collapsed||(n+='\n  <div class="card-body" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n  "),n+"\n</fieldset>\n"}},72297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54427);t.default={form:r.default}},75762:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.self.imageUpload?(n+="\n  <div>\n    ",e.files.forEach((function(r){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(t=r.originalName||r.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n          ',e.disabled||(n+='\n            <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "})),n+="\n  </div>\n"):(n+='\n  <div class="ui celled list">\n    <div class="item">\n      <div class="ui grid">\n        ',e.disabled||(n+='\n          <div class="one wide column"></div>\n        '),n+='\n        <div class="',e.self.hasTypes?n+="nine":n+="twelve",n+=' wide column"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n        <div class="three wide column"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n        ",e.self.hasTypes&&(n+='\n          <div class="three wide column"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n        "),n+="\n      </div>\n    </div>\n    ",e.files.forEach((function(r){n+='\n      <li class="list-group-item">\n        <div class="ui grid">\n          ',e.disabled||(n+='\n            <div class="one wide column"><i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="',e.self.hasTypes?n+="nine":n+="twelve",n+=' wide column">\n            ',e.component.uploadOnly?n+="\n              "+(null==(t=r.originalName||r.name)?"":t)+"\n            ":n+='\n              <a href="'+(null==(t=r.url||"#")?"":t)+'" target="_blank" ref="fileLink">'+(null==(t=r.originalName||r.name)?"":t)+"</a>\n            ",n+='\n          </div>\n          <div class="three wide column">'+(null==(t=e.fileSize(r.size))?"":t)+"</div>\n          ",e.self.hasTypes&&!e.disabled&&(n+='\n            <div class="three wide column">\n              <select class="file-type" ref="fileType">\n                ',e.component.fileTypes.map((function(e){n+='\n                  <option class="test" value="'+(null==(t=e.value)?"":t)+'" ',e.label===r.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.label)?"":t)+"</option>\n                "})),n+="\n              </select>\n            </div>\n          "),n+="\n          ",e.self.hasTypes&&e.disabled&&(n+='\n          <div class="three wide column">'+(null==(t=r.fileType)?"":t)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "})),n+="\n    </div>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n  ",e.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n    </div>\n  ":e.self.cameraMode?n+='\n    <div>\n      <video class="video" autoplay="true" ref="videoPlayer"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Take Picture"))?"":t)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+'>\n      <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n        ",e.self.imageUpload&&e.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(t=e.t("Use Camera,"))?"":t)+"</a>\n        "),n+="\n        "+(null==(t=e.t("or"))?"":t)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(t=e.t("browse"))?"":t)+"</a>\n    </div>\n  "),n+="\n"),n+="\n",e.statuses.forEach((function(r){n+='\n  <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n    <div class="ui grid">\n      <div class="fileName control-label thirteen wide column">'+(null==(t=r.originalName)?"":t)+' <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize control-label three wide column">'+(null==(t=e.fileSize(r.size))?"":t)+'</div>\n    </div>\n    <div class="ui grid">\n      <div class="thirteen wide column">\n        ',"progress"===r.status?n+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=r.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=r.progress)?"":t)+'">\n              <span class="sr-only">'+(null==(t=r.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n            </div>\n          </div>\n        ":n+='\n          <div class="bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n  <div class="alert alert-warning">\n    ',e.component.storage||(n+="\n      <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n    "),n+="\n    ",e.support.filereader||(n+="\n      <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.formdata||(n+="\n      <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n    "),n+="\n    ",e.support.progress||(n+="\n      <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>\n    "),n+="\n  </div>\n"),n+="\n"}},7007:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75762);t.default={form:r.default}},84481:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<i ref="'+(null==(t=e.ref)?"":t)+'" class="'+(null==(t=e.className)?"":t)+'" style="'+(null==(t=e.styles)?"":t)+'">'+(null==(t=e.content)?"":t)+"</i>\n"}},63751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84481);t.default={form:r.default}},83836:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r={"plus-squre-o":"plus square outline","minus-squre-o":"minus square outline","question-sign":"question circle","remove-circle":"trash alternate outline","new-window":"external alternate","files-o":"file outline",move:"arrows alternate",link:"linkify"};return r.hasOwnProperty(t)&&(t=r[t]),t=(t=(t=t||"").replace(/-/g," ")).replace(/ o$/," outline"),n?"icon ".concat(t," loading"):"icon ".concat(t)}},5487:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(84594),i=n(61967),a=n(13332),l=n(85097),s=n(59144),u=n(67767),c=n(18840),f=n(29733),d=n(21614),p=n(48424),h=n(43960),m=n(71427),y=n(51284),v=n(99126),b=n(20446),g=n(96943),w=n(4061),k=n(72297),O=n(7007),_=n(63751),S=n(83836),P=n(89504),j=n(61206),x=n(11042),E=n(72763),C=n(30490),A=n(71580),T=n(29367),M=n(88576),R=n(1746),D=n(56533),I=n(60587),L=n(14668),V=n(95339),N=n(88020),F=n(31533),B=n(83725),U=n(62441),z=n(12923),H=n(4599),q=n(76709),W=n(42317),K=n(86739),Y=n(7130),G=n(54815),$=n(86858),J=n(35692),X=n(69240);t.default=r(r({transform:function(e,t){if(!t)return t;var n={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};switch(e){case"columns":return n.hasOwnProperty(t.toString())?n[t.toString()]:t;case"class":return this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t}return t},defaultIconset:"icon",iconClass:S.default,cssClasses:y.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:l.default,builderPlaceholder:s.default,builderSidebar:u.default,builderSidebarGroup:c.default,builderWizard:f.default,button:d.default,checkbox:p.default,columns:h.default,component:m.default,datagrid:v.default,day:b.default,editgrid:g.default,field:w.default,fieldset:k.default,file:O.default,icon:_.default,input:P.default,label:j.default,loader:x.default,loading:E.default,message:C.default,multiValueRow:A.default,multiValueTable:T.default,panel:M.default,radio:R.default,resourceAdd:D.default,select:I.default,selectOption:L.default,signature:V.default,survey:N.default,tab:F.default,tree:U.default},z.default),{table:B.default,webform:H.default,well:q.default,wizard:W.default,wizardHeader:K.default,wizardHeaderClassic:Y.default,wizardHeaderVertical:G.default,wizardNav:$.default,alert:J.default,errorsList:X.default})},10090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,n+='<div class="ui '+(null==(t=e.component.editor?"":"input")?"":t)+" fluid "+(null==(t=e.suffix?" right":"")?"":t)+(null==(t=e.prefix||e.suffix?" labeled":"")?"":t)+'">\n',e.prefix&&(n+='\n<label class="ui label" ref="prefix">\n',e.prefix instanceof HTMLElement?n+="\n  "+(null==(t=e.t(e.prefix.outerHTML))?"":t)+"\n":n+="\n  "+(null==(t=e.t(e.prefix))?"":t)+"\n",n+="\n</label>\n"),n+="\n",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n<"+(null==(t=e.input.type)?"":t)+'\n  ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n  ',e.input.attr)n+="\n  "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n  ';n+='\n  id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n<div ref="input"></div>\n'),n+="\n",e.component.showCharCount&&(n+='\n<span class="ui right floated" ref="charcount"></span>\n'),n+="\n",e.component.showWordCount&&(n+='\n<span class="ui right floated" ref="wordcount"></span>\n'),n+="\n",e.suffix&&(n+='\n<div class="ui label" ref="suffix">\n',e.suffix instanceof HTMLElement?n+="\n  "+(null==(t=e.t(e.suffix.outerHTML))?"":t)+"\n":n+="\n  "+(null==(t=e.t(e.suffix))?"":t)+"\n",n+="\n</div>\n"),n+"\n</div>\n"}},2305:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},89504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10090),o=n(2305);t.default={form:r.default,html:o.default}},31520:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n  class="'+(null==(t=e.label.className)?"":t)+'"\n  for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n  ',e.label.hidden||(n+="\n    "+(null==(t=e.t(e.component.label))?"":t)+"\n    ",e.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),n+="\n  "),n+"\n</label>\n"}},61206:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31520);t.default={form:r.default}},83345:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-loader">\n  <div class="loader-wrapper">\n    <div class="ui active centered inline loader"></div>\n  </div>\n</div>\n'}},11042:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83345);t.default={form:r.default}},23432:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},72763:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23432);t.default={form:r.default}},18182:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="ui pointing red basic label '+(null==(t=e.level)?"":t)+'">\n  '+(null==(t=e.message)?"":t)+"\n</div>\n"}},30490:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18182);t.default={form:r.default}},9637:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<tr ref="row">\n  <td>\n    '+(null==(t=e.element)?"":t)+"\n  </td>\n  ",e.disabled||(n+='\n  <td>\n    <button type="button" class="ui icon button secondary" ref="removeRow">\n      <i class="trash icon"></i>\n    </button>\n  </td>\n  '),n+"\n</tr>\n"}},71580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9637);t.default={form:r.default}},42412:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui celled table">\n  <tbody>\n  '+(null==(t=e.rows)?"":t)+"\n  ",e.disabled||(n+='\n  <tr>\n    <td colspan="2">\n      <button class="ui button primary" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother))?"":t)+"</button>\n    </td>\n  </tr>\n  "),n+"\n  </tbody>\n</table>\n"}},29367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42412);t.default={form:r.default}},4860:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n<h4 class="ui top attached block header '+(null==(t=e.component.className)?"":t)+'" ref="header">\n  ',e.component.collapsible&&(n+='\n    <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n  '),n+="\n  ",e.component.hideLabel&&!e.builder||(n+="\n  "+(null==(t=e.t(e.component.title))?"":t)+"\n  "),n+="\n  ",e.component.tooltip&&(n+='\n    <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n  '),n+="\n</h4>\n"),n+="\n",e.collapsed&&!e.builder||(n+='\n<div class="ui bottom attached segment" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n  '+(null==(t=e.children)?"":t)+"\n</div>\n"),n+"\n"}},88576:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4860);t.default={form:r.default}},84275:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="fields '+(null==(t=e.inline?"inline":"grouped")?"":t)+'">\n  ',e.values.forEach((function(r){for(var o in n+='\n  <div class="field">\n    <div class="ui '+(null==(t="radio"===e.input.attr.type?"radio":"")?"":t)+' checkbox" ref="wrapper">\n      <'+(null==(t=e.input.type)?"":t)+'\n        ref="input"\n        ',e.input.attr)n+="\n        "+(null==(t=o)?"":t)+'="'+(null==(t=e.input.attr[o])?"":t)+'"\n        ';n+='\n        value="'+(null==(t=r.value)?"":t)+'"\n        ',(e.value===r.value||"object"==typeof e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value])&&(n+="\n          checked=true\n        "),n+="\n        ",r.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'"\n      >\n      <label class="" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'">\n        <span>'+(null==(t=e.t(r.label))?"":t)+"</span>\n      </label>\n    </div>\n  </div>\n  "})),n+="\n</div>\n"}},2227:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='<div ref="value">\n  ')+"\n  "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label)})).join(", "))?"":t)+"\n  </div>\n"}},1746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84275),o=n(2227);t.default={form:r.default,html:o.default}},25396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<table class="ui table celled">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(t=e.element)?"":t)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="ui button primary" ref="addResource">\n          <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n          '+(null==(t=e.t(e.component.addResourceLabel||"Add Resource"))?"":t)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},56533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25396);t.default={form:r.default}},5721:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<select\n  ref="'+(null==(t=e.input.ref?e.input.ref:"selectContainer")?"":t)+'"\n  class="ui search dropdown"\n  '+(null==(t=e.input.multiple?"multiple":"")?"":t)+"\n  ",e.input.attr)n+="\n  "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n  ';return n+="\n  ",e.input.attr.id||(n+='\n  id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+="\n>"+(null==(t=e.selectOptions)?"":t)+'</select>\n<input type="text"\n       class="formio-select-autocomplete-input"\n       ref="autocompleteInput"\n       ',e.input.attr.autocomplete&&(n+='\n       autocomplete="'+(null==(t=e.input.attr.autocomplete)?"":t)+'"\n       '),n+'\n       tabindex="-1"\n/>\n'}},80260:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+"</div>\n"}},60587:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5721),o=n(80260);t.default={form:r.default,html:o.default}},93593:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<option "+(null==(t=e.selected?'selected="selected"':"")?"":t)+"\n  value='"+(null==(t=e.option.value)?"":t)+"'\n  ",e.attrs)n+="\n  "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n  ';return n+"\n  >\n  "+(null==(t=e.t(e.option.label))?"":t)+"\n</option>\n"}},60345:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.selected&&(n+=null==(t=e.t(e.option.label))?"":t),n+"\n"}},14668:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(93593),o=n(60345);t.default={form:r.default,html:o.default}},90538:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(t=e.component.width)?"":t)+";height: "+(null==(t=e.component.height)?"":t)+';padding:0;margin:0;"\n  tabindex="'+(null==(t=e.component.tabindex||0)?"":t)+'"\n  ref="padBody"\n>\n\n  <a class="ui basic button mini icon signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(t=e.iconClass("refresh"))?"":t)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n  ',e.required&&(n+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: none;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(t=e.t(e.component.footer))?"":t)+"\n  </div>\n"),n+"\n"}},96515:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},95339:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(90538),o=n(96515);t.default={form:r.default,html:o.default}},87090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table striped celled">\n  <thead>\n    <tr>\n      <th></th>\n      ',e.component.values.forEach((function(r){n+='\n      <th style="text-align: center;">'+(null==(t=e.t(r.label))?"":t)+"</th>\n      "})),n+="\n    </tr>\n  </thead>\n  <tbody>\n    ",e.component.questions.forEach((function(r){n+="\n    <tr>\n      <td>"+(null==(t=e.t(r.label))?"":t)+"</td>\n      ",e.component.values.forEach((function(o){n+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(t=e.self.getInputName(r))?"":t)+'" value="'+(null==(t=o.value)?"":t)+'" id="'+(null==(t=e.key)?"":t)+"-"+(null==(t=r.value)?"":t)+"-"+(null==(t=o.value)?"":t)+'" ref="input">\n      </td>\n      '})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},13556:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table striped celled">\n  <tbody>\n    ',e.component.questions.forEach((function(r){n+="\n    <tr>\n      <th>"+(null==(t=e.t(r.label))?"":t)+"</th>\n      <td>\n      ",e.component.values.forEach((function(o){n+="\n        ",e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value]===o.value&&(n+="\n          "+(null==(t=e.t(o.label))?"":t)+"\n        "),n+="\n      "})),n+="\n      </td>\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},88020:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87090),o=n(13556);t.default={form:r.default,html:o.default}},74216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(r,o){n+='\n  <h4 class="ui top attached block header">'+(null==(t=e.t(r.label))?"":t)+'</h4>\n  <div class="ui bottom attached segment">\n    '+(null==(t=e.tabComponents[o])?"":t)+"\n  </div>\n"})),n+="\n"}},25238:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="tab-container'+(null==(t=e.component.verticalLayout?" card-vertical":"")?"":t)+'">\n  <div class="ui top attached tabular menu'+(null==(t=e.component.verticalLayout?" nav-tabs-vertical":"")?"":t)+'">\n    ',e.component.components.forEach((function(r,o){n+='\n    <a class="item'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" role="presentation" ref="'+(null==(t=e.tabLinkKey)?"":t)+'">'+(null==(t=e.t(r.label))?"":t)+"</a>\n    "})),n+="\n  </div>\n  ",e.component.components.forEach((function(r,o){n+='\n  <div role="tabpanel" class="ui bottom attached tab segment'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" ref="'+(null==(t=e.tabKey)?"":t)+'"">'+(null==(t=e.tabComponents[o])?"":t)+"</div>\n  "})),n+="\n</div>\n"}},31533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74216),o=n(25238);t.default={flat:r.default,form:o.default}},949:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table\n    '+(null==(t=e.component.striped?"striped":"")?"":t)+"\n    "+(null==(t=e.component.bordered?"celled":"")?"":t)+"\n    "+(null==(t=e.component.hover?"selectable":"")?"":t)+"\n    "+(null==(t=e.component.condensed?"compact":"padded")?"":t)+'\n  ">\n  ',e.component.header&&e.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",e.component.header.forEach((function(r){n+="\n      <th>"+(null==(t=e.t(r))?"":t)+"</th>\n      "})),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",e.tableComponents.forEach((function(r,o){n+='\n    <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n      ',r.forEach((function(r,o){n+='\n      <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=e.rowIndex)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=r)?"":t)+"</td>\n      "})),n+="\n    </tr>\n    "})),n+="\n  </tbody>\n</table>\n"}},83725:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(949);t.default={form:r.default}},37552:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.node.isRoot?n+='\n  <div class="ui relaxed list">\n  <div class="item" ref="root" role="listitem">\n  ':n+='\n  <div ref="node" class="item tree__level" role="listitem">\n    ',n+="\n    ",e.content&&(n+='\n    <div ref="content" class="tree__node-content content">\n      '+(null==(t=e.content)?"":t)+"\n    </div>\n    "),n+="\n    ",e.childNodes&&e.childNodes.length&&(n+='\n    <div ref="childNodes" class="tree__node-children list" role="list">\n      '+(null==(t=e.childNodes.join(""))?"":t)+"\n    </div>\n    "),n+="\n    ",e.node.isRoot?n+="\n    </div>\n  </div>\n  ":n+="\n  </div>\n",n+"\n"}},62441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37552);t.default={form:r.default}},16016:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="node-edit">\n  <div ref="nodeEdit">'+(null==(t=e.children)?"":t)+"</div>\n  ",e.readOnly||(n+='\n    <div class="node-actions">\n      <button ref="saveNode" class="ui mini primary button saveNode">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button ref="cancelNode" class="ui mini negative button cancelNode">'+(null==(t=e.t("Cancel"))?"":t)+"\n    </div>\n  "),n+"\n</div>\n"}},12923:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16016),o=n(47379);t.default={treeView:{form:o.default},treeEdit:{form:r.default}}},47379:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid">\n  <div class="row">\n    ',e.values.forEach((function(e){n+='\n    <div class="two wide column">\n      '+(null==(t=e)?"":t)+"\n    </div>\n    "})),n+='\n    <div class="five wide column">\n      <div class="ui mini right floated buttons">\n        ',e.node.hasChildren&&(n+='\n        <button ref="toggleNode" class="ui button toggleNode">'+(null==(t=e.t(e.node.collapsed?"Expand":"Collapse"))?"":t)+'</button>\n        <div class="or"></div>\n        '),n+="\n        ",e.readOnly||(n+='\n        <button ref="addChild" class="ui button primary addChild">'+(null==(t=e.t("Add"))?"":t)+'</button>\n        <div class="or"></div>\n        <button ref="editNode" class="ui button editNode">'+(null==(t=e.t("Edit"))?"":t)+'</button>\n        <div class="or"></div>\n        <button ref="removeNode" class="ui button negative removeNode">'+(null==(t=e.t("Delete"))?"":t)+"</button>\n        ",e.node.revertAvailable&&(n+='\n        <div class="or"></div>\n        <button ref="revertNode" class="ui button negative revertNode">'+(null==(t=e.t("Revert"))?"":t)+"</button>\n        "),n+="\n        "),n+="\n      </div>\n    </div>\n  </div>\n</div>\n"}},21710:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="ui visible message"><p>'+(null==(t=e.t(e.component.title))?"":t)+"</p></div>\n"}},32178:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+' ui form" ref="webform" novalidate>'+(null==(t=e.children)?"":t)+"</div>\n"}},4599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21710),o=n(32178);t.default={form:o.default,builder:r.default}},2230:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="ui secondary segment">\n  <div class="content" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n</div>\n"}},76709:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2230);t.default={form:r.default}},70084:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio-wizard-builder-component-title">'+(null==(t=e.t(e.component.title))?"":t)+"</div>\n"}},16466:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="'+(null==(t=e.className)?"":t)+'">\n  <div style="position: relative;">\n    ',"wizardHeaderVertical"===e.wizardHeaderType?n+='\n      <div class="ui stackable grid">\n        <div class="three wide computer sixteen wide tablet sixteen wide mobile column">\n          '+(null==(t=e.wizardHeader)?"":t)+'\n        </div>\n        <div class="one wide computer one wide mobile one wide tablet column"></div>\n        <div class="wizard-page ten wide computer fourteen wide tablet fourteen wide mobiles column" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n          '+(null==(t=e.components)?"":t)+'\n        </div>\n      </div>\n      <div class="ui grid" style="margin-top: 10px;">\n        <div class="four wide column"></div>\n        <div class="twelve wide column">\n          '+(null==(t=e.wizardNav)?"":t)+"\n        </div>\n      </div>\n    ":n+=" \n      "+(null==(t=e.wizardHeader)?"":t)+'\n      <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n        '+(null==(t=e.components)?"":t)+"\n      </div>\n      "+(null==(t=e.wizardNav)?"":t)+"\n    ",n+" \n  </div>\n</div>"}},42317:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70084),o=n(16466);t.default={form:o.default,builder:r.default}},93363:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header" ref="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <div class="ui steps">\n    ',e.panels.forEach((function(r,o){n+='\n    <a class="'+(null==(t=e.currentPage===o?" active":"")?"":t)+' step" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">\n      <div class="content">\n        <div class="title">\n        '+(null==(t=r.title)?"":t)+"\n        ",r.tooltip&&e.currentPage===o&&(n+='\n        <span data-tooltip="'+(null==(t=e.wizardPageTooltip)?"":t)+'" data-position="right center">\n        <i class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'"></i>\n        </span>\n        '),n+="\n        </div>\n      </div>\n    </a>\n    "})),n+="\n  </div>\n</nav>\n"}},86739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(93363);t.default={form:r.default}},28267:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <div class=" ui stackable grid" style="border-bottom:0;">\n    ',e.panels.forEach((function(r,o){n+='\n      <div class="classic-pagination-page four wide computer eight wide tablet sixteen wide mobile column\n          '+(null==(t=e.currentPage<o?" disabled":"")?"":t)+"\n          "+(null==(t=e.currentPage===o?" active":"")?"":t)+"\n          "+(null==(t=e.currentPage>o?" complete":"")?"":t)+'" style="padding: 0;">\n        <div class="ui center aligned header classic-pagination-title">'+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"</div>\n        ",e.panels.length>1&&(n+='\n          <div class="classic-pagination-progress" style="border-radius: 0;"><div class="classic-pagination-progress-bar"></div></div>\n        '),n+=' \n        <span ref="'+(null==(t=e.wizardKey)?"":t)+'-link" class="classic-pagination-dot" style="top: 45px;"></span>\n      </div>\n    '})),n+="\n  </div>\n</nav>\n"}},7130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28267);t.default={form:r.default}},81256:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n  <ul class="ui vertical fluid tabular menu">\n    ',e.panels.forEach((function(r,o){n+='\n    <li class=" item page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link" style="margin-left: 0px;">\n        '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n        ",r.tooltip&&e.currentPage===o&&(n+='\n        <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "})),n+="\n  </ul>\n</nav>\n"}},54815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81256);t.default={form:r.default}},41993:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui horizontal list" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n  ',e.buttons.cancel&&(n+='\n  <div class="item">\n    <button class="ui button secondary btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n  </div>\n  "),n+="\n  ",e.buttons.previous&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous">'+(null==(t=e.t("previous"))?"":t)+"</button>\n  </div>\n  "),n+="\n  ",e.buttons.next&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next">'+(null==(t=e.t("next"))?"":t)+"</button>\n  </div>\n  "),n+="\n  ",e.buttons.submit&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit">'+(null==(t=e.t("submit"))?"":t)+"</button>\n  </div>\n  "),n+"\n</div>\n"}},86858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41993);t.default={form:r.default}},43281:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return r(o).default}});var i=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return r(i).default}});var a=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return r(a).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.minYear,i=void 0===o?1:o,a=t.maxYear,l=void 0===a?9999:a,s=e.split(/[^dmyHMS]+/).sort((function(e,t){return r.indexOf(e)-r.indexOf(t)}));return function(t){var r=[],o={dd:31,mm:12,yy:99,yyyy:l,HH:23,MM:59,SS:59},a={dd:1,mm:1,yy:0,yyyy:i,HH:0,MM:0,SS:0},u=t.split("");s.forEach((function(t){var n=e.indexOf(t),i=parseInt(o[t].toString().substr(0,1),10);parseInt(u[n],10)>i&&(u[n+1]=u[n],u[n]=0,r.push(n))}));var c=0,f=s.some((function(r){var s=e.indexOf(r),u=r.length,f=t.substr(s,u).replace(/\D/g,""),d=parseInt(f,10);"mm"===r&&(c=d||0);var p="dd"===r?n[c]:o[r];if("yyyy"===r&&(1!==i||9999!==l)){var h=parseInt(o[r].toString().substring(0,f.length),10);return d<parseInt(a[r].toString().substring(0,f.length),10)||d>h}return d>p||f.length===u&&d<a[r]}));return!f&&{value:u.join(""),indexesOfPipedChars:r}}};var n=[31,31,29,31,30,31,30,31,31,30,31,30,31],r=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,t){"use strict";function n(e){return e.split(a).map((function(e){return p.test(e)?p:e}))}function r(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=e.length;if(e===a||e[0]===y[0]&&1===t)return y.split(a).concat([p]).concat(b.split(a));if(e===j&&S)return y.split(a).concat(["0",j,p]).concat(b.split(a));var i=e[0]===u&&M;i&&(e=e.toString().substr(1));var l=e.lastIndexOf(j),s=-1!==l,m=void 0,v=void 0,g=void 0;if(e.slice(-1*N)===b&&(e=e.slice(0,-1*N)),s&&(S||A)?(m=e.slice(e.slice(0,V)===y?V:0,l),v=n((v=e.slice(l+1,t)).replace(f,a))):m=e.slice(0,V)===y?e.slice(V):e,L&&(void 0===L?"undefined":o(L))===d){var k="."===O?"[.]":""+O,_=(m.match(new RegExp(k,"g"))||[]).length;m=m.slice(0,L+_*F)}return m=m.replace(f,a),D||(m=m.replace(/^0+(0$|[^0])/,"$1")),g=n(m=w?r(m,O):m),(s&&S||!0===A)&&(e[l-1]!==j&&g.push(h),g.push(j,h),v&&((void 0===E?"undefined":o(E))===d&&(v=v.slice(0,E)),g=g.concat(v)),!0===A&&e[l-1]===j&&g.push(p)),V>0&&(g=y.split(a).concat(g)),i&&(g.length===V&&g.push(p),g=[c].concat(g)),b.length>0&&(g=g.concat(b.split(a))),g}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=t.prefix,y=void 0===m?i:m,v=t.suffix,b=void 0===v?a:v,g=t.includeThousandsSeparator,w=void 0===g||g,k=t.thousandsSeparatorSymbol,O=void 0===k?l:k,_=t.allowDecimal,S=void 0!==_&&_,P=t.decimalSymbol,j=void 0===P?s:P,x=t.decimalLimit,E=void 0===x?2:x,C=t.requireDecimal,A=void 0!==C&&C,T=t.allowNegative,M=void 0!==T&&T,R=t.allowLeadingZeroes,D=void 0!==R&&R,I=t.integerLimit,L=void 0===I?null:I,V=y&&y.length||0,N=b&&b.length||0,F=O&&O.length||0;return e.instanceOf="createNumberMask",e};var i="$",a="",l=",",s=".",u="-",c=/-/,f=/\D+/g,d="number",p=/\d/,h="[]"},function(e,t,n){"use strict";function r(e,t,n){var r=[];return e[t]===n?r.push(n):r.push(d,n),r.push(d),r}function o(e,t,n,r){var o=c;return-1!==t&&(o=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(o=o.replace(new RegExp("[\\s"+r+"]",h),c))===f?s:o.length<1?p:o[o.length-1]===u?o.slice(0,o.length-1):o}function i(e,t,n,r){var o=c;return-1!==t&&(o=e.slice(t+1,e.length)),0===(o=o.replace(new RegExp("[\\s"+n+".]",h),c)).length?e[t-1]===u&&r!==e.length?s:c:o}function a(e,t){return e.split(c).map((function(e){return e===p?e:t?y:m}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),s="*",u=".",c="",f="@",d="[]",p=" ",h="g",m=/[^\s]/,y=/[^.\s]/,v=/\s/g;t.default={mask:function(e,t){e=e.replace(v,c);var n=t.placeholderChar,l=t.currentCaretPosition,s=e.indexOf(f),d=e.lastIndexOf(u),p=d<s?-1:d,h=r(e,s+1,f),m=r(e,p-1,u),y=function(e,t){return-1===t?e:e.slice(0,t)}(e,s),b=o(e,s,p,n),g=i(e,p,n,l);return y=a(y),b=a(b),g=a(g,!0),y.concat(h).concat(b).concat(m).concat(g)},pipe:l.default}},function(e,t){"use strict";function n(e){var t=0;return e.replace(o,(function(){return 1==++t?r:i}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=t.currentCaretPosition,f=t.rawValue,d=t.previousConformedValue,p=t.placeholderChar,h=e,m=(h=n(h)).indexOf(a);if(null===f.match(new RegExp("[^@\\s."+p+"]")))return i;if(-1!==h.indexOf(s)||-1!==m&&o!==m+1||-1===f.indexOf(r)&&d!==i&&-1!==f.indexOf(l))return!1;var y=h.indexOf(r);return(h.slice(y+1,h.length).match(c)||u).length>1&&h.substr(-1)===l&&o!==f.length&&(h=h.slice(0,h.length-1)),h};var r="@",o=/@/g,i="",a="@.",l=".",s="..",u=[],c=/\./g}])},47853:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.inputElement,n=e.afterUpdate,r=(0,a.default)(e),o=function(e){var t=e.target.value;r.update(t),"function"==typeof n&&n(t)};return t.addEventListener("input",o),r.update(t.value),{textMaskInputElement:r,destroy:function(){t.removeEventListener("input",o)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0,t.maskInput=o;var i=n(2);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(i).default}});var a=r(n(5));t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,o.isArray)(t)){if((void 0===t?"undefined":r(t))!==i.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,o.processCaretTraps)(t).maskWithoutCaretTraps}var s=n.guide,u=void 0===s||s,c=n.previousConformedValue,f=void 0===c?l:c,d=n.placeholderChar,p=void 0===d?i.placeholderChar:d,h=n.placeholder,m=void 0===h?(0,o.convertMaskToPlaceholder)(t,p):h,y=n.currentCaretPosition,v=n.keepCharPositions,b=!1===u&&void 0!==f,g=e.length,w=f.length,k=m.length,O=t.length,_=g-w,S=_>0,P=y+(S?-_:0),j=P+Math.abs(_);if(!0===v&&!S){for(var x=l,E=P;E<j;E++)m[E]===p&&(x+=p);e=e.slice(0,P)+x+e.slice(P,g)}for(var C=e.split(l).map((function(e,t){return{char:e,isNew:t>=P&&t<j}})),A=g-1;A>=0;A--){var T=C[A].char;T!==p&&T===m[A>=P&&w===O?A-_:A]&&C.splice(A,1)}var M=l,R=!1;e:for(var D=0;D<k;D++){var I=m[D];if(I===p){if(C.length>0)for(;C.length>0;){var L=C.shift(),V=L.char,N=L.isNew;if(V===p&&!0!==b){M+=p;continue e}if(t[D].test(V)){if(!0===v&&!1!==N&&f!==l&&!1!==u&&S){for(var F=C.length,B=null,U=0;U<F;U++){var z=C[U];if(z.char!==p&&!1===z.isNew)break;if(z.char===p){B=U;break}}null!==B?(M+=V,C.splice(B,1)):D--}else M+=V;continue e}R=!0}!1===b&&(M+=m.substr(D,k));break}M+=I}if(b&&!1===S){for(var H=null,q=0;q<M.length;q++)m[q]===p&&(H=q);M=null!==H?M.substr(0,H+1):l}return{conformedValue:M,meta:{someCharsRejected:R}}};var o=n(3),i=n(1),a=[],l=""},function(e,t,n){"use strict";function r(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=r,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(a));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var o=n(1),i=[],a="[]"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,o=void 0===t?r:t,i=e.previousPlaceholder,a=void 0===i?r:i,l=e.currentCaretPosition,s=void 0===l?0:l,u=e.conformedValue,c=e.rawValue,f=e.placeholderChar,d=e.placeholder,p=e.indexesOfPipedChars,h=void 0===p?n:p,m=e.caretTrapIndexes,y=void 0===m?n:m;if(0===s||!c.length)return 0;var v=c.length,b=o.length,g=d.length,w=u.length,k=v-b,O=k>0;if(k>1&&!O&&0!==b)return s;var _=0,S=void 0,P=void 0;if(!O||o!==u&&u!==d){var j=u.toLowerCase(),x=c.toLowerCase().substr(0,s).split(r).filter((function(e){return-1!==j.indexOf(e)}));P=x[x.length-1];var E=a.substr(0,x.length).split(r).filter((function(e){return e!==f})).length,C=d.substr(0,x.length).split(r).filter((function(e){return e!==f})).length,A=C!==E,T=void 0!==a[x.length-1]&&void 0!==d[x.length-2]&&a[x.length-1]!==f&&a[x.length-1]!==d[x.length-1]&&a[x.length-1]===d[x.length-2];!O&&(A||T)&&E>0&&d.indexOf(P)>-1&&void 0!==c[s]&&(S=!0,P=c[s]);for(var M=h.map((function(e){return j[e]})),R=M.filter((function(e){return e===P})).length,D=x.filter((function(e){return e===P})).length,I=d.substr(0,d.indexOf(f)).split(r).filter((function(e,t){return e===P&&c[t]!==e})).length,L=I+D+R+(S?1:0),V=0,N=0;N<w&&(_=N+1,j[N]===P&&V++,!(V>=L));N++);}else _=s-k;if(O){for(var F=_,B=_;B<=g;B++)if(d[B]===f&&(F=B),d[B]===f||-1!==y.indexOf(B)||B===g)return F}else if(S){for(var U=_-1;U>=0;U--)if(u[U]===P||-1!==y.indexOf(U)||0===U)return U}else for(var z=_;z>=0;z--)if(d[z-1]===f||-1!==y.indexOf(z)||0===z)return z};var n=[],r=""},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){(n?n.activeElement:document.activeElement)===e&&(m?y((function(){return e.setSelectionRange(t,t,p)}),0):e.setSelectionRange(t,t,p))}function i(e){if((0,c.isString)(e))return e;if((0,c.isNumber)(e))return String(e);if(null==e)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,p=r.inputElement,m=r.mask,y=r.guide,v=r.pipe,b=r.placeholderChar,g=void 0===b?f.placeholderChar:b,w=r.keepCharPositions,k=void 0!==w&&w,O=r.showMask,_=void 0!==O&&O;if(void 0===n&&(n=p.value),n!==t.previousConformedValue){(void 0===m?"undefined":l(m))===h&&void 0!==m.pipe&&void 0!==m.mask&&(v=m.pipe,m=m.mask);var S=void 0,P=void 0;if(m instanceof Array&&(S=(0,c.convertMaskToPlaceholder)(m,g)),!1!==m){var j=i(n),x=p.selectionEnd,E=t.previousConformedValue,C=t.previousPlaceholder,A=void 0;if((void 0===m?"undefined":l(m))===f.strFunction){if(!1===(P=m(j,{currentCaretPosition:x,previousConformedValue:E,placeholderChar:g})))return;var T=(0,c.processCaretTraps)(P);P=T.maskWithoutCaretTraps,A=T.indexes,S=(0,c.convertMaskToPlaceholder)(P,g)}else P=m;var M={previousConformedValue:E,guide:y,placeholderChar:g,pipe:v,placeholder:S,currentCaretPosition:x,keepCharPositions:k},R=(0,u.default)(j,P,M).conformedValue,D=(void 0===v?"undefined":l(v))===f.strFunction,I={};D&&(!1===(I=v(R,a({rawValue:j},M)))?I={value:E,rejected:!0}:(0,c.isString)(I)&&(I={value:I}));var L=D?I.value:R,V=(0,s.default)({previousConformedValue:E,previousPlaceholder:C,conformedValue:L,placeholder:S,rawValue:j,currentCaretPosition:x,placeholderChar:g,indexesOfPipedChars:I.indexesOfPipedChars,caretTrapIndexes:A}),N=L===S&&0===V?_?S:d:L;t.previousConformedValue=N,t.previousPlaceholder=S,p.value!==N&&(j.includes("e-")?p.value=j:p.value=N,o(p,V,e.shadowRoot))}}}}};var s=r(n(4)),u=r(n(2)),c=n(3),f=n(1),d="",p="none",h="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),y="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},65988:function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(){n(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return o(e,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),e}(),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(d,e);var t,r,u=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=i(t);if(r){var o=i(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return s(this,e)});function d(){var e;return n(this,d),(e=u.call(this)).listeners||f.call(l(e)),Object.defineProperty(l(e),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(l(e),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(l(e),"reason",{value:void 0,writable:!0,configurable:!0}),e}return o(d,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),c(i(d.prototype),"dispatchEvent",this).call(this,e)}}]),d}(f),p=function(){function e(){n(this,e),Object.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return o(e,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var n=e;if(void 0===n)if("undefined"==typeof document)(n=new Error("This operation was aborted")).name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(e){(n=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),e}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(p.prototype[Symbol.toStringTag]="AbortController",d.prototype[Symbol.toStringTag]="AbortSignal"),t.AbortController=p,t.AbortSignal=d,t.abortableFetch=function(e){"function"==typeof e&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,o=void 0===r?n.Request:r,i=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,l=void 0!==a&&a;if(!function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}({fetch:n,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:l}))return{fetch:n,Request:s};var s=o;(s&&!s.prototype.hasOwnProperty("signal")||l)&&((s=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new o(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=o.prototype);var u=n;return{fetch:function(e,t){var n=s&&s.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(e){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var o=new Promise((function(e,t){n.addEventListener("abort",(function(){return t(r)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([o,u(e,t)])}return u(e,t)},Request:s}}},75234:function(e,t,n){"use strict";n.r(t),n.d(t,{cancelAnimationFrame:function(){return i},requestAnimationFrame:function(){return o}});var r=["webkit","moz","ms","o"],o=function(){for(var e=0,t=r.length;e<t&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[r[e]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(e){var t=(new Date).getTime(),r=Math.max(0,16-t-n),o=window.setTimeout((function(){return e(t+r)}),r);return n=t+r,o}}return window.requestAnimationFrame.bind(window)}(),i=function(){for(var e=0,t=r.length;e<t&&!window.cancelAnimationFrame;++e)window.cancelAnimationFrame=window[r[e]+"CancelAnimationFrame"]||window[r[e]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}()},44622:function(e,t,n){e.exports="function"==typeof Array.from?Array.from:n(64486)},64486:function(e){var t,n,r,o,i,a;e.exports=(t=function(e){return"function"==typeof e},n=Math.pow(2,53)-1,r=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},o=function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}},i=function(e,n){if(null!=e&&null!=n){var r=e[n];if(null==r)return;if(!t(r))throw new TypeError(r+" is not a function");return r}},a=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){"use strict";var n,l,s,u=this,c=arguments.length>1?arguments[1]:void 0;if(void 0!==c){if(!t(c))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var f=i(e,o(e));if(void 0!==f){l=t(u)?Object(new u):[];var d,p,h=f.call(e);if(null==h)throw new TypeError("Array.from requires an array-like or iterable object");for(s=0;;){if(!(d=a(h)))return l.length=s,l;p=d.value,l[s]=c?c.call(n,p,s):p,s++}}else{var m=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var y,v=r(m.length);for(l=t(u)?Object(new u(v)):new Array(v),s=0;s<v;)y=m[s],l[s]=c?c.call(n,y,s):y,s++;l.length=v}return l})},77338:function(e){e.exports=function(){"use strict";return function(e){var t=document,n=e.container||t.createElement("div");n.id=n.id||"autocomplete-"+b();var r,o,i=n.style,a=navigator.userAgent,l=~a.indexOf("Firefox")&&~a.indexOf("Mobile"),s=e.debounceWaitMs||0,u=e.preventSubmit||!1,c=e.disableAutoSelect||!1,f=l?"input":"keyup",d=[],p="",h=2,m=e.showOnFocus,y=0;if(void 0!==e.minLength&&(h=e.minLength),!e.input)throw new Error("input undefined");var v=e.input;function b(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function g(){o&&window.clearTimeout(o)}function w(){return!!n.parentNode}function k(){var e;y++,d=[],p="",r=void 0,v.setAttribute("aria-activedescendant",""),v.setAttribute("aria-expanded","false"),(e=n.parentNode)&&e.removeChild(n)}function O(){for(;n.firstChild;)n.removeChild(n.firstChild);v.setAttribute("aria-activedescendant","");var o=function(e,n,r){var o=t.createElement("div");return o.textContent=e.label||"",o};e.render&&(o=e.render);var a=function(e,n){var r=t.createElement("div");return r.textContent=e,r};e.renderGroup&&(a=e.renderGroup);var l=t.createDocumentFragment(),s="#9?$";if(d.forEach((function(t,i){if(t.group&&t.group!==s){s=t.group;var u=a(t.group,p);u&&(u.className+=" group",l.appendChild(u))}var c=o(t,p,i);c&&(c.id=n.id+"_"+i,c.setAttribute("role","option"),c.addEventListener("click",(function(n){e.onSelect(t,v),k(),n.preventDefault(),n.stopPropagation()})),t===r&&(c.className+=" selected",c.setAttribute("aria-selected","true"),v.setAttribute("aria-activedescendant",c.id)),l.appendChild(c))})),n.appendChild(l),d.length<1){if(!e.emptyMsg)return void k();var u=t.createElement("div");u.id=n.id+"_"+b(),u.className="empty",u.textContent=e.emptyMsg,n.appendChild(u),v.setAttribute("aria-activedescendant",u.id)}n.parentNode||t.body.appendChild(n),function(){if(w()){v.setAttribute("aria-expanded","true"),i.height="auto",i.width=v.offsetWidth+"px";var r,o=0;a(),a(),e.customize&&r&&e.customize(v,r,n,o)}function a(){var e=t.documentElement,n=e.clientTop||t.body.clientTop||0,a=e.clientLeft||t.body.clientLeft||0,l=window.pageYOffset||e.scrollTop,s=window.pageXOffset||e.scrollLeft,u=(r=v.getBoundingClientRect()).top+v.offsetHeight+l-n,c=r.left+s-a;i.top=u+"px",i.left=c+"px",(o=window.innerHeight-(r.top+v.offsetHeight))<0&&(o=0),i.top=u+"px",i.bottom="",i.left=c+"px",i.maxHeight=o+"px"}}(),function(){var e=n.getElementsByClassName("selected");if(e.length>0){var t=e[0],r=t.previousElementSibling;if(r&&-1!==r.className.indexOf("group")&&!r.previousElementSibling&&(t=r),t.offsetTop<n.scrollTop)n.scrollTop=t.offsetTop;else{var o=t.offsetTop+t.offsetHeight,i=n.scrollTop+n.offsetHeight;o>i&&(n.scrollTop+=o-i)}}}()}function _(){w()&&O()}function S(){_()}function P(e){e.target!==n?_():e.preventDefault()}function j(t){for(var n=t.which||t.keyCode||0,r=0,o=e.keysToIgnore||[38,13,27,39,37,16,17,18,20,91,9];r<o.length;r++)if(n===o[r])return;n>=112&&n<=123&&!e.keysToIgnore||40===n&&w()||C(0)}function x(t){var n=t.which||t.keyCode||0;if(38===n||40===n||27===n){var o=w();if(27===n)k();else{if(!o||d.length<1)return;38===n?function(){if(d.length<1)r=void 0;else if(r===d[0])r=d[d.length-1];else for(var e=d.length-1;e>0;e--)if(r===d[e]||1===e){r=d[e-1];break}}():function(){if(d.length<1&&(r=void 0),r&&r!==d[d.length-1]){for(var e=0;e<d.length-1;e++)if(r===d[e]){r=d[e+1];break}}else r=d[0]}(),O()}return t.preventDefault(),void(o&&t.stopPropagation())}13===n&&(r&&(e.onSelect(r,v),k()),u&&t.preventDefault())}function E(){m&&C(1)}function C(t){var n=++y,i=v.value,a=v.selectionStart||0;i.length>=h||1===t?(g(),o=window.setTimeout((function(){e.fetch(i,(function(e){y===n&&e&&(p=i,r=(d=e).length<1||c?void 0:d[0],O())}),t,a)}),0===t?s:0)):k()}function A(){setTimeout((function(){t.activeElement!==v&&k()}),200)}return n.className="autocomplete "+(e.className||""),n.setAttribute("role","listbox"),v.setAttribute("role","combobox"),v.setAttribute("aria-expanded","false"),v.setAttribute("aria-autocomplete","list"),v.setAttribute("aria-controls",n.id),v.setAttribute("aria-owns",n.id),v.setAttribute("aria-activedescendant",""),v.setAttribute("aria-haspopup","listbox"),i.position="absolute",n.addEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),n.addEventListener("focus",(function(){return v.focus()})),v.addEventListener("keydown",x),v.addEventListener(f,j),v.addEventListener("blur",A),v.addEventListener("focus",E),window.addEventListener("resize",S),t.addEventListener("scroll",P,!0),{destroy:function(){v.removeEventListener("focus",E),v.removeEventListener("keydown",x),v.removeEventListener(f,j),v.removeEventListener("blur",A),window.removeEventListener("resize",S),t.removeEventListener("scroll",P,!0),v.removeAttribute("role"),v.removeAttribute("aria-expanded"),v.removeAttribute("aria-autocomplete"),v.removeAttribute("aria-controls"),v.removeAttribute("aria-activedescendant"),v.removeAttribute("aria-owns"),v.removeAttribute("aria-haspopup"),g(),k()}}}}()},4389:function(e,t){t.defaults={},t.set=function(e,n,r){var o=r||{},i=t.defaults,a=o.expires||i.expires,l=o.domain||i.domain,s=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",u=void 0!==o.secure?o.secure:i.secure,c=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,d=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(d&&d.getTime()>=0?";expires="+d.toUTCString():"")+(l?";domain="+l:"")+(s?";path="+s:"")+(u?";secure":"")+(c?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");r=r<0?n.length:r,e[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return e}},354:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(e){var t=function(e,t){return e+t&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,n,r,o,i,a){return n=t(t(n,e),t(o,a)),t(n<<i|n>>>32-i,r)}function o(e,t,n,o,i,a,l){return r(t&n|~t&o,e,t,i,a,l)}function i(e,t,n,o,i,a,l){return r(t&o|n&~o,e,t,i,a,l)}function a(e,t,n,o,i,a,l){return r(t^n^o,e,t,i,a,l)}function l(e,t,n,o,i,a,l){return r(n^(t|~o),e,t,i,a,l)}function s(e,n){var r=e[0],s=e[1],u=e[2],c=e[3];r=o(r,s,u,c,n[0],7,-680876936),c=o(c,r,s,u,n[1],12,-389564586),u=o(u,c,r,s,n[2],17,606105819),s=o(s,u,c,r,n[3],22,-1044525330),r=o(r,s,u,c,n[4],7,-176418897),c=o(c,r,s,u,n[5],12,1200080426),u=o(u,c,r,s,n[6],17,-1473231341),s=o(s,u,c,r,n[7],22,-45705983),r=o(r,s,u,c,n[8],7,1770035416),c=o(c,r,s,u,n[9],12,-1958414417),u=o(u,c,r,s,n[10],17,-42063),s=o(s,u,c,r,n[11],22,-1990404162),r=o(r,s,u,c,n[12],7,1804603682),c=o(c,r,s,u,n[13],12,-40341101),u=o(u,c,r,s,n[14],17,-1502002290),r=i(r,s=o(s,u,c,r,n[15],22,1236535329),u,c,n[1],5,-165796510),c=i(c,r,s,u,n[6],9,-1069501632),u=i(u,c,r,s,n[11],14,643717713),s=i(s,u,c,r,n[0],20,-373897302),r=i(r,s,u,c,n[5],5,-701558691),c=i(c,r,s,u,n[10],9,38016083),u=i(u,c,r,s,n[15],14,-660478335),s=i(s,u,c,r,n[4],20,-405537848),r=i(r,s,u,c,n[9],5,568446438),c=i(c,r,s,u,n[14],9,-1019803690),u=i(u,c,r,s,n[3],14,-187363961),s=i(s,u,c,r,n[8],20,1163531501),r=i(r,s,u,c,n[13],5,-1444681467),c=i(c,r,s,u,n[2],9,-51403784),u=i(u,c,r,s,n[7],14,1735328473),r=a(r,s=i(s,u,c,r,n[12],20,-1926607734),u,c,n[5],4,-378558),c=a(c,r,s,u,n[8],11,-2022574463),u=a(u,c,r,s,n[11],16,1839030562),s=a(s,u,c,r,n[14],23,-35309556),r=a(r,s,u,c,n[1],4,-1530992060),c=a(c,r,s,u,n[4],11,1272893353),u=a(u,c,r,s,n[7],16,-155497632),s=a(s,u,c,r,n[10],23,-1094730640),r=a(r,s,u,c,n[13],4,681279174),c=a(c,r,s,u,n[0],11,-358537222),u=a(u,c,r,s,n[3],16,-722521979),s=a(s,u,c,r,n[6],23,76029189),r=a(r,s,u,c,n[9],4,-640364487),c=a(c,r,s,u,n[12],11,-421815835),u=a(u,c,r,s,n[15],16,530742520),r=l(r,s=a(s,u,c,r,n[2],23,-995338651),u,c,n[0],6,-198630844),c=l(c,r,s,u,n[7],10,1126891415),u=l(u,c,r,s,n[14],15,-1416354905),s=l(s,u,c,r,n[5],21,-57434055),r=l(r,s,u,c,n[12],6,1700485571),c=l(c,r,s,u,n[3],10,-1894986606),u=l(u,c,r,s,n[10],15,-1051523),s=l(s,u,c,r,n[1],21,-2054922799),r=l(r,s,u,c,n[8],6,1873313359),c=l(c,r,s,u,n[15],10,-30611744),u=l(u,c,r,s,n[6],15,-1560198380),s=l(s,u,c,r,n[13],21,1309151649),r=l(r,s,u,c,n[4],6,-145523070),c=l(c,r,s,u,n[11],10,-1120210379),u=l(u,c,r,s,n[2],15,718787259),s=l(s,u,c,r,n[9],21,-343485551),e[0]=t(r,e[0]),e[1]=t(s,e[1]),e[2]=t(u,e[2]),e[3]=t(c,e[3])}function u(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function c(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function f(e){var t,n,r,o,i,a,l=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)s(c,u(e.substring(t-64,t)));for(n=(e=e.substring(t-64)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(s(c,r),t=0;t<16;t+=1)r[t]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(o[2],16),a=parseInt(o[1],16)||0,r[14]=i,r[15]=a,s(c,r),c}function d(e){var t,n,r,o,i,a,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)s(u,c(e.subarray(t-64,t)));for(n=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)r[t>>2]|=e[t]<<(t%4<<3);if(r[t>>2]|=128<<(t%4<<3),t>55)for(s(u,r),t=0;t<16;t+=1)r[t]=0;return o=(o=8*l).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(o[2],16),a=parseInt(o[1],16)||0,r[14]=i,r[15]=a,s(u,r),u}function p(e){var t,r="";for(t=0;t<4;t+=1)r+=n[e>>8*t+4&15]+n[e>>8*t&15];return r}function h(e){var t;for(t=0;t<e.length;t+=1)e[t]=p(e[t]);return e.join("")}function m(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function y(e,t){var n,r=e.length,o=new ArrayBuffer(r),i=new Uint8Array(o);for(n=0;n<r;n+=1)i[n]=e.charCodeAt(n);return t?i:o}function v(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function b(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function g(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function w(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==h(f("hello"))&&(t=function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var o,i,a,l,s=this.byteLength,u=t(n,s),c=s;return r!==e&&(c=t(r,s)),u>c?new ArrayBuffer(0):(o=c-u,i=new ArrayBuffer(o),a=new Uint8Array(i),l=new Uint8Array(this,u,o),a.set(l),i)}}(),w.prototype.append=function(e){return this.appendBinary(m(e)),this},w.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,n=this._buff.length;for(t=64;t<=n;t+=64)s(this._hash,u(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},w.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),n=h(this._hash),e&&(n=g(n)),this.reset(),n},w.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},w.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},w.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},w.prototype._finish=function(e,t){var n,r,o,i=t;if(e[i>>2]|=128<<(i%4<<3),i>55)for(s(this._hash,e),i=0;i<16;i+=1)e[i]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(n[2],16),o=parseInt(n[1],16)||0,e[14]=r,e[15]=o,s(this._hash,e)},w.hash=function(e,t){return w.hashBinary(m(e),t)},w.hashBinary=function(e,t){var n=h(f(e));return t?g(n):n},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(e){var t,n=b(this._buff.buffer,e,!0),r=n.length;for(this._length+=e.byteLength,t=64;t<=r;t+=64)s(this._hash,c(n.subarray(t-64,t)));return this._buff=t-64<r?new Uint8Array(n.buffer.slice(t-64)):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r[t]<<(t%4<<3);return this._finish(i,o),n=h(this._hash),e&&(n=g(n)),this.reset(),n},w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.getState=function(){var e=w.prototype.getState.call(this);return e.buff=v(e.buff),e},w.ArrayBuffer.prototype.setState=function(e){return e.buff=y(e.buff,!0),w.prototype.setState.call(this,e)},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.hash=function(e,t){var n=h(d(new Uint8Array(e)));return t?g(n):n},w}()}));return class{md5(t,n,r){this.aborted=!1,this.progress=0;let o=0;const i=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,a=2097152,l=Math.ceil(t.size/a),s=new e.ArrayBuffer,u=new FileReader;function c(){const e=o*a,n=e+a>=t.size?t.size:e+a;u.readAsArrayBuffer(i.call(t,e,n))}c(),u.onloadend=e=>{s.append(e.target.result),o++,this.progress=o/l,r&&"function"==typeof r&&r(this.progress),this.aborted?n("aborted"):o<l?c():n(null,s.end())}}abort(){this.aborted=!0}}}()},39803:function(e,t,n){"use strict";n.r(t),n.d(t,{compare:function(){return i},compareVersions:function(){return r},satisfies:function(){return a},validate:function(){return o}});const r=(e,t)=>{const n=s(e),r=s(t),o=n.pop(),i=r.pop(),a=d(n,r);return 0!==a?a:o&&i?d(o.split("."),i.split(".")):o||i?o?-1:1:0},o=e=>"string"==typeof e&&/^[v\d]/.test(e)&&l.test(e),i=(e,t,n)=>{m(n);const o=r(e,t);return p[n].includes(o)},a=(e,t)=>{const n=t.match(/^([<>=~^]+)/),r=n?n[1]:"=";if("^"!==r&&"~"!==r)return i(e,t,r);const[o,a,l]=s(e),[u,c,p]=s(t);return 0===f(o,u)&&("^"===r?d([a,l],[c,p])>=0:0===f(a,c)&&f(l,p)>=0)},l=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,s=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(l);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},u=e=>"*"===e||"x"===e||"X"===e,c=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},f=(e,t)=>{if(u(e)||u(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(c(e),c(t));return n>r?1:n<r?-1:0},d=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=f(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},p={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},h=Object.keys(p),m=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===h.indexOf(e))throw new Error(`Invalid operator, expected one of ${h.join("|")}`)}},19662:function(e,t,n){var r=n(60614),o=n(66330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},39483:function(e,t,n){var r=n(4411),o=n(66330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},96077:function(e,t,n){var r=n(60614),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},51223:function(e,t,n){var r=n(5112),o=n(70030),i=n(3070).f,a=r("unscopables"),l=Array.prototype;null==l[a]&&i(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},31530:function(e,t,n){"use strict";var r=n(28710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},25787:function(e,t,n){var r=n(47976),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},19670:function(e,t,n){var r=n(70111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},23013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:function(e,t,n){var r=n(47293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},90260:function(e,t,n){"use strict";var r,o,i,a=n(23013),l=n(19781),s=n(17854),u=n(60614),c=n(70111),f=n(92597),d=n(70648),p=n(66330),h=n(68880),m=n(98052),y=n(3070).f,v=n(47976),b=n(79518),g=n(27674),w=n(5112),k=n(69711),O=n(29909),_=O.enforce,S=O.get,P=s.Int8Array,j=P&&P.prototype,x=s.Uint8ClampedArray,E=x&&x.prototype,C=P&&b(P),A=j&&b(j),T=Object.prototype,M=s.TypeError,R=w("toStringTag"),D=k("TYPED_ARRAY_TAG"),I=a&&!!g&&"Opera"!==d(s.opera),L=!1,V={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=b(e);if(c(t)){var n=S(t);return n&&f(n,"TypedArrayConstructor")?n.TypedArrayConstructor:F(t)}},B=function(e){if(!c(e))return!1;var t=d(e);return f(V,t)||f(N,t)};for(r in V)(i=(o=s[r])&&o.prototype)?_(i).TypedArrayConstructor=o:I=!1;for(r in N)(i=(o=s[r])&&o.prototype)&&(_(i).TypedArrayConstructor=o);if((!I||!u(C)||C===Function.prototype)&&(C=function(){throw M("Incorrect invocation")},I))for(r in V)s[r]&&g(s[r],C);if((!I||!A||A===T)&&(A=C.prototype,I))for(r in V)s[r]&&g(s[r].prototype,A);if(I&&b(E)!==A&&g(E,A),l&&!f(A,R))for(r in L=!0,y(A,R,{get:function(){return c(this)?this[D]:void 0}}),V)s[r]&&h(s[r],D,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_TAG:L&&D,aTypedArray:function(e){if(B(e))return e;throw M("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!g||v(C,e)))return e;throw M(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(l){if(n)for(var o in V){var i=s[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}A[e]&&!n||m(A,e,n?t:I&&j[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(l){if(g){if(n)for(r in V)if((o=s[r])&&f(o,e))try{delete o[e]}catch(e){}if(C[e]&&!n)return;try{return m(C,e,n?t:I&&C[e]||t)}catch(e){}}for(r in V)!(o=s[r])||o[e]&&!n||m(o,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||f(V,t)||f(N,t)},isTypedArray:B,TypedArray:C,TypedArrayPrototype:A}},13331:function(e,t,n){"use strict";var r=n(17854),o=n(1702),i=n(19781),a=n(23013),l=n(76530),s=n(68880),u=n(89190),c=n(47293),f=n(25787),d=n(19303),p=n(17466),h=n(57067),m=n(11179),y=n(79518),v=n(27674),b=n(8006).f,g=n(3070).f,w=n(21285),k=n(41589),O=n(58003),_=n(29909),S=l.PROPER,P=l.CONFIGURABLE,j=_.get,x=_.set,E="ArrayBuffer",C="Wrong index",A=r.ArrayBuffer,T=A,M=T&&T.prototype,R=r.DataView,D=R&&R.prototype,I=Object.prototype,L=r.Array,V=r.RangeError,N=o(w),F=o([].reverse),B=m.pack,U=m.unpack,z=function(e){return[255&e]},H=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},W=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return B(e,23,4)},Y=function(e){return B(e,52,8)},G=function(e,t){g(e.prototype,t,{get:function(){return j(this)[t]}})},$=function(e,t,n,r){var o=h(n),i=j(e);if(o+t>i.byteLength)throw V(C);var a=j(i.buffer).bytes,l=o+i.byteOffset,s=k(a,l,l+t);return r?s:F(s)},J=function(e,t,n,r,o,i){var a=h(n),l=j(e);if(a+t>l.byteLength)throw V(C);for(var s=j(l.buffer).bytes,u=a+l.byteOffset,c=r(+o),f=0;f<t;f++)s[u+f]=c[i?f:t-f-1]};if(a){var X=S&&A.name!==E;if(c((function(){A(1)}))&&c((function(){new A(-1)}))&&!c((function(){return new A,new A(1.5),new A(NaN),1!=A.length||X&&!P})))X&&P&&s(A,"name",E);else{(T=function(e){return f(this,M),new A(h(e))}).prototype=M;for(var Z,Q=b(A),ee=0;Q.length>ee;)(Z=Q[ee++])in T||s(T,Z,A[Z]);M.constructor=T}v&&y(D)!==I&&v(D,I);var te=new R(new T(2)),ne=o(D.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||u(D,{setInt8:function(e,t){ne(this,e,t<<24>>24)},setUint8:function(e,t){ne(this,e,t<<24>>24)}},{unsafe:!0})}else M=(T=function(e){f(this,M);var t=h(e);x(this,{bytes:N(L(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,D=(R=function(e,t,n){f(this,D),f(e,M);var r=j(e).byteLength,o=d(t);if(o<0||o>r)throw V("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw V("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,i&&(G(T,"byteLength"),G(R,"buffer"),G(R,"byteLength"),G(R,"byteOffset")),u(D,{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return W($(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return W($(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return U($(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return U($(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){J(this,1,e,z,t)},setUint8:function(e,t){J(this,1,e,z,t)},setInt16:function(e,t){J(this,2,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){J(this,2,e,H,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){J(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){J(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){J(this,4,e,K,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){J(this,8,e,Y,t,arguments.length>2?arguments[2]:void 0)}});O(T,E),O(R,"DataView"),e.exports={ArrayBuffer:T,DataView:R}},1048:function(e,t,n){"use strict";var r=n(47908),o=n(51400),i=n(26244),a=n(85117),l=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(n),u=o(e,s),c=o(t,s),f=arguments.length>2?arguments[2]:void 0,d=l((void 0===f?s:o(f,s))-c,s-u),p=1;for(c<u&&u<c+d&&(p=-1,c+=d-1,u+=d-1);d-- >0;)c in n?n[u]=n[c]:a(n,u),u+=p,c+=p;return n}},21285:function(e,t,n){"use strict";var r=n(47908),o=n(51400),i=n(26244);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,l=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,u=void 0===s?n:o(s,n);u>l;)t[l++]=e;return t}},18533:function(e,t,n){"use strict";var r=n(42092).forEach,o=n(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},97745:function(e,t,n){var r=n(26244);e.exports=function(e,t){for(var n=0,o=r(t),i=new e(o);o>n;)i[n]=t[n++];return i}},48457:function(e,t,n){"use strict";var r=n(49974),o=n(46916),i=n(47908),a=n(53411),l=n(97659),s=n(4411),u=n(26244),c=n(86135),f=n(18554),d=n(71246),p=Array;e.exports=function(e){var t=i(e),n=s(this),h=arguments.length,m=h>1?arguments[1]:void 0,y=void 0!==m;y&&(m=r(m,h>2?arguments[2]:void 0));var v,b,g,w,k,O,_=d(t),S=0;if(!_||this===p&&l(_))for(v=u(t),b=n?new this(v):p(v);v>S;S++)O=y?m(t[S],S):t[S],c(b,S,O);else for(k=(w=f(t,_)).next,b=n?new this:[];!(g=o(k,w)).done;S++)O=y?a(w,m,[g.value,S],!0):g.value,c(b,S,O);return b.length=S,b}},41318:function(e,t,n){var r=n(45656),o=n(51400),i=n(26244),a=function(e){return function(t,n,a){var l,s=r(t),u=i(s),c=o(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},42092:function(e,t,n){var r=n(49974),o=n(1702),i=n(68361),a=n(47908),l=n(26244),s=n(65417),u=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,m,y,v){for(var b,g,w=a(h),k=i(w),O=r(m,y),_=l(k),S=0,P=v||s,j=t?P(h,_):n||d?P(h,0):void 0;_>S;S++)if((p||S in k)&&(g=O(b=k[S],S,w),e))if(t)j[S]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:u(j,b)}else switch(e){case 4:return!1;case 7:u(j,b)}return f?-1:o||c?c:j}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},86583:function(e,t,n){"use strict";var r=n(22104),o=n(45656),i=n(19303),a=n(26244),l=n(9341),s=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,f=l("lastIndexOf"),d=c||!f;e.exports=d?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),l=n-1;for(arguments.length>1&&(l=s(l,i(arguments[1]))),l<0&&(l=n+l);l>=0;l--)if(l in t&&t[l]===e)return l||0;return-1}:u},81194:function(e,t,n){var r=n(47293),o=n(5112),i=n(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(47293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},53671:function(e,t,n){var r=n(19662),o=n(47908),i=n(68361),a=n(26244),l=TypeError,s=function(e){return function(t,n,s,u){r(n);var c=o(t),f=i(c),d=a(c),p=e?d-1:0,h=e?-1:1;if(s<2)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,e?p<0:d<=p)throw l("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=h)p in f&&(u=n(u,f[p],p,c));return u}};e.exports={left:s(!1),right:s(!0)}},83658:function(e,t,n){"use strict";var r=n(19781),o=n(43157),i=TypeError,a=Object.getOwnPropertyDescriptor,l=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},41589:function(e,t,n){var r=n(51400),o=n(26244),i=n(86135),a=Array,l=Math.max;e.exports=function(e,t,n){for(var s=o(e),u=r(t,s),c=r(void 0===n?s:n,s),f=a(l(c-u,0)),d=0;u<c;u++,d++)i(f,d,e[u]);return f.length=d,f}},50206:function(e,t,n){var r=n(1702);e.exports=r([].slice)},94362:function(e,t,n){var r=n(41589),o=Math.floor,i=function(e,t){var n=e.length,s=o(n/2);return n<8?a(e,t):l(e,i(r(e,0,s),t),i(r(e,s),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},l=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,l=0;a<o||l<i;)e[a+l]=a<o&&l<i?r(t[a],n[l])<=0?t[a++]:n[l++]:a<o?t[a++]:n[l++];return e};e.exports=i},77475:function(e,t,n){var r=n(43157),o=n(4411),i=n(70111),a=n(5112)("species"),l=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===l||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?l:t}},65417:function(e,t,n){var r=n(77475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},53411:function(e,t,n){var r=n(19670),o=n(99212);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},17072:function(e,t,n){var r=n(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},84326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},70648:function(e,t,n){var r=n(51694),o=n(60614),i=n(84326),a=n(5112)("toStringTag"),l=Object,s="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=l(e),a))?n:s?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},95631:function(e,t,n){"use strict";var r=n(3070).f,o=n(70030),i=n(89190),a=n(49974),l=n(25787),s=n(68554),u=n(20408),c=n(51656),f=n(76178),d=n(96340),p=n(19781),h=n(62423).fastKey,m=n(29909),y=m.set,v=m.getterFor;e.exports={getConstructor:function(e,t,n,c){var f=e((function(e,r){l(e,d),y(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),s(r)||u(r,e[c],{that:e,AS_ENTRIES:n})})),d=f.prototype,m=v(t),b=function(e,t,n){var r,o,i=m(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=h(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=m(e),o=h(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(d,{clear:function(){for(var e=m(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,n=m(t),r=g(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=m(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(d,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),p&&r(d,"size",{get:function(){return m(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);c(e,t,(function(e,t){y(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},29320:function(e,t,n){"use strict";var r=n(1702),o=n(89190),i=n(62423).getWeakData,a=n(25787),l=n(19670),s=n(68554),u=n(70111),c=n(20408),f=n(42092),d=n(92597),p=n(29909),h=p.set,m=p.getterFor,y=f.find,v=f.findIndex,b=r([].splice),g=0,w=function(e){return e.frozen||(e.frozen=new k)},k=function(){this.entries=[]},O=function(e,t){return y(e.entries,(function(e){return e[0]===t}))};k.prototype={get:function(e){var t=O(this,e);if(t)return t[1]},has:function(e){return!!O(this,e)},set:function(e,t){var n=O(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&b(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var f=e((function(e,o){a(e,p),h(e,{type:t,id:g++,frozen:void 0}),s(o)||c(o,e[r],{that:e,AS_ENTRIES:n})})),p=f.prototype,y=m(t),v=function(e,t,n){var r=y(e),o=i(l(t),!0);return!0===o?w(r).set(t,n):o[r.id]=n,e};return o(p,{delete:function(e){var t=y(this);if(!u(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=y(this);if(!u(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&d(n,t.id)}}),o(p,n?{get:function(e){var t=y(this);if(u(e)){var n=i(e);return!0===n?w(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},77710:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(1702),a=n(54705),l=n(98052),s=n(62423),u=n(20408),c=n(25787),f=n(60614),d=n(68554),p=n(70111),h=n(47293),m=n(17072),y=n(58003),v=n(79587);e.exports=function(e,t,n){var b=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),w=b?"set":"add",k=o[e],O=k&&k.prototype,_=k,S={},P=function(e){var t=i(O[e]);l(O,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return g&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(k)||!(g||O.forEach&&!h((function(){(new k).entries().next()})))))_=n.getConstructor(t,e,b,w),s.enable();else if(a(e,!0)){var j=new _,x=j[w](g?{}:-0,1)!=j,E=h((function(){j.has(1)})),C=m((function(e){new k(e)})),A=!g&&h((function(){for(var e=new k,t=5;t--;)e[w](t,t);return!e.has(-0)}));C||((_=t((function(e,t){c(e,O);var n=v(new k,e,_);return d(t)||u(t,n[w],{that:n,AS_ENTRIES:b}),n}))).prototype=O,O.constructor=_),(E||A)&&(P("delete"),P("has"),b&&P("get")),(A||x)&&P(w),g&&O.clear&&delete O.clear}return S[e]=_,r({global:!0,constructor:!0,forced:_!=k},S),y(_,e),g||n.setStrong(_,e,b),_}},99920:function(e,t,n){var r=n(92597),o=n(53887),i=n(31236),a=n(3070);e.exports=function(e,t,n){for(var l=o(t),s=a.f,u=i.f,c=0;c<l.length;c++){var f=l[c];r(e,f)||n&&r(n,f)||s(e,f,u(t,f))}}},84964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:function(e,t,n){var r=n(47293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},76178:function(e){e.exports=function(e,t){return{value:e,done:t}}},68880:function(e,t,n){var r=n(19781),o=n(3070),i=n(79114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},79114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:function(e,t,n){"use strict";var r=n(34948),o=n(3070),i=n(79114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},85573:function(e,t,n){"use strict";var r=n(1702),o=n(47293),i=n(76650).start,a=RangeError,l=isFinite,s=Math.abs,u=Date.prototype,c=u.toISOString,f=r(u.getTime),d=r(u.getUTCDate),p=r(u.getUTCFullYear),h=r(u.getUTCHours),m=r(u.getUTCMilliseconds),y=r(u.getUTCMinutes),v=r(u.getUTCMonth),b=r(u.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!o((function(){c.call(new Date(NaN))}))?function(){if(!l(f(this)))throw a("Invalid time value");var e=this,t=p(e),n=m(e),r=t<0?"-":t>9999?"+":"";return r+i(s(t),r?6:4,0)+"-"+i(v(e)+1,2,0)+"-"+i(d(e),2,0)+"T"+i(h(e),2,0)+":"+i(y(e),2,0)+":"+i(b(e),2,0)+"."+i(n,3,0)+"Z"}:c},38709:function(e,t,n){"use strict";var r=n(19670),o=n(92140),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw i("Incorrect hint");return o(this,e)}},47045:function(e,t,n){var r=n(56339),o=n(3070);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},98052:function(e,t,n){var r=n(60614),o=n(3070),i=n(56339),a=n(13072);e.exports=function(e,t,n,l){l||(l={});var s=l.enumerable,u=void 0!==l.name?l.name:t;if(r(n)&&i(n,u,l),l.global)s?e[t]=n:a(t,n);else{try{l.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},89190:function(e,t,n){var r=n(98052);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},13072:function(e,t,n){var r=n(17854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},85117:function(e,t,n){"use strict";var r=n(66330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},19781:function(e,t,n){var r=n(47293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},80317:function(e,t,n){var r=n(17854),o=n(70111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},7207:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},48324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:function(e,t,n){var r=n(80317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},68886:function(e,t,n){var r=n(88113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e,t,n){var r=n(83823),o=n(35268);e.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},83823:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},30256:function(e,t,n){var r=n(88113);e.exports=/MSIE|Trident/.test(r)},71528:function(e,t,n){var r=n(88113),o=n(17854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:function(e,t,n){var r=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},35268:function(e,t,n){var r=n(84326),o=n(17854);e.exports="process"==r(o.process)},71036:function(e,t,n){var r=n(88113);e.exports=/web0s(?!.*chrome)/i.test(r)},88113:function(e,t,n){var r=n(35005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(17854),a=n(88113),l=i.process,s=i.Deno,u=l&&l.versions||s&&s.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},98008:function(e,t,n){var r=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},80748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(e,t,n){var r=n(17854),o=n(31236).f,i=n(68880),a=n(98052),l=n(13072),s=n(99920),u=n(54705);e.exports=function(e,t){var n,c,f,d,p,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[h]||l(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=o(n,c))&&p.value:n[c],!u(m?c:h+(y?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;s(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,c,d,e)}}},47293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:function(e,t,n){"use strict";n(74916);var r=n(21470),o=n(98052),i=n(22261),a=n(47293),l=n(5112),s=n(68880),u=l("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var d=l(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var m=r(/./[d]),y=t(d,""[e],(function(e,t,n,o,a){var l=r(e),s=t.exec;return s===i||s===c.exec?p&&!a?{done:!0,value:m(t,n,o)}:{done:!0,value:l(n,t,o)}:{done:!1}}));o(String.prototype,e,y[0]),o(c,d,y[1])}f&&s(c[d],"sham",!0)}},76677:function(e,t,n){var r=n(47293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:function(e,t,n){var r=n(34374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},49974:function(e,t,n){var r=n(21470),o=n(19662),i=n(34374),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},34374:function(e,t,n){var r=n(47293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},27065:function(e,t,n){"use strict";var r=n(1702),o=n(19662),i=n(70111),a=n(92597),l=n(50206),s=n(34374),u=Function,c=r([].concat),f=r([].join),d={},p=function(e,t,n){if(!a(d,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";d[t]=u("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=s?u.bind:function(e){var t=o(this),n=t.prototype,r=l(arguments,1),a=function(){var n=c(r,l(arguments));return this instanceof a?p(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},46916:function(e,t,n){var r=n(34374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},76530:function(e,t,n){var r=n(19781),o=n(92597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),s=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:s,CONFIGURABLE:u}},21470:function(e,t,n){var r=n(84326),o=n(1702);e.exports=function(e){if("Function"===r(e))return o(e)}},1702:function(e,t,n){var r=n(34374),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},35005:function(e,t,n){var r=n(17854),o=n(60614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},71246:function(e,t,n){var r=n(70648),o=n(58173),i=n(68554),a=n(97497),l=n(5112)("iterator");e.exports=function(e){if(!i(e))return o(e,l)||o(e,"@@iterator")||a[r(e)]}},18554:function(e,t,n){var r=n(46916),o=n(19662),i=n(19670),a=n(66330),l=n(71246),s=TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return i(r(n,e));throw s(a(e)+" is not iterable")}},58173:function(e,t,n){var r=n(19662),o=n(68554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},10647:function(e,t,n){var r=n(1702),o=n(47908),i=Math.floor,a=r("".charAt),l=r("".replace),s=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,m=c;return void 0!==f&&(f=o(f),m=u),l(d,m,(function(o,l){var u;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,n);case"'":return s(t,p);case"<":u=f[s(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>h){var d=i(c/10);return 0===d?o:d<=h?void 0===r[d-1]?a(l,1):r[d-1]+a(l,1):o}u=r[c-1]}return void 0===u?"":u}))}},17854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:function(e,t,n){var r=n(1702),o=n(47908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(17854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},60490:function(e,t,n){var r=n(35005);e.exports=r("document","documentElement")},64664:function(e,t,n){var r=n(19781),o=n(47293),i=n(80317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},11179:function(e){var t=Array,n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,l,s){var u,c,f,d=t(s),p=8*s-l-1,h=(1<<p)-1,m=h>>1,y=23===l?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,b=0;for((e=n(e))!=e||e===1/0?(c=e!=e?1:0,u=h):(u=o(i(e)/a),e*(f=r(2,-u))<1&&(u--,f*=2),(e+=u+m>=1?y/f:y*r(2,1-m))*f>=2&&(u++,f/=2),u+m>=h?(c=0,u=h):u+m>=1?(c=(e*f-1)*r(2,l),u+=m):(c=e*r(2,m-1)*r(2,l),u=0));l>=8;)d[b++]=255&c,c/=256,l-=8;for(u=u<<l|c,p+=l;p>0;)d[b++]=255&u,u/=256,p-=8;return d[--b]|=128*v,d},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<<i)-1,l=a>>1,s=i-7,u=o-1,c=e[u--],f=127&c;for(c>>=7;s>0;)f=256*f+e[u--],s-=8;for(n=f&(1<<-s)-1,f>>=-s,s+=t;s>0;)n=256*n+e[u--],s-=8;if(0===f)f=1-l;else{if(f===a)return n?NaN:c?-1/0:1/0;n+=r(2,t),f-=l}return(c?-1:1)*n*r(2,f-t)}}},68361:function(e,t,n){var r=n(1702),o=n(47293),i=n(84326),a=Object,l=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?l(e,""):a(e)}:a},79587:function(e,t,n){var r=n(60614),o=n(70111),i=n(27674);e.exports=function(e,t,n){var a,l;return i&&r(a=t.constructor)&&a!==n&&o(l=a.prototype)&&l!==n.prototype&&i(e,l),e}},42788:function(e,t,n){var r=n(1702),o=n(60614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},62423:function(e,t,n){var r=n(82109),o=n(1702),i=n(3501),a=n(70111),l=n(92597),s=n(3070).f,u=n(8006),c=n(1156),f=n(52050),d=n(69711),p=n(76677),h=!1,m=d("meta"),y=0,v=function(e){s(e,m,{value:{objectID:"O"+y++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},h=!0;var e=u.f,t=o([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l(e,m)){if(!f(e))return"F";if(!t)return"E";v(e)}return e[m].objectID},getWeakData:function(e,t){if(!l(e,m)){if(!f(e))return!0;if(!t)return!1;v(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&f(e)&&!l(e,m)&&v(e),e}};i[m]=!0},29909:function(e,t,n){var r,o,i,a=n(94811),l=n(17854),s=n(70111),u=n(68880),c=n(92597),f=n(5465),d=n(6200),p=n(3501),h="Object already initialized",m=l.TypeError,y=l.WeakMap;if(a||f.state){var v=f.state||(f.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw m(h);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var b=d("state");p[b]=!0,r=function(e,t){if(c(e,b))throw m(h);return t.facade=e,u(e,b,t),t},o=function(e){return c(e,b)?e[b]:{}},i=function(e){return c(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},97659:function(e,t,n){var r=n(5112),o=n(97497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},43157:function(e,t,n){var r=n(84326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},44067:function(e,t,n){var r=n(70648),o=n(1702)("".slice);e.exports=function(e){return"Big"===o(r(e),0,3)}},60614:function(e,t,n){var r=n(4154),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4411:function(e,t,n){var r=n(1702),o=n(47293),i=n(60614),a=n(70648),l=n(35005),s=n(42788),u=function(){},c=[],f=l("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(u),m=function(e){if(!i(e))return!1;try{return f(u,c,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,s(e))}catch(e){return!0}};y.sham=!0,e.exports=!f||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?y:m},45032:function(e,t,n){var r=n(92597);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},54705:function(e,t,n){var r=n(47293),o=n(60614),i=/#|\.prototype\./,a=function(e,t){var n=s[l(e)];return n==c||n!=u&&(o(t)?r(t):!!t)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},55988:function(e,t,n){var r=n(70111),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},68554:function(e){e.exports=function(e){return null==e}},70111:function(e,t,n){var r=n(60614),o=n(4154),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},31913:function(e){e.exports=!1},47850:function(e,t,n){var r=n(70111),o=n(84326),i=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},52190:function(e,t,n){var r=n(35005),o=n(60614),i=n(47976),a=n(43307),l=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,l(e))}},20408:function(e,t,n){var r=n(49974),o=n(46916),i=n(19670),a=n(66330),l=n(97659),s=n(26244),u=n(47976),c=n(18554),f=n(71246),d=n(99212),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var y,v,b,g,w,k,O,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),E=r(t,_),C=function(e){return y&&d(y,"normal",e),new h(!0,e)},A=function(e){return S?(i(e),x?E(e[0],e[1],C):E(e[0],e[1])):x?E(e,C):E(e)};if(P)y=e.iterator;else if(j)y=e;else{if(!(v=f(e)))throw p(a(e)+" is not iterable");if(l(v)){for(b=0,g=s(e);g>b;b++)if((w=A(e[b]))&&u(m,w))return w;return new h(!1)}y=c(e,v)}for(k=P?e.next:y.next;!(O=o(k,y)).done;){try{w=A(O.value)}catch(e){d(y,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},99212:function(e,t,n){var r=n(46916),o=n(19670),i=n(58173);e.exports=function(e,t,n){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===t)throw n;if(l)throw a;return o(a),n}},63061:function(e,t,n){"use strict";var r=n(13383).IteratorPrototype,o=n(70030),i=n(79114),a=n(58003),l=n(97497),s=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),l[c]=s,e}},51656:function(e,t,n){"use strict";var r=n(82109),o=n(46916),i=n(31913),a=n(76530),l=n(60614),s=n(63061),u=n(79518),c=n(27674),f=n(58003),d=n(68880),p=n(98052),h=n(5112),m=n(97497),y=n(13383),v=a.PROPER,b=a.CONFIGURABLE,g=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,k=h("iterator"),O="keys",_="values",S="entries",P=function(){return this};e.exports=function(e,t,n,a,h,y,j){s(n,t,a);var x,E,C,A=function(e){if(e===h&&I)return I;if(!w&&e in R)return R[e];switch(e){case O:case _:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",M=!1,R=e.prototype,D=R[k]||R["@@iterator"]||h&&R[h],I=!w&&D||A(h),L="Array"==t&&R.entries||D;if(L&&(x=u(L.call(new e)))!==Object.prototype&&x.next&&(i||u(x)===g||(c?c(x,g):l(x[k])||p(x,k,P)),f(x,T,!0,!0),i&&(m[T]=P)),v&&h==_&&D&&D.name!==_&&(!i&&b?d(R,"name",_):(M=!0,I=function(){return o(D,this)})),h)if(E={values:A(_),keys:y?I:A(O),entries:A(S)},j)for(C in E)(w||M||!(C in R))&&p(R,C,E[C]);else r({target:t,proto:!0,forced:w||M},E);return i&&!j||R[k]===I||p(R,k,I,{name:h}),m[t]=I,E}},13383:function(e,t,n){"use strict";var r,o,i,a=n(47293),l=n(60614),s=n(70111),u=n(70030),c=n(79518),f=n(98052),d=n(5112),p=n(31913),h=d("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):m=!0),!s(r)||a((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=u(r)),l(r[h])||f(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},97497:function(e){e.exports={}},26244:function(e,t,n){var r=n(17466);e.exports=function(e){return r(e.length)}},56339:function(e,t,n){var r=n(47293),o=n(60614),i=n(92597),a=n(19781),l=n(76530).CONFIGURABLE,s=n(42788),u=n(29909),c=u.enforce,f=u.get,d=Object.defineProperty,p=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||l&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&f(this).source||s(this)}),"toString")},74758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},95948:function(e,t,n){var r,o,i,a,l,s,u,c,f=n(17854),d=n(49974),p=n(31236).f,h=n(20261).set,m=n(6833),y=n(71528),v=n(71036),b=n(35268),g=f.MutationObserver||f.WebKitMutationObserver,w=f.document,k=f.process,O=f.Promise,_=p(f,"queueMicrotask"),S=_&&_.value;S||(r=function(){var e,t;for(b&&(e=k.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},m||b||v||!g||!w?!y&&O&&O.resolve?((u=O.resolve(void 0)).constructor=O,c=d(u.then,u),a=function(){c(r)}):b?a=function(){k.nextTick(r)}:(h=d(h,f),a=function(){h(r)}):(l=!0,s=w.createTextNode(""),new g(r).observe(s,{characterData:!0}),a=function(){s.data=l=!l})),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},78523:function(e,t,n){"use strict";var r=n(19662),o=TypeError,i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},3929:function(e,t,n){var r=n(47850),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},77023:function(e,t,n){var r=n(17854).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},2814:function(e,t,n){var r=n(17854),o=n(47293),i=n(1702),a=n(41340),l=n(53111).trim,s=n(81361),u=i("".charAt),c=r.parseFloat,f=r.Symbol,d=f&&f.iterator,p=1/c(s+"-0")!=-1/0||d&&!o((function(){c(Object(d))}));e.exports=p?function(e){var t=l(a(e)),n=c(t);return 0===n&&"-"==u(t,0)?-0:n}:c},83009:function(e,t,n){var r=n(17854),o=n(47293),i=n(1702),a=n(41340),l=n(53111).trim,s=n(81361),u=r.parseInt,c=r.Symbol,f=c&&c.iterator,d=/^[+-]?0x/i,p=i(d.exec),h=8!==u(s+"08")||22!==u(s+"0x16")||f&&!o((function(){u(Object(f))}));e.exports=h?function(e,t){var n=l(a(e));return u(n,t>>>0||(p(d,n)?16:10))}:u},21574:function(e,t,n){"use strict";var r=n(19781),o=n(1702),i=n(46916),a=n(47293),l=n(81956),s=n(25181),u=n(55296),c=n(47908),f=n(68361),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||l(d({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,d=s.f,p=u.f;o>a;)for(var m,y=f(arguments[a++]),v=d?h(l(y),d(y)):l(y),b=v.length,g=0;b>g;)m=v[g++],r&&!i(p,y,m)||(n[m]=y[m]);return n}:d},70030:function(e,t,n){var r,o=n(19670),i=n(36048),a=n(80748),l=n(3501),s=n(60490),u=n(80317),c=n(6200)("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&r?p(r):((t=u("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};l[c]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[c]=e):n=h(),void 0===t?n:i.f(n,t)}},36048:function(e,t,n){var r=n(19781),o=n(3353),i=n(3070),a=n(19670),l=n(45656),s=n(81956);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=l(t),o=s(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},3070:function(e,t,n){var r=n(19781),o=n(64664),i=n(3353),a=n(19670),l=n(34948),s=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(a(e),t=l(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=l(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},31236:function(e,t,n){var r=n(19781),o=n(46916),i=n(55296),a=n(79114),l=n(45656),s=n(34948),u=n(92597),c=n(64664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=l(e),t=s(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},1156:function(e,t,n){var r=n(84326),o=n(45656),i=n(8006).f,a=n(41589),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(l)}}(e):i(o(e))}},8006:function(e,t,n){var r=n(16324),o=n(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},25181:function(e,t){t.f=Object.getOwnPropertySymbols},79518:function(e,t,n){var r=n(92597),o=n(60614),i=n(47908),a=n(6200),l=n(49920),s=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=i(e);if(r(t,s))return t[s];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},52050:function(e,t,n){var r=n(47293),o=n(70111),i=n(84326),a=n(7556),l=Object.isExtensible,s=r((function(){l(1)}));e.exports=s||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!l||l(e))}:l},47976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},16324:function(e,t,n){var r=n(1702),o=n(92597),i=n(45656),a=n(41318).indexOf,l=n(3501),s=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&s(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||s(c,n));return c}},81956:function(e,t,n){var r=n(16324),o=n(80748);e.exports=Object.keys||function(e){return r(e,o)}},55296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},69026:function(e,t,n){"use strict";var r=n(31913),o=n(17854),i=n(47293),a=n(98008);e.exports=r||!i((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}}))},27674:function(e,t,n){var r=n(1702),o=n(19670),i=n(96077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},44699:function(e,t,n){var r=n(19781),o=n(1702),i=n(81956),a=n(45656),l=o(n(55296).f),s=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),c=u.length,f=0,d=[];c>f;)n=u[f++],r&&!l(o,n)||s(d,e?[n,o[n]]:o[n]);return d}};e.exports={entries:u(!0),values:u(!1)}},90288:function(e,t,n){"use strict";var r=n(51694),o=n(70648);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},92140:function(e,t,n){var r=n(46916),o=n(60614),i=n(70111),a=TypeError;e.exports=function(e,t){var n,l;if("string"===t&&o(n=e.toString)&&!i(l=r(n,e)))return l;if(o(n=e.valueOf)&&!i(l=r(n,e)))return l;if("string"!==t&&o(n=e.toString)&&!i(l=r(n,e)))return l;throw a("Can't convert object to primitive value")}},53887:function(e,t,n){var r=n(35005),o=n(1702),i=n(8006),a=n(25181),l=n(19670),s=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(l(e)),n=a.f;return n?s(t,n(e)):t}},40857:function(e,t,n){var r=n(17854);e.exports=r},12534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},63702:function(e,t,n){var r=n(17854),o=n(2492),i=n(60614),a=n(54705),l=n(42788),s=n(5112),u=n(7871),c=n(83823),f=n(31913),d=n(7392),p=o&&o.prototype,h=s("species"),m=!1,y=i(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=l(o),t=e!==String(o);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(m=n.then((function(){}))instanceof r))return!0}return!t&&(u||c)&&!y}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:y,SUBCLASSING:m}},2492:function(e,t,n){var r=n(17854);e.exports=r.Promise},69478:function(e,t,n){var r=n(19670),o=n(70111),i=n(78523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},80612:function(e,t,n){var r=n(2492),o=n(17072),i=n(63702).CONSTRUCTOR;e.exports=i||!o((function(e){r.all(e).then(void 0,(function(){}))}))},2626:function(e,t,n){var r=n(3070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},18572:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},97651:function(e,t,n){var r=n(46916),o=n(19670),i=n(60614),a=n(84326),l=n(22261),s=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return r(l,e,t);throw s("RegExp#exec called on incompatible receiver")}},22261:function(e,t,n){"use strict";var r,o,i=n(46916),a=n(1702),l=n(41340),s=n(67066),u=n(52999),c=n(72309),f=n(70030),d=n(29909).get,p=n(9441),h=n(38173),m=c("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,v=y,b=a("".charAt),g=a("".indexOf),w=a("".replace),k=a("".slice),O=(o=/b*/g,i(y,r=/a/,"a"),i(y,o,"a"),0!==r.lastIndex||0!==o.lastIndex),_=u.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(O||S||_||p||h)&&(v=function(e){var t,n,r,o,a,u,c,p=this,h=d(p),P=l(e),j=h.raw;if(j)return j.lastIndex=p.lastIndex,t=i(v,j,P),p.lastIndex=j.lastIndex,t;var x=h.groups,E=_&&p.sticky,C=i(s,p),A=p.source,T=0,M=P;if(E&&(C=w(C,"y",""),-1===g(C,"g")&&(C+="g"),M=k(P,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==b(P,p.lastIndex-1))&&(A="(?: "+A+")",M=" "+M,T++),n=new RegExp("^(?:"+A+")",C)),S&&(n=new RegExp("^"+A+"$(?!\\s)",C)),O&&(r=p.lastIndex),o=i(y,E?n:p,M),E?o?(o.input=k(o.input,T),o[0]=k(o[0],T),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:O&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(m,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&x)for(o.groups=u=f(null),a=0;a<x.length;a++)u[(c=x[a])[0]]=o[c[1]];return o}),e.exports=v},67066:function(e,t,n){"use strict";var r=n(19670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},34706:function(e,t,n){var r=n(46916),o=n(92597),i=n(47976),a=n(67066),l=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in l||o(e,"flags")||!i(l,e)?t:r(a,e)}},52999:function(e,t,n){var r=n(47293),o=n(17854).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),l=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:i}},9441:function(e,t,n){var r=n(47293),o=n(17854).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},38173:function(e,t,n){var r=n(47293),o=n(17854).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},84488:function(e,t,n){var r=n(68554),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},81150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},17152:function(e,t,n){var r=n(17854),o=n(22104),i=n(60614),a=n(88113),l=n(50206),s=n(48053),u=/MSIE .\./.test(a),c=r.Function,f=function(e){return u?function(t,n){var r=s(arguments.length,1)>2,a=i(t)?t:c(t),u=r?l(arguments,2):void 0;return e(r?function(){o(a,this,u)}:a,n)}:e};e.exports={setTimeout:f(r.setTimeout),setInterval:f(r.setInterval)}},96340:function(e,t,n){"use strict";var r=n(35005),o=n(3070),i=n(5112),a=n(19781),l=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},58003:function(e,t,n){var r=n(3070).f,o=n(92597),i=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(72309),o=n(69711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(17854),o=n(13072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},72309:function(e,t,n){var r=n(31913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},36707:function(e,t,n){var r=n(19670),o=n(39483),i=n(68554),a=n(5112)("species");e.exports=function(e,t){var n,l=r(e).constructor;return void 0===l||i(n=r(l)[a])?t:o(n)}},28710:function(e,t,n){var r=n(1702),o=n(19303),i=n(41340),a=n(84488),l=r("".charAt),s=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,f=i(a(t)),d=o(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=s(f,d))<55296||r>56319||d+1===p||(c=s(f,d+1))<56320||c>57343?e?l(f,d):r:e?u(f,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},54986:function(e,t,n){var r=n(88113);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},76650:function(e,t,n){var r=n(1702),o=n(17466),i=n(41340),a=n(38415),l=n(84488),s=r(a),u=r("".slice),c=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=i(l(t)),p=o(n),h=d.length,m=void 0===r?" ":i(r);return p<=h||""==m?d:((f=s(m,c((a=p-h)/m.length))).length>a&&(f=u(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},33197:function(e,t,n){"use strict";var r=n(1702),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,l="Overflow: input needs wider integers to process",s=RangeError,u=r(a.exec),c=Math.floor,f=String.fromCharCode,d=r("".charCodeAt),p=r([].join),h=r([].push),m=r("".replace),y=r("".split),v=r("".toLowerCase),b=function(e){return e+22+75*(e<26)},g=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=d(e,n++);if(o>=55296&&o<=56319&&n<r){var i=d(e,n++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),n--)}else h(t,o)}return t}(e);var n,r,i=e.length,a=128,u=0,m=72;for(n=0;n<e.length;n++)(r=e[n])<128&&h(t,f(r));var y=t.length,v=y;for(y&&h(t,"-");v<i;){var w=o;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<w&&(w=r);var k=v+1;if(w-a>c((o-u)/k))throw s(l);for(u+=(w-a)*k,a=w,n=0;n<e.length;n++){if((r=e[n])<a&&++u>o)throw s(l);if(r==a){for(var O=u,_=36;;){var S=_<=m?1:_>=m+26?26:_-m;if(O<S)break;var P=O-S,j=36-S;h(t,f(b(S+P%j))),O=c(P/j),_+=36}h(t,f(b(O))),m=g(u,k,v==y),u=0,v++}}u++,a++}return p(t,"")};e.exports=function(e){var t,n,r=[],o=y(m(v(e),a,"."),".");for(t=0;t<o.length;t++)n=o[t],h(r,u(i,n)?"xn--"+w(n):n);return p(r,".")}},38415:function(e,t,n){"use strict";var r=n(19303),o=n(41340),i=n(84488),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",l=r(e);if(l<0||l==1/0)throw a("Wrong number of repetitions");for(;l>0;(l>>>=1)&&(t+=t))1&l&&(n+=t);return n}},76091:function(e,t,n){var r=n(76530).PROPER,o=n(47293),i=n(81361);e.exports=function(e){return o((function(){return!!i[e]()||"​᠎"!=="​᠎"[e]()||r&&i[e].name!==e}))}},53111:function(e,t,n){var r=n(1702),o=n(84488),i=n(41340),a=n(81361),l=r("".replace),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e){return function(t){var n=i(o(t));return 1&e&&(n=l(n,u,"")),2&e&&(n=l(n,c,"")),n}};e.exports={start:f(1),end:f(2),trim:f(3)}},36293:function(e,t,n){var r=n(7392),o=n(47293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},56532:function(e,t,n){var r=n(46916),o=n(35005),i=n(5112),a=n(98052);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,l=i("toPrimitive");t&&!t[l]&&a(t,l,(function(e){return r(n,this)}),{arity:1})}},2015:function(e,t,n){var r=n(36293);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},20261:function(e,t,n){var r,o,i,a,l=n(17854),s=n(22104),u=n(49974),c=n(60614),f=n(92597),d=n(47293),p=n(60490),h=n(50206),m=n(80317),y=n(48053),v=n(6833),b=n(35268),g=l.setImmediate,w=l.clearImmediate,k=l.process,O=l.Dispatch,_=l.Function,S=l.MessageChannel,P=l.String,j=0,x={};try{r=l.location}catch(e){}var E=function(e){if(f(x,e)){var t=x[e];delete x[e],t()}},C=function(e){return function(){E(e)}},A=function(e){E(e.data)},T=function(e){l.postMessage(P(e),r.protocol+"//"+r.host)};g&&w||(g=function(e){y(arguments.length,1);var t=c(e)?e:_(e),n=h(arguments,1);return x[++j]=function(){s(t,void 0,n)},o(j),j},w=function(e){delete x[e]},b?o=function(e){k.nextTick(C(e))}:O&&O.now?o=function(e){O.now(C(e))}:S&&!v?(a=(i=new S).port2,i.port1.onmessage=A,o=u(a.postMessage,a)):l.addEventListener&&c(l.postMessage)&&!l.importScripts&&r&&"file:"!==r.protocol&&!d(T)?(o=T,l.addEventListener("message",A,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),E(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:g,clear:w}},50863:function(e,t,n){var r=n(1702);e.exports=r(1..valueOf)},51400:function(e,t,n){var r=n(19303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},64599:function(e,t,n){var r=n(57593),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},57067:function(e,t,n){var r=n(19303),o=n(17466),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw i("Wrong length or index");return n}},45656:function(e,t,n){var r=n(68361),o=n(84488);e.exports=function(e){return r(o(e))}},19303:function(e,t,n){var r=n(74758);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},17466:function(e,t,n){var r=n(19303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},47908:function(e,t,n){var r=n(84488),o=Object;e.exports=function(e){return o(r(e))}},84590:function(e,t,n){var r=n(73002),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw o("Wrong offset");return n}},73002:function(e,t,n){var r=n(19303),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw o("The argument can't be less than 0");return t}},57593:function(e,t,n){var r=n(46916),o=n(70111),i=n(52190),a=n(58173),l=n(92140),s=n(5112),u=TypeError,c=s("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,s=a(e,c);if(s){if(void 0===t&&(t="default"),n=r(s,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},34948:function(e,t,n){var r=n(57593),o=n(52190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},51694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},41340:function(e,t,n){var r=n(70648),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},66330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},19843:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(46916),a=n(19781),l=n(63832),s=n(90260),u=n(13331),c=n(25787),f=n(79114),d=n(68880),p=n(55988),h=n(17466),m=n(57067),y=n(84590),v=n(34948),b=n(92597),g=n(70648),w=n(70111),k=n(52190),O=n(70030),_=n(47976),S=n(27674),P=n(8006).f,j=n(97321),x=n(42092).forEach,E=n(96340),C=n(3070),A=n(31236),T=n(29909),M=n(79587),R=T.get,D=T.set,I=T.enforce,L=C.f,V=A.f,N=Math.round,F=o.RangeError,B=u.ArrayBuffer,U=B.prototype,z=u.DataView,H=s.NATIVE_ARRAY_BUFFER_VIEWS,q=s.TYPED_ARRAY_TAG,W=s.TypedArray,K=s.TypedArrayPrototype,Y=s.aTypedArrayConstructor,G=s.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",X=function(e,t){Y(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},Z=function(e,t){L(e,t,{get:function(){return R(this)[t]}})},Q=function(e){var t;return _(U,e)||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},ee=function(e,t){return G(e)&&!k(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=v(t),ee(e,t)?f(2,e[t]):V(e,t)},ne=function(e,t,n){return t=v(t),!(ee(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?L(e,t,n):(e[t]=n.value,e)};a?(H||(A.f=te,C.f=ne,Z(K,"buffer"),Z(K,"byteOffset"),Z(K,"byteLength"),Z(K,"length")),r({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",u="get"+e,f="set"+e,p=o[s],v=p,b=v&&v.prototype,g={},k=function(e,t){L(e,t,{get:function(){return function(e,t){var n=R(e);return n.view[u](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=R(e);n&&(r=(r=N(r))<0?0:r>255?255:255&r),o.view[f](t*a+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};H?l&&(v=t((function(e,t,n,r){return c(e,b),M(w(t)?Q(t)?void 0!==r?new p(t,y(n,a),r):void 0!==n?new p(t,y(n,a)):new p(t):G(t)?X(v,t):i(j,v,t):new p(m(t)),e,v)})),S&&S(v,W),x(P(p),(function(e){e in v||d(v,e,p[e])})),v.prototype=b):(v=t((function(e,t,n,r){c(e,b);var o,l,s,u=0,f=0;if(w(t)){if(!Q(t))return G(t)?X(v,t):i(j,v,t);o=t,f=y(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw F(J);if((l=d-f)<0)throw F(J)}else if((l=h(r)*a)+f>d)throw F(J);s=l/a}else s=m(t),o=new B(l=s*a);for(D(e,{buffer:o,byteOffset:f,byteLength:l,length:s,view:new z(o)});u<s;)k(e,u++)})),S&&S(v,W),b=v.prototype=O(K)),b.constructor!==v&&d(b,"constructor",v),I(b).TypedArrayConstructor=v,q&&d(b,q,s);var _=v!=p;g[s]=v,r({global:!0,constructor:!0,forced:_,sham:!H},g),$ in v||d(v,$,a),$ in b||d(b,$,a),E(s)}):e.exports=function(){}},63832:function(e,t,n){var r=n(17854),o=n(47293),i=n(17072),a=n(90260).NATIVE_ARRAY_BUFFER_VIEWS,l=r.ArrayBuffer,s=r.Int8Array;e.exports=!a||!o((function(){s(1)}))||!o((function(){new s(-1)}))||!i((function(e){new s,new s(null),new s(1.5),new s(e)}),!0)||o((function(){return 1!==new s(new l(2),1,void 0).length}))},43074:function(e,t,n){var r=n(97745),o=n(66304);e.exports=function(e,t){return r(o(e),t)}},97321:function(e,t,n){var r=n(49974),o=n(46916),i=n(39483),a=n(47908),l=n(26244),s=n(18554),u=n(71246),c=n(97659),f=n(44067),d=n(90260).aTypedArrayConstructor,p=n(64599);e.exports=function(e){var t,n,h,m,y,v,b,g,w=i(this),k=a(e),O=arguments.length,_=O>1?arguments[1]:void 0,S=void 0!==_,P=u(k);if(P&&!c(P))for(g=(b=s(k,P)).next,k=[];!(v=o(g,b)).done;)k.push(v.value);for(S&&O>2&&(_=r(_,arguments[2])),n=l(k),h=new(d(w))(n),m=f(h),t=0;n>t;t++)y=S?_(k[t],t):k[t],h[t]=m?p(y):+y;return h}},66304:function(e,t,n){var r=n(90260),o=n(36707),i=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},69711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},85143:function(e,t,n){var r=n(47293),o=n(5112),i=n(31913),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},43307:function(e,t,n){var r=n(36293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(19781),o=n(47293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48053:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},94811:function(e,t,n){var r=n(17854),o=n(60614),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},26800:function(e,t,n){var r=n(40857),o=n(92597),i=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(17854),o=n(72309),i=n(92597),a=n(69711),l=n(36293),s=n(43307),u=o("wks"),c=r.Symbol,f=c&&c.for,d=s?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!l&&"string"!=typeof u[e]){var t="Symbol."+e;l&&i(c,e)?u[e]=c[e]:u[e]=s&&f?f(t):d(t)}return u[e]}},81361:function(e){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},39575:function(e,t,n){"use strict";var r=n(82109),o=n(21470),i=n(47293),a=n(13331),l=n(19670),s=n(51400),u=n(17466),c=n(36707),f=a.ArrayBuffer,d=a.DataView,p=d.prototype,h=o(f.prototype.slice),m=o(p.getUint8),y=o(p.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(l(this),e);for(var n=l(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),i=new(c(this,f))(u(o-r)),a=new d(this),p=new d(i),v=0;r<o;)y(p,v++,m(a,r++));return i}})},92222:function(e,t,n){"use strict";var r=n(82109),o=n(47293),i=n(43157),a=n(70111),l=n(47908),s=n(26244),u=n(7207),c=n(86135),f=n(65417),d=n(81194),p=n(5112),h=n(7392),m=p("isConcatSpreadable"),y=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=d("concat"),b=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!y||!v},{concat:function(e){var t,n,r,o,i,a=l(this),d=f(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(b(i=-1===t?a:arguments[t]))for(o=s(i),u(p+o),n=0;n<o;n++,p++)n in i&&c(d,p,i[n]);else u(p+1),c(d,p++,i);return d.length=p,d}})},26541:function(e,t,n){"use strict";var r=n(82109),o=n(42092).every;r({target:"Array",proto:!0,forced:!n(9341)("every")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},57327:function(e,t,n){"use strict";var r=n(82109),o=n(42092).filter;r({target:"Array",proto:!0,forced:!n(81194)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},34553:function(e,t,n){"use strict";var r=n(82109),o=n(42092).findIndex,i=n(51223),a="findIndex",l=!0;a in[]&&Array(1).findIndex((function(){l=!1})),r({target:"Array",proto:!0,forced:l},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},69826:function(e,t,n){"use strict";var r=n(82109),o=n(42092).find,i=n(51223),a="find",l=!0;a in[]&&Array(1).find((function(){l=!1})),r({target:"Array",proto:!0,forced:l},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},89554:function(e,t,n){"use strict";var r=n(82109),o=n(18533);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},91038:function(e,t,n){var r=n(82109),o=n(48457);r({target:"Array",stat:!0,forced:!n(17072)((function(e){Array.from(e)}))},{from:o})},26699:function(e,t,n){"use strict";var r=n(82109),o=n(41318).includes,i=n(47293),a=n(51223);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},82772:function(e,t,n){"use strict";var r=n(82109),o=n(21470),i=n(41318).indexOf,a=n(9341),l=o([].indexOf),s=!!l&&1/l([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:s||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return s?l(this,e,t)||0:i(this,e,t)}})},79753:function(e,t,n){n(82109)({target:"Array",stat:!0},{isArray:n(43157)})},66992:function(e,t,n){"use strict";var r=n(45656),o=n(51223),i=n(97497),a=n(29909),l=n(3070).f,s=n(51656),u=n(76178),c=n(31913),f=n(19781),d="Array Iterator",p=a.set,h=a.getterFor(d);e.exports=s(Array,"Array",(function(e,t){p(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&f&&"values"!==m.name)try{l(m,"name",{value:"values"})}catch(e){}},69600:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(68361),a=n(45656),l=n(9341),s=o([].join),u=i!=Object,c=l("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s(a(this),void 0===e?",":e)}})},21249:function(e,t,n){"use strict";var r=n(82109),o=n(42092).map;r({target:"Array",proto:!0,forced:!n(81194)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},96644:function(e,t,n){"use strict";var r=n(82109),o=n(53671).right,i=n(9341),a=n(7392),l=n(35268);r({target:"Array",proto:!0,forced:!i("reduceRight")||!l&&a>79&&a<83},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},85827:function(e,t,n){"use strict";var r=n(82109),o=n(53671).left,i=n(9341),a=n(7392),l=n(35268);r({target:"Array",proto:!0,forced:!i("reduce")||!l&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},65069:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(43157),a=o([].reverse),l=[1,2];r({target:"Array",proto:!0,forced:String(l)===String(l.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},47042:function(e,t,n){"use strict";var r=n(82109),o=n(43157),i=n(4411),a=n(70111),l=n(51400),s=n(26244),u=n(45656),c=n(86135),f=n(5112),d=n(81194),p=n(50206),h=d("slice"),m=f("species"),y=Array,v=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,f,d=u(this),h=s(d),b=l(e,h),g=l(void 0===t?h:t,h);if(o(d)&&(n=d.constructor,(i(n)&&(n===y||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===y||void 0===n))return p(d,b,g);for(r=new(void 0===n?y:n)(v(g-b,0)),f=0;b<g;b++,f++)b in d&&c(r,f,d[b]);return r.length=f,r}})},5212:function(e,t,n){"use strict";var r=n(82109),o=n(42092).some;r({target:"Array",proto:!0,forced:!n(9341)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2707:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(19662),a=n(47908),l=n(26244),s=n(85117),u=n(41340),c=n(47293),f=n(94362),d=n(9341),p=n(68886),h=n(30256),m=n(7392),y=n(98008),v=[],b=o(v.sort),g=o(v.push),w=c((function(){v.sort(void 0)})),k=c((function(){v.sort(null)})),O=d("sort"),_=!c((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(y)return y<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:w||!k||!O||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?b(t):b(t,e);var n,r,o=[],c=l(t);for(r=0;r<c;r++)r in t&&g(o,t[r]);for(f(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=l(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)s(t,r++);return t}})},40561:function(e,t,n){"use strict";var r=n(82109),o=n(47908),i=n(51400),a=n(19303),l=n(26244),s=n(83658),u=n(7207),c=n(65417),f=n(86135),d=n(85117),p=n(81194)("splice"),h=Math.max,m=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,p,y,v,b,g=o(this),w=l(g),k=i(e,w),O=arguments.length;for(0===O?n=r=0:1===O?(n=0,r=w-k):(n=O-2,r=m(h(a(t),0),w-k)),u(w+n-r),p=c(g,r),y=0;y<r;y++)(v=k+y)in g&&f(p,y,g[v]);if(p.length=r,n<r){for(y=k;y<w-r;y++)b=y+n,(v=y+r)in g?g[b]=g[v]:d(g,b);for(y=w;y>w-r+n;y--)d(g,y-1)}else if(n>r)for(y=w-r;y>k;y--)b=y+n-1,(v=y+r-1)in g?g[b]=g[v]:d(g,b);for(y=0;y<n;y++)g[y+k]=arguments[y+2];return s(g,w-r+n),p}})},3843:function(e,t,n){var r=n(82109),o=n(1702),i=Date,a=o(i.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new i)}})},28733:function(e,t,n){var r=n(82109),o=n(85573);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},96078:function(e,t,n){var r=n(92597),o=n(98052),i=n(38709),a=n(5112)("toPrimitive"),l=Date.prototype;r(l,a)||o(l,a,i)},83710:function(e,t,n){var r=n(1702),o=n(98052),i=Date.prototype,a="Invalid Date",l=r(i.toString),s=r(i.getTime);String(new Date(NaN))!=a&&o(i,"toString",(function(){var e=s(this);return e==e?l(this):a}))},24812:function(e,t,n){var r=n(82109),o=n(27065);r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},68309:function(e,t,n){var r=n(19781),o=n(76530).EXISTS,i=n(1702),a=n(3070).f,l=Function.prototype,s=i(l.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);r&&!o&&a(l,"name",{configurable:!0,get:function(){try{return c(u,s(this))[1]}catch(e){return""}}})},35837:function(e,t,n){var r=n(82109),o=n(17854);r({global:!0,forced:o.globalThis!==o},{globalThis:o})},38862:function(e,t,n){var r=n(82109),o=n(35005),i=n(22104),a=n(46916),l=n(1702),s=n(47293),u=n(43157),c=n(60614),f=n(70111),d=n(52190),p=n(50206),h=n(36293),m=o("JSON","stringify"),y=l(/./.exec),v=l("".charAt),b=l("".charCodeAt),g=l("".replace),w=l(1..toString),k=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,S=!h||s((function(){var e=o("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),P=s((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),j=function(e,t){var n=p(arguments),r=t;if((f(t)||void 0!==e)&&!d(e))return u(t)||(t=function(e,t){if(c(r)&&(t=a(r,this,e,t)),!d(t))return t}),n[1]=t,i(m,null,n)},x=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return y(O,e)&&!y(_,o)||y(_,e)&&!y(O,r)?"\\u"+w(b(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:S||P},{stringify:function(e,t,n){var r=p(arguments),o=i(S?j:m,null,r);return P&&"string"==typeof o?g(o,k,x):o}})},73706:function(e,t,n){var r=n(17854);n(58003)(r.JSON,"JSON",!0)},69098:function(e,t,n){"use strict";n(77710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(95631))},51532:function(e,t,n){n(69098)},44914:function(e,t,n){var r=n(82109),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},10408:function(e,t,n){n(58003)(Math,"Math",!0)},9653:function(e,t,n){"use strict";var r=n(19781),o=n(17854),i=n(1702),a=n(54705),l=n(98052),s=n(92597),u=n(79587),c=n(47976),f=n(52190),d=n(57593),p=n(47293),h=n(8006).f,m=n(31236).f,y=n(3070).f,v=n(50863),b=n(53111).trim,g="Number",w=o.Number,k=w.prototype,O=o.TypeError,_=i("".slice),S=i("".charCodeAt),P=function(e){var t=d(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,n,r,o,i,a,l,s,u=d(e,"number");if(f(u))throw O("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=b(u),43===(t=S(u,0))||45===t){if(88===(n=S(u,2))||120===n)return NaN}else if(48===t){switch(S(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=_(u,2)).length,l=0;l<a;l++)if((s=S(i,l))<48||s>o)return NaN;return parseInt(i,r)}return+u};if(a(g,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var x,E=function(e){var t=arguments.length<1?0:w(P(e)),n=this;return c(k,n)&&p((function(){v(n)}))?u(Object(t),n,E):t},C=r?h(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),A=0;C.length>A;A++)s(w,x=C[A])&&!s(E,x)&&y(E,x,m(w,x));E.prototype=k,k.constructor=E,l(o,g,E,{constructor:!0})}},35192:function(e,t,n){n(82109)({target:"Number",stat:!0},{isFinite:n(77023)})},44048:function(e,t,n){n(82109)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},9494:function(e,t,n){var r=n(82109),o=n(83009);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},56977:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(19303),a=n(50863),l=n(38415),s=n(47293),u=RangeError,c=String,f=Math.floor,d=o(l),p=o("".slice),h=o(1..toFixed),m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)},y=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=f(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},b=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=c(e[t]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:s((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!s((function(){h({})}))},{toFixed:function(e){var t,n,r,o,l=a(this),s=i(e),f=[0,0,0,0,0,0],h="",g="0";if(s<0||s>20)throw u("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return c(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*m(2,69,1))-69)<0?l*m(2,-t,1):l/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(y(f,0,n),r=s;r>=7;)y(f,1e7,0),r-=7;for(y(f,m(10,r,1),0),r=t-1;r>=23;)v(f,1<<23),r-=23;v(f,1<<r),y(f,1,1),v(f,2),g=b(f)}else y(f,0,n),y(f,1<<-t,0),g=b(f)+d("0",s);return s>0?h+((o=g.length)<=s?"0."+d("0",s-o)+g:p(g,0,o-s)+"."+p(g,o-s)):h+g}})},19601:function(e,t,n){var r=n(82109),o=n(21574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},78011:function(e,t,n){n(82109)({target:"Object",stat:!0,sham:!n(19781)},{create:n(70030)})},59595:function(e,t,n){"use strict";var r=n(82109),o=n(19781),i=n(69026),a=n(19662),l=n(47908),s=n(3070);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){s.f(l(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},33321:function(e,t,n){var r=n(82109),o=n(19781),i=n(36048).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},69070:function(e,t,n){var r=n(82109),o=n(19781),i=n(3070).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},35500:function(e,t,n){"use strict";var r=n(82109),o=n(19781),i=n(69026),a=n(19662),l=n(47908),s=n(3070);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){s.f(l(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},69720:function(e,t,n){var r=n(82109),o=n(44699).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},38880:function(e,t,n){var r=n(82109),o=n(47293),i=n(45656),a=n(31236).f,l=n(19781),s=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!l||s,sham:!l},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},49337:function(e,t,n){var r=n(82109),o=n(19781),i=n(53887),a=n(45656),l=n(31236),s=n(86135);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=l.f,u=i(r),c={},f=0;u.length>f;)void 0!==(n=o(r,t=u[f++]))&&s(c,t,n);return c}})},29660:function(e,t,n){var r=n(82109),o=n(36293),i=n(47293),a=n(25181),l=n(47908);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(l(e)):[]}})},30489:function(e,t,n){var r=n(82109),o=n(47293),i=n(47908),a=n(79518),l=n(49920);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!l},{getPrototypeOf:function(e){return a(i(e))}})},47941:function(e,t,n){var r=n(82109),o=n(47908),i=n(81956);r({target:"Object",stat:!0,forced:n(47293)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},68304:function(e,t,n){n(82109)({target:"Object",stat:!0},{setPrototypeOf:n(27674)})},41539:function(e,t,n){var r=n(51694),o=n(98052),i=n(90288);r||o(Object.prototype,"toString",i,{unsafe:!0})},26833:function(e,t,n){var r=n(82109),o=n(44699).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},54678:function(e,t,n){var r=n(82109),o=n(2814);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},91058:function(e,t,n){var r=n(82109),o=n(83009);r({global:!0,forced:parseInt!=o},{parseInt:o})},70821:function(e,t,n){"use strict";var r=n(82109),o=n(46916),i=n(19662),a=n(78523),l=n(12534),s=n(20408);r({target:"Promise",stat:!0,forced:n(80612)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,c=l((function(){var n=i(t.resolve),a=[],l=0,c=1;s(e,(function(e){var i=l++,s=!1;c++,o(n,t,e).then((function(e){s||(s=!0,a[i]=e,--c||r(a))}),u)})),--c||r(a)}));return c.error&&u(c.value),n.promise}})},94164:function(e,t,n){"use strict";var r=n(82109),o=n(31913),i=n(63702).CONSTRUCTOR,a=n(2492),l=n(35005),s=n(60614),u=n(98052),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&s(a)){var f=l("Promise").prototype.catch;c.catch!==f&&u(c,"catch",f,{unsafe:!0})}},43401:function(e,t,n){"use strict";var r,o,i,a=n(82109),l=n(31913),s=n(35268),u=n(17854),c=n(46916),f=n(98052),d=n(27674),p=n(58003),h=n(96340),m=n(19662),y=n(60614),v=n(70111),b=n(25787),g=n(36707),w=n(20261).set,k=n(95948),O=n(842),_=n(12534),S=n(18572),P=n(29909),j=n(2492),x=n(63702),E=n(78523),C="Promise",A=x.CONSTRUCTOR,T=x.REJECTION_EVENT,M=x.SUBCLASSING,R=P.getterFor(C),D=P.set,I=j&&j.prototype,L=j,V=I,N=u.TypeError,F=u.document,B=u.process,U=E.f,z=U,H=!!(F&&F.createEvent&&u.dispatchEvent),q="unhandledrejection",W=function(e){var t;return!(!v(e)||!y(t=e.then))&&t},K=function(e,t){var n,r,o,i=t.value,a=1==t.state,l=a?e.ok:e.fail,s=e.resolve,u=e.reject,f=e.domain;try{l?(a||(2===t.rejection&&X(t),t.rejection=1),!0===l?n=i:(f&&f.enter(),n=l(i),f&&(f.exit(),o=!0)),n===e.promise?u(N("Promise-chain cycle")):(r=W(n))?c(r,n,s,u):s(n)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},Y=function(e,t){e.notified||(e.notified=!0,k((function(){for(var n,r=e.reactions;n=r.get();)K(n,e);e.notified=!1,t&&!e.rejection&&$(e)})))},G=function(e,t,n){var r,o;H?((r=F.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!T&&(o=u["on"+e])?o(r):e===q&&O("Unhandled promise rejection",n)},$=function(e){c(w,u,(function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=_((function(){s?B.emit("unhandledRejection",r,n):G(q,n,r)})),e.rejection=s||J(e)?2:1,t.error))throw t.value}))},J=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(w,u,(function(){var t=e.facade;s?B.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},Z=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw N("Promise can't be resolved itself");var r=W(t);r?k((function(){var n={done:!1};try{c(r,t,Z(ee,n,e),Z(Q,n,e))}catch(t){Q(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){Q({done:!1},t,e)}}};if(A&&(V=(L=function(e){b(this,V),m(e),c(r,this);var t=R(this);try{e(Z(ee,t),Z(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){D(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(V,"then",(function(e,t){var n=R(this),r=U(g(this,L));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=s?B.domain:void 0,0==n.state?n.reactions.add(r):k((function(){K(r,n)})),r.promise})),o=function(){var e=new r,t=R(e);this.promise=e,this.resolve=Z(ee,t),this.reject=Z(Q,t)},E.f=U=function(e){return e===L||void 0===e?new o(e):z(e)},!l&&y(j)&&I!==Object.prototype)){i=I.then,M||f(I,"then",(function(e,t){var n=this;return new L((function(e,t){c(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}d&&d(I,V)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:L}),p(L,C,!1,!0),h(C)},17727:function(e,t,n){"use strict";var r=n(82109),o=n(31913),i=n(2492),a=n(47293),l=n(35005),s=n(60614),u=n(36707),c=n(69478),f=n(98052),d=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,l("Promise")),n=s(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!o&&s(i)){var p=l("Promise").prototype.finally;d.finally!==p&&f(d,"finally",p,{unsafe:!0})}},88674:function(e,t,n){n(43401),n(70821),n(94164),n(6027),n(60683),n(96294)},6027:function(e,t,n){"use strict";var r=n(82109),o=n(46916),i=n(19662),a=n(78523),l=n(12534),s=n(20408);r({target:"Promise",stat:!0,forced:n(80612)},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=l((function(){var a=i(t.resolve);s(e,(function(e){o(a,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},60683:function(e,t,n){"use strict";var r=n(82109),o=n(46916),i=n(78523);r({target:"Promise",stat:!0,forced:n(63702).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},96294:function(e,t,n){"use strict";var r=n(82109),o=n(35005),i=n(31913),a=n(2492),l=n(63702).CONSTRUCTOR,s=n(69478),u=o("Promise"),c=i&&!l;r({target:"Promise",stat:!0,forced:i||l},{resolve:function(e){return s(c&&this===u?a:this,e)}})},12419:function(e,t,n){var r=n(82109),o=n(35005),i=n(22104),a=n(27065),l=n(39483),s=n(19670),u=n(70111),c=n(70030),f=n(47293),d=o("Reflect","construct"),p=Object.prototype,h=[].push,m=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),y=!f((function(){d((function(){}))})),v=m||y;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){l(e),s(t);var n=arguments.length<3?e:l(arguments[2]);if(y&&!m)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(h,r,t),new(i(a,e,r))}var o=n.prototype,f=c(u(o)?o:p),v=i(e,f,t);return u(v)?v:f}})},74819:function(e,t,n){var r=n(82109),o=n(46916),i=n(70111),a=n(19670),l=n(45032),s=n(31236),u=n(79518);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=s.f(t,n))?l(r)?r.value:void 0===r.get?void 0:o(r.get,f):i(c=u(t))?e(c,n,f):void 0}})},83593:function(e,t,n){var r=n(82109),o=n(46916),i=n(19670),a=n(70111),l=n(45032),s=n(47293),u=n(3070),c=n(31236),f=n(79518),d=n(79114);r({target:"Reflect",stat:!0,forced:s((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var s,p,h,m=arguments.length<4?t:arguments[3],y=c.f(i(t),n);if(!y){if(a(p=f(t)))return e(p,n,r,m);y=d(0)}if(l(y)){if(!1===y.writable||!a(m))return!1;if(s=c.f(m,n)){if(s.get||s.set||!1===s.writable)return!1;s.value=r,u.f(m,n,s)}else u.f(m,n,d(0,r))}else{if(void 0===(h=y.set))return!1;o(h,m,r)}return!0}})},24603:function(e,t,n){var r=n(19781),o=n(17854),i=n(1702),a=n(54705),l=n(79587),s=n(68880),u=n(8006).f,c=n(47976),f=n(47850),d=n(41340),p=n(34706),h=n(52999),m=n(2626),y=n(98052),v=n(47293),b=n(92597),g=n(29909).enforce,w=n(96340),k=n(5112),O=n(9441),_=n(38173),S=k("match"),P=o.RegExp,j=P.prototype,x=o.SyntaxError,E=i(j.exec),C=i("".charAt),A=i("".replace),T=i("".indexOf),M=i("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,I=/a/g,L=new P(D)!==D,V=h.MISSED_STICKY,N=h.UNSUPPORTED_Y;if(a("RegExp",r&&(!L||V||O||_||v((function(){return I[S]=!1,P(D)!=D||P(I)==I||"/a/i"!=P(D,"i")}))))){for(var F=function(e,t){var n,r,o,i,a,u,h=c(j,this),m=f(e),y=void 0===t,v=[],w=e;if(!h&&m&&y&&e.constructor===F)return e;if((m||c(j,e))&&(e=e.source,y&&(t=p(w))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),w=e,O&&"dotAll"in D&&(r=!!t&&T(t,"s")>-1)&&(t=A(t,/s/g,"")),n=t,V&&"sticky"in D&&(o=!!t&&T(t,"y")>-1)&&N&&(t=A(t,/y/g,"")),_&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},l=!1,s=!1,u=0,c="";r<=n;r++){if("\\"===(t=C(e,r)))t+=C(e,++r);else if("]"===t)l=!1;else if(!l)switch(!0){case"["===t:l=!0;break;case"("===t:E(R,M(e,r+1))&&(r+=2,s=!0),o+=t,u++;continue;case">"===t&&s:if(""===c||b(a,c))throw new x("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],v=i[1]),a=l(P(e,t),h?this:j,F),(r||o||v.length)&&(u=g(a),r&&(u.dotAll=!0,u.raw=F(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=C(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+C(e,++r);return o}(e),n)),o&&(u.sticky=!0),v.length&&(u.groups=v)),e!==w)try{s(a,"source",""===w?"(?:)":w)}catch(e){}return a},B=u(P),U=0;B.length>U;)m(F,P,B[U++]);j.constructor=F,F.prototype=j,y(o,"RegExp",F,{constructor:!0})}w("RegExp")},74916:function(e,t,n){"use strict";var r=n(82109),o=n(22261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},92087:function(e,t,n){var r=n(17854),o=n(19781),i=n(47045),a=n(67066),l=n(47293),s=r.RegExp,u=s.prototype;o&&l((function(){var e=!0;try{s(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==r||n!==r}))&&i(u,"flags",{configurable:!0,get:a})},39714:function(e,t,n){"use strict";var r=n(76530).PROPER,o=n(98052),i=n(19670),a=n(41340),l=n(47293),s=n(34706),u="toString",c=RegExp.prototype.toString,f=l((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=r&&c.name!=u;(f||d)&&o(RegExp.prototype,u,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(s(e))}),{unsafe:!0})},27852:function(e,t,n){"use strict";var r,o=n(82109),i=n(21470),a=n(31236).f,l=n(17466),s=n(41340),u=n(3929),c=n(84488),f=n(84964),d=n(31913),p=i("".endsWith),h=i("".slice),m=Math.min,y=f("endsWith");o({target:"String",proto:!0,forced:!(!d&&!y&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||y)},{endsWith:function(e){var t=s(c(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:m(l(n),r),i=s(e);return p?p(t,i,o):h(t,o-i.length,o)===i}})},32023:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(3929),a=n(84488),l=n(41340),s=n(84964),u=o("".indexOf);r({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~u(l(a(this)),l(i(e)),arguments.length>1?arguments[1]:void 0)}})},78783:function(e,t,n){"use strict";var r=n(28710).charAt,o=n(41340),i=n(29909),a=n(51656),l=n(76178),s="String Iterator",u=i.set,c=i.getterFor(s);a(String,"String",(function(e){u(this,{type:s,string:o(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?l(void 0,!0):(e=r(n,o),t.index+=e.length,l(e,!1))}))},4723:function(e,t,n){"use strict";var r=n(46916),o=n(27007),i=n(19670),a=n(68554),l=n(17466),s=n(41340),u=n(84488),c=n(58173),f=n(31530),d=n(97651);o("match",(function(e,t,n){return[function(t){var n=u(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](s(n))},function(e){var r=i(this),o=s(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return d(r,o);var u=r.unicode;r.lastIndex=0;for(var c,p=[],h=0;null!==(c=d(r,o));){var m=s(c[0]);p[h]=m,""===m&&(r.lastIndex=f(o,l(r.lastIndex),u)),h++}return 0===h?null:p}]}))},83112:function(e,t,n){"use strict";var r=n(82109),o=n(76650).start;r({target:"String",proto:!0,forced:n(54986)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},82481:function(e,t,n){n(82109)({target:"String",proto:!0},{repeat:n(38415)})},68757:function(e,t,n){"use strict";var r=n(82109),o=n(46916),i=n(1702),a=n(84488),l=n(60614),s=n(68554),u=n(47850),c=n(41340),f=n(58173),d=n(34706),p=n(10647),h=n(5112),m=n(31913),y=h("replace"),v=TypeError,b=i("".indexOf),g=i("".replace),w=i("".slice),k=Math.max,O=function(e,t,n){return n>e.length?-1:""===t?n:b(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,h,_,S,P,j,x,E=a(this),C=0,A=0,T="";if(!s(e)){if((n=u(e))&&(r=c(a(d(e))),!~b(r,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(i=f(e,y))return o(i,e,E,t);if(m&&n)return g(c(E),e,t)}for(h=c(E),_=c(e),(S=l(t))||(t=c(t)),P=_.length,j=k(1,P),C=O(h,_,0);-1!==C;)x=S?c(t(_,C,h)):p(_,h,C,[],void 0,t),T+=w(h,A,C)+x,A=C+P,C=O(h,_,C+j);return A<h.length&&(T+=w(h,A)),T}})},15306:function(e,t,n){"use strict";var r=n(22104),o=n(46916),i=n(1702),a=n(27007),l=n(47293),s=n(19670),u=n(60614),c=n(68554),f=n(19303),d=n(17466),p=n(41340),h=n(84488),m=n(31530),y=n(58173),v=n(10647),b=n(97651),g=n(5112)("replace"),w=Math.max,k=Math.min,O=i([].concat),_=i([].push),S=i("".indexOf),P=i("".slice),j="$0"==="a".replace(/./,"$0"),x=!!/./[g]&&""===/./[g]("a","$0");a("replace",(function(e,t,n){var i=x?"$":"$0";return[function(e,n){var r=h(this),i=c(e)?void 0:y(e,g);return i?o(i,e,r,n):o(t,p(r),e,n)},function(e,o){var a=s(this),l=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var c=n(t,a,l,o);if(c.done)return c.value}var h=u(o);h||(o=p(o));var y=a.global;if(y){var g=a.unicode;a.lastIndex=0}for(var j=[];;){var x=b(a,l);if(null===x)break;if(_(j,x),!y)break;""===p(x[0])&&(a.lastIndex=m(l,d(a.lastIndex),g))}for(var E,C="",A=0,T=0;T<j.length;T++){for(var M=p((x=j[T])[0]),R=w(k(f(x.index),l.length),0),D=[],I=1;I<x.length;I++)_(D,void 0===(E=x[I])?E:String(E));var L=x.groups;if(h){var V=O([M],D,R,l);void 0!==L&&_(V,L);var N=p(r(o,void 0,V))}else N=v(M,l,R,D,L,o);R>=A&&(C+=P(l,A,R)+N,A=R+M.length)}return C+P(l,A)}]}),!!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!j||x)},64765:function(e,t,n){"use strict";var r=n(46916),o=n(27007),i=n(19670),a=n(68554),l=n(84488),s=n(81150),u=n(41340),c=n(58173),f=n(97651);o("search",(function(e,t,n){return[function(t){var n=l(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var l=r.lastIndex;s(l,0)||(r.lastIndex=0);var c=f(r,o);return s(r.lastIndex,l)||(r.lastIndex=l),null===c?-1:c.index}]}))},23123:function(e,t,n){"use strict";var r=n(22104),o=n(46916),i=n(1702),a=n(27007),l=n(19670),s=n(68554),u=n(47850),c=n(84488),f=n(36707),d=n(31530),p=n(17466),h=n(41340),m=n(58173),y=n(41589),v=n(97651),b=n(22261),g=n(52999),w=n(47293),k=g.UNSUPPORTED_Y,O=4294967295,_=Math.min,S=[].push,P=i(/./.exec),j=i(S),x=i("".slice),E=!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=h(c(this)),a=void 0===n?O:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var l,s,f,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,p+"g");(l=o(b,v,i))&&!((s=v.lastIndex)>m&&(j(d,x(i,m,l.index)),l.length>1&&l.index<i.length&&r(S,d,y(l,1)),f=l[0].length,m=s,d.length>=a));)v.lastIndex===l.index&&v.lastIndex++;return m===i.length?!f&&P(v,"")||j(d,""):j(d,x(i,m)),d.length>a?y(d,0,a):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=s(t)?void 0:m(t,e);return a?o(a,t,r,n):o(i,h(r),t,n)},function(e,r){var o=l(this),a=h(e),s=n(i,o,a,r,i!==t);if(s.done)return s.value;var u=f(o,RegExp),c=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(k?"g":"y"),y=new u(k?"^(?:"+o.source+")":o,m),b=void 0===r?O:r>>>0;if(0===b)return[];if(0===a.length)return null===v(y,a)?[a]:[];for(var g=0,w=0,S=[];w<a.length;){y.lastIndex=k?0:w;var P,E=v(y,k?x(a,w):a);if(null===E||(P=_(p(y.lastIndex+(k?w:0)),a.length))===g)w=d(a,w,c);else{if(j(S,x(a,g,w)),S.length===b)return S;for(var C=1;C<=E.length-1;C++)if(j(S,E[C]),S.length===b)return S;w=g=P}}return j(S,x(a,g)),S}]}),!E,k)},23157:function(e,t,n){"use strict";var r,o=n(82109),i=n(21470),a=n(31236).f,l=n(17466),s=n(41340),u=n(3929),c=n(84488),f=n(84964),d=n(31913),p=i("".startsWith),h=i("".slice),m=Math.min,y=f("startsWith");o({target:"String",proto:!0,forced:!(!d&&!y&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||y)},{startsWith:function(e){var t=s(c(this));u(e);var n=l(m(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return p?p(t,r,n):h(t,n,n+r.length)===r}})},73210:function(e,t,n){"use strict";var r=n(82109),o=n(53111).trim;r({target:"String",proto:!0,forced:n(76091)("trim")},{trim:function(){return o(this)}})},72443:function(e,t,n){n(26800)("asyncIterator")},4032:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(46916),a=n(1702),l=n(31913),s=n(19781),u=n(36293),c=n(47293),f=n(92597),d=n(47976),p=n(19670),h=n(45656),m=n(34948),y=n(41340),v=n(79114),b=n(70030),g=n(81956),w=n(8006),k=n(1156),O=n(25181),_=n(31236),S=n(3070),P=n(36048),j=n(55296),x=n(98052),E=n(72309),C=n(6200),A=n(3501),T=n(69711),M=n(5112),R=n(6061),D=n(26800),I=n(56532),L=n(58003),V=n(29909),N=n(42092).forEach,F=C("hidden"),B="Symbol",U=V.set,z=V.getterFor(B),H=Object.prototype,q=o.Symbol,W=q&&q.prototype,K=o.TypeError,Y=o.QObject,G=_.f,$=S.f,J=k.f,X=j.f,Z=a([].push),Q=E("symbols"),ee=E("op-symbols"),te=E("wks"),ne=!Y||!Y.prototype||!Y.prototype.findChild,re=s&&c((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=G(H,t);r&&delete H[t],$(e,t,n),r&&e!==H&&$(H,t,r)}:$,oe=function(e,t){var n=Q[e]=b(W);return U(n,{type:B,tag:e,description:t}),s||(n.description=t),n},ie=function(e,t,n){e===H&&ie(ee,t,n),p(e);var r=m(t);return p(n),f(Q,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:v(0,!1)})):(f(e,F)||$(e,F,v(1,{})),e[F][r]=!0),re(e,r,n)):$(e,r,n)},ae=function(e,t){p(e);var n=h(t),r=g(n).concat(ce(n));return N(r,(function(t){s&&!i(le,n,t)||ie(e,t,n[t])})),e},le=function(e){var t=m(e),n=i(X,this,t);return!(this===H&&f(Q,t)&&!f(ee,t))&&(!(n||!f(this,t)||!f(Q,t)||f(this,F)&&this[F][t])||n)},se=function(e,t){var n=h(e),r=m(t);if(n!==H||!f(Q,r)||f(ee,r)){var o=G(n,r);return!o||!f(Q,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},ue=function(e){var t=J(h(e)),n=[];return N(t,(function(e){f(Q,e)||f(A,e)||Z(n,e)})),n},ce=function(e){var t=e===H,n=J(t?ee:h(e)),r=[];return N(n,(function(e){!f(Q,e)||t&&!f(H,e)||Z(r,Q[e])})),r};u||(q=function(){if(d(W,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=T(e),n=function(e){this===H&&i(n,ee,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,v(1,e))};return s&&ne&&re(H,t,{configurable:!0,set:n}),oe(t,e)},x(W=q.prototype,"toString",(function(){return z(this).tag})),x(q,"withoutSetter",(function(e){return oe(T(e),e)})),j.f=le,S.f=ie,P.f=ae,_.f=se,w.f=k.f=ue,O.f=ce,R.f=function(e){return oe(M(e),e)},s&&($(W,"description",{configurable:!0,get:function(){return z(this).description}}),l||x(H,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),N(g(te),(function(e){D(e)})),r({target:B,stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?b(e):ae(b(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:se}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ue}),I(),L(q,B),A[F]=!0},41817:function(e,t,n){"use strict";var r=n(82109),o=n(19781),i=n(17854),a=n(1702),l=n(92597),s=n(60614),u=n(47976),c=n(41340),f=n(3070).f,d=n(99920),p=i.Symbol,h=p&&p.prototype;if(o&&s(p)&&(!("description"in h)||void 0!==p().description)){var m={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};d(y,p),y.prototype=h,h.constructor=y;var v="Symbol(test)"==String(p("test")),b=a(h.valueOf),g=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,k=a("".replace),O=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=b(this);if(l(m,e))return"";var t=g(e),n=v?O(t,7,-1):k(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:y})}},40763:function(e,t,n){var r=n(82109),o=n(35005),i=n(92597),a=n(41340),l=n(72309),s=n(2015),u=l("string-to-symbol-registry"),c=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},32165:function(e,t,n){n(26800)("iterator")},82526:function(e,t,n){n(4032),n(40763),n(26620),n(38862),n(29660)},26620:function(e,t,n){var r=n(82109),o=n(92597),i=n(52190),a=n(66330),l=n(72309),s=n(2015),u=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},96649:function(e,t,n){var r=n(26800),o=n(56532);r("toPrimitive"),o()},39341:function(e,t,n){var r=n(35005),o=n(26800),i=n(58003);o("toStringTag"),i(r("Symbol"),"Symbol")},92990:function(e,t,n){"use strict";var r=n(1702),o=n(90260),i=r(n(1048)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},18927:function(e,t,n){"use strict";var r=n(90260),o=n(42092).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33105:function(e,t,n){"use strict";var r=n(90260),o=n(21285),i=n(64599),a=n(70648),l=n(46916),s=n(1702),u=n(47293),c=r.aTypedArray,f=r.exportTypedArrayMethod,d=s("".slice);f("fill",(function(e){var t=arguments.length;c(this);var n="Big"===d(a(this),0,3)?i(e):+e;return l(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},35035:function(e,t,n){"use strict";var r=n(90260),o=n(42092).filter,i=n(43074),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},7174:function(e,t,n){"use strict";var r=n(90260),o=n(42092).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},74345:function(e,t,n){"use strict";var r=n(90260),o=n(42092).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},32846:function(e,t,n){"use strict";var r=n(90260),o=n(42092).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},44731:function(e,t,n){"use strict";var r=n(90260),o=n(41318).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},77209:function(e,t,n){"use strict";var r=n(90260),o=n(41318).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},96319:function(e,t,n){"use strict";var r=n(17854),o=n(47293),i=n(1702),a=n(90260),l=n(66992),s=n(5112)("iterator"),u=r.Uint8Array,c=i(l.values),f=i(l.keys),d=i(l.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,m=u&&u.prototype,y=!o((function(){m[s].call([1])})),v=!!m&&m.values&&m[s]===m.values&&"values"===m.values.name,b=function(){return c(p(this))};h("entries",(function(){return d(p(this))}),y),h("keys",(function(){return f(p(this))}),y),h("values",b,y||!v,{name:"values"}),h(s,b,y||!v,{name:"values"})},58867:function(e,t,n){"use strict";var r=n(90260),o=n(1702),i=r.aTypedArray,a=r.exportTypedArrayMethod,l=o([].join);a("join",(function(e){return l(i(this),e)}))},37789:function(e,t,n){"use strict";var r=n(90260),o=n(22104),i=n(86583),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},33739:function(e,t,n){"use strict";var r=n(90260),o=n(42092).map,i=n(66304),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},14483:function(e,t,n){"use strict";var r=n(90260),o=n(53671).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},29368:function(e,t,n){"use strict";var r=n(90260),o=n(53671).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},12056:function(e,t,n){"use strict";var r=n(90260),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,n=o(t).length,r=a(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t}))},3462:function(e,t,n){"use strict";var r=n(17854),o=n(46916),i=n(90260),a=n(26244),l=n(84590),s=n(47908),u=n(47293),c=r.RangeError,f=r.Int8Array,d=f&&f.prototype,p=d&&d.set,h=i.aTypedArray,m=i.exportTypedArrayMethod,y=!u((function(){var e=new Uint8ClampedArray(2);return o(p,e,{length:1,0:3},1),3!==e[1]})),v=y&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=l(arguments.length>1?arguments[1]:void 0,1),n=s(e);if(y)return o(p,this,n,t);var r=this.length,i=a(n),u=0;if(i+t>r)throw c("Wrong length");for(;u<i;)this[t+u]=n[u++]}),!y||v)},30678:function(e,t,n){"use strict";var r=n(90260),o=n(66304),i=n(47293),a=n(50206),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(l(this),e,t),r=o(this),i=0,s=n.length,u=new r(s);s>i;)u[i]=n[i++];return u}),i((function(){new Int8Array(1).slice()})))},27462:function(e,t,n){"use strict";var r=n(90260),o=n(42092).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:function(e,t,n){"use strict";var r=n(17854),o=n(21470),i=n(47293),a=n(19662),l=n(94362),s=n(90260),u=n(68886),c=n(30256),f=n(7392),d=n(98008),p=s.aTypedArray,h=s.exportTypedArrayMethod,m=r.Uint16Array,y=m&&o(m.prototype.sort),v=!(!y||i((function(){y(new m(2),null)}))&&i((function(){y(new m(2),{})}))),b=!!y&&!i((function(){if(f)return f<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(y(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),b?y(this,e):l(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!b||v)},55021:function(e,t,n){"use strict";var r=n(90260),o=n(17466),i=n(51400),a=n(66304),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=l(this),r=n.length,s=i(e,r);return new(a(n))(n.buffer,n.byteOffset+s*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-s))}))},12974:function(e,t,n){"use strict";var r=n(17854),o=n(22104),i=n(90260),a=n(47293),l=n(50206),s=r.Int8Array,u=i.aTypedArray,c=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!s&&a((function(){f.call(new s(1))}));c("toLocaleString",(function(){return o(f,d?l(u(this)):u(this),l(arguments))}),a((function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])})))},15016:function(e,t,n){"use strict";var r=n(90260).exportTypedArrayMethod,o=n(47293),i=n(17854),a=n(1702),l=i.Uint8Array,s=l&&l.prototype||{},u=[].toString,c=a([].join);o((function(){u.call({})}))&&(u=function(){return c(this)});var f=s.toString!=u;r("toString",u,f)},82472:function(e,t,n){n(19843)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},41202:function(e,t,n){"use strict";var r,o=n(17854),i=n(1702),a=n(89190),l=n(62423),s=n(77710),u=n(29320),c=n(70111),f=n(52050),d=n(29909).enforce,p=n(94811),h=!o.ActiveXObject&&"ActiveXObject"in o,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},y=s("WeakMap",m,u);if(p&&h){r=u.getConstructor(m,"WeakMap",!0),l.enable();var v=y.prototype,b=i(v.delete),g=i(v.has),w=i(v.get),k=i(v.set);a(v,{delete:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),b(this,e)||t.frozen.delete(e)}return b(this,e)},has:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),g(this,e)||t.frozen.has(e)}return g(this,e)},get:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),g(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(c(e)&&!f(e)){var n=d(this);n.frozen||(n.frozen=new r),g(this,e)?k(this,e,t):n.frozen.set(e,t)}else k(this,e,t);return this}})}},4129:function(e,t,n){n(41202)},65743:function(e,t,n){n(35837)},27207:function(e,t,n){n(68757)},54747:function(e,t,n){var r=n(17854),o=n(48324),i=n(98509),a=n(18533),l=n(68880),s=function(e){if(e&&e.forEach!==a)try{l(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&s(r[u]&&r[u].prototype);s(i)},33948:function(e,t,n){var r=n(17854),o=n(48324),i=n(98509),a=n(66992),l=n(68880),s=n(5112),u=s("iterator"),c=s("toStringTag"),f=a.values,d=function(e,t){if(e){if(e[u]!==f)try{l(e,u,f)}catch(t){e[u]=f}if(e[c]||l(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{l(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(i,"DOMTokenList")},96815:function(e,t,n){var r=n(82109),o=n(17854),i=n(17152).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},88417:function(e,t,n){var r=n(82109),o=n(17854),i=n(17152).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},32564:function(e,t,n){n(96815),n(88417)},65556:function(e,t,n){"use strict";n(66992);var r=n(82109),o=n(17854),i=n(46916),a=n(1702),l=n(19781),s=n(85143),u=n(98052),c=n(89190),f=n(58003),d=n(63061),p=n(29909),h=n(25787),m=n(60614),y=n(92597),v=n(49974),b=n(70648),g=n(19670),w=n(70111),k=n(41340),O=n(70030),_=n(79114),S=n(18554),P=n(71246),j=n(48053),x=n(5112),E=n(94362),C=x("iterator"),A="URLSearchParams",T="URLSearchParamsIterator",M=p.set,R=p.getterFor(A),D=p.getterFor(T),I=Object.getOwnPropertyDescriptor,L=function(e){if(!l)return o[e];var t=I(o,e);return t&&t.value},V=L("fetch"),N=L("Request"),F=L("Headers"),B=N&&N.prototype,U=F&&F.prototype,z=o.RegExp,H=o.TypeError,q=o.decodeURIComponent,W=o.encodeURIComponent,K=a("".charAt),Y=a([].join),G=a([].push),$=a("".replace),J=a([].shift),X=a([].splice),Z=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return q(e)}catch(t){return e}},oe=function(e){var t=$(e,ee," "),n=4;try{return q(t)}catch(e){for(;n;)t=$(t,ne(n--),re);return t}},ie=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return ae[e]},se=function(e){return $(W(e),ie,le)},ue=d((function(e,t){M(this,{type:T,iterator:S(R(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?Q(e,1):e:k(e)))};ce.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,l,s,u=P(e);if(u)for(n=(t=S(e,u)).next;!(r=i(n,t)).done;){if(a=(o=S(g(r.value))).next,(l=i(a,o)).done||(s=i(a,o)).done||!i(a,o).done)throw H("Expected sequence with length 2");G(this.entries,{key:k(l.value),value:k(s.value)})}else for(var c in e)y(e,c)&&G(this.entries,{key:c,value:k(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=Z(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=Z(t,"="),G(this.entries,{key:oe(J(n)),value:oe(Y(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],G(n,se(e.key)+"="+se(e.value));return Y(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){h(this,de);var e=arguments.length>0?arguments[0]:void 0;M(this,new ce(e))},de=fe.prototype;if(c(de,{append:function(e,t){j(arguments.length,2);var n=R(this);G(n.entries,{key:k(e),value:k(t)}),n.updateURL()},delete:function(e){j(arguments.length,1);for(var t=R(this),n=t.entries,r=k(e),o=0;o<n.length;)n[o].key===r?X(n,o,1):o++;t.updateURL()},get:function(e){j(arguments.length,1);for(var t=R(this).entries,n=k(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){j(arguments.length,1);for(var t=R(this).entries,n=k(e),r=[],o=0;o<t.length;o++)t[o].key===n&&G(r,t[o].value);return r},has:function(e){j(arguments.length,1);for(var t=R(this).entries,n=k(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){j(arguments.length,1);for(var n,r=R(this),o=r.entries,i=!1,a=k(e),l=k(t),s=0;s<o.length;s++)(n=o[s]).key===a&&(i?X(o,s--,1):(i=!0,n.value=l));i||G(o,{key:a,value:l}),r.updateURL()},sort:function(){var e=R(this);E(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=R(this).entries,r=v(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(de,C,de.entries,{name:"entries"}),u(de,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),f(fe,A),r({global:!0,constructor:!0,forced:!s},{URLSearchParams:fe}),!s&&m(F)){var pe=a(U.has),he=a(U.set),me=function(e){if(w(e)){var t,n=e.body;if(b(n)===A)return t=e.headers?new F(e.headers):new F,pe(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),O(e,{body:_(0,k(n)),headers:_(0,t)})}return e};if(m(V)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return V(e,arguments.length>1?me(arguments[1]):{})}}),m(N)){var ye=function(e){return h(this,B),new N(e,arguments.length>1?me(arguments[1]):{})};B.constructor=ye,ye.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:fe,getState:R}},41637:function(e,t,n){n(65556)},68789:function(e,t,n){"use strict";n(78783);var r,o=n(82109),i=n(19781),a=n(85143),l=n(17854),s=n(49974),u=n(1702),c=n(98052),f=n(47045),d=n(25787),p=n(92597),h=n(21574),m=n(48457),y=n(41589),v=n(28710).codeAt,b=n(33197),g=n(41340),w=n(58003),k=n(48053),O=n(65556),_=n(29909),S=_.set,P=_.getterFor("URL"),j=O.URLSearchParams,x=O.getState,E=l.URL,C=l.TypeError,A=l.parseInt,T=Math.floor,M=Math.pow,R=u("".charAt),D=u(/./.exec),I=u([].join),L=u(1..toString),V=u([].pop),N=u([].push),F=u("".replace),B=u([].shift),U=u("".split),z=u("".slice),H=u("".toLowerCase),q=u([].unshift),W="Invalid scheme",K="Invalid host",Y="Invalid port",G=/[a-z]/i,$=/[\d+-.a-z]/i,J=/\d/,X=/^0x/i,Z=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)q(t,e%256),e=T(e/256);return I(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=L(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ae={},le=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),se=h({},le,{"#":1,"?":1,"{":1,"}":1}),ue=h({},se,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ce=function(e,t){var n=v(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var n;return 2==e.length&&D(G,R(e,0))&&(":"==(n=R(e,1))||!t&&"|"==n)},pe=function(e){var t;return e.length>1&&de(z(e,0,2))&&(2==e.length||"/"===(t=R(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===H(e)},me={},ye={},ve={},be={},ge={},we={},ke={},Oe={},_e={},Se={},Pe={},je={},xe={},Ee={},Ce={},Ae={},Te={},Me={},Re={},De={},Ie={},Le=function(e,t,n){var r,o,i,a=g(e);if(t){if(o=this.parse(a))throw C(o);this.searchParams=null}else{if(void 0!==n&&(r=new Le(n,!0)),o=this.parse(a,null,r))throw C(o);(i=x(new j)).bindURL(this),this.searchParams=i}};Le.prototype={type:"URL",parse:function(e,t,n){var o,i,a,l,s,u=this,c=t||me,f=0,d="",h=!1,v=!1,b=!1;for(e=g(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=F(e,re,"")),e=F(e,oe,""),o=m(e);f<=o.length;){switch(i=o[f],c){case me:if(!i||!D(G,i)){if(t)return W;c=ve;continue}d+=H(i),c=ye;break;case ye:if(i&&(D($,i)||"+"==i||"-"==i||"."==i))d+=H(i);else{if(":"!=i){if(t)return W;d="",c=ve,f=0;continue}if(t&&(u.isSpecial()!=p(fe,d)||"file"==d&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=d,t)return void(u.isSpecial()&&fe[u.scheme]==u.port&&(u.port=null));d="","file"==u.scheme?c=Ee:u.isSpecial()&&n&&n.scheme==u.scheme?c=be:u.isSpecial()?c=Oe:"/"==o[f+1]?(c=ge,f++):(u.cannotBeABaseURL=!0,N(u.path,""),c=Re)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!=i)return W;if(n.cannotBeABaseURL&&"#"==i){u.scheme=n.scheme,u.path=y(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Ie;break}c="file"==n.scheme?Ee:we;continue;case be:if("/"!=i||"/"!=o[f+1]){c=we;continue}c=_e,f++;break;case ge:if("/"==i){c=Se;break}c=Me;continue;case we:if(u.scheme=n.scheme,i==r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.query=n.query;else if("/"==i||"\\"==i&&u.isSpecial())c=ke;else if("?"==i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.query="",c=De;else{if("#"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.path.length--,c=Me;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=y(n.path),u.query=n.query,u.fragment="",c=Ie}break;case ke:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=Me;continue}c=Se}else c=_e;break;case Oe:if(c=_e,"/"!=i||"/"!=R(d,f+1))continue;f++;break;case _e:if("/"!=i&&"\\"!=i){c=Se;continue}break;case Se:if("@"==i){h&&(d="%40"+d),h=!0,a=m(d);for(var w=0;w<a.length;w++){var k=a[w];if(":"!=k||b){var O=ce(k,ue);b?u.password+=O:u.username+=O}else b=!0}d=""}else if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==d)return"Invalid authority";f-=m(d).length+1,d="",c=Pe}else d+=i;break;case Pe:case je:if(t&&"file"==u.scheme){c=Ae;continue}if(":"!=i||v){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==d)return K;if(t&&""==d&&(u.includesCredentials()||null!==u.port))return;if(l=u.parseHost(d))return l;if(d="",c=Te,t)return;continue}"["==i?v=!0:"]"==i&&(v=!1),d+=i}else{if(""==d)return K;if(l=u.parseHost(d))return l;if(d="",c=xe,t==je)return}break;case xe:if(!D(J,i)){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=d){var _=A(d,10);if(_>65535)return Y;u.port=u.isSpecial()&&_===fe[u.scheme]?null:_,d=""}if(t)return;c=Te;continue}return Y}d+=i;break;case Ee:if(u.scheme="file","/"==i||"\\"==i)c=Ce;else{if(!n||"file"!=n.scheme){c=Me;continue}if(i==r)u.host=n.host,u.path=y(n.path),u.query=n.query;else if("?"==i)u.host=n.host,u.path=y(n.path),u.query="",c=De;else{if("#"!=i){pe(I(y(o,f),""))||(u.host=n.host,u.path=y(n.path),u.shortenPath()),c=Me;continue}u.host=n.host,u.path=y(n.path),u.query=n.query,u.fragment="",c=Ie}}break;case Ce:if("/"==i||"\\"==i){c=Ae;break}n&&"file"==n.scheme&&!pe(I(y(o,f),""))&&(de(n.path[0],!0)?N(u.path,n.path[0]):u.host=n.host),c=Me;continue;case Ae:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&de(d))c=Me;else if(""==d){if(u.host="",t)return;c=Te}else{if(l=u.parseHost(d))return l;if("localhost"==u.host&&(u.host=""),t)return;d="",c=Te}continue}d+=i;break;case Te:if(u.isSpecial()){if(c=Me,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=r&&(c=Me,"/"!=i))continue}else u.fragment="",c=Ie;else u.query="",c=De;break;case Me:if(i==r||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=H(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||N(u.path,"")):he(d)?"/"==i||"\\"==i&&u.isSpecial()||N(u.path,""):("file"==u.scheme&&!u.path.length&&de(d)&&(u.host&&(u.host=""),d=R(d,0)+":"),N(u.path,d)),d="","file"==u.scheme&&(i==r||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)B(u.path);"?"==i?(u.query="",c=De):"#"==i&&(u.fragment="",c=Ie)}else d+=ce(i,se);break;case Re:"?"==i?(u.query="",c=De):"#"==i?(u.fragment="",c=Ie):i!=r&&(u.path[0]+=ce(i,ae));break;case De:t||"#"!=i?i!=r&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":ce(i,ae)):(u.fragment="",c=Ie);break;case Ie:i!=r&&(u.fragment+=ce(i,le))}f++}},parseHost:function(e){var t,n,r;if("["==R(e,0)){if("]"!=R(e,e.length-1))return K;if(t=function(e){var t,n,r,o,i,a,l,s=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,d=function(){return R(e,f)};if(":"==d()){if(":"!=R(e,1))return;f+=2,c=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=n=0;n<4&&D(ee,d());)t=16*t+A(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,u>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!D(J,d()))return;for(;D(J,d());){if(i=A(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}s[u]=256*s[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;s[u++]=t}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)l=s[u],s[u--]=s[c+a-1],s[c+--a]=l;else if(8!=u)return;return s}(z(e,1,-1)),!t)return K;this.host=t}else if(this.isSpecial()){if(e=b(e),D(te,e))return K;if(t=function(e){var t,n,r,o,i,a,l,s=U(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=s[r]))return e;if(i=10,o.length>1&&"0"==R(o,0)&&(i=D(X,o)?16:8,o=z(o,8==i?1:2)),""===o)a=0;else{if(!D(10==i?Q:8==i?Z:ee,o))return e;a=A(o,i)}N(n,a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=M(256,5-t))return null}else if(a>255)return null;for(l=V(n),r=0;r<n.length;r++)l+=n[r]*M(256,3-r);return l}(e),null===t)return K;this.host=t}else{if(D(ne,e))return K;for(t="",n=m(e),r=0;r<n.length;r++)t+=ce(n[r],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&de(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,l=e.query,s=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=ie(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+I(a,"/"):"",null!==l&&(u+="?"+l),null!==s&&(u+="#"+s),u},setHref:function(e){var t=this.parse(e);if(t)throw C(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Ve(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=m(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ce(t[n],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ce(t[n],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,je)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=g(e))?this.port=null:this.parse(e,xe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+I(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Te))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=g(e))?this.query=null:("?"==R(e,0)&&(e=z(e,1)),this.query="",this.parse(e,De)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=g(e))?("#"==R(e,0)&&(e=z(e,1)),this.fragment="",this.parse(e,Ie)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ve=function(e){var t=d(this,Ne),n=k(arguments.length,1)>1?arguments[1]:void 0,r=S(t,new Le(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ne=Ve.prototype,Fe=function(e,t){return{get:function(){return P(this)[e]()},set:t&&function(e){return P(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(Ne,"href",Fe("serialize","setHref")),f(Ne,"origin",Fe("getOrigin")),f(Ne,"protocol",Fe("getProtocol","setProtocol")),f(Ne,"username",Fe("getUsername","setUsername")),f(Ne,"password",Fe("getPassword","setPassword")),f(Ne,"host",Fe("getHost","setHost")),f(Ne,"hostname",Fe("getHostname","setHostname")),f(Ne,"port",Fe("getPort","setPort")),f(Ne,"pathname",Fe("getPathname","setPathname")),f(Ne,"search",Fe("getSearch","setSearch")),f(Ne,"searchParams",Fe("getSearchParams")),f(Ne,"hash",Fe("getHash","setHash"))),c(Ne,"toJSON",(function(){return P(this).serialize()}),{enumerable:!0}),c(Ne,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),E){var Be=E.createObjectURL,Ue=E.revokeObjectURL;Be&&c(Ve,"createObjectURL",s(Be,E)),Ue&&c(Ve,"revokeObjectURL",s(Ue,E))}w(Ve,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Ve})},60285:function(e,t,n){n(68789)},6367:function(e,t,n){"use strict";var r=n(15893);e.exports=function(e,t){t=t||{};var n=r.boolean(t.allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,n(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var r=t.target&&t.target.ownerDocument||document,o=r.documentElement,i=r.body;e.pageX=t.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}},67810:function(){!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}()},2201:function(e,t,n){"use strict";var r,o=n(15893),i=n(75234),a=n(21209),l=n(22415),s=(r=n(64825))&&"object"==typeof r&&"default"in r?r.default:r;function u(e,t){void 0===t&&(t={});var n=this,r=4,u=!1;this.margin=t.margin||-1,this.scrollWhenOutside=t.scrollWhenOutside||!1;var f={},d=l.createPointCB(f),p=s(),h=!1;window.addEventListener("mousemove",d,!1),window.addEventListener("touchmove",d,!1),isNaN(t.maxSpeed)||(r=t.maxSpeed),this.autoScroll=o.boolean(t.autoScroll),this.syncMove=o.boolean(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",d,!1),window.removeEventListener("touchmove",d,!1),window.removeEventListener("mousedown",k,!1),window.removeEventListener("touchstart",k,!1),window.removeEventListener("mouseup",O,!1),window.removeEventListener("touchend",O,!1),window.removeEventListener("pointerup",O,!1),window.removeEventListener("mouseleave",S,!1),window.removeEventListener("mousemove",j,!1),window.removeEventListener("touchmove",j,!1),window.removeEventListener("scroll",w,!0),e=[],t&&_()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return a.addElements.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return a.removeElements.apply(void 0,[e].concat(t))};var m,y,v=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),y=e,e=[],y.forEach((function(e){e===window?v=window:n.add(e)})),Object.defineProperties(this,{down:{get:function(){return h}},maxSpeed:{get:function(){return r}},point:{get:function(){return f}},scrolling:{get:function(){return u}}});var b,g=null;function w(t){for(var n=0;n<e.length;n++)if(e[n]===t.target){u=!0;break}u&&i.requestAnimationFrame((function(){return u=!1}))}function k(){h=!0}function O(){h=!1,_()}function _(){i.cancelAnimationFrame(b),i.cancelAnimationFrame(m)}function S(){h=!1}function P(){for(var t=null,n=0;n<e.length;n++)c(f,e[n])&&(t=e[n]);return t}function j(t){if(n.autoScroll()&&!t.dispatched){var r=t.target,o=document.body;g&&!c(f,g)&&(n.scrollWhenOutside||(g=null)),r&&r.parentNode===o?r=P():(r=function(t){if(!t)return null;if(g===t)return t;if(a.hasElement(e,t))return t;for(;t=t.parentNode;)if(a.hasElement(e,t))return t;return null}(r))||(r=P()),r&&r!==g&&(g=r),v&&(i.cancelAnimationFrame(m),m=i.requestAnimationFrame(x)),g&&(i.cancelAnimationFrame(b),b=i.requestAnimationFrame(E))}}function x(){C(v),i.cancelAnimationFrame(m),m=i.requestAnimationFrame(x)}function E(){g&&(C(g),i.cancelAnimationFrame(b),b=i.requestAnimationFrame(E))}function C(e){var t,r,o=l.getClientRect(e);t=f.x<o.left+n.margin?Math.floor(Math.max(-1,(f.x-o.left)/n.margin-1)*n.maxSpeed):f.x>o.right-n.margin?Math.ceil(Math.min(1,(f.x-o.right)/n.margin+1)*n.maxSpeed):0,r=f.y<o.top+n.margin?Math.floor(Math.max(-1,(f.y-o.top)/n.margin-1)*n.maxSpeed):f.y>o.bottom-n.margin?Math.ceil(Math.min(1,(f.y-o.bottom)/n.margin+1)*n.maxSpeed):0,n.syncMove()&&p.dispatch(e,{pageX:f.pageX+t,pageY:f.pageY+r,clientX:f.x+t,clientY:f.y+r}),setTimeout((function(){r&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,r),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)}))}window.addEventListener("mousedown",k,!1),window.addEventListener("touchstart",k,!1),window.addEventListener("mouseup",O,!1),window.addEventListener("touchend",O,!1),window.addEventListener("pointerup",O,!1),window.addEventListener("mousemove",j,!1),window.addEventListener("touchmove",j,!1),window.addEventListener("mouseleave",S,!1),window.addEventListener("scroll",w,!0)}function c(e,t,n){return n?e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right:l.pointInside(e,t)}e.exports=function(e,t){return new u(e,t)}},64825:function(e){"use strict";var t,n=void 0;"function"!=typeof Object.create?(t=function(){},n=function(e,n){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var r=new t;return t.prototype=null,void 0!==n&&Object.defineProperties(r,n),null===e&&(r.__proto__=null),r}):n=Object.create;var r=n,o=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function i(e,t){t=t||{};for(var n=r(e),i=0;i<o.length;i++)void 0!==t[o[i]]&&(n[o[i]]=t[o[i]]);return n}function a(e,t){console.log("data ",t),e.data=t||{},e.dispatched="mousemove"}e.exports=function(e){var t={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function n(e){for(var n=0;n<o.length;n++)t[o[n]]=e[o[n]]}void 0!==e&&e.addEventListener("mousemove",n);var r=MouseEvent?function(e,n,r){var o=new MouseEvent("mousemove",i(t,n));return a(o,r),e.dispatchEvent(o)}:"function"==typeof document.createEvent?function(e,n,r){var o=i(t,n),l=document.createEvent("MouseEvents");return l.initMouseEvent("mousemove",!0,!0,window,0,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget),a(l,r),e.dispatchEvent(l)}:"function"==typeof document.createEventObject?function(e,n,r){var o=document.createEventObject(),l=i(t,n);for(var s in l)o[s]=l[s];return a(o,r),e.dispatchEvent(o)}:void 0;return{destroy:function(){e&&e.removeEventListener("mousemove",n,!1),t=null},dispatch:r}}},22415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(6367))&&"object"==typeof r&&"default"in r?r.default:r;function i(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var t={};return Object.defineProperties(t,e),t}();try{var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+e)}}t.createPointCB=o,t.getClientRect=i,t.pointInside=function(e,t){var n=i(t);return e.y>n.top&&e.y<n.bottom&&e.x>n.left&&e.x<n.right}},21209:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(44622)),i=r(n(10448)),a=r(n(63847)),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=function(e){return null!=e&&"object"===(void 0===e?"undefined":l(e))&&1===e.nodeType&&"object"===l(e.style)&&"object"===l(e.ownerDocument)};function u(e){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}else if(a(e))return e}function c(e,t){if(t=h(t,!0),!s(t))return-1;for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function f(e,t){return-1!==c(e,t)}function d(e){if(!e)return[];try{return"string"==typeof e?o(document.querySelectorAll(e)):i(e)?e.map(h):void 0===e.length?[h(e)]:o(e,h)}catch(e){throw new Error(e)}}function p(e,t){for(var n=0;n<t.length;n++)f(e,t[n])||e.push(t[n]);return t}function h(e,t){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}if(!s(e)&&!t)throw new TypeError(e+" is not a DOM element.");return e}t.indexOfElement=c,t.hasElement=f,t.domListOf=d,t.concatElementLists=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce((function(e,t){return t.length?e:e.concat(d(t))}),[])},t.addElements=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return p(e,t=t.map(h))},t.removeElements=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.map(h).reduce((function(t,n){var r=c(e,n);return-1!==r?t.concat(e.splice(r,1)):t}),[])},t.resolveElement=h,t.select=u,t.selectAll=function(e){return"string"==typeof e?Array.prototype.slice.apply(document.querySelectorAll(e)):i(e)?e.map(u):"length"in e?o(e).map(u):void 0}},27856:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:s,construct:u}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t){return new e(...t)});const c=O(Array.prototype.forEach),f=O(Array.prototype.pop),d=O(Array.prototype.push),p=O(String.prototype.toLowerCase),h=O(String.prototype.toString),m=O(String.prototype.match),y=O(String.prototype.replace),v=O(String.prototype.indexOf),b=O(String.prototype.trim),g=O(RegExp.prototype.test),w=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(k,t)});var k;function O(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function _(e,r,o){var i;o=null!==(i=o)&&void 0!==i?i:p,t&&t(e,null);let a=r.length;for(;a--;){let t=r[a];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[a]=e),t=e)}e[t]=!0}return e}function S(t){const n=l(null);for(const[r,o]of e(t))n[r]=o;return n}function P(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),E=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),T=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=i(["#text"]),R=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),D=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),N=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),U=a(/^aria-[\-\w]+$/),z=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=a(/^html$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:V,ERB_EXPR:N,TMPLIT_EXPR:F,DATA_ATTR:B,ARIA_ATTR:U,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:q,DOCTYPE_NAME:W});const Y=()=>"undefined"==typeof window?null:window,G=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const r=e=>t(e);if(r.version="3.0.5",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;const o=n.document,a=o.currentScript;let{document:l}=n;const{DocumentFragment:s,HTMLTemplateElement:u,Node:k,Element:O,NodeFilter:V,NamedNodeMap:N=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:F,DOMParser:B,trustedTypes:U}=n,H=O.prototype,q=P(H,"cloneNode"),$=P(H,"nextSibling"),J=P(H,"childNodes"),X=P(H,"parentNode");if("function"==typeof u){const e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let Z,Q="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:re}=l,{importNode:oe}=o;let ie={};r.isSupported="function"==typeof e&&"function"==typeof X&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:le,TMPLIT_EXPR:se,DATA_ATTR:ue,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:de}=K;let{IS_ALLOWED_URI:pe}=K,he=null;const me=_({},[...j,...x,...E,...A,...M]);let ye=null;const ve=_({},[...R,...D,...I,...L]);let be=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ge=null,we=null,ke=!0,Oe=!0,_e=!1,Se=!0,Pe=!1,je=!1,xe=!1,Ee=!1,Ce=!1,Ae=!1,Te=!1,Me=!0,Re=!1;const De="user-content-";let Ie=!0,Le=!1,Ve={},Ne=null;const Fe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const Ue=_({},["audio","video","img","source","image","track"]);let ze=null;const He=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Ye=Ke,Ge=!1,$e=null;const Je=_({},[qe,We,Ke],h);let Xe;const Ze=["application/xhtml+xml","text/html"],Qe="text/html";let et,tt=null;const nt=l.createElement("form"),rt=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){if(!tt||tt!==e){if(e&&"object"==typeof e||(e={}),e=S(e),Xe=Xe=-1===Ze.indexOf(e.PARSER_MEDIA_TYPE)?Qe:e.PARSER_MEDIA_TYPE,et="application/xhtml+xml"===Xe?h:p,he="ALLOWED_TAGS"in e?_({},e.ALLOWED_TAGS,et):me,ye="ALLOWED_ATTR"in e?_({},e.ALLOWED_ATTR,et):ve,$e="ALLOWED_NAMESPACES"in e?_({},e.ALLOWED_NAMESPACES,h):Je,ze="ADD_URI_SAFE_ATTR"in e?_(S(He),e.ADD_URI_SAFE_ATTR,et):He,Be="ADD_DATA_URI_TAGS"in e?_(S(Ue),e.ADD_DATA_URI_TAGS,et):Ue,Ne="FORBID_CONTENTS"in e?_({},e.FORBID_CONTENTS,et):Fe,ge="FORBID_TAGS"in e?_({},e.FORBID_TAGS,et):{},we="FORBID_ATTR"in e?_({},e.FORBID_ATTR,et):{},Ve="USE_PROFILES"in e&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,je=e.WHOLE_DOCUMENT||!1,Ce=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,Te=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Re=e.SANITIZE_NAMED_PROPS||!1,Ie=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,pe=e.ALLOWED_URI_REGEXP||z,Ye=e.NAMESPACE||Ke,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Oe=!1),Ae&&(Ce=!0),Ve&&(he=_({},[...M]),ye=[],!0===Ve.html&&(_(he,j),_(ye,R)),!0===Ve.svg&&(_(he,x),_(ye,D),_(ye,L)),!0===Ve.svgFilters&&(_(he,E),_(ye,D),_(ye,L)),!0===Ve.mathMl&&(_(he,A),_(ye,I),_(ye,L))),e.ADD_TAGS&&(he===me&&(he=S(he)),_(he,e.ADD_TAGS,et)),e.ADD_ATTR&&(ye===ve&&(ye=S(ye)),_(ye,e.ADD_ATTR,et)),e.ADD_URI_SAFE_ATTR&&_(ze,e.ADD_URI_SAFE_ATTR,et),e.FORBID_CONTENTS&&(Ne===Fe&&(Ne=S(Ne)),_(Ne,e.FORBID_CONTENTS,et)),Ie&&(he["#text"]=!0),je&&_(he,["html","head","body"]),he.table&&(_(he,["tbody"]),delete ge.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,Q=Z.createHTML("")}else void 0===Z&&(Z=G(U,a)),null!==Z&&"string"==typeof Q&&(Q=Z.createHTML(""));i&&i(e),tt=e}},it=_({},["mi","mo","mn","ms","mtext"]),at=_({},["foreignobject","desc","title","annotation-xml"]),lt=_({},["title","style","font","a","script"]),st=_({},x);_(st,E),_(st,C);const ut=_({},A);_(ut,T);const ct=function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!$e[e.namespaceURI]&&(e.namespaceURI===We?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===qe?"svg"===n&&("annotation-xml"===r||it[r]):Boolean(st[n]):e.namespaceURI===qe?t.namespaceURI===Ke?"math"===n:t.namespaceURI===We?"math"===n&&at[r]:Boolean(ut[n]):e.namespaceURI===Ke?!(t.namespaceURI===We&&!at[r])&&!(t.namespaceURI===qe&&!it[r])&&!ut[n]&&(lt[n]||!st[n]):!("application/xhtml+xml"!==Xe||!$e[e.namespaceURI]))},ft=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},dt=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ye[e])if(Ce||Ae)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){let t,n;if(Ee)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Xe&&Ye===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Z?Z.createHTML(e):e;if(Ye===Ke)try{t=(new B).parseFromString(r,Xe)}catch(e){}if(!t||!t.documentElement){t=ee.createDocument(Ye,"template",null);try{t.documentElement.innerHTML=Ge?Q:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(l.createTextNode(n),o.childNodes[0]||null),Ye===Ke?re.call(t,je?"html":"body")[0]:je?t.documentElement:o},ht=function(e){return te.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof F&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof N)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},yt=function(e){return"object"==typeof k?e instanceof k:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},vt=function(e,t,n){ie[e]&&c(ie[e],(e=>{e.call(r,t,n,tt)}))},bt=function(e){let t;if(vt("beforeSanitizeElements",e,null),mt(e))return ft(e),!0;const n=et(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:n,allowedTags:he}),e.hasChildNodes()&&!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&g(/<[/\w]/g,e.innerHTML)&&g(/<[/\w]/g,e.textContent))return ft(e),!0;if(!he[n]||ge[n]){if(!ge[n]&&wt(n)){if(be.tagNameCheck instanceof RegExp&&g(be.tagNameCheck,n))return!1;if(be.tagNameCheck instanceof Function&&be.tagNameCheck(n))return!1}if(Ie&&!Ne[n]){const t=X(e)||e.parentNode,n=J(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(q(n[r],!0),$(e))}return ft(e),!0}return e instanceof O&&!ct(e)?(ft(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!g(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=y(t,ae," "),t=y(t,le," "),t=y(t,se," "),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(ft(e),!0)},gt=function(e,t,n){if(Me&&("id"===t||"name"===t)&&(n in l||n in nt))return!1;if(Oe&&!we[t]&&g(ue,t));else if(ke&&g(ce,t));else if(!ye[t]||we[t]){if(!(wt(e)&&(be.tagNameCheck instanceof RegExp&&g(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&g(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&g(be.tagNameCheck,n)||be.tagNameCheck instanceof Function&&be.tagNameCheck(n))))return!1}else if(ze[t]);else if(g(pe,y(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Be[e])if(_e&&!g(fe,y(n,de,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},kt=function(e){let t,n,o,i;vt("beforeSanitizeAttributes",e,null);const{attributes:a}=e;if(!a)return;const l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye};for(i=a.length;i--;){t=a[i];const{name:s,namespaceURI:u}=t;if(n="value"===s?t.value:b(t.value),o=et(s),l.attrName=o,l.attrValue=n,l.keepAttr=!0,l.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,l),n=l.attrValue,l.forceKeepAttr)continue;if(dt(s,e),!l.keepAttr)continue;if(!Se&&g(/\/>/i,n)){dt(s,e);continue}Pe&&(n=y(n,ae," "),n=y(n,le," "),n=y(n,se," "));const c=et(e.nodeName);if(gt(c,o,n)){if(!Re||"id"!==o&&"name"!==o||(dt(s,e),n=De+n),Z&&"object"==typeof U&&"function"==typeof U.getAttributeType)if(u);else switch(U.getAttributeType(c,o)){case"TrustedHTML":n=Z.createHTML(n);break;case"TrustedScriptURL":n=Z.createScriptURL(n)}try{u?e.setAttributeNS(u,s,n):e.setAttribute(s,n),f(r.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)},Ot=function e(t){let n;const r=ht(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof s&&e(n.content),kt(n));vt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t,n,i,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!r.isSupported)return e;if(xe||ot(l),r.removed=[],"string"==typeof e&&(Le=!1),Le){if(e.nodeName){const t=et(e.nodeName);if(!he[t]||ge[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof k)t=pt("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Ce&&!Pe&&!je&&-1===e.indexOf("<"))return Z&&Te?Z.createHTML(e):e;if(t=pt(e),!t)return Ce?null:Te?Q:""}t&&Ee&&ft(t.firstChild);const u=ht(Le?e:t);for(;i=u.nextNode();)bt(i)||(i.content instanceof s&&Ot(i.content),kt(i));if(Le)return e;if(Ce){if(Ae)for(a=ne.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return(ye.shadowroot||ye.shadowrootmode)&&(a=oe.call(o,a,!0)),a}let c=je?t.outerHTML:t.innerHTML;return je&&he["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&g(W,t.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+c),Pe&&(c=y(c,ae," "),c=y(c,le," "),c=y(c,se," ")),Z&&Te?Z.createHTML(c):c},r.setConfig=function(e){ot(e),xe=!0},r.clearConfig=function(){tt=null,xe=!1},r.isValidAttribute=function(e,t,n){tt||ot({});const r=et(e),o=et(t);return gt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(ie[e]=ie[e]||[],d(ie[e],t))},r.removeHook=function(e){if(ie[e])return f(ie[e])},r.removeHooks=function(e){ie[e]&&(ie[e]=[])},r.removeAllHooks=function(){ie={}},r}()}()},33729:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){return function e(t,n,r){var o,i,a=window,l="application/octet-stream",s=r||l,u=t,c=!n&&!r&&u,f=document.createElement("a"),d=function(e){return String(e)},p=a.Blob||a.MozBlob||a.WebKitBlob||d,h=n||"download";if(p=p.call?p.bind(a):Blob,"true"===String(this)&&(s=(u=[u,s])[0],u=u[1]),c&&c.length<2048&&(h=c.split("/").pop().split("?")[0],f.href=c,-1!==f.href.indexOf(c))){var m=new XMLHttpRequest;return m.open("GET",c,!0),m.responseType="blob",m.onload=function(t){e(t.target.response,h,l)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&p!==d))return navigator.msSaveBlob?navigator.msSaveBlob(g(u),h):w(u);s=(u=g(u)).type||l}else if(/([\x80-\xff])/.test(u)){for(var y=0,v=new Uint8Array(u.length),b=v.length;y<b;++y)v[y]=u.charCodeAt(y);u=new p([v],{type:s})}function g(e){for(var t=e.split(/[:;,]/),n=t[1],r=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),o=r.length,i=0,a=new Uint8Array(o);i<o;++i)a[i]=r.charCodeAt(i);return new p([a],{type:n})}function w(e,t){if("download"in f)return f.href=e,f.setAttribute("download",h),f.className="download-js-link",f.innerHTML="downloading...",f.style.display="none",document.body.appendChild(f),setTimeout((function(){f.click(),document.body.removeChild(f),!0===t&&setTimeout((function(){a.URL.revokeObjectURL(f.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,l)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,l)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(o=u instanceof p?u:new p([u],{type:s}),navigator.msSaveBlob)return navigator.msSaveBlob(o,h);if(a.URL)w(a.URL.createObjectURL(o),!0);else{if("string"==typeof o||o.constructor===d)try{return w("data:"+s+";base64,"+a.btoa(o))}catch(e){return w("data:"+s+","+encodeURIComponent(o))}(i=new FileReader).onload=function(e){w(this.result)},i.readAsDataURL(o)}return!0}})?n.apply(t,[]):n)||(e.exports=r)},91130:function(e,t,n){e.exports=function e(t,n,r){function o(a,l){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";var r={};function o(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),t}t.exports={add:function(e,t){var n=e.className;n.length?o(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(o(t)," ").trim()}}},{}],2:[function(e,t,r){(function(n){"use strict";var r=e("contra/emitter"),o=e("crossvent"),i=e("./classes"),a=document,l=a.documentElement;function s(e,t,r,i){n.navigator.pointerEnabled?o[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[r],i):n.navigator.msPointerEnabled?o[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[r],i):(o[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[r],i),o[t](e,r,i))}function u(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function c(e){var t=e.getBoundingClientRect();return{left:t.left+f("scrollLeft","pageXOffset"),top:t.top+f("scrollTop","pageYOffset")}}function f(e,t){return void 0!==n[t]?n[t]:l.clientHeight?l[e]:a.body[e]}function d(e,t,n){var r,o=(e=e||{}).className||"";return e.className+=" gu-hide",r=a.elementFromPoint(t,n),e.className=o,r}function p(){return!1}function h(){return!0}function m(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function v(e){return e.parentNode===a?null:e.parentNode}function b(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||g(e)}function g(e){return!!e&&"false"!==e.contentEditable&&("true"===e.contentEditable||g(v(e)))}function w(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function k(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}t.exports=function(e,t){var n,f,g,O,_,S,P,j,x,E,C;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var A,T=null,M=t||{};void 0===M.moves&&(M.moves=h),void 0===M.accepts&&(M.accepts=h),void 0===M.invalid&&(M.invalid=K),void 0===M.containers&&(M.containers=e||[]),void 0===M.isContainer&&(M.isContainer=p),void 0===M.copy&&(M.copy=!1),void 0===M.copySortSource&&(M.copySortSource=!1),void 0===M.revertOnSpill&&(M.revertOnSpill=!1),void 0===M.removeOnSpill&&(M.removeOnSpill=!1),void 0===M.direction&&(M.direction="vertical"),void 0===M.ignoreInputTextSelection&&(M.ignoreInputTextSelection=!0),void 0===M.mirrorContainer&&(M.mirrorContainer=a.body);var R=r({containers:M.containers,start:q,end:Y,cancel:Z,remove:X,destroy:N,canMove:H,dragging:!1});return!0===M.removeOnSpill&&R.on("over",re).on("out",oe),I(),R;function D(e){return-1!==R.containers.indexOf(e)||M.isContainer(e)}function I(e){var t=e?"remove":"add";s(l,t,"mousedown",B),s(l,t,"mouseup",$)}function L(e){s(l,e?"remove":"add","mousemove",U)}function V(e){var t=e?"remove":"add";o[t](l,"selectstart",F),o[t](l,"click",F)}function N(){I(!0),$({})}function F(e){A&&e.preventDefault()}function B(e){if(S=e.clientX,P=e.clientY,1===u(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=z(t);n&&(A=n,L(),"mousedown"===e.type&&(b(t)?t.focus():e.preventDefault()))}}function U(e){if(A)if(0!==u(e)){if(!(void 0!==e.clientX&&Math.abs(e.clientX-S)<=(M.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-P)<=(M.slideFactorY||0))){if(M.ignoreInputTextSelection){var t=k("clientX",e)||0,n=k("clientY",e)||0;if(b(a.elementFromPoint(t,n)))return}var r=A;L(!0),V(),Y(),W(r);var o=c(g);O=k("pageX",e)-o.left,_=k("pageY",e)-o.top,i.add(E||g,"gu-transit"),ie(),ne(e)}}else $({})}function z(e){if(!(R.dragging&&n||D(e))){for(var t=e;v(e)&&!1===D(v(e));){if(M.invalid(e,t))return;if(!(e=v(e)))return}var r=v(e);if(r&&!M.invalid(e,t)&&M.moves(e,r,t,w(e)))return{item:e,source:r}}}function H(e){return!!z(e)}function q(e){var t=z(e);t&&W(t)}function W(e){ue(e.item,e.source)&&(E=e.item.cloneNode(!0),R.emit("cloned",E,e.item,"copy")),f=e.source,g=e.item,j=x=w(e.item),R.dragging=!0,R.emit("drag",g,f)}function K(){return!1}function Y(){if(R.dragging){var e=E||g;J(e,v(e))}}function G(){A=!1,L(!0),V(!0)}function $(e){if(G(),R.dragging){var t=E||g,r=k("clientX",e)||0,o=k("clientY",e)||0,i=te(d(n,r,o),r,o);i&&(E&&M.copySortSource||!E||i!==f)?J(t,i):M.removeOnSpill?X():Z()}}function J(e,t){var n=v(e);E&&M.copySortSource&&t===f&&n.removeChild(g),ee(t)?R.emit("cancel",e,f,f):R.emit("drop",e,t,f,x),Q()}function X(){if(R.dragging){var e=E||g,t=v(e);t&&t.removeChild(e),R.emit(E?"cancel":"remove",e,t,f),Q()}}function Z(e){if(R.dragging){var t=arguments.length>0?e:M.revertOnSpill,n=E||g,r=v(n),o=ee(r);!1===o&&t&&(E?r&&r.removeChild(E):f.insertBefore(n,j)),o||t?R.emit("cancel",n,f,f):R.emit("drop",n,r,f,x),Q()}}function Q(){var e=E||g;G(),ae(),e&&i.rm(e,"gu-transit"),C&&clearTimeout(C),R.dragging=!1,T&&R.emit("out",e,T,f),R.emit("dragend",e),f=g=E=j=x=C=T=null}function ee(e,t){var r;return r=void 0!==t?t:n?x:w(E||g),e===f&&r===j}function te(e,t,n){for(var r=e;r&&!o();)r=v(r);return r;function o(){if(!1===D(r))return!1;var o=le(r,e),i=se(r,o,t,n);return!!ee(r,i)||M.accepts(g,r,f,i)}}function ne(e){if(n){e.preventDefault();var t=k("clientX",e)||0,r=k("clientY",e)||0,o=t-O,i=r-_;n.style.left=o+"px",n.style.top=i+"px";var a=E||g,l=d(n,t,r),s=te(l,t,r),u=null!==s&&s!==T;(u||null===s)&&(T&&m("out"),T=s,u&&m("over"));var c=v(a);if(s!==f||!E||M.copySortSource){var p,h=le(s,l);if(null!==h)p=se(s,h,t,r);else{if(!0!==M.revertOnSpill||E)return void(E&&c&&c.removeChild(a));p=j,s=f}(null===p&&u||p!==a&&p!==w(a))&&(x=p,s.insertBefore(a,p),R.emit("shadow",a,s,f))}else c&&c.removeChild(a)}function m(e){R.emit(e,a,T,f)}}function re(e){i.rm(e,"gu-hide")}function oe(e){R.dragging&&i.add(e,"gu-hide")}function ie(){if(!n){var e=g.getBoundingClientRect();(n=g.cloneNode(!0)).style.width=m(e)+"px",n.style.height=y(e)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),M.mirrorContainer.appendChild(n),s(l,"add","mousemove",ne),i.add(M.mirrorContainer,"gu-unselectable"),R.emit("cloned",n,g,"mirror")}}function ae(){n&&(i.rm(M.mirrorContainer,"gu-unselectable"),s(l,"remove","mousemove",ne),v(n).removeChild(n),n=null)}function le(e,t){for(var n=t;n!==e&&v(n)!==e;)n=v(n);return n===l?null:n}function se(e,t,n,r){var o,i="horizontal"===M.direction;return t!==e?(o=t.getBoundingClientRect(),(i?n>o.left+m(o)/2:r>o.top+y(o)/2)?w(t):t):function(){var t,o,a,l=e.children.length;for(t=0;t<l;t++){if(a=(o=e.children[t]).getBoundingClientRect(),i&&a.left+a.width/2>n)return o;if(!i&&a.top+a.height/2>r)return o}return null}()}function ue(e,t){return"boolean"==typeof M.copy?M.copy:M.copy(e,t)}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var r=e("ticky");t.exports=function(e,t,n){e&&r((function(){e.apply(n||null,t||[])}))}},{ticky:10}],5:[function(e,t,n){"use strict";var r=e("atoa"),o=e("./debounce");t.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var r=arguments.length;if(1===r)delete i[t];else if(0===r)i={};else{var o=i[t];if(!o)return e;o.splice(o.indexOf(n),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var a=(i[t]||[]).slice(0);return function(){var i=r(arguments),l=this||e;if("error"===t&&!1!==n.throws&&!a.length)throw 1===i.length?i[0]:i;return a.forEach((function(r){n.async?o(r,i,l):r.apply(l,i),r._once&&e.off(t,r)})),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,r){(function(n){"use strict";var r=e("custom-event"),o=e("./eventmap"),i=n.document,a=function(e,t,n,r){return e.addEventListener(t,n,r)},l=function(e,t,n,r){return e.removeEventListener(t,n,r)},s=[];function u(e,t,n){var r=function(e,t,n){var r,o;for(r=0;r<s.length;r++)if((o=s[r]).element===e&&o.type===t&&o.fn===n)return r}(e,t,n);if(r){var o=s[r].wrapper;return s.splice(r,1),o}}n.addEventListener||(a=function(e,t,r){return e.attachEvent("on"+t,function(e,t,r){var o=u(e,t,r)||function(e,t,r){return function(t){var o=t||n.event;o.target=o.target||o.srcElement,o.preventDefault=o.preventDefault||function(){o.returnValue=!1},o.stopPropagation=o.stopPropagation||function(){o.cancelBubble=!0},o.which=o.which||o.keyCode,r.call(e,o)}}(e,0,r);return s.push({wrapper:o,element:e,type:t,fn:r}),o}(e,t,r))},l=function(e,t,n){var r=u(e,t,n);if(r)return e.detachEvent("on"+t,r)}),t.exports={add:a,remove:l,fabricate:function(e,t,n){var a=-1===o.indexOf(t)?new r(t,{detail:n}):function(){var e;return i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+t,a)}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,t,r){(function(e){"use strict";var n=[],r="",o=/^on/;for(r in e)o.test(r)&&n.push(r.slice(2));t.exports=n}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,r){(function(e){var n=e.CustomEvent;t.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"==typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();var u,c=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,f=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||f||s(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],10:[function(e,t,n){(function(e){var n;n="function"==typeof e?function(t){e(t)}:function(e){setTimeout(e,0)},t.exports=n}).call(this,e("timers").setImmediate)},{timers:11}],11:[function(e,t,n){(function(t,r){var o=e("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,l={},s=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=s++,r=!(arguments.length<2)&&a.call(arguments,1);return l[t]=!0,o((function(){l[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete l[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new o(r,i||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,o,i,a){var l=n?n+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||o&&!l.once||r&&l.context!==r||a(this,i);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||o&&!l[s].once||r&&l[s].context!==r)&&u.push(l[s]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l},87559:function(e,t,n){var r;!function(o){"use strict";function i(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,l="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in o,u="ArrayBuffer"in o;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function y(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function v(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function b(e){var t=new FileReader,n=v(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:l&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&l&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l&&(this.blob=function(){var e=y(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var e,t,r,o=y(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=v(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),k.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},w.call(O.prototype),w.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];S.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function j(e,i){return new n((function(n,a){var s=new O(e,i);if(s.signal&&s.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var c=new r;function f(){c.abort()}c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){n(new S(o,r))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},c.open(s.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(l?c.responseType="blob":u&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof m?s.headers.forEach((function(e,t){c.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){c.setRequestHeader(e,p(i.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",f)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}j.polyfill=!0,o.fetch||(o.fetch=j,o.Headers=m,o.Request=O,o.Response=S),t.Headers=m,t.Request=O,t.Response=S,t.fetch=j,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},96073:function(e,t,n){"use strict";var r=n(17021),o=n(50949),i=n(94813),a=n(25627),l=n(96433),s=n(28542),u=n(42411),c=n(92401),f=n(29394);function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=d(r),h=d(o),m=d(i),y=d(a),v=d(l),b=d(s),g=d(u),w=d(c),k=d(f);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},P=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.default(this,e),this.init(t,n)}return m.default(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||S,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,_(_({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),j=new P,x=function(){function e(){h.default(this,e),this.observers={}}return m.default(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function E(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function C(e){return null==e?"":""+e}function A(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function T(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function M(e,t,n){var r=T(e,t,Object);r.obj[r.k]=n}function R(e,t){var n=T(e,t),r=n.obj,o=n.k;if(r)return r[o]}function D(e,t,n){var r=R(e,n);return void 0!==r?r:R(t,n)}function I(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):I(e[r],t[r],n):e[r]=t[r]);return e}function L(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function N(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return V[e]})):e}var F="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,B=[" ",",","?","!",";"];function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),s=o[l];void 0===s&&r.length>i+a;)a++,s=o[l=r.slice(i,i+a).join(n)];if(void 0===s)return;if(null===s)return null;if(t.endsWith(l)){if("string"==typeof s)return s;if(l&&"string"==typeof s[l])return s[l]}var u=r.slice(i+a).join(n);return u?H(s,u,n):void 0}o=o[r[i]]}return o}}var q=function(e){v.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return h.default(this,o),t=r.call(this),F&&x.call(y.default(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return m.default(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=R(this.data,a);return l||!i||"string"!=typeof n?l:H(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),M(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=R(this.data,a)||{};r?I(l,n,o):l=z(z({},l),n),M(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?z(z({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(x),W={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}};function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G={},$=function(e){v.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h.default(this,o),t=r.call(this),F&&x.call(y.default(t)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,y.default(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=j.create("translator"),t}return m.default(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=B.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==p.default(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],t),s=l.key,u=l.namespaces,c=u[u.length-1],f=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var h=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(c).concat(h).concat(s),usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c}:"".concat(c).concat(h).concat(s)}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c}:s}var m=this.resolve(e,t),y=m&&m.res,v=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,g=Object.prototype.toString.apply(y),w=["[object Number]","[object Function]","[object RegExp]"],k=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y;if(O&&y&&_&&w.indexOf(g)<0&&("string"!=typeof k||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,y,Y(Y({},t),{},{ns:u})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(m.res=S,m):S}if(a){var P="[object Array]"===g,j=P?[]:{},x=P?b:v;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var C="".concat(x).concat(a).concat(E);j[E]=this.translate(C,Y(Y({},t),{joinArrays:!1,ns:u})),j[E]===C&&(j[E]=y[E])}y=j}}else if(O&&"string"==typeof k&&"[object Array]"===g)(y=y.join(k))&&(y=this.extendTranslation(y,e,t,n));else{var A=!1,T=!1,M=void 0!==t.count&&"string"!=typeof t.count,R=o.hasDefaultValue(t),D=M?this.pluralResolver.getSuffix(f,t.count,t):"",I=t["defaultValue".concat(D)]||t.defaultValue;!this.isValidLookup(y)&&R&&(A=!0,y=I),this.isValidLookup(y)||(T=!0,y=s);var L=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,V=L&&T?void 0:y,N=R&&I!==y&&this.options.updateMissing;if(T||A||N){if(this.logger.log(N?"updateKey":"missingKey",f,c,s,N?I:y),a){var F=this.resolve(s,Y(Y({},t),{},{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var z=0;z<U.length;z++)B.push(U[z]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(t.lng||this.language):B.push(t.lng||this.language);var H=function(e,n,o){var i=R&&o!==y?o:V;r.options.missingKeyHandler?r.options.missingKeyHandler(e,c,n,i,N,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,c,n,i,N,t),r.emit("missingKey",e,c,n,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?B.forEach((function(e){r.pluralResolver.getSuffixes(e,t).forEach((function(n){H([e],s+n,t["defaultValue".concat(n)]||I)}))})):H(B,s,I))}y=this.extendTranslation(y,e,t,m,n),T&&y===s&&this.options.appendNamespaceToMissingKey&&(y="".concat(c,":").concat(s)),(T||A)&&this.options.parseMissingKeyHandler&&(y="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(s):s,A?y:void 0):this.options.parseMissingKeyHandler(y))}return i?(m.res=y,m):y}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Y(Y({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Y(Y({},n),{interpolation:Y(Y({},this.options.interpolation),n.interpolation)}));var a,l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=Y(Y({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=W.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Y({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,l),u=s.key;n=u;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,d=f&&!l.ordinal&&0===l.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,h=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!G["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(G["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,u,n,e,l);else{var c;f&&(c=a.pluralResolver.getSuffix(n,l.count,l));var h="".concat(a.options.pluralSeparator,"zero");if(f&&(s.push(u+c),d&&s.push(u+h)),p){var m="".concat(u).concat(a.options.contextSeparator).concat(l.context);s.push(m),f&&(s.push(m+c),d&&s.push(m+h))}}for(;i=s.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(x);function J(e){return e.charAt(0).toUpperCase()+e.slice(1)}var X=function(){function e(t){h.default(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j.create("languageUtils")}return m.default(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=J(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=J(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=J(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===e.indexOf(r)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Q={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ee=["v1","v2","v3"],te={zero:0,one:1,two:2,few:3,many:4,other:5};function ne(){var e={};return Z.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Q[t.fc]}}))})),e}var re=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.default(this,e),this.languageUtils=t,this.options=n,this.logger=j.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ne()}return m.default(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return te[e]-te[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!ee.includes(this.options.compatibilityJSON)}}]),e}();function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ae=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.default(this,e),this.logger=j.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return m.default(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:N,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?L(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?L(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?L(t.nestingPrefix):t.nestingPrefixEscaped||L("$t("),this.nestingSuffix=t.nestingSuffix?L(t.nestingSuffix):t.nestingSuffixEscaped||L(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=D(t,s,e);return l.alwaysFormat?l.format(o,void 0,n,ie(ie(ie({},r),t),{},{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),u=i.join(l.formatSeparator).trim();return l.format(D(t,s,a),u,n,ie(ie(ie({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?u(l.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=c(n)))if("function"==typeof f){var s=f(e,o,r);i="string"==typeof s?s:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(d){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=C(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var a=(i=this.interpolate(i,o)).match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=ie(ie({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var s=[];(o=(o=ie({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,u=!0}if((r=t(l.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=C(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=s.reduce((function(e,t){return i.format(e,t,a.lng,ie(ie({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=e.split(":"),r=k.default(t),o=r[0],i=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=i),"false"===i&&(n[o.trim()]=!1),"true"===i&&(n[o.trim()]=!0),isNaN(i)||(n[o.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}function ce(e){var t={};return function(n,r,o){var i=r+JSON.stringify(o),a=t[i];return a||(a=e(r,o),t[i]=a),a(n)}}var fe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.default(this,e),this.logger=j.create("formatter"),this.options=t,this.formats={number:ce((function(e,t){var n=new Intl.NumberFormat(e,se({},t));return function(e){return n.format(e)}})),currency:ce((function(e,t){var n=new Intl.NumberFormat(e,se(se({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:ce((function(e,t){var n=new Intl.DateTimeFormat(e,se({},t));return function(e){return n.format(e)}})),relativetime:ce((function(e,t){var n=new Intl.RelativeTimeFormat(e,se({},t));return function(e){return n.format(e,t.range||"day")}})),list:ce((function(e,t){var n=new Intl.ListFormat(e,se({},t));return function(e){return n.format(e)}}))},this.init(t)}return m.default(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=ce(t)}},{key:"format",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator),a=i.reduce((function(e,t){var i=ue(t),a=i.formatName,l=i.formatOptions;if(r.formats[a]){var s=e;try{var u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},c=u.locale||u.lng||o.locale||o.lng||n;s=r.formats[a](e,c,se(se(se({},l),o),u))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(a)),e}),e);return a}}]),e}();function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var he=function(e){v.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(e,t,n){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return h.default(this,o),i=r.call(this),F&&x.call(y.default(i)),i.backend=e,i.store=t,i.services=n,i.languageUtils=n.languageUtils,i.options=a,i.logger=j.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,a.backend,a),i}return m.default(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i={},a={},l={},s={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?void 0===a[l]&&(a[l]=!0):(o.state[l]=1,r=!1,void 0===a[l]&&(a[l]=!0),void 0===i[l]&&(i[l]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(l[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,l,s,u,c;r=n.loaded,l=i,(u=(s=T(r,[o],Object)).obj)[c=s.k]=u[c]||[],u[c].push(l),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:i,callback:a});else{this.readingCalls++;var l=function(l,s){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}l&&s&&o<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,l);try{var u=s(e,t);u&&"function"==typeof u.then?u.then((function(e){return l(null,e)})).catch(l):l(null,u)}catch(e){l(e)}}}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var l=pe(pe({},i),{},{isUpdate:o}),s=this.backend.create.bind(this.backend);if(s.length<6)try{var u;(u=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof u.then?u.then((function(e){return a(null,e)})).catch(a):a(null,u)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),o}(x);function me(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===p.default(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===p.default(e[2])||"object"===p.default(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ye(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(){}function we(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var ke=function(e){v.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(h.default(this,o),e=r.call(this),F&&x.call(y.default(e)),e.options=ye(t),e.services={},e.logger=j,e.modules={external:[]},we(y.default(e)),n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),b.default(e,y.default(e));setTimeout((function(){e.init(t,n)}),0)}return e}return m.default(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=me();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=be(be(be({},r),this.options),ye(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=be(be({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?j.init(o(this.modules.logger),this.options):j.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=fe);var a=new X(this.options);this.store=new q(this.options.resources,this.options);var l=this.services;l.logger=j,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new re(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(l.formatter=o(i),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new ae(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new he(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new $(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var f=E(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=E();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ge),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&W.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=E();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==p.default(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=be({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var u,c=r.options.keySeparator||".";return u=i.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(i.keyPrefix).concat(c).concat(e)})):i.keyPrefix?"".concat(i.keyPrefix).concat(c).concat(t):t,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=E();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=E();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new X(me());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge,r=be(be(be({},this.options),t),{isClone:!0}),i=new o(r);void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t));var a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=be({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new $(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(r,n),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(x);w.default(ke,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ke(e,t)}));var Oe=ke.createInstance();Oe.createInstance=ke.createInstance,e.exports=Oe},25382:function(e){"undefined"!=typeof self&&self,e.exports=function(){"use strict";var e={8741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n},3976:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2839),o={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[r.keys.Backspace,r.keys.Tab,r.keys.Pause,r.keys.Escape,r.keys.PageUp,r.keys.PageDown,r.keys.End,r.keys.Home,r.keys.ArrowLeft,r.keys.ArrowUp,r.keys.ArrowRight,r.keys.ArrowDown,r.keys.Insert,r.keys.Delete,r.keys.ContextMenu,r.keys.F1,r.keys.F2,r.keys.F3,r.keys.F4,r.keys.F5,r.keys.F6,r.keys.F7,r.keys.F8,r.keys.F9,r.keys.F10,r.keys.F11,r.keys.F12,r.keys.Process,r.keys.Unidentified,r.keys.Shift,r.keys.Control,r.keys.Alt,r.keys.Tab,r.keys.AltGraph,r.keys.CapsLock],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}};t.default=o},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:"[0-9０-９]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-9０-９A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}},3776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=function(e,t){var n,r;return f(this[0])&&e&&(n=this[0].eventRegistry,r=this[0],e.split(" ").forEach((function(e){var o=s(e.split("."),2);(function(e,r){var o,i,a=[];if(e.length>0)if(void 0===t)for(o=0,i=n[e][r].length;o<i;o++)a.push({ev:e,namespace:r&&r.length>0?r:"global",handler:n[e][r][o]});else a.push({ev:e,namespace:r&&r.length>0?r:"global",handler:t});else if(r.length>0)for(var l in n)for(var s in n[l])if(s===r)if(void 0===t)for(o=0,i=n[l][s].length;o<i;o++)a.push({ev:l,namespace:s,handler:n[l][s][o]});else a.push({ev:l,namespace:s,handler:t});return a})(o[0],o[1]).forEach((function(e){var t=e.ev,o=e.handler;!function(e,t,o){if(e in n==1)if(r.removeEventListener?r.removeEventListener(e,o,!1):r.detachEvent&&r.detachEvent("on".concat(e),o),"global"===t)for(var i in n[e])n[e][i].splice(n[e][i].indexOf(o),1);else n[e][t].splice(n[e][t].indexOf(o),1)}(t,e.namespace,o)}))}))),this},t.on=function(e,t){if(f(this[0])){var n=this[0].eventRegistry,r=this[0];e.split(" ").forEach((function(e){var o=s(e.split("."),2),i=o[0],a=o[1];!function(e,o){r.addEventListener?r.addEventListener(e,t,!1):r.attachEvent&&r.attachEvent("on".concat(e),t),n[e]=n[e]||{},n[e][o]=n[e][o]||[],n[e][o].push(t)}(i,void 0===a?"global":a)}))}return this},t.trigger=function(e){var t=arguments;if(f(this[0]))for(var n=this[0].eventRegistry,r=this[0],i="string"==typeof e?e.split(" "):[e.type],l=0;l<i.length;l++){var s=i[l].split("."),u=s[0],c=s[1]||"global";if(void 0!==document&&"global"===c){var d,p={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(document.createEvent){try{"input"===u?(p.inputType="insertText",d=new InputEvent(u,p)):d=new CustomEvent(u,p)}catch(e){(d=document.createEvent("CustomEvent")).initCustomEvent(u,p.bubbles,p.cancelable,p.detail)}e.type&&(0,o.default)(d,e),r.dispatchEvent(d)}else(d=document.createEventObject()).eventType=u,d.detail=arguments[1],e.type&&(0,o.default)(d,e),r.fireEvent("on"+d.eventType,d)}else if(void 0!==n[u]){arguments[0]=arguments[0].type?arguments[0]:a.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var h=n[u];("global"===c?Object.values(h).flat():h[c]).forEach((function(e){return e.apply(r,t)}))}}return this};var r,o=c(n(600)),i=c(n(9380)),a=c(n(4963)),l=c(n(8741));function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return e instanceof Element}t.Event=r,"function"==typeof i.default.CustomEvent?t.Event=r=i.default.CustomEvent:l.default&&(t.Event=r=function(e,t){t=t||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},r.prototype=i.default.Event.prototype)},600:function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(){var t,r,o,i,a,l,s=arguments[0]||{},u=1,c=arguments.length,f=!1;for("boolean"==typeof s&&(f=s,s=arguments[u]||{},u++),"object"!==n(s)&&"function"!=typeof s&&(s={});u<c;u++)if(null!=(t=arguments[u]))for(r in t)o=s[r],s!==(i=t[r])&&(f&&i&&("[object Object]"===Object.prototype.toString.call(i)||(a=Array.isArray(i)))?(a?(a=!1,l=o&&Array.isArray(o)?o:[]):l=o&&"[object Object]"===Object.prototype.toString.call(o)?o:{},s[r]=e(f,l,i)):void 0!==i&&(s[r]=i));return s}},4963:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(600)),o=l(n(9380)),i=l(n(253)),a=n(3776);function l(e){return e&&e.__esModule?e:{default:e}}var s=o.default.document;function u(e){return e instanceof u?e:this instanceof u?void(null!=e&&e!==o.default&&(this[0]=e.nodeName?e:void 0!==e[0]&&e[0].nodeName?e[0]:s.querySelector(e),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new u(e)}u.prototype={on:a.on,off:a.off,trigger:a.trigger},u.extend=r.default,u.data=i.default,u.Event=a.Event;var c=u;t.default=c},9845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mobile=t.iphone=t.ie=void 0;var r,o=(r=n(9380))&&r.__esModule?r:{default:r},i=o.default.navigator&&o.default.navigator.userAgent||"",a=i.indexOf("MSIE ")>0||i.indexOf("Trident/")>0,l=navigator.userAgentData&&navigator.userAgentData.mobile||o.default.navigator&&o.default.navigator.maxTouchPoints||"ontouchstart"in o.default,s=/iphone/i.test(i);t.iphone=s,t.mobile=l,t.ie=a},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var r=n(8711),o=n(2839),i=n(9845),a=n(7215),l=n(7760),s=n(4713);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={keyEvent:function(e,t,n,u,c){var d=this.inputmask,p=d.opts,h=d.dependencyLib,m=d.maskset,y=this,v=h(y),b=e.key,g=r.caret.call(d,y),w=p.onKeyDown.call(this,e,r.getBuffer.call(d),g,p);if(void 0!==w)return w;if(b===o.keys.Backspace||b===o.keys.Delete||i.iphone&&b===o.keys.BACKSPACE_SAFARI||e.ctrlKey&&b===o.keys.x&&!("oncut"in y))e.preventDefault(),a.handleRemove.call(d,y,b,g),(0,l.writeBuffer)(y,r.getBuffer.call(d,!0),m.p,e,y.inputmask._valueGet()!==r.getBuffer.call(d).join(""));else if(b===o.keys.End||b===o.keys.PageDown){e.preventDefault();var k=r.seekNext.call(d,r.getLastValidPosition.call(d));r.caret.call(d,y,e.shiftKey?g.begin:k,k,!0)}else b===o.keys.Home&&!e.shiftKey||b===o.keys.PageUp?(e.preventDefault(),r.caret.call(d,y,0,e.shiftKey?g.begin:0,!0)):p.undoOnEscape&&b===o.keys.Escape&&!0!==e.altKey?((0,l.checkVal)(y,!0,!1,d.undoValue.split("")),v.trigger("click")):b!==o.keys.Insert||e.shiftKey||e.ctrlKey||void 0!==d.userOptions.insertMode?!0===p.tabThrough&&b===o.keys.Tab?!0===e.shiftKey?(g.end=r.seekPrevious.call(d,g.end,!0),!0===s.getTest.call(d,g.end-1).match.static&&g.end--,g.begin=r.seekPrevious.call(d,g.end,!0),g.begin>=0&&g.end>0&&(e.preventDefault(),r.caret.call(d,y,g.begin,g.end))):(g.begin=r.seekNext.call(d,g.begin,!0),g.end=r.seekNext.call(d,g.begin,!0),g.end<m.maskLength&&g.end--,g.begin<=m.maskLength&&(e.preventDefault(),r.caret.call(d,y,g.begin,g.end))):e.shiftKey||p.insertModeVisual&&!1===p.insertMode&&(b===o.keys.ArrowRight?setTimeout((function(){var e=r.caret.call(d,y);r.caret.call(d,y,e.begin)}),0):b===o.keys.ArrowLeft&&setTimeout((function(){var e=r.translatePosition.call(d,y.inputmask.caretPos.begin);r.translatePosition.call(d,y.inputmask.caretPos.end),d.isRTL?r.caret.call(d,y,e+(e===m.maskLength?0:1)):r.caret.call(d,y,e-(0===e?0:1))}),0)):a.isSelection.call(d,g)?p.insertMode=!p.insertMode:(p.insertMode=!p.insertMode,r.caret.call(d,y,g.begin,g.begin));return d.isComposing=b==o.keys.Process||b==o.keys.Unidentified,d.ignorable=p.ignorables.includes(b),f.keypressEvent.call(this,e,t,n,u,c)},keypressEvent:function(e,t,n,i,s){var u=this.inputmask||this,c=u.opts,f=u.dependencyLib,d=u.maskset,p=u.el,h=f(p),m=e.key;if(!0===t||e.ctrlKey&&e.altKey||!(e.ctrlKey||e.metaKey||u.ignorable)){if(m){var y,v=t?{begin:s,end:s}:r.caret.call(u,p);m=c.substitutes[m]||m,d.writeOutBuffer=!0;var b=a.isValid.call(u,v,m,i,void 0,void 0,void 0,t);if(!1!==b&&(r.resetMaskSet.call(u,!0),y=void 0!==b.caret?b.caret:r.seekNext.call(u,b.pos.begin?b.pos.begin:b.pos),d.p=y),y=c.numericInput&&void 0===b.caret?r.seekPrevious.call(u,y):y,!1!==n&&(setTimeout((function(){c.onKeyValidation.call(p,m,b)}),0),d.writeOutBuffer&&!1!==b)){var g=r.getBuffer.call(u);(0,l.writeBuffer)(p,g,y,e,!0!==t)}if(e.preventDefault(),t)return!1!==b&&(b.forwardPosition=y),b}}else m===o.keys.Enter&&u.undoValue!==u._valueGet(!0)&&(u.undoValue=u._valueGet(!0),setTimeout((function(){h.trigger("change")}),0))},pasteEvent:function(e){var t,n=this.inputmask,o=n.opts,i=n._valueGet(!0),a=r.caret.call(n,this);n.isRTL&&(t=a.end,a.end=r.translatePosition.call(n,a.begin),a.begin=r.translatePosition.call(n,t));var s=i.substr(0,a.begin),c=i.substr(a.end,i.length);if(s==(n.isRTL?r.getBufferTemplate.call(n).slice().reverse():r.getBufferTemplate.call(n)).slice(0,a.begin).join("")&&(s=""),c==(n.isRTL?r.getBufferTemplate.call(n).slice().reverse():r.getBufferTemplate.call(n)).slice(a.end).join("")&&(c=""),window.clipboardData&&window.clipboardData.getData)i=s+window.clipboardData.getData("Text")+c;else{if(!e.clipboardData||!e.clipboardData.getData)return!0;i=s+e.clipboardData.getData("text/plain")+c}var f=i;if(n.isRTL){f=f.split("");var d,p=u(r.getBufferTemplate.call(n));try{for(p.s();!(d=p.n()).done;){var h=d.value;f[0]===h&&f.shift()}}catch(e){p.e(e)}finally{p.f()}f=f.join("")}if("function"==typeof o.onBeforePaste){if(!1===(f=o.onBeforePaste.call(n,f,o)))return!1;f||(f=i)}(0,l.checkVal)(this,!0,!1,f.toString().split(""),e),e.preventDefault()},inputFallBackEvent:function(e){var t,n=this.inputmask,a=n.opts,u=n.dependencyLib,c=this,d=c.inputmask._valueGet(!0),p=(n.isRTL?r.getBuffer.call(n).slice().reverse():r.getBuffer.call(n)).join(""),h=r.caret.call(n,c,void 0,void 0,!0);if(p!==d){if(t=function(e,t,o){for(var i,l,u,c=e.substr(0,o.begin).split(""),f=e.substr(o.begin).split(""),d=t.substr(0,o.begin).split(""),p=t.substr(o.begin).split(""),h=c.length>=d.length?c.length:d.length,m=f.length>=p.length?f.length:p.length,y="",v=[],b="~";c.length<h;)c.push(b);for(;d.length<h;)d.push(b);for(;f.length<m;)f.unshift(b);for(;p.length<m;)p.unshift(b);var g=c.concat(f),w=d.concat(p);for(l=0,i=g.length;l<i;l++)switch(u=s.getPlaceholder.call(n,r.translatePosition.call(n,l)),y){case"insertText":w[l-1]===g[l]&&o.begin==g.length-1&&v.push(g[l]),l=i;break;case"insertReplacementText":case"deleteContentBackward":g[l]===b?o.end++:l=i;break;default:g[l]!==w[l]&&(g[l+1]!==b&&g[l+1]!==u&&void 0!==g[l+1]||(w[l]!==u||w[l+1]!==b)&&w[l]!==b?w[l+1]===b&&w[l]===g[l+1]?(y="insertText",v.push(g[l]),o.begin--,o.end--):g[l]!==u&&g[l]!==b&&(g[l+1]===b||w[l]!==g[l]&&w[l+1]===g[l+1])?(y="insertReplacementText",v.push(g[l]),o.begin--):g[l]===b?(y="deleteContentBackward",(r.isMask.call(n,r.translatePosition.call(n,l),!0)||w[l]===a.radixPoint)&&o.end++):l=i:(y="insertText",v.push(g[l]),o.begin--,o.end--))}return{action:y,data:v,caret:o}}(d,p,h),(c.inputmask.shadowRoot||c.ownerDocument).activeElement!==c&&c.focus(),(0,l.writeBuffer)(c,r.getBuffer.call(n)),r.caret.call(n,c,h.begin,h.end,!0),!i.mobile&&n.skipNextInsert&&"insertText"===e.inputType&&"insertText"===t.action&&n.isComposing)return!1;switch("insertCompositionText"===e.inputType&&"insertText"===t.action&&n.isComposing?n.skipNextInsert=!0:n.skipNextInsert=!1,t.action){case"insertText":case"insertReplacementText":t.data.forEach((function(e,t){var r=new u.Event("keypress");r.key=e,n.ignorable=!1,f.keypressEvent.call(c,r)})),setTimeout((function(){n.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var m=new u.Event("keydown");m.key=o.keys.Backspace,f.keyEvent.call(c,m);break;default:(0,l.applyInputValue)(c,d),r.caret.call(n,c,h.begin,h.end,!0)}e.preventDefault()}},setValueEvent:function(e){var t=this.inputmask,n=this,o=e&&e.detail?e.detail[0]:arguments[1];void 0===o&&(o=n.inputmask._valueGet(!0)),(0,l.applyInputValue)(n,o),(e.detail&&void 0!==e.detail[1]||void 0!==arguments[2])&&r.caret.call(t,n,e.detail?e.detail[1]:arguments[2])},focusEvent:function(e){var t=this.inputmask,n=t.opts,o=null==t?void 0:t._valueGet();n.showMaskOnFocus&&o!==r.getBuffer.call(t).join("")&&(0,l.writeBuffer)(this,r.getBuffer.call(t),r.seekNext.call(t,r.getLastValidPosition.call(t))),!0!==n.positionCaretOnTab||!1!==t.mouseEnter||a.isComplete.call(t,r.getBuffer.call(t))&&-1!==r.getLastValidPosition.call(t)||f.clickEvent.apply(this,[e,!0]),t.undoValue=null==t?void 0:t._valueGet(!0)},invalidEvent:function(e){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var e=this.inputmask,t=e.opts,n=this;e.mouseEnter=!1,t.clearMaskOnLostFocus&&(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n&&(0,l.HandleNativePlaceholder)(n,e.originalPlaceholder)},clickEvent:function(e,t){var n=this.inputmask;n.clicked++;var o=this;if((o.inputmask.shadowRoot||o.ownerDocument).activeElement===o){var i=r.determineNewCaretPosition.call(n,r.caret.call(n,o),t);void 0!==i&&r.caret.call(n,o,i)}},cutEvent:function(e){var t=this.inputmask,n=t.maskset,i=this,s=r.caret.call(t,i),u=t.isRTL?r.getBuffer.call(t).slice(s.end,s.begin):r.getBuffer.call(t).slice(s.begin,s.end),c=t.isRTL?u.reverse().join(""):u.join("");window.navigator.clipboard?window.navigator.clipboard.writeText(c):window.clipboardData&&window.clipboardData.getData&&window.clipboardData.setData("Text",c),a.handleRemove.call(t,i,o.keys.Delete,s),(0,l.writeBuffer)(i,r.getBuffer.call(t),n.p,e,t.undoValue!==t._valueGet(!0))},blurEvent:function(e){var t=this.inputmask,n=t.opts,o=t.dependencyLib;t.clicked=0;var i=o(this),s=this;if(s.inputmask){(0,l.HandleNativePlaceholder)(s,t.originalPlaceholder);var u=s.inputmask._valueGet(),c=r.getBuffer.call(t).slice();""!==u&&(n.clearMaskOnLostFocus&&(-1===r.getLastValidPosition.call(t)&&u===r.getBufferTemplate.call(t).join("")?c=[]:l.clearOptionalTail.call(t,c)),!1===a.isComplete.call(t,c)&&(setTimeout((function(){i.trigger("incomplete")}),0),n.clearIncomplete&&(r.resetMaskSet.call(t),c=n.clearMaskOnLostFocus?[]:r.getBufferTemplate.call(t).slice())),(0,l.writeBuffer)(s,c,void 0,e)),t.undoValue!==t._valueGet(!0)&&(t.undoValue=t._valueGet(!0),i.trigger("change"))}},mouseenterEvent:function(){var e=this.inputmask,t=e.opts.showMaskOnHover,n=this;if(e.mouseEnter=!0,(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n){var o=(e.isRTL?r.getBufferTemplate.call(e).slice().reverse():r.getBufferTemplate.call(e)).join("");t&&(0,l.HandleNativePlaceholder)(n,o)}},submitEvent:function(){var e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger("change"),-1===r.getLastValidPosition.call(e)&&e._valueGet&&e._valueGet()===r.getBufferTemplate.call(e).join("")&&e._valueSet(""),t.clearIncomplete&&!1===a.isComplete.call(e,r.getBuffer.call(e))&&e._valueSet(""),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout((function(){(0,l.writeBuffer)(e.el,r.getBuffer.call(e))}),0))},resetEvent:function(){var e=this.inputmask;e.refreshValue=!0,setTimeout((function(){(0,l.applyInputValue)(e.el,e._valueGet(!0))}),0)}};t.EventHandlers=f},9716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var r,o=(r=n(2394))&&r.__esModule?r:{default:r},i=n(2839),a=n(8711),l=n(7760),s={on:function(e,t,n){var r=e.inputmask.dependencyLib,s=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var s,u=this,c=u.inputmask,f=c?c.opts:void 0;if(void 0===c&&"FORM"!==this.nodeName){var d=r.data(u,"_inputmask_opts");r(u).off(),d&&new o.default(d).mask(u)}else{if(["submit","reset","setvalue"].includes(t.type)||"FORM"===this.nodeName||!(u.disabled||u.readOnly&&!("keydown"===t.type&&t.ctrlKey&&t.key===i.keys.c||!1===f.tabThrough&&t.key===i.keys.Tab))){switch(t.type){case"input":if(!0===c.skipInputEvent)return c.skipInputEvent=!1,t.preventDefault();break;case"click":case"focus":return c.validationEvent?(c.validationEvent=!1,e.blur(),(0,l.HandleNativePlaceholder)(e,(c.isRTL?a.getBufferTemplate.call(c).slice().reverse():a.getBufferTemplate.call(c)).join("")),setTimeout((function(){e.focus()}),f.validationEventTimeOut),!1):(s=arguments,void setTimeout((function(){e.inputmask&&n.apply(u,s)}),0))}var p=n.apply(u,arguments);return!1===p&&(t.preventDefault(),t.stopPropagation()),p}t.preventDefault()}};["submit","reset"].includes(t)?(s=s.bind(e),null!==e.form&&r(e.form).on(t,s)):r(e).on(t,s),e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(s)},off:function(e,t){if(e.inputmask&&e.inputmask.events){var n=e.inputmask.dependencyLib,r=e.inputmask.events;for(var o in t&&((r=[])[t]=e.inputmask.events[t]),r){for(var i=r[o];i.length>0;){var a=i.pop();["submit","reset"].includes(o)?null!==e.form&&n(e.form).off(o,a):n(e).off(o,a)}delete e.inputmask.events[o]}}}};t.EventRuler=s},219:function(e,t,n){var r=f(n(2394)),o=n(2839),i=f(n(7184)),a=n(8711),l=n(4713);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key,"string"),"symbol"===u(o)?o:String(o)),r)}var o}function f(e){return e&&e.__esModule?e:{default:e}}var d=r.default.dependencyLib,p=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mask=t,this.format=n,this.opts=r,this._date=new Date(1,0,1),this.initDateObject(t,this.opts)}var t,n;return t=e,(n=[{key:"date",get:function(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts)),this._date}},{key:"initDateObject",value:function(e,t){var n;for(k(t).lastIndex=0;n=k(t).exec(this.format);){var r=new RegExp("\\d+$").exec(n[0]),o=r?n[0][0]+"x":n[0],i=void 0;if(void 0!==e){if(r){var a=k(t).lastIndex,l=x(n.index,t);k(t).lastIndex=a,i=e.slice(0,e.indexOf(l.nextMatch[0]))}else i=e.slice(0,y[o]&&y[o][4]||o.length);e=e.slice(i.length)}Object.prototype.hasOwnProperty.call(y,o)&&this.setValue(this,i,o,y[o][2],y[o][1])}}},{key:"setValue",value:function(e,t,n,r,o){if(void 0!==t&&(e[r]="ampm"===r?t:t.replace(/[^0-9]/g,"0"),e["raw"+r]=t.replace(/\s/g,"_")),void 0!==o){var i=e[r];("day"===r&&29===parseInt(i)||"month"===r&&2===parseInt(i))&&(29!==parseInt(e.day)||2!==parseInt(e.month)||""!==e.year&&void 0!==e.year||e._date.setFullYear(2012,1,29)),"day"===r&&(m=!0,0===parseInt(i)&&(i=1)),"month"===r&&(m=!0),"year"===r&&(m=!0,i.length<4&&(i=S(i,4,!0))),""===i||isNaN(i)||o.call(e._date,i),"ampm"===r&&o.call(e._date,i)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),h=(new Date).getFullYear(),m=!1,y={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return S(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return S(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return S(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return S(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return S(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return S(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return S(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return S(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return S(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return S(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return S(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",b,"ampm",g,1],tt:["[ap]m",b,"ampm",g,2],T:["[AP]",b,"ampm",g,1],TT:["[AP]M",b,"ampm",g,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];return e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0]})).join("")),e}],o:[""],S:[""]},v={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function b(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function g(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function w(e){var t=new RegExp("\\d+$").exec(e[0]);if(t&&void 0!==t[0]){var n=y[e[0][0]+"x"].slice("");return n[0]=n[0](t[0]),n[3]=n[3](t[0]),n}if(y[e[0]])return y[e[0]]}function k(e){if(!e.tokenizer){var t=[],n=[];for(var r in y)if(/\.*x$/.test(r)){var o=r[0]+"\\d+";-1===n.indexOf(o)&&n.push(o)}else-1===t.indexOf(r[0])&&t.push(r[0]);e.tokenizer="("+(n.length>0?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function O(e,t,n){if(!m)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var r=x(t.pos,n);if("yyyy"===r.targetMatch[0]&&t.pos-r.targetMatchIndex==2)return t.remove=t.pos+1,t}else if("02"==e.month&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=a.seekNext.call(this,t.pos+1),t;return!1}function _(e,t,n,r){var o,a,l="";for(k(n).lastIndex=0;o=k(n).exec(e);)if(void 0===t)if(a=w(o))l+="("+a[0]+")";else switch(o[0]){case"[":l+="(";break;case"]":l+=")?";break;default:l+=(0,i.default)(o[0])}else(a=w(o))?!0!==r&&a[3]?l+=a[3].call(t.date):a[2]?l+=t["raw"+a[2]]:l+=o[0]:l+=o[0];return l}function S(e,t,n){for(e=String(e),t=t||2;e.length<t;)e=n?e+"0":"0"+e;return e}function P(e,t,n){return"string"==typeof e?new p(e,t,n):e&&"object"===u(e)&&Object.prototype.hasOwnProperty.call(e,"date")?e:void 0}function j(e,t){return _(t.inputFormat,{date:e},t)}function x(e,t){var n,r,o=0,i=0;for(k(t).lastIndex=0;r=k(t).exec(t.inputFormat);){var a=new RegExp("\\d+$").exec(r[0]);if((o+=i=a?parseInt(a[0]):r[0].length)>=e+1){n=r,r=k(t).exec(t.inputFormat);break}}return{targetMatchIndex:o-i,nextMatch:r,targetMatch:n}}r.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,y.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=v[e.inputFormat]||e.inputFormat,e.displayFormat=v[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=v[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[[\]]/,""),e.regex=_(e.inputFormat,void 0,e),e.min=P(e.min,e.inputFormat,e),e.max=P(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(e,t,n,r,o,i,a,l){if(l)return!0;if(isNaN(n)&&e[t]!==n){var s=x(t,o);if(s.nextMatch&&s.nextMatch[0]===n&&s.targetMatch[0].length>1){var u=y[s.targetMatch[0]][0];if(new RegExp(u).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,r,o,i,a,s){var u,c;if(a)return!0;if(!1===r&&(((u=x(t+1,o)).targetMatch&&u.targetMatchIndex===t&&u.targetMatch[0].length>1&&void 0!==y[u.targetMatch[0]]||(u=x(t+2,o)).targetMatch&&u.targetMatchIndex===t+1&&u.targetMatch[0].length>1&&void 0!==y[u.targetMatch[0]])&&(c=y[u.targetMatch[0]][0]),void 0!==c&&(void 0!==i.validPositions[t+1]&&new RegExp(c).test(n+"0")?(e[t]=n,e[t+1]="0",r={pos:t+2,caret:t}):new RegExp(c).test("0"+n)&&(e[t]="0",e[t+1]=n,r={pos:t+2})),!1===r))return r;if(r.fuzzy&&(e=r.buffer,t=r.pos),(u=x(t,o)).targetMatch&&u.targetMatch[0]&&void 0!==y[u.targetMatch[0]]){var f=y[u.targetMatch[0]];c=f[0];var d=e.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);if(!1===new RegExp(c).test(d.join(""))&&2===u.targetMatch[0].length&&i.validPositions[u.targetMatchIndex]&&i.validPositions[u.targetMatchIndex+1]&&(i.validPositions[u.targetMatchIndex+1].input="0"),"year"==f[2])for(var p=l.getMaskTemplate.call(this,!1,1,void 0,!0),m=t+1;m<e.length;m++)e[m]=p[m],delete i.validPositions[m]}var v=r,b=P(e.join(""),o.inputFormat,o);return v&&!isNaN(b.date.getTime())&&(o.prefillYear&&(v=function(e,t,n){if(e.year!==e.rawyear){var r=h.toString(),o=e.rawyear.replace(/[^0-9]/g,""),i=r.slice(0,o.length),a=r.slice(o.length);if(2===o.length&&o===i){var l=new Date(h,e.month-1,e.day);e.day==l.getDate()&&(!n.max||n.max.date.getTime()>=l.getTime())&&(e.date.setFullYear(h),e.year=r,t.insert=[{pos:t.pos+1,c:a[0]},{pos:t.pos+2,c:a[1]}])}}return t}(b,v,o)),v=function(e,t,n,r,o){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){var i;for(e.reset(),k(n).lastIndex=0;i=k(n).exec(n.inputFormat);){var a;if((a=w(i))&&a[3]){for(var l=a[1],s=e[a[2]],u=n.min[a[2]],c=n.max?n.max[a[2]]:u,f=[],d=!1,p=0;p<u.length;p++)void 0!==r.validPositions[p+i.index]||d?(f[p]=s[p],d=d||s[p]>u[p]):(f[p]=u[p],"year"===a[2]&&s.length-1==p&&u!=c&&(f=(parseInt(f.join(""))+1).toString().split("")),"ampm"===a[2]&&u!=c&&n.min.date.getTime()>e.date.getTime()&&(f[p]=c[p]));l.call(e._date,f.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}(b,v=O.call(this,b,v,o),o,i)),void 0!==t&&v&&r.pos!==t?{buffer:_(o.inputFormat,b,o).split(""),refreshFromBuffer:{start:t,end:r.pos},pos:r.caret||r.pos}:v},onKeyDown:function(e,t,n,r){e.ctrlKey&&e.key===o.keys.ArrowRight&&(this.inputmask._valueSet(j(new Date,r)),d(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?_(n.outputFormat,P(e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,r){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=j(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(e,t,n){var r,o=(r=n(2394))&&r.__esModule?r:{default:r},i=n(8711),a=n(4713);o.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var l=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function s(e,t,n,r,o){return n-1>-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,l.test(e)}o.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:s},j:{validator:s},k:{validator:s},l:{validator:s}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t=e.separator,n=e.quantifier,r="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",o=r;if(t)for(var i=0;i<n;i++)o+="[".concat(t).concat(r,"]");return o},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9１-９A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(e,t,n,r,o,l,s){var u=a.getMaskTemplate.call(this,!0,i.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(u.join(""))}}})},207:function(e,t,n){var r=l(n(2394)),o=l(n(7184)),i=n(8711),a=n(2839);function l(e){return e&&e.__esModule?e:{default:e}}var s=r.default.dependencyLib;function u(e,t){for(var n="",o=0;o<e.length;o++)r.default.prototype.definitions[e.charAt(o)]||t.definitions[e.charAt(o)]||t.optionalmarker[0]===e.charAt(o)||t.optionalmarker[1]===e.charAt(o)||t.quantifiermarker[0]===e.charAt(o)||t.quantifiermarker[1]===e.charAt(o)||t.groupmarker[0]===e.charAt(o)||t.groupmarker[1]===e.charAt(o)||t.alternatormarker===e.charAt(o)?n+="\\"+e.charAt(o):n+=e.charAt(o);return n}function c(e,t,n,r){if(e.length>0&&t>0&&(!n.digitsOptional||r)){var o=e.indexOf(n.radixPoint),i=!1;n.negationSymbol.back===e[e.length-1]&&(i=!0,e.length--),-1===o&&(e.push(n.radixPoint),o=e.length-1);for(var a=1;a<=t;a++)isFinite(e[o+a])||(e[o+a]="0")}return i&&e.push(n.negationSymbol.back),e}function f(e,t){var n=0;for(var r in"+"===e&&(n=i.seekNext.call(this,t.validPositions.length-1)),t.tests)if((r=parseInt(r))>=n)for(var o=0,a=t.tests[r].length;o<a;o++)if((void 0===t.validPositions[r]||"-"===e)&&t.tests[r][o].match.def===e)return r+(void 0!==t.validPositions[r]&&"-"!==e?1:0);return n}function d(e,t){for(var n=-1,r=0,o=t.validPositions.length;r<o;r++){var i=t.validPositions[r];if(i&&i.match.def===e){n=r;break}}return n}function p(e,t,n,r,o){var i=t.buffer?t.buffer.indexOf(o.radixPoint):-1,a=(-1!==i||r&&o.jitMasking)&&new RegExp(o.definitions[9].validator).test(e);return o._radixDance&&-1!==i&&a&&null==t.validPositions[i]?{insert:{pos:i===n?i+1:i,c:o.radixPoint},pos:n}:a}r.default.extendAliases({numeric:{mask:function(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={},e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var r,i="[+]";if(i+=u(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),i+=e._mask(e)):i+="9{+}",void 0!==e.digits&&0!==e.digits){var a=e.digits.toString().split(",");isFinite(a[0])&&a[1]&&isFinite(a[1])?i+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(r=i+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):i+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return i+=u(e.suffix,e),i+="[-]",r&&(i=[r+u(e.suffix,e)+"[-]",i]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,o.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,o.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&e.substituteRadixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),i},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:p},1:{validator:p,definitionSymbol:"9"},9:{validator:"[0-9０-９٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(e,t,n,r,o){return o.allowMinus&&("-"===e||e===o.negationSymbol.front)}},"-":{validator:function(e,t,n,r,o){return o.allowMinus&&e===o.negationSymbol.back}}},preValidation:function(e,t,n,r,o,i,a,l){if(!1!==o.__financeInput&&n===o.radixPoint)return!1;var s=e.indexOf(o.radixPoint),u=t;if(t=function(e,t,n,r,o){return o._radixDance&&o.numericInput&&t!==o.negationSymbol.back&&e<=n&&(n>0||t==o.radixPoint)&&(void 0===r.validPositions[e-1]||r.validPositions[e-1].input!==o.negationSymbol.back)&&(e-=1),e}(t,n,s,i,o),"-"===n||n===o.negationSymbol.front){if(!0!==o.allowMinus)return!1;var c=!1,p=d("+",i),h=d("-",i);return-1!==p&&(c=[p,h]),!1!==c?{remove:c,caret:u-o.negationSymbol.back.length}:{insert:[{pos:f.call(this,"+",i),c:o.negationSymbol.front,fromIsValid:!0},{pos:f.call(this,"-",i),c:o.negationSymbol.back,fromIsValid:void 0}],caret:u+o.negationSymbol.back.length}}if(n===o.groupSeparator)return{caret:u};if(l)return!0;if(-1!==s&&!0===o._radixDance&&!1===r&&n===o.radixPoint&&void 0!==o.digits&&(isNaN(o.digits)||parseInt(o.digits)>0)&&s!==t)return{caret:o._radixDance&&t===s-1?s+1:s};if(!1===o.__financeInput)if(r){if(o.digitsOptional)return{rewritePosition:a.end};if(!o.digitsOptional){if(a.begin>s&&a.end<=s)return n===o.radixPoint?{insert:{pos:s+1,c:"0",fromIsValid:!0},rewritePosition:s}:{rewritePosition:s+1};if(a.begin<s)return{rewritePosition:a.begin-1}}}else if(!o.showMaskOnHover&&!o.showMaskOnFocus&&!o.digitsOptional&&o.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:s};return{rewritePosition:t}},postValidation:function(e,t,n,r,o,i,a){if(!1===r)return r;if(a)return!0;if(null!==o.min||null!==o.max){var l=o.onUnMask(e.slice().reverse().join(""),void 0,s.extend({},o,{unmaskAsNumber:!0}));if(null!==o.min&&l<o.min&&(l.toString().length>o.min.toString().length||l<0))return!1;if(null!==o.max&&l>o.max)return!!o.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:c(o.max.toString().replace(".",o.radixPoint).split(""),o.digits,o).reverse()}}return r},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var r=e.replace(n.prefix,"");return r=(r=r.replace(n.suffix,"")).replace(new RegExp((0,o.default)(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(r=r.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==r.indexOf(n.radixPoint)&&(r=r.replace(o.default.call(this,n.radixPoint),".")),r=(r=r.replace(new RegExp("^"+(0,o.default)(n.negationSymbol.front)),"-")).replace(new RegExp((0,o.default)(n.negationSymbol.back)+"$"),""),Number(r)):r},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+(0,o.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,o.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,o.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,o.default)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===n||(e=e.toString().replace(".",n));var r="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,i=e.split(n),a=i[0].replace(/[^\-0-9]/g,""),l=i.length>1?i[1].replace(/[^0-9]/g,""):"",s=i.length>1;e=a+(""!==l?n+l:l);var u=0;if(""!==n&&(u=t.digitsOptional?t.digits<l.length?t.digits:l.length:t.digits,""!==l||!t.digitsOptional)){var f=Math.pow(10,u||1);e=e.replace((0,o.default)(n),"."),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*f)/f).toFixed(u)),e=e.toString().replace(".",n)}if(0===t.digits&&-1!==e.indexOf(n)&&(e=e.substring(0,e.indexOf(n))),null!==t.min||null!==t.max){var d=e.toString().replace(n,".");null!==t.min&&d<t.min?e=t.min.toString().replace(".",n):null!==t.max&&d>t.max&&(e=t.max.toString().replace(".",n))}return r&&"-"!==e.charAt(0)&&(e="-"+e),c(e.toString().split(""),u,t,s).join("")},onBeforeWrite:function(e,t,n,r){function i(e,t){if(!1!==r.__financeInput||t){var n=e.indexOf(r.radixPoint);-1!==n&&e.splice(n,1)}if(""!==r.groupSeparator)for(;-1!==(n=e.indexOf(r.groupSeparator));)e.splice(n,1);return e}var a,l;if(r.stripLeadingZeroes&&(l=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,o.default)(t.negationSymbol.front)+"?":"")+(0,o.default)(t.prefix)+")(.*)("+(0,o.default)(t.suffix)+(""!=t.negationSymbol.back?(0,o.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),r=n?n[2]:"",i=!1;return r&&(r=r.split(t.radixPoint.charAt(0))[0],i=new RegExp("^[0"+t.groupSeparator+"]*").exec(r)),!(!i||!(i[0].length>1||i[0].length>0&&i[0].length<r.length))&&i}(t,r)))for(var u=t.join("").lastIndexOf(l[0].split("").reverse().join(""))-(l[0]==l.input?0:1),f=l[0]==l.input?1:0,d=l[0].length-f;d>0;d--)delete this.maskset.validPositions[u+d],delete t[u+d];if(e)switch(e.type){case"blur":case"checkval":if(null!==r.min){var p=r.onUnMask(t.slice().reverse().join(""),void 0,s.extend({},r,{unmaskAsNumber:!0}));if(null!==r.min&&p<r.min)return{refreshFromBuffer:!0,buffer:c(r.min.toString().replace(".",r.radixPoint).split(""),r.digits,r).reverse()}}if(t[t.length-1]===r.negationSymbol.front){var h=new RegExp("(^"+(""!=r.negationSymbol.front?(0,o.default)(r.negationSymbol.front)+"?":"")+(0,o.default)(r.prefix)+")(.*)("+(0,o.default)(r.suffix)+(""!=r.negationSymbol.back?(0,o.default)(r.negationSymbol.back)+"?":"")+"$)").exec(i(t.slice(),!0).reverse().join(""));0==(h?h[2]:"")&&(a={refreshFromBuffer:!0,buffer:[0]})}else""!==r.radixPoint&&t.indexOf(r.radixPoint)===r.suffix.length&&(a&&a.buffer?a.buffer.splice(0,1+r.suffix.length):(t.splice(0,1+r.suffix.length),a={refreshFromBuffer:!0,buffer:i(t)}));if(r.enforceDigitsOnBlur){var m=(a=a||{})&&a.buffer||t.slice().reverse();a.refreshFromBuffer=!0,a.buffer=c(m,r.digits,r,!0).reverse()}}return a},onKeyDown:function(e,t,n,r){var o,i=s(this);if(3!=e.location){var l,u=e.key;if((l=r.shortcuts&&r.shortcuts[u])&&l.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(l)),i.trigger("setvalue"),!1}if(e.ctrlKey)switch(e.key){case a.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(r.step)),i.trigger("setvalue"),!1;case a.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(r.step)),i.trigger("setvalue"),!1}if(!e.shiftKey&&(e.key===a.keys.Delete||e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===a.keys.Delete?n.begin-1:n.end]===r.negationSymbol.front)return o=t.slice().reverse(),""!==r.negationSymbol.front&&o.shift(),""!==r.negationSymbol.back&&o.pop(),i.trigger("setvalue",[o.join(""),n.begin]),!1;if(!0===r._radixDance){var f=t.indexOf(r.radixPoint);if(r.digitsOptional){if(0===f)return(o=t.slice().reverse()).pop(),i.trigger("setvalue",[o.join(""),n.begin>=o.length?o.length:n.begin]),!1}else if(-1!==f&&(n.begin<f||n.end<f||e.key===a.keys.Delete&&(n.begin===f||n.begin-1===f))){var d=void 0;return n.begin===n.end&&(e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI?n.begin++:e.key===a.keys.Delete&&n.begin-1===f&&(d=s.extend({},n),n.begin--,n.end--)),(o=t.slice().reverse()).splice(o.length-n.begin,n.begin-n.end+1),o=c(o,r.digits,r).join(""),d&&(n=d),i.trigger("setvalue",[o,n.begin>=o.length?f+1:n.begin]),!1}}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(8741))&&r.__esModule?r:{default:r}).default?window:{};t.default=o},7760:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(l.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var r=i.getBuffer.call(n).slice(),o=e.inputmask._valueGet();if(o!==t){var a=i.getLastValidPosition.call(n);-1===a&&o===i.getBufferTemplate.call(n).join("")?r=[]:-1!==a&&c.call(n,r),d(e,r)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=u,t.checkVal=f,t.clearOptionalTail=c,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,r=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&u(e,e.inputmask._valueGet(!0))}for(var o=[],a=r.validPositions,l=0,s=a.length;l<s;l++)a[l]&&a[l].match&&(1!=a[l].match.static||Array.isArray(r.metadata)&&!0!==a[l].generatedInput)&&o.push(a[l].input);var c=0===o.length?"":(t.isRTL?o.reverse():o).join("");if("function"==typeof n.onUnMask){var f=(t.isRTL?i.getBuffer.call(t).slice().reverse():i.getBuffer.call(t)).join("");c=n.onUnMask.call(t,f,c,n)}return c},t.writeBuffer=d;var r=n(2839),o=n(4713),i=n(8711),a=n(7215),l=n(9845),s=n(6030);function u(e,t){var n=e?e.inputmask:this,r=n.opts;e.inputmask.refreshValue=!1,"function"==typeof r.onBeforeMask&&(t=r.onBeforeMask.call(n,t,r)||t),f(e,!0,!1,t=(t||"").toString().split("")),n.undoValue=n._valueGet(!0),(r.clearMaskOnLostFocus||r.clearIncomplete)&&e.inputmask._valueGet()===i.getBufferTemplate.call(n).join("")&&-1===i.getLastValidPosition.call(n)&&e.inputmask._valueSet("")}function c(e){e.length=0;for(var t,n=o.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(t=n.shift());)e.push(t);return e}function f(e,t,n,r,l){var u=e?e.inputmask:this,c=u.maskset,f=u.opts,p=u.dependencyLib,h=r.slice(),m="",y=-1,v=void 0,b=f.skipOptionalPartCharacter;f.skipOptionalPartCharacter="",i.resetMaskSet.call(u),c.tests={},y=f.radixPoint?i.determineNewCaretPosition.call(u,{begin:0,end:0},!1,!1===f.__financeInput?"radixFocus":void 0).begin:0,c.p=y,u.caretPos={begin:y};var g=[],w=u.caretPos;if(h.forEach((function(e,t){if(void 0!==e){var r=new p.Event("_checkval");r.key=e,m+=e;var a=i.getLastValidPosition.call(u,void 0,!0);!function(e,t){for(var n=o.getMaskTemplate.call(u,!0,0).slice(e,i.seekNext.call(u,e,!1,!1)).join("").replace(/'/g,""),r=n.indexOf(t);r>0&&" "===n[r-1];)r--;var a=0===r&&!i.isMask.call(u,e)&&(o.getTest.call(u,e).match.nativeDef===t.charAt(0)||!0===o.getTest.call(u,e).match.static&&o.getTest.call(u,e).match.nativeDef==="'"+t.charAt(0)||" "===o.getTest.call(u,e).match.nativeDef&&(o.getTest.call(u,e+1).match.nativeDef===t.charAt(0)||!0===o.getTest.call(u,e+1).match.static&&o.getTest.call(u,e+1).match.nativeDef==="'"+t.charAt(0)));if(!a&&r>0&&!i.isMask.call(u,e,!1,!0)){var l=i.seekNext.call(u,e);u.caretPos.begin<l&&(u.caretPos={begin:l})}return a}(y,m)?(v=s.EventHandlers.keypressEvent.call(u,r,!0,!1,n,u.caretPos.begin))&&(y=u.caretPos.begin+1,m=""):v=s.EventHandlers.keypressEvent.call(u,r,!0,!1,n,a+1),v?(void 0!==v.pos&&c.validPositions[v.pos]&&!0===c.validPositions[v.pos].match.static&&void 0===c.validPositions[v.pos].alternation&&(g.push(v.pos),u.isRTL||(v.forwardPosition=v.pos+1)),d.call(u,void 0,i.getBuffer.call(u),v.forwardPosition,r,!1),u.caretPos={begin:v.forwardPosition,end:v.forwardPosition},w=u.caretPos):void 0===c.validPositions[t]&&h[t]===o.getPlaceholder.call(u,t)&&i.isMask.call(u,t,!0)?u.caretPos.begin++:u.caretPos=w}})),g.length>0){var k,O,_=i.seekNext.call(u,-1,void 0,!1);if(!a.isComplete.call(u,i.getBuffer.call(u))&&g.length<=_||a.isComplete.call(u,i.getBuffer.call(u))&&g.length>0&&g.length!==_&&0===g[0])for(var S=_;void 0!==(k=g.shift());){var P=new p.Event("_checkval");if((O=c.validPositions[k]).generatedInput=!0,P.key=O.input,(v=s.EventHandlers.keypressEvent.call(u,P,!0,!1,n,S))&&void 0!==v.pos&&v.pos!==k&&c.validPositions[v.pos]&&!0===c.validPositions[v.pos].match.static)g.push(v.pos);else if(!v)break;S++}}t&&d.call(u,e,i.getBuffer.call(u),v?v.forwardPosition:u.caretPos.begin,l||new p.Event("checkval"),l&&("input"===l.type&&u.undoValue!==i.getBuffer.call(u).join("")||"paste"===l.type)),f.skipOptionalPartCharacter=b}function d(e,t,n,o,l){var s=e?e.inputmask:this,u=s.opts,c=s.dependencyLib;if(o&&"function"==typeof u.onBeforeWrite){var f=u.onBeforeWrite.call(s,o,t,n,u);if(f){if(f.refreshFromBuffer){var d=f.refreshFromBuffer;a.refreshFromBuffer.call(s,!0===d?d:d.start,d.end,f.buffer||t),t=i.getBuffer.call(s,!0)}void 0!==n&&(n=void 0!==f.caret?f.caret:n)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===n||void 0!==o&&"blur"===o.type||i.caret.call(s,e,n,void 0,void 0,void 0!==o&&"keydown"===o.type&&(o.key===r.keys.Delete||o.key===r.keys.Backspace)),!0===l)){var p=c(e),h=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,p.trigger("input"),setTimeout((function(){h===i.getBufferTemplate.call(s).join("")?p.trigger("cleared"):!0===a.isComplete.call(s,t)&&p.trigger("complete")}),0)}}},2394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(157),o=y(n(4963)),i=y(n(9380)),a=n(2391),l=n(4713),s=n(8711),u=n(7215),c=n(7760),f=n(9716),d=y(n(7392)),p=y(n(3976)),h=y(n(8741));function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function y(e){return e&&e.__esModule?e:{default:e}}var v=i.default.document,b="_inputmask_opts";function g(e,t,n){if(h.default){if(!(this instanceof g))return new g(e,t,n);this.dependencyLib=o.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==n&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=o.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},w(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}}function w(e,t,n){var r=g.prototype.aliases[e];return r?(r.alias&&w(r.alias,void 0,n),o.default.extend(!0,n,r),o.default.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}g.prototype={dataAttribute:"data-inputmask",defaults:p.default,definitions:d.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:[].slice.call(e)).forEach((function(e,n){var l=o.default.extend(!0,{},t.opts);if(function(e,t,n,r){function a(t,o){var a=""===r?t:r+"-"+t;null!==(o=void 0!==o?o:e.getAttribute(a))&&("string"==typeof o&&(0===t.indexOf("on")?o=i.default[o]:"false"===o?o=!1:"true"===o&&(o=!0)),n[t]=o)}if(!0===t.importDataAttributes){var l,s,u,c,f=e.getAttribute(r);if(f&&""!==f&&(f=f.replace(/'/g,'"'),s=JSON.parse("{"+f+"}")),s)for(c in u=void 0,s)if("alias"===c.toLowerCase()){u=s[c];break}for(l in a("alias",u),n.alias&&w(n.alias,n,t),t){if(s)for(c in u=void 0,s)if(c.toLowerCase()===l.toLowerCase()){u=s[c];break}a(l,u)}}return o.default.extend(!0,t,n),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right"),("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0),Object.keys(n).length}(e,l,o.default.extend(!0,{},t.userOptions),t.dataAttribute)){var s=(0,a.generateMaskSet)(l,t.noMasksCache);void 0!==s&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new g(void 0,void 0,!0),e.inputmask.opts=l,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=o.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,o.default)(e),e.inputmask.maskset=s,o.default.data(e,b,t.userOptions),r.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===m(e)?(o.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");c.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,s.getBuffer.call(this),0,this.opts)}return c.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){o.default.data(this.el,b,null);var e=this.opts.autoUnmask?(0,c.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==s.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),f.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):v.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?s.getBufferTemplate.call(this).reverse():s.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),u.isComplete.call(this,s.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=l.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");c.checkVal.call(this,void 0,!0,!1,t)}else e=this.isRTL?s.getBuffer.call(this).slice().reverse().join(""):s.getBuffer.call(this).join("");for(var n=s.getBuffer.call(this),r=s.determineLastRequiredPosition.call(this),o=n.length-1;o>r&&!s.isMask.call(this,o);o--);return n.splice(r,o+1-r),u.isComplete.call(this,n)&&e===(this.isRTL?s.getBuffer.call(this).slice().reverse().join(""):s.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,a.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");c.checkVal.call(this,void 0,!0,!1,n);var r=this.isRTL?s.getBuffer.call(this).slice().reverse().join(""):s.getBuffer.call(this).join("");return t?{value:r,metadata:this.getmetadata()}:r},setValue:function(e){this.el&&(0,o.default)(this.el).trigger("setvalue",[e])},analyseMask:a.analyseMask},g.extendDefaults=function(e){o.default.extend(!0,g.prototype.defaults,e)},g.extendDefinitions=function(e){o.default.extend(!0,g.prototype.definitions,e)},g.extendAliases=function(e){o.default.extend(!0,g.prototype.aliases,e)},g.format=function(e,t,n){return g(t).format(e,n)},g.unmask=function(e,t){return g(t).unmaskedvalue(e)},g.isValid=function(e,t){return g(t).isValid(e)},g.remove=function(e){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},g.setValue=function(e,t){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,o.default)(e).trigger("setvalue",[t])}))},g.dependencyLib=o.default,i.default.Inputmask=g;var k=g;t.default=k},5296:function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=p(n(9380)),i=p(n(2394)),a=p(n(8741));function l(e){var t=c();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},s(e)}function u(e,t,n){return u=c()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o},u.apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e){return e&&e.__esModule?e:{default:e}}var h=o.default.document;if(a.default&&h&&h.head&&h.head.attachShadow&&o.default.customElements&&void 0===o.default.customElements.get("input-mask")){var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(r,e);var t,n=l(r);function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=(e=n.call(this)).getAttributeNames(),o=e.attachShadow({mode:"closed"}),a=h.createElement("input");for(var l in a.type="text",o.appendChild(a),t)Object.prototype.hasOwnProperty.call(t,l)&&a.setAttribute(t[l],e.getAttribute(t[l]));var s=new i.default;return s.dataAttribute="",s.mask(a),a.inputmask.shadowRoot=o,e}return t=r,Object.defineProperty(t,"prototype",{writable:!1}),t}(s(HTMLElement));o.default.customElements.define("input-mask",m)}},2839:function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.keyCode=void 0,t.toKey=function(e,t){return i[e]||(t?String.fromCharCode(e):String.fromCharCode(e).toLowerCase())},t.toKeyCode=function(e){return o[e]};var o={AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,BACKSPACE_SAFARI:127,CapsLock:20,Delete:46,End:35,Enter:13,Escape:27,Home:36,Insert:45,PageDown:34,PageUp:33,Space:32,Tab:9,c:67,x:88,z:90,Shift:16,Control:17,Alt:18,Pause:19,Meta_LEFT:91,Meta_RIGHT:92,ContextMenu:93,Process:229,Unidentified:229,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};t.keyCode=o;var i=Object.entries(o).reduce((function(e,t){var r=n(t,2),o=r[0],i=r[1];return e[i]=void 0===e[i]?o:e[i],e}),{}),a=Object.entries(o).reduce((function(e,t){var r=n(t,2),o=r[0];return r[1],e[o]="Space"===o?" ":o,e}),{});t.keys=a},2391:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.analyseMask=function(e,t,n){var r,a,l,s,u,c,f=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,d=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,p=!1,h=new o.default,m=[],y=[],v=!1;function b(e,r,o){o=void 0!==o?o:e.matches.length;var a=e.matches[o-1];if(t){if(0===r.indexOf("[")||p&&/\\d|\\s|\\w|\\p/i.test(r)||"."===r){var l=n.casing?"i":"";/^\\p\{.*}$/i.test(r)&&(l+="u"),e.matches.splice(o++,0,{fn:new RegExp(r,l),static:!1,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==r,casing:null,def:r,placeholder:void 0,nativeDef:r})}else p&&(r=r[r.length-1]),r.split("").forEach((function(t,r){a=e.matches[o-1],e.matches.splice(o++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||t)?new RegExp("["+(n.staticDefinitionSymbol||t)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==t&&!0!==a.static,casing:null,def:n.staticDefinitionSymbol||t,placeholder:void 0!==n.staticDefinitionSymbol?t:void 0,nativeDef:(p?"'":"")+t})}));p=!1}else{var s=n.definitions&&n.definitions[r]||n.usePrototypeDefinitions&&i.default.prototype.definitions[r];s&&!p?e.matches.splice(o++,0,{fn:s.validator?"string"==typeof s.validator?new RegExp(s.validator,n.casing?"i":""):new function(){this.test=s.validator}:new RegExp("."),static:s.static||!1,optionality:s.optional||!1,defOptionality:s.optional||!1,newBlockMarker:void 0===a||s.optional?"master":a.def!==(s.definitionSymbol||r),casing:s.casing,def:s.definitionSymbol||r,placeholder:s.placeholder,nativeDef:r,generated:s.generated}):(e.matches.splice(o++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||r)?new RegExp("["+(n.staticDefinitionSymbol||r)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==r&&!0!==a.static,casing:null,def:n.staticDefinitionSymbol||r,placeholder:void 0!==n.staticDefinitionSymbol?r:void 0,nativeDef:(p?"'":"")+r}),p=!1)}}function g(){if(m.length>0){if(b(s=m[m.length-1],a),s.isAlternator){u=m.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup&&(u.matches[e].isGroup=!1);m.length>0?(s=m[m.length-1]).matches.push(u):h.matches.push(u)}}else b(h,a)}function w(e){var t=new o.default(!0);return t.openGroup=!1,t.matches=e,t}function k(){if((l=m.pop()).openGroup=!1,void 0!==l)if(m.length>0){if((s=m[m.length-1]).matches.push(l),s.isAlternator){for(var e=(u=m.pop()).matches[0].matches?u.matches[0].matches.length:1,t=0;t<u.matches.length;t++)u.matches[t].isGroup=!1,u.matches[t].alternatorGroup=!1,null===n.keepStatic&&e<(u.matches[t].matches?u.matches[t].matches.length:1)&&(n.keepStatic=!0),e=u.matches[t].matches?u.matches[t].matches.length:1;m.length>0?(s=m[m.length-1]).matches.push(u):h.matches.push(u)}}else h.matches.push(l);else g()}function O(e){var t=e.pop();return t.isQuantifier&&(t=w([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);r=t?d.exec(e):f.exec(e);){if(a=r[0],t){switch(a.charAt(0)){case"?":a="{0,1}";break;case"+":case"*":a="{"+a+"}";break;case"|":if(0===m.length){var _=w(h.matches);_.openGroup=!0,m.push(_),h.matches=[],v=!0}}switch(a){case"\\d":a="[0-9]";break;case"\\p":a+=d.exec(e)[0],a+=d.exec(e)[0]}}if(p)g();else switch(a.charAt(0)){case"$":case"^":t||g();break;case n.escapeChar:p=!0,t&&g();break;case n.optionalmarker[1]:case n.groupmarker[1]:k();break;case n.optionalmarker[0]:m.push(new o.default(!1,!0));break;case n.groupmarker[0]:m.push(new o.default(!0));break;case n.quantifiermarker[0]:var S=new o.default(!1,!1,!0),P=(a=a.replace(/[{}?]/g,"")).split("|"),j=P[0].split(","),x=isNaN(j[0])?j[0]:parseInt(j[0]),E=1===j.length?x:isNaN(j[1])?j[1]:parseInt(j[1]),C=isNaN(P[1])?P[1]:parseInt(P[1]);"*"!==x&&"+"!==x||(x="*"===E?0:1),S.quantifier={min:x,max:E,jit:C};var A=m.length>0?m[m.length-1].matches:h.matches;(r=A.pop()).isGroup||(r=w([r])),A.push(r),A.push(S);break;case n.alternatormarker:if(m.length>0){var T=(s=m[m.length-1]).matches[s.matches.length-1];c=s.openGroup&&(void 0===T.matches||!1===T.isGroup&&!1===T.isAlternator)?m.pop():O(s.matches)}else c=O(h.matches);if(c.isAlternator)m.push(c);else if(c.alternatorGroup?(u=m.pop(),c.alternatorGroup=!1):u=new o.default(!1,!1,!1,!0),u.matches.push(c),m.push(u),c.openGroup){c.openGroup=!1;var M=new o.default(!0);M.alternatorGroup=!0,m.push(M)}break;default:g()}}for(v&&k();m.length>0;)l=m.pop(),h.matches.push(l);return h.matches.length>0&&(function e(r){r&&r.matches&&r.matches.forEach((function(o,i){var a=r.matches[i+1];(void 0===a||void 0===a.matches||!1===a.isQuantifier)&&o&&o.isGroup&&(o.isGroup=!1,t||(b(o,n.groupmarker[0],0),!0!==o.openGroup&&b(o,n.groupmarker[1]))),e(o)}))}(h),y.push(h)),(n.numericInput||n.isRTL)&&function e(t){for(var r in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,r)){var o=parseInt(r);if(t.matches[r].isQuantifier&&t.matches[o+1]&&t.matches[o+1].isGroup){var i=t.matches[r];t.matches.splice(r,1),t.matches.splice(o+1,0,i)}void 0!==t.matches[r].matches?t.matches[r]=e(t.matches[r]):t.matches[r]=((a=t.matches[r])===n.optionalmarker[0]?a=n.optionalmarker[1]:a===n.optionalmarker[1]?a=n.optionalmarker[0]:a===n.groupmarker[0]?a=n.groupmarker[1]:a===n.groupmarker[1]&&(a=n.groupmarker[0]),a)}var a;return t}(y[0]),y},t.generateMaskSet=function(e,t){var n;function o(e,t){var n=t.repeat,r=t.groupmarker,o=t.quantifiermarker,i=t.keepStatic;if(n>0||"*"===n||"+"===n){var s="*"===n?0:"+"===n?1:n;e=r[0]+e+r[1]+o[0]+s+","+n+o[1]}if(!0===i){var u=e.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));u&&u.forEach((function(t,n){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{for(i=(n=n.call(e)).next,0;!(s=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split("[")),o=r[0],i=r[1];i=i.replace("]",""),e=e.replace(new RegExp("".concat((0,a.default)(o),"\\[").concat((0,a.default)(i),"\\]")),o.charAt(0)===i.charAt(0)?"(".concat(o,"|").concat(o).concat(i,")"):"".concat(o,"[").concat(i,"]"))}))}return e}function s(e,n,a){var l,s,u=!1;return null!==e&&""!==e||((u=null!==a.regex)?e=(e=a.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(u=!0,e=".*")),1===e.length&&!1===a.greedy&&0!==a.repeat&&(a.placeholder=""),e=o(e,a),s=u?"regex_"+a.regex:a.numericInput?e.split("").reverse().join(""):e,null!==a.keepStatic&&(s="ks_"+a.keepStatic+s),void 0===i.default.prototype.masksCache[s]||!0===t?(l={mask:e,maskToken:i.default.prototype.analyseMask(e,u,a),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},!0!==t&&(i.default.prototype.masksCache[s]=l,l=r.default.extend(!0,{},i.default.prototype.masksCache[s]))):l=r.default.extend(!0,{},i.default.prototype.masksCache[s]),l}if("function"==typeof e.mask&&(e.mask=e.mask(e)),Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var u=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){u.length>1&&(u+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?u+=t.mask:u+=t})),s(u+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return n=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?s(e.mask.mask,e.mask,e):s(e.mask,e.mask,e),null===e.keepStatic&&(e.keepStatic=!1),n};var r=s(n(4963)),o=s(n(9695)),i=s(n(2394)),a=s(n(7184));function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e){return e&&e.__esModule?e:{default:e}}},157:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=function(){var e=this,t=this.opts,n=this.el,c=this.dependencyLib;a.EventRuler.off(n);var f=function(t,n){"textarea"!==t.tagName.toLowerCase()&&n.ignorables.push(r.keys.Enter);var l=t.getAttribute("type"),s="input"===t.tagName.toLowerCase()&&n.supportsInputType.includes(l)||t.isContentEditable||"textarea"===t.tagName.toLowerCase();if(!s)if("input"===t.tagName.toLowerCase()){var u=document.createElement("input");u.setAttribute("type",l),s="text"===u.type,u=null}else s="partial";return!1!==s?function(t){var r,l;function s(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==o.getLastValidPosition.call(e)||!0!==n.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&n.clearMaskOnLostFocus?(e.isRTL?i.clearOptionalTail.call(e,o.getBuffer.call(e).slice()).reverse():i.clearOptionalTail.call(e,o.getBuffer.call(e).slice())).join(""):r.call(this):"":r.call(this)}function u(e){l.call(this,e),this.inputmask&&(0,i.applyInputValue)(this,e)}if(!t.inputmask.__valueGet){if(!0!==n.noValuePatching){if(Object.getOwnPropertyDescriptor){var f=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0;f&&f.get&&f.set?(r=f.get,l=f.set,Object.defineProperty(t,"value",{get:s,set:u,configurable:!0})):"input"!==t.tagName.toLowerCase()&&(r=function(){return this.textContent},l=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:s,set:u,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__("value")&&(r=t.__lookupGetter__("value"),l=t.__lookupSetter__("value"),t.__defineGetter__("value",s),t.__defineSetter__("value",u));t.inputmask.__valueGet=r,t.inputmask.__valueSet=l}t.inputmask._valueGet=function(t){return e.isRTL&&!0!==t?r.call(this.el).split("").reverse().join(""):r.call(this.el)},t.inputmask._valueSet=function(t,n){l.call(this.el,null==t?"":!0!==n&&e.isRTL?t.split("").reverse().join(""):t)},void 0===r&&(r=function(){return this.value},l=function(e){this.value=e},function(t){if(c.valHooks&&(void 0===c.valHooks[t]||!0!==c.valHooks[t].inputmaskpatch)){var r=c.valHooks[t]&&c.valHooks[t].get?c.valHooks[t].get:function(e){return e.value},a=c.valHooks[t]&&c.valHooks[t].set?c.valHooks[t].set:function(e,t){return e.value=t,e};c.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var i=r(t);return-1!==o.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)||!0!==n.nullable?i:""}return r(t)},set:function(e,t){var n=a(e,t);return e.inputmask&&(0,i.applyInputValue)(e,t),n},inputmaskpatch:!0}}}(t.type),function(e){a.EventRuler.on(e,"mouseenter",(function(){var e=this,t=e.inputmask._valueGet(!0);t!=(e.inputmask.isRTL?o.getBuffer.call(e.inputmask).slice().reverse():o.getBuffer.call(e.inputmask)).join("")&&(0,i.applyInputValue)(e,t)}))}(t))}}(t):t.inputmask=void 0,s}(n,t);if(!1!==f){e.originalPlaceholder=n.placeholder,e.maxLength=void 0!==n?n.maxLength:void 0,-1===e.maxLength&&(e.maxLength=void 0),"inputMode"in n&&null===n.getAttribute("inputmode")&&(n.inputMode=t.inputmode,n.setAttribute("inputmode",t.inputmode)),!0===f&&(t.showMaskOnFocus=t.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(n.autocomplete),l.iphone&&(t.insertModeVisual=!1,n.setAttribute("autocorrect","off")),a.EventRuler.on(n,"submit",u.EventHandlers.submitEvent),a.EventRuler.on(n,"reset",u.EventHandlers.resetEvent),a.EventRuler.on(n,"blur",u.EventHandlers.blurEvent),a.EventRuler.on(n,"focus",u.EventHandlers.focusEvent),a.EventRuler.on(n,"invalid",u.EventHandlers.invalidEvent),a.EventRuler.on(n,"click",u.EventHandlers.clickEvent),a.EventRuler.on(n,"mouseleave",u.EventHandlers.mouseleaveEvent),a.EventRuler.on(n,"mouseenter",u.EventHandlers.mouseenterEvent),a.EventRuler.on(n,"paste",u.EventHandlers.pasteEvent),a.EventRuler.on(n,"cut",u.EventHandlers.cutEvent),a.EventRuler.on(n,"complete",t.oncomplete),a.EventRuler.on(n,"incomplete",t.onincomplete),a.EventRuler.on(n,"cleared",t.oncleared),!0!==t.inputEventOnly&&a.EventRuler.on(n,"keydown",u.EventHandlers.keyEvent),(l.mobile||t.inputEventOnly)&&n.removeAttribute("maxLength"),a.EventRuler.on(n,"input",u.EventHandlers.inputFallBackEvent)),a.EventRuler.on(n,"setvalue",u.EventHandlers.setValueEvent),o.getBufferTemplate.call(e).join(""),e.undoValue=e._valueGet(!0);var d=(n.inputmask.shadowRoot||n.ownerDocument).activeElement;if(""!==n.inputmask._valueGet(!0)||!1===t.clearMaskOnLostFocus||d===n){(0,i.applyInputValue)(n,n.inputmask._valueGet(!0),t);var p=o.getBuffer.call(e).slice();!1===s.isComplete.call(e,p)&&t.clearIncomplete&&o.resetMaskSet.call(e),t.clearMaskOnLostFocus&&d!==n&&(-1===o.getLastValidPosition.call(e)?p=[]:i.clearOptionalTail.call(e,p)),(!1===t.clearMaskOnLostFocus||t.showMaskOnFocus&&d===n||""!==n.inputmask._valueGet(!0))&&(0,i.writeBuffer)(n,p),d===n&&o.caret.call(e,n,o.seekNext.call(e,o.getLastValidPosition.call(e)))}}};var r=n(2839),o=n(8711),i=n(7760),a=n(9716),l=n(9845),s=n(7215),u=n(6030)},9695:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=r||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;for(var o=0|t,i=Math.max(o>=0?o:r-Math.abs(o),0);i<r;){if(n[i]===e)return!0;i++}return!1}})},9302:function(){var e=Function.bind.call(Function.call,Array.prototype.reduce),t=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),n=Function.bind.call(Function.call,Array.prototype.concat),r=Object.keys;Object.entries||(Object.entries=function(o){return e(r(o),(function(e,r){return n(e,"string"==typeof r&&t(o,r)?[[r,o[r]]]:[])}),[])})},7149:function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===e("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},8711:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,n,r,o){var i,a=this,l=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):window.getSelection?(i=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&i.commonAncestorContainer!==e||(t=i.startOffset,n=i.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(i=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+i.text.length),{begin:r?t:u.call(a,t),end:r?n:u.call(a,n)};if(Array.isArray(t)&&(n=a.isRTL?t[0]:t[1],t=a.isRTL?t[1]:t[0]),void 0!==t.begin&&(n=a.isRTL?t.begin:t.end,t=a.isRTL?t.end:t.begin),"number"==typeof t){t=r?t:u.call(a,t),n="number"==typeof(n=r?n:u.call(a,n))?n:t;var s=parseInt(((e.ownerDocument.defaultView||window).getComputedStyle?(e.ownerDocument.defaultView||window).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=s>e.scrollWidth?s:0,e.inputmask.caretPos={begin:t,end:n},l.insertModeVisual&&!1===l.insertMode&&t===n&&(o||n++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement)if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(window.getSelection){if(i=document.createRange(),void 0===e.firstChild||null===e.firstChild){var c=document.createTextNode("");e.appendChild(c)}i.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),i.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),i.collapse(!0);var f=window.getSelection();f.removeAllRanges(),f.addRange(i)}else e.createTextRange&&((i=e.createTextRange()).collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select())}},t.determineLastRequiredPosition=function(e){var t,n,i=this,l=i.maskset,s=i.dependencyLib,u=r.getMaskTemplate.call(i,!0,a.call(i),!0,!0),c=u.length,f=a.call(i),d={},p=l.validPositions[f],h=void 0!==p?p.locator.slice():void 0;for(t=f+1;t<u.length;t++)h=(n=r.getTestTemplate.call(i,t,h,t-1)).locator.slice(),d[t]=s.extend(!0,{},n);var m=p&&void 0!==p.alternation?p.locator[p.alternation]:void 0;for(t=c-1;t>f&&((n=d[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||m&&(m!==d[t].locator[p.alternation]&&1!=n.match.static||!0===n.match.static&&n.locator[p.alternation]&&o.checkAlternationMatch.call(i,n.locator[p.alternation].toString().split(","),m.toString().split(","))&&""!==r.getTests.call(i,t)[0].def))&&u[t]===r.getPlaceholder.call(i,t,n.match);t--)c--;return e?{l:c,def:d[c]?d[c].match:void 0}:c},t.determineNewCaretPosition=function(e,t,n){var o=this,u=o.maskset,c=o.opts;if(t&&(o.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n=n||c.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:i.call(o).length};break;case"ignore":e.end=e.begin=s.call(o,a.call(o));break;case"radixFocus":if(o.clicked>1&&0==u.validPositions.length)break;if(function(e){if(""!==c.radixPoint&&0!==c.digits){var t=u.validPositions;if(void 0===t[e]||t[e].input===r.getPlaceholder.call(o,e)){if(e<s.call(o,-1))return!0;var n=i.call(o).indexOf(c.radixPoint);if(-1!==n){for(var a=0,l=t.length;a<l;a++)if(t[a]&&n<a&&t[a].input!==r.getPlaceholder.call(o,a))return!1;return!0}}}return!1}(e.begin)){var f=i.call(o).join("").indexOf(c.radixPoint);e.end=e.begin=c.numericInput?s.call(o,f):f;break}default:var d=e.begin,p=a.call(o,d,!0),h=s.call(o,-1!==p||l.call(o,0)?p:-1);if(d<=h)e.end=e.begin=l.call(o,d,!1,!0)?d:s.call(o,d);else{var m=u.validPositions[p],y=r.getTestTemplate.call(o,h,m?m.match.locator:void 0,m),v=r.getPlaceholder.call(o,h,y.match);if(""!==v&&i.call(o)[h]!==v&&!0!==y.match.optionalQuantifier&&!0!==y.match.newBlockMarker||!l.call(o,h,c.keepStatic,!0)&&y.match.def===v){var b=s.call(o,h);(d>=b||d===h)&&(h=b)}e.end=e.begin=h}}return e}},t.getBuffer=i,t.getBufferTemplate=function(){var e=this.maskset;return void 0===e._buffer&&(e._buffer=r.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice())),e._buffer},t.getLastValidPosition=a,t.isMask=l,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions=[],t.p=0)},t.seekNext=s,t.seekPrevious=function(e,t){var n=this,o=e-1;if(e<=0)return 0;for(;o>0&&(!0===t&&(!0!==r.getTest.call(n,o).match.newBlockMarker||!l.call(n,o,void 0,!0))||!0!==t&&!l.call(n,o,void 0,!0));)o--;return o},t.translatePosition=u;var r=n(4713),o=n(7215);function i(e){var t=this,n=t.maskset;return void 0!==n.buffer&&!0!==e||(n.buffer=r.getMaskTemplate.call(t,!0,a.call(t),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function a(e,t,n){var r=this.maskset,o=-1,i=-1,a=n||r.validPositions;void 0===e&&(e=-1);for(var l=0,s=a.length;l<s;l++)a[l]&&(t||!0!==a[l].generatedInput)&&(l<=e&&(o=l),l>=e&&(i=l));return-1===o||o==e?i:-1==i||e-o<i-e?o:i}function l(e,t,n){var o=this,i=this.maskset,a=r.getTestTemplate.call(o,e).match;if(""===a.def&&(a=r.getTest.call(o,e).match),!0!==a.static)return a.fn;if(!0===n&&void 0!==i.validPositions[e]&&!0!==i.validPositions[e].generatedInput)return!0;if(!0!==t&&e>-1){if(n){var l=r.getTests.call(o,e);return l.length>1+(""===l[l.length-1].match.def?1:0)}var s=r.determineTestTemplate.call(o,e,r.getTests.call(o,e)),u=r.getPlaceholder.call(o,e,s.match);return s.match.def!==u}return!1}function s(e,t,n){var o=this;void 0===n&&(n=!0);for(var i=e+1;""!==r.getTest.call(o,i).match.def&&(!0===t&&(!0!==r.getTest.call(o,i).match.newBlockMarker||!l.call(o,i,void 0,!0))||!0!==t&&!l.call(o,i,void 0,n));)i++;return i}function u(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=this._valueGet().length-e)<0&&(e=0),e}},4713:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=u,t.getDecisionTaker=a,t.getMaskTemplate=function(e,t,n,r,o){var i=this,a=this.opts,c=this.maskset,f=a.greedy;o&&a.greedy&&(a.greedy=!1,i.maskset.tests={}),t=t||0;var p,h,m,y,v=[],b=0;do{if(!0===e&&c.validPositions[b])h=(m=o&&c.validPositions[b].match.optionality&&void 0===c.validPositions[b+1]&&(!0===c.validPositions[b].generatedInput||c.validPositions[b].input==a.skipOptionalPartCharacter&&b>0)?u.call(i,b,d.call(i,b,p,b-1)):c.validPositions[b]).match,p=m.locator.slice(),v.push(!0===n?m.input:!1===n?h.nativeDef:l.call(i,b,h));else{h=(m=s.call(i,b,p,b-1)).match,p=m.locator.slice();var g=!0!==r&&(!1!==a.jitMasking?a.jitMasking:h.jit);(y=(y&&h.static&&h.def!==a.groupSeparator&&null===h.fn||c.validPositions[b-1]&&h.static&&h.def!==a.groupSeparator&&null===h.fn)&&c.tests[b])||!1===g||void 0===g||"number"==typeof g&&isFinite(g)&&g>b?v.push(!1===n?h.nativeDef:l.call(i,v.length,h)):y=!1}b++}while(!0!==h.static||""!==h.def||t>b);return""===v[v.length-1]&&v.pop(),!1===n&&void 0!==c.maskLength||(c.maskLength=b-1),a.greedy=f,v},t.getPlaceholder=l,t.getTest=c,t.getTestTemplate=s,t.getTests=d,t.isSubsetOf=f;var r,o=(r=n(2394))&&r.__esModule?r:{default:r};function i(e,t){var n=(null!=e.alternation?e.mloc[a(e)]:e.locator).join("");if(""!==n)for(;n.length<t;)n+="0";return n}function a(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function l(e,t,n){var r=this.opts,o=this.maskset;if(void 0!==(t=t||c.call(this,e).match).placeholder||!0===n)return"function"==typeof t.placeholder?t.placeholder(r):t.placeholder;if(!0===t.static){if(e>-1&&void 0===o.validPositions[e]){var i,a=d.call(this,e),l=[];if(a.length>1+(""===a[a.length-1].match.def?1:0))for(var s=0;s<a.length;s++)if(""!==a[s].match.def&&!0!==a[s].match.optionality&&!0!==a[s].match.optionalQuantifier&&(!0===a[s].match.static||void 0===i||!1!==a[s].match.fn.test(i.match.def,o,e,!0,r))&&(l.push(a[s]),!0===a[s].match.static&&(i=a[s]),l.length>1&&/[0-9a-bA-Z]/.test(l[0].match.def)))return r.placeholder.charAt(e%r.placeholder.length)}return t.def}return r.placeholder.charAt(e%r.placeholder.length)}function s(e,t,n){return this.maskset.validPositions[e]||u.call(this,e,d.call(this,e,t?t.slice():t,n))}function u(e,t){var n=this.opts,r=0,o=function(e,t){var n=0,r=!1;return t.forEach((function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(r=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))})),n&&(0==e||1==t.length?n=0:r||(n=0)),n}(e,t);e=e>0?e-1:0;var a,l,s,u=i(c.call(this,e));n.greedy&&t.length>1&&""===t[t.length-1].match.def&&(r=1);for(var f=0;f<t.length-r;f++){var d=t[f];a=i(d,u.length);var p=Math.abs(a-u);(void 0===l||""!==a&&p<l||s&&!n.greedy&&s.match.optionality&&s.match.optionality-o>0&&"master"===s.match.newBlockMarker&&(!d.match.optionality||d.match.optionality-o<1||!d.match.newBlockMarker)||s&&!n.greedy&&s.match.optionalQuantifier&&!d.match.optionalQuantifier)&&(l=p,s=d)}return s}function c(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||d.call(this,e))[0]}function f(e,t,n){function r(e){for(var t,n=[],r=-1,o=0,i=e.length;o<i;o++)if("-"===e.charAt(o))for(t=e.charCodeAt(o+1);++r<t;)n.push(String.fromCharCode(r));else r=e.charCodeAt(o),n.push(e.charAt(o));return n.join("")}return e.match.def===t.match.nativeDef||!(!(n.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)||!0===e.match.static||!0===t.match.static)&&-1!==r(t.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(r(e.match.fn.toString().replace(/[[\]/]/g,"")))}function d(e,t,n){var r,i,a=this,l=this.dependencyLib,s=this.maskset,c=this.opts,d=this.el,p=s.maskToken,h=t?n:0,m=t?t.slice():[0],y=[],v=!1,b=t?t.join(""):"";function g(t,n,i,l){function u(i,l,p){function m(e,t){var n=0===t.matches.indexOf(e);return n||t.matches.every((function(r,o){return!0===r.isQuantifier?n=m(e,t.matches[o-1]):Object.prototype.hasOwnProperty.call(r,"matches")&&(n=m(e,r)),!n})),n}function k(e,t,n){var r,o;if((s.tests[e]||s.validPositions[e])&&(s.tests[e]||[s.validPositions[e]]).every((function(e,i){if(e.mloc[t])return r=e,!1;var a=void 0!==n?n:e.alternation,l=void 0!==e.locator[a]?e.locator[a].toString().indexOf(t):-1;return(void 0===o||l<o)&&-1!==l&&(r=e,o=l),!0})),r){var i=r.locator[r.alternation];return(r.mloc[t]||r.mloc[i]||r.locator).slice((void 0!==n?n:r.alternation)+1)}return void 0!==n?k(e,t):void 0}function O(e,t){var n=e.alternation,r=void 0===t||n===t.alternation&&-1===e.locator[n].toString().indexOf(t.locator[n]);if(!r&&n>t.alternation)for(var o=t.alternation;o<n;o++)if(e.locator[o]!==t.locator[o]){n=o,r=!0;break}if(r){e.mloc=e.mloc||{};var i=e.locator[n];if(void 0!==i){if("string"==typeof i&&(i=i.split(",")[0]),void 0===e.mloc[i]&&(e.mloc[i]=e.locator.slice()),void 0!==t){for(var a in t.mloc)"string"==typeof a&&(a=a.split(",")[0]),void 0===e.mloc[a]&&(e.mloc[a]=t.mloc[a]);e.locator[n]=Object.keys(e.mloc).join(",")}return!0}e.alternation=void 0}return!1}function _(e,t){if(e.locator.length!==t.locator.length)return!1;for(var n=e.alternation+1;n<e.locator.length;n++)if(e.locator[n]!==t.locator[n])return!1;return!0}if(h>e+c._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+s.mask;if(h===e&&void 0===i.matches){if(y.push({match:i,locator:l.reverse(),cd:b,mloc:{}}),!i.optionality||void 0!==p||!(c.definitions&&c.definitions[i.nativeDef]&&c.definitions[i.nativeDef].optional||o.default.prototype.definitions[i.nativeDef]&&o.default.prototype.definitions[i.nativeDef].optional))return!0;v=!0,h=e}else if(void 0!==i.matches){if(i.isGroup&&p!==i)return function(){if(i=u(t.matches[t.matches.indexOf(i)+1],l,p))return!0}();if(i.isOptional)return function(){var t=i,o=y.length;if(i=g(i,n,l,p),y.length>0){if(y.forEach((function(e,t){t>=o&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),r=y[y.length-1].match,void 0!==p||!m(r,t))return i;v=!0,h=e}}();if(i.isAlternator)return function(){a.hasAlternator=!0;var r,o,m,b=i,g=[],w=y.slice(),S=l.length,P=!1,j=n.length>0?n.shift():-1;if(-1===j||"string"==typeof j){var x,E=h,C=n.slice(),A=[];if("string"==typeof j)A=j.split(",");else for(x=0;x<b.matches.length;x++)A.push(x.toString());if(void 0!==s.excludes[e]){for(var T=A.slice(),M=0,R=s.excludes[e].length;M<R;M++){var D=s.excludes[e][M].toString().split(":");l.length==D[1]&&A.splice(A.indexOf(D[0]),1)}0===A.length&&(delete s.excludes[e],A=T)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&E>=c.keepStatic)&&(A=A.slice(0,1));for(var I=0;I<A.length;I++){x=parseInt(A[I]),y=[],n="string"==typeof j&&k(h,x,S)||C.slice();var L=b.matches[x];if(L&&u(L,[x].concat(l),p))i=!0;else if(0===I&&(P=!0),L&&L.matches&&L.matches.length>b.matches[0].matches.length)break;r=y.slice(),h=E,y=[];for(var V=0;V<r.length;V++){var N=r[V],F=!1;N.match.jit=N.match.jit||P,N.alternation=N.alternation||S,O(N);for(var B=0;B<g.length;B++){var U=g[B];if("string"!=typeof j||void 0!==N.alternation&&A.includes(N.locator[N.alternation].toString())){if(N.match.nativeDef===U.match.nativeDef){F=!0,O(U,N);break}if(f(N,U,c)){O(N,U)&&(F=!0,g.splice(g.indexOf(U),0,N));break}if(f(U,N,c)){O(U,N);break}if(m=U,!0===(o=N).match.static&&!0!==m.match.static&&m.match.fn.test(o.match.def,s,e,!1,c,!1)){_(N,U)||void 0!==d.inputmask.userOptions.keepStatic?O(N,U)&&(F=!0,g.splice(g.indexOf(U),0,N)):c.keepStatic=!0;break}}}F||g.push(N)}}y=w.concat(g),h=e,v=y.length>0,i=g.length>0,n=C.slice()}else i=u(b.matches[j]||t.matches[j],[j].concat(l),p);if(i)return!0}();if(i.isQuantifier&&p!==t.matches[t.matches.indexOf(i)-1])return function(){for(var o=i,a=!1,f=n.length>0?n.shift():0;f<(isNaN(o.quantifier.max)?f+1:o.quantifier.max)&&h<=e;f++){var d=t.matches[t.matches.indexOf(o)-1];if(i=u(d,[f].concat(l),d)){if(y.forEach((function(t,n){(r=w(d,t.match)?t.match:y[y.length-1].match).optionalQuantifier=f>=o.quantifier.min,r.jit=(f+1)*(d.matches.indexOf(r)+1)>o.quantifier.jit,r.optionalQuantifier&&m(r,d)&&(v=!0,h=e,c.greedy&&null==s.validPositions[e-1]&&f>o.quantifier.min&&-1!=["*","+"].indexOf(o.quantifier.max)&&(y.pop(),b=void 0),a=!0,i=!1),!a&&r.jit&&(s.jitOffset[e]=d.matches.length-d.matches.indexOf(r))})),a)break;return!0}}}();if(i=g(i,n,l,p))return!0}else h++}for(var p=n.length>0?n.shift():0;p<t.matches.length;p++)if(!0!==t.matches[p].isQuantifier){var m=u(t.matches[p],[p].concat(i),l);if(m&&h===e)return m;if(h>e)break}}function w(e,t){var n=-1!=e.matches.indexOf(t);return n||e.matches.forEach((function(e,r){void 0===e.matches||n||(n=w(e,t))})),n}if(e>-1){if(void 0===t){for(var k,O=e-1;void 0===(k=s.validPositions[O]||s.tests[O])&&O>-1;)O--;void 0!==k&&O>-1&&(m=function(e,t){var n,r=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===c.keepStatic?0===(r=u.call(a,e,t.slice()).locator.slice()).length&&(r=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===r.length?(n=e.alternation,r=e.locator.slice()):e.locator[n]&&-1===r[n].toString().indexOf(e.locator[n])&&(r[n]+=","+e.locator[n]))}))),r}(O,k),b=m.join(""),h=O)}if(s.tests[e]&&s.tests[e][0].cd===b)return s.tests[e];for(var _=m.shift();_<p.length&&!(g(p[_],m,[_])&&h===e||h>e);_++);}return(0===y.length||v)&&y.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:b}),void 0!==t&&s.tests[e]?i=l.extend(!0,[],y):(s.tests[e]=l.extend(!0,[],y),i=s.tests[e]),y.forEach((function(e){e.match.optionality=e.match.defOptionality||!1})),i}},7215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=l,t.checkAlternationMatch=function(e,t,n){for(var r,o=this.opts.greedy?t:t.slice(0,1),i=!1,a=void 0!==n?n.split(","):[],l=0;l<a.length;l++)-1!==(r=e.indexOf(a[l]))&&e.splice(r,1);for(var s=0;s<e.length;s++)if(o.includes(e[s])){i=!0;break}return i},t.handleRemove=function(e,t,n,a,s){var u=this,c=this.maskset,f=this.opts;if((f.numericInput||u.isRTL)&&(t===o.keys.Backspace?t=o.keys.Delete:t===o.keys.Delete&&(t=o.keys.Backspace),u.isRTL)){var d=n.end;n.end=n.begin,n.begin=d}var p,h=i.getLastValidPosition.call(u,void 0,!0);if(n.end>=i.getBuffer.call(u).length&&h>=n.end&&(n.end=h+1),t===o.keys.Backspace?n.end-n.begin<1&&(n.begin=i.seekPrevious.call(u,n.begin)):t===o.keys.Delete&&n.begin===n.end&&(n.end=i.isMask.call(u,n.end,!0,!0)?n.end+1:i.seekNext.call(u,n.end)+1),!1!==(p=m.call(u,n))){if(!0!==a&&!1!==f.keepStatic||null!==f.regex&&-1!==r.getTest.call(u,n.begin).match.def.indexOf("|")){var y=l.call(u,!0);if(y){var v=void 0!==y.caret?y.caret:y.pos?i.seekNext.call(u,y.pos.begin?y.pos.begin:y.pos):i.getLastValidPosition.call(u,-1,!0);(t!==o.keys.Delete||n.begin>v)&&n.begin}}!0!==a&&(c.p=t===o.keys.Delete?n.begin+p:n.begin,c.p=i.determineNewCaretPosition.call(u,{begin:c.p,end:c.p},!1,!1===f.insertMode&&t===o.keys.Backspace?"none":void 0).begin)}},t.isComplete=u,t.isSelection=c,t.isValid=f,t.refreshFromBuffer=p,t.revalidateMask=m;var r=n(4713),o=n(2839),i=n(8711),a=n(6030);function l(e,t,n,o,a,s){var u,c,d,p,h,m,y,v,b,g,w,k=this,O=this.dependencyLib,_=this.opts,S=k.maskset,P=O.extend(!0,[],S.validPositions),j=O.extend(!0,{},S.tests),x=!1,E=!1,C=void 0!==a?a:i.getLastValidPosition.call(k);if(s&&(g=s.begin,w=s.end,s.begin>s.end&&(g=s.end,w=s.begin)),-1===C&&void 0===a)u=0,c=(p=r.getTest.call(k,u)).alternation;else for(;C>=0;C--)if((d=S.validPositions[C])&&void 0!==d.alternation){if(C<=(e||0)&&p&&p.locator[d.alternation]!==d.locator[d.alternation])break;u=C,c=S.validPositions[u].alternation,p=d}if(void 0!==c){y=parseInt(u),S.excludes[y]=S.excludes[y]||[],!0!==e&&S.excludes[y].push((0,r.getDecisionTaker)(p)+":"+p.alternation);var A=[],T=-1;for(h=y;h<i.getLastValidPosition.call(k,void 0,!0)+1;h++)-1===T&&e<=h&&void 0!==t&&(A.push(t),T=A.length-1),(m=S.validPositions[h])&&!0!==m.generatedInput&&(void 0===s||h<g||h>=w)&&A.push(m.input),delete S.validPositions[h];for(-1===T&&void 0!==t&&(A.push(t),T=A.length-1);void 0!==S.excludes[y]&&S.excludes[y].length<10;){for(S.tests={},i.resetMaskSet.call(k,!0),x=!0,h=0;h<A.length&&(v=x.caret||i.getLastValidPosition.call(k,void 0,!0)+1,b=A[h],x=f.call(k,v,b,!1,o,!0));h++)h===T&&(E=x),1==e&&x&&(E={caretPos:h});if(x)break;if(i.resetMaskSet.call(k),p=r.getTest.call(k,y),S.validPositions=O.extend(!0,[],P),S.tests=O.extend(!0,{},j),!S.excludes[y]){E=l.call(k,e,t,n,o,y-1,s);break}var M=(0,r.getDecisionTaker)(p);if(-1!==S.excludes[y].indexOf(M+":"+p.alternation)){E=l.call(k,e,t,n,o,y-1,s);break}for(S.excludes[y].push(M+":"+p.alternation),h=y;h<i.getLastValidPosition.call(k,void 0,!0)+1;h++)delete S.validPositions[h]}}return E&&!1===_.keepStatic||delete S.excludes[y],E}function s(e,t,n){var r=this.opts,i=this.maskset;switch(r.casing||t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var a=i.validPositions[n-1];e=0===n||a&&a.input===String.fromCharCode(o.keyCode.Space)?e.toUpperCase():e.toLowerCase();break;default:if("function"==typeof r.casing){var l=Array.prototype.slice.call(arguments);l.push(i.validPositions),e=r.casing.apply(this,l)}}return e}function u(e){var t=this,n=this.opts,o=this.maskset;if("function"==typeof n.isComplete)return n.isComplete(e,n);if("*"!==n.repeat){var a=!1,l=i.determineLastRequiredPosition.call(t,!0),s=i.seekPrevious.call(t,l.l);if(void 0===l.def||l.def.newBlockMarker||l.def.optionality||l.def.optionalQuantifier){a=!0;for(var u=0;u<=s;u++){var c=r.getTestTemplate.call(t,u).match;if(!0!==c.static&&void 0===o.validPositions[u]&&!0!==c.optionality&&!0!==c.optionalQuantifier||!0===c.static&&e[u]!==r.getPlaceholder.call(t,u,c)){a=!1;break}}}return a}}function c(e){var t=this.opts.insertMode?0:1;return this.isRTL?e.begin-e.end>t:e.end-e.begin>t}function f(e,t,n,o,a,d,y){var v=this,b=this.dependencyLib,g=this.opts,w=v.maskset;n=!0===n;var k=e;function O(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return v.isRTL?e.pos-t.pos:t.pos-e.pos})).forEach((function(e){m.call(v,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return v.isRTL?t.pos-e.pos:e.pos-t.pos})).forEach((function(e){""!==e.c&&f.call(v,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:o)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;p.call(v,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(k=e.rewritePosition,e=!0)}return e}function _(t,n,a){var l=!1;return r.getTests.call(v,t).every((function(u,f){var d=u.match;if(i.getBuffer.call(v,!0),!1!==(l=(!d.jit||void 0!==w.validPositions[i.seekPrevious.call(v,t)])&&(null!=d.fn?d.fn.test(n,w,t,a,g,c.call(v,e)):(n===d.def||n===g.skipOptionalPartCharacter)&&""!==d.def&&{c:r.getPlaceholder.call(v,t,d,!0)||d.def,pos:t}))){var p=void 0!==l.c?l.c:n,h=t;return p=p===g.skipOptionalPartCharacter&&!0===d.static?r.getPlaceholder.call(v,t,d,!0)||d.def:p,!0!==(l=O(l))&&void 0!==l.pos&&l.pos!==t&&(h=l.pos),!0!==l&&void 0===l.pos&&void 0===l.c||!1===m.call(v,e,b.extend({},u,{input:s.call(v,p,d,h)}),o,h)&&(l=!1),!1}return!0})),l}void 0!==e.begin&&(k=v.isRTL?e.end:e.begin);var S=!0,P=b.extend(!0,{},w.validPositions);if(!1===g.keepStatic&&void 0!==w.excludes[k]&&!0!==a&&!0!==o)for(var j=k;j<(v.isRTL?e.begin:e.end);j++)void 0!==w.excludes[j]&&(w.excludes[j]=void 0,delete w.tests[j]);if("function"==typeof g.preValidation&&!0!==o&&!0!==d&&(S=O(S=g.preValidation.call(v,i.getBuffer.call(v),k,t,c.call(v,e),g,w,e,n||a))),!0===S){if(S=_(k,t,n),(!n||!0===o)&&!1===S&&!0!==d){var x=w.validPositions[k];if(!x||!0!==x.match.static||x.match.def!==t&&t!==g.skipOptionalPartCharacter){if(g.insertMode||void 0===w.validPositions[i.seekNext.call(v,k)]||e.end>k){var E=!1;if(w.jitOffset[k]&&void 0===w.validPositions[i.seekNext.call(v,k)]&&!1!==(S=f.call(v,k+w.jitOffset[k],t,!0,!0))&&(!0!==a&&(S.caret=k),E=!0),e.end>k&&(w.validPositions[k]=void 0),!E&&!i.isMask.call(v,k,g.keepStatic&&0===k))for(var C=k+1,A=i.seekNext.call(v,k,!1,0!==k);C<=A;C++)if(!1!==(S=_(C,t,n))){S=h.call(v,k,void 0!==S.pos?S.pos:C)||S,k=C;break}}}else S={caret:i.seekNext.call(v,k)}}v.hasAlternator&&!0!==a&&!n&&(!1===S&&g.keepStatic&&(u.call(v,i.getBuffer.call(v))||0===k)?S=l.call(v,k,t,n,o,void 0,e):(c.call(v,e)&&w.tests[k]&&w.tests[k].length>1&&g.keepStatic||1==S&&!0!==g.numericInput&&w.tests[k]&&w.tests[k].length>1&&i.getLastValidPosition.call(v,void 0,!0)>k)&&(S=l.call(v,!0))),!0===S&&(S={pos:k})}if("function"==typeof g.postValidation&&!0!==o&&!0!==d){var T=g.postValidation.call(v,i.getBuffer.call(v,!0),void 0!==e.begin?v.isRTL?e.end:e.begin:e,t,S,g,w,n,y);void 0!==T&&(S=!0===T?S:T)}S&&void 0===S.pos&&(S.pos=k),!1===S||!0===d?(i.resetMaskSet.call(v,!0),w.validPositions=b.extend(!0,[],P)):h.call(v,void 0,k,!0);var M=O(S);return void 0!==v.maxLength&&i.getBuffer.call(v).length>v.maxLength&&!o&&(i.resetMaskSet.call(v,!0),w.validPositions=b.extend(!0,[],P),M=!1),M}function d(e,t,n){for(var o=this.maskset,i=!1,a=r.getTests.call(this,e),l=0;l<a.length;l++){if(a[l].match&&(a[l].match.nativeDef===t.match[n.shiftPositions?"def":"nativeDef"]&&(!n.shiftPositions||!t.match.static)||a[l].match.nativeDef===t.match.nativeDef||n.regex&&!a[l].match.static&&a[l].match.fn.test(t.input,o,e,!1,n))){i=!0;break}if(a[l].match&&a[l].match.def===t.match.nativeDef){i=void 0;break}}return!1===i&&void 0!==o.jitOffset[e]&&(i=d.call(this,e+o.jitOffset[e],t,n)),i}function p(e,t,n){var r,o,l=this,s=this.maskset,u=this.opts,c=this.dependencyLib,f=u.skipOptionalPartCharacter,d=l.isRTL?n.slice().reverse():n;if(u.skipOptionalPartCharacter="",!0===e)i.resetMaskSet.call(l),s.tests={},e=0,t=n.length,o=i.determineNewCaretPosition.call(l,{begin:0,end:0},!1).begin;else{for(r=e;r<t;r++)delete s.validPositions[r];o=e}var p=new c.Event("keypress");for(r=e;r<t;r++){p.key=d[r].toString(),l.ignorable=!1;var h=a.EventHandlers.keypressEvent.call(l,p,!0,!1,!1,o);!1!==h&&void 0!==h&&(o=h.forwardPosition)}u.skipOptionalPartCharacter=f}function h(e,t,n){var o=this,a=this.maskset,l=this.dependencyLib;if(void 0===e)for(e=t-1;e>0&&!a.validPositions[e];e--);for(var s=e;s<t;s++)if(void 0===a.validPositions[s]&&!i.isMask.call(o,s,!1)&&(0==s?r.getTest.call(o,s):a.validPositions[s-1])){var u=r.getTests.call(o,s).slice();""===u[u.length-1].match.def&&u.pop();var c,d=r.determineTestTemplate.call(o,s,u);if(d&&(!0!==d.match.jit||"master"===d.match.newBlockMarker&&(c=a.validPositions[s+1])&&!0===c.match.optionalQuantifier)&&((d=l.extend({},d,{input:r.getPlaceholder.call(o,s,d.match,!0)||d.match.def})).generatedInput=!0,m.call(o,s,d,!0),!0!==n)){var p=a.validPositions[t].input;return a.validPositions[t]=void 0,f.call(o,t,p,!0,!0)}}}function m(e,t,n,o){var a=this,l=this.maskset,s=this.opts,u=this.dependencyLib;function c(e,t,n){var r=t[e];if(void 0!==r&&!0===r.match.static&&!0!==r.match.optionality&&(void 0===t[0]||void 0===t[0].alternation)){var o=n.begin<=e-1?t[e-1]&&!0===t[e-1].match.static&&t[e-1]:t[e-1],i=n.end>e+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return o&&i}return!1}var p=0,h=void 0!==e.begin?e.begin:e,m=void 0!==e.end?e.end:e,y=!0;if(e.begin>e.end&&(h=e.end,m=e.begin),o=void 0!==o?o:h,void 0===n&&(h!==m||s.insertMode&&void 0!==l.validPositions[o]||void 0===t||t.match.optionalQuantifier||t.match.optionality)){var v,b=u.extend(!0,{},l.validPositions),g=i.getLastValidPosition.call(a,void 0,!0);for(l.p=h,v=g;v>=h;v--)delete l.validPositions[v],void 0===t&&delete l.tests[v+1];var w,k,O=o,_=O;for(t&&(l.validPositions[o]=u.extend(!0,{},t),_++,O++),v=t?m:m-1;v<=g;v++){if(void 0!==(w=b[v])&&!0!==w.generatedInput&&(v>=m||v>=h&&c(v,b,{begin:h,end:m}))){for(;""!==r.getTest.call(a,_).match.def;){if(!1!==(k=d.call(a,_,w,s))||"+"===w.match.def){"+"===w.match.def&&i.getBuffer.call(a,!0);var S=f.call(a,_,w.input,"+"!==w.match.def,!0);if(y=!1!==S,O=(S.pos||_)+1,!y&&k)break}else y=!1;if(y){void 0===t&&w.match.static&&v===e.begin&&p++;break}if(!y&&i.getBuffer.call(a),_>l.maskLength)break;_++}""==r.getTest.call(a,_).match.def&&(y=!1),_=O}if(!y)break}if(!y)return l.validPositions=u.extend(!0,[],b),i.resetMaskSet.call(a,!0),!1}else t&&r.getTest.call(a,o).match.cd===t.match.cd&&(l.validPositions[o]=u.extend(!0,{},t));return i.resetMaskSet.call(a,!0),p}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};return function(){var e,t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(7149),n(3194),n(9302),n(4013),n(3851),n(219),n(207),n(5296);var o=((e=n(2394))&&e.__esModule?e:{default:e}).default;t.default=o}(),r}()},10448:function(e){var t=Array.isArray,n=Object.prototype.toString;e.exports=t||function(e){return!!e&&"[object Array]"==n.call(e)}},63847:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function o(e){return null!=e&&"object"===(void 0===e?"undefined":r(e))&&1===e.nodeType&&"object"===r(e.style)&&"object"===r(e.ownerDocument)}},90891:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=/iPhone/i,o=/iPod/i,i=/iPad/i,a=/\biOS-universal(?:.+)Mac\b/i,l=/\bAndroid(?:.+)Mobile\b/i,s=/Android/i,u=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,f=/Windows Phone/i,d=/\bWindows(?:.+)ARM\b/i,p=/BlackBerry/i,h=/BB10/i,m=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/Mobile(?:.+)Firefox\b/i,b=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function g(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,g=n.split("[FBAN");void 0!==g[1]&&(n=g[0]),void 0!==(g=n.split("Twitter"))[1]&&(n=g[0]);var w=function(e){return function(t){return t.test(e)}}(n),k={apple:{phone:w(r)&&!w(f),ipod:w(o),tablet:!w(r)&&(w(i)||b(t))&&!w(f),universal:w(a),device:(w(r)||w(o)||w(i)||w(a)||b(t))&&!w(f)},amazon:{phone:w(u),tablet:!w(u)&&w(c),device:w(u)||w(c)},android:{phone:!w(f)&&w(u)||!w(f)&&w(l),tablet:!w(f)&&!w(u)&&!w(l)&&(w(c)||w(s)),device:!w(f)&&(w(u)||w(c)||w(l)||w(s))||w(/\bokhttp\b/i)},windows:{phone:w(f),tablet:w(d),device:w(f)||w(d)},other:{blackberry:w(p),blackberry10:w(h),opera:w(m),firefox:w(v),chrome:w(y),device:w(p)||w(h)||w(m)||w(v)||w(y)},any:!1,phone:!1,tablet:!1};return k.any=k.apple.device||k.android.device||k.windows.device||k.other.device,k.phone=k.apple.phone||k.android.phone||k.windows.phone,k.tablet=k.apple.tablet||k.android.tablet||k.windows.tablet,k}},40962:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,l,s,u=e.get_operator(n),c=n[u];if(Array.isArray(c)||(c=[c]),"if"===u||"?:"==u){for(o=0;o<c.length-1;o+=2)if(e.truthy(e.apply(c[o],r)))return e.apply(c[o+1],r);return c.length===o+1?e.apply(c[o],r):null}if("and"===u){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),!e.truthy(i))return i;return i}if("or"===u){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),e.truthy(i))return i;return i}if("filter"===u)return l=e.apply(c[0],r),a=c[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===u)return l=e.apply(c[0],r),a=c[1],Array.isArray(l)?l.map((function(t){return e.apply(a,t)})):[];if("reduce"===u)return l=e.apply(c[0],r),a=c[1],s=void 0!==c[2]?c[2]:null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),s):s;if("all"===u){if(l=e.apply(c[0],r),a=c[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!e.truthy(e.apply(a,l[o])))return!1;return!0}if("none"===u){if(l=e.apply(c[0],r),a=c[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!1;return!0}if("some"===u){if(l=e.apply(c[0],r),a=c[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!0;return!1}if(c=c.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(r,c);if(u.indexOf(".")>0){var f=String(u).split("."),d=t;for(o=0;o<f.length;o++){if(!d.hasOwnProperty(f[o]))throw new Error("Unrecognized operation "+u+" (failed at "+f.slice(0,o+1).join(".")+")");d=d[f[o]]}return d.apply(r,c)}throw new Error("Unrecognized operation "+u)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},55586:function(e,t,n){var r,o;(o=function(){"use strict";var e={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){for(var n=[],r=0;r<=11;r++)for(var o=1;o<=28;o++){var i=t(new Date(e.BASELINE_YEAR,r,o));n?n&&n[n.length-1]!==i&&n.push(i):n.push()}return n},r=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),r=t,o=new Date(r).getTimezoneOffset(),a=null,l=null;r<n-864e5;){var s=new Date(r),u=s.getTimezoneOffset();u!==o&&(u<o&&(a=s),u>o&&(l=s),o=u),r+=864e5}return!(!a||!l)&&{s:i(a).getTime(),e:i(l).getTime()}},i=function t(n,r,o){void 0===r&&(r=e.DAY,o=e.HOUR);for(var i=new Date(n.getTime()-r).getTime(),a=n.getTime()+r,l=new Date(i).getTimezoneOffset(),s=i,u=null;s<a-o;){var c=new Date(s);if(c.getTimezoneOffset()!==l){u=c;break}s+=o}return r===e.DAY?t(u,e.HOUR,e.MINUTE):r===e.HOUR?t(u,e.MINUTE,e.SECOND):u},a=function(t){var n=function(){for(var e=[],t=0;t<o.olson.dst_rules.years.length;t++){var n=r(o.olson.dst_rules.years[t]);e.push(n)}return e}(),i=function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(n);return i?function(t,n){for(var r=function(r){for(var o=0,i=0;i<t.length;i++)if(r.rules[i]&&t[i]){if(!(t[i].s>=r.rules[i].s&&t[i].e<=r.rules[i].e)){o="N/A";break}if(o=0,o+=Math.abs(t[i].s-r.rules[i].s),(o+=Math.abs(r.rules[i].e-t[i].e))>e.MAX_SCORE){o="N/A";break}}return function(e,t,n,r){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===r.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===r.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,o,r)},i={},a=o.olson.dst_rules.zones,l=a.length,s=e.AMBIGUITIES[n],u=0;u<l;u++){var c=a[u],f=r(a[u]);"N/A"!==f&&(i[c.name]=f)}for(var d in i)if(i.hasOwnProperty(d))for(var p=0;p<s.length;p++)if(s[p]===d)return d;return n}(n,t):t};return{determine:function(t){var r=!1,i=function(){var e=0,t=n();return t.length>1&&(e=t[0]-t[1]),t.length>3?t[0]+",1,weird":e<0?t[0]+",1":e>0?t[1]+",1,s":t[0]+",0"}();return(t||void 0===t)&&(r=function(){var e,t;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(t=e.resolvedOptions().timeZone)&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0}()),r||(r=o.olson.timezones[i],void 0!==e.AMBIGUITIES[r]&&(r=a(r))),{name:function(){return r},using_intl:t||void 0===t,needle:i,offsets:n()}}}}()).olson=o.olson||{},o.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},o.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},void 0!==e.exports?e.exports=o:null!==n.amdD&&null!=n.amdO?void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r):window.jstz=o},96245:function(e,t,n){"use strict";function r(e){this.message=e}n.r(t),n.d(t,{InvalidTokenError:function(){return a},default:function(){return l}}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,l="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?l+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return l};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const l=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),l=n(81866);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},38407:function(e,t,n){var r=n(27040),o=n(14125),i=n(82117),a=n(67518),l=n(13399);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),l=n(95265);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},53818:function(e,t,n){var r=n(10852)(n(55639),"Promise");e.exports=r},58525:function(e,t,n){var r=n(10852)(n(55639),"Set");e.exports=r},88668:function(e,t,n){var r=n(83369),o=n(90619),i=n(72385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:function(e,t,n){var r=n(38407),o=n(37465),i=n(63779),a=n(67599),l=n(44758),s=n(34309);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=l,u.prototype.set=s,e.exports=u},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},11149:function(e,t,n){var r=n(55639).Uint8Array;e.exports=r},70577:function(e,t,n){var r=n(10852)(n(55639),"WeakMap");e.exports=r},96874:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},77412:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},34963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},47443:function(e,t,n){var r=n(42118);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},1196:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},14636:function(e,t,n){var r=n(22545),o=n(35694),i=n(1469),a=n(44144),l=n(65776),s=n(36719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&s(e),p=n||c||f||d,h=p?r(e.length,String):[],m=h.length;for(var y in e)!t&&!u.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,m))||h.push(y);return h}},29932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},62488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},82908:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},48983:function(e,t,n){var r=n(40371)("length");e.exports=r},44286:function(e){e.exports=function(e){return e.split("")}},34865:function(e,t,n){var r=n(89465),o=n(77813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},44037:function(e,t,n){var r=n(98363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},63886:function(e,t,n){var r=n(98363),o=n(81704);e.exports=function(e,t){return e&&r(t,o(t),e)}},89465:function(e,t,n){var r=n(38777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},85990:function(e,t,n){var r=n(46384),o=n(77412),i=n(34865),a=n(44037),l=n(63886),s=n(64626),u=n(278),c=n(18805),f=n(1911),d=n(58234),p=n(46904),h=n(64160),m=n(43824),y=n(29148),v=n(38517),b=n(1469),g=n(44144),w=n(56688),k=n(13218),O=n(72928),_=n(3674),S=n(81704),P="[object Arguments]",j="[object Function]",x="[object Object]",E={};E[P]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E[x]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E[j]=E["[object WeakMap]"]=!1,e.exports=function e(t,n,C,A,T,M){var R,D=1&n,I=2&n,L=4&n;if(C&&(R=T?C(t,A,T,M):C(t)),void 0!==R)return R;if(!k(t))return t;var V=b(t);if(V){if(R=m(t),!D)return u(t,R)}else{var N=h(t),F=N==j||"[object GeneratorFunction]"==N;if(g(t))return s(t,D);if(N==x||N==P||F&&!T){if(R=I||F?{}:v(t),!D)return I?f(t,l(R,t)):c(t,a(R,t))}else{if(!E[N])return T?t:{};R=y(t,N,D)}}M||(M=new r);var B=M.get(t);if(B)return B;M.set(t,R),O(t)?t.forEach((function(r){R.add(e(r,n,C,r,t,M))})):w(t)&&t.forEach((function(r,o){R.set(o,e(r,n,C,o,t,M))}));var U=V?void 0:(L?I?p:d:I?S:_)(t);return o(U||t,(function(r,o){U&&(r=t[o=r]),i(R,o,e(r,n,C,o,t,M))})),R}},3118:function(e,t,n){var r=n(13218),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},20731:function(e,t,n){var r=n(88668),o=n(47443),i=n(1196),a=n(29932),l=n(7518),s=n(74757);e.exports=function(e,t,n,u){var c=-1,f=o,d=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=a(t,l(n))),u?(f=i,d=!1):t.length>=200&&(f=s,d=!1,t=new r(t));e:for(;++c<p;){var y=e[c],v=null==n?y:n(y);if(y=u||0!==y?y:0,d&&v==v){for(var b=m;b--;)if(t[b]===v)continue e;h.push(y)}else f(t,v,u)||h.push(y)}return h}},41848:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},21078:function(e,t,n){var r=n(62488),o=n(37285);e.exports=function e(t,n,i,a,l){var s=-1,u=t.length;for(i||(i=o),l||(l=[]);++s<u;){var c=t[s];n>0&&i(c)?n>1?e(c,n-1,i,a,l):r(l,c):a||(l[l.length]=c)}return l}},28483:function(e,t,n){var r=n(25063)();e.exports=r},47816:function(e,t,n){var r=n(28483),o=n(3674);e.exports=function(e,t){return e&&r(e,t,o)}},97786:function(e,t,n){var r=n(71811),o=n(40327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},68866:function(e,t,n){var r=n(62488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},78565:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},42118:function(e,t,n){var r=n(41848),o=n(62722),i=n(42351);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},47556:function(e,t,n){var r=n(88668),o=n(47443),i=n(1196),a=n(29932),l=n(7518),s=n(74757),u=Math.min;e.exports=function(e,t,n){for(var c=n?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,y=[];p--;){var v=e[p];p&&t&&(v=a(v,l(t))),m=u(v.length,m),h[p]=!n&&(t||f>=120&&v.length>=120)?new r(p&&v):void 0}v=e[0];var b=-1,g=h[0];e:for(;++b<f&&y.length<m;){var w=v[b],k=t?t(w):w;if(w=n||0!==w?w:0,!(g?s(g,k):c(y,k,n))){for(p=d;--p;){var O=h[p];if(!(O?s(O,k):c(e[p],k,n)))continue e}g&&g.push(k),y.push(w)}}return y}},9454:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},90939:function(e,t,n){var r=n(21299),o=n(37005);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},21299:function(e,t,n){var r=n(46384),o=n(67114),i=n(18351),a=n(16096),l=n(64160),s=n(1469),u=n(44144),c=n(36719),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,y,v){var b=s(e),g=s(t),w=b?d:l(e),k=g?d:l(t),O=(w=w==f?p:w)==p,_=(k=k==f?p:k)==p,S=w==k;if(S&&u(e)){if(!u(t))return!1;b=!0,O=!1}if(S&&!O)return v||(v=new r),b||c(e)?o(e,t,n,m,y,v):i(e,t,w,n,m,y,v);if(!(1&n)){var P=O&&h.call(e,"__wrapped__"),j=_&&h.call(t,"__wrapped__");if(P||j){var x=P?e.value():e,E=j?t.value():t;return v||(v=new r),y(x,E,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,y,v))}},25588:function(e,t,n){var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},62722:function(e){e.exports=function(e){return e!=e}},28458:function(e,t,n){var r=n(23560),o=n(15346),i=n(13218),a=n(80346),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:l).test(a(e))}},29221:function(e,t,n){var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},38749:function(e,t,n){var r=n(44239),o=n(41780),i=n(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},280:function(e,t,n){var r=n(25726),o=n(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},10313:function(e,t,n){var r=n(13218),o=n(25726),i=n(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var l in e)("constructor"!=l||!t&&a.call(e,l))&&n.push(l);return n}},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},18190:function(e){var t=Math.floor;e.exports=function(e,n){var r="";if(!e||n<1||n>9007199254740991)return r;do{n%2&&(r+=e),(n=t(n/2))&&(e+=e)}while(n);return r}},5976:function(e,t,n){var r=n(6557),o=n(45357),i=n(30061);e.exports=function(e,t){return i(o(e,t,r),e+"")}},10611:function(e,t,n){var r=n(34865),o=n(71811),i=n(65776),a=n(13218),l=n(40327);e.exports=function(e,t,n,s){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var p=l(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=f){var m=d[p];void 0===(h=s?s(m,p,d):void 0)&&(h=a(m)?m:i(t[u+1])?[]:{})}r(d,p,h),d=d[p]}return e}},56560:function(e,t,n){var r=n(75703),o=n(38777),i=n(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},14259:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},22545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80531:function(e,t,n){var r=n(62705),o=n(29932),i=n(1469),a=n(33448),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},57406:function(e,t,n){var r=n(71811),o=n(10928),i=n(40292),a=n(40327);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},74757:function(e){e.exports=function(e,t){return e.has(t)}},24387:function(e,t,n){var r=n(29246);e.exports=function(e){return r(e)?e:[]}},54290:function(e,t,n){var r=n(6557);e.exports=function(e){return"function"==typeof e?e:r}},71811:function(e,t,n){var r=n(1469),o=n(15403),i=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},40180:function(e,t,n){var r=n(14259);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},5512:function(e,t,n){var r=n(42118);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},89817:function(e,t,n){var r=n(42118);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},74318:function(e,t,n){var r=n(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},64626:function(e,t,n){e=n.nmd(e);var r=n(55639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,l=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}},57157:function(e,t,n){var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},93147:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},40419:function(e,t,n){var r=n(62705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},77133:function(e,t,n){var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},98363:function(e,t,n){var r=n(34865),o=n(89465);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var u=t[l],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},18805:function(e,t,n){var r=n(98363),o=n(99551);e.exports=function(e,t){return r(e,o(e),t)}},1911:function(e,t,n){var r=n(98363),o=n(51442);e.exports=function(e,t){return r(e,o(e),t)}},14429:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},25063:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}},78302:function(e,t,n){var r=n(18190),o=n(80531),i=n(40180),a=n(62689),l=n(88016),s=n(83140),u=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var c=r(t,u(e/l(t)));return a(t)?i(s(c),0,e).join(""):c.slice(0,e)}},89179:function(e,t,n){var r=n(55639),o=n(40554),i=n(14841),a=n(79833),l=r.isFinite,s=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:s(o(n),292))&&l(e)){var r=(a(e)+"e").split("e"),u=t(r[0]+"e"+(+r[1]+n));return+((r=(a(u)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},60696:function(e,t,n){var r=n(68630);e.exports=function(e){return r(e)?void 0:e}},38777:function(e,t,n){var r=n(10852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},67114:function(e,t,n){var r=n(88668),o=n(82908),i=n(74757);e.exports=function(e,t,n,a,l,s){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,y=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h<c;){var v=e[h],b=t[h];if(a)var g=u?a(b,v,h,t,e,s):a(v,b,h,e,t,s);if(void 0!==g){if(g)continue;m=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(v===e||l(v,e,n,a,s)))return y.push(t)}))){m=!1;break}}else if(v!==b&&!l(v,b,n,a,s)){m=!1;break}}return s.delete(e),s.delete(t),m}},18351:function(e,t,n){var r=n(62705),o=n(11149),i=n(77813),a=n(67114),l=n(68776),s=n(21814),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&r;if(p||(p=s),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var y=a(p(e),p(t),r,u,f,d);return d.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},16096:function(e,t,n){var r=n(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var s=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!s)return!1;for(var f=c;f--;){var d=u[f];if(!(s?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var y=s;++f<c;){var v=e[d=u[f]],b=t[d];if(i)var g=s?i(b,v,d,t,e,l):i(v,b,d,e,t,l);if(!(void 0===g?v===b||a(v,b,n,i,l):g)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(m=!1)}return l.delete(e),l.delete(t),m}},99021:function(e,t,n){var r=n(85564),o=n(45357),i=n(30061);e.exports=function(e){return i(o(e,void 0,r),e+"")}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:function(e,t,n){var r=n(68866),o=n(99551),i=n(3674);e.exports=function(e){return r(e,i,o)}},46904:function(e,t,n){var r=n(68866),o=n(51442),i=n(81704);e.exports=function(e){return r(e,i,o)}},45050:function(e,t,n){var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10852:function(e,t,n){var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},85924:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},99551:function(e,t,n){var r=n(34963),o=n(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},51442:function(e,t,n){var r=n(62488),o=n(85924),i=n(99551),a=n(70479),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=l},64160:function(e,t,n){var r=n(18552),o=n(57071),i=n(53818),a=n(58525),l=n(70577),s=n(44239),u=n(80346),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=u(r),y=u(o),v=u(i),b=u(a),g=u(l),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||l&&w(new l)!=p)&&(w=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case y:return c;case v:return f;case b:return d;case g:return p}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},222:function(e,t,n){var r=n(71811),o=n(35694),i=n(1469),a=n(65776),l=n(41780),s=n(40327);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var d=s(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&l(c)&&a(d,c)&&(i(e)||o(e))}},62689:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},21327:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,n){var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},29148:function(e,t,n){var r=n(74318),o=n(57157),i=n(93147),a=n(40419),l=n(77133);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},38517:function(e,t,n){var r=n(3118),o=n(85924),i=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},37285:function(e,t,n){var r=n(62705),o=n(35694),i=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},16612:function(e,t,n){var r=n(77813),o=n(98612),i=n(65776),a=n(13218);e.exports=function(e,t,n){if(!a(n))return!1;var l=typeof t;return!!("number"==l?o(n)&&i(t,n.length):"string"==l&&t in n)&&r(n[t],e)}},15403:function(e,t,n){var r=n(1469),o=n(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r,o=n(14429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},13399:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},24523:function(e,t,n){var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},45357:function(e,t,n){var r=n(96874),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),s=Array(l);++a<l;)s[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(s),r(e,this,u)}}},40292:function(e,t,n){var r=n(97786),o=n(14259);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},30061:function(e,t,n){var r=n(56560),o=n(21275)(r);e.exports=o},21275:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},42351:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},88016:function(e,t,n){var r=n(48983),o=n(62689),i=n(21903);e.exports=function(e){return o(e)?i(e):r(e)}},83140:function(e,t,n){var r=n(44286),o=n(62689),i=n(676);e.exports=function(e){return o(e)?i(e):r(e)}},55514:function(e,t,n){var r=n(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},40327:function(e,t,n){var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},21903:function(e){var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",s=l+a+"(?:\\u200d(?:"+[r,o,i].join("|")+")"+l+a+")*",u="(?:"+[r+t+"?",t,o,i,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(n+"(?="+n+")|"+u+s,"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},676:function(e){var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",s=l+a+"(?:\\u200d(?:"+[r,o,i].join("|")+")"+l+a+")*",u="(?:"+[r+t+"?",t,o,i,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(n+"(?="+n+")|"+u+s,"g");e.exports=function(e){return e.match(c)||[]}},8400:function(e,t,n){var r=n(14259),o=n(16612),i=n(40554),a=Math.ceil,l=Math.max;e.exports=function(e,t,n){t=(n?o(e,t,n):void 0===t)?1:l(i(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var u=0,c=0,f=Array(a(s/t));u<s;)f[c++]=r(e,u,u+=t);return f}},66678:function(e,t,n){var r=n(85990);e.exports=function(e){return r(e,4)}},50361:function(e,t,n){var r=n(85990);e.exports=function(e){return r(e,5)}},75703:function(e){e.exports=function(e){return function(){return e}}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,u,c,f,d,p,h=0,m=!1,y=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=s,r=u;return s=u=void 0,h=t,f=e.apply(r,n)}function g(e){return h=e,d=setTimeout(k,t),m?b(e):f}function w(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-h>=c}function k(){var e=o();if(w(e))return O(e);d=setTimeout(k,function(e){var n=t-(e-p);return y?l(n,c-(e-h)):n}(e))}function O(e){return d=void 0,v&&s?b(e):(s=u=void 0,f)}function _(){var e=o(),n=w(e);if(s=arguments,u=this,p=e,n){if(void 0===d)return g(p);if(y)return clearTimeout(d),d=setTimeout(k,t),b(p)}return void 0===d&&(d=setTimeout(k,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,c=(y="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=u=d=void 0},_.flush=function(){return void 0===d?f:O(o())},_}},91747:function(e,t,n){var r=n(5976),o=n(77813),i=n(16612),a=n(81704),l=Object.prototype,s=l.hasOwnProperty,u=r((function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&i(t[0],t[1],u)&&(r=1);++n<r;)for(var c=t[n],f=a(c),d=-1,p=f.length;++d<p;){var h=f[d],m=e[h];(void 0===m||o(m,l[h])&&!s.call(e,h))&&(e[h]=c[h])}return e}));e.exports=u},91966:function(e,t,n){var r=n(20731),o=n(21078),i=n(5976),a=n(29246),l=i((function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]}));e.exports=l},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},85564:function(e,t,n){var r=n(21078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},2525:function(e,t,n){var r=n(47816),o=n(54290);e.exports=function(e,t){return e&&r(e,o(t))}},27361:function(e,t,n){var r=n(97786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},18721:function(e,t,n){var r=n(78565),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},6557:function(e){e.exports=function(e){return e}},25325:function(e,t,n){var r=n(29932),o=n(47556),i=n(5976),a=n(24387),l=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=l},35694:function(e,t,n){var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},29246:function(e,t,n){var r=n(98612),o=n(37005);e.exports=function(e){return o(e)&&r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},18446:function(e,t,n){var r=n(90939);e.exports=function(e,t){return r(e,t)}},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:function(e,t,n){var r=n(25588),o=n(7518),i=n(31167),a=i&&i.isMap,l=a?o(a):r;e.exports=l},7654:function(e,t,n){var r=n(81763);e.exports=function(e){return r(e)&&e!=+e}},14293:function(e){e.exports=function(e){return null==e}},81763:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,n){var r=n(44239),o=n(85924),i=n(37005),a=Function.prototype,l=Object.prototype,s=a.toString,u=l.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},72928:function(e,t,n){var r=n(29221),o=n(7518),i=n(31167),a=i&&i.isSet,l=a?o(a):r;e.exports=l},47037:function(e,t,n){var r=n(44239),o=n(1469),i=n(37005);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},36719:function(e,t,n){var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},3674:function(e,t,n){var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},81704:function(e,t,n){var r=n(14636),o=n(10313),i=n(98612);e.exports=function(e){return i(e)?r(e,!0):o(e)}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},96486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",s=32,u=128,c=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",g="[object Error]",w="[object Function]",k="[object GeneratorFunction]",O="[object Map]",_="[object Number]",S="[object Object]",P="[object Promise]",j="[object RegExp]",x="[object Set]",E="[object String]",C="[object Symbol]",A="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",R="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",L="[object Int16Array]",V="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",B="[object Uint16Array]",U="[object Uint32Array]",z=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(W.source),G=RegExp(K.source),$=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,we=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",_e="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="["+Se+"]",je="["+ke+"]",xe="\\d+",Ee="["+Oe+"]",Ce="[^\\ud800-\\udfff"+Se+xe+"\\u2700-\\u27bf"+Oe+_e+"]",Ae="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+_e+"]",Ie="(?:"+Ee+"|"+Ce+")",Le="(?:"+De+"|"+Ce+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Ne="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+je+"|"+Ae+")?",Be="[\\ufe0e\\ufe0f]?",Ue=Be+Fe+"(?:\\u200d(?:"+[Te,Me,Re].join("|")+")"+Be+Fe+")*",ze="(?:"+["[\\u2700-\\u27bf]",Me,Re].join("|")+")"+Ue,He="(?:"+[Te+je+"?",je,Me,Re,"[\\ud800-\\udfff]"].join("|")+")",qe=RegExp("['’]","g"),We=RegExp(je,"g"),Ke=RegExp(Ae+"(?="+Ae+")|"+He+Ue,"g"),Ye=RegExp([De+"?"+Ee+"+"+Ve+"(?="+[Pe,De,"$"].join("|")+")",Le+"+"+Ne+"(?="+[Pe,De+Ie,"$"].join("|")+")",De+"?"+Ie+"+"+Ve,De+"+"+Ne,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,ze].join("|"),"g"),Ge=RegExp("[\\u200d\\ud800-\\udfff"+ke+"\\ufe0e\\ufe0f]"),$e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,Ze={};Ze[R]=Ze[D]=Ze[I]=Ze[L]=Ze[V]=Ze[N]=Ze[F]=Ze[B]=Ze[U]=!0,Ze[m]=Ze[y]=Ze[T]=Ze[v]=Ze[M]=Ze[b]=Ze[g]=Ze[w]=Ze[O]=Ze[_]=Ze[S]=Ze[j]=Ze[x]=Ze[E]=Ze[A]=!1;var Qe={};Qe[m]=Qe[y]=Qe[T]=Qe[M]=Qe[v]=Qe[b]=Qe[R]=Qe[D]=Qe[I]=Qe[L]=Qe[V]=Qe[O]=Qe[_]=Qe[S]=Qe[j]=Qe[x]=Qe[E]=Qe[C]=Qe[N]=Qe[F]=Qe[B]=Qe[U]=!0,Qe[g]=Qe[w]=Qe[A]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,lt=at&&e&&!e.nodeType&&e,st=lt&&lt.exports===at,ut=st&&rt.process,ct=function(){try{return lt&&lt.require&&lt.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),ft=ct&&ct.isArrayBuffer,dt=ct&&ct.isDate,pt=ct&&ct.isMap,ht=ct&&ct.isRegExp,mt=ct&&ct.isSet,yt=ct&&ct.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function bt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function _t(e,t){return!(null==e||!e.length)&&Rt(e,t,0)>-1}function St(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function jt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function xt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Et(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Vt("length");function Tt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Mt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Rt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Mt(e,It,n)}function Dt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function It(e){return e!=e}function Lt(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:d}function Vt(e){return function(t){return null==t?o:t[e]}}function Nt(e){return function(t){return null==e?o:e[t]}}function Ft(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Bt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Ut(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function zt(e){return e?e.slice(0,ln(e)+1).replace(re,""):e}function Ht(e){return function(t){return e(t)}}function qt(e,t){return Pt(t,(function(t){return e[t]}))}function Wt(e,t){return e.has(t)}function Kt(e,t){for(var n=-1,r=e.length;++n<r&&Rt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Rt(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $t=Nt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),Jt=Nt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Xt(e){return"\\"+et[e]}function Zt(e){return Ge.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Zt(e)?function(e){for(var t=Ke.lastIndex=0;Ke.test(e);)++t;return t}(e):At(e)}function an(e){return Zt(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function ln(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var sn=Nt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),un=function e(t){var n,r=(t=null==t?it:un.defaults(it.Object(),t,un.pick(it,Je))).Array,oe=t.Date,ke=t.Error,Oe=t.Function,_e=t.Math,Se=t.Object,Pe=t.RegExp,je=t.String,xe=t.TypeError,Ee=r.prototype,Ce=Oe.prototype,Ae=Se.prototype,Te=t["__core-js_shared__"],Me=Ce.toString,Re=Ae.hasOwnProperty,De=0,Ie=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Ae.toString,Ve=Me.call(Se),Ne=it._,Fe=Pe("^"+Me.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=st?t.Buffer:o,Ue=t.Symbol,ze=t.Uint8Array,He=Be?Be.allocUnsafe:o,Ke=en(Se.getPrototypeOf,Se),Ge=Se.create,et=Ae.propertyIsEnumerable,rt=Ee.splice,ot=Ue?Ue.isConcatSpreadable:o,at=Ue?Ue.iterator:o,lt=Ue?Ue.toStringTag:o,ut=function(){try{var e=ci(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,At=oe&&oe.now!==it.Date.now&&oe.now,Nt=t.setTimeout!==it.setTimeout&&t.setTimeout,cn=_e.ceil,fn=_e.floor,dn=Se.getOwnPropertySymbols,pn=Be?Be.isBuffer:o,hn=t.isFinite,mn=Ee.join,yn=en(Se.keys,Se),vn=_e.max,bn=_e.min,gn=oe.now,wn=t.parseInt,kn=_e.random,On=Ee.reverse,_n=ci(t,"DataView"),Sn=ci(t,"Map"),Pn=ci(t,"Promise"),jn=ci(t,"Set"),xn=ci(t,"WeakMap"),En=ci(Se,"create"),Cn=xn&&new xn,An={},Tn=Fi(_n),Mn=Fi(Sn),Rn=Fi(Pn),Dn=Fi(jn),In=Fi(xn),Ln=Ue?Ue.prototype:o,Vn=Ln?Ln.valueOf:o,Nn=Ln?Ln.toString:o;function Fn(e){if(nl(e)&&!Wa(e)&&!(e instanceof Hn)){if(e instanceof zn)return e;if(Re.call(e,"__wrapped__"))return Bi(e)}return new zn(e)}var Bn=function(){function e(){}return function(t){if(!tl(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Un(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function $n(e,t){var n=Wa(e),r=!n&&qa(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&cl(e),a=n||r||o||i,l=a?Ut(e.length,je):[],s=l.length;for(var u in e)!t&&!Re.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||vi(u,s))||l.push(u);return l}function Jn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Xn(e,t){return Di(Eo(e),ar(t,0,e.length))}function Zn(e){return Di(Eo(e))}function Qn(e,t,n){(n!==o&&!Ua(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Re.call(e,t)&&Ua(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ua(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Co(t,Ml(t),e)}function or(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:xl(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function lr(e,t,n,r,i,a){var l,s=1&t,u=2&t,c=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!tl(e))return e;var f=Wa(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Eo(e,l)}else{var d=pi(e),p=d==w||d==k;if($a(e))return Oo(e,s);if(d==S||d==m||p&&!i){if(l=u||p?{}:mi(e),!s)return u?function(e,t){return Co(e,di(e),t)}(e,function(e,t){return e&&Co(t,Rl(t),e)}(l,e)):function(e,t){return Co(e,fi(e),t)}(e,rr(l,e))}else{if(!Qe[d])return i?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case T:return _o(e);case v:case b:return new o(+e);case M:return function(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case D:case I:case L:case V:case N:case F:case B:case U:return So(e,n);case O:return new o;case _:case E:return new o(e);case j:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new o;case C:return r=e,Vn?Se(Vn.call(r)):{}}}(e,d,s)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(r){l.add(lr(r,t,n,r,e,a))})):rl(e)&&e.forEach((function(r,o){l.set(o,lr(r,t,n,o,e,a))}));var y=f?o:(c?u?ri:ni:u?Rl:Ml)(e);return gt(y||e,(function(r,o){y&&(r=e[o=r]),er(l,o,lr(r,t,n,o,e,a))})),l}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new xe(i);return Ai((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=_t,a=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=Pt(t,Ht(n))),r?(i=St,a=!1):t.length>=200&&(i=Wt,a=!1,t=new Yn(t));e:for(;++o<l;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;s.push(c)}else i(t,f,r)||s.push(c)}return s}Fn.templateSettings={escape:$,evaluate:J,interpolate:X,variable:"",imports:{_:Fn}},Fn.prototype=Un.prototype,Fn.prototype.constructor=Fn,zn.prototype=Bn(Un.prototype),zn.prototype.constructor=zn,Hn.prototype=Bn(Un.prototype),Hn.prototype.constructor=Hn,qn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(En){var n=t[e];return n===a?o:n}return Re.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==o:Re.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===o?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return tr(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Sn||Wn),string:new qn}},Kn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return si(this,e).get(e)},Kn.prototype.has=function(e){return si(this,e).has(e)},Kn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Mo(gr),dr=Mo(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(s===o?l==l&&!ul(l):n(l,s)))var s=l,u=a}return u}function mr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?yr(l,t-1,n,r,o):jt(o,l):r||(o[o.length]=l)}return o}var vr=Ro(),br=Ro(!0);function gr(e,t){return e&&vr(e,t,Ml)}function wr(e,t){return e&&br(e,t,Ml)}function kr(e,t){return Ot(t,(function(t){return Za(e[t])}))}function Or(e,t){for(var n=0,r=(t=bo(t,e)).length;null!=e&&n<r;)e=e[Ni(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return Wa(e)?r:jt(r,n(e))}function Sr(e){return null==e?e===o?"[object Undefined]":"[object Null]":lt&&lt in Se(e)?function(e){var t=Re.call(e,lt),n=e[lt];try{e[lt]=o;var r=!0}catch(e){}var i=Le.call(e);return r&&(t?e[lt]=n:delete e[lt]),i}(e):function(e){return Le.call(e)}(e)}function Pr(e,t){return e>t}function jr(e,t){return null!=e&&Re.call(e,t)}function xr(e,t){return null!=e&&t in Se(e)}function Er(e,t,n){for(var i=n?St:_t,a=e[0].length,l=e.length,s=l,u=r(l),c=1/0,f=[];s--;){var d=e[s];s&&t&&(d=Pt(d,Ht(t))),c=bn(d.length,c),u[s]=!n&&(t||a>=120&&d.length>=120)?new Yn(s&&d):o}d=e[0];var p=-1,h=u[0];e:for(;++p<a&&f.length<c;){var m=d[p],y=t?t(m):m;if(m=n||0!==m?m:0,!(h?Wt(h,y):i(f,y,n))){for(s=l;--s;){var v=u[s];if(!(v?Wt(v,y):i(e[s],y,n)))continue e}h&&h.push(y),f.push(m)}}return f}function Cr(e,t,n){var r=null==(e=ji(e,t=bo(t,e)))?e:e[Ni(Xi(t))];return null==r?o:vt(r,e,n)}function Ar(e){return nl(e)&&Sr(e)==m}function Tr(e,t,n,r,i){return e===t||(null==e||null==t||!nl(e)&&!nl(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Wa(e),s=Wa(t),u=l?y:pi(e),c=s?y:pi(t),f=(u=u==m?S:u)==S,d=(c=c==m?S:c)==S,p=u==c;if(p&&$a(e)){if(!$a(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new Gn),l||cl(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case v:case b:case _:return Ua(+e,+t);case g:return e.name==t.name&&e.message==t.message;case j:case E:return e==t+"";case O:var l=Qt;case x:var s=1&r;if(l||(l=nn),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ei(l(e),l(t),r,o,i,a);return a.delete(e),c;case C:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=f&&Re.call(e,"__wrapped__"),w=d&&Re.call(t,"__wrapped__");if(h||w){var k=h?e.value():e,P=w?t.value():t;return a||(a=new Gn),i(k,P,n,r,a)}}return!!p&&(a||(a=new Gn),function(e,t,n,r,i,a){var l=1&n,s=ni(e),u=s.length;if(u!=ni(t).length&&!l)return!1;for(var c=u;c--;){var f=s[c];if(!(l?f in t:Re.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=l;++c<u;){var y=e[f=s[c]],v=t[f];if(r)var b=l?r(v,y,f,t,e,a):r(y,v,f,e,t,a);if(!(b===o?y===v||i(y,v,n,r,a):b)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var g=e.constructor,w=t.constructor;g==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Tr,i))}function Mr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=Se(e);i--;){var s=n[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var u=(s=n[i])[0],c=e[u],f=s[1];if(l&&s[2]){if(c===o&&!(u in e))return!1}else{var d=new Gn;if(r)var p=r(c,f,u,e,t,d);if(!(p===o?Tr(f,c,3,r,d):p))return!1}}return!0}function Rr(e){return!(!tl(e)||(t=e,Ie&&Ie in t))&&(Za(e)?Fe:me).test(Fi(e));var t}function Dr(e){return"function"==typeof e?e:null==e?os:"object"==typeof e?Wa(e)?Fr(e[0],e[1]):Nr(e):ps(e)}function Ir(e){if(!Oi(e))return yn(e);var t=[];for(var n in Se(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e,t){return e<t}function Vr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Nr(e){var t=ui(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Fr(e,t){return gi(e)&&_i(t)?Si(Ni(e),t):function(n){var r=xl(n,e);return r===o&&r===t?El(n,e):Tr(t,r,3)}}function Br(e,t,n,r,i){e!==t&&vr(t,(function(a,l){if(i||(i=new Gn),tl(a))!function(e,t,n,r,i,a,l){var s=Ei(e,n),u=Ei(t,n),c=l.get(u);if(c)Qn(e,n,c);else{var f=a?a(s,u,n+"",e,t,l):o,d=f===o;if(d){var p=Wa(u),h=!p&&$a(u),m=!p&&!h&&cl(u);f=u,p||h||m?Wa(s)?f=s:Ga(s)?f=Eo(s):h?(d=!1,f=Oo(u,!0)):m?(d=!1,f=So(u,!0)):f=[]:il(u)||qa(u)?(f=s,qa(s)?f=bl(s):tl(s)&&!Za(s)||(f=mi(u))):d=!1}d&&(l.set(u,f),i(f,u,r,a,l),l.delete(u)),Qn(e,n,f)}}(e,t,l,n,Br,r,i);else{var s=r?r(Ei(e,l),a,l+"",e,t,i):o;s===o&&(s=a),Qn(e,l,s)}}),Rl)}function Ur(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function zr(e,t,n){t=t.length?Pt(t,(function(e){return Wa(e)?function(t){return Or(t,1===e.length?e[0]:e)}:e})):[os];var r=-1;t=Pt(t,Ht(li()));var o=Vr(e,(function(e,n,o){var i=Pt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=Po(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Or(e,a);n(l,a)&&Xr(i,bo(a,e),l)}return i}function qr(e,t,n,r){var o=r?Dt:Rt,i=-1,a=t.length,l=e;for(e===t&&(t=Eo(t)),n&&(l=Pt(e,Ht(n)));++i<a;)for(var s=0,u=t[i],c=n?n(u):u;(s=o(l,c,s,r))>-1;)l!==e&&rt.call(l,s,1),rt.call(e,s,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):uo(e,o)}}return e}function Kr(e,t){return e+fn(kn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ti(Pi(e,t,os),e+"")}function $r(e){return Jn(Ul(e))}function Jr(e,t){var n=Ul(e);return Di(n,ar(t,0,n.length))}function Xr(e,t,n,r){if(!tl(e))return e;for(var i=-1,a=(t=bo(t,e)).length,l=a-1,s=e;null!=s&&++i<a;){var u=Ni(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=l){var f=s[u];(c=r?r(f,u,s):o)===o&&(c=tl(f)?f:vi(t[i+1])?[]:{})}er(s,u,c),s=s[u]}return e}var Zr=Cn?function(e,t){return Cn.set(e,t),e}:os,Qr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:ts(t),writable:!0})}:os;function eo(e){return Di(Ul(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ul(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,os,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,s=null===t,u=ul(t),c=t===o;i<a;){var f=fn((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,m=d==d,y=ul(d);if(l)var v=r||m;else v=c?m&&(r||p):s?m&&p&&(r||!h):u?m&&p&&!h&&(r||!y):!h&&!y&&(r?d<=t:d<t);v?i=f+1:a=f}return bn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ua(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:ul(e)?d:+e}function lo(e){if("string"==typeof e)return e;if(Wa(e))return Pt(e,lo)+"";if(ul(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=_t,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=St;else if(i>=200){var u=t?null:Go(e);if(u)return nn(u);a=!1,o=Wt,s=new Yn}else s=t?[]:l;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else o(s,f,n)||(s!==l&&s.push(f),l.push(c))}return l}function uo(e,t){return null==(e=ji(e,t=bo(t,e)))||delete e[Ni(Xi(t))]}function co(e,t,n,r){return Xr(e,t,n(Or(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Hn&&(n=n.value()),xt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],s=-1;++s<o;)s!=i&&(a[i]=cr(a[i]||l,e[s],t,n));return so(yr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var s=r<a?t[r]:o;n(l,e[r],s)}return l}function yo(e){return Ga(e)?e:[]}function vo(e){return"function"==typeof e?e:os}function bo(e,t){return Wa(e)?e:gi(e,t)?[e]:Vi(gl(e))}var go=Gr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var ko=ct||function(e){return it.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function _o(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function So(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ul(e),l=t!==o,s=null===t,u=t==t,c=ul(t);if(!s&&!c&&!a&&e>t||a&&l&&u&&!s&&!c||r&&l&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!l&&i||!u)return-1}return 0}function jo(e,t,n,o){for(var i=-1,a=e.length,l=n.length,s=-1,u=t.length,c=vn(a-l,0),f=r(u+c),d=!o;++s<u;)f[s]=t[s];for(;++i<l;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[s++]=e[i++];return f}function xo(e,t,n,o){for(var i=-1,a=e.length,l=-1,s=n.length,u=-1,c=t.length,f=vn(a-s,0),d=r(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++u<c;)d[h+u]=t[u];for(;++l<s;)(p||i<a)&&(d[h+n[l]]=e[i++]);return d}function Eo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Co(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var s=t[a],u=r?r(n[s],e[s],s,n,e):o;u===o&&(u=e[s]),i?or(n,s,u):er(n,s,u)}return n}function Ao(e,t){return function(n,r){var o=Wa(n)?bt:nr,i=t?t():{};return o(n,e,li(r,2),i)}}function To(e){return Gr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&bi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Se(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}function Mo(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Se(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=Se(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}function Do(e){return function(t){var n=Zt(t=gl(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return xt(Zl(ql(t).replace(qe,"")),e,"")}}function Lo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return tl(r)?r:n}}function Vo(e){return function(t,n,r){var i=Se(t);if(!Ya(t)){var a=li(n,3);t=Ml(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function No(e){return ti((function(t){var n=t.length,r=n,a=zn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new xe(i);if(a&&!s&&"wrapper"==ii(l))var s=new zn([],!0)}for(r=s?r:n;++r<n;){var u=ii(l=t[r]),c="wrapper"==u?oi(l):o;s=c&&wi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[ii(c[0])].apply(s,c[3]):1==l.length&&wi(l)?s[u]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Wa(r))return s.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,l,s,c,f,d){var p=t&u,h=1&t,m=2&t,y=24&t,v=512&t,b=m?o:Lo(e);return function o(){for(var u=arguments.length,g=r(u),w=u;w--;)g[w]=arguments[w];if(y)var k=ai(o),O=Gt(g,k);if(i&&(g=jo(g,i,a,y)),l&&(g=xo(g,l,s,y)),u-=O,y&&u<d){var _=tn(g,k);return Ko(e,t,Fo,o.placeholder,n,g,_,c,f,d-u)}var S=h?n:this,P=m?S[e]:e;return u=g.length,c?g=xi(g,c):v&&u>1&&g.reverse(),p&&f<u&&(g.length=f),this&&this!==it&&this instanceof o&&(P=b||Lo(P)),P.apply(S,g)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return gr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=lo(n),r=lo(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function zo(e){return ti((function(t){return t=Pt(t,Ht(li())),Gr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Ho(e,t){var n=(t=t===o?" ":lo(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,cn(e/on(t)));return Zt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&bi(t,n,i)&&(n=i=o),t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n,o){for(var i=-1,a=vn(cn((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:hl(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vl(t),n=vl(n)),e(t,n)}}function Ko(e,t,n,r,i,a,l,u,c,f){var d=8&t;t|=d?s:64,4&(t&=~(d?64:s))||(t&=-4);var p=[e,t,i,d?a:o,d?l:o,d?o:a,d?o:l,u,c,f],h=n.apply(o,p);return wi(e)&&Ci(h,p),h.placeholder=r,Mi(h,e,t)}function Yo(e){var t=_e[e];return function(e,n){if(e=vl(e),(n=null==n?0:bn(ml(n),292))&&hn(e)){var r=(gl(e)+"e").split("e");return+((r=(gl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=jn&&1/nn(new jn([,-0]))[1]==c?function(e){return new jn(e)}:us;function $o(e){return function(t){var n=pi(t);return n==O?Qt(t):n==x?rn(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,c,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new xe(i);var m=a?a.length:0;if(m||(t&=-97,a=c=o),d=d===o?d:vn(ml(d),0),p=p===o?p:ml(p),m-=c?c.length:0,64&t){var y=a,v=c;a=c=o}var b=h?o:oi(e),g=[e,t,n,a,c,y,v,f,d,p];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?jo(c,s,t[4]):s,e[4]=c?tn(e[3],l):t[4]}(s=t[5])&&(c=e[5],e[5]=c?xo(c,s,t[6]):s,e[6]=c?tn(e[5],l):t[6]),(s=t[7])&&(e[7]=s),r&u&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(g,b),e=g[0],t=g[1],n=g[2],a=g[3],c=g[4],!(p=g[9]=g[9]===o?h?0:e.length:vn(g[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Lo(e);return function a(){for(var l=arguments.length,s=r(l),u=l,c=ai(a);u--;)s[u]=arguments[u];var f=l<3&&s[0]!==c&&s[l-1]!==c?[]:tn(s,c);return(l-=f.length)<n?Ko(e,t,Fo,a.placeholder,o,s,f,o,o,n-l):vt(this&&this!==it&&this instanceof a?i:e,this,s)}}(e,t,p):t!=s&&33!=t||c.length?Fo.apply(o,g):function(e,t,n,o){var i=1&t,a=Lo(e);return function t(){for(var l=-1,s=arguments.length,u=-1,c=o.length,f=r(c+s),d=this&&this!==it&&this instanceof t?a:e;++u<c;)f[u]=o[u];for(;s--;)f[u++]=arguments[++l];return vt(d,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Lo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Mi((b?Zr:Ci)(w,g),e,t)}function Xo(e,t,n,r){return e===o||Ua(e,Ae[n])&&!Re.call(r,n)?t:e}function Zo(e,t,n,r,i,a){return tl(e)&&tl(t)&&(a.set(t,e),Br(e,t,o,Zo,a),a.delete(t)),e}function Qo(e){return il(e)?o:e}function ei(e,t,n,r,i,a){var l=1&n,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],y=t[d];if(r)var v=l?r(y,m,d,t,e,a):r(m,y,d,e,t,a);if(v!==o){if(v)continue;p=!1;break}if(h){if(!Ct(t,(function(e,t){if(!Wt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==y&&!i(m,y,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ti(e){return Ti(Pi(e,o,Ki),e+"")}function ni(e){return _r(e,Ml,fi)}function ri(e){return _r(e,Rl,di)}var oi=Cn?function(e){return Cn.get(e)}:us;function ii(e){for(var t=e.name+"",n=An[t],r=Re.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Re.call(Fn,"placeholder")?Fn:e).placeholder}function li(){var e=Fn.iteratee||is;return e=e===is?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Ml(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,_i(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var fi=dn?function(e){return null==e?[]:(e=Se(e),Ot(dn(e),(function(t){return et.call(e,t)})))}:ys,di=dn?function(e){for(var t=[];e;)jt(t,fi(e)),e=Ke(e);return t}:ys,pi=Sr;function hi(e,t,n){for(var r=-1,o=(t=bo(t,e)).length,i=!1;++r<o;){var a=Ni(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&el(o)&&vi(a,o)&&(Wa(e)||qa(e))}function mi(e){return"function"!=typeof e.constructor||Oi(e)?{}:Bn(Ke(e))}function yi(e){return Wa(e)||qa(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,n){if(!tl(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&vi(t,n.length):"string"==r&&t in n)&&Ua(n[t],e)}function gi(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ul(e))||Q.test(e)||!Z.test(e)||null!=t&&e in Se(t)}function wi(e){var t=ii(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(_n&&pi(new _n(new ArrayBuffer(1)))!=M||Sn&&pi(new Sn)!=O||Pn&&pi(Pn.resolve())!=P||jn&&pi(new jn)!=x||xn&&pi(new xn)!=A)&&(pi=function(e){var t=Sr(e),n=t==S?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Tn:return M;case Mn:return O;case Rn:return P;case Dn:return x;case In:return A}return t});var ki=Te?Za:vs;function Oi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function _i(e){return e==e&&!tl(e)}function Si(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Se(n))}}function Pi(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var s=r(t+1);++i<t;)s[i]=o[i];return s[t]=n(l),vt(e,this,s)}}function ji(e,t){return t.length<2?e:Or(e,to(t,0,-1))}function xi(e,t){for(var n=e.length,r=bn(t.length,n),i=Eo(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function Ei(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ci=Ri(Zr),Ai=Nt||function(e,t){return it.setTimeout(e,t)},Ti=Ri(Qr);function Mi(e,t,n){var r=t+"";return Ti(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return gt(h,(function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function Ri(e){var t=0,n=0;return function(){var r=gn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Di(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Ii,Li,Vi=(Ii=Ia((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Li.size&&Li.clear(),e})),Li=Ii.cache,Ii);function Ni(e){if("string"==typeof e||ul(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Hn)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Eo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ui=Gr((function(e,t){return Ga(e)?cr(e,yr(t,1,Ga,!0)):[]})),zi=Gr((function(e,t){var n=Xi(t);return Ga(n)&&(n=o),Ga(e)?cr(e,yr(t,1,Ga,!0),li(n,2)):[]})),Hi=Gr((function(e,t){var n=Xi(t);return Ga(n)&&(n=o),Ga(e)?cr(e,yr(t,1,Ga,!0),o,n):[]}));function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ml(n);return o<0&&(o=vn(r+o,0)),Mt(e,li(t,3),o)}function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ml(n),i=n<0?vn(r+i,0):bn(i,r-1)),Mt(e,li(t,3),i,!0)}function Ki(e){return null!=e&&e.length?yr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Gi=Gr((function(e){var t=Pt(e,yo);return t.length&&t[0]===e[0]?Er(t):[]})),$i=Gr((function(e){var t=Xi(e),n=Pt(e,yo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Er(n,li(t,2)):[]})),Ji=Gr((function(e){var t=Xi(e),n=Pt(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Er(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Gr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Wr(e,Pt(t,(function(e){return vi(e,n)?+e:e})).sort(Po)),r}));function ta(e){return null==e?e:On.call(e)}var na=Gr((function(e){return so(yr(e,1,Ga,!0))})),ra=Gr((function(e){var t=Xi(e);return Ga(t)&&(t=o),so(yr(e,1,Ga,!0),li(t,2))})),oa=Gr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,so(yr(e,1,Ga,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Ga(e))return t=vn(e.length,t),!0})),Ut(t,(function(t){return Pt(e,Vt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Pt(n,(function(e){return vt(t,o,e)}))}var la=Gr((function(e,t){return Ga(e)?cr(e,t):[]})),sa=Gr((function(e){return ho(Ot(e,Ga))})),ua=Gr((function(e){var t=Xi(e);return Ga(t)&&(t=o),ho(Ot(e,Ga),li(t,2))})),ca=Gr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,ho(Ot(e,Ga),o,t)})),fa=Gr(ia),da=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function pa(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ya=Ao((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)})),va=Vo(qi),ba=Vo(Wi);function ga(e,t){return(Wa(e)?gt:fr)(e,li(t,3))}function wa(e,t){return(Wa(e)?wt:dr)(e,li(t,3))}var ka=Ao((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])})),Oa=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?vt(t,e,n):Cr(e,t,n)})),a})),_a=Ao((function(e,t,n){or(e,n,t)}));function Sa(e,t){return(Wa(e)?Pt:Vr)(e,li(t,3))}var Pa=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ja=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bi(e,t[0],t[1])?t=[]:n>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,yr(t,1),[])})),xa=At||function(){return it.Date.now()};function Ea(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,u,o,o,o,o,t)}function Ca(e,t){var n;if("function"!=typeof t)throw new xe(i);return e=ml(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=Gr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Aa));r|=s}return Jo(e,r,t,n,o)})),Ta=Gr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ta));r|=s}return Jo(t,r,e,n,o)}));function Ma(e,t,n){var r,a,l,s,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new xe(i);function m(t){var n=r,i=a;return r=a=o,f=t,s=e.apply(i,n)}function y(e){return f=e,u=Ai(b,t),d?m(e):s}function v(e){var n=e-c;return c===o||n>=t||n<0||p&&e-f>=l}function b(){var e=xa();if(v(e))return g(e);u=Ai(b,function(e){var n=t-(e-c);return p?bn(n,l-(e-f)):n}(e))}function g(e){return u=o,h&&r?m(e):(r=a=o,s)}function w(){var e=xa(),n=v(e);if(r=arguments,a=this,c=e,n){if(u===o)return y(c);if(p)return ko(u),u=Ai(b,t),m(c)}return u===o&&(u=Ai(b,t)),s}return t=vl(t)||0,tl(n)&&(d=!!n.leading,l=(p="maxWait"in n)?vn(vl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),w.cancel=function(){u!==o&&ko(u),f=0,r=c=a=u=o},w.flush=function(){return u===o?s:g(xa())},w}var Ra=Gr((function(e,t){return ur(e,1,t)})),Da=Gr((function(e,t,n){return ur(e,vl(t)||0,n)}));function Ia(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ia.Cache||Kn),n}function La(e){if("function"!=typeof e)throw new xe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ia.Cache=Kn;var Va=go((function(e,t){var n=(t=1==t.length&&Wa(t[0])?Pt(t[0],Ht(li())):Pt(yr(t,1),Ht(li()))).length;return Gr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),Na=Gr((function(e,t){var n=tn(t,ai(Na));return Jo(e,s,o,t,n)})),Fa=Gr((function(e,t){var n=tn(t,ai(Fa));return Jo(e,64,o,t,n)})),Ba=ti((function(e,t){return Jo(e,256,o,o,o,t)}));function Ua(e,t){return e===t||e!=e&&t!=t}var za=Wo(Pr),Ha=Wo((function(e,t){return e>=t})),qa=Ar(function(){return arguments}())?Ar:function(e){return nl(e)&&Re.call(e,"callee")&&!et.call(e,"callee")},Wa=r.isArray,Ka=ft?Ht(ft):function(e){return nl(e)&&Sr(e)==T};function Ya(e){return null!=e&&el(e.length)&&!Za(e)}function Ga(e){return nl(e)&&Ya(e)}var $a=pn||vs,Ja=dt?Ht(dt):function(e){return nl(e)&&Sr(e)==b};function Xa(e){if(!nl(e))return!1;var t=Sr(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Za(e){if(!tl(e))return!1;var t=Sr(e);return t==w||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ml(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nl(e){return null!=e&&"object"==typeof e}var rl=pt?Ht(pt):function(e){return nl(e)&&pi(e)==O};function ol(e){return"number"==typeof e||nl(e)&&Sr(e)==_}function il(e){if(!nl(e)||Sr(e)!=S)return!1;var t=Ke(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Ve}var al=ht?Ht(ht):function(e){return nl(e)&&Sr(e)==j},ll=mt?Ht(mt):function(e){return nl(e)&&pi(e)==x};function sl(e){return"string"==typeof e||!Wa(e)&&nl(e)&&Sr(e)==E}function ul(e){return"symbol"==typeof e||nl(e)&&Sr(e)==C}var cl=yt?Ht(yt):function(e){return nl(e)&&el(e.length)&&!!Ze[Sr(e)]},fl=Wo(Lr),dl=Wo((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ya(e))return sl(e)?an(e):Eo(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=pi(e);return(t==O?Qt:t==x?nn:Ul)(e)}function hl(e){return e?(e=vl(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=hl(e),n=t%1;return t==t?n?t-n:t:0}function yl(e){return e?ar(ml(e),0,p):0}function vl(e){if("number"==typeof e)return e;if(ul(e))return d;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zt(e);var n=he.test(e);return n||ye.test(e)?nt(e.slice(2),n?2:8):pe.test(e)?d:+e}function bl(e){return Co(e,Rl(e))}function gl(e){return null==e?"":lo(e)}var wl=To((function(e,t){if(Oi(t)||Ya(t))Co(t,Ml(t),e);else for(var n in t)Re.call(t,n)&&er(e,n,t[n])})),kl=To((function(e,t){Co(t,Rl(t),e)})),Ol=To((function(e,t,n,r){Co(t,Rl(t),e,r)})),_l=To((function(e,t,n,r){Co(t,Ml(t),e,r)})),Sl=ti(ir),Pl=Gr((function(e,t){e=Se(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&bi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Rl(a),s=-1,u=l.length;++s<u;){var c=l[s],f=e[c];(f===o||Ua(f,Ae[c])&&!Re.call(e,c))&&(e[c]=a[c])}return e})),jl=Gr((function(e){return e.push(o,Zo),vt(Il,o,e)}));function xl(e,t,n){var r=null==e?o:Or(e,t);return r===o?n:r}function El(e,t){return null!=e&&hi(e,t,xr)}var Cl=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),ts(os)),Al=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),li),Tl=Gr(Cr);function Ml(e){return Ya(e)?$n(e):Ir(e)}function Rl(e){return Ya(e)?$n(e,!0):function(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=Oi(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Dl=To((function(e,t,n){Br(e,t,n)})),Il=To((function(e,t,n,r){Br(e,t,n,r)})),Ll=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=bo(t,e),r||(r=t.length>1),t})),Co(e,ri(e),n),r&&(n=lr(n,7,Qo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Vl=ti((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return El(e,n)}))}(e,t)}));function Nl(e,t){if(null==e)return{};var n=Pt(ri(e),(function(e){return[e]}));return t=li(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Fl=$o(Ml),Bl=$o(Rl);function Ul(e){return null==e?[]:qt(e,Ml(e))}var zl=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return Xl(gl(e).toLowerCase())}function ql(e){return(e=gl(e))&&e.replace(be,$t).replace(We,"")}var Wl=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Kl=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yl=Do("toLowerCase"),Gl=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),$l=Io((function(e,t,n){return e+(n?" ":"")+Xl(t)})),Jl=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xl=Do("toUpperCase");function Zl(e,t,n){return e=gl(e),(t=n?o:t)===o?function(e){return $e.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(se)||[]}(e):e.match(t)||[]}var Ql=Gr((function(e,t){try{return vt(e,o,t)}catch(e){return Xa(e)?e:new ke(e)}})),es=ti((function(e,t){return gt(t,(function(t){t=Ni(t),or(e,t,Aa(e[t],e))})),e}));function ts(e){return function(){return e}}var ns=No(),rs=No(!0);function os(e){return e}function is(e){return Dr("function"==typeof e?e:lr(e,1))}var as=Gr((function(e,t){return function(n){return Cr(n,e,t)}})),ls=Gr((function(e,t){return function(n){return Cr(e,n,t)}}));function ss(e,t,n){var r=Ml(t),o=kr(t,r);null!=n||tl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Ml(t)));var i=!(tl(n)&&"chain"in n&&!n.chain),a=Za(e);return gt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Eo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function us(){}var cs=zo(Pt),fs=zo(kt),ds=zo(Ct);function ps(e){return gi(e)?Vt(Ni(e)):function(e){return function(t){return Or(t,e)}}(e)}var hs=qo(),ms=qo(!0);function ys(){return[]}function vs(){return!1}var bs,gs=Uo((function(e,t){return e+t}),0),ws=Yo("ceil"),ks=Uo((function(e,t){return e/t}),1),Os=Yo("floor"),_s=Uo((function(e,t){return e*t}),1),Ss=Yo("round"),Ps=Uo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new xe(i);return e=ml(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ea,Fn.assign=wl,Fn.assignIn=kl,Fn.assignInWith=Ol,Fn.assignWith=_l,Fn.at=Sl,Fn.before=Ca,Fn.bind=Aa,Fn.bindAll=es,Fn.bindKey=Ta,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Fn.chain=pa,Fn.chunk=function(e,t,n){t=(n?bi(e,t,n):t===o)?1:vn(ml(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,s=r(cn(i/t));a<i;)s[l++]=to(e,a,a+=t);return s},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return jt(Wa(n)?Eo(n):[n],yr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new xe(i);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Ml(e);return function(n){return sr(n,e,t)}}(lr(e,1))},Fn.constant=ts,Fn.countBy=ya,Fn.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.curryRight=function e(t,n,r){var i=Jo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.debounce=Ma,Fn.defaults=Pl,Fn.defaultsDeep=jl,Fn.defer=Ra,Fn.delay=Da,Fn.difference=Ui,Fn.differenceBy=zi,Fn.differenceWith=Hi,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ml(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ml(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0):[]},Fn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ml(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ml(r))<0&&(r+=i),r=n>r?0:yl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Wa(e)?Ot:mr)(e,li(t,3))},Fn.flatMap=function(e,t){return yr(Sa(e,t),1)},Fn.flatMapDeep=function(e,t){return yr(Sa(e,t),c)},Fn.flatMapDepth=function(e,t,n){return n=n===o?1:ml(n),yr(Sa(e,t),n)},Fn.flatten=Ki,Fn.flattenDeep=function(e){return null!=e&&e.length?yr(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===o?1:ml(t)):[]},Fn.flip=function(e){return Jo(e,512)},Fn.flow=ns,Fn.flowRight=rs,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(e){return null==e?[]:kr(e,Ml(e))},Fn.functionsIn=function(e){return null==e?[]:kr(e,Rl(e))},Fn.groupBy=ka,Fn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Fn.intersection=Gi,Fn.intersectionBy=$i,Fn.intersectionWith=Ji,Fn.invert=Cl,Fn.invertBy=Al,Fn.invokeMap=Oa,Fn.iteratee=is,Fn.keyBy=_a,Fn.keys=Ml,Fn.keysIn=Rl,Fn.map=Sa,Fn.mapKeys=function(e,t){var n={};return t=li(t,3),gr(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=li(t,3),gr(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Fn.matches=function(e){return Nr(lr(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,lr(t,1))},Fn.memoize=Ia,Fn.merge=Dl,Fn.mergeWith=Il,Fn.method=as,Fn.methodOf=ls,Fn.mixin=ss,Fn.negate=La,Fn.nthArg=function(e){return e=ml(e),Gr((function(t){return Ur(t,e)}))},Fn.omit=Ll,Fn.omitBy=function(e,t){return Nl(e,La(li(t)))},Fn.once=function(e){return Ca(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(n=r?o:n)||(n=null==n?[]:[n]),zr(e,t,n))},Fn.over=cs,Fn.overArgs=Va,Fn.overEvery=fs,Fn.overSome=ds,Fn.partial=Na,Fn.partialRight=Fa,Fn.partition=Pa,Fn.pick=Vl,Fn.pickBy=Nl,Fn.property=ps,Fn.propertyOf=function(e){return function(t){return null==e?o:Or(e,t)}},Fn.pull=Zi,Fn.pullAll=Qi,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,li(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Fn.pullAt=ea,Fn.range=hs,Fn.rangeRight=ms,Fn.rearg=Ba,Fn.reject=function(e,t){return(Wa(e)?Ot:mr)(e,La(li(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new xe(i);return Gr(e,t=t===o?t:ml(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===o)?1:ml(t),(Wa(e)?Xn:Jr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Xr(e,t,n,r)},Fn.shuffle=function(e){return(Wa(e)?Zn:eo)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=r):(t=null==t?0:ml(t),n=n===o?r:ml(n)),to(e,t,n)):[]},Fn.sortBy=ja,Fn.sortedUniq=function(e){return e&&e.length?io(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?io(e,li(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=gl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=lo(t))&&Zt(e)?wo(an(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new xe(i);return t=null==t?0:vn(ml(t),0),Gr((function(n){var r=n[t],o=wo(n,0,t);return r&&jt(o,r),vt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ml(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ml(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?fo(e,li(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new xe(i);return tl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ma(e,t,{leading:r,maxWait:t,trailing:o})},Fn.thru=ha,Fn.toArray=pl,Fn.toPairs=Fl,Fn.toPairsIn=Bl,Fn.toPath=function(e){return Wa(e)?Pt(e,Ni):ul(e)?[e]:Eo(Vi(gl(e)))},Fn.toPlainObject=bl,Fn.transform=function(e,t,n){var r=Wa(e),o=r||$a(e)||cl(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tl(e)&&Za(i)?Bn(Ke(e)):{}}return(o?gt:gr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Ea(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=oa,Fn.uniq=function(e){return e&&e.length?so(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?so(e,li(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Fn.unset=function(e,t){return null==e||uo(e,t)},Fn.unzip=ia,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:co(e,t,vo(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,vo(n),r)},Fn.values=Ul,Fn.valuesIn=function(e){return null==e?[]:qt(e,Rl(e))},Fn.without=la,Fn.words=Zl,Fn.wrap=function(e,t){return Na(vo(t),e)},Fn.xor=sa,Fn.xorBy=ua,Fn.xorWith=ca,Fn.zip=fa,Fn.zipObject=function(e,t){return mo(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Xr)},Fn.zipWith=da,Fn.entries=Fl,Fn.entriesIn=Bl,Fn.extend=kl,Fn.extendWith=Ol,ss(Fn,Fn),Fn.add=gs,Fn.attempt=Ql,Fn.camelCase=zl,Fn.capitalize=Hl,Fn.ceil=ws,Fn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vl(n))==n?n:0),t!==o&&(t=(t=vl(t))==t?t:0),ar(vl(e),t,n)},Fn.clone=function(e){return lr(e,4)},Fn.cloneDeep=function(e){return lr(e,5)},Fn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:o)},Fn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:o)},Fn.conformsTo=function(e,t){return null==t||sr(e,t,Ml(t))},Fn.deburr=ql,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=ks,Fn.endsWith=function(e,t,n){e=gl(e),t=lo(t);var r=e.length,i=n=n===o?r:ar(ml(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Fn.eq=Ua,Fn.escape=function(e){return(e=gl(e))&&G.test(e)?e.replace(K,Jt):e},Fn.escapeRegExp=function(e){return(e=gl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=Wa(e)?kt:pr;return n&&bi(e,t,n)&&(t=o),r(e,li(t,3))},Fn.find=va,Fn.findIndex=qi,Fn.findKey=function(e,t){return Tt(e,li(t,3),gr)},Fn.findLast=ba,Fn.findLastIndex=Wi,Fn.findLastKey=function(e,t){return Tt(e,li(t,3),wr)},Fn.floor=Os,Fn.forEach=ga,Fn.forEachRight=wa,Fn.forIn=function(e,t){return null==e?e:vr(e,li(t,3),Rl)},Fn.forInRight=function(e,t){return null==e?e:br(e,li(t,3),Rl)},Fn.forOwn=function(e,t){return e&&gr(e,li(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,li(t,3))},Fn.get=xl,Fn.gt=za,Fn.gte=Ha,Fn.has=function(e,t){return null!=e&&hi(e,t,jr)},Fn.hasIn=El,Fn.head=Yi,Fn.identity=os,Fn.includes=function(e,t,n,r){e=Ya(e)?e:Ul(e),n=n&&!r?ml(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),sl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Rt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ml(n);return o<0&&(o=vn(r+o,0)),Rt(e,t,o)},Fn.inRange=function(e,t,n){return t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n){return e>=bn(t,n)&&e<vn(t,n)}(e=vl(e),t,n)},Fn.invoke=Tl,Fn.isArguments=qa,Fn.isArray=Wa,Fn.isArrayBuffer=Ka,Fn.isArrayLike=Ya,Fn.isArrayLikeObject=Ga,Fn.isBoolean=function(e){return!0===e||!1===e||nl(e)&&Sr(e)==v},Fn.isBuffer=$a,Fn.isDate=Ja,Fn.isElement=function(e){return nl(e)&&1===e.nodeType&&!il(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||cl(e)||qa(e)))return!e.length;var t=pi(e);if(t==O||t==x)return!e.size;if(Oi(e))return!Ir(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Tr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Tr(e,t,o,n):!!r},Fn.isError=Xa,Fn.isFinite=function(e){return"number"==typeof e&&hn(e)},Fn.isFunction=Za,Fn.isInteger=Qa,Fn.isLength=el,Fn.isMap=rl,Fn.isMatch=function(e,t){return e===t||Mr(e,t,ui(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,ui(t),n)},Fn.isNaN=function(e){return ol(e)&&e!=+e},Fn.isNative=function(e){if(ki(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=ol,Fn.isObject=tl,Fn.isObjectLike=nl,Fn.isPlainObject=il,Fn.isRegExp=al,Fn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=f},Fn.isSet=ll,Fn.isString=sl,Fn.isSymbol=ul,Fn.isTypedArray=cl,Fn.isUndefined=function(e){return e===o},Fn.isWeakMap=function(e){return nl(e)&&pi(e)==A},Fn.isWeakSet=function(e){return nl(e)&&"[object WeakSet]"==Sr(e)},Fn.join=function(e,t){return null==e?"":mn.call(e,t)},Fn.kebabCase=Wl,Fn.last=Xi,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ml(n))<0?vn(r+i,0):bn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Mt(e,It,i,!0)},Fn.lowerCase=Kl,Fn.lowerFirst=Yl,Fn.lt=fl,Fn.lte=dl,Fn.max=function(e){return e&&e.length?hr(e,os,Pr):o},Fn.maxBy=function(e,t){return e&&e.length?hr(e,li(t,2),Pr):o},Fn.mean=function(e){return Lt(e,os)},Fn.meanBy=function(e,t){return Lt(e,li(t,2))},Fn.min=function(e){return e&&e.length?hr(e,os,Lr):o},Fn.minBy=function(e,t){return e&&e.length?hr(e,li(t,2),Lr):o},Fn.stubArray=ys,Fn.stubFalse=vs,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=_s,Fn.nth=function(e,t){return e&&e.length?Ur(e,ml(t)):o},Fn.noConflict=function(){return it._===this&&(it._=Ne),this},Fn.noop=us,Fn.now=xa,Fn.pad=function(e,t,n){e=gl(e);var r=(t=ml(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(fn(o),n)+e+Ho(cn(o),n)},Fn.padEnd=function(e,t,n){e=gl(e);var r=(t=ml(t))?on(e):0;return t&&r<t?e+Ho(t-r,n):e},Fn.padStart=function(e,t,n){e=gl(e);var r=(t=ml(t))?on(e):0;return t&&r<t?Ho(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(gl(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hl(e),t===o?(t=e,e=0):t=hl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=kn();return bn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Fn.reduce=function(e,t,n){var r=Wa(e)?xt:Ft,o=arguments.length<3;return r(e,li(t,4),n,o,fr)},Fn.reduceRight=function(e,t,n){var r=Wa(e)?Et:Ft,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},Fn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===o)?1:ml(t),Yr(gl(e),t)},Fn.replace=function(){var e=arguments,t=gl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,i=(t=bo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ni(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Fn.round=Ss,Fn.runInContext=e,Fn.sample=function(e){return(Wa(e)?Jn:$r)(e)},Fn.size=function(e){if(null==e)return 0;if(Ya(e))return sl(e)?on(e):e.length;var t=pi(e);return t==O||t==x?e.size:Ir(e).length},Fn.snakeCase=Gl,Fn.some=function(e,t,n){var r=Wa(e)?Ct:no;return n&&bi(e,t,n)&&(t=o),r(e,li(t,3))},Fn.sortedIndex=function(e,t){return ro(e,t)},Fn.sortedIndexBy=function(e,t,n){return oo(e,t,li(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Ua(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oo(e,t,li(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Ua(e[n],t))return n}return-1},Fn.startCase=$l,Fn.startsWith=function(e,t,n){return e=gl(e),n=null==n?0:ar(ml(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},Fn.subtract=Ps,Fn.sum=function(e){return e&&e.length?Bt(e,os):0},Fn.sumBy=function(e,t){return e&&e.length?Bt(e,li(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&bi(e,t,n)&&(t=o),e=gl(e),t=Ol({},t,r,Xo);var i,a,l=Ol({},t.imports,r.imports,Xo),s=Ml(l),u=qt(l,s),c=0,f=t.interpolate||ge,d="__p += '",p=Pe((t.escape||ge).source+"|"+f.source+"|"+(f===X?fe:ge).source+"|"+(t.evaluate||ge).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";e.replace(p,(function(t,n,r,o,l,s){return r||(r=o),d+=e.slice(c,s).replace(we,Xt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),d+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(z,""):d).replace(H,"$1").replace(q,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=Ql((function(){return Oe(s,h+"return "+d).apply(o,u)}));if(y.source=d,Xa(y))throw y;return y},Fn.times=function(e,t){if((e=ml(e))<1||e>f)return[];var n=p,r=bn(e,p);t=li(t),e-=p;for(var o=Ut(r,t);++n<e;)t(n);return o},Fn.toFinite=hl,Fn.toInteger=ml,Fn.toLength=yl,Fn.toLower=function(e){return gl(e).toLowerCase()},Fn.toNumber=vl,Fn.toSafeInteger=function(e){return e?ar(ml(e),-9007199254740991,f):0===e?e:0},Fn.toString=gl,Fn.toUpper=function(e){return gl(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=gl(e))&&(n||t===o))return zt(e);if(!e||!(t=lo(t)))return e;var r=an(e),i=an(t);return wo(r,Kt(r,i),Yt(r,i)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=gl(e))&&(n||t===o))return e.slice(0,ln(e)+1);if(!e||!(t=lo(t)))return e;var r=an(e);return wo(r,0,Yt(r,an(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=gl(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=lo(t)))return e;var r=an(e);return wo(r,Kt(r,an(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(tl(t)){var i="separator"in t?t.separator:i;n="length"in t?ml(t.length):n,r="omission"in t?lo(t.omission):r}var a=(e=gl(e)).length;if(Zt(e)){var l=an(e);a=l.length}if(n>=a)return e;var s=n-on(r);if(s<1)return r;var u=l?wo(l,0,s).join(""):e.slice(0,s);if(i===o)return u+r;if(l&&(s+=u.length-s),al(i)){if(e.slice(s).search(i)){var c,f=u;for(i.global||(i=Pe(i.source,gl(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===o?s:d)}}else if(e.indexOf(lo(i),s)!=s){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},Fn.unescape=function(e){return(e=gl(e))&&Y.test(e)?e.replace(W,sn):e},Fn.uniqueId=function(e){var t=++De;return gl(e)+t},Fn.upperCase=Jl,Fn.upperFirst=Xl,Fn.each=ga,Fn.eachRight=wa,Fn.first=Yi,ss(Fn,(bs={},gr(Fn,(function(e,t){Re.call(Fn.prototype,t)||(bs[t]=e)})),bs),{chain:!1}),Fn.VERSION="4.17.21",gt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),gt(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===o?1:vn(ml(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),gt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),gt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),gt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(os)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Cr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(La(li(e)))},Hn.prototype.slice=function(e,t){e=ml(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ml(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(p)},gr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,s=t instanceof Hn,u=l[0],c=s||Wa(t),f=function(e){var t=i.apply(Fn,jt([e],l));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=s&&!p;if(!a&&c){t=m?t:new Hn(this);var y=e.apply(t,l);return y.__actions__.push({func:ha,args:[f],thisArg:o}),new zn(y,d)}return h&&m?e.apply(this,l):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),gt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ee[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),gr(Hn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Re.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Fo(o,2).name]=[{name:"wrapper",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Eo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Eo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Eo(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,u=r?l:a-1,c=this.__iteratees__,f=c.length,d=0,p=bn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return po(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var m=-1,y=e[u+=t];++m<f;){var v=c[m],b=v.iteratee,g=v.type,w=b(y);if(2==g)y=w;else if(!w){if(1==g)continue e;break e}}h[d++]=y}return h},Fn.prototype.at=ma,Fn.prototype.chain=function(){return pa(this)},Fn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===o&&(this.__values__=pl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new zn(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,at&&(Fn.prototype[at]=function(){return this}),Fn}();it._=un,(r=function(){return un}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},88306:function(e,t,n){var r=n(83369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},57557:function(e,t,n){var r=n(29932),o=n(85990),i=n(57406),a=n(71811),l=n(98363),s=n(60696),u=n(99021),c=n(46904),f=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),l(e,c(e),n),u&&(n=o(n,7,s));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},45245:function(e,t,n){var r=n(78302),o=n(88016),i=n(40554),a=n(79833),l=Math.ceil,s=Math.floor;e.exports=function(e,t,n){e=a(e);var u=(t=i(t))?o(e):0;if(!t||u>=t)return e;var c=(t-u)/2;return r(s(c),n)+e+r(l(c),n)}},59854:function(e,t,n){var r=n(89179)("round");e.exports=r},36968:function(e,t,n){var r=n(10611);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},18601:function(e,t,n){var r=n(14841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},40554:function(e,t,n){var r=n(18601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},79833:function(e,t,n){var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},92742:function(e,t,n){var r=n(80531),o=n(27561),i=n(40180),a=n(5512),l=n(89817),s=n(83140),u=n(79833);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return o(e);if(!e||!(t=r(t)))return e;var c=s(e),f=s(t),d=l(c,f),p=a(c,f)+1;return i(c,d,p).join("")}},85177:function(e,t,n){var r,o,i;!function(a,l){"use strict";e.exports?e.exports=l(n(30381)):(o=[n(30381)],void 0===(i="function"==typeof(r=l)?r.apply(t,o):r)||(e.exports=i))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},o={},i={},a={};e&&"string"==typeof e.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var l=e.version.split("."),s=+l[0],u=+l[1];function c(e){return e>96?e-87:e>64?e-29:e-48}function f(e){var t=0,n=e.split("."),r=n[0],o=n[1]||"",i=1,a=0,l=1;for(45===e.charCodeAt(0)&&(t=1,l=-1);t<r.length;t++)a=60*a+c(r.charCodeAt(t));for(t=0;t<o.length;t++)i/=60,a+=c(o.charCodeAt(t))*i;return a*l}function d(e){for(var t=0;t<e.length;t++)e[t]=f(e[t])}function p(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function h(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),o=t[4].split(" ");return d(n),d(r),d(o),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(o,r.length),{name:t[0],abbrs:p(t[1].split(" "),r),offsets:p(n,r),untils:o,population:0|t[5]}}function m(e){e&&this._set(h(e))}function y(e,t){this.name=e,this.zones=t}function v(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function b(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function g(e,t){for(var n,r;r=6e4*((t.at-e.at)/12e4|0);)(n=new v(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}function w(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function k(e,t){var n,r;for(d(t),n=0;n<t.length;n++)r=t[n],a[r]=a[r]||{},a[r][e]=!0}function O(e){var t,n,r,o=e.length,l={},s=[];for(t=0;t<o;t++)for(n in r=a[e[t].offset]||{})r.hasOwnProperty(n)&&(l[n]=!0);for(t in l)l.hasOwnProperty(t)&&s.push(i[t]);return s}function _(e){return(e||"").toLowerCase().replace(/\//g,"_")}function S(e){var t,r,o,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)a=_(r=(o=e[t].split("|"))[0]),n[a]=e[t],i[a]=r,k(a,o[2].split(" "))}function P(e,t){e=_(e);var o,a=n[e];return a instanceof m?a:"string"==typeof a?(a=new m(a),n[e]=a,a):r[e]&&t!==P&&(o=P(r[e],P))?((a=n[e]=new m)._set(o),a.name=i[e],a):null}function j(e){var t,n,o,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)o=_((n=e[t].split("|"))[0]),a=_(n[1]),r[o]=a,i[o]=n[0],r[a]=o,i[a]=n[1]}function x(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function E(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function C(t){var n=Array.prototype.slice.call(arguments,0,-1),r=arguments[arguments.length-1],o=P(r),i=e.utc.apply(null,n);return o&&!e.isMoment(t)&&x(i)&&i.add(o.parse(i),"minutes"),i.tz(r),i}(s<2||2===s&&u<6)&&E("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,r=this.untils;for(t=0;t<r.length;t++)if(n<r[t])return t},countries:function(){var e=this.name;return Object.keys(o).filter((function(t){return-1!==o[t].zones.indexOf(e)}))},parse:function(e){var t,n,r,o,i=+e,a=this.offsets,l=this.untils,s=l.length-1;for(o=0;o<s;o++)if(t=a[o],n=a[o+1],r=a[o?o-1:o],t<n&&C.moveAmbiguousForward?t=n:t>r&&C.moveInvalidForward&&(t=r),i<l[o]-6e4*t)return a[o];return a[s]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return E("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},b.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},C.version="0.5.40",C.dataVersion="",C._zones=n,C._links=r,C._names=i,C._countries=o,C.add=S,C.link=j,C.load=function(e){S(e.zones),j(e.links),function(e){var t,n,r,i;if(e&&e.length)for(t=0;t<e.length;t++)n=(i=e[t].split("|"))[0].toUpperCase(),r=i[1].split(" "),o[n]=new y(n,r)}(e.countries),C.dataVersion=e.version},C.zone=P,C.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,E("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!P(t)},C.guess=function(e){return t&&!e||(t=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=i[_(e)];if(t)return t;E("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,r,o,a=function(){var e,t,n,r=(new Date).getFullYear()-2,o=new v(new Date(r,0,1)),i=[o];for(n=1;n<48;n++)(t=new v(new Date(r,n,1))).offset!==o.offset&&(e=g(o,t),i.push(e),i.push(new v(new Date(e.at+6e4)))),o=t;for(n=0;n<4;n++)i.push(new v(new Date(r+n,0,1))),i.push(new v(new Date(r+n,6,1)));return i}(),l=a.length,s=O(a),u=[];for(r=0;r<s.length;r++){for(n=new b(P(s[r]),l),o=0;o<l;o++)n.scoreOffsetAt(a[o]);u.push(n)}return u.sort(w),u.length>0?u[0].zone.name:void 0}()),t},C.names=function(){var e,t=[];for(e in i)i.hasOwnProperty(e)&&(n[e]||n[r[e]])&&i[e]&&t.push(i[e]);return t.sort()},C.Zone=m,C.unpack=h,C.unpackBase60=f,C.needsOffset=x,C.moveInvalidForward=!0,C.moveAmbiguousForward=!1,C.countries=function(){return Object.keys(o)},C.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=o[n]||null))return null;var r=e.zones.sort();return t?r.map((function(e){return{name:e,offset:P(e).utcOffset(new Date)}})):r};var A,T=e.fn;function M(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function R(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=C,e.defaultZone=null,e.updateOffset=function(t,n){var r,o=e.defaultZone;if(void 0===t._z&&(o&&x(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z)if(r=t._z.utcOffset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset){var i=t._z;t.utcOffset(-r,n),t._z=i}else t.zone(r,n)},T.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=P(t),this._z?e.updateOffset(this,n):E("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},T.zoneName=M(T.zoneName),T.zoneAbbr=M(T.zoneAbbr),T.utc=R(T.utc),T.local=R(T.local),T.utcOffset=(A=T.utcOffset,function(){return arguments.length>0&&(this._z=null),A.apply(this,arguments)}),e.tz.setDefault=function(t){return(s<2||2===s&&u<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?P(t):null,e};var D=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),e}))},30381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return St(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function y(e){var t=p(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=r.momentProperties=[],b=!1;function g(e,t){var n,r,o,i=v.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)s(o=t[r=v[n]])||(e[r]=o);return e}function w(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function O(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,i,l,s=[],u=arguments.length;for(i=0;i<u;i++){if(o="","object"==typeof arguments[i]){for(l in o+="\n["+i+"] ",arguments[0])a(arguments[0],l)&&(o+=l+": "+arguments[0][l]+", ");o=o.slice(0,-2)}else o=arguments[i];s.push(o)}O(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,P={};function j(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),P[e]||(O(t),P[e]=!0)}function x(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,t){var n,r=d({},e);for(n in t)a(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&i(e[n])&&(r[n]=d({},r[n]));return r}function C(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};function A(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},D={};function I(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(D[e]=o),t&&(D[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(D[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function L(e,t){return e.isValid()?(t=V(t,e.localeData()),R[t]=R[t]||function(e){var t,n,r,o=e.match(T);for(t=0,n=o.length;t<n;t++)D[o[t]]?o[t]=D[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=x(o[r])?o[r].call(t,e):o[r];return i}}(t),R[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;n>=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var N={};function F(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function B(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)a(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var z={};function H(e,t){z[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function K(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=W(t)),n}function Y(e,t){return function(n){return null!=n?($(this,e,n),r.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=K(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,X=/\d/,Z=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,le=/[+-]?\d{1,6}/,se=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){J[e]=x(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(J,e)?J[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ye={};function ve(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),u(t)&&(o=function(e,n){n[t]=K(e)}),r=e.length,n=0;n<r;n++)ye[e[n]]=o}function be(e,t){ve(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function ge(e,t,n){null!=t&&a(ye,e)&&ye[e](t,n._a,n,e)}var we;function ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),H("month",8),pe("M",ne),pe("MM",ne,Z),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[1]=K(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:h(n).invalidMonth=e}));var Oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe=de,je=de;function xe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,a))?o:null:-1!==(o=we.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,a))||-1!==(o=we.call(this._longMonthsParse,a))?o:null:-1!==(o=we.call(this._longMonthsParse,a))||-1!==(o=we.call(this._shortMonthsParse,a))?o:null}function Ee(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=K(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ke(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ce(e){return null!=e?(Ee(this,e),r.updateOffset(this,!0),this):G(this,"Month")}function Ae(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=me(r[t]),o[t]=me(o[t]);for(t=0;t<24;t++)i[t]=me(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Te(e){return q(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),F("year","y"),H("year",1),pe("Y",ue),pe("YY",ne,Z),pe("YYYY",ae,ee),pe("YYYYY",le,te),pe("YYYYYY",le,te),ve(["YYYYY","YYYYYY"],0),ve("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):K(e)})),ve("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return K(e)+(K(e)>68?1900:2e3)};var Me=Y("FullYear",!0);function Re(e,t,n,r,o,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function De(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function Le(e,t,n,r,o){var i,a,l=1+7*(t-1)+(7+n-r)%7+Ie(e,r,o);return l<=0?a=Te(i=e-1)+l:l>Te(e)?(i=e+1,a=l-Te(e)):(i=e,a=l),{year:i,dayOfYear:a}}function Ve(e,t,n){var r,o,i=Ie(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ne(o=e.year()-1,t,n):a>Ne(e.year(),t,n)?(r=a-Ne(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ne(e,t,n){var r=Ie(e,t,n),o=Ie(e+1,t,n);return(Te(e)-r+o)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),H("week",5),H("isoWeek",5),pe("w",ne),pe("ww",ne,Z),pe("W",ne),pe("WW",ne,Z),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=K(e)}));function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=K(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=de,qe=de,We=de;function Ke(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))||-1!==(o=we.call(this._shortWeekdaysParse,a))||-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))||-1!==(o=we.call(this._weekdaysParse,a))||-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))||-1!==(o=we.call(this._weekdaysParse,a))||-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null}function Ye(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],l=[],s=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),o=me(this.weekdaysShort(n,"")),i=me(this.weekdays(n,"")),a.push(r),l.push(o),s.push(i),u.push(r),u.push(o),u.push(i);a.sort(e),l.sort(e),s.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function $e(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ge),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ge.apply(this)+A(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ge.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),$e("a",!0),$e("A",!1),F("hour","h"),H("hour",13),pe("a",Je),pe("A",Je),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,Z),pe("hh",ne,Z),pe("kk",ne,Z),pe("hmm",re),pe("hmmss",oe),pe("Hmm",re),pe("Hmmss",oe),ve(["H","HH"],3),ve(["k","kk"],(function(e,t,n){var r=K(e);t[3]=24===r?0:r})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[3]=K(e),h(n).bigHour=!0})),ve("hmm",(function(e,t,n){var r=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r)),h(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r,2)),t[5]=K(e.substr(o)),h(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var r=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r))})),ve("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r,2)),t[5]=K(e.substr(o))}));var Xe=Y("Hours",!0);var Ze,Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:_e,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:ze,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var n=null;if(void 0===et[t]&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=Ze._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),it(n)}catch(e){et[t]=null}return et[t]}function it(e,t){var n;return e&&((n=s(t)?lt(e):at(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function at(e,t){if(null!==t){var n,r=Qe;if(t.abbr=e,null!=et[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new C(E(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),it(e),et[e]}return delete et[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=rt(e[i]).split("-")).length,n=(n=rt(e[i+1]))?n.split("-"):null;t>0;){if(r=ot(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(o,n)>=t-1)break;t--}i++}return Ze}(e)}function st(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ke(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,o,i,a,l=e._i,s=ut.exec(l)||ct.exec(l),u=dt.length,c=pt.length;if(s){for(h(e).iso=!0,t=0,n=u;t<n;t++)if(dt[t][1].exec(s[1])){o=dt[t][0],r=!1!==dt[t][2];break}if(null==o)return void(e._isValid=!1);if(s[3]){for(t=0,n=c;t<n;t++)if(pt[t][1].exec(s[3])){i=(s[2]||" ")+pt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(s[4]){if(!ft.exec(s[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Ot(e)}else e._isValid=!1}function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function gt(e){var t,n,r,o,i,a,l,s,u=mt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],o=u[2],i=u[5],a=u[6],l=u[7],s=[bt(n),_e.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(a,10)],l&&s.push(parseInt(l,10)),t=s,!function(e,t,n){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return yt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(u[8],u[9],u[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,n,o,i,a,l=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,i,a,l,s,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=wt(t.GG,e._a[0],Ve(Pt(),1,4).year),r=wt(t.W,1),((o=wt(t.E,1))<1||o>7)&&(s=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Ve(Pt(),i,a),n=wt(t.gg,e._a[0],u.year),r=wt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(s=!0)):o=i),r<1||r>Ne(n,i,a)?h(e)._overflowWeeks=!0:null!=s?h(e)._overflowWeekday=!0:(l=Le(n,r,o,i,a),e._a[0]=l.year,e._dayOfYear=l.dayOfYear)}(e),null!=e._dayOfYear&&(a=wt(e._a[0],o[0]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=De(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=o[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:Re).apply(null,l),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function Ot(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,o,i,a,l,s,u=""+e._i,c=u.length,f=0;for(s=(o=V(e._f,e._locale).match(T)||[]).length,t=0;t<s;t++)i=o[t],(n=(u.match(he(i,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&h(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),f+=n.length),D[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ge(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-f,u.length>0&&h(e).unusedInput.push(u),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(l=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(l,e._a[0])),kt(e),st(e)}else gt(e);else vt(e)}function _t(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(st(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,r,o,i,a,l=!1,s=e._f.length;if(0===s)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<s;o++)i=0,a=!1,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Ot(t),m(t)&&(a=!0),i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,l?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(l=!0));d(e,n||t)}(e):n?Ot(e):function(e){var t=e._i;s(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,gt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),kt(e)):i(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),kt(e)}}(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function St(e,t,n,r,a){var s,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(s=new w(st(_t(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Pt(e,t,n,r){return St(e,t,n,r,!1)}r.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var jt=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),xt=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Et(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function At(e){var t=U(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,l=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=Ct.length;for(t in e)if(a(e,t)&&(-1===we.call(Ct,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[Ct[n]]){if(r)return!1;parseFloat(e[Ct[n]])!==K(e[Ct[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*c+6e4*u+1e3*s*60*60,this._days=+l+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=lt(),this._bubble()}function Tt(e){return e instanceof At}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,t){I(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)}))}Rt("Z",":"),Rt("ZZ",""),pe("Z",fe),pe("ZZ",fe),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=It(fe,e)}));var Dt=/([\+\-]|\d\d)/gi;function It(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Dt)||["-",0,0])[1]+K(n[2]))?0:"+"===n[0]?r:-r}function Lt(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(k(e)||c(e)?e.valueOf():Pt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Pt(e).local()}function Vt(e){return-Math.round(e._d.getTimezoneOffset())}function Nt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,o,i,l,s,c=e,f=null;return Tt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(f=Ft.exec(e))?(n="-"===f[1]?-1:1,c={y:0,d:K(f[2])*n,h:K(f[3])*n,m:K(f[4])*n,s:K(f[5])*n,ms:K(Mt(1e3*f[6]))*n}):(f=Bt.exec(e))?(n="-"===f[1]?-1:1,c={y:zt(f[2],n),M:zt(f[3],n),w:zt(f[4],n),d:zt(f[5],n),h:zt(f[6],n),m:zt(f[7],n),s:zt(f[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=Pt(c.from),l=Pt(c.to),o=i.isValid()&&l.isValid()?(l=Lt(l,i),i.isBefore(l)?s=Ht(i,l):((s=Ht(l,i)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=o.milliseconds,c.M=o.months),r=new At(c),Tt(e)&&a(e,"_locale")&&(r._locale=e._locale),Tt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(j(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Wt(this,Ut(n,r),e),this}}function Wt(e,t,n,o){var i=t._milliseconds,a=Mt(t._days),l=Mt(t._months);e.isValid()&&(o=null==o||o,l&&Ee(e,G(e,"Month")+l*n),a&&$(e,"Date",G(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||l))}Ut.fn=At.prototype,Ut.invalid=function(){return Ut(NaN)};var Kt=qt(1,"add"),Yt=qt(-1,"subtract");function Gt(e){return"string"==typeof e||e instanceof String}function $t(e){return k(e)||c(e)||Gt(e)||u(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Gt(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!l(e),o=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=s.length;for(t=0;t<u;t+=1)n=s[t],o=o||a(e,n);return r&&o}(e)||null==e}function Jt(e){var t,n=i(e)&&!l(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||a(e,o[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}var tn=1e3,nn=6e4,rn=36e5,on=126227808e5;function an(e,t){return(e%t+t)%t}function ln(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-on:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-on:Date.UTC(e,t,n)}function un(e,t){return t.erasAbbrRegex(e)}function cn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),o.push(me(a[e].narrow)),i.push(me(a[e].name)),i.push(me(a[e].abbr)),i.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function fn(e,t){I(0,[e,e.length],0,t)}function dn(e,t,n,r,o){var i;return null==e?Ve(this,r,o).year:(t>(i=Ne(e,r,o))&&(t=i),pn.call(this,e,t,n,r,o))}function pn(e,t,n,r,o){var i=Le(e,t,n,r,o),a=De(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),pe("N",un),pe("NN",un),pe("NNN",un),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?h(n).era=o:h(n).invalidEra=e})),pe("y",se),pe("yy",se),pe("yyy",se),pe("yyyy",se),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||se})),ve(["y","yy","yyy","yyyy"],0),ve(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),fn("gggg","weekYear"),fn("ggggg","weekYear"),fn("GGGG","isoWeekYear"),fn("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ne,Z),pe("gg",ne,Z),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",le,te),pe("ggggg",le,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=K(e)})),be(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),F("quarter","Q"),H("quarter",7),pe("Q",X),ve("Q",(function(e,t){t[1]=3*(K(e)-1)})),I("D",["DD",2],"Do","date"),F("date","D"),H("date",9),pe("D",ne),pe("DD",ne,Z),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],2),ve("Do",(function(e,t){t[2]=K(e.match(ne)[0])}));var hn=Y("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),H("dayOfYear",4),pe("DDD",ie),pe("DDDD",Q),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=K(e)})),I("m",["mm",2],0,"minute"),F("minute","m"),H("minute",14),pe("m",ne),pe("mm",ne,Z),ve(["m","mm"],4);var mn=Y("Minutes",!1);I("s",["ss",2],0,"second"),F("second","s"),H("second",15),pe("s",ne),pe("ss",ne,Z),ve(["s","ss"],5);var yn,vn,bn=Y("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),H("millisecond",16),pe("S",ie,X),pe("SS",ie,Z),pe("SSS",ie,Q),yn="SSSS";yn.length<=9;yn+="S")pe(yn,se);function gn(e,t){t[6]=K(1e3*("0."+e))}for(yn="S";yn.length<=9;yn+="S")ve(yn,gn);vn=Y("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var wn=w.prototype;function kn(e){return e}wn.add=Kt,wn.calendar=function(e,t){1===arguments.length&&(arguments[0]?$t(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Pt(),o=Lt(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(x(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Pt(n)))},wn.clone=function(){return new w(this)},wn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Lt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Xt(this,r)/12;break;case"month":i=Xt(this,r);break;case"quarter":i=Xt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:W(i)},wn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:ln,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rn-an(t+(this._isUTC?0:this.utcOffset()*nn),rn)-1;break;case"minute":t=this._d.valueOf(),t+=nn-an(t,nn)-1;break;case"second":t=this._d.valueOf(),t+=tn-an(t,tn)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=L(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Pt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(Pt(),e)},wn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Pt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(Pt(),e)},wn.get=function(e){return x(this[e=B(e)])?this[e]():this},wn.invalidAt=function(){return h(this).overflow},wn.isAfter=function(e,t){var n=k(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},wn.isBefore=function(e,t){var n=k(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},wn.isBetween=function(e,t,n,r){var o=k(e)?e:Pt(e),i=k(t)?t:Pt(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))},wn.isSame=function(e,t){var n,r=k(e)?e:Pt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},wn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},wn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},wn.isValid=function(){return m(this)},wn.lang=Qt,wn.locale=Zt,wn.localeData=en,wn.max=xt,wn.min=jt,wn.parsingFlags=function(){return d({},h(this))},wn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:z[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=U(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(x(this[e=B(e)]))return this[e](t);return this},wn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?sn:ln,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=an(t+(this._isUTC?0:this.utcOffset()*nn),rn);break;case"minute":t=this._d.valueOf(),t-=an(t,nn);break;case"second":t=this._d.valueOf(),t-=an(t,tn)}return this._d.setTime(t),r.updateOffset(this,!0),this},wn.subtract=Yt,wn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},wn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},wn.toDate=function(){return new Date(this.valueOf())},wn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?L(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(n,"Z")):L(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(wn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},wn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},wn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},wn.eraYear=function(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()},wn.year=Me,wn.isLeapYear=function(){return q(this.year())},wn.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=Ce,wn.daysInMonth=function(){return ke(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},wn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ne(this.weekYear(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},wn.isoWeeksInISOWeekYear=function(){return Ne(this.isoWeekYear(),1,4)},wn.date=hn,wn.day=wn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},wn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},wn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},wn.hour=wn.hours=Xe,wn.minute=wn.minutes=mn,wn.second=wn.seconds=bn,wn.millisecond=wn.milliseconds=vn,wn.utcOffset=function(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Vt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Wt(this,Ut(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Vt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Nt,wn.isUTC=Nt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=_("dates accessor is deprecated. Use date instead.",hn),wn.months=_("months accessor is deprecated. Use month instead",Ce),wn.years=_("years accessor is deprecated. Use year instead",Me),wn.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),wn.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return g(t,this),(t=_t(t))._a?(e=t._isUTC?p(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&K(e[r])!==K(t[r]))&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var On=C.prototype;function _n(e,t,n,r){var o=lt(),i=p().set(r,t);return o[n](i,e)}function Sn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return _n(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=_n(e,r,n,"month");return o}function Pn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=lt(),a=e?i._week.dow:0,l=[];if(null!=n)return _n(t,(n+a)%7,r,"day");for(o=0;o<7;o++)l[o]=_n(t,(o+a)%7,r,"day");return l}On.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return x(r)?r.call(t,n):r},On.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(T).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},On.invalidDate=function(){return this._invalidDate},On.ordinal=function(e){return this._ordinal.replace("%d",e)},On.preparse=kn,On.postformat=kn,On.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return x(o)?o(e,t,n,r):o.replace(/%d/i,e)},On.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)},On.set=function(e){var t,n;for(n in e)a(e,n)&&(x(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},On.eras=function(e,t){var n,o,i,a=this._eras||lt("en")._eras;for(n=0,o=a.length;n<o;++n)switch("string"==typeof a[n].since&&(i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=r(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a},On.erasParse=function(e,t,n){var r,o,i,a,l,s=this.eras();for(e=e.toUpperCase(),r=0,o=s.length;r<o;++r)if(i=s[r].name.toUpperCase(),a=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[r];break;case"NNNN":if(i===e)return s[r];break;case"NNNNN":if(l===e)return s[r]}else if([i,a,l].indexOf(e)>=0)return s[r]},On.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},On.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||cn.call(this),e?this._erasAbbrRegex:this._erasRegex},On.erasNameRegex=function(e){return a(this,"_erasNameRegex")||cn.call(this),e?this._erasNameRegex:this._erasRegex},On.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||cn.call(this),e?this._erasNarrowRegex:this._erasRegex},On.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Se).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},On.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Se.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},On.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return xe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},On.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},On.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},On.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},On.firstDayOfYear=function(){return this._week.doy},On.firstDayOfWeek=function(){return this._week.dow},On.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},On.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},On.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},On.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ke.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},On.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},On.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},On.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},On.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},On.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===K(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",lt);var jn=Math.abs;function xn(e,t,n,r){var o=Ut(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function En(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Tn(e){return function(){return this.as(e)}}var Mn=Tn("ms"),Rn=Tn("s"),Dn=Tn("m"),In=Tn("h"),Ln=Tn("d"),Vn=Tn("w"),Nn=Tn("M"),Fn=Tn("Q"),Bn=Tn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Un("milliseconds"),Hn=Un("seconds"),qn=Un("minutes"),Wn=Un("hours"),Kn=Un("days"),Yn=Un("months"),Gn=Un("years");var $n=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Zn=Math.abs;function Qn(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,l,s=Zn(this._milliseconds)/1e3,u=Zn(this._days),c=Zn(this._months),f=this.asSeconds();return f?(e=W(s/60),t=W(e/60),s%=60,e%=60,n=W(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=Qn(this._months)!==Qn(f)?"-":"",a=Qn(this._days)!==Qn(f)?"-":"",l=Qn(this._milliseconds)!==Qn(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(u?a+u+"D":"")+(t||e||s?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(s?l+r+"S":"")):"P0D"}var tr=At.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var e=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),e.milliseconds=jn(e.milliseconds),e.seconds=jn(e.seconds),e.minutes=jn(e.minutes),e.hours=jn(e.hours),e.months=jn(e.months),e.years=jn(e.years),this},tr.add=function(e,t){return xn(this,e,t,1)},tr.subtract=function(e,t){return xn(this,e,t,-1)},tr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},tr.asMilliseconds=Mn,tr.asSeconds=Rn,tr.asMinutes=Dn,tr.asHours=In,tr.asDays=Ln,tr.asWeeks=Vn,tr.asMonths=Nn,tr.asQuarters=Fn,tr.asYears=Bn,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},tr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,l=this._months,s=this._data;return i>=0&&a>=0&&l>=0||i<=0&&a<=0&&l<=0||(i+=864e5*En(An(l)+a),a=0,l=0),s.milliseconds=i%1e3,e=W(i/1e3),s.seconds=e%60,t=W(e/60),s.minutes=t%60,n=W(t/60),s.hours=n%24,a+=W(n/24),l+=o=W(Cn(a)),a-=En(An(o)),r=W(l/12),l%=12,s.days=a,s.months=l,s.years=r,this},tr.clone=function(){return Ut(this)},tr.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},tr.milliseconds=zn,tr.seconds=Hn,tr.minutes=qn,tr.hours=Wn,tr.days=Kn,tr.weeks=function(){return W(this.days()/7)},tr.months=Yn,tr.years=Gn,tr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=function(e,t,n,r){var o=Ut(e).abs(),i=$n(o.as("s")),a=$n(o.as("m")),l=$n(o.as("h")),s=$n(o.as("d")),u=$n(o.as("M")),c=$n(o.as("w")),f=$n(o.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,Xn.apply(null,d)}(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},tr.toISOString=er,tr.toString=er,tr.toJSON=er,tr.locale=Zt,tr.localeData=en,tr.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),tr.lang=Qt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,n){n._d=new Date(K(e))})),r.version="2.29.4",t=Pt,r.fn=wn,r.min=function(){return Et("isBefore",[].slice.call(arguments,0))},r.max=function(){return Et("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return Pt(1e3*e)},r.months=function(e,t){return Sn(e,t,"months")},r.isDate=c,r.locale=it,r.invalid=y,r.duration=Ut,r.isMoment=k,r.weekdays=function(e,t,n){return Pn(e,t,n,"weekdays")},r.parseZone=function(){return Pt.apply(null,arguments).parseZone()},r.localeData=lt,r.isDuration=Tt,r.monthsShort=function(e,t){return Sn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Pn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,o=Qe;null!=et[e]&&null!=et[e].parentLocale?et[e].set(E(et[e]._config,t)):(null!=(r=ot(e))&&(o=r._config),t=E(o,t),null==r&&(t.abbr=e),(n=new C(t)).parentLocale=et[e],et[e]=n),it(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===it()&&it(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return S(et)},r.weekdaysShort=function(e,t,n){return Pn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?$n:"function"==typeof e&&($n=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=wn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},91459:function(e,t,n){var r,o,i,a;o="Promise",a=function(){"use strict";var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function l(){for(var e=0;e<this.chain.length;e++)s(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function s(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function u(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?i((function(){var r=new d(n);try{t.call(e,(function(){u.apply(r,arguments)}),(function(){c.apply(r,arguments)}))}catch(e){c.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&i(l,n))}catch(e){c.call(new d(n),e)}}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(l,t))}function f(e,t,n,r){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){n(o,e)}),r)}(o)}function d(e){this.def=e,this.triggered=!1}function p(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new p(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t})),t.chain.push(r),0!==t.state&&i(l,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){u.call(t,e)}),(function(e){c.call(t,e)}))}catch(e){c.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(h,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(h,"all",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;f(t,e,(function(e,t){i[e]=t,++a===o&&n(i)}),r)}))})),e(h,"race",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");f(t,e,(function(e,t){n(t)}),r)}))})),h},(i=void 0!==n.g?n.g:this)[o]=i[o]||a(),e.exports?e.exports=i[o]:void 0===(r=function(){return i[o]}.call(t,n,t,e))||(e.exports=r)},91033:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},l=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function l(){a(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(l,20);o=e}return s}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=v(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return o?m(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=p(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=p(r.width),s=p(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=h(r,"left","right")+i),Math.round(s+a)!==n&&(s-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var u=Math.round(l+i)-t,c=Math.round(s+a)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(s-=c)}return v(o.left,o.top,l,s)}(e):d}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),g=function(e,t){var n,r,o,i,a,l,s,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),c(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);c(this,{target:e,contentRect:u})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new g(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new w(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));const _=void 0!==i.ResizeObserver?i.ResizeObserver:O},17672:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});class r{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class o{constructor(e,t,n,r,o,i){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=i}static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new o(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const o=e.x-t.x,i=e.y-t.y,a=t.x-n.x,l=t.y-n.y,s=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,f=(t.y+n.y)/2,d=Math.sqrt(o*o+i*i),p=Math.sqrt(a*a+l*l),h=p/(d+p),m=c+(s-c)*h,y=f+(u-f)*h,v=t.x-m,b=t.y-y;return{c1:new r(s+v,u+b),c2:new r(c+v,f+b)}}length(){let e,t,n=0;for(let r=0;r<=10;r+=1){const o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){const r=i-e,o=a-t;n+=Math.sqrt(r*r+o*o)}e=i,t=a}return n}point(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e}}class i extends class{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}{constructor(e,t={}){super(),this.canvas=e,this._handleMouseDown=e=>{1===e.buttons&&(this._drawningStroke=!0,this._strokeBegin(e))},this._handleMouseMove=e=>{this._drawningStroke&&this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(e))},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{this._drawningStroke=!0,e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._drawningStroke&&(e.preventDefault(),this._strokeMoveUpdate(e))},this._handlePointerEnd=e=>{this._drawningStroke&&(e.preventDefault(),this._drawningStroke=!1,this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,r,o,i=0,a=null;const l=()=>{i=Date.now(),a=null,n=e.apply(r,o),a||(r=null,o=[])};return function(...s){const u=Date.now(),c=t-(u-i);return r=this,o=s,c<=0||c>t?(a&&(clearTimeout(a),a=null),i=u,n=e.apply(r,o),a||(r=null,o=[])):a||(a=window.setTimeout(l,c)),n}}(i.prototype._strokeUpdate,this.throttle):i.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,r)=>{const o=new Image,i=t.ratio||window.devicePixelRatio||1,a=t.width||this.canvas.width/i,l=t.height||this.canvas.height/i,s=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,s,u,a,l),n()},o.onerror=e=>{r(e)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight}}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e}));const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,r=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,o=this._createPoint(t,n,r),i=this._data[this._data.length-1],a=i.points,l=a.length>0&&a[a.length-1],s=!!l&&o.distanceTo(l)<=this.minDistance,u=this._getPointGroupOptions(i);if(!l||!l||!s){const e=this._addPoint(o,u);l?e&&this._drawCurve(e,u):this._drawDot(o,u),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor}_createPoint(e,t,n){const o=this.canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),r=o.fromPoints(n,e);return n.shift(),r}return null}_calculateCurveWidths(e,t,n){const r=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,r=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n<o;n+=1){const i=n/o,a=i*i,l=a*i,s=1-i,u=s*s,c=u*s;let f=c*e.startPoint.x;f+=3*u*i*e.control1.x,f+=3*s*a*e.control2.x,f+=l*e.endPoint.x;let d=c*e.startPoint.y;d+=3*u*i*e.control1.y,d+=3*s*a*e.control2.y,d+=l*e.endPoint.y;const p=Math.min(e.startWidth+l*r,t.maxWidth);this._drawCurveSegment(f,d,p)}n.closePath(),n.fill()}_drawDot(e,t){const n=this._ctx,r=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const o of e){const{points:e}=o,i=this._getPointGroupOptions(o);if(e.length>1)for(let n=0;n<e.length;n+=1){const o=e[n],a=new r(o.x,o.y,o.pressure,o.time);0===n&&this._reset(i);const l=this._addPoint(a,i);l&&t(l,i)}else this._reset(i),n(e[0],i)}}toSVG({includeBackgroundColor:e=!1}={}){const t=this._data,n=Math.max(window.devicePixelRatio||1,1),r=this.canvas.width/n,o=this.canvas.height/n,i=document.createElementNS("http://www.w3.org/2000/svg","svg");if(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("viewBox",`0 0 ${r} ${o}`),i.setAttribute("width",r.toString()),i.setAttribute("height",o.toString()),e&&this.backgroundColor){const e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),i.appendChild(e)}return this._fromData(t,((e,{penColor:t})=>{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const r=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",r),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),i.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:r,maxWidth:o})=>{const a=document.createElement("circle"),l=n>0?n:(r+o)/2;a.setAttribute("r",l.toString()),a.setAttribute("cx",e.x.toString()),a.setAttribute("cy",e.y.toString()),a.setAttribute("fill",t),i.appendChild(a)})),i.outerHTML}}},69887:function(e){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},31051:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof r(e).Element||e instanceof Element}function i(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.r(t),n.d(t,{animateFill:function(){return ut},createSingleton:function(){return at},default:function(){return vt},delegate:function(){return st},followCursor:function(){return pt},hideAll:function(){return ot},inlinePositioning:function(){return ht},roundArrow:function(){return de},sticky:function(){return mt}});var l=Math.max,s=Math.min,u=Math.round;function c(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function d(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,s=1;t&&i(e)&&(l=e.offsetWidth>0&&u(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&u(a.height)/e.offsetHeight||1);var c=(o(e)?r(e):window).visualViewport,d=!f()&&n,p=(a.left+(d&&c?c.offsetLeft:0))/l,h=(a.top+(d&&c?c.offsetTop:0))/s,m=a.width/l,y=a.height/s;return{width:m,height:y,top:h,right:p+m,bottom:h+y,left:p,x:p,y:h}}function p(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return d(m(e)).left+p(e).scrollLeft}function v(e){return r(e).getComputedStyle(e)}function b(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function g(e,t,n){void 0===n&&(n=!1);var o,a,l=i(t),s=i(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,r=u(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),c=m(t),f=d(e,s,n),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(l||!l&&!n)&&(("body"!==h(t)||b(c))&&(v=(o=t)!==r(o)&&i(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:p(o)),i(t)?((g=d(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):c&&(g.x=y(c))),{x:f.left+v.scrollLeft-g.x,y:f.top+v.scrollTop-g.y,width:f.width,height:f.height}}function w(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||m(e)}function O(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:i(e)&&b(e)?e:O(k(e))}function _(e,t){var n;void 0===t&&(t=[]);var o=O(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=r(o),l=i?[a].concat(a.visualViewport||[],b(o)?o:[]):o,s=t.concat(l);return i?s:s.concat(_(k(l)))}function S(e){return["table","td","th"].indexOf(h(e))>=0}function P(e){return i(e)&&"fixed"!==v(e).position?e.offsetParent:null}function j(e){for(var t=r(e),n=P(e);n&&S(n)&&"static"===v(n).position;)n=P(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(c());if(/Trident/i.test(c())&&i(e)&&"fixed"===v(e).position)return null;var n=k(e);for(a(n)&&(n=n.host);i(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var x="top",E="bottom",C="right",A="left",T="auto",M=[x,E,C,A],R="start",D="end",I="viewport",L="popper",V=M.reduce((function(e,t){return e.concat([t+"-"+R,t+"-"+D])}),[]),N=[].concat(M,[T]).reduce((function(e,t){return e.concat([t,t+"-"+R,t+"-"+D])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function H(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?U:i;return function(e,t,n){void 0===n&&(n=a);var i,l,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,f={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},a,s.options,i),s.scrollParents={reference:o(e)?_(e):e.contextElement?_(e.contextElement):[],popper:_(t)};var l,c,p=function(e){var t=B(e);return F.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((l=[].concat(r,s.options.modifiers),c=l.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:f,options:r});u.push(i||function(){})}})),f.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(z(t,n)){s.rects={reference:g(t,j(n),"fixed"===s.options.strategy),popper:w(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,u=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:u,instance:f})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return l||(l=new Promise((function(e){Promise.resolve().then((function(){l=void 0,e(i())}))}))),l}),destroy:function(){d(),c=!0}};if(!z(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var q={passive:!0};function W(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?W(o):null,a=o?K(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case x:t={x:l,y:n.y-r.height};break;case E:t={x:l,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:s};break;case A:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Y(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case R:t[u]=t[u]-(n[c]/2-r[c]/2);break;case D:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var $={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,o=e.popperRect,i=e.placement,a=e.variation,l=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=l.x,y=void 0===h?0:h,b=l.y,g=void 0===b?0:b,w="function"==typeof d?d({x:y,y:g}):{x:y,y:g};y=w.x,g=w.y;var k=l.hasOwnProperty("x"),O=l.hasOwnProperty("y"),_=A,S=x,P=window;if(f){var T=j(n),M="clientHeight",R="clientWidth";T===r(n)&&"static"!==v(T=m(n)).position&&"absolute"===s&&(M="scrollHeight",R="scrollWidth"),(i===x||(i===A||i===C)&&a===D)&&(S=E,g-=(p&&T===P&&P.visualViewport?P.visualViewport.height:T[M])-o.height,g*=c?1:-1),i!==A&&(i!==x&&i!==E||a!==D)||(_=C,y-=(p&&T===P&&P.visualViewport?P.visualViewport.width:T[R])-o.width,y*=c?1:-1)}var I,L=Object.assign({position:s},f&&$),V=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:u(t*r)/r||0,y:u(n*r)/r||0}}({x:y,y:g}):{x:y,y:g};return y=V.x,g=V.y,c?Object.assign({},L,((I={})[S]=O?"0":"",I[_]=k?"0":"",I.transform=(P.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",I)):Object.assign({},L,((t={})[S]=O?g+"px":"",t[_]=k?y+"px":"",t.transform="",t))}const X={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Z={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return Z[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t,n){return t===I?re(function(e,t){var n=r(e),o=m(e),i=n.visualViewport,a=o.clientWidth,l=o.clientHeight,s=0,u=0;if(i){a=i.width,l=i.height;var c=f();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:l,x:s+y(e),y:u}}(e,n)):o(t)?function(e,t){var n=d(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):re(function(e){var t,n=m(e),r=p(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=l(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=l(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+y(e),u=-r.scrollTop;return"rtl"===v(o||n).direction&&(s+=l(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(m(e)))}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function le(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,u=n.strategy,c=void 0===u?e.strategy:u,f=n.boundary,p=void 0===f?"clippingParents":f,y=n.rootBoundary,b=void 0===y?I:y,g=n.elementContext,w=void 0===g?L:g,O=n.altBoundary,S=void 0!==O&&O,P=n.padding,A=void 0===P?0:P,T=ie("number"!=typeof A?A:ae(A,M)),R=w===L?"reference":L,D=e.rects.popper,V=e.elements[S?R:w],N=function(e,t,n,r){var a="clippingParents"===t?function(e){var t=_(k(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&i(e)?j(e):e;return o(n)?t.filter((function(e){return o(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),u=[].concat(a,[n]),c=u[0],f=u.reduce((function(t,n){var o=oe(e,n,r);return t.top=l(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=l(o.left,t.left),t}),oe(e,c,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}(o(V)?V:V.contextElement||m(e.elements.popper),p,b,c),F=d(e.elements.reference),B=G({reference:F,element:D,strategy:"absolute",placement:a}),U=re(Object.assign({},D,B)),z=w===L?U:F,H={top:N.top-z.top+T.top,bottom:z.bottom-N.bottom+T.bottom,left:N.left-z.left+T.left,right:z.right-N.right+T.right},q=e.modifiersData.offset;if(w===L&&q){var W=q[a];Object.keys(H).forEach((function(e){var t=[C,E].indexOf(e)>=0?1:-1,n=[x,E].indexOf(e)>=0?"y":"x";H[e]+=W[n]*t}))}return H}function se(e,t,n){return l(e,s(t,n))}function ue(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ce(e){return[x,C,E,A].some((function(t){return e[t]>=0}))}var fe=H({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,l=o.resize,s=void 0===l||l,u=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,q)})),s&&u.addEventListener("resize",n.update,q),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,q)})),s&&u.removeEventListener("resize",n.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:W(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},X,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=N.reduce((function(e,n){return e[n]=function(e,t,n){var r=W(e),o=[A,x].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[A,C].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,y=t.options.placement,v=W(y),b=s||(v!==y&&h?function(e){if(W(e)===T)return[];var t=Q(e);return[te(e),t,te(t)]}(y):[Q(y)]),g=[y].concat(b).reduce((function(e,n){return e.concat(W(n)===T?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?N:s,c=K(r),f=c?l?V:V.filter((function(e){return K(e)===c})):M,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=le(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[W(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,k=t.rects.popper,O=new Map,_=!0,S=g[0],P=0;P<g.length;P++){var j=g[P],D=W(j),I=K(j)===R,L=[x,E].indexOf(D)>=0,F=L?"width":"height",B=le(t,{placement:j,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),U=L?I?C:A:I?E:x;w[F]>k[F]&&(U=Q(U));var z=Q(U),H=[];if(i&&H.push(B[D]<=0),l&&H.push(B[U]<=0,B[z]<=0),H.every((function(e){return e}))){S=j,_=!1;break}O.set(j,H)}if(_)for(var q=function(e){var t=g.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},Y=h?3:1;Y>0&&"break"!==q(Y);Y--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,y=n.tetherOffset,v=void 0===y?0:y,b=le(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:d}),g=W(t.placement),k=K(t.placement),O=!k,_=Y(g),S="x"===_?"y":"x",P=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,D="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,I="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(P){if(i){var N,F="y"===_?x:A,B="y"===_?E:C,U="y"===_?"height":"width",z=P[_],H=z+b[F],q=z-b[B],G=m?-M[U]/2:0,$=k===R?T[U]:M[U],J=k===R?-M[U]:-T[U],X=t.elements.arrow,Z=m&&X?w(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[F],te=Q[B],ne=se(0,T[U],Z[U]),re=O?T[U]/2-G-ne-ee-I.mainAxis:$-ne-ee-I.mainAxis,oe=O?-T[U]/2+G+ne+te+I.mainAxis:J+ne+te+I.mainAxis,ie=t.elements.arrow&&j(t.elements.arrow),ae=ie?"y"===_?ie.clientTop||0:ie.clientLeft||0:0,ue=null!=(N=null==L?void 0:L[_])?N:0,ce=z+oe-ue,fe=se(m?s(H,z+re-ue-ae):H,z,m?l(q,ce):q);P[_]=fe,V[_]=fe-z}if(u){var de,pe="x"===_?x:A,he="x"===_?E:C,me=P[S],ye="y"===S?"height":"width",ve=me+b[pe],be=me-b[he],ge=-1!==[x,A].indexOf(g),we=null!=(de=null==L?void 0:L[S])?de:0,ke=ge?ve:me-T[ye]-M[ye]-we+I.altAxis,Oe=ge?me+T[ye]+M[ye]-we-I.altAxis:be,_e=m&&ge?function(e,t,n){var r=se(e,t,n);return r>n?n:r}(ke,me,Oe):se(m?ke:ve,me,m?Oe:be);P[S]=_e,V[S]=_e-me}t.modifiersData[r]=V}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=W(n.placement),s=Y(l),u=[A,C].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,M))}(o.padding,n),f=w(i),d="y"===s?x:A,p="y"===s?E:C,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],y=j(i),v=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,b=h/2-m/2,g=c[d],k=v-f[u]-c[p],O=v/2-f[u]/2+b,_=se(g,O,k),S=s;n.modifiersData[r]=((t={})[S]=_,t.centerOffset=_-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=le(t,{elementContext:"reference"}),l=le(t,{altBoundary:!0}),s=ue(a,r),u=ue(l,o,i),c=ce(s),f=ce(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),de='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',pe="tippy-content",he="tippy-backdrop",me="tippy-arrow",ye="tippy-svg-arrow",ve={passive:!0,capture:!0},be=function(){return document.body};function ge(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function we(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ke(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Oe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function _e(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function Se(e){return[].concat(e)}function Pe(e,t){-1===e.indexOf(t)&&e.push(t)}function je(e){return e.split("-")[0]}function xe(e){return[].slice.call(e)}function Ee(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ce(){return document.createElement("div")}function Ae(e){return["Element","Fragment"].some((function(t){return we(e,t)}))}function Te(e){return we(e,"MouseEvent")}function Me(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Re(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function De(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ie(e){var t,n=Se(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Le(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Ve(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Ne={isTouch:!1},Fe=0;function Be(){Ne.isTouch||(Ne.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ue))}function Ue(){var e=performance.now();e-Fe<20&&(Ne.isTouch=!1,document.removeEventListener("mousemove",Ue)),Fe=e}function ze(){var e=document.activeElement;if(Me(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var He=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),qe=Object.assign({appendTo:be,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),We=Object.keys(qe);function Ke(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=qe[o])?r:i),t}),{});return Object.assign({},e,t)}function Ye(e,t){var n=Object.assign({},t,{content:ke(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ke(Object.assign({},qe,{plugins:t}))):We).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},qe.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ge(e,t){e.innerHTML=t}function $e(e){var t=Ce();return!0===e?t.className=me:(t.className=ye,Ae(e)?t.appendChild(e):Ge(t,e)),t}function Je(e,t){Ae(t.content)?(Ge(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ge(e,t.content):e.textContent=t.content)}function Xe(e){var t=e.firstElementChild,n=xe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(pe)})),arrow:n.find((function(e){return e.classList.contains(me)||e.classList.contains(ye)})),backdrop:n.find((function(e){return e.classList.contains(he)}))}}function Ze(e){var t=Ce(),n=Ce();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ce();function o(n,r){var o=Xe(t),i=o.box,a=o.content,l=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Je(a,e.props),r.arrow?l?n.arrow!==r.arrow&&(i.removeChild(l),i.appendChild($e(r.arrow))):i.appendChild($e(r.arrow)):l&&i.removeChild(l)}return r.className=pe,r.setAttribute("data-state","hidden"),Je(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Ze.$$tippy=!0;var Qe=1,et=[],tt=[];function nt(e,t){var n,r,o,i,a,l,s,u,c=Ye(e,Object.assign({},qe,Ke(Ee(t)))),f=!1,d=!1,p=!1,h=!1,m=[],y=Oe(Y,c.interactiveDebounce),v=Qe++,b=(u=c.plugins).filter((function(e,t){return u.indexOf(e)===t})),g={id:v,reference:e,popper:Ce(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(!g.state.isDestroyed){R("onBeforeUpdate",[g,t]),W();var n=g.props,r=Ye(e,Object.assign({},n,Ee(t),{ignoreAttributes:!0}));g.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),y=Oe(Y,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Se(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),I(),M(),O&&O(n,r),g.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),R("onAfterUpdate",[g,t])}},setContent:function(e){g.setProps({content:e})},show:function(){var e=g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=Ne.isTouch&&!g.props.touch,o=ge(g.props.duration,0,qe.duration);if(!(e||t||n||r||E().hasAttribute("disabled")||(R("onShow",[g],!1),!1===g.props.onShow(g)))){if(g.state.isVisible=!0,x()&&(k.style.visibility="visible"),M(),B(),g.state.isMounted||(k.style.transition="none"),x()){var i=A();Re([i.box,i.content],0)}var a,s,u;l=function(){var e;if(g.state.isVisible&&!h){if(h=!0,k.offsetHeight,k.style.transition=g.props.moveTransition,x()&&g.props.animation){var t=A(),n=t.box,r=t.content;Re([n,r],o),De([n,r],"visible")}D(),I(),Pe(tt,g),null==(e=g.popperInstance)||e.forceUpdate(),R("onMount",[g]),g.props.animation&&x()&&function(e,t){z(e,(function(){g.state.isShown=!0,R("onShown",[g])}))}(o)}},s=g.props.appendTo,u=E(),(a=g.props.interactive&&s===be||"parent"===s?u.parentNode:ke(s,[u])).contains(k)||a.appendChild(k),g.state.isMounted=!0,X()}},hide:function(){var e=!g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=ge(g.props.duration,1,qe.duration);if(!(e||t||n)&&(R("onHide",[g],!1),!1!==g.props.onHide(g))){if(g.state.isVisible=!1,g.state.isShown=!1,h=!1,f=!1,x()&&(k.style.visibility="hidden"),L(),U(),M(!0),x()){var o=A(),i=o.box,a=o.content;g.props.animation&&(Re([i,a],r),De([i,a],"hidden"))}D(),I(),g.props.animation?x()&&function(e,t){z(e,(function(){!g.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&t()}))}(r,g.unmount):g.unmount()}},hideWithInteractivity:function(e){C().addEventListener("mousemove",y),Pe(et,y),y(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){g.state.isVisible&&g.hide(),g.state.isMounted&&(Z(),Q().forEach((function(e){e._tippy.unmount()})),k.parentNode&&k.parentNode.removeChild(k),tt=tt.filter((function(e){return e!==g})),g.state.isMounted=!1,R("onHidden",[g]))},destroy:function(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),W(),delete e._tippy,g.state.isDestroyed=!0,R("onDestroy",[g]))}};if(!c.render)return g;var w=c.render(g),k=w.popper,O=w.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+g.id,g.popper=k,e._tippy=g,k._tippy=g;var _=b.map((function(e){return e.fn(g)})),S=e.hasAttribute("aria-expanded");return q(),I(),M(),R("onCreate",[g]),c.showOnCreate&&ee(),k.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),k.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",y)})),g;function P(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function j(){return"hold"===P()[0]}function x(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function E(){return s||e}function C(){var e=E().parentNode;return e?Ie(e):document}function A(){return Xe(k)}function T(e){return g.state.isMounted&&!g.state.isVisible||Ne.isTouch||i&&"focus"===i.type?0:ge(g.props.delay,e?0:1,qe.delay)}function M(e){void 0===e&&(e=!1),k.style.pointerEvents=g.props.interactive&&!e?"":"none",k.style.zIndex=""+g.props.zIndex}function R(e,t,n){var r;void 0===n&&(n=!0),_.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=g.props)[e].apply(r,t)}function D(){var t=g.props.aria;if(t.content){var n="aria-"+t.content,r=k.id;Se(g.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(g.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function I(){!S&&g.props.aria.expanded&&Se(g.props.triggerTarget||e).forEach((function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){C().removeEventListener("mousemove",y),et=et.filter((function(e){return e!==y}))}function V(t){if(!Ne.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!Ve(k,n)){if(Se(g.props.triggerTarget||e).some((function(e){return Ve(e,n)}))){if(Ne.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),d=!0,setTimeout((function(){d=!1})),g.state.isMounted||U())}}}function N(){p=!0}function F(){p=!1}function B(){var e=C();e.addEventListener("mousedown",V,!0),e.addEventListener("touchend",V,ve),e.addEventListener("touchstart",F,ve),e.addEventListener("touchmove",N,ve)}function U(){var e=C();e.removeEventListener("mousedown",V,!0),e.removeEventListener("touchend",V,ve),e.removeEventListener("touchstart",F,ve),e.removeEventListener("touchmove",N,ve)}function z(e,t){var n=A().box;function r(e){e.target===n&&(Le(n,"remove",r),t())}if(0===e)return t();Le(n,"remove",a),Le(n,"add",r),a=r}function H(t,n,r){void 0===r&&(r=!1),Se(g.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function q(){var e;j()&&(H("touchstart",K,{passive:!0}),H("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,K),e){case"mouseenter":H("mouseleave",G);break;case"focus":H(He?"focusout":"blur",$);break;case"focusin":H("focusout",$)}}))}function W(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function K(e){var t,n=!1;if(g.state.isEnabled&&!J(e)&&!d){var r="focus"===(null==(t=i)?void 0:t.type);i=e,s=e.currentTarget,I(),!g.state.isVisible&&Te(e)&&et.forEach((function(t){return t(e)})),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||f)&&!1!==g.props.hideOnClick&&g.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function Y(e){var t=e.target,n=E().contains(t)||k.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(k).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=je(o.placement),l=o.modifiersData.offset;if(!l)return!0;var s="bottom"===a?l.top.y:0,u="top"===a?l.bottom.y:0,c="right"===a?l.left.x:0,f="left"===a?l.right.x:0,d=t.top-r+s>i,p=r-t.bottom-u>i,h=t.left-n+c>i,m=n-t.right-f>i;return d||p||h||m}))})(r,e)&&(L(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&f||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function $(e){g.props.trigger.indexOf("focusin")<0&&e.target!==E()||g.props.interactive&&e.relatedTarget&&k.contains(e.relatedTarget)||te(e)}function J(e){return!!Ne.isTouch&&j()!==e.type.indexOf("touch")>=0}function X(){Z();var t=g.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=x()?Xe(k).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||E()}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(x()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];x()&&s&&c.push({name:"arrow",options:{element:s,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),g.popperInstance=fe(u,k,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:c}))}function Z(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return xe(k.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&R("onTrigger",[g,e]),B();var t=T(!0),r=P(),o=r[0],i=r[1];Ne.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){g.show()}),t):g.show()}function te(e){if(g.clearDelayTimeouts(),R("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=T(!1);t?r=setTimeout((function(){g.state.isVisible&&g.hide()}),t):o=requestAnimationFrame((function(){g.hide()}))}}else U()}}function rt(e,t){void 0===t&&(t={});var n=qe.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Be,ve),window.addEventListener("blur",ze);var r,o=Object.assign({},t,{plugins:n}),i=(r=e,Ae(r)?[r]:function(e){return we(e,"NodeList")}(r)?xe(r):Array.isArray(r)?r:xe(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&nt(t,o);return n&&e.push(n),e}),[]);return Ae(e)?i[0]:i}rt.defaultProps=qe,rt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){qe[t]=e[t]}))},rt.currentInput=Ne;var ot=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;tt.forEach((function(e){var t=!1;if(n&&(t=Me(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}}))},it=Object.assign({},X,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),at=function(e,t){var n;void 0===t&&(t={});var r,o=e,i=[],a=[],l=t.overrides,s=[],u=!1;function c(){a=o.map((function(e){return Se(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function f(){i=o.map((function(e){return e.reference}))}function d(e){o.forEach((function(t){e?t.enable():t.disable()}))}function p(e){return o.map((function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===r&&e.setProps(o)},function(){t.setProps=n}}))}function h(e,t){var n=a.indexOf(t);if(t!==r){r=t;var s=(l||[]).concat("content").reduce((function(e,t){return e[t]=o[n].props[t],e}),{});e.setProps(Object.assign({},s,{getReferenceClientRect:"function"==typeof s.getReferenceClientRect?s.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}d(!1),f(),c();var m={fn:function(){return{onDestroy:function(){d(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,h(e,i[0]))},onTrigger:function(e,t){h(e,t.currentTarget)}}}},y=rt(Ce(),Object.assign({},_e(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[it])})})),v=y.show;y.show=function(e){if(v(),!r&&null==e)return h(y,i[0]);if(!r||null!=e){if("number"==typeof e)return i[e]&&h(y,i[e]);if(o.indexOf(e)>=0){var t=e.reference;return h(y,t)}return i.indexOf(e)>=0?h(y,e):void 0}},y.showNext=function(){var e=i[0];if(!r)return y.show(0);var t=i.indexOf(r);y.show(i[t+1]||e)},y.showPrevious=function(){var e=i[i.length-1];if(!r)return y.show(e);var t=i.indexOf(r),n=i[t-1]||e;y.show(n)};var b=y.setProps;return y.setProps=function(e){l=e.overrides||l,b(e)},y.setInstances=function(e){d(!0),s.forEach((function(e){return e()})),o=e,d(!1),f(),c(),s=p(y),y.setProps({triggerTarget:a})},s=p(y),y},lt={mouseover:"mouseenter",focusin:"focus",click:"click"};function st(e,t){var n=[],r=[],o=!1,i=t.target,a=_e(t,["target"]),l=Object.assign({},a,{trigger:"manual",touch:!1}),s=Object.assign({touch:qe.touch},a,{showOnCreate:!0}),u=rt(e,l);function c(e){if(e.target&&!o){var n=e.target.closest(i);if(n){var a=n.getAttribute("data-tippy-trigger")||t.trigger||qe.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof s.touch||"touchstart"!==e.type&&a.indexOf(lt[e.type])<0)){var l=rt(n,s);l&&(r=r.concat(l))}}}}function f(e,t,r,o){void 0===o&&(o=!1),e.addEventListener(t,r,o),n.push({node:e,eventType:t,handler:r,options:o})}return Se(u).forEach((function(e){var t=e.destroy,i=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach((function(e){e.destroy()})),r=[],n.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),n=[],t()},e.enable=function(){i(),r.forEach((function(e){return e.enable()})),o=!1},e.disable=function(){a(),r.forEach((function(e){return e.disable()})),o=!0},function(e){var t=e.reference;f(t,"touchstart",c,ve),f(t,"mouseover",c),f(t,"focusin",c),f(t,"click",c)}(e)})),u}var ut={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Xe(e.popper),r=n.box,o=n.content,i=e.props.animateFill?function(){var e=Ce();return e.className=he,De([e],"hidden"),e}():null;return{onCreate:function(){i&&(r.insertBefore(i,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,De([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&De([i],"hidden")}}}},ct={clientX:0,clientY:0},ft=[];function dt(e){var t=e.clientX,n=e.clientY;ct={clientX:t,clientY:n}}var pt={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Ie(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function l(){return"initial"===e.props.followCursor&&e.state.isVisible}function s(){n.addEventListener("mousemove",f)}function u(){n.removeEventListener("mousemove",f)}function c(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,l=t.getBoundingClientRect(),s=i-l.left,u=a-l.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+s,r=e.top+u);var l="horizontal"===o?e.top:r,c="vertical"===o?e.right:n,f="horizontal"===o?e.bottom:r,d="vertical"===o?e.left:n;return{width:c-d,height:f-l,top:l,right:c,bottom:f,left:d}}})}function d(){e.props.followCursor&&(ft.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",dt)}(n))}function p(){0===(ft=ft.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",dt)}(n)}return{onCreate:d,onDestroy:p,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(p(),i?(d(),!e.state.isMounted||o||l()||s()):(u(),c()))},onMount:function(){e.props.followCursor&&!o&&(i&&(f(ct),i=!1),l()||s())},onTrigger:function(e,t){Te(t)&&(ct={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),u(),i=!0)}}}},ht={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,r=-1,o=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;e.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),t!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===e,l=o.top,s=i.bottom,u=a?o.left:i.left,c=a?o.right:i.right;return{top:l,bottom:s,left:u,right:c,width:c-u,height:s-l};case"left":case"right":var f=Math.min.apply(Math,n.map((function(e){return e.left}))),d=Math.max.apply(Math,n.map((function(e){return e.right}))),p=n.filter((function(t){return"left"===e?t.left===f:t.right===d})),h=p[0].top,m=p[p.length-1].bottom;return{top:h,bottom:m,left:f,right:d,width:d-f,height:m-h};default:return t}}(je(e),n.getBoundingClientRect(),xe(n.getClientRects()),r)}(a.placement)}})),t=a.placement)}};function l(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,a),o=!0,e.setProps(t),o=!1)}return{onCreate:l,onAfterUpdate:l,onTrigger:function(t,n){if(Te(n)){var o=xe(e.reference.getClientRects()),i=o.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),a=o.indexOf(i);r=a>-1?a:r}},onHidden:function(){r=-1}}}},mt={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,i=null;function a(){var l=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,s=r("popper")?n.getBoundingClientRect():null;(l&&yt(o,l)||s&&yt(i,s))&&e.popperInstance&&e.popperInstance.update(),o=l,i=s,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function yt(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}rt.setDefaultProps({render:Ze});const vt=rt},15893:function(e,t){"use strict";function n(e,t){return void 0===e?void 0===t?e:t:e}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return!!e.apply(this,n)}:e?function(){return!0}:function(){return!1}},t.integer=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=parseInt(e.apply(this,n),10);return o!=o?0:o}:(e=parseInt(e,10))!=e?function(){return 0}:function(){return e}},t.string=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return""+e.apply(this,n)}:(e=""+e,function(){return e})}},67429:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return s.default}});var r=d(n(63990)),o=d(n(8237)),i=d(n(75355)),a=d(n(83764)),l=d(n(86314)),s=d(n(58464)),u=d(n(46435)),c=d(n(73990)),f=d(n(18222));function d(e){return e&&e.__esModule?e:{default:e}}},94163:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((l=r(r(t,e),r(o,a)))<<(s=i)|l>>>32-s,n);var l,s}function i(e,t,n,r,i,a,l){return o(t&n|~t&r,e,t,i,a,l)}function a(e,t,n,r,i,a,l){return o(t&r|n&~r,e,t,i,a,l)}function l(e,t,n,r,i,a,l){return o(t^n^r,e,t,i,a,l)}function s(e,t,n,r,i,a,l){return o(n^(t|~r),e,t,i,a,l)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let o=1732584193,u=-271733879,c=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const n=o,d=u,p=c,h=f;o=i(o,u,c,f,e[t],7,-680876936),f=i(f,o,u,c,e[t+1],12,-389564586),c=i(c,f,o,u,e[t+2],17,606105819),u=i(u,c,f,o,e[t+3],22,-1044525330),o=i(o,u,c,f,e[t+4],7,-176418897),f=i(f,o,u,c,e[t+5],12,1200080426),c=i(c,f,o,u,e[t+6],17,-1473231341),u=i(u,c,f,o,e[t+7],22,-45705983),o=i(o,u,c,f,e[t+8],7,1770035416),f=i(f,o,u,c,e[t+9],12,-1958414417),c=i(c,f,o,u,e[t+10],17,-42063),u=i(u,c,f,o,e[t+11],22,-1990404162),o=i(o,u,c,f,e[t+12],7,1804603682),f=i(f,o,u,c,e[t+13],12,-40341101),c=i(c,f,o,u,e[t+14],17,-1502002290),u=i(u,c,f,o,e[t+15],22,1236535329),o=a(o,u,c,f,e[t+1],5,-165796510),f=a(f,o,u,c,e[t+6],9,-1069501632),c=a(c,f,o,u,e[t+11],14,643717713),u=a(u,c,f,o,e[t],20,-373897302),o=a(o,u,c,f,e[t+5],5,-701558691),f=a(f,o,u,c,e[t+10],9,38016083),c=a(c,f,o,u,e[t+15],14,-660478335),u=a(u,c,f,o,e[t+4],20,-405537848),o=a(o,u,c,f,e[t+9],5,568446438),f=a(f,o,u,c,e[t+14],9,-1019803690),c=a(c,f,o,u,e[t+3],14,-187363961),u=a(u,c,f,o,e[t+8],20,1163531501),o=a(o,u,c,f,e[t+13],5,-1444681467),f=a(f,o,u,c,e[t+2],9,-51403784),c=a(c,f,o,u,e[t+7],14,1735328473),u=a(u,c,f,o,e[t+12],20,-1926607734),o=l(o,u,c,f,e[t+5],4,-378558),f=l(f,o,u,c,e[t+8],11,-2022574463),c=l(c,f,o,u,e[t+11],16,1839030562),u=l(u,c,f,o,e[t+14],23,-35309556),o=l(o,u,c,f,e[t+1],4,-1530992060),f=l(f,o,u,c,e[t+4],11,1272893353),c=l(c,f,o,u,e[t+7],16,-155497632),u=l(u,c,f,o,e[t+10],23,-1094730640),o=l(o,u,c,f,e[t+13],4,681279174),f=l(f,o,u,c,e[t],11,-358537222),c=l(c,f,o,u,e[t+3],16,-722521979),u=l(u,c,f,o,e[t+6],23,76029189),o=l(o,u,c,f,e[t+9],4,-640364487),f=l(f,o,u,c,e[t+12],11,-421815835),c=l(c,f,o,u,e[t+15],16,530742520),u=l(u,c,f,o,e[t+2],23,-995338651),o=s(o,u,c,f,e[t],6,-198630844),f=s(f,o,u,c,e[t+7],10,1126891415),c=s(c,f,o,u,e[t+14],15,-1416354905),u=s(u,c,f,o,e[t+5],21,-57434055),o=s(o,u,c,f,e[t+12],6,1700485571),f=s(f,o,u,c,e[t+3],10,-1894986606),c=s(c,f,o,u,e[t+10],15,-1051523),u=s(u,c,f,o,e[t+1],21,-2054922799),o=s(o,u,c,f,e[t+8],6,1873313359),f=s(f,o,u,c,e[t+15],10,-30611744),c=s(c,f,o,u,e[t+6],15,-1560198380),u=s(u,c,f,o,e[t+13],21,1309151649),o=s(o,u,c,f,e[t+4],6,-145523070),f=s(f,o,u,c,e[t+11],10,-1120210379),c=s(c,f,o,u,e[t+2],15,718787259),u=s(u,c,f,o,e[t+9],21,-343485551),o=r(o,n),u=r(u,d),c=r(c,p),f=r(f,h)}return[o,u,c,f]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},54790:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},86314:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},18222:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(46435))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},70058:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},33319:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},93757:function(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),l=new Array(a);for(let t=0;t<a;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];l[t]=n}l[a-1][14]=8*(e.length-1)/Math.pow(2,32),l[a-1][14]=Math.floor(l[a-1][14]),l[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=l[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],s=o[1],u=o[2],c=o[3],f=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),l=r(a,5)+n(o,s,u,c)+f+t[o]+i[e]>>>0;f=c,c=u,u=r(s,30)>>>0,s=a,a=l}o[0]=o[0]+a>>>0,o[1]=o[1]+s>>>0,o[2]=o[2]+u>>>0,o[3]=o[3]+c>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},73990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,o=(r=n(46435))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}t.default=function(e,t=0){const n=a(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},63990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(33319))&&r.__esModule?r:{default:r},i=n(73990);let a,l,s=0,u=0;t.default=function(e,t,n){let r=t&&n||0;const c=t||new Array(16);let f=(e=e||{}).node||a,d=void 0!==e.clockseq?e.clockseq:l;if(null==f||null==d){const t=e.random||(e.rng||o.default)();null==f&&(f=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=l=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:u+1;const m=p-s+(h-u)/1e4;if(m<0&&void 0===e.clockseq&&(d=d+1&16383),(m<0||p>s)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,u=h,l=d,p+=122192928e5;const y=(1e4*(268435455&p)+h)%4294967296;c[r++]=y>>>24&255,c[r++]=y>>>16&255,c[r++]=y>>>8&255,c[r++]=255&y;const v=p/4294967296*1e4&268435455;c[r++]=v>>>8&255,c[r++]=255&v,c[r++]=v>>>24&15|16,c[r++]=v>>>16&255,c[r++]=d>>>8|128,c[r++]=255&d;for(let e=0;e<6;++e)c[r+e]=f[e];return t||(0,i.unsafeStringify)(c)}},8237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(17925)),o=i(n(94163));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);t.default=a},17925:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,l){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+e.length);if(u.set(r),u.set(e,r.length),u=n(u),u[6]=15&u[6]|t,u[8]=63&u[8]|128,a){l=l||0;for(let e=0;e<16;++e)a[l+e]=u[e];return a}return(0,o.unsafeStringify)(u)}try{r.name=e}catch(e){}return r.DNS=a,r.URL=l,r};var r,o=n(73990),i=(r=n(18222))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const l="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=l},75355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(54790)),o=a(n(33319)),i=n(73990);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},83764:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(17925)),o=i(n(93757));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,o.default);t.default=a},46435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(70058))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},58464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(46435))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},39059:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},53280:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},25627:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},50949:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},94813:function(e,t,n){var r=n(13213);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},92401:function(e,t,n){var r=n(13213);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},42411:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},96433:function(e,t,n){var r=n(27529);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},37713:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},65886:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},28542:function(e,t,n){var r=n(17021).default,o=n(25627);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},27529:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},29394:function(e,t,n){var r=n(53280),o=n(37713),i=n(49863),a=n(65886);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},33029:function(e,t,n){var r=n(17021).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},13213:function(e,t,n){var r=n(17021).default,o=n(33029);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},17021:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},49863:function(e,t,n){var r=n(39059);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},34901:function(e,t,n){"use strict";n.r(t),n.d(t,{JsonPatchError:function(){return y},_areEquals:function(){return x},applyOperation:function(){return O},applyPatch:function(){return _},applyReducer:function(){return S},compare:function(){return I},deepClone:function(){return c},default:function(){return L},escapePathComponent:function(){return d},generate:function(){return R},getValueByPointer:function(){return k},observe:function(){return M},unescapePathComponent:function(){return p},unobserve:function(){return T},validate:function(){return j},validator:function(){return P}});var r={};n.r(r),n.d(r,{JsonPatchError:function(){return v},_areEquals:function(){return x},applyOperation:function(){return O},applyPatch:function(){return _},applyReducer:function(){return S},deepClone:function(){return b},getValueByPointer:function(){return k},validate:function(){return j},validator:function(){return P}});var o={};n.r(o),n.d(o,{compare:function(){return I},generate:function(){return R},observe:function(){return M},unobserve:function(){return T}});var i,a=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=Object.prototype.hasOwnProperty;function s(e,t){return l.call(e,t)}function u(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var o in e)s(e,o)&&r.push(o);return r}function c(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function d(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var r=u(e),o=r.length,i=0;i<o;i++)if(h(e[r[i]]))return!0;return!1}function m(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var y=function(e){function t(t,n,r,o,i){var a=this.constructor,l=e.call(this,m(t,{name:n,index:r,operation:o,tree:i}))||this;return l.name=n,l.index=r,l.operation=o,l.tree=i,Object.setPrototypeOf(l,a.prototype),l.message=m(t,{name:n,index:r,operation:o,tree:i}),l}return a(t,e),t}(Error),v=y,b=c,g={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=k(n,this.path);r&&(r=c(r));var o=O(n,{op:"remove",path:this.from}).removed;return O(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=k(n,this.from);return O(n,{op:"add",path:this.path,value:c(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:x(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},w={add:function(e,t,n){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:g.move,copy:g.copy,test:g.test,_get:g._get};function k(e,t){if(""==t)return e;var n={op:"_get",path:t};return O(e,n),n.value}function O(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):P(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=k(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=x(e,t.value),!1===a.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=c(e));var l=(t.path||"").split("/"),s=e,u=1,d=l.length,h=void 0,m=void 0,y=void 0;for(y="function"==typeof n?n:P;;){if((m=l[u])&&-1!=m.indexOf("~")&&(m=p(m)),o&&("__proto__"==m||"prototype"==m&&u>0&&"constructor"==l[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===h&&(void 0===s[m]?h=l.slice(0,u).join("/"):u==d-1&&(h=t.path),void 0!==h&&y(t,0,e,h)),u++,Array.isArray(s)){if("-"===m)m=s.length;else{if(n&&!f(m))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);f(m)&&(m=~~m)}if(u>=d){if(n&&"add"===t.op&&m>s.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=w[t.op].call(t,s,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=d){if(!1===(a=g[t.op].call(t,s,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(s=s[m],n&&u<d&&(!s||"object"!=typeof s))throw new v("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function _(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=c(e));for(var i=new Array(t.length),a=0,l=t.length;a<l;a++)i[a]=O(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function S(e,t,n){var r=O(e,t);if(!1===r.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function P(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new v("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!g[e.op])throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new v("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new v('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new v("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&h(e.value))throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new v("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new v("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=j([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new v("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function j(e,t,n){try{if(!Array.isArray(e))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)_(c(t),c(e),n||!0);else{n=n||P;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof v)return e;throw e}}function x(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!x(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var l=Object.keys(e);if((r=l.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(l[n]))return!1;for(n=r;0!=n--;)if(!x(e[o=l[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var E=new WeakMap,C=function(e){this.observers=new Map,this.obj=e},A=function(e,t){this.callback=e,this.observer=t};function T(e,t){t.unobserve()}function M(e,t){var n,r=function(e){return E.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new C(e),E.set(e,r);if(n)return n;if(n={},r.value=c(e),t){n.callback=t,n.next=null;var i=function(){R(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){R(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new A(t,n)),n}function R(e,t){void 0===t&&(t=!1);var n=E.get(e.object);D(n.value,e.object,e.patches,"",t),e.patches.length&&_(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function D(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=u(t),a=u(e),l=!1,f=a.length-1;f>=0;f--){var p=e[m=a[f]];if(!s(t,m)||void 0===t[m]&&void 0!==p&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+d(m),value:c(p)}),n.push({op:"remove",path:r+"/"+d(m)}),l=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[m];"object"==typeof p&&null!=p&&"object"==typeof h&&null!=h&&Array.isArray(p)===Array.isArray(h)?D(p,h,n,r+"/"+d(m),o):p!==h&&(o&&n.push({op:"test",path:r+"/"+d(m),value:c(p)}),n.push({op:"replace",path:r+"/"+d(m),value:c(h)}))}}if(l||i.length!=a.length)for(f=0;f<i.length;f++){var m;s(e,m=i[f])||void 0===t[m]||n.push({op:"add",path:r+"/"+d(m),value:c(t[m])})}}}function I(e,t,n){void 0===n&&(n=!1);var r=[];return D(e,t,r,"",n),r}const L=Object.assign({},r,o,{JsonPatchError:y,deepClone:c,escapePathComponent:d,unescapePathComponent:p})}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.amdD=function(){throw new Error("define cannot be used indirect")},r.amdO={},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.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var o={};return function(){"use strict";var e=o;r(69070),Object.defineProperty(e,"Formio",{enumerable:!0,get:function(){return n.Formio}});var t,n=r(14145);(t=r(78682))&&t.__esModule}(),o.Formio}()}));