UNPKG

@formio/core

Version:

The core Form.io renderering framework.

2 lines 74.9 kB
/*! For license information please see formio.base.min.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FormioCore=e():t.FormioCore=e()}(self,(function(){return t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.intersection=e.map=e.head=e.last=e.filter=e.findEach=e.matches=e.findIndex=e.find=e.each=e.dropRight=e.drop=e.difference=e.concat=e.compact=e.chunk=void 0;var o=n(7739),i=n(1769);function a(t,e){var n=Array.isArray(t);for(var r in t)if(t.hasOwnProperty(r)&&!0===e(t[r],n?Number(r):r))break}function c(t,e,n){if(void 0===n&&(n=!1),t){if(Array.isArray(t)&&"function"==typeof e)return n?t.findIndex(e):t.find(e);var r=void 0,o=0;return l(t,e,(function(t,e){return r=t,o=e,!0})),n?o:r}}function u(t){var e=[],n={};return"string"==typeof t?(e=[t],n[t]=!0):(e=Object.keys(t),n=t),function(t){return(0,o.isEqual)((0,i.pick)(t,e),n)}}function l(t,e,n){a(t,(function(t,r){if(u(e)(t)&&!0===n(t,r))return!0}))}e.chunk=function(t,e){return t.reduce((function(t,n,o){return o%e==0?r(r([],t,!0),[[n]],!1):r(r([],t.slice(0,-1),!0),[r(r([],t.slice(-1)[0],!0),[n],!1)],!1)}),[])},e.compact=function(t){return t.filter(Boolean)},e.concat=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.concat.apply(t,e)},e.difference=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce((function(t,e){return t.filter((function(t){return!e.includes(t)}))}))},e.drop=function(t,e){return void 0===e&&(e=1),e>0?t.slice(e):t},e.dropRight=function(t,e){return void 0===e&&(e=1),e>0?t.slice(0,-e):t},e.each=a,e.find=c,e.findIndex=function(t,e){return c(t,e,!0)},e.matches=u,e.findEach=l,e.filter=function(t,e){if(!t)return[];if(e||(e=function(t){return!!t}),Array.isArray(t)&&"function"==typeof e)return t.filter(e);var n=[];return l(t,e,(function(e,r){n.push(e),Array.isArray(e)?t.splice(r,1):delete t[r]})),n},e.last=function(t){return t[t.length-1]},e.head=function(t){return t[0]},e.map=function(t,e){return t.map(e)},e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))}},3254:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(void 0,r)}),e)}}},2373:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},c=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.chain=void 0;var u=i(n(2937)),l=function(){function t(t){this.chain=[],this.currentValue=[],this.currentValue=t}return t.prototype.value=function(){return this.chain.reduce((function(t,e){var n;return(n=u)[e.method].apply(n,c([t],e.args,!1))}),this.currentValue)},t}(),s=function(t){u.hasOwnProperty(t)&&(l.prototype[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.chain.push({method:t,args:e}),this})};for(var f in u)s(f);function p(t){return new l(t)}e.chain=p,e.default=p,a(n(2937),e),a(n(3254),e),a(n(7739),e),a(n(7592),e),a(n(1769),e),a(n(7150),e)},7739:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRegExp=e.isBoolean=e.isNumber=e.isPlainObject=e.isObject=e.isObjectLike=e.isArray=e.isNull=e.isNil=e.isNaN=e.isInteger=e.isEmpty=e.isString=e.isEqual=e.noop=void 0;var r=n(2937);function o(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function i(t){return"object"==typeof t&&null!==t}function a(t){var e=typeof t;return null!=t&&("object"===e||"function"===e)}e.noop=function(){},e.isEqual=function t(e,n){var o=!1;return e===n||(e&&n&&(Array.isArray(e)||a(e))&&(o=!0,(0,r.each)(e,(function(e,r){return!Array.isArray(e)&&!a(e)||t(n[r],e)?n[r]!==e?(o=!1,!0):void 0:(o=!1,!0)}))),o)},e.isString=function(t){return"string"==typeof t},e.isEmpty=function(t){return[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length},e.isInteger=function(t){return Number.isInteger(t)},e.isNaN=function(t){return Number.isNaN(t)},e.isNil=function(t){return null==t},e.isNull=function(t){return null===t},e.isArray=function(t){return Array.isArray(t)},e.isObjectLike=i,e.isObject=a,e.isPlainObject=function(t){if(!i(t)||"[object Object]"!=o(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},e.isNumber=function(t){return"number"==typeof t||i(t)&&"[object Number]"==o(t)},e.isBoolean=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==o(t)},e.isRegExp=function(t){return i(t)&&"[object RegExp]"==o(t)}},7592:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sumBy=e.sum=e.mod=e.subtract=e.round=e.multiply=e.minBy=e.min=e.meanBy=e.mean=e.maxBy=e.max=e.floor=e.divide=e.ceil=e.add=void 0;var r=n(7739),o=n(1769);function i(t,e,n){return void 0===n&&(n=0),n?e(t*(n=Math.pow(10,n)))/n:e(t)}function a(t,e,n){var i=t[0];if(t.length<=1)return i;var a=(0,r.isString)(e);return t.slice(1).reduce((function(t,r){var i=a?(0,o.get)(t,e):e(t),c=a?(0,o.get)(r,e):e(r);return n(i,c)===c?r:t}),i)}function c(t,e){return t+e}function u(t){return t.reduce(c,0)}function l(t,e){return function(t,e,n){var i=t[0];if(t.length<=1)return i;var a=(0,r.isString)(e);return t.slice(1).reduce((function(t,n){return r=t,i=a?(0,o.get)(n,e):e(n),r+i;var r,i}),a?(0,o.get)(i,e):e(i))}(t,e)}e.add=c,e.ceil=function(t,e){return void 0===e&&(e=0),i(t,Math.ceil,e)},e.divide=function(t,e){return t/e},e.floor=function(t,e){return void 0===e&&(e=0),i(t,Math.floor,e)},e.max=function(t){return Math.max.apply(Math,t)},e.maxBy=function(t,e){return a(t,e,Math.max)},e.mean=function(t){return u(t)/t.length},e.meanBy=function(t,e){return l(t,e)/t.length},e.min=function(t){return Math.min.apply(Math,t)},e.minBy=function(t,e){return a(t,e,Math.min)},e.multiply=function(t,e){return t*e},e.round=function(t,e){return void 0===e&&(e=0),i(t,Math.round,e)},e.subtract=function(t,e){return t-e},e.mod=function(t,e){return t%e},e.sum=u,e.sumBy=l},1769:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.pick=e.defaults=e.cloneDeep=e.clone=e.fastCloneDeep=e.merge=e.set=e.has=e.propertyOf=e.property=e.get=e.pathParts=e.values=e.keys=void 0;var i=n(7739),a=n(2937);function c(t){return t?("["===t[0]&&(t=t.replace(/^\[([^\]]+)\]/,"$1")),t.replace(/\[/g,".").replace(/\]/g,"").split(".")):[]}function u(t,e,n){var r=c(e).reduce((function(t,e){return(t||{})[e]}),t);return void 0!==n&&void 0===r?n:r}function l(t,e){try{return e in t}catch(t){return!1}}function s(t,e){return l(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function f(t,e){for(var n in e)if(e.hasOwnProperty(n)){if(s(t,n))return;l(t,n)?t[n]=d(t[n],e[n]):t[n]=h(e[n])}return t}function p(t,e){return e.forEach((function(e,n){t[n]=d(t[n],e)})),t}function d(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();return t.reduce((function(e,n,r){return e&&e!==n?(0,i.isArray)(n)?((0,i.isArray)(e)||(t[r]=e=[]),p(e,n)):(0,i.isPlainObject)(n)?f(e,n):h(n):h(n)}),n)}function h(t){return Array.isArray(t)?t.map(h):null===t||"object"!=typeof t?t:Object.fromEntries(Object.entries(t).map((function(t){return[t[0],h(t[1])]})))}e.keys=function(t){return Object.keys(t)},e.values=function(t){return(0,i.isArray)(t)?t:Object.values(t)},e.pathParts=c,e.get=u,e.property=function(t){return function(e){return u(e,t)}},e.propertyOf=function(t){return function(e){return u(t,e)}},e.has=function(t,e){return void 0!==u(t,e,void 0)},e.set=function(t,e,n){var r=c(e);return r.reduce((function(t,e,o){return isNaN(Number(e))||(e=Number(e)),((Array.isArray(t)?e>=t.length:!t.hasOwnProperty(e))||o<r.length-1&&!Array.isArray(t[e])&&!(0,i.isObject)(t[e]))&&(t[e]=isNaN(Number(r[o+1]))?{}:[]),o===r.length-1&&(t[e]=n),t[e]}),t),t},e.merge=d,e.fastCloneDeep=function(t){try{return JSON.parse(JSON.stringify(t))}catch(t){return console.log("Clone Failed: ".concat(t.message)),null}},e.clone=function(t){return Array.isArray(t)?o([],t,!0):r({},t)},e.cloneDeep=h,e.defaults=function(t,e){return(0,a.each)(e,(function(e,n){t.hasOwnProperty(n)||(t[n]=e)})),t},e.pick=function(t,e){return e.reduce((function(e,n){return t&&t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}},7150:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.endsWith=e.trim=void 0,e.trim=function(t,e){return void 0===e&&(e="\\s"),t.replace(new RegExp("^([".concat(e,"]*)(.*?)([").concat(e,"]*)$")),"$2")},String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}),e.endsWith=function(t,e){return t.endsWith(e)}},7856:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(){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(t){return!1}}function r(t,o,i){return r=n()?Reflect.construct:function(t,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(t,o));return r&&e(i,r.prototype),i},r.apply(null,arguments)}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=Object.hasOwnProperty,c=Object.setPrototypeOf,u=Object.isFrozen,l=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor,f=Object.freeze,p=Object.seal,d=Object.create,h="undefined"!=typeof Reflect&&Reflect,y=h.apply,m=h.construct;y||(y=function(t,e,n){return t.apply(e,n)}),f||(f=function(t){return t}),p||(p=function(t){return t}),m||(m=function(t,e){return r(t,o(e))});var v,g=T(Array.prototype.forEach),b=T(Array.prototype.pop),_=T(Array.prototype.push),O=T(String.prototype.toLowerCase),w=T(String.prototype.match),j=T(String.prototype.replace),A=T(String.prototype.indexOf),C=T(String.prototype.trim),x=T(RegExp.prototype.test),E=(v=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return m(v,e)});function T(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y(t,e,r)}}function N(t,e){c&&c(t,null);for(var n=e.length;n--;){var r=e[n];if("string"==typeof r){var o=O(r);o!==r&&(u(e)||(e[n]=o),r=o)}t[r]=!0}return t}function P(t){var e,n=d(null);for(e in t)y(a,t,[e])&&(n[e]=t[e]);return n}function M(t,e){for(;null!==t;){var n=s(t,e);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}t=l(t)}return function(t){return console.warn("fallback value for",t),null}}var k=f(["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"]),S=f(["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"]),D=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=f(["animate","color-profile","cursor","discard","fedropshadow","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"]),L=f(["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"]),I=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=f(["#text"]),V=f(["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"]),F=f(["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"]),B=f(["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"]),U=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=p(/<%[\w\W]*|[\w\W]*%>/gm),W=p(/^data-[\-\w.\u00B7-\uFFFF]/),q=p(/^aria-[\-\w]+$/),$=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=p(/^(?:\w+script|data):/i),K=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=p(/^html$/i),J=function(){return"undefined"==typeof window?null:window},Z=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(t){return e(t)};if(r.version="2.3.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,c=n.DocumentFragment,u=n.HTMLTemplateElement,l=n.Node,s=n.Element,p=n.NodeFilter,d=n.NamedNodeMap,h=void 0===d?n.NamedNodeMap||n.MozNamedAttrMap:d,y=n.HTMLFormElement,m=n.DOMParser,v=n.trustedTypes,T=s.prototype,Q=M(T,"cloneNode"),tt=M(T,"nextSibling"),et=M(T,"childNodes"),nt=M(T,"parentNode");if("function"==typeof u){var rt=a.createElement("template");rt.content&&rt.content.ownerDocument&&(a=rt.content.ownerDocument)}var ot=Z(v,i),it=ot?ot.createHTML(""):"",at=a,ct=at.implementation,ut=at.createNodeIterator,lt=at.createDocumentFragment,st=at.getElementsByTagName,ft=i.importNode,pt={};try{pt=P(a).documentMode?a.documentMode:{}}catch(t){}var dt={};r.isSupported="function"==typeof nt&&ct&&void 0!==ct.createHTMLDocument&&9!==pt;var ht,yt,mt=H,vt=G,gt=W,bt=q,_t=Y,Ot=K,wt=$,jt=null,At=N({},[].concat(o(k),o(S),o(D),o(L),o(z))),Ct=null,xt=N({},[].concat(o(V),o(F),o(B),o(U))),Et=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}})),Tt=null,Nt=null,Pt=!0,Mt=!0,kt=!1,St=!1,Dt=!1,Rt=!1,Lt=!1,It=!1,zt=!1,Vt=!1,Ft=!0,Bt=!0,Ut=!1,Ht={},Gt=null,Wt=N({},["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"]),qt=null,$t=N({},["audio","video","img","source","image","track"]),Yt=null,Kt=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",Jt="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml",Qt=Zt,te=!1,ee=["application/xhtml+xml","text/html"],ne="text/html",re=null,oe=a.createElement("form"),ie=function(t){return t instanceof RegExp||t instanceof Function},ae=function(e){re&&re===e||(e&&"object"===t(e)||(e={}),e=P(e),jt="ALLOWED_TAGS"in e?N({},e.ALLOWED_TAGS):At,Ct="ALLOWED_ATTR"in e?N({},e.ALLOWED_ATTR):xt,Yt="ADD_URI_SAFE_ATTR"in e?N(P(Kt),e.ADD_URI_SAFE_ATTR):Kt,qt="ADD_DATA_URI_TAGS"in e?N(P($t),e.ADD_DATA_URI_TAGS):$t,Gt="FORBID_CONTENTS"in e?N({},e.FORBID_CONTENTS):Wt,Tt="FORBID_TAGS"in e?N({},e.FORBID_TAGS):{},Nt="FORBID_ATTR"in e?N({},e.FORBID_ATTR):{},Ht="USE_PROFILES"in e&&e.USE_PROFILES,Pt=!1!==e.ALLOW_ARIA_ATTR,Mt=!1!==e.ALLOW_DATA_ATTR,kt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,St=e.SAFE_FOR_TEMPLATES||!1,Dt=e.WHOLE_DOCUMENT||!1,It=e.RETURN_DOM||!1,zt=e.RETURN_DOM_FRAGMENT||!1,Vt=e.RETURN_TRUSTED_TYPE||!1,Lt=e.FORCE_BODY||!1,Ft=!1!==e.SANITIZE_DOM,Bt=!1!==e.KEEP_CONTENT,Ut=e.IN_PLACE||!1,wt=e.ALLOWED_URI_REGEXP||wt,Qt=e.NAMESPACE||Zt,e.CUSTOM_ELEMENT_HANDLING&&ie(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ie(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ht=ht=-1===ee.indexOf(e.PARSER_MEDIA_TYPE)?ne:e.PARSER_MEDIA_TYPE,yt="application/xhtml+xml"===ht?function(t){return t}:O,St&&(Mt=!1),zt&&(It=!0),Ht&&(jt=N({},o(z)),Ct=[],!0===Ht.html&&(N(jt,k),N(Ct,V)),!0===Ht.svg&&(N(jt,S),N(Ct,F),N(Ct,U)),!0===Ht.svgFilters&&(N(jt,D),N(Ct,F),N(Ct,U)),!0===Ht.mathMl&&(N(jt,L),N(Ct,B),N(Ct,U))),e.ADD_TAGS&&(jt===At&&(jt=P(jt)),N(jt,e.ADD_TAGS)),e.ADD_ATTR&&(Ct===xt&&(Ct=P(Ct)),N(Ct,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&N(Yt,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Gt===Wt&&(Gt=P(Gt)),N(Gt,e.FORBID_CONTENTS)),Bt&&(jt["#text"]=!0),Dt&&N(jt,["html","head","body"]),jt.table&&(N(jt,["tbody"]),delete Tt.tbody),f&&f(e),re=e)},ce=N({},["mi","mo","mn","ms","mtext"]),ue=N({},["foreignobject","desc","title","annotation-xml"]),le=N({},["title","style","font","a","script"]),se=N({},S);N(se,D),N(se,R);var fe=N({},L);N(fe,I);var pe=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:Zt,tagName:"template"});var n=O(t.tagName),r=O(e.tagName);return t.namespaceURI===Jt?e.namespaceURI===Zt?"svg"===n:e.namespaceURI===Xt?"svg"===n&&("annotation-xml"===r||ce[r]):Boolean(se[n]):t.namespaceURI===Xt?e.namespaceURI===Zt?"math"===n:e.namespaceURI===Jt?"math"===n&&ue[r]:Boolean(fe[n]):t.namespaceURI===Zt&&!(e.namespaceURI===Jt&&!ue[r])&&!(e.namespaceURI===Xt&&!ce[r])&&!fe[n]&&(le[n]||!se[n])},de=function(t){_(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},he=function(t,e){try{_(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){_(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Ct[t])if(It||zt)try{de(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ye=function(t){var e,n;if(Lt)t="<remove></remove>"+t;else{var r=w(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ht&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var o=ot?ot.createHTML(t):t;if(Qt===Zt)try{e=(new m).parseFromString(o,ht)}catch(t){}if(!e||!e.documentElement){e=ct.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=te?"":o}catch(t){}}var i=e.body||e.documentElement;return t&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Qt===Zt?st.call(e,Dt?"html":"body")[0]:Dt?e.documentElement:i},me=function(t){return ut.call(t.ownerDocument||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},ve=function(t){return t instanceof y&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},ge=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},be=function(t,e,n){dt[t]&&g(dt[t],(function(t){t.call(r,e,n,re)}))},_e=function(t){var e;if(be("beforeSanitizeElements",t,null),ve(t))return de(t),!0;if(x(/[\u0080-\uFFFF]/,t.nodeName))return de(t),!0;var n=yt(t.nodeName);if(be("uponSanitizeElement",t,{tagName:n,allowedTags:jt}),t.hasChildNodes()&&!ge(t.firstElementChild)&&(!ge(t.content)||!ge(t.content.firstElementChild))&&x(/<[/\w]/g,t.innerHTML)&&x(/<[/\w]/g,t.textContent))return de(t),!0;if("select"===n&&x(/<template/i,t.innerHTML))return de(t),!0;if(!jt[n]||Tt[n]){if(!Tt[n]&&we(n)){if(Et.tagNameCheck instanceof RegExp&&x(Et.tagNameCheck,n))return!1;if(Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))return!1}if(Bt&&!Gt[n]){var o=nt(t)||t.parentNode,i=et(t)||t.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),tt(t))}return de(t),!0}return t instanceof s&&!pe(t)?(de(t),!0):"noscript"!==n&&"noembed"!==n||!x(/<\/no(script|embed)/i,t.innerHTML)?(St&&3===t.nodeType&&(e=t.textContent,e=j(e,mt," "),e=j(e,vt," "),t.textContent!==e&&(_(r.removed,{element:t.cloneNode()}),t.textContent=e)),be("afterSanitizeElements",t,null),!1):(de(t),!0)},Oe=function(t,e,n){if(Ft&&("id"===e||"name"===e)&&(n in a||n in oe))return!1;if(Mt&&!Nt[e]&&x(gt,e));else if(Pt&&x(bt,e));else if(!Ct[e]||Nt[e]){if(!(we(t)&&(Et.tagNameCheck instanceof RegExp&&x(Et.tagNameCheck,t)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(t))&&(Et.attributeNameCheck instanceof RegExp&&x(Et.attributeNameCheck,e)||Et.attributeNameCheck instanceof Function&&Et.attributeNameCheck(e))||"is"===e&&Et.allowCustomizedBuiltInElements&&(Et.tagNameCheck instanceof RegExp&&x(Et.tagNameCheck,n)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))))return!1}else if(Yt[e]);else if(x(wt,j(n,Ot,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==A(n,"data:")||!qt[t])if(kt&&!x(_t,j(n,Ot,"")));else if(n)return!1;return!0},we=function(t){return t.indexOf("-")>0},je=function(t){var e,n,o,i;be("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ct};for(i=a.length;i--;){var u=e=a[i],l=u.name,s=u.namespaceURI;if(n="value"===l?e.value:C(e.value),o=yt(l),c.attrName=o,c.attrValue=n,c.keepAttr=!0,c.forceKeepAttr=void 0,be("uponSanitizeAttribute",t,c),n=c.attrValue,!c.forceKeepAttr&&(he(l,t),c.keepAttr))if(x(/\/>/i,n))he(l,t);else{St&&(n=j(n,mt," "),n=j(n,vt," "));var f=yt(t.nodeName);if(Oe(f,o,n))try{s?t.setAttributeNS(s,l,n):t.setAttribute(l,n),b(r.removed)}catch(t){}}}be("afterSanitizeAttributes",t,null)}},Ae=function t(e){var n,r=me(e);for(be("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)be("uponSanitizeShadowNode",n,null),_e(n)||(n.content instanceof c&&t(n.content),je(n));be("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(e,o){var a,u,s,f,p;if((te=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ge(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(ge(e))return n.toStaticHTML(e.outerHTML)}return e}if(Rt||ae(o),r.removed=[],"string"==typeof e&&(Ut=!1),Ut){if(e.nodeName){var d=yt(e.nodeName);if(!jt[d]||Tt[d])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(u=(a=ye("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?a=u:a.appendChild(u);else{if(!It&&!St&&!Dt&&-1===e.indexOf("<"))return ot&&Vt?ot.createHTML(e):e;if(!(a=ye(e)))return It?null:Vt?it:""}a&&Lt&&de(a.firstChild);for(var h=me(Ut?e:a);s=h.nextNode();)3===s.nodeType&&s===f||_e(s)||(s.content instanceof c&&Ae(s.content),je(s),f=s);if(f=null,Ut)return e;if(It){if(zt)for(p=lt.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return Ct.shadowroot&&(p=ft.call(i,p,!0)),p}var y=Dt?a.outerHTML:a.innerHTML;return Dt&&jt["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&x(X,a.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+y),St&&(y=j(y,mt," "),y=j(y,vt," ")),ot&&Vt?ot.createHTML(y):y},r.setConfig=function(t){ae(t),Rt=!0},r.clearConfig=function(){re=null,Rt=!1},r.isValidAttribute=function(t,e,n){re||ae({});var r=yt(t),o=yt(e);return Oe(r,o,n)},r.addHook=function(t,e){"function"==typeof e&&(dt[t]=dt[t]||[],_(dt[t],e))},r.removeHook=function(t){if(dt[t])return b(dt[t])},r.removeHooks=function(t){dt[t]&&(dt[t]=[])},r.removeAllHooks=function(){dt={}},r}()}()},6729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,i||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];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},c.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},c.prototype.emit=function(t,e,r,o,i,a){var c=n?n+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,r),!0;case 4:return s.fn.call(s.context,e,r,o),!0;case 5:return s.fn.call(s.context,e,r,o,i),!0;case 6:return s.fn.call(s.context,e,r,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,r);break;case 4:s[l].fn.call(s[l].context,e,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},c.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},c.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||r&&c.context!==r||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||r&&c[u].context!==r)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,t.exports=c},7609:function(t,e){"use strict";var n=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.Components=void 0;var r=function(){function t(){}return t.component=function(e,n){return void 0===n&&(n="components"),t[n][e]?t[n][e]:t[n].component},t.create=function(e,n,r){return new(t.component(e.type))(e,n,r)},t.addDecorator=function(e,n){t.decorators[n]=e},t.addComponent=function(e,n){if(e)return"function"!=typeof e?t.importComponent(e):(t.components[n]=e,e)},t.importComponent=function(e){void 0===e&&(e={});var r=t.component(e.extends,"decorators"),o=function(){function t(){}return n([r(e)],t)}();t.addComponent(o,e.type)},t.setComponents=function(e){Object.assign(t.components,e)},t.components={},t.decorators={},t}();e.Components=r,e.render=function(t,e,n,o){return void 0===n&&(n={}),void 0===o&&(o={}),r.create(e,n,o).attach(t)}},6509:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var a=i(n(2373)),c=function(){function t(){}return t.addTemplates=function(e){var n=t.framework;t.templates=a.merge(t.templates,e),t.framework=n},t.addTemplate=function(e,n){t.templates[e]=a.merge(t.current,n)},t.extendTemplate=function(e,n){t.templates[e]=a.merge(t.templates[e],n)},t.setTemplate=function(e,n){t.addTemplate(e,n)},Object.defineProperty(t,"current",{get:function(){return t._current},set:function(e){var n=t.current;t._current=a.merge(n,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"framework",{get:function(){return t._framework},set:function(e){t.templates.hasOwnProperty(e)&&(t._framework=e,t._current=t.templates[e])},enumerable:!1,configurable:!0}),t.render=function(t,e,n,r){return void 0===n&&(n="html"),void 0===r&&(r=null),"function"==typeof t?t(e):this.current[t]&&this.current[t][n]?this.current[t][n](e):r?r(e):"Unknown template"},t.templates=[],t._current={},t._framework="bootstrap",t}();e.Template=c},3830:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayComponent=void 0;var i=n(7609),a=n(1582),c=n(8584);function u(t){return void 0===t&&(t={}),t.type||(t.type="array"),t.model||(t.model=a.NestedArrayModel),function(e){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}((0,c.NestedComponent)(t)(e))}}e.ArrayComponent=u,i.Components.addDecorator(u,"array"),i.Components.addComponent(u()(),"array")},4648:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return a(e,t),e},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var s=n(7609),f=n(6509),p=n(6550),d=c(n(2593)),h=n(755),y=n(1582),m=n(1769);function v(t){void 0===t&&(t={}),(t=(0,m.merge)({type:"component",template:!1,schema:{persistent:!0,protected:!1}},t)).schema.type=t.type;var e=t.model||y.Model;return function(n){return function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.attached=!1,n.refs={},n.template=t.template,n.attachedListeners=[],n}return o(n,e),Object.defineProperty(n.prototype,"defaultOptions",{get:function(){return{language:"en",namespace:"formio"}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"defaultTemplate",{get:function(){return function(t){return"<span>".concat(t.t("Unknown Component"),"</span>")}},enumerable:!1,configurable:!0}),n.prototype.interpolate=function(t,e){return p.Evaluator.interpolate(t,e)},n.prototype.renderContext=function(t){return void 0===t&&(t={}),e.prototype.renderContext?e.prototype.renderContext.call(this,t):t},n.prototype.evaluate=function(t,e,n,r){return void 0===e&&(e={}),void 0===n&&(n=""),void 0===r&&(r=!1),p.Evaluator.evaluate(t,this.evalContext(e),n,r)},n.prototype.render=function(t){return void 0===t&&(t={}),e.prototype.render?e.prototype.render.call(this,t):this.renderTemplate(this.template||this.component.type,this.renderContext(t))},n.prototype.getRefs=function(){return e.prototype.getRefs?e.prototype.getRefs.call(this):{}},n.prototype.loadRefs=function(t){var e=this.getRefs();for(var n in e)"single"===e[n]?this.refs[n]=t.querySelector('[ref="'.concat(n,'"]')):this.refs[n]=t.querySelectorAll('[ref="'.concat(n,'"]'))},n.prototype.attach=function(t){return u(this,void 0,void 0,(function(){var n,r;return l(this,(function(o){switch(o.label){case 0:return this.element&&!t&&(t=this.element),t&&(n=t.parentNode)?(r=Array.prototype.indexOf.call(n.children,t),t.outerHTML=String(this.sanitize(this.render())),t=n.children[r],this.element=t,this.loadRefs(this.element),e.prototype.attach?[4,e.prototype.attach.call(this,t)]:[3,2]):[2,this];case 1:o.sent(),o.label=2;case 2:return this.attached=!0,[2,this]}}))}))},n.prototype.redraw=function(){return u(this,void 0,void 0,(function(){return l(this,(function(t){return this.element?(this.clear(),[2,this.attach()]):[2]}))}))},n.prototype.sanitize=function(t){return(0,h.sanitize)(t,this.options)},Object.defineProperty(n.prototype,"translations",{get:function(){return this.options.language&&this.options.i18n&&this.options.i18n[this.options.language]?this.options.i18n[this.options.language]:{}},enumerable:!1,configurable:!0}),n.prototype.t=function(t){return this.translations[t]?this.translations[t]:t},n.prototype.evalContext=function(t){var e=this;return void 0===t&&(t={}),Object.assign({instance:this,component:this.component,options:this.options,row:this.data,data:this.root?this.root.data:this.data,rowIndex:this.rowIndex,value:function(){return e.dataValue},t:function(t){return e.t(t)}},t)},n.prototype.renderTemplate=function(t,e){return void 0===e&&(e={}),f.Template.render(t,this.evalContext(e),"html",this.defaultTemplate)},n.prototype.isValueRedacted=function(){return this.component.protected||!this.component.persistent||"client-only"===this.component.persistent},n.prototype.setValue=function(t){var n=!1;return e.prototype.setValue&&(n=e.prototype.setValue.call(this,t)),this.updateValue(t)||n},n.prototype.getElement=function(){return this.element},n.prototype.detach=function(){this.refs={},this.attached=!1,this.removeAttachedListeners(),e.prototype.detach&&e.prototype.detach.call(this)},n.prototype.clear=function(){this.detach(),d.empty(this.getElement()),e.prototype.clear&&e.prototype.clear.call(this)},n.prototype.append=function(t){d.appendTo(t,this.element)},n.prototype.prepend=function(t){d.prependTo(t,this.element)},n.prototype.removeChild=function(t){d.removeChildFrom(t,this.element)},n.prototype.addEventListener=function(t,e,n){if(t)return"addEventListener"in t?t.addEventListener(e,n,!1):"attachEvent"in t&&t.attachEvent("on".concat(e),n),this.attachedListeners.push({obj:t,type:e,func:n}),this},n.prototype.removeAttachedListeners=function(){var t=this;this.attachedListeners.forEach((function(e){return t.removeEventListener(e.obj,e.type,e.func)})),this.attachedListeners=[]},n.prototype.removeEventListener=function(t,e,n){return t&&t.removeEventListener(e,n),this},n}(e(t)(n))}}e.Component=v,s.Components.addDecorator(v,"component"),s.Components.addComponent(v()(),"component")},3552:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.DataComponent=void 0;var i=n(7609),a=n(1582),c=n(8584);function u(t){return void 0===t&&(t={}),t.type||(t.type="data"),t.model||(t.model=a.NestedDataModel),function(e){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}((0,c.NestedComponent)(t)(e))}}e.DataComponent=u,i.Components.addDecorator(u,"data"),i.Components.addComponent(u()(),"data")},1150:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Template=e.ArrayComponent=e.DataComponent=e.NestedComponent=e.Component=e.render=e.Components=void 0;var i=n(7609);Object.defineProperty(e,"Components",{enumerable:!0,get:function(){return i.Components}}),Object.defineProperty(e,"render",{enumerable:!0,get:function(){return i.render}});var a=n(4648);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return a.Component}});var c=n(8584);Object.defineProperty(e,"NestedComponent",{enumerable:!0,get:function(){return c.NestedComponent}});var u=n(3552);Object.defineProperty(e,"DataComponent",{enumerable:!0,get:function(){return u.DataComponent}});var l=n(3830);Object.defineProperty(e,"ArrayComponent",{enumerable:!0,get:function(){return l.ArrayComponent}});var s=n(6509);Object.defineProperty(e,"Template",{enumerable:!0,get:function(){return s.Template}}),o(n(1582),e)},8584:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.NestedComponent=void 0;var c=n(7609),u=n(4648),l=n(1582);function s(t){return void 0===t&&(t={}),t.type||(t.type="nested"),t.model||(t.model=l.NestedModel),t.factory||(t.factory=c.Components),function(e){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"defaultTemplate",{get:function(){return function(t){return'<div ref="nested">'.concat(t.instance.renderComponents(),"</div>")}},enumerable:!1,configurable:!0}),e.prototype.attach=function(e){return i(this,void 0,void 0,(function(){var n,r,o=this;return a(this,(function(i){switch(i.label){case 0:return[4,t.prototype.attach.call(this,e)];case 1:return i.sent(),this.element?(n=[],r=this.element.querySelectorAll('[data-within="'.concat(this.id,'"]')),Array.prototype.slice.call(r).forEach((function(t,e){n.push(o.components[e].a